:root {
  --bg:#f5f5f5;
  --paper:#fff;
  --ink:#262626;
  --muted:#616161;
  --border:#c7c7c7;
  --danger:#b42318;
  --radius:6px;
  font-family:Inter,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  font-size:14px;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
a {
  color:inherit;
}
button,input,textarea,select {
  font:inherit;
}
button,.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:10px 16px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:var(--paper);
  color:var(--ink);
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
}
button:disabled {
  opacity:.5;
  cursor:default;
}
.primary {
  background:var(--ink);
  color:white;
  border-color:var(--ink);
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible {
  outline:2px solid #185c9d;
  outline-offset:3px;
}
[hidden] {
  display:none!important;
}
.shell {
  max-width:1440px;
  margin:auto;
  padding:28px 32px;
}
.site-header,.job-header {
  display:flex;
  gap:16px;
  align-items:center;
}
.site-header {
  margin-bottom:24px;
  flex-wrap:wrap;
}
.brand {
  text-decoration:none;
  font-size:20px;
  font-weight:600;
}
.spacer {
  flex:1;
}
.muted,small {
  color:var(--muted);
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:32px;
  font-weight:600;
}
h2 {
  font-size:16px;
  font-weight:600;
  margin-bottom:12px;
}
h3 {
  font-size:14px;
  margin:14px 0 8px;
}
.intro {
  margin-bottom:24px;
}
.intro p {
  margin-top:6px;
}
.panel {
  background:var(--paper);
  border:1px solid var(--border);
  border-radius:8px;
  padding:18px;
}
.queue {
  margin-top:24px;
  min-height:220px;
}
.job-row {
  display:flex;
  align-items:center;
  gap:16px;
  padding:14px;
  background:#fbfbfb;
  border-radius:6px;
  margin-top:12px;
  min-height:88px;
}
.job-summary {
  flex:1;
  min-width:0;
}
.job-summary strong {
  font-size:18px;
}
.job-summary p {
  font-size:13px;
  margin-top:4px;
  overflow-wrap:anywhere;
}
.badge {
  background:#e6e6e6;
  padding:6px 10px;
  border-radius:99px;
  font-size:12px;
  font-weight:600;
  white-space:nowrap;
  text-transform:uppercase;
}
dialog {
  width:560px;
  max-width:calc(100% - 24px);
  max-height:calc(100vh - 32px);
  border:1px solid #b3b3b3;
  border-radius:10px;
  padding:24px;
  overflow:auto;
}
dialog::backdrop {
  background:rgba(0,0,0,.12);
}
dialog h1 {
  font-size:24px;
  margin-bottom:16px;
}
.field {
  margin:16px 0;
}
.field label {
  display:block;
  font-size:12px;
  font-weight:600;
  color:var(--muted);
  margin-bottom:8px;
}
.field input,.field textarea,.field select,.login input {
  width:100%;
  min-height:42px;
  border:1px solid var(--border);
  border-radius:6px;
  padding:10px;
  background:white;
}
.field small {
  display:block;
  font-size:11px;
  margin-top:8px;
}
.field-pair {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
}
.field textarea {
  resize:vertical;
}
.actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.actions.end {
  justify-content:flex-end;
}
#unsaved-close-dialog [data-close-unsaved] > span { white-space:pre; }
.field-errors,.form-errors {
  color:#a32719;
  line-height:1.5;
}
.resource-validation {
  color:#a32719;
  line-height:1.5;
}
.resource-field-error {
  display:block;
  margin-top:4px;
}
.resource-fields [data-field][aria-invalid="true"] {
  border:2px solid #a32719;
  background:#fff2f0;
}
.field-errors ul,.form-errors ul {
  list-style:none;
  padding:0;
  margin:4px 0;
}
.action-status {
  margin-top:12px;
}
.start-details {
  margin:24px 0 12px;
}
.start-details dt {
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  margin-top:16px;
}
.start-details dd {
  margin:8px 0;
  font-size:15px;
  overflow-wrap:anywhere;
}
.job-header {
  margin-bottom:18px;
}
.job-header h1 {
  font-size:28px;
}
.workspace {
  display:grid;
  grid-template-columns:270px minmax(0,1fr);
  gap:20px;
}
.rail {
  align-self:start;
  padding:14px;
}
.rail h2 {
  font-size:12px;
  text-transform:uppercase;
}
.rail-job {
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:12px;
  border:1px solid var(--border);
  border-radius:5px;
  text-decoration:none;
  margin-bottom:12px;
}
.rail-job.selected {
  background:#e6e6e6;
  border-color:#262626;
}
.rail-actions {
  display:flex;
  gap:8px;
}
.rail-actions .button {
  font-size:12px;
  padding:8px;
  flex:1;
  white-space:nowrap;
}
.job-main {
  display:flex;
  flex-direction:column;
  gap:16px;
}
.job-details {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 24px;
  padding:18px;
  align-items:stretch;
}
.job-details h2 {
  grid-column:1 / -1;
  margin:0;
}
.job-details-fields,.job-reason-field {
  min-width:0;
}
.job-reason-field {
  display:flex;
  flex-direction:column;
  gap:6px;
}
.detail-fields {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
}
.detail-fields>div {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-content:start;
  gap:6px;
  min-width:0;
}
.detail-fields small {
  font-size:12px;
}
.reason {
  overflow:auto;
  max-height:48px;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.milestones {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:6px 8px;
  margin:14px 0 0;
  font-size:12px;
  color:var(--muted);
  align-content:start;
}
.milestones dd {
  margin:0;
}
.work-columns {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.work-columns>.panel {
  min-height:260px;
}
.panel p+button {
  margin-top:16px;
}
.small {
  font-size:12px;
  margin-top:14px;
}
.audit summary {
  cursor:pointer;
  font-weight:600;
}
.audit li {
  margin-top:12px;
  line-height:1.5;
}
.login {
  max-width:420px;
  margin:60px auto;
}
.login p {
  margin:16px 0;
}
.login label {
  display:block;
  margin-bottom:8px;
}
.account {
  font-size:12px;
}
@media(max-width:800px) {
  .shell {
    padding:20px 16px;
  }
  .workspace {
    grid-template-columns:1fr;
  }
  .rail {
    order:2;
  }
  .site-header {
    gap:8px;
  }
  .account {
    width:100%;
    order:5;
  }
  .job-details {
    grid-template-columns:minmax(0,1fr);
    gap:14px;
    padding:12px;
  }
  .reason {
    max-height:32px;
  }
  .detail-fields {
    gap:12px;
  }
  .work-columns {
    grid-template-columns:1fr;
  }
  .job-header {
    gap:8px;
    flex-wrap:wrap;
  }
  .job-header h1 {
    font-size:22px;
  }
}
@media(max-width:480px) {
  .field-pair {
    grid-template-columns:1fr;
    gap:0;
  }
  .job-row {
    flex-wrap:wrap;
  }
  .job-summary {
    flex-basis:100%;
  }
  .site-header .brand {
    font-size:16px;
  }
  .job-details {
    padding:12px;
  }
  .detail-fields small {
    font-size:11px;
  }
  .detail-fields>div {
    gap:4px;
  }
  .detail-fields span,.detail-fields strong {
    font-size:12px;
  }
}
/* Stage 2 records retain the established card and rail structure. */
.job-details input,.job-details select,.job-details textarea,.entry input:not([type=checkbox]),.entry textarea,.note-draft textarea {
  border:1px solid var(--border);
  border-radius:5px;
  padding:8px 10px;
  font:inherit;
  background:white;
  color:var(--ink);
  width:100%;
  min-width:0;
}
.job-details input:disabled,.job-details textarea:disabled,.job-details select:disabled {
  background:#f7f7f7;
  opacity:1;
}
.detail-fields label,.entry label {
  font-size:12px;
  color:var(--muted);
}
.detail-fields input,.detail-fields select {
  height:40px;
}
.reading-field {
  display:flex;
  align-items:center;
  gap:4px;
}
[data-reading-unit] {
  font-size:11px;
  white-space:nowrap;
}
.reason-label {
  display:block;
  font-weight:600;
  margin:0;
}
.job-details textarea {
  flex:1;
  min-height:118px;
  resize:none;
}
.record-feedback:empty {
  display:none;
}
.record-feedback {
  font-size:12px;
  overflow-wrap:anywhere;
}
.record-feedback>span:empty {
  display:none;
}
.record-feedback button {
  min-height:32px;
  padding:6px 10px;
  margin-top:6px;
}
.entry,[data-work-modal-labour],[data-work-modal-attachments] {
  background:#fbfbfb;
}
.entry {
  border:1px solid var(--border);
  border-radius:6px;
  padding:12px;
  margin-bottom:12px;
}
.entry-header {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}
.entry-header input[type=checkbox] {
  width:22px;
  height:22px;
  flex-shrink:0;
}
.entry-header input[data-field=title] {
  font-weight:600;
  font-size:15px;
}
.entry-header small {
  flex:1;
}
.entry textarea,.note-draft textarea {
  display:block;
  margin:6px 0;
  resize:vertical;
}
.overflow {
  position:relative;
  flex-shrink:0;
}
.overflow summary {
  cursor:pointer;
  padding:8px;
  list-style:none;
}
.overflow[open] {
  align-self:start;
}
.overflow button {
  display:block;
  font-size:12px;
  white-space:nowrap;
  padding:8px;
}
.note-content {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
}
.conflict-review {
  background:#f7f7f7;
  border:1px solid var(--border);
  border-radius:6px;
  padding:12px;
  margin-top:8px;
}
.conflict-review h3 {
  margin:0 0 8px;
}
.conflict-review table {
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
.conflict-review th,.conflict-review td {
  text-align:left;
  padding:6px;
  border:1px solid var(--border);
  overflow-wrap:anywhere;
  white-space:pre-wrap;
  vertical-align:top;
}
.audit details {
  margin:10px 0;
}
.audit .change {
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:12px;
}
.note-draft {
  margin:12px 0;
}
@media(min-width:801px) and (max-width:1000px) {
  .job-details {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px;
  }
}
@media(min-width:801px) and (max-width:1100px) {
  .detail-fields {
    grid-template-columns:minmax(0,1fr);
  }
}
@media(max-width:800px) {
  .job-details textarea {
    min-height:100px;
  }
  .entry-header {
    gap:6px;
  }
  .overflow button {
    white-space:normal;
  }
}
@media(max-width:480px) {
  .job-details h2 {
    font-size:14px;
  }
  .detail-fields {
    gap:12px;
  }
  .detail-fields label {
    font-size:11px;
  }
}
[data-record="details"][data-save-state="saved"] [data-record-status] {
  display:none;
}
/* Dean's Stage 2 review refinements, 13 October 2026. */
.field-label,.booked-label {
  display:flex;
  align-items:center;
  gap:6px;
}
.field-label {
  margin-bottom:8px;
}
.field-label label {
  margin-bottom:0;
}
.today-button {
  min-height:0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  color:var(--muted);
  font-weight:400;
  text-decoration:underline;
  font-size:11px;
  line-height:16px;
}
.field .registration-input,.job-details .registration-input {
  width:calc(12ch + 22px);
  max-width:100%;
  font-size:14px;
  height:40px;
  min-height:40px;
  padding:8px 10px;
}
.success {
  background:#19783d;
  border-color:#19783d;
  color:white;
}
.danger {
  background:var(--danger);
  border-color:var(--danger);
  color:white;
}
.work-heading {
  flex:1;
  justify-content:flex-start;
  text-align:left;
  min-width:0;
  min-height:30px;
  padding:4px 0;
  background:transparent;
  border:0;
  font-size:16px;
  overflow-wrap:anywhere;
}
[data-work-editor] input[data-field=title] {
  display:block;
  margin:0;
}
.work-actions { padding:6px 8px; }
.work-resource-summary { margin:4px 0 0; white-space:pre-line; overflow-wrap:anywhere; }
.work-resource-summary[hidden] { display:none; }
[data-work-feedback-home] [data-record-status] { display:none; }
.work-details-preview {
  margin:4px 0 0;
  font-style:italic;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  font-size:13px;
}
.audit .history-entry {
  margin:0 0 18px;
}
.audit .history-entry:last-child {
  margin-bottom:0;
}
#job-history[open] > #history-groups {
  padding-top:12px;
}
.audit .history-entry > .change {
  margin-inline-start:12px;
}
.audit .history-time {
  margin:2px 0 6px;
  font-size:12px;
}
.history-change {
  margin:8px 0 8px 12px;
}
.history-save {
  margin:8px 0;
}
.audit .accepted-saves {
  margin:4px 0;
}
.accepted-saves summary {
  font-size:11px;
  font-weight:400;
  color:var(--muted);
}
/* Current Stage 2 browser review. */
.refresh-button {padding:4px 10px; min-width:40px; font-size:22px;}
.modal-refresh {float:right; margin-left:12px;}
.reading-field {position:relative; display:block;}
.reading-field input {padding-right:30px;}
.reading-field [data-reading-unit] {display:block; position:absolute; right:8px; top:50%; transform:translateY(-50%); pointer-events:none; font-size:11px;}
.history-latest {font-weight:400; font-size:12px;}
.history-preview {display:block; margin:4px 0; font-weight:400;}
.history-entry[open] > summary .history-preview {display:none;}
.history-entry[open] > summary .history-latest {display:none;}
.rail h2:not(:first-child) {margin-top:18px;}
.work-draft label {display:block; font-size:12px; color:var(--muted);}
.work-draft input,.work-draft textarea {width:100%; min-width:0; border:1px solid var(--border); border-radius:5px; padding:8px 10px; margin:6px 0 12px;}
.work-draft textarea {resize:vertical;}
@media(max-width:800px) {
  .job-header #save-status {flex-basis:100%; order:5; min-height:20px; line-height:20px;}
}

.resource-fields { display: grid; gap: 10px; min-width: 0; }
.resource-fields label { display: grid; gap: 4px; min-width: 0; }
.resource-fields input, .resource-fields select { width: 100%; min-width: 0; }
.resource-entry { overflow-wrap: anywhere; }
.resource-entry h4 { margin: 4px 0; }
.resource-entry details { margin: 10px 0; }
.resource-entry small { display: block; }
.resource-entry summary { cursor: pointer; }
.summary-draft { border-top: 1px solid var(--border, #d6dce3); padding: 12px 0; }
.summary-draft label { display: grid; gap: 4px; }
.summary-draft input { max-width: 150px; }
.summary-draft button { margin: 8px 4px 0 0; }
[data-resource-list] { min-width: 0; }
.resource-value { margin: 6px 0; }
.resource-draft { max-width: 440px; }

.resource-fields select { min-height: 42px; padding: 8px; border: 1px solid #c5c5c5; border-radius: 5px; background: white; font: inherit; }

/* Stage 3 review: dedicated forms and compact saved entries. */
.labour-fields-row,.resource-pricing-row {
  display:grid;
  gap:10px;
  align-items:end;
}
.labour-fields-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
.resource-pricing-row { grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr); }
.resource-fields input,.resource-fields textarea {
  width:100%;
  min-width:0;
  border:1px solid var(--border);
  border-radius:5px;
  padding:8px;
  min-height:42px;
  background:white;
}
.resource-fields textarea { resize:vertical; margin:0; }
.currency-input { position:relative; display:block; min-width:0; }
.currency-prefix { position:absolute; left:10px; top:50%; transform:translateY(-50%); pointer-events:none; }
.resource-fields .currency-input input { padding-left:26px; }
.resource-draft { max-width:none; }
.unit-picker { position:relative; display:flex; min-width:0; }
.unit-picker input { padding:8px 4px; border-radius:5px 0 0 5px; }
.unit-picker > button { padding:4px; min-width:26px; border-radius:0 5px 5px 0; }
.unit-choices {
  position:absolute;
  top:100%;
  left:0;
  z-index:1;
  display:grid;
  min-width:90px;
  padding:4px;
  border:1px solid var(--border);
  border-radius:5px;
  background:var(--paper);
}
.unit-choices button { justify-content:flex-start; border:0; font-weight:400; }
.resource-entry { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:6px; min-width:0; }
.resource-entry > h4,.resource-entry > .resource-value,.resource-entry > small {
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
  margin:2px 0;
  line-height:20px;
}
.resource-entry > .resource-value,.resource-entry > small { grid-column:1; }
.resource-entry > small[hidden] { display:none; }
.resource-actions { grid-column:2; grid-row:1 / 4; align-self:start; padding:6px 8px; }
.resource-entry.work-item-resource {
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) auto;
  align-items:center;
  padding:6px 8px;
}
.work-item-resource > h4 { grid-column:1; grid-row:1; }
.work-item-resource > .resource-value {
  grid-column:2;
  grid-row:1;
  text-align:right;
}
.work-item-resource > .resource-actions { grid-column:3; grid-row:1; align-self:center; }
[data-section-totals] p { margin:4px 0; }
[data-work-attachment-home] { container:work-attachments / inline-size; }
.work-card-head:has(> .work-details-preview:not([hidden])) + [data-work-expanded]
  [data-work-resources]:has(> .work-resource-group:not([hidden])) { padding-block-start:8px; }
[data-work-attachment-home] [data-work-resources]:has(> .work-resource-group:not([hidden]))
  + [data-work-footer] { margin-block-start:12px; }
[data-work-footer] { display:flex; align-items:center; justify-content:space-between; gap:8px; }
[data-work-footer] > [data-section-totals] { min-width:0; margin:0; text-align:left; overflow-wrap:anywhere; }
[data-work-footer] > [data-work-add-actions] { margin:0 0 0 auto; flex:none; flex-wrap:nowrap; }
@media(max-width:480px) {
  [data-work-footer] > [data-work-add-actions] { gap:6px; }
  [data-work-footer] > [data-work-add-actions] > button { padding-inline:5px; font-size:12px; }
}
@container work-attachments (max-width:260px) {
  [data-work-footer] > [data-work-add-actions] { flex-direction:column; gap:4px; }
  [data-work-footer] > [data-work-add-actions] > button { min-height:30px; padding:4px 6px; font-size:12px; }
}
.work-resource-group { margin-top:12px; min-width:0; }
.work-resource-group[hidden] { display:none; }
.work-resource-group > h4 { margin:0 0 4px; font-weight:400; }
.work-columns { grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
@media(max-width:800px) {
  .work-columns { grid-template-columns:minmax(0,1fr); }
}

#remove-dialog [data-attachment-choice] label {
  display:block;
  margin-top:1rem;
}
#remove-dialog [data-attachment-mode] {
  display:block;
  max-width:100%;
  margin-top:.4rem;
  margin-bottom:.7rem;
}

.panel-heading {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.panel-heading h2 { margin:0; }
.panel-heading > .actions {
  flex:0 0 auto;
  max-width:100%;
  justify-content:flex-end;
  margin:0 0 0 auto;
}
.job-summary-section + .job-summary-section { margin-top:20px; }

/* Batch review refinements: equal columns and clear actions/field affordances. */
.job-summary-columns { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr)); gap:24px; }
.job-summary-columns > .job-summary-section { min-width:0; margin-top:0; }
.work-item.is-expanded { border:2px solid #24669c; }
.unit-picker { border:1px solid #bbb; border-radius:5px; }
.unit-picker input { border:0; min-width:0; flex:1; width:0; }
.unit-picker > button { border:0; border-left:1px solid #bbb; flex:none; }
.unit-picker:focus-within { outline:2px solid #2165a8; outline-offset:2px; }
.unit-picker input:focus,.unit-picker > button:focus { outline:none; }
.hours-input { display:block; position:relative; }
.hours-input input { padding-right:3rem; }
.hours-suffix { position:absolute; right:.7rem; top:50%; transform:translateY(-50%); pointer-events:none; }
.required-marker { color:#b42318; font-weight:bold; }
.note-delete { margin-left:auto; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
@media(max-width:640px) { .job-summary-columns { grid-template-columns:minmax(0,1fr); } }

.labour-fields-row > label:has(.hours-input) { align-self:end; }

/* Reviewed batch: compact details, consistent rows and editing actions. */
.detail-fields { grid-template-columns:repeat(2,minmax(0, min(100%, 21ch))); }
.detail-fields .registration-input,.detail-fields input,.detail-fields select,.detail-fields .reading-field { width:100%; max-width:none; }
.reason-heading { display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.job-details .reason-label,.started-label { font-size:12px; font-weight:400; color:var(--muted); }
.started-label { margin-left:auto; }
.work-draft { border:2px solid #24669c; }
.edit-actions .destructive-action { margin-left:auto; }
.resource-fields .unit-picker input { border:0; border-radius:0; background:transparent; box-shadow:none; }
.resource-entry > .resource-description { grid-column:1 / -1; grid-row:2; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:clip; margin:4px 0 0; }
.resource-description[hidden] { display:none; }
#labour-summary .summary-draft { border-top:0; padding:0; margin:0 0 16px; }
.job-summary-section > h3 { border-bottom:1px solid var(--border); padding-bottom:10px; margin-bottom:12px; }
.summary-type { margin-bottom:16px; }
.summary-type p,.summary-values { margin:0; }
.summary-total { border-top:1px solid var(--border); padding-top:12px; margin-top:20px; white-space:nowrap; }
@media(min-width:801px) and (max-width:1100px) { .detail-fields { grid-template-columns:minmax(0,21ch); } }
@media(max-width:480px) { .detail-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }

@media(max-width:360px) { .summary-total { font-size:12px; } }


/* Review refinements: content-led cards and aligned scoped summaries. */
@media(min-width:1101px) {
  .job-details { grid-template-columns:minmax(0,min(50%,calc(42ch + 16px))) minmax(0,1fr); }
}
.work-draft { border-color:#176c3a; }
.work-draft > h3 { margin:0 0 16px; }
.record.work-item,.record.note,.resource-entry.work-item-resource {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  column-gap:8px;
  align-items:center;
}
.work-card-content,.note-card-content,.resource-content { min-width:0; }
.work-item > .work-actions,.note > .work-actions,.resource-entry > .resource-actions {
  grid-column:2;
  grid-row:1;
  align-self:center;
}
button.work-actions,button.resource-actions,
button.work-actions:hover,button.resource-actions:hover,
button.work-actions:active,button.resource-actions:active {
  border:0;
  background:transparent;
  box-shadow:none;
}
button.work-actions:focus-visible,button.resource-actions:focus-visible { outline:2px solid #2165a8; outline-offset:2px; }
.note-card-content > .entry-header { margin:0 0 12px; min-height:0; }
.note-card-content > .note-content { margin:0; }
.resource-row { display:flex; flex-wrap:wrap; align-items:baseline; gap:4px 12px; min-width:0; }
.resource-row > h4 { flex:1 1 auto; width:max-content; max-width:100%; min-width:0; margin:2px 0; overflow-wrap:anywhere; white-space:normal; }
.resource-row > .resource-value { flex:0 0 auto; max-width:100%; margin:2px 0 2px auto; text-align:right; overflow-wrap:anywhere; }
.labour-entry .resource-row > h4 { flex:1 1 50%; }
.labour-entry .resource-row > .resource-value { flex:0 1 auto; }
.resource-content > .resource-description { overflow:hidden; white-space:nowrap; text-overflow:clip; min-width:0; margin:4px 0 0; }
.resource-content > .resource-supplier { font-style:italic; overflow-wrap:anywhere; margin:4px 0 0; }
.job-summary-columns { row-gap:0; align-items:stretch; }
.job-summary-columns > .job-summary-section { display:grid; grid-template-rows:subgrid; grid-row:span 2; }
.job-summary-body { min-width:0; }
.job-summary-body > h3 { border-bottom:1px solid var(--border); padding-bottom:10px; margin-bottom:12px; }
#work-totals p { margin:4px 0; }
@media(max-width:640px) { .job-summary-columns > .job-summary-section { margin-top:0; margin-bottom:24px; } }

.work-card-content { display:contents; }
.work-card-head { grid-column:1; grid-row:1; min-width:0; }
.work-card-content > [data-work-expanded],.work-card-content > [data-work-feedback-home] { grid-column:1 / -1; }

.resource-row > h4,.resource-row > .resource-value { line-height:20px; }

.labour-entry .resource-row { display:grid; grid-template-columns:minmax(0,50%) minmax(0,1fr); align-items:start; }
.labour-entry .resource-row > h4,.labour-entry .resource-row > .resource-value { width:100%; }

/* Explicit draft state and responsive card/editor layout. */
button.save-clean,button.save-clean:hover { background:transparent; }
dialog.new-entry-dialog { border:2px solid #176c3a; }
.job-details-heading { grid-column:1 / -1; display:flex; justify-content:space-between; align-items:baseline; flex-wrap:wrap; gap:8px 16px; }
.job-details-heading .started-label { text-align:right; }
.resource-row { display:grid; grid-template-columns:minmax(0,50%) minmax(0,1fr); align-items:start; }
.resource-row > h4 { width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.resource-row > .resource-value { width:100%; min-width:0; }
.resource-content > .resource-description { text-overflow:ellipsis; }
.work-columns > #work-panel,.work-columns > #resources-panel { display:flex; flex-direction:column; min-width:0; }
.panel-subtotals { margin-top:auto; padding-top:16px; }
.panel-subtotals p { margin:4px 0; }
[data-work-modal-add] { border-top:1px solid var(--border); margin-top:16px; padding-top:12px; }
[data-work-modal-add] > .actions { justify-content:flex-end; }
[data-work-editor] .work-author { display:block; margin-top:20px; margin-bottom:12px; }
.note.is-editing { grid-template-columns:minmax(0,1fr); }
.note.is-editing > .work-actions { display:none; }
.note [data-record-form] { min-width:0; }
.note .actions { display:flex; flex-wrap:wrap; gap:10px; }
.note .actions > button { max-width:100%; }
.note.is-editing .record-feedback,.note-draft > [role=status] { margin-top:12px; }
@media(min-width:600px) and (max-width:800px) {
  .job-details { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .detail-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media(max-width:480px) {
  .note .actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .note .actions > button { padding:10px 8px; min-width:0; }
  .note .note-delete { grid-column:1 / -1; justify-self:end; margin-left:0; }
}

.job-details-fields { container-type:inline-size; }
@container(min-width:400px) {
  .detail-fields { grid-template-columns:repeat(2,minmax(0,21ch)); }
}

/* Reserve ordinary save feedback before text appears, without clipping errors. */
.record-feedback > [data-record-status],
.record-feedback > [data-record-status]:empty,
.work-draft > [role=status],.resource-draft > [role=status],
.note-draft > [role=status],.summary-draft > [role=status] {
  display:block; min-block-size:1.5em; line-height:1.5; margin-block:12px;
}
.record-feedback > [data-record-status],.record-feedback > [data-record-status]:empty { margin-block:0; }
[data-record="details"][data-save-state="saved"] [data-record-status] { display:block; }
[data-work-feedback-home]:has(> .record-feedback) { min-width:0; }

/* Headings claim spare space while values retain their right alignment. */
.resource-row,.labour-entry .resource-row { display:flex; flex-wrap:nowrap; align-items:start; gap:12px; }
.resource-row > h4,.labour-entry .resource-row > h4 {
  flex:1 1 50%; min-width:50%; width:auto; margin:0;
  overflow:hidden; white-space:nowrap; text-overflow:clip;
}
.resource-row > .resource-value,.labour-entry .resource-row > .resource-value {
  flex:0 1 auto; width:auto; max-width:calc(50% - 12px); margin:0 0 0 auto;
  overflow-wrap:anywhere; white-space:normal; text-align:right;
}
.resource-content > .resource-description,.resource-content > .resource-supplier {
  min-height:20px; margin:4px 0 0; line-height:20px;
}
.resource-content > .resource-description { text-overflow:clip; }

/* Compact expanded entries expose full data through a keyboard/touch popover. */
.compact-detail-trigger { display:none; }
:is([data-work-expanded],[data-work-editor]) .resource-entry { padding:6px 10px; margin-block:6px; }
:is([data-work-expanded],[data-work-editor]) .resource-entry .resource-content { position:relative; }
:is([data-work-expanded],[data-work-editor]) .resource-content > .resource-description,
:is([data-work-expanded],[data-work-editor]) .resource-content > .resource-supplier { display:none; }
:is([data-work-expanded],[data-work-editor]) .compact-detail-trigger {
  display:block; position:absolute; inset:0; width:100%; height:100%; min-height:0;
  padding:0; border:0; background:transparent; border-radius:3px;
}
.compact-detail-trigger:focus-visible { outline:2px solid #2165a8; outline-offset:2px; }
.item-detail-popover {
  max-width:min(480px,calc(100vw - 32px)); max-height:calc(100dvh - 32px);
  overflow:auto; padding:20px; border:1px solid var(--border); border-radius:8px;
  background:var(--panel,#fff); color:inherit; overflow-wrap:anywhere;
  box-shadow:0 4px 20px #0003;
}
.item-detail-popover h3 { margin-top:0; }
.item-detail-popover small { display:block; margin-block:12px; }

/* Keep long attachment lists inside the Work Item editor's viewport budget. */
[data-work-editor][open] { display:flex; flex-direction:column; max-height:calc(100dvh - 32px); overflow:auto; }
[data-work-editor] > :not([data-work-modal-attachments]) { flex-shrink:0; }
[data-work-modal-attachments] { flex:1 1 auto; min-height:64px; overflow-y:auto; overscroll-behavior:contain; scrollbar-gutter:stable; }
[data-work-modal-add] > .actions { margin-block:0 8px; }
[data-work-modal-attachments] .work-resource-group:first-child > h4 { margin-top:0; }
[data-work-editor] .work-author { margin-bottom:0; }
[data-work-feedback-host] { margin:12px 0; }
.empty-list { margin-block:12px; }

.note-delete-short { display:none; }
@media(max-width:480px) {
  .note .actions,.note-draft .actions { display:flex; flex-wrap:wrap; gap:10px; }
  .note .actions > button,.note-draft .actions > button { flex:0 0 auto; width:auto; min-width:0; padding:10px 12px; }
  .note .note-delete { margin-left:auto; }
  .note-delete-wide { display:none; }
  .note-delete-short { display:inline; }
}

/* Work Item save feedback belongs in its modal, not the card's home slot. */
[data-work-feedback-home] [data-record-status],
[data-work-feedback-home] [data-record-status]:empty { display:none; min-block-size:0; }

/* Routine save feedback has no visual line or reserved space. */
.record-feedback > [data-record-status],.record-feedback > [data-record-status]:empty,
.work-draft > [role=status],.resource-draft > [role=status],.note-draft > [role=status],
.summary-draft > [role=status] { min-block-size:0; }
[data-work-feedback-host]:not(:has(.record-feedback:not([hidden]))) { display:none; margin:0; }
.panel-subtotals { border-top:1px solid var(--border); margin-top:auto; padding-top:12px; }

/* Two measured resource rows, with complete values available in the detail popover. */
.resource-entry .resource-content {
  display:grid; grid-template-columns:minmax(0,1fr) var(--value-width,40%);
  grid-template-rows:auto auto; column-gap:12px; row-gap:4px; position:relative;
}
.resource-entry .resource-row,.labour-entry .resource-row { display:contents; }
.resource-entry .resource-row > h4,.labour-entry .resource-row > h4 {
  grid-column:1; grid-row:1; width:100%; min-width:0; max-width:100%; margin:0;
}
.resource-entry .resource-value,.labour-entry .resource-value {
  grid-column:2; grid-row:1; display:flex; flex-wrap:nowrap; justify-content:flex-end;
  align-items:start; gap:0; min-width:0; max-width:100%; width:100%; margin:0; line-height:20px;
}
.resource-units,.resource-subtotal {
  display:inline-block; min-width:0; min-height:0; max-width:100%; padding:0; margin:0;
  border:0; border-radius:0; background:transparent; font:inherit; line-height:20px;
  color:inherit; text-align:right; white-space:nowrap; overflow:hidden; text-overflow:clip;
}
.resource-units { flex:1 1 auto; }
.resource-subtotal { flex:0 1 auto; }
.value-separator { flex:0 0 auto; white-space:pre; }
.resource-content > .resource-description,.resource-content > .resource-supplier {
  grid-column:1 / -1; grid-row:2; margin:0; min-width:0; max-width:100%; min-height:20px;
  overflow:hidden; white-space:nowrap;
}
.resource-entry[data-value-layout=bottom] .resource-row > h4 { grid-column:1 / -1; }
.resource-entry[data-value-layout=bottom] .resource-value { grid-row:2; }
.resource-entry[data-value-layout=bottom] .resource-supplier { grid-column:1; }
.resource-entry[data-value-layout=split] .resource-content { grid-template-columns:minmax(0,50%) minmax(0,1fr); }
.resource-entry[data-value-layout=split] .resource-value { display:contents; }
.resource-entry[data-value-layout=split] .resource-units { grid-column:2; grid-row:1; width:100%; }
.resource-entry[data-value-layout=split] .resource-subtotal { grid-column:2; grid-row:2; width:100%; }
.resource-entry[data-value-layout=split] .value-separator { display:none; }
.resource-entry[data-value-layout=split] .resource-supplier { grid-column:1; }
:is([data-work-expanded],[data-work-editor]) .resource-entry .resource-content { grid-template-rows:auto; }
:is([data-work-expanded],[data-work-editor]) .resource-entry.compact-two-row .resource-content { grid-template-rows:auto auto; }
:is([data-work-expanded],[data-work-editor]) .compact-detail-trigger { grid-column:1 / -1; grid-row:1 / -1; }

/* Modals target half the viewport, growing only for usable fixed controls. */
[data-work-editor][open] { max-height:50dvh; }
[data-work-modal-attachments] { min-height:0; border:1px solid transparent; scrollbar-gutter:stable; }
[data-work-modal-attachments].has-scroll { border-color:var(--border); border-radius:4px; }
[data-work-modal-add] { margin-top:12px; padding-top:10px; }
[data-work-modal-add] > .actions { margin:0 0 6px; }
[data-work-modal-attachments] .work-resource-group:not([hidden]) { margin-top:0; }
[data-work-modal-attachments] .work-resource-group:not([hidden]) ~ .work-resource-group:not([hidden]) { margin-top:12px; }
[data-work-modal-totals] p { margin:4px 0; }
[data-work-editor] .work-author { margin-top:12px; }
.work-remove-short { display:none; }
@media(max-width:480px) {
  [data-work-editor] > .edit-actions { display:flex; flex-wrap:wrap; gap:10px; }
  [data-work-editor] > .edit-actions > button { flex:0 0 auto; width:auto; min-width:0; max-width:100%; padding:10px 12px; }
  [data-work-editor] .destructive-action { margin-left:auto; }
  [data-work-modal-add] > .actions { flex-wrap:wrap; gap:10px; }
  [data-work-modal-add] > .actions > button { padding:10px 12px; min-width:0; max-width:100%; }
  .work-remove-wide { display:none; }
  .work-remove-short { display:inline; }
}

/* Short-screen fallback scrolls the form/list body while keeping totals/actions visible. */
[data-work-editor] > .work-modal-body { display:flex; flex-direction:column; flex:1 1 auto; min-height:0; overflow:auto; }
.work-modal-body > form,.work-modal-body > [data-work-modal-add] { flex-shrink:0; }
.work-modal-body > [data-work-modal-attachments] { flex:1 1 auto; min-height:72px; }

/* Override earlier flex-row percentage caps now that values occupy a measured grid column. */
.resource-entry .resource-row > .resource-value,.labour-entry .resource-row > .resource-value { max-width:100%; width:100%; min-width:0; margin:0; }

/* A full lower-row value can use the whole content width without a phantom column gap. */
.resource-entry[data-value-layout=bottom] .resource-content { column-gap:0; }

/* Entry details are available from the full row, with separate action controls. */
.resource-entry { position:relative; }
.resource-entry > .compact-detail-trigger {
  display:block; position:absolute; inset:0; width:100%; height:100%; min-height:0;
  padding:0; border:0; background:transparent; border-radius:inherit; z-index:1;
}
.resource-entry .resource-units,.resource-entry .resource-subtotal { position:relative; z-index:2; }
.resource-entry > .resource-actions { position:relative; z-index:3; }
:is([data-work-expanded],[data-work-editor]) .resource-entry {
  border:0; border-radius:0; background:transparent; padding:2px 0; margin:0;
}
:is([data-work-expanded],[data-work-editor]) .resource-entry > .resource-actions { min-height:28px; padding:2px 8px; margin:0; }
:is([data-work-expanded],[data-work-editor]) .work-resource-group { margin-top:8px; }
:is([data-work-expanded],[data-work-editor]) .work-resource-group > h4 { margin-bottom:2px; }

/* Both summary dividers share the same content height and spacing. */
.panel-subtotals { font-size:12px; line-height:1.5; margin-bottom:0; }
.panel-subtotals > [data-section-totals] { margin:0; font-size:inherit; line-height:inherit; }
.work-columns > .panel > .panel-heading {
  align-items:center;
  flex-wrap:nowrap;
  margin-bottom:8px;
}
.work-columns > .panel > .panel-heading > .actions { flex-shrink:1; min-width:0; }
#resources-panel { container:resources-panel / inline-size; }
#resources-panel > .panel-heading > .actions { flex-wrap:nowrap; min-width:min-content; }
@container resources-panel (max-width:320px) {
  #resources-panel > .panel-heading > .actions { gap:8px; }
  #resources-panel > .panel-heading > .actions > button { padding-inline:8px; }
}
@container resources-panel (max-width:280px) {
  #resources-panel > .panel-heading { gap:8px; }
  #resources-panel > .panel-heading > .actions { gap:6px; }
  #resources-panel > .panel-heading > .actions > button { padding-inline:4px; font-size:13px; }
}
@container resources-panel (max-width:247px) {
  #resources-panel > .panel-heading { flex-wrap:wrap; }
}
#add-work-item { max-width:100%; }
@media(max-width:360px) {
  #add-work-item { padding-inline:10px; }
}
#resources-panel > [data-resource-list] > .work-resource-group:not([hidden]) { margin-top:0; }
#resources-panel > [data-resource-list] > .work-resource-group:not([hidden]) ~ .work-resource-group:not([hidden]) { margin-top:12px; }

/* Wide Work Item editors give attached entries their own full-height column. */
[data-work-editor] { width:1000px; }
[data-work-editor][open] { overflow:hidden; }
[data-work-editor] > .work-modal-body {
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px;
  flex:1 1 auto; min-height:0; padding:6px; overflow:auto;
}
.work-modal-body > form { align-content:start; align-self:start; width:100%; }
.work-modal-body > .work-modal-entries { display:flex; flex-direction:column; min-width:0; min-height:0; }
.work-modal-entries > [data-work-modal-add] { flex-shrink:0; margin:0; padding:0; border:0; }
.work-modal-entries > [data-work-modal-add] > .actions { margin:0 0 4px; gap:8px; }
.work-modal-entries > [data-work-modal-add] button { padding:10px 12px; }
.work-modal-entries > [data-work-modal-attachments] {
  flex:1 1 auto; min-height:72px; padding:5px; overflow:auto;
}
[data-work-modal-attachments] .work-resource-group:first-child { margin-top:0; }
@media(max-width:1000px) {
  #unsaved-close-dialog.resource-close-prompt [data-close-unsaved] {
    background:var(--danger);
    border-color:var(--danger);
    color:white;
    margin-inline-start:auto;
  }
  #unsaved-close-dialog.resource-close-prompt [data-close-unsaved] > span { display:none; }
  [data-work-editor][open] { top:var(--work-modal-top,72px); bottom:auto; margin-block:0; }
  [data-work-editor] > .work-modal-body { display:flex; flex-direction:column; gap:8px; }
  .work-modal-body > .work-modal-entries { flex:1 0 120px; }
  .work-modal-entries > [data-work-modal-add] { border-top:1px solid var(--border); padding-top:8px; }
}
@media(max-width:480px) {
  #unsaved-close-dialog > .actions { display:flex; flex-wrap:wrap; gap:10px; }
  #unsaved-close-dialog > .actions > button { flex:0 0 auto; min-width:0; width:auto; padding:10px 12px; }
  #unsaved-close-dialog.resource-close-prompt > .actions { flex-wrap:nowrap; gap:6px; }
  #unsaved-close-dialog.resource-close-prompt > .actions > button { padding-inline:5px; white-space:nowrap; }
}

/* Work Item editing keeps Labour and other Resources in separate compact lists. */
.work-modal-header { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:16px; align-items:start; padding-inline:6px; margin-bottom:12px; }
.work-modal-header > h2 { margin:0; }
.work-modal-header > [data-work-modal-add] { margin:0; padding:0; border:0; }
.work-modal-header [data-work-add-actions] { margin:0; gap:8px; align-items:start; }
.work-modal-header [data-work-add] { min-height:28px; padding:4px 8px; font-size:12px; }
.work-modal-body > .work-modal-fields { display:flex; flex-direction:column; gap:12px; min-width:0; min-height:0; }
.work-modal-fields > form { flex-shrink:0; margin:0; }
[data-work-modal-labour] { flex:1 1 auto; min-height:72px; padding:5px; overflow:auto; overscroll-behavior:contain; scrollbar-gutter:stable; border:1px solid transparent; border-radius:4px; }
[data-work-modal-labour].has-scroll { border-color:var(--border); }
[data-work-modal-labour] .work-resource-group { margin-top:0; }
[data-work-modal-labour] .work-resource-group > h4 { margin-top:0; }
.work-actions,.resource-actions { font-weight:400; }
#remove-dialog [data-attachment-description] { white-space:pre-line; margin-block:16px; }
#remove-dialog .removal-controls { display:flex; flex-wrap:wrap; gap:16px; align-items:flex-end; margin-top:16px; }
#remove-dialog [data-attachment-choice] { flex:1 1 220px; min-width:0; }
#remove-dialog [data-attachment-mode] { min-height:40px; }
#remove-dialog .removal-controls > .actions { margin:0 0 0 auto; flex-wrap:wrap; }
@media(max-width:1000px) {
  .work-modal-body > .work-modal-fields { flex:0 0 auto; }
  [data-work-modal-labour] { flex:0 0 120px; }
}
@media(max-width:480px) {
  .work-modal-header { grid-template-columns:minmax(0,1fr); gap:8px; }
  .work-modal-header [data-work-add-actions] { justify-content:flex-start; }
  #remove-dialog .removal-controls > .actions { gap:8px; }
  #remove-dialog .removal-controls button { padding:8px 12px; }
}
#remove-dialog.work-item-removal { width:760px; }
#remove-dialog .removal-controls [data-attachment-choice] label { margin-top:0; }
#remove-dialog .removal-controls [data-attachment-mode] { width:100%; margin-bottom:0; }

/* Removal choices have a bounded field and their own footer row. */
#remove-dialog .removal-controls { flex-direction:column; align-items:stretch; }
#remove-dialog .removal-controls [data-attachment-choice] { flex:0 0 auto; width:360px; max-width:100%; min-width:0; }
#remove-dialog .removal-controls [data-attachment-mode] { min-width:0; max-width:100%; }
#remove-dialog .removal-controls > .actions { align-self:flex-end; }
#remove-dialog [data-remove-description] { overflow-wrap:anywhere; }
[data-modal]:focus { outline:none; }
[data-work-modal-mobile-add] { display:none; }
@media(max-width:1000px) {
  [data-work-modal-mobile-add] { display:block; flex-shrink:0; }
  [data-work-modal-mobile-add] > .actions { margin:0 0 6px; gap:6px; }
  [data-work-modal-mobile-add] [data-work-add] { min-height:24px; padding:2px 6px; font-size:11px; }
}

/* Labour descriptions remain available only in their existing summary scopes. */
.labour-description-preview { display:none; }
.labour-description-preview { color:var(--muted); }

/* Desktop removal fits the summary, choice and footer in one content column. */
@media(min-width:1001px) {
  #remove-dialog.work-item-removal { width:410px; }
  #remove-dialog.work-item-removal .removal-controls [data-attachment-choice] { width:100%; }
  #remove-dialog.work-item-removal .removal-controls > .actions { align-self:stretch; margin:0; }
}

/* Group headings stay flush while their Work Item entries nest beneath them. */
:is([data-work-expanded],[data-work-editor]) [data-group-entries] { padding-inline-start:12px; }

/* One measured decision supplies at most two rows with complete values taking priority. */
.resource-entry[data-row-layout] .resource-content {
  display:grid; grid-template-columns:minmax(0,1fr);
  grid-template-rows:repeat(var(--resource-rows,1),20px); column-gap:0; row-gap:4px;
}
.resource-entry[data-row-layout] .resource-row > h4 {
  grid-column:1; grid-row:1; width:var(--row-title-width); min-width:0; max-width:100%;
}
.resource-entry[data-row-layout] .resource-value {
  grid-column:1; grid-row:var(--row-value-line); justify-self:end;
  display:flex; width:var(--row-value-width); max-width:100%; margin:0;
}
.resource-entry[data-row-layout] .resource-content > .resource-description:not(.resource-secondary),
.resource-entry[data-row-layout] .resource-content > .resource-supplier:not(.resource-secondary),
.resource-entry[data-row-layout] .labour-description-preview:not(.resource-secondary) { display:none; }
.resource-entry[data-row-layout] .resource-secondary {
  display:block; grid-column:1; grid-row:2; width:var(--row-secondary-width);
  min-width:0; max-width:100%; min-height:0; margin:0; line-height:20px;
  margin-inline-start:var(--row-secondary-indent);
  white-space:nowrap; overflow:hidden;
}
.resource-entry[data-row-layout=split] .resource-value { display:contents; }
.resource-entry[data-row-layout=split] .resource-units,
.resource-entry[data-row-layout=split] .resource-subtotal {
  grid-column:1; justify-self:end; display:block; max-width:100%;
}
.resource-entry[data-row-layout=split] .resource-units { grid-row:1; width:var(--row-top-values); display:flex; }
.resource-entry[data-row-layout=split] .resource-subtotal { grid-row:2; width:var(--row-bottom-values); }
.resource-entry[data-row-layout=split] .value-separator { display:none; }

.resource-entry[data-row-layout] .resource-units { display:flex; justify-content:flex-end; align-items:baseline; }
.resource-quantity,.resource-unit-charge { flex:0 0 auto; white-space:pre; }
.resource-unit-label { flex:0 1 auto; min-width:0; white-space:nowrap; overflow:hidden; }

/* Mobile saved-entry actions stay together with concise removal labels. */
.entry-remove-kind { white-space:pre; }
@media(max-width:1000px) {
  .resource-edit-actions { display:flex; flex-wrap:nowrap; gap:10px; }
  .resource-edit-actions > button { flex:0 0 auto; min-width:0; white-space:nowrap; padding-inline:12px; }
  .resource-edit-actions .entry-remove-kind { display:none; }
}
@media(max-width:360px) {
  .resource-edit-actions { gap:8px; }
  .resource-edit-actions > button { padding-inline:10px; }
}
