/* Operio workspace 2.0 — screen-only presentation, no print/data changes.
   Neutral work surfaces, green actions, visible operational status labels. */
@media screen {
  :root {
    --canvas:#f7f5f0; --surface:#fff; --surface-soft:#f5f6f3;
    --ink:#24332d; --muted:#68756e; --border:#e0e6e2;
    --accent:#244743; --accent-hover:#183631; --accent-soft:#eaf1ed;
    --navy:#244743; --gold:#b58b3b; --shadow:0 1px 2px rgb(28 48 37 / 3%);
    --focus:#377d5c; --radius:10px; --radius-sm:6px; --radius-md:10px;
    --radius-lg:12px; --radius-xl:16px;
    --success:#286649; --warning:#94611b; --error:#b43d37; --info:#386cad;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    font-size:14px; line-height:1.5; color-scheme:light;
  }
  [data-theme="dark"] {
    --canvas:#161e1a; --surface:#202b25; --surface-soft:#26322b;
    --ink:#e7eee8; --muted:#afbeb3; --border:#39473e;
    --accent:#7ccba0; --accent-hover:#9edbb7; --accent-soft:#2c4436;
    --navy:#7ccba0; --gold:#7ccba0; --focus:#9edbb7;
    --shadow:0 1px 3px rgb(0 0 0 / 15%); color-scheme:dark;
  }
  body,.main { background:var(--canvas); color:var(--ink); }
  button,input,select,textarea { font:inherit; }
  button { -webkit-tap-highlight-color:transparent; }
  button:active:not(:disabled) { transform:none; }
  button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible {
    outline:2px solid var(--focus); outline-offset:3px;
  }
  button:disabled { opacity:.48; cursor:not-allowed; }
  :is(button,input,select,textarea,summary) { transition:background-color 140ms,border-color 140ms,box-shadow 140ms,color 140ms; }
  :is(.panel,.card,.record,.facts span,.hub-card,.material-order-row) { word-break:normal; overflow-wrap:break-word; }
  :is(h1,h2,h3) { color:var(--ink); text-wrap:balance; }
  :is(p,li,dd) { line-height:1.6; }
  .muted,.count,.small,.record,.record small,.facts span,.row small,.card p { color:var(--muted); }
  .small { font-size:12px; }
  .help-shortcuts { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:10px; }
  .help-shortcuts button { text-align:left; }
  .sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

  /* Global shell: compact, restrained navigation and a useful search header. */
  .shell { grid-template-columns:238px minmax(0,1fr); }
  .sidebar { padding:21px 12px 12px; background:#244743; color:#fff; border-right:1px solid #244743; height:100vh; height:100dvh; }
  .brand { gap:10px; padding:0 10px 23px; border-color:var(--border); }
  .brand .mark,.mark { width:38px; height:38px; border-radius:10px; background:#c5a064; color:#183631; font-size:23px; font-weight:800; }
  .brand strong { font-size:23px; letter-spacing:-.045em; }
  .brand small { color:#c5d7d0; font-size:8px; letter-spacing:.12em; }
  .nav { gap:15px; padding-top:18px; scrollbar-width:thin; scrollbar-color:#cbd6ce transparent; }
  .nav-label { padding:4px 11px; color:#b6cec5; font-size:9px; letter-spacing:.12em; font-weight:650; }
  .nav button { gap:10px; min-height:40px; padding:9px 11px; border-radius:7px; color:#e7f0ec; font-size:13px; font-weight:550; }
  .nav button:hover { background:#365953; color:#fff; }
  .nav button.active { background:#3b5f58; color:#fff; box-shadow:inset 3px 0 #c5a064; font-weight:650; }
  .nav button svg { width:18px; height:18px; }
  .sidefoot { padding:12px 3px 4px; border-color:var(--border); color:var(--muted); }
  .sidefoot .account-trigger { gap:9px; min-height:52px; margin:0; padding:7px 8px; color:var(--ink); background:var(--surface)!important; border:1px solid var(--border)!important; border-radius:8px; }
  .sidefoot .account-trigger:hover,.sidefoot .account-trigger:focus-visible { background:var(--surface-soft)!important; }
  .sidefoot .account-trigger strong { color:var(--ink); }
  .sidefoot .account-trigger small { color:var(--ink); opacity:.8; }
  .account-trigger>span:last-child { min-width:0; }
  .account-trigger strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; font-weight:650; }
  .account-trigger small { color:var(--muted); font-size:10px; }
  .sidefoot>button:last-child { min-height:32px; margin:2px 8px 0; color:#d3e3db; font-size:11px; text-decoration:none; }
  .avatar,.home-avatar { background:#e2ebe4; color:#356148; border-radius:50%; }
  .top { min-height:68px; height:auto; padding:12px 28px; gap:10px; border-color:var(--border); background:var(--surface); }
  .top>div:first-of-type { min-width:0; }
  .top strong { font-size:13px; font-weight:650; }
  .top small { display:block; font-size:11px; margin-top:1px; color:var(--muted); }
  .top-actions { display:flex; align-items:center; gap:10px; flex:none; }
  .sidebar-toggle { margin-right:4px; width:36px; height:36px; min-height:36px; background:transparent; border-color:var(--border); border-radius:7px; color:var(--muted); }
  .top-help,.top-account { width:36px; height:36px; min-height:36px; font-size:14px; background:var(--surface)!important; color:var(--muted)!important; }
  .top-account { background:var(--accent-soft)!important; color:var(--accent)!important; border-color:transparent!important; font-weight:700; }
  .workspace-search-trigger { display:flex; align-items:center; gap:9px; width:260px; min-height:38px; padding:7px 11px; border:1px solid var(--border); border-radius:8px; background:var(--surface-soft); color:var(--muted); font-size:12px; text-align:left; }
  .workspace-search-trigger>span:first-child { font-size:25px; line-height:20px; }
  .workspace-search-trigger kbd { margin-left:auto; border:1px solid var(--border); border-radius:4px; padding:1px 4px; background:var(--surface); font-size:10px; font-family:inherit; white-space:nowrap; }
  .workspace-search-trigger:hover { border-color:#b8c9be; background:var(--surface); }
  .content { max-width:1640px; padding:28px 32px 90px; }
  .heading { align-items:center; margin-bottom:24px; gap:20px; }
  .heading h1,.os-head h1 { margin:4px 0 0; font-size:28px; letter-spacing:-.035em; line-height:1.25; font-weight:650; }
  .heading p { max-width:760px; margin-top:7px; font-size:13px; color:var(--muted); }
  .eyebrow { font-size:9px; font-weight:650; letter-spacing:.13em; color:var(--muted); }
  .heading .actions { gap:8px; }
  .section-header h2 { font-size:17px; font-weight:650; letter-spacing:-.02em; }
  .panel h2,.panel h3 { font-size:17px; font-weight:650; line-height:1.4; }
  .detail-head h2 { font-size:26px; font-weight:650; }
  .back { display:inline-flex; align-items:center; min-height:36px; margin-bottom:14px; padding:4px 0; color:var(--muted); font-size:12px; font-weight:550; }
  .back:hover { color:var(--accent); }

  /* Shared controls and surfaces. Avoid heavy nesting and gold underlines. */
  .primary,.secondary,.danger,.os-filter-button { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:9px 14px; border-radius:7px; font-size:13px; line-height:1.35; font-weight:600; text-decoration:none; }
  .primary { background:var(--accent); color:#fff; border:1px solid var(--accent); }
  .primary:hover:not(:disabled) { background:var(--accent-hover); border-color:var(--accent-hover); }
  .secondary,.os-filter-button { background:var(--surface); color:var(--ink); border:1px solid #d5ded8; }
  .secondary:hover:not(:disabled),.os-filter-button:hover { background:var(--surface-soft); border-color:#b7c8bd; }
  .danger { background:#fff4f2; color:#a13d36; border:1px solid #f0d7d2; }
  .danger:hover:not(:disabled) { background:#fce9e5; }
  .link { color:var(--accent); text-decoration:none; font-weight:550; text-align:left; border-radius:4px; }
  .link:hover { color:var(--accent-hover); text-decoration:underline; text-underline-offset:3px; }
  .link:focus-visible { text-decoration:underline; }
  .text-action { color:var(--accent); min-height:36px; font-size:12px; font-weight:600; }
  .panel,.card,.detail,.metric,.row { border:1px solid var(--border); border-radius:10px; box-shadow:none; background:var(--surface); }
  .panel { padding:22px; margin-bottom:18px; }
  .panel>.panel { padding:18px 0; border-width:1px 0 0; border-radius:0; }
  .card { padding:18px; }
  .row { padding:15px 17px; gap:16px; }
  .row strong { font-weight:600; }
  .row:hover,.hub-card:hover { border-color:#b5c8bc; box-shadow:0 2px 8px rgb(28 55 39 / 5%); }
  .empty { padding:42px 22px; font-size:13px; line-height:1.6; color:var(--muted); }
  .record { padding:14px 0; border-color:var(--border); }
  .record strong,.facts b { color:var(--ink); font-weight:600; }
  .facts { gap:18px 32px; border-color:var(--border); padding-top:18px; }
  .facts span { min-width:100px; font-size:12px; }
  .facts b { font-size:11px; margin-bottom:5px; }
  .buttons { gap:8px; }
  .stack { gap:16px; }
  .stack label,.hub-filters label,.schedule-filter label,.report-filters label { gap:7px; color:var(--ink); font-size:12px; font-weight:600; }
  .content :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  .person-drawer :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]),
  .material-picker :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]),
  .auth-card :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]) {
    min-height:42px; max-width:100%; padding:10px 12px; border:1px solid #d4ded7; border-radius:7px;
    background:var(--surface); color:var(--ink); font-size:14px; font-weight:400; line-height:1.4;
  }
  .content :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):focus { border-color:var(--focus); }
  input::placeholder,textarea::placeholder { color:#8a958e; opacity:1; }
  .content input[type="search"] { padding-left:14px; }
  .content :is(input[type="checkbox"],input[type="radio"]) { width:18px; height:18px; min-width:18px; min-height:18px; accent-color:var(--accent); flex:none; }
  :is(.content,.person-drawer) textarea { resize:vertical; }
  summary { cursor:pointer; font-weight:600; }
  .error,.notice,.warning { border-radius:8px; padding:12px 15px; font-size:13px; line-height:1.55; }
  .notice { background:#edf7ef; color:#286044; border:1px solid #d4e7d8; }
  .warning { background:#fff8e9; color:#845c1c; border:1px solid #f0e2bf; }
  .error { background:#fff0ed; color:#a14035; border:1px solid #f1d7d1; }
  .pill { padding:4px 8px; border-radius:5px; background:#edf1ef; color:#58685d; font-size:10px; font-weight:600; line-height:1.45; white-space:nowrap; word-break:normal; }
  .pill.available,.pill.open,.pill.planned { background:#edf1ef; color:#58685d; }
  .pill.assigned,.pill.accepted { background:#edf1f8; color:#476383; }
  .pill.in_progress { background:#eaf2fd; color:#38649b; }
  .pill.verification { background:#f0eafb; color:#765596; }
  .pill.completed { background:#e7f3eb; color:#286c48; }
  .pill.blocked,.pill.overdue,.pill.paused { background:#fcf1db; color:#906421; }
  .pill.cancelled,.pill.inactive { background:#f0f1f1; color:#757c78; }
  .metrics,.schedule-metrics { gap:10px; }
  .metric { padding:16px 18px; }
  .metric strong { font-size:26px; font-weight:650; line-height:1.2; font-variant-numeric:tabular-nums; }
  .metric span { display:block; margin-top:8px; font-size:11px; color:var(--muted); }
  .metric.alert { border-color:#e8d9b5; }

  /* Tables: clear headers, predictable rhythm, natural wrapping. */
  .table-wrap,.hub-table-wrap,.team-table-wrap { border:1px solid var(--border); border-radius:10px; background:var(--surface); scrollbar-width:thin; }
  :is(.table,.hub-table,.team-table) { background:var(--surface); border-collapse:collapse; font-size:13px; }
  :is(.table,.hub-table,.team-table) :is(th,td) { padding:14px 16px; border-bottom:1px solid var(--border); vertical-align:middle; text-align:left; word-break:normal; overflow-wrap:break-word; }
  :is(.table,.hub-table,.team-table) th { background:var(--surface-soft); color:var(--muted); text-transform:none; font-weight:550; letter-spacing:0; font-size:12px; white-space:nowrap; }
  :is(.table,.hub-table,.team-table) tbody tr:last-child td { border-bottom:0; }
  :is(.table,.hub-table,.team-table) tbody tr:hover { background:#f9fbf9; }
  :is(.table,.hub-table,.team-table) .link { padding:4px 0; font-weight:550; color:var(--ink); text-decoration:none; }
  :is(.table,.hub-table,.team-table) .link:hover { color:var(--accent); }
  :is(.table,.hub-table,.team-table) td:last-child { white-space:normal; }
  .table td .pill { vertical-align:middle; }

  /* Mode switches and operational task board. */
  .task-segmented { display:inline-flex; width:max-content; max-width:100%; gap:2px; margin-bottom:20px; padding:4px; border:1px solid var(--border); border-radius:8px; background:#edf0ee; }
  .task-segmented button { min-width:90px; min-height:36px; padding:7px 13px; border-radius:5px; font-size:12px; font-weight:550; color:var(--muted); }
  .task-segmented button.active { background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgb(28 48 37 / 10%); font-weight:650; }
  .hub-shortcuts { gap:7px; margin-bottom:10px; }
  .hub-shortcuts button { border-radius:6px; border-color:var(--border); font-size:12px; font-weight:550; }
  .hub-shortcuts button.active { background:var(--accent-soft); border-color:#b9d4c3; color:var(--accent); }
  .os-head { margin-bottom:18px; align-items:center; }
  .os-head>.buttons { margin:0; }
  .os-head>div:first-child p { margin-top:8px; font-size:12px; }
  .os-view-count { margin-bottom:16px; }
  .os-filter-panel { padding:18px; border-radius:10px; }
  .hub-filters { gap:12px; }
  .kanban { grid-template-columns:repeat(4,minmax(245px,1fr)); gap:14px; padding:0 1px 18px; }
  .kanban-column { min-height:440px; padding:12px; border:1px solid var(--border); border-radius:10px; background:#eff2f0; }
  .kanban-column h3 { gap:8px; margin:0 0 12px; padding:4px 2px 8px; font-size:12px; font-weight:650; }
  .kanban-column h3 small { height:auto; min-height:20px; padding:1px 5px; background:var(--surface); color:var(--muted); font-size:10px; white-space:nowrap; border:1px solid var(--border); border-radius:4px; }
  .kanban-column h3::before { width:7px; height:7px; border-radius:50%; }
  .hub-card { margin-bottom:10px; border:1px solid #dce4de; border-radius:8px; box-shadow:0 1px 2px rgb(28 48 37 / 3%); overflow:hidden; }
  .hub-card-head { padding:12px 13px 2px; }
  .hub-card-head small { font-size:10px; letter-spacing:.025em; }
  .hub-card-title { padding:8px 13px 8px; font-size:13px; font-weight:650; line-height:1.45; color:var(--ink); }
  .hub-card p { padding:0 13px 12px; min-height:0; font-size:11px; color:var(--muted); }
  .hub-card-foot { padding:9px 13px; gap:8px; border-color:var(--border); }
  .hub-card-foot small { font-size:10px; }
  .hub-card-bottom { padding:3px 8px 3px 13px; border-color:var(--border); }
  .hub-card-bottom small { font-size:10px; }
  .hub-card-select { min-height:30px; }
  .hub-card.selected,.pending-card.selected { border-color:var(--accent); box-shadow:0 0 0 2px #25634b1a; }
  .card-menu-trigger { width:34px; min-width:34px; min-height:34px; border-radius:5px; font-size:22px; color:var(--muted); }
  .kanban-selection-tools { margin-bottom:15px; font-size:12px; }
  .kanban-selection-tools label { min-height:34px; }
  .group-progress { height:5px; margin:0 13px 13px; background:#e8eee9; }
  .group-progress span { background:#448664; }
  .pending-actions { border-radius:8px; border-color:#cce0d2; background:var(--accent-soft); }
  .group-task { gap:18px; padding:16px 4px; font-size:13px; }
  .group-task:hover { background:var(--surface-soft); color:var(--accent); }
  .group-task small { font-size:11px; }
  .calendar-controls { gap:12px; margin:16px 0; }
  .calendar-day { min-height:132px; padding:10px; border-color:var(--border); border-radius:8px; background:var(--surface); }
  .calendar-day.today { border-color:var(--accent); box-shadow:inset 0 2px var(--accent); }
  .calendar-day.outside { opacity:.5; }
  .calendar-day strong { font-size:12px; font-weight:600; margin-bottom:9px; }
  .calendar-event { padding:6px 7px; border-left:2px solid #72a18a; background:#edf5ef; color:#355b43; font-size:11px; border-radius:3px; line-height:1.4; }
  .calendar-event:hover { background:#dfeee3; }

  /* Execution, plans and forms use the same low-noise rhythm. */
  .order-detail-tabs { border-radius:8px; }
  .order-detail-tabs button { border-radius:5px; }
  .step { padding:20px 0; border-color:var(--border); }
  .step .number { color:var(--muted); font-weight:600; }
  .step label { font-size:14px; line-height:1.5; }
  .step .hint { font-size:12px; color:var(--muted); }
  .answer-choice span,.answer-list label { border-radius:7px; font-size:13px; font-weight:550; }
  .answer-choice input:checked+span { background:var(--accent); border-color:var(--accent); color:#fff; }
  .answer-choice input:focus-visible+span { outline:2px solid var(--focus); outline-offset:2px; }
  .execution-timer-panel #executionTimer { font-size:28px; font-weight:550; letter-spacing:.02em; }
  .plan-table .link { color:var(--ink); }
  .plan-asset-list { gap:0 24px; }
  .plan-asset-list .record { padding:13px 0; border-width:0 0 1px; border-radius:0; }
  .plan-asset-picker,#planAssetAssignment .plan-asset-options { border-radius:8px; }
  .plan-asset-options label { min-height:42px; font-size:13px; border-radius:4px; }
  .plan-asset-options label:hover { background:var(--accent-soft); }
  .wizard-progress { gap:6px; }
  .wizard-progress span { border-radius:7px; background:var(--surface-soft); color:var(--muted); font-size:12px; font-weight:550; }
  .wizard-progress span.active { background:var(--accent); color:#fff; }
  .wizard-progress span.done { background:var(--accent-soft); color:var(--accent); }
  .wizard-step { border-radius:8px; background:var(--surface-soft); }
  .rule-toggle { border-radius:8px; min-height:52px; }
  .rule-toggle:has(input:checked) { background:var(--accent-soft); border-color:#c0d6c8; }

  /* Asset workspace: table and real hierarchical tree share toolbar and actions. */
  .assets-workspace { padding:0; border:1px solid var(--border); border-radius:12px; background:var(--surface); overflow:visible; }
  .assets-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px; border-bottom:1px solid var(--border); flex-wrap:wrap; }
  .assets-title { display:block; min-width:0; }
  .assets-title p { margin:0 0 3px; color:var(--muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
  .assets-title h1,.assets-title h2 { margin:0; font-size:23px; font-weight:650; letter-spacing:-.025em; line-height:1.35; }
  .assets-title svg { width:22px; height:22px; color:var(--ink); flex:none; }
  .assets-controls { display:flex; align-items:center; gap:10px; flex-wrap:wrap; min-width:0; }
  .assets-search { display:flex; align-items:center; gap:8px; min-width:220px; }
  .assets-search input { width:280px; }
  .assets-search svg { flex:none; width:18px; height:18px; color:var(--muted); }
  .assets-workspace .asset-category-tabs { display:flex; gap:2px; margin:0; padding:3px; border:1px solid var(--border); border-radius:7px; background:var(--surface-soft); flex-wrap:nowrap; }
  .assets-workspace .asset-category-tabs button { display:flex; flex-direction:row; gap:6px; min-height:34px; padding:7px 10px; border:0; border-radius:4px; background:transparent; font-size:12px; font-weight:550; white-space:nowrap; color:var(--muted); }
  .assets-workspace .asset-category-tabs button.active { background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgb(20 40 28 / 12%); }
  .assets-workspace .asset-category-tabs small { color:var(--muted); font-size:10px; }
  .assets-workspace .asset-category-tabs button>span:first-child { font-size:inherit; line-height:inherit; }
  .assets-workspace .asset-category-tabs svg { width:16px; height:16px; }
  .asset-view-switch { display:inline-flex; gap:2px; padding:3px; border:1px solid var(--border); border-radius:7px; background:var(--surface-soft); }
  .asset-view-switch button { display:inline-flex; align-items:center; gap:6px; min-height:34px; padding:6px 9px; background:transparent; border:0; border-radius:4px; color:var(--muted); font-size:12px; }
  .asset-view-switch button.active,.asset-view-switch button[aria-pressed="true"] { background:var(--surface); color:var(--accent); box-shadow:0 1px 3px rgb(20 40 28 / 12%); }
  .asset-view-switch svg { width:16px; height:16px; }
  .asset-export-menu { position:relative; margin-left:auto; }
  .asset-export-menu>summary { display:flex; align-items:center; justify-content:center; gap:7px; padding:9px 12px; min-height:40px; border:1px solid #d5ded8; border-radius:7px; background:var(--surface); list-style:none; font-size:12px; font-weight:600; }
  .asset-export-menu>summary::-webkit-details-marker { display:none; }
  .asset-export-menu>summary:hover { background:var(--surface-soft); }
  .asset-export-menu svg { width:16px; height:16px; }
  .asset-export-options { position:absolute; top:calc(100% + 6px); right:0; z-index:45; display:grid; gap:3px; min-width:245px; max-width:calc(100vw - 36px); padding:6px; border:1px solid var(--border); border-radius:9px; box-shadow:0 10px 30px rgb(20 40 28 / 12%); background:var(--surface); }
  .asset-export-options button { display:flex; align-items:center; gap:9px; min-height:42px; padding:10px 12px; background:transparent; border:0; border-radius:5px; font-size:12px; color:var(--ink); text-align:left; }
  .asset-export-options button:hover { background:var(--surface-soft); }
  .asset-export-options p { margin:5px 12px 7px; color:var(--muted); font-size:10px; line-height:1.5; }
  .asset-export-options hr { height:1px; width:100%; border:0; background:var(--border); margin:3px 0; }
  .assets-summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 20px; border-bottom:1px solid var(--border); color:var(--muted); font-size:12px; }
  .assets-summary p { margin:0; }
  .assets-summary strong { color:var(--ink); font-weight:600; }
  .assets-result-count { margin:0; padding:13px 20px; color:var(--muted); font-size:11px; }
  .assets-table-wrap { overflow:auto; border-radius:0 0 12px 12px; scrollbar-width:thin; }
  .assets-table { width:100%; border-collapse:collapse; table-layout:auto; font-size:13px; }
  .assets-table th { background:var(--surface-soft); color:var(--muted); font-size:12px; font-weight:550; text-align:left; padding:12px 18px; white-space:nowrap; border-bottom:1px solid var(--border); }
  .assets-table td { padding:14px 18px; border-bottom:1px solid var(--border); vertical-align:middle; word-break:normal; overflow-wrap:break-word; }
  .assets-table tr:last-child td { border-bottom:0; }
  .assets-table tbody tr:hover { background:#f9fbf9; }
  .assets-table td:first-child { min-width:235px; width:32%; }
  .assets-table td[data-label="Código"] { font-size:12px; font-variant-numeric:tabular-nums; white-space:nowrap; }
  .asset-open { display:flex; align-items:center; gap:12px; width:100%; min-width:0; min-height:38px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--ink); text-align:left; font-weight:550; line-height:1.5; text-decoration:none; }
  .asset-open:hover { color:var(--accent); text-decoration:none; }
  .asset-icon { display:inline-grid; place-items:center; width:34px; height:34px; flex:none; background:var(--accent-soft); color:#4d735b; border-radius:7px; }
  .asset-icon svg { width:19px; height:19px; }
  .asset-row-primary { display:block; min-width:0; font-size:13px; font-weight:550; }
  .asset-row-primary>strong { display:block; font-weight:550; }
  .asset-row-meta { display:block; color:var(--muted); font-size:11px; font-weight:400; line-height:1.5; margin-top:3px; }
  .asset-type { display:inline-flex; align-items:center; gap:5px; padding:3px 7px; border-radius:4px; color:var(--muted); background:var(--surface-soft); font-size:11px; white-space:nowrap; word-break:normal; }
  .asset-tree { padding:8px 0; overflow:auto; min-height:200px; }
  .asset-tree-row { display:flex; align-items:center; gap:9px; min-height:64px; padding:10px 20px 10px calc(16px + var(--asset-depth,0)*24px); border-bottom:1px solid var(--border); }
  .asset-tree-row:last-child { border-bottom:0; }
  .asset-tree-row:hover { background:var(--surface-soft); }
  .asset-tree-toggle { display:grid; place-items:center; width:36px; min-width:36px; height:40px; padding:0; border:0; border-radius:5px; background:transparent; color:var(--muted); font-size:18px; }
  .asset-tree-toggle:hover:not(:disabled) { background:#e3ede6; color:var(--accent); }
  .asset-tree-toggle svg { width:17px; height:17px; }
  .asset-tree-toggle[aria-expanded="true"] svg { transform:rotate(90deg); }
  .asset-tree-spacer { pointer-events:none; }
  .asset-tree-breadcrumb { margin:0; padding:2px 20px 12px; color:var(--muted); font-size:11px; }
  .asset-tree-label { display:flex; align-items:center; gap:10px; min-width:0; flex:1; border:0; border-radius:4px; background:transparent; text-align:left; padding:2px 0; color:var(--ink); font-size:13px; line-height:1.5; }
  .asset-tree-label>span { min-width:0; }
  .asset-tree-label strong { display:block; font-size:13px; font-weight:550; }
  .asset-tree-label:hover:not(:disabled) { color:var(--accent); }
  .asset-tree-context .asset-tree-label:disabled { opacity:1; cursor:default; color:var(--ink); }
  .asset-tree-path { display:block; margin-top:3px; color:var(--muted); font-size:11px; line-height:1.45; font-weight:400; }
  .asset-tree-count { flex:none; margin-left:auto; padding:3px 7px; border-radius:5px; background:var(--surface-soft); color:var(--muted); font-size:11px; }
  .assets-empty { padding:56px 24px; text-align:center; color:var(--muted); font-size:13px; }
  .assets-empty strong { display:block; margin-bottom:7px; color:var(--ink); font-weight:600; }

  /* Home: compact navigation instead of oversized decorative tiles. */
  .home-greeting { margin:0 0 26px; }
  .home-greeting h1 { font-family:inherit; font-size:30px; font-weight:600; color:var(--ink); letter-spacing:-.035em; margin:5px 0 6px; }
  .home-greeting p { font-size:13px; }
  .home-avatar { width:42px; height:42px; font-size:16px; }
  .home-layout { grid-template-columns:minmax(0,1.8fr) minmax(245px,.65fr); gap:26px; }
  .home-primary { gap:24px; }
  .shortcut-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
  .shortcut { display:flex; align-items:center; justify-items:start; gap:10px; padding:13px; border:1px solid var(--border); border-radius:9px; background:var(--surface); min-height:66px; }
  .shortcut-tile { width:36px; height:36px; max-width:36px; flex:none; aspect-ratio:auto; border-radius:7px; }
  .shortcut-tile.pine,.shortcut-tile.ochre,.shortcut-tile.sage,.shortcut-tile.sand { background:var(--accent-soft); color:#467554; }
  .shortcut-tile svg { width:21px; height:21px; }
  .shortcut-label { text-align:left; font-size:12px; letter-spacing:0; text-transform:none; font-weight:550; }
  .shortcut:hover { border-color:#b8cabb; background:#fbfcfb; }
  .shortcut:hover .shortcut-tile,.shortcut:focus-visible .shortcut-tile { transform:none; box-shadow:none; }
  .attention-card { min-height:0; padding:24px; border-radius:10px; background:#edf5ee; color:var(--ink); border:1px solid #d0e4d5; }
  .attention-card .eyebrow { color:#4f725d; }
  .attention-card h2 { font-size:21px; font-weight:600; margin:7px 0; color:#284f36; }
  .attention-card p { color:#627369; font-size:13px; }
  .attention-action { min-height:40px; padding:9px 13px; background:var(--accent); color:#fff; border-radius:6px; font-size:12px; font-weight:600; }
  .attention-symbol { width:60px; height:60px; border-radius:12px; background:#dfeee3; color:#5c8065; }
  .attention-symbol svg { width:30px; height:30px; }
  .home-agenda { padding:22px; background:var(--surface); border:1px solid var(--border); border-radius:10px; }
  .week-strip { gap:3px; margin-bottom:18px; }
  .week-day { min-height:66px; border-radius:7px; }
  .week-day.active { background:var(--accent-soft); }
  .week-day strong { width:32px; height:32px; border-radius:6px; background:transparent; font-weight:550; font-size:14px; }
  .week-day.active strong { background:var(--accent); color:#fff; }
  .week-day i { background:var(--accent); }
  .activity-row { grid-template-columns:34px minmax(0,1fr) auto; padding:14px 0; border-width:0 0 1px; border-radius:0; }
  .activity-row:last-child { border-bottom:0; }
  .activity-row strong { font-size:13px; font-weight:600; }
  .activity-row small { font-size:11px; }
  .activity-icon { width:34px; height:34px; background:var(--surface-soft); color:#64806e; border-radius:6px; }
  .home-empty { border-style:solid; border-radius:8px; font-size:13px; }
  .home-stats { grid-template-columns:1fr; gap:0; border:1px solid var(--border); background:var(--surface); border-radius:10px; overflow:hidden; }
  .home-stat,.home-stat.wide { display:flex; align-items:center; justify-content:space-between; gap:16px; grid-column:auto; min-height:84px; padding:18px; background:var(--surface); border:0; border-bottom:1px solid var(--border); border-radius:0; }
  .home-stat:last-child { border-bottom:0; }
  .home-stat strong { order:2; font-size:27px; font-weight:600; }
  .home-stat span { margin:0; font-size:12px; }
  .home-note { margin-top:18px; padding:18px; border:1px solid var(--border); background:transparent; border-radius:10px; color:var(--ink); }
  .home-note h3 { font-family:inherit; font-weight:550; font-size:16px; }
  .home-note p { font-size:12px; color:var(--muted); }

  /* Planning and distribution: one editable rule expanded at a time. */
  .schedule-toolbar,.schedule-filter { gap:12px; }
  .schedule-rules { grid-template-columns:1fr; gap:10px; }
  .schedule-rules>.panel { padding:0; overflow:hidden; }
  .workspace-rule>summary { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:78px; padding:18px 20px; list-style:none; }
  .workspace-rule>summary::-webkit-details-marker { display:none; }
  .workspace-rule>summary::after { content:"⌄"; margin-left:auto; font-size:20px; font-weight:400; color:var(--muted); }
  .workspace-rule[open]>summary::after { transform:rotate(180deg); }
  .workspace-rule>summary:hover { background:var(--surface-soft); }
  .workspace-rule>summary h3 { font-size:14px; margin:0 0 4px; }
  .workspace-rule>summary p { font-size:12px; color:var(--muted); margin:0; font-weight:400; }
  .workspace-rule[open]>summary { border-bottom:1px solid var(--border); }
  .workspace-rule>form,.workspace-rule>p,.workspace-rule>div { margin:18px 20px; }
  .schedule-eligible { padding:12px 14px; border-radius:7px; background:var(--surface-soft); }
  .schedule-eligible legend { font-size:12px; font-weight:600; }
  .schedule-eligible label { gap:7px; min-height:32px; }
  .schedule-grid-wrap { border-radius:9px; }
  .schedule-grid th,.schedule-grid td { height:44px; border-color:var(--border); }
  .schedule-grid th:first-child { padding:10px 12px; }
  .schedule-grid th small { margin-top:4px; font-size:10px; }
  .schedule-dot { border-radius:5px; min-width:30px; min-height:30px; font-size:11px; }
  .schedule-day { border-radius:9px; padding:18px; }
  .schedule-day h3 { font-size:15px; }
  .schedule-day button { padding:13px 0; font-size:13px; }
  .distribution-layout { grid-template-columns:minmax(220px,260px) minmax(0,1fr); gap:20px; }
  .distribution-plan-list { gap:4px; padding:5px; border:1px solid var(--border); border-radius:9px; background:var(--surface); }
  .distribution-plan { min-height:66px; padding:12px; border:1px solid transparent; border-radius:6px; background:transparent; font-size:13px; }
  .distribution-plan strong { font-weight:600; }
  .distribution-plan.active { border-color:#c5dccd; background:var(--accent-soft); color:var(--accent); }
  .distribution-plan:hover { background:var(--surface-soft); }
  .distribution-occurrence { padding:14px; font-size:13px; }
  .distribution-occurrence:hover { background:var(--surface-soft); }
  .schedule-employee-filter { border-radius:8px; padding:10px 14px; }
  .schedule-employee-filter label { min-height:32px; }
  .planning-export-panel { padding:20px; background:var(--surface); }

  /* Team: grouped navigation replaces an overflowing single strip. */
  .team-navigation { margin:0 0 22px; }
  .team-groups { display:flex; align-items:center; gap:3px; width:max-content; max-width:100%; padding:4px; background:#ecf0ed; border:1px solid var(--border); border-radius:8px; }
  .team-groups button { min-height:36px; padding:8px 16px; border:0; border-radius:5px; background:transparent; color:var(--muted); font-size:12px; font-weight:550; white-space:nowrap; }
  .team-groups button.active { background:var(--surface); color:var(--ink); box-shadow:0 1px 3px rgb(28 48 37 / 10%); }
  .team-subnav { display:flex; gap:21px; padding:10px 0 0; border-bottom:1px solid var(--border); overflow-x:auto; scrollbar-width:thin; }
  .team-subnav button { flex:none; position:relative; min-height:43px; padding:10px 0; border:0; background:transparent; color:var(--muted); font-size:12px; font-weight:550; white-space:nowrap; }
  .team-subnav button.active { color:var(--accent); }
  .team-subnav button.active::after { content:""; position:absolute; bottom:0; height:2px; left:0; right:0; background:var(--accent); }
  .team-metrics { gap:10px; margin-bottom:22px; }
  .team-metrics>div { padding:16px 18px; border-radius:9px; }
  .team-metrics strong { font-size:25px; font-weight:600; }
  .team-metrics span { font-size:11px; margin-top:9px; }
  .team-toolbar { margin-bottom:14px; }
  .team-table td { font-size:12px; }
  .team-table td strong { font-weight:600; }
  .team-table td:first-child { min-width:210px; }
  .role-grid p { font-size:13px; }
  .contractor-card { padding:18px; border-radius:9px; }
  .contractor-card:hover { background:var(--surface-soft); border-color:#b8cabb; }
  .invite-form,.invite-review { max-width:780px; }
  .invite-profile-summary { background:var(--surface-soft); border-radius:8px; padding:18px; }
  .person-drawer { width:min(560px,100vw); padding:24px; box-shadow:-16px 0 50px rgb(25 43 31 / 15%); animation:workspace-drawer-in 180ms ease-out; }
  .drawer-header button { width:38px; height:38px; border:1px solid var(--border); border-radius:7px; font-size:23px; }
  .person-title h2 { font-size:23px; font-weight:600; }
  .person-title p { font-size:12px; }
  .drawer-section { padding:21px 0; }
  .drawer-section h3 { font-size:14px; font-weight:650; }
  .drawer-section dl div { gap:18px; padding:10px 0; font-size:12px; }

  /* Material requests, reports, help and account share the same controls. */
  .material-order-row { min-height:70px; padding:14px 0; border-color:var(--border); color:var(--ink); font-size:13px; }
  .material-order-row strong { font-size:12px; font-weight:600; }
  .material-order-row small { margin-top:4px; color:var(--muted); font-size:11px; }
  .material-order-row:hover { background:var(--surface-soft); }
  .material-suggestion { padding:15px; border-radius:9px; background:var(--surface); border-color:var(--border); }
  .material-suggestion:hover,.material-suggestion:focus-visible { border-color:var(--focus); outline:none; box-shadow:0 0 0 2px #25634b18; }
  .material-suggestion b { color:var(--accent); }
  .material-suggestion strong { font-size:13px; font-weight:600; }
  .material-other { border-radius:8px; }
  .material-picker { background:var(--surface); color:var(--ink); border-radius:14px 14px 0 0; }
  .material-picker-heading h3 { font-size:18px; font-weight:600; }
  .material-picker-references { background:var(--surface-soft); border-radius:8px; }
  .material-picker-references a { color:var(--accent); text-underline-offset:3px; }
  .material-quantity button { border-radius:7px; background:var(--surface); color:var(--ink); border-color:var(--border); }
  .report-filter-drawer,.schedule-filter-drawer { border-color:var(--border); box-shadow:-12px 0 40px rgb(25 43 31 / 15%); }
  .report-empty { padding:65px 24px; border-style:dashed; background:transparent; }
  .report-empty h3 { font-size:20px; }
  .report-empty p { max-width:470px; margin:10px auto 0; font-size:13px; color:var(--muted); }
  .report-preview-top { margin-top:24px; font-size:13px; }
  .report-preview-frame { background:#eaf0ec; padding:26px; border-radius:10px; }
  .report-data-warning { border-radius:8px; font-size:12px; }
  .help-hero { padding:26px; border-radius:10px; background:var(--accent-soft); border-color:#d5e4d9; }
  .help-hero h2 { font-size:25px; font-weight:600; }
  .help-categories button { min-height:42px; font-size:12px; }
  .help-categories button.active,.help-categories button:hover { background:var(--accent-soft); color:var(--accent); }
  .help-result { padding:18px; border-radius:9px; }
  .help-result:hover { background:var(--surface-soft); border-color:#b5c8bc; }
  .help-result strong { font-size:14px; font-weight:600; }
  .help-result i { color:var(--muted); }
  .help-article h2 { font-size:26px; font-weight:600; }
  .account-grid { gap:22px; }
  .quick-add { right:26px; bottom:24px; }
  .quick-add-button { min-height:46px; padding:12px 18px; background:var(--accent); color:#fff; border-radius:9px; font-size:13px; font-weight:600; box-shadow:0 5px 16px rgb(23 60 40 / 18%); }
  .quick-add-button:hover { background:var(--accent-hover); }
  .quick-add-menu { border-color:var(--border); border-radius:9px; box-shadow:0 10px 30px rgb(20 40 28 / 15%); background:var(--surface); }
  .quick-add-menu button { min-height:43px; border-radius:5px; background:var(--surface); color:var(--ink); font-size:13px; font-weight:550; }
  .quick-add-menu button:hover { background:var(--accent-soft); }
  .drawer-backdrop,.confirm-backdrop,.onboarding-backdrop,.os-sheet-backdrop,.material-picker-backdrop { background:rgb(28 43 34 / 35%); backdrop-filter:blur(2px); }
  .confirm-dialog,.onboarding-dialog { padding:28px; border-radius:12px; box-shadow:0 24px 65px rgb(18 36 24 / 20%); }
  .confirm-dialog h2,.onboarding-dialog h2 { font-size:22px; font-weight:600; }
  .confirm-dialog p,.onboarding-dialog p { font-size:13px; }
  .os-card-sheet { border-radius:14px 14px 0 0; }
  .os-sheet-actions button { font-size:13px; font-weight:550; border-radius:6px; }
  .auth-intro { background:#244f39; color:#fff; }
  .auth-intro :is(h1,h2,h3) { color:#fff; }
  .auth-intro h1 { font-family:inherit; font-weight:600; letter-spacing:-.045em; }
  .auth-intro p { color:#d9e8de; }
  .auth-intro small { color:#bfd3c4; }
  .auth-card { padding:36px; border-radius:14px; box-shadow:0 8px 30px rgb(28 55 39 / 5%); }

  /* Search dialog: keyboard-first, permission-filtered results. */
  .workspace-search-overlay { position:fixed; inset:0; z-index:150; display:flex; align-items:flex-start; justify-content:center; padding:12vh 24px 24px; background:rgb(28 43 34 / 35%); backdrop-filter:blur(3px); animation:workspace-fade-in 140ms ease-out; }
  .workspace-search-dialog { width:min(640px,100%); max-height:75vh; max-height:75dvh; display:flex; flex-direction:column; padding:20px; border:1px solid var(--border); border-radius:14px; background:var(--surface); color:var(--ink); box-shadow:0 22px 70px rgb(18 36 24 / 20%); }
  .workspace-search-dialog header { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; }
  .workspace-search-dialog h2 { margin:0; font-size:17px; font-weight:600; letter-spacing:-.02em; }
  .workspace-search-dialog header button { width:34px; height:34px; border:1px solid var(--border); border-radius:6px; background:var(--surface); color:var(--muted); font-size:22px; }
  .workspace-search-field input { width:100%; min-height:48px; padding:12px 14px; background:var(--surface); border:1px solid #b4cbbd; border-radius:8px; color:var(--ink); font-size:16px; }
  .workspace-search-help { margin:10px 1px 13px; color:var(--muted); font-size:11px; }
  .workspace-search-results { min-height:0; overflow:auto; scrollbar-width:thin; border-top:1px solid var(--border); padding-top:5px; }
  .workspace-search-results button { display:flex; align-items:center; justify-content:space-between; gap:14px; width:100%; min-height:62px; padding:12px; border:0; border-radius:7px; background:transparent; color:var(--ink); text-align:left; }
  .workspace-search-results button:hover,.workspace-search-results button:focus-visible { background:var(--accent-soft); }
  .workspace-search-results strong { display:block; font-size:13px; font-weight:600; }
  .workspace-search-results small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }
  @keyframes workspace-fade-in { from {opacity:0} to {opacity:1} }
  @keyframes workspace-drawer-in { from {transform:translateX(24px);opacity:.6} to {transform:translateX(0);opacity:1} }

  /* Dark mode consumes the same semantic tokens; no white-on-white actions. */
  [data-theme="dark"] .sidebar { background:#1c2720; }
  [data-theme="dark"] .nav button { color:var(--muted); }
  [data-theme="dark"] .nav button.active,[data-theme="dark"] .nav button:hover { background:var(--accent-soft); color:var(--ink); }
  [data-theme="dark"] :is(.primary,.attention-action,.quick-add-button) { color:#163422; }
  [data-theme="dark"] :is(.content,.person-drawer,.material-picker,.auth-card) :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]) { border-color:var(--border); }
  [data-theme="dark"] :is(.task-segmented,.team-groups,.kanban-column) { background:var(--surface-soft); }
  [data-theme="dark"] :is(.assets-table,.table,.hub-table,.team-table) tbody tr:hover { background:var(--surface-soft); }
  [data-theme="dark"] :is(.shortcut,.attention-card,.home-stat,.home-stat.wide,.help-hero) { background:var(--surface); color:var(--ink); border-color:var(--border); }
  [data-theme="dark"] .attention-card :is(h2,p,.eyebrow),[data-theme="dark"] .home-greeting h1 { color:var(--ink); }
  [data-theme="dark"] :is(.secondary,.os-filter-button,.hub-card) { border-color:var(--border); }
  [data-theme="dark"] .calendar-event { background:var(--accent-soft); color:var(--ink); }
  [data-theme="dark"] .pill { filter:brightness(.86); }
}

@media screen and (max-width:1200px) {
  .content { padding:26px 24px 86px; }
  .workspace-search-trigger { width:210px; }
  .heading h1,.os-head h1 { font-size:26px; }
  .metrics,.schedule-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .assets-toolbar { align-items:flex-start; }
  .assets-controls { flex:1 1 100%; }
  .assets-search { flex:1; }
  .assets-search input { width:100%; }
  .shortcut-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media screen and (max-width:900px) {
  .shell,.shell.sidebar-collapsed { display:block; }
  .sidebar,.sidebar-toggle { display:none; }
  .top { position:relative; z-index:32; min-height:62px; padding:11px 18px; gap:12px; }
  .top strong { font-size:12px; }
  .top small { max-width:235px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:10px; }
  .top-actions { gap:7px; }
  .top-help { display:none; }
  .workspace-search-trigger { display:grid; place-items:center; width:36px; min-height:36px; padding:0; background:var(--surface); }
  .workspace-search-trigger>span:nth-child(2),.workspace-search-trigger kbd { display:none; }
  .content { padding:22px 20px calc(112px + env(safe-area-inset-bottom)); }
  .mobile-nav { position:fixed; top:auto; bottom:calc(10px + env(safe-area-inset-bottom)); left:12px; right:12px; z-index:38; display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); width:auto; padding:5px 8px; gap:4px; border:1px solid var(--border); border-radius:20px; background:var(--surface); box-shadow:0 5px 24px rgb(30 49 36 / 16%); overflow:visible; }
  .mobile-nav button { display:grid; justify-items:center; align-content:center; min-height:50px; gap:3px; padding:5px 2px; border-radius:7px; color:var(--muted); font-size:10px; font-weight:500; }
  .mobile-nav button svg { width:20px; height:20px; }
  .mobile-nav button.active { background:var(--accent-soft); color:var(--accent); }
  .mobile-nav .mobile-create { width:44px; min-height:44px; align-self:center; justify-self:center; border-radius:50%; background:#c5a064; color:#183631; font-size:28px; box-shadow:none; }
  .is-detail .mobile-nav { display:grid; }
  .is-detail .content { padding-bottom:calc(130px + env(safe-area-inset-bottom)); }
  body:has(input:focus) .mobile-nav,body:has(textarea:focus) .mobile-nav,body:has(select:focus) .mobile-nav { display:none; }
  .order-sections #checklistForm button[type="submit"] { bottom:calc(84px + env(safe-area-inset-bottom)); }
  .quick-add { display:none; }
  .quick-add:has(.quick-add-menu:not([hidden])) { display:block; position:fixed; top:auto; bottom:calc(86px + env(safe-area-inset-bottom)); left:18px; right:18px; z-index:60; }
  .quick-add-menu { border-radius:10px; }
  .mobile-menu-backdrop { background:rgb(28 43 34 / 35%); backdrop-filter:blur(2px); }
  .mobile-menu { background:var(--surface); color:var(--ink); padding-bottom:max(24px,env(safe-area-inset-bottom)); }
  .mobile-menu-head { border-color:var(--border); }
  .mobile-menu .nav-group { margin-bottom:16px; }
  .mobile-menu .nav-label { color:var(--muted); }
  .mobile-menu .nav-group button { color:var(--ink); min-height:44px; font-size:13px; }
  .mobile-menu .nav-group button.active,.mobile-menu .nav-group button:hover { background:var(--accent-soft); color:var(--accent); }
  .mobile-logout { color:var(--muted); }
  .heading { align-items:flex-start; }
  .heading h1,.os-head h1 { font-size:25px; }
  .heading p { font-size:12px; }
  .panel { padding:20px; }
  .content :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]) { font-size:16px; min-height:44px; }
  .primary,.secondary,.danger,.os-filter-button { min-height:44px; }
  .task-segmented { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); width:100%; border-radius:8px; margin-bottom:16px; padding:4px; }
  .task-segmented button { min-width:0; min-height:43px; padding:7px 4px; font-size:12px; border-radius:5px; }
  .task-segmented[aria-label="Detalhes do plano"] { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .task-segmented[aria-label="Configurar tarefa"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .board-stage-tabs { gap:4px; padding:0; border:0; border-radius:0; background:transparent; margin-bottom:12px; }
  .board-stage-tabs button { min-height:54px; padding:8px 4px; border:1px solid var(--border); border-radius:7px; background:var(--surface); color:var(--muted); font-size:11px; }
  .board-stage-tabs button.active { background:var(--accent-soft); color:var(--accent); border-color:#b3ceb9; }
  .board-stage-tabs span { font-size:12px; }
  .kanban { display:block; overflow:visible; padding-bottom:0; }
  .kanban-column { display:none; padding:12px; border-radius:9px; min-height:200px; }
  .kanban-column.mobile-active { display:flex; }
  .hub-card-title { font-size:14px; }
  .hub-card p,.hub-card-bottom small { font-size:12px; }
  .hub-card-head small,.hub-card-foot small { font-size:11px; }
  .card-menu-trigger { min-width:44px; min-height:44px; }
  .hub-card-select { min-height:40px; }
  .os-filter-panel { border-radius:14px 14px 0 0; padding:22px 18px max(24px,env(safe-area-inset-bottom)); box-shadow:0 -12px 45px rgb(20 40 28 / 15%); }
  .home-layout { display:block; }
  .home-aside { margin-top:24px; }
  .home-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .home-stat,.home-stat.wide { display:block; min-height:110px; padding:18px; border-bottom:0; border-right:1px solid var(--border); }
  .home-stat:last-child { border-right:0; }
  .home-stat span { font-size:11px; margin-top:10px; }
  .home-note { display:none; }
  .shortcut-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .shortcut { padding:12px; }
  .shortcut-label { font-size:11px; }
  .home-greeting h1 { font-size:29px; }
  .distribution-layout { display:block; }
  .distribution-plan-list { display:flex; overflow:auto; gap:6px; padding:6px; margin-bottom:18px; max-height:none; }
  .distribution-plan { flex:0 0 215px; }
  .schedule-rules { grid-template-columns:1fr; }
  .assets-toolbar { padding:16px; gap:14px; }
  .assets-controls { gap:9px; }
  .assets-summary { padding:12px 16px; }
  .assets-table td:first-child { min-width:210px; }
  .assets-table th,.assets-table td { padding:13px 14px; }
  .asset-tree-row { padding-left:calc(8px + var(--asset-depth,0)*18px); padding-right:14px; gap:6px; }
  .asset-tree-toggle { width:34px; min-width:34px; height:44px; }
  .asset-tree-label { gap:8px; }
  .asset-tree-label strong { font-size:13px; }
  .team-subnav { gap:21px; }
  .team-subnav button { min-height:46px; }
  .team-mobile-list button,.plan-mobile-list button { padding:16px; border-radius:8px; border-color:var(--border); }
  .team-mobile-list strong,.plan-mobile-list strong { font-size:13px; font-weight:600; }
  .team-mobile-list small,.plan-mobile-list small { font-size:11px; }
  .report-preview-frame { padding:12px; }
  .workspace-search-overlay { padding:24px 18px; }
  .workspace-search-dialog { max-height:calc(100dvh - 48px); }
}

@media screen and (max-width:600px) {
  .top { padding:10px 16px; }
  .top small { max-width:205px; }
  .content { padding:22px 16px 32px; }
  .heading { display:block; margin-bottom:22px; }
  .heading .actions { margin-top:16px; }
  .heading h1,.os-head h1 { font-size:24px; }
  .heading p { font-size:12px; line-height:1.6; }
  .os-head { align-items:flex-start; flex-wrap:wrap; gap:14px; }
  .os-head>.buttons { flex-wrap:wrap; gap:8px; }
  .os-head>.buttons button { padding:9px 13px; min-height:42px; font-size:12px; }
  .panel { padding:18px; }
  .grid { gap:12px; }
  .metrics,.schedule-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .metric { padding:15px; }
  .metric strong { font-size:25px; }
  .facts { gap:16px; }
  .facts span { min-width:calc(50% - 16px); }
  .detail-head h2 { font-size:23px; }
  .buttons>.primary,.buttons>.secondary { flex:1 1 auto; }
  .row { padding:14px; font-size:13px; gap:10px; }
  .row small { font-size:11px; }
  .group-task { flex-wrap:wrap; }
  .group-task>span:first-child { flex-basis:65%; }
  .group-task small { font-size:11px; }
  .home-greeting { margin-bottom:22px; }
  .home-greeting h1 { font-size:28px; }
  .shortcut-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .shortcut { min-height:62px; padding:12px; }
  .shortcut-tile { width:32px; height:32px; max-width:32px; }
  .shortcut-label { font-size:12px; }
  .home-primary { gap:22px; }
  .home-agenda { padding:17px; }
  .attention-card { padding:20px; }
  .attention-card h2 { font-size:20px; }
  .attention-symbol { display:none; }
  .section-header { gap:10px; }
  .section-header h2 { font-size:16px; }
  .text-action { font-size:11px; }
  .home-date-picker { flex-wrap:wrap; font-size:11px; }
  .week-day { min-height:61px; }
  .week-day strong { width:30px; height:30px; font-size:13px; }
  .activity-row strong { white-space:normal; line-height:1.45; }
  .home-stat,.home-stat.wide { padding:14px 12px; min-height:100px; }
  .home-stat strong { font-size:25px; }
  .home-stat span { font-size:10px; line-height:1.5; }
  .calendar-grid.month,.calendar-grid.week { grid-template-columns:1fr; }
  .calendar-day { min-height:105px; padding:13px; }
  .calendar-day.outside { min-height:55px; }
  .calendar-event { padding:8px 10px; font-size:12px; }
  .schedule-rule-fields { grid-template-columns:1fr; }
  .workspace-rule>summary { padding:16px; gap:12px; }
  .workspace-rule>summary h3 { font-size:14px; }
  .workspace-rule>form,.workspace-rule>p,.workspace-rule>div { margin:16px; }
  .schedule-day { padding:16px; }
  .schedule-day button { flex-wrap:wrap; }
  .schedule-day button span:last-child { text-align:left; }
  .schedule-preview-wrap .schedule-grid th:first-child { min-width:155px; max-width:170px; }
  .team-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; }
  .team-groups button { padding:8px 5px; min-height:42px; font-size:11px; }
  .team-subnav { gap:19px; }
  .team-subnav button { font-size:12px; }
  .team-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .team-metrics>div { padding:15px; }
  .team-toolbar { align-items:flex-start; }
  .team-toolbar input { min-width:0; }
  .team-toolbar span { padding-top:13px; font-size:10px; }
  .role-grid,.account-grid { grid-template-columns:1fr; }
  .person-drawer { width:100vw; padding:20px; }
  .drawer-section dl div { gap:12px; }
  .material-order-row { grid-template-columns:minmax(0,1fr) auto; gap:10px; font-size:12px; }
  .material-order-row>span:nth-child(2) { grid-column:1/-1; grid-row:2; }
  .material-tech-item { grid-template-columns:1fr; gap:12px; }
  .material-suggestions { grid-template-columns:1fr; }
  .material-batched-tag { white-space:normal; font-size:10px; }
  .help-hero { padding:20px; }
  .help-hero h2 { font-size:23px; }
  .help-layout { grid-template-columns:1fr; }
  .help-categories { display:flex; overflow:auto; gap:5px; }
  .help-categories button { flex:none; }
  .report-preview-top span { display:block; margin-top:4px; }
  .assets-title h1,.assets-title h2 { font-size:21px; }
  .assets-controls { width:100%; }
  .assets-search { flex:1 1 100%; min-width:0; }
  .assets-search input { width:100%; }
  .assets-workspace .asset-category-tabs { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
  .assets-workspace .asset-category-tabs button { justify-content:center; padding:7px 3px; min-height:42px; font-size:11px; gap:4px; }
  .assets-workspace .asset-category-tabs svg { width:14px; height:14px; }
  .assets-workspace .asset-category-tabs small { font-size:9px; }
  .asset-view-switch button { min-height:38px; }
  .asset-export-menu { margin-left:auto; }
  .asset-export-menu>summary { min-height:44px; }
  .assets-summary { flex-wrap:wrap; gap:7px; font-size:11px; }
  .assets-result-count { padding:12px 16px; }
  .asset-tree-breadcrumb { padding-left:16px; font-size:10px; }
  .assets-table,.assets-table tbody { display:block; width:100%; min-width:0; }
  .assets-table thead { display:none; }
  .assets-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 16px; padding:17px 16px; border-bottom:1px solid var(--border); }
  .assets-table tr:last-child { border-bottom:0; }
  .assets-table td { display:block; padding:0; border:0; min-width:0; font-size:12px; overflow-wrap:break-word; }
  .assets-table td:first-child { grid-column:1/-1; min-width:0; width:100%; }
  .assets-table td:not(:first-child)::before { content:attr(data-label); display:block; margin-bottom:4px; color:var(--muted); font-size:10px; font-weight:400; }
  .assets-table td[data-label="Código"] { grid-row:2; grid-column:1; white-space:normal; overflow-wrap:anywhere; font-size:11px; }
  .assets-table td[data-label="Tipo"] { grid-row:2; grid-column:2; }
  .assets-table td[data-label="Localização"] { grid-row:3; grid-column:1/-1; }
  .assets-table td[data-label="Local"] { grid-column:1/-1; }
  .asset-open { gap:10px; }
  .asset-row-primary { font-size:13px; }
  .asset-row-meta { font-size:11px; }
  .asset-tree-row { padding-left:calc(5px + min(var(--asset-depth,0),6)*12px); padding-right:10px; gap:4px; min-height:65px; }
  .asset-tree-toggle { width:28px; min-width:28px; }
  .asset-tree-label { gap:7px; }
  .asset-tree-label .asset-icon { width:28px; height:30px; border-radius:5px; }
  .asset-tree-label strong { font-size:12px; }
  .asset-tree-path { font-size:10px; line-height:1.5; }
  .asset-tree-count { padding:2px 5px; font-size:10px; }
  .assets-empty { padding:42px 20px; }
  .auth-intro { min-height:200px; padding:27px; }
  .auth-intro h1 { font-size:32px; }
  .auth-card { padding:26px; }
  .workspace-search-overlay { padding:12px; align-items:flex-start; }
  .workspace-search-dialog { padding:16px; border-radius:11px; max-height:calc(100dvh - 24px); }
  .workspace-search-results button { min-height:64px; }
}

@media screen and (max-width:360px) {
  .top { padding:10px 12px; }
  .top small { max-width:170px; }
  .top-actions { gap:5px; }
  .top-account { width:32px; height:32px; min-height:32px; }
  .workspace-search-trigger { width:32px; min-height:32px; }
  .content { padding-left:12px; padding-right:12px; }
  .mobile-nav { padding-left:8px; padding-right:8px; }
  .mobile-nav button { font-size:9px; }
  .task-segmented button { font-size:11px; }
  .board-stage-tabs button { font-size:10px; }
  .shortcut { padding:10px; gap:7px; }
  .shortcut-label { font-size:11px; }
  .assets-workspace .asset-category-tabs button { font-size:10px; }
  .assets-workspace .asset-category-tabs svg { display:none; }
  .asset-tree-row { padding-left:calc(4px + min(var(--asset-depth,0),6)*9px); }
}

@media screen and (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; scroll-behavior:auto!important; }
}
