@charset "UTF-8";
:root {
    --ink: #171d23;
    --muted: #5b646d;
    --paper: #f3f4f2;
    --line: #d9dedf;
    --orange: #ed7830;
    --orange-dark: #9c3e0a;
    --green: #17663f;
    --rail: 76px;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
a { color: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
svg { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
:focus-visible { outline: 3px solid #ad470d; outline-offset: 4px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--rail); padding: 25px 13px 18px; background: var(--ink); color: #f4f6f5; z-index: 30; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; transition: width .2s ease, box-shadow .2s ease; }
.sidebar.pinned, .sidebar:focus-within { width: 276px; box-shadow: 10px 0 30px #0002; }
.sidebar .nav-label, .sidebar .brand-name { opacity: 0; transition: opacity .15s ease; }
.sidebar.pinned .nav-label, .sidebar.pinned .brand-name, .sidebar:focus-within .nav-label, .sidebar:focus-within .brand-name { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
    .sidebar:hover { width: 276px; box-shadow: 10px 0 30px #0002; }
    .sidebar:hover .nav-label, .sidebar:hover .brand-name { opacity: 1; }
}
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; white-space: nowrap; margin: 0 4px 28px; min-height: 44px; }
.brand-mark { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; flex: 0 0 42px; color: var(--ink); background: var(--orange); font-size: 31px; font-weight: 900; letter-spacing: -4px; padding-right: 4px; position: relative; }
.brand-mark > span { position: absolute; right: -3px; top: -3px; height: 9px; width: 9px; background: var(--ink); border: 2px solid var(--orange); }
.brand-name { font-size: 23px; font-weight: 800; letter-spacing: 1px; }
.brand-name small { display: block; font-size: 8px; letter-spacing: 2px; color: #b1b8bf; margin-top: 4px; }
.rail-toggle, .nav-item { width: 100%; display: flex; gap: 19px; align-items: center; border: 0; border-radius: 4px; background: transparent; color: #b7bfc5; padding: 15px 14px; text-decoration: none; white-space: nowrap; min-height: 52px; }
.rail-toggle { color: #e8edee; margin-bottom: 24px; border-bottom: 1px solid #343d45; border-radius: 0; }
.nav-label { font-size: 14px; font-weight: 600; }
.nav-item { margin-bottom: 7px; }
.nav-item:hover, .rail-toggle:hover { color: white; background: #2b343b; }
.nav-item.active { color: #fff; background: #333b42; box-shadow: inset 3px 0 var(--orange); }
.nav-item.active svg { color: var(--orange); }
.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.rail-version { display: flex; align-items: center; gap: 25px; margin-top: 20px; padding: 14px 21px 0; border-top: 1px solid #343d45; white-space: nowrap; }
.rail-version .nav-label { font-size: 9px; letter-spacing: 1px; color: #a9b6b2; }
.status-dot { width: 6px; height: 6px; background: #7ed5a4; flex-shrink: 0; }
.account-label { display: flex; align-items: center; gap: 19px; padding: 8px 14px; color: #dbe7df; }
.account-label .nav-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.workspace { margin-left: var(--rail); padding: 0 clamp(18px, 1.8vw, 40px); height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto minmax(0, 1fr) auto; column-gap: 24px; }
.topbar { grid-column: 2; grid-row: 1; min-height: 56px; display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.topbar .breadcrumb { display: none; }
.breadcrumb { display: flex; gap: 18px; align-items: center; font-size: 11px; font-weight: 700; letter-spacing: 1.7px; }
.breadcrumb > span { color: #92999e; font-weight: 400; }
.breadcrumb strong { font-size: 10px; color: var(--muted); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 24px; }
.live-status { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; color: var(--green); }
.live-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px #17663f12; }
.live-status.offline { color: #a12a18; }
.live-status.offline i { background: #a12a18; box-shadow: 0 0 0 3px #a12a1812; }
.topbar-divider { width: 1px; height: 21px; background: var(--line); }
#clock { font-size: 23px; font-weight: 650; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.page-heading { grid-column: 1; grid-row: 1; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 10px 0; min-width: 0; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.page-heading .eyebrow, .page-heading p { display: none; }
h1 { margin: 0; font-size: clamp(23px, 1.65vw, 34px); font-weight: 750; letter-spacing: -.8px; line-height: 1.1; }
.title-dot { color: #be4d0d; }
.page-heading p { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.heading-actions { display: flex; align-items: center; gap: 24px; }
.plant-label { display: inline-flex; align-items: center; gap: 10px; color: #424c54; font-size: 13px; font-weight: 600; max-width: 300px; overflow-wrap: anywhere; }
.plant-label svg { width: 20px; height: 20px; color: #717a80; }
.button { min-height: 46px; padding: 12px 19px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 700; font-size: 13px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; }
.button.primary { background: var(--ink); color: white; border-color: var(--ink); }
.button.primary:hover { background: #303c45; border-color: #303c45; }
#create-button { background: var(--orange); color: #23170f; border-color: var(--orange); white-space: nowrap; }
#create-button:hover { background: #f99b57; }
.button.secondary { background: #fff; border-color: #c9d0d3; }
.button.secondary:hover { background: #f0f2f2; }
.button.quiet { background: transparent; padding-left: 0; }
.button.danger { color: #a22618; margin-right: auto; }
.full-width { width: 100%; }
.summary-strip { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; min-height: 48px; }
.period-block { min-width: 28%; background: var(--ink); color: white; padding: 12px 18px; }
.period-block .eyebrow { display: none; }
.period-block > div { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
#week-number { font-size: clamp(21px, 1.4vw, 28px); letter-spacing: -.7px; line-height: 1; white-space: nowrap; }
#period-dates { font-size: 11px; color: #cbd0d4; white-space: nowrap; }
.metric { display: flex; justify-content: center; align-items: center; gap: 8px; min-width: 12%; padding: 10px 14px; position: relative; }
.metric::after { content: ""; position: absolute; right: 0; top: 12px; bottom: 12px; width: 1px; background: var(--line); }
.metric-number { font-size: clamp(22px, 1.5vw, 30px); line-height: 1; font-weight: 750; letter-spacing: -1px; font-variant-numeric: tabular-nums; }
.metric > span:last-child { font-size: 9px; letter-spacing: 1.3px; font-weight: 700; color: #56616a; }
.completed-metric .metric-number { color: var(--green); }
.progress-block { display: flex; justify-content: center; flex-direction: column; margin: 0 20px; flex: 1; min-width: 100px; gap: 6px; }
.progress-block > div:first-child { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.progress-block span { font-size: 9px; letter-spacing: 1.1px; font-weight: 700; color: var(--muted); }
.progress-block strong { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-track { height: 6px; background: #e8ece9; border-radius: 1px; overflow: hidden; }
#progress-fill { height: 100%; background: var(--green); transition: width .3s; }
.board-section { grid-column: 1 / -1; grid-row: 3; display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 9px 0; min-height: 36px; flex-shrink: 0; }
/* Retain the calendar heading for screen readers without a second title bar. */
body:not(.dashboard) .board-toolbar { position: absolute; width: 1px; height: 1px; padding: 0; min-height: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.board-caption { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.section-marker { width: 5px; height: 14px; background: var(--orange); }
.board-caption h2 { margin: 0; font-size: 14px; font-weight: 700; }
#board-hint { font-size: 11px; color: var(--muted); padding-left: 10px; border-left: 1px solid #cbd1d2; margin-left: 3px; }
.board-controls { display: flex; align-items: center; gap: 18px; }
.filter-control { font-size: 11px; color: var(--muted); display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.filter-control select { min-height: 38px; padding: 6px 25px 6px 10px; font-size: 11px; margin-top: 0; }
.date-navigation { display: inline-flex; border: 1px solid #c9d0d3; border-radius: 3px; background: #fff; overflow: hidden; }
.date-navigation button { border: 0; background: transparent; padding: 8px; min-width: 38px; min-height: 38px; font-size: 11px; font-weight: 600; }
.date-navigation button:hover { background: #e5e9e7; }
.date-navigation button + button { border-left: 1px solid var(--line); }
.date-navigation svg { width: 16px; height: 16px; }
.board { display: grid; grid-template-columns: repeat(var(--day-count, 5), minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: clamp(8px, .85vw, 20px); flex: 1; min-height: 0; }
.day-column { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #e9edeb; border: 1px solid #d8ddda; border-top: 3px solid #aab4ae; border-radius: 3px; position: relative; }
.day-column.today { background: #f3eade; border-color: #d5b69a; border-top-color: var(--orange); }
.day-header { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: clamp(10px, .6vw, 16px); border-bottom: 1px solid #d3dbd6; flex-shrink: 0; }
.day-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.day-name { font-size: clamp(13px, 1.05vw, 24px); font-weight: 700; }
.day-relative { font-size: 7px; color: #626e65; font-weight: 700; letter-spacing: .9px; }
.today-badge { font-size: 8px; font-weight: 800; letter-spacing: 1px; color: #7b3108; background: #fdd3b3; border: 1px solid #e3b18a; border-radius: 2px; padding: 4px 6px; }
.day-date { display: flex; align-items: baseline; gap: 6px; font-weight: 700; font-size: clamp(32px, 2.3vw, 54px); letter-spacing: -1px; line-height: 1.1; }
.day-date > span { font-size: clamp(12px, .85vw, 21px); font-weight: 500; letter-spacing: 0; color: #56635a; }
.week-board .day-header { display: block; }
.week-board .day-date, .week-board .day-summary { margin-top: 6px; }
.week-board .day-topline { flex-wrap: wrap; }
.week-board .day-name { font-size: clamp(12px, .8vw, 20px); }
.many-columns .day-relative { display: none; }
.week-board.many-columns .day-all-done { font-size: 0; }
.week-board.many-columns .day-all-done svg { width: 16px; height: 16px; }
.day-add { margin-left: auto; align-self: center; border: 1px solid #c7d0c9; background: #ffffff80; min-width: 34px; min-height: 34px; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; }
.day-add:hover { background: #fff; border-color: #66776b; }
.day-add svg { width: 17px; height: 17px; }
.day-summary { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: clamp(10px, .7vw, 17px); color: #455149; gap: 6px; }
.day-summary > span:last-child { color: var(--green); }
.day-tasks { padding: clamp(8px, .65vw, 16px); display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #91a397 transparent; }
.task-card { border: 1px solid #ced5d0; border-left: 3px solid #718b7a; border-radius: 3px; background: white; box-shadow: 0 2px 2px #14211a04; transition: border-color .15s, transform .15s; flex-shrink: 0; }
.task-card:hover { border-color: #668172; box-shadow: 0 2px 6px #14211a10; }
.task-main { display: block; text-align: left; border: 0; background: transparent; padding: clamp(10px, .7vw, 18px); width: 100%; border-radius: 2px; }
.task-top { display: flex; align-items: center; justify-content: space-between; gap: 4px; }
.task-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 5px; background: #edf1ee; color: #445e4d; font-size: clamp(8px, .58vw, 14px); font-weight: 750; letter-spacing: .8px; }
.task-time { display: flex; align-items: center; gap: 6px; color: #44524a; font-size: clamp(10px, .75vw, 18px); font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.task-time svg { width: 13px; height: 17px; color: #819088; }
.task-main h3 { font-size: clamp(18px, 1.25vw, 32px); font-weight: 700; line-height: 1.32; margin: 9px 0 8px; letter-spacing: -.3px; overflow-wrap: anywhere; }
.task-station { display: flex; align-items: center; gap: 7px; font-size: clamp(11px, .68vw, 18px); color: #46514b; font-weight: 600; overflow-wrap: anywhere; }
.task-station svg { width: 15px; height: 15px; }
.task-description { font-size: clamp(12px, .8vw, 20px); line-height: 1.4; color: #4f5d54; margin: 6px 0 0; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.task-bottom { border-top: 1px solid #edf0ed; padding-top: 6px; margin-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.task-metadata { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.task-assignee { display: flex; align-items: center; gap: 6px; font-size: clamp(11px, .68vw, 18px); color: #4a564e; overflow-wrap: anywhere; }
.task-assignee svg { width: 14px; height: 14px; }
.task-check { flex-shrink: 0; width: 24px; height: 24px; border: 1.5px solid #a7b5ab; display: inline-flex; align-items: center; justify-content: center; border-radius: 3px; }
.task-check svg { height: 17px; width: 17px; }
.task-card.is-urgent { border-left-color: #b34b0f; background: #fffdf9; }
.is-urgent .task-badge { background: #fce7d4; color: #923a08; }
.task-card.is-done { background: #e4f0e7; border-color: #a8c4ae; border-left-color: var(--green); }
.task-card.is-done .task-main { display: flex; align-items: center; gap: 10px; padding: 10px 12px; min-height: 48px; }
.task-card.is-done h3 { flex: 1; min-width: 0; margin: 0; text-decoration: line-through; text-decoration-color: #38724b; text-decoration-thickness: 1.5px; color: #245c36; }
.is-done .task-check { background: var(--green); border-color: var(--green); color: #fff; }
.empty-day { display: flex; flex: 1; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: 28px 10px; min-height: 160px; color: #68776d; }
.empty-day strong { font-size: 12px; font-weight: 550; margin-top: 16px; line-height: 1.5; }
.empty-day > span:last-child { font-size: 10px; margin-top: 5px; line-height: 1.7; color: #657369; }
.empty-lines { display: block; width: 28px; height: 26px; border: 1px solid #a3b2a8; border-radius: 3px; position: relative; }
.empty-lines::before, .empty-lines::after { position: absolute; content: ""; height: 1px; background: #a3b2a8; left: 6px; right: 6px; top: 9px; }
.empty-lines::after { top: 15px; right: 11px; }
.day-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; font-size: 8px; letter-spacing: .8px; font-weight: 700; color: #65736a; flex-shrink: 0; }
.day-bottom-line { width: 18px; height: 2px; background: #b4c0b8; }
.day-all-done { color: var(--green); font-size: 7px; display: flex; align-items: center; gap: 3px; }
.day-all-done svg { width: 13px; height: 13px; }
.page-footer { grid-column: 1 / -1; grid-row: 4; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 7px 0; font-size: 10px; color: var(--muted); }
.page-footer > span:first-child { display: flex; align-items: center; gap: 8px; }
.footer-square { width: 6px; height: 6px; background: var(--orange); }
.dashboard .task-main h3 { font-size: clamp(16px, 1.1vw, 26px); }
.dashboard .day-header { display: block; }
.dashboard .day-topline { justify-content: space-between; }
.dashboard .day-date, .dashboard .day-summary { margin-top: 6px; }
.dashboard .task-description { font-size: 12px; }
.dashboard .task-main { padding: 13px; }
.dashboard .task-card { cursor: grab; }
.dashboard .task-main { cursor: grab; }
.dashboard .task-card:active { cursor: grabbing; }
.task-card.dragging { opacity: .35; transform: scale(.97); }
.day-column.drop-target { outline: 2px dashed var(--orange-dark); outline-offset: -4px; background: #ffead6; }
.drag-active .day-column { transition: background .15s; }
.task-card.pending { opacity: .5; pointer-events: none; }
.loading-panel { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; color: var(--muted); min-height: 350px; }
.error-panel { flex-direction: column; gap: 20px; text-align: center; padding: 30px; }
.error-panel strong { font-size: 24px; color: #a12a18; }
.seven-days .day-relative { display: none; }
.seven-days .task-time { font-size: 10px; }
:is(.seven-days, .week-board.many-columns) .task-main { padding: 10px; }
:is(.seven-days, .week-board.many-columns) .task-main h3 { font-size: clamp(18px, 1.15vw, 32px); }
.dashboard :is(.seven-days, .week-board.many-columns) .task-main h3 { font-size: clamp(16px, 1.1vw, 26px); }
.seven-days .day-all-done { font-size: 0; }
.seven-days .day-all-done svg { width: 16px; height: 16px; }
dialog { color: var(--ink); border: 1px solid #c5cdca; padding: 30px; background: #fbfcfa; border-radius: 5px; max-width: min(560px, calc(100vw - 28px)); width: 560px; max-height: calc(100dvh - 40px); overflow-y: auto; box-shadow: 0 25px 90px #0003; }
dialog::backdrop { background: #0d1721a6; backdrop-filter: blur(3px); }
.dialog-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 23px; color: #617069; }
.icon-button { display: inline-flex; justify-content: center; align-items: center; border: 0; color: #53605a; background: transparent; min-width: 38px; min-height: 38px; border-radius: 3px; cursor: pointer; }
.icon-button:hover { background: #e6ebe8; }
dialog h2 { font-size: 28px; font-weight: 750; letter-spacing: -.9px; margin: 0 0 13px; }
dialog p { color: #526159; font-size: 13px; line-height: 1.65; margin: 0 0 20px; }
label { display: block; font-size: 12px; font-weight: 650; margin-bottom: 17px; }
input:not([type="checkbox"]), textarea, select { display: block; width: 100%; min-height: 46px; border: 1px solid #bfc9c2; border-radius: 3px; padding: 11px 12px; background: #fff; color: var(--ink); font-size: 14px; margin-top: 7px; }
input::placeholder, textarea::placeholder { color: #717d75; font-size: 13px; }
textarea { resize: vertical; min-height: 90px; }
input:focus, select:focus, textarea:focus { border-color: #a44b18; outline: 2px solid #ed783030; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.required { color: #ab420c; }
.optional { font-size: 10px; color: #6a786e; font-weight: 400; margin-left: 6px; }
.form-error { color: #a12618; font-size: 12px; font-weight: 600; }
.form-error:empty { display: none; }
.dialog-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid var(--line); padding-top: 21px; margin-top: 25px; flex-wrap: wrap; }
.dialog-actions .button { font-size: 12px; padding: 10px 13px; }
.dialog-footnote { font-size: 11px; margin: 19px 0 0; text-align: center; }
.auth-dialog { width: 430px; padding: 32px; }
.auth-emblem { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; background: #f8e5d5; color: #923f0f; border: 1px solid #ecc3a6; margin-bottom: 22px; border-radius: 3px; }
.auth-emblem svg { width: 27px; height: 27px; }
.auth-dialog .button { justify-content: space-between; }
.auth-dialog form > label { margin-top: 24px; }
fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
fieldset:disabled { opacity: .7; }
.field-note { font-size: 11px; line-height: 1.7; }
.switch-label { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; margin-top: 22px; }
.switch-label small { display: block; color: #617069; font-weight: 400; font-size: 11px; margin-top: 5px; }
.switch-label input { appearance: none; width: 42px; height: 24px; border-radius: 14px; background: #acb7af; flex-shrink: 0; margin: 0; position: relative; cursor: pointer; border: 1px solid #96a39a; }
.switch-label input::after { content: ""; position: absolute; height: 16px; width: 16px; background: white; left: 3px; top: 3px; border-radius: 50%; transition: transform .15s; }
.switch-label input:checked { background: var(--green); border-color: var(--green); }
.switch-label input:checked::after { transform: translateX(18px); }
.history-dialog { width: 740px; max-width: min(740px, calc(100vw - 28px)); }
.history-entry { padding: 17px 0; border-top: 1px solid var(--line); }
.history-entry > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 9px; }
.history-kind { font-size: 9px; font-weight: 750; letter-spacing: 1px; color: #506054; }
.kind-completed { color: var(--green); }
.kind-deleted { color: #a12618; }
.kind-moved, .kind-reopened { color: var(--orange-dark); }
.history-entry time { font-size: 11px; color: #657268; }
.history-entry h3 { font-size: 15px; margin: 0 0 6px; overflow-wrap: anywhere; }
.history-entry p { font-size: 12px; margin: 0 0 7px; white-space: pre-line; overflow-wrap: anywhere; }
.history-entry small { color: #69786c; font-size: 10px; }
.history-empty { padding: 40px 0; text-align: center; font-size: 13px; color: var(--muted); }
.users-dialog { width: 740px; max-width: min(740px, calc(100vw - 28px)); }
.users-toolbar { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.user-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 17px 0; border-top: 1px solid var(--line); }
.user-row > div { min-width: 0; }
.user-row h3 { margin: 0 0 6px; font-size: 16px; overflow-wrap: anywhere; }
.user-row p { margin: 0 0 7px; font-size: 12px; overflow-wrap: anywhere; }
.user-row small { font-size: 9px; font-weight: 700; letter-spacing: .7px; color: var(--green); }
.user-row .inactive-user { color: var(--muted); }
.user-row .button { flex-shrink: 0; }
#task-status { overflow-wrap: anywhere; }
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 100; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; pointer-events: none; max-width: min(520px, calc(100vw - 30px)); }
.toast { background: var(--ink); color: white; padding: 15px 16px; display: flex; align-items: center; gap: 18px; font-size: 12px; font-weight: 500; border: 1px solid #3b4640; border-left: 4px solid #71c38c; border-radius: 3px; box-shadow: 0 8px 25px #0003; pointer-events: auto; }
.toast-error { border-left-color: #f39170; }
.toast button { background: transparent; border: 0; color: #ffb777; font-size: 12px; font-weight: 700; padding: 7px 0; white-space: nowrap; }
.toast .toast-close { color: #aeb9b1; padding: 0; }
.toast-close svg { width: 18px; height: 18px; }
@media (min-width: 2000px) {
    .topbar { min-height: 64px; }
    .breadcrumb, .breadcrumb strong, .live-status, .eyebrow { font-size: 13px; }
    .page-heading { padding: 12px 0; }
    .page-heading p, .plant-label { font-size: 18px; }
    .summary-strip { min-height: 56px; }
    .period-block { padding: 14px 24px; }
    #period-dates { font-size: 15px; }
    .period-block .eyebrow, .metric > span:last-child, .progress-block span { font-size: 12px; }
    .board-toolbar { padding: 10px 0; }
    .board-caption h2 { font-size: 19px; }
    #board-hint { font-size: 15px; }
    .day-tasks { gap: 16px; }
    .day-relative, .today-badge { font-size: 11px; }
    .task-check { width: 30px; height: 30px; }
    .day-bottom, .page-footer { font-size: 12px; }
    .day-all-done { font-size: 10px; }
    .seven-days .task-time { font-size: 15px; }
    :is(.seven-days, .week-board.many-columns) .task-main { padding: 18px; }
}
@media (max-width: 1250px) {
    .period-block { min-width: 25%; padding: 12px 14px; }
    .period-block > div { gap: 9px; }
    .progress-block { margin: 0 20px; }
    .metric { padding: 10px; }
    .progress-block span { font-size: 8px; }
    .day-relative { display: none; }
    .day-main { padding: 12px; }
    #board-hint { display: none; }
    .seven-days { overflow-x: auto; grid-template-columns: repeat(7, minmax(165px, 1fr)); padding-bottom: 5px; }
}
@media (max-width: 1100px) {
    .workspace { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto minmax(0, 1fr) auto; }
    .topbar { grid-column: 1; grid-row: 1; min-height: 38px; justify-content: space-between; border-bottom: 1px solid var(--line); }
    .topbar .breadcrumb { display: flex; }
    .page-heading { grid-row: 2; }
    .summary-strip { grid-row: 3; }
    .board-section { grid-row: 4; }
    .page-footer { grid-row: 5; }
}
@media (max-width: 850px) {
    :root { --rail: 60px; }
    .sidebar { padding: 20px 6px; }
    .brand { margin-left: 4px; }
    .brand-mark { width: 38px; height: 38px; flex-basis: 38px; font-size: 28px; }
    .nav-item, .rail-toggle { padding: 13px; gap: 17px; }
    .workspace { padding: 0 18px; }
    .topbar { min-height: 38px; }
    .breadcrumb { font-size: 9px; gap: 10px; }
    .breadcrumb strong { font-size: 8px; }
    .topbar-right { gap: 12px; }
    .live-status { font-size: 8px; letter-spacing: .2px; }
    #clock { font-size: 20px; }
    .page-heading { padding: 10px 0; }
    .heading-actions { flex-direction: column; align-items: flex-end; gap: 12px; }
    h1 { font-size: 25px; }
    .summary-strip { flex-wrap: wrap; }
    .period-block { width: 100%; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
    .period-block > div { margin-top: 0; gap: 16px; }
    .metric { min-width: 20%; padding: 10px; }
    .metric-number { font-size: 23px; }
    .progress-block { min-width: 100px; margin: 0 18px; }
    .progress-block span { font-size: 7px; }
    .board { overflow-x: auto; grid-template-columns: repeat(var(--day-count, 5), minmax(215px, 1fr)); padding-bottom: 8px; }
    .day-header { padding: 15px; }
    .day-name { font-size: 15px; }
    .day-relative { display: inline; font-size: 7px; }
    .day-tasks { padding: 10px; }
    .task-main { padding: 12px; }
    .task-main h3 { font-size: 20px; }
    .task-badge { font-size: 9px; }
    .task-time { font-size: 12px; }
    .task-description { font-size: 13px; }
    .page-footer { align-items: flex-start; }
    .page-footer > span:last-child { text-align: right; max-width: 50%; }
}
@media (max-width: 540px) {
    .breadcrumb strong, .topbar-divider, .plant-label { display: none; }
    h1 { font-size: 25px; letter-spacing: -1px; }
    .page-heading .eyebrow { font-size: 8px; letter-spacing: 1px; }
    .page-heading p { font-size: 11px; line-height: 1.5; }
    .page-heading { flex-wrap: wrap; gap: 10px; }
    .heading-actions { align-items: flex-start; }
    .button { min-height: 44px; }
    .period-block .eyebrow { font-size: 7px; }
    #week-number { font-size: 22px; }
    #period-dates { font-size: 10px; }
    .period-block { padding: 10px 14px; flex-wrap: wrap; gap: 8px; }
    .metric { flex: 1; padding: 8px; }
    .metric > span:last-child { font-size: 8px; }
    .progress-block { flex-basis: 100%; padding: 8px 0; border-top: 1px solid var(--line); margin: 0 16px; }
    .progress-block span { font-size: 9px; }
    .board-toolbar { flex-wrap: wrap; }
    .board-controls { gap: 10px; flex-wrap: wrap; }
    .filter-control { font-size: 10px; gap: 7px; }
    .filter-control select { padding-right: 12px; }
    .page-footer { font-size: 9px; line-height: 1.6; }
    dialog { padding: 22px; }
    dialog h2 { font-size: 24px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .dialog-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
