/* First operating-OS cleanup: presentation only; permissions and business states stay in app.js. */
:root {
  --ui-space-1: .375rem; --ui-space-2: .75rem; --ui-space-3: 1rem; --ui-space-4: 1.5rem;
  --ui-radius: .625rem; --ui-control: 2.75rem;
  --surface: #fff; --border: #dce3dc; --ui-soft: #f3f6f2; --ui-focus: #315c86;
}
[hidden] { display: none !important; }
.ui-secondary-details { min-width:0; }
.ui-secondary-details > summary,.service-case-intake > summary { cursor:pointer;min-height:44px;padding:10px 0;font-weight:700; }
.connection-item .connection-setup-details { margin-top:4px;border-top:1px solid var(--border); }
.connection-setup-details > :not(summary) { margin:8px 0; }
.app-shell { font-size: .9rem; line-height: 1.55; }
.app-shell :where(h1,h2,h3,h4,h5,h6) { line-height: 1.4; overflow-wrap: anywhere; }
.app-shell :where(p,li,small,span,label,summary) { overflow-wrap: anywhere; }
.app-shell :where(input,select,textarea,button) { font: inherit; }
.app-shell :where(input,select,textarea) { min-width: 0; max-width: 100%; color: var(--ink); }
.app-shell :where(select,textarea) { width: 100%; border: 1px solid #bfcbbf; border-radius: var(--ui-radius); background: var(--surface); padding: .625rem .75rem; }
.app-shell :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]),select) { min-height: var(--ui-control); }
.app-shell :where(textarea) { min-height: 5.25rem; resize: vertical; line-height: 1.6; }
.app-shell :where(input[type=checkbox],input[type=radio]) { width: 1.1rem; height: 1.1rem; min-height: 0; flex: 0 0 auto; margin: .25rem; accent-color: var(--nav); }
.app-shell :where(button) { min-height: var(--ui-control); padding: .625rem .875rem; line-height: 1.4; }
.content :where(button) { background: var(--ui-soft); color: #254938; border: 1px solid #d4dfd3; }
.app-shell :where(button:disabled) { cursor: not-allowed; opacity: .58; }
.app-shell :where(a,button,input,select,textarea,summary):focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
.content :where(button + button) { margin-inline-start: .375rem; }
.content :where(label) { gap: .375rem; line-height: 1.5; }
.content :where(form) { min-width: 0; }
.content :where(details) { min-width: 0; }
.content :where(details > summary) { cursor: pointer; min-height: 2.75rem; padding: .625rem .25rem; line-height: 1.5; font-weight: 700; color: #385642; }
.content :where(details[open] > summary) { margin-bottom: .625rem; }
.content :where(details details) { margin-block: .625rem; }
.content :where([role=status]) { line-height: 1.6; }
.content :where([aria-invalid=true]) { border: 2px solid #9e3933; }
.content :where(table) { display: block; width: 100%; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin-block: .875rem; font-size: .85rem; }
.content :where(table th,table td) { padding: .75rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; line-height: 1.55; }
.content :where(table tr:first-child th) { color: #385642; background: var(--ui-soft); }
.content :where(table th) { font-weight: 700; }
.content :where(code,pre) { max-width: 100%; overflow: auto; overflow-wrap: anywhere; }
.content :where(pre) { white-space: pre-wrap; }
.sidebar { padding-block: 24px 16px; }
.primary-nav { margin-top: 24px; gap: 3px; }
.primary-nav a { padding: 9px 12px; min-height: 46px; gap: 2px; font-size: .85rem; }
.primary-nav small { font-size: .7rem; }
.sidebar-footer { padding-top: 14px; }
.topbar { padding: 16px 28px; gap: 16px; }
.topbar h1 { font-size: 1.3rem; }
.account { min-width: 0; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
#session-label { overflow-wrap: anywhere; max-width: 23rem; font-size: .75rem; }
#operations-return { min-height: 36px; }
.content { max-width: 1360px; padding: 24px 28px 56px; }
.content > section { min-width: 0; }
.panel { padding: 24px; margin-top: 20px; border-radius: 12px; }
.panel-heading { gap: 12px; flex-wrap: wrap; }
.panel h2 { font-size: 1.2rem; margin-bottom: 8px; }
.panel h3 { font-size: 1rem; }
.section-lede { max-width: 78ch; font-size: .87rem; line-height: 1.65; margin-bottom: 16px; }
.eyebrow { font-size: .68rem; letter-spacing: .1em; }
.tag,.badge { white-space: normal; line-height: 1.5; max-width: 100%; }
.operations-launcher { padding: 22px 24px; gap: 16px; }
.operations-launcher h2 { font-size: 1.55rem; }
.operations-destinations { gap: 8px; padding-top: 16px; }
.operations-destinations a { padding: 12px; gap: 5px; min-height: 88px; }
.operations-task-nav { gap: 8px; margin: 16px 0; }
.operations-task-nav a { padding: 9px 12px; }
.operations-source-tools { padding: 12px 16px; margin: 16px 0; background: #fafbf8; }
.ops-metrics { padding: 20px 24px; }
.ops-metrics-grid { gap: 8px; }
.ops-metrics-grid article { min-width: 0; padding: 12px; }
.owner-decision-card { display: block !important; padding: 18px !important; }
.owner-decision-card > div:first-child { min-width: 0; }
.owner-decision-card .owner-decision-actions { margin-top: 14px; }
.owner-decision-actions .work-action:not(.work-action-secondary) { color: #fff; background: var(--nav); border-color: var(--nav); }
.owner-decision-actions .work-action.work-action-secondary { color: #385642; background: #fff; border-color: #c4d1c3; }
.owner-decision-card .owner-decision-facts { line-height: 1.6; padding-left: 18px; }
.owner-decision-card .owner-decision-facts > li { padding-block: 5px; }
.owner-decision-card .owner-decision-facts > li,.owner-decision-detail li { display: list-item; min-height: 0; background: none; border: 0; border-radius: 0; }
.owner-decision-card .owner-decision-other { margin-top: 12px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--ui-radius); }
.owner-decision-detail { margin: 10px 0; border-top: 1px solid var(--line); }
.owner-decision-detail ul { margin-top: 0; padding-left: 18px; }
.owner-decision-impact { margin-top: 10px; font-size: .83rem; }
.work-action-status { margin-bottom: 0; }
.ui-section-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ui-section-links a { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; color: #284d39; background: var(--ui-soft); font-weight: 700; text-decoration: none; }
.ui-context-detail { margin-block: 12px; border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; background: #fafbf8; }
.imweb-changes { padding: 18px; margin-block: 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.imweb-changes > p { margin-bottom: 12px; }
.imweb-changes > [role=status] { padding: 10px 12px; border-left: 3px solid #6c7d84; background: var(--ui-soft); font-weight: 700; }
.imweb-changes > div:first-of-type { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.imweb-changes > div:first-of-type input { flex: 1 1 20rem; width: auto; }
.imweb-changes > div:first-of-type details { flex-basis: 100%; }
.imweb-changes form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.imweb-changes form > div,.imweb-changes form > details { grid-column: 1 / -1; }
.imweb-changes form > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.imweb-changes form label:has(textarea) { grid-column: 1 / -1; }
.imweb-changes form button { align-self: end; }
.imweb-changes > details { margin-top: 12px; border-top: 1px solid var(--line); }
.imweb-changes > details button { margin: 4px; }
.imweb-changes > div:has(> table) { margin-top: 16px; }
.imweb-changes :where(table th,table td) { min-width: 8rem; }
.order-finance-lookup,.service-case-controls { flex-wrap: wrap; gap: 12px; }
.supplier-line-form { gap: 12px; }
.order-workbench-panel,.service-case-detail,.customer-directory,.content-repository,.product-summary { min-width: 0; }
.order-staff-list { display: grid; gap: 8px; padding: 0; list-style: none; }
.order-staff-list-item { min-width: 0; }
.order-staff-list-item button { width: 100%; text-align: start; white-space: normal; font-weight: 600; }
.order-workbench-panel > h5,.order-fulfillment-snapshot h5 { font-size: 1rem; margin: 20px 0 10px; }
.order-workbench-line { padding: 14px; margin-block: 12px; border: 1px solid var(--line); border-radius: 10px; line-height: 1.7; }
.order-workbench-line > button { margin: 8px 6px 0 0; }
.order-line-support { margin-top: 12px; border-top: 1px solid var(--line); }
.order-line-support > button { margin: 4px; }
.order-workbench-demo-label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.monitoring-table-wrap { overscroll-behavior-inline: contain; }
@media(max-width:1100px) {
  .topbar { padding-inline: 22px; }
  .content { padding-inline: 22px; }
}
@media(max-width:760px) {
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar > div:not(.account) { flex: 1; min-width: 0; }
  .topbar h1 { font-size: 1.125rem; }
  .account { flex-basis: 100%; justify-content: flex-start; gap: 6px; }
  #session-label { max-width: 100%; }
  .account #logout { margin-left: auto; }
  .content { padding: 16px 12px 40px; }
  .panel { padding: 18px 16px; margin-top: 16px; }
  .operations-launcher { padding: 18px 16px; gap: 14px; }
  .operations-launcher h2 { font-size: 1.35rem; }
  .operations-destinations a { min-height: 88px; }
  .ops-metrics { padding: 18px 16px; }
  .ops-metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .owner-decision-card { padding: 14px !important; }
  .work-summary-list li.work-row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; min-width: 0; }
  .work-summary-list li.work-row > div:first-child { flex: 0 1 auto; width: 100%; max-width: 100%; }
  .work-row .work-action-bar { max-width: 100%; justify-content: flex-start; }
  .work-summary-list .work-quick-judgment-form input,.work-summary-list .work-quick-judgment-form select { min-width: 0; }
  .owner-decision-actions { flex-wrap: wrap; }
  .owner-decision-other > * { max-width: 100%; }
  .imweb-changes { padding: 14px 12px; }
  .imweb-changes form,.imweb-changes form > div { grid-template-columns: minmax(0,1fr); }
  .imweb-changes > div:first-of-type input { flex-basis: 100%; }
  .content :where(table th,table td) { padding: 10px; }
  .ui-section-links a { flex: 1 1 auto; text-align: center; }
  .mobile-nav { top: 0; max-height: 65vh; }
  section[id],main[id] { scroll-margin-top: 190px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
