    :root {
      color-scheme: light;
      --bg: #fbf4e9;
      --text: #30241c;
      --muted: #654f41;
      --dim: #725a49;
      --line: #dec8b1;
      --accent: #984028;
      --ochre: #855e1f;
      --chart-axis: #725a49;
      --chart-grid: #8f6a5040;
      --chart-guide: #93674d80;
      --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
      font-family: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
    }

    *, *::before, *::after { box-sizing: border-box; }
    [hidden] { display: none !important; }
    body { min-width: 280px; min-height: 100svh; margin: 0; background: var(--bg); color: var(--text); font-size: 1rem; }
    body::before {
      position: fixed; z-index: -1; inset: 0; content: "";
      background:
        linear-gradient(90deg, rgba(255, 250, 242, .46), rgba(255, 250, 242, .02) 72%),
        linear-gradient(180deg, transparent 57%, rgba(251, 244, 233, .18) 100%),
        url("warm-background.webp") right center / cover no-repeat;
    }
    button, input { font: inherit; }
    button { cursor: pointer; }
    button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
    h1, h2, h3, p, figure { margin: 0; }
    .shell { width: min(1216px, calc(100% - 100px)); min-height: 100svh; margin-inline: auto; display: flex; flex-direction: column; }
    .masthead, .footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-color: #ae79483d; }
    .masthead { min-height: 92px; border-bottom: 1px solid #ae79483d; }
    .brand { display: flex; align-items: center; gap: 12px; color: var(--text); font-size: 1.06rem; font-weight: 630; letter-spacing: -.035em; }
    .brand-mark { display: block; flex: none; width: 34px; height: 34px; object-fit: contain; }
    .preview-label { padding: 7px 10px; border: 1px solid #ba85465c; border-radius: 5px; background: #fff9eee8; color: #71462f; font: .75rem var(--mono); }
    .main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(315px, .51fr); grid-template-areas: "controls ." "dashboard access"; align-content: start; align-items: start; column-gap: clamp(26px, 5.3vw, 82px); padding-block: clamp(44px, 7.3vh, 82px) 48px; }
    .status-heading { grid-area: controls; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 13px; }
    .status-heading h1 { font-size: 1.04rem; font-weight: 580; }
    .ranges { display: flex; gap: 3px; padding: 3px; border: 1px solid #d7bea4; border-radius: 8px; background: #fff8edee; }
    .ranges button { min-height: 28px; min-width: 40px; padding: 3px 5px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: .74rem var(--mono); }
    .ranges button:hover { background: #f3e3d0; color: var(--text); }
    .ranges button[aria-pressed="true"] { background: #f0d6bc; color: #71331f; }
    .dashboard { grid-area: dashboard; }
    .charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
    .metric, .uptime, .access { border: 1px solid var(--line); background: #fffdf8ed; box-shadow: 0 18px 38px #6c39161f; }
    .metric { min-width: 0; padding: 17px 17px 12px; border-radius: 13px; --metric-color: var(--accent); }
    .metric.memory { --metric-color: var(--ochre); }
    .metric h3 { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; font-weight: 540; }
    .metric h3::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--metric-color); }
    .metric-value { margin-top: 6px; font: 500 clamp(1.9rem, 3.1vw, 2.6rem)/1.05 var(--mono); letter-spacing: -.08em; }
    .metric-value small { margin-left: 4px; color: var(--dim); font-size: .53em; }
    .chart { position: relative; margin-top: 9px; }
    canvas { display: block; width: 100%; height: 143px; }
    .axis { display: flex; justify-content: space-between; gap: 6px; margin: 0 1px; padding: 8px 0 1px; color: var(--dim); font: .72rem var(--mono); }
    .chart-tip { position: absolute; z-index: 1; top: -7px; left: 50%; max-width: 100%; padding: 4px 6px; transform: translateX(-50%); border: 1px solid #d7b692; border-radius: 5px; background: #fff6e9; color: var(--text); white-space: nowrap; font: .71rem var(--mono); pointer-events: none; }
    .uptime { display: flex; align-items: center; gap: 13px; min-height: 64px; margin-top: 13px; padding: 11px 15px; border-radius: 13px; }
    .uptime h2 { font-size: .92rem; font-weight: 560; }
    .uptime p { margin-left: auto; color: var(--accent); font: clamp(.86rem, 2.35vw, 1.15rem) var(--mono); letter-spacing: -.065em; white-space: nowrap; }
    .uptime p span { color: var(--muted); }
    .glyph { flex: none; width: 39px; height: 39px; display: grid; place-items: center; border: 1px solid #dcb795; border-radius: 10px; background: #f7e6d2; color: var(--accent); }
    .clock { width: 17px; height: 17px; border: 1.5px solid currentColor; border-radius: 50%; position: relative; }
    .clock::after { content: ""; position: absolute; width: 5px; height: 6px; bottom: 6px; left: 6px; border: solid currentColor; border-width: 0 0 1.5px 1.5px; }
    .access { grid-area: access; min-width: 0; padding: clamp(20px, 2.1vw, 29px); border-radius: 15px; background: #fffaf0f5; backdrop-filter: blur(14px); }
    #login-panel { align-self: stretch; }
    .access h2 { font-size: 1.9rem; font-weight: 580; letter-spacing: -.053em; line-height: 1.14; }
    .access-copy { margin-top: 7px; color: var(--muted); font-size: .925rem; line-height: 1.48; }
    .access form { display: grid; gap: 11px; margin-top: 16px; }
    .field { display: grid; gap: 6px; color: #513a2b; font-size: .85rem; }
    .field input {
      width: 100%; height: 42px; padding: 8px 11px; border: 1px solid #c4a58d; border-radius: 8px; background: #fffdf9;
      color: var(--text); font-size: 1rem;
    }
    .field input::placeholder { color: #775e4c; }
    .password { position: relative; }
    .password input { padding-right: 56px; }
    .password button {
      position: absolute; top: 4px; right: 4px; height: 36px; padding: 0 8px; border: 0; border-radius: 5px;
      color: #684c3c; background: transparent; font-size: .78rem;
    }
    .password button:hover { background: #f6e6d5; }
    .primary { display: grid; place-items: center; min-height: 44px; padding: 8px 12px; border: 0; border-radius: 8px; background: var(--accent); color: #fffaf4; font-weight: 680; }
    .primary:hover { background: #78301d; }
    form .primary { margin-top: 2px; }
    .secondary { min-height: 36px; padding: 5px 9px; border: 1px solid #c8aa91; border-radius: 7px; background: #fff6eb; color: #5f4130; font-size: .85rem; }
    .secondary:hover { background: #f4e3d3; }
    .form-status { min-height: 1.2em; color: var(--accent); font-size: .875rem; }
    .form-status:empty { display: none; }
    .form-status[data-error="true"] { color: #982b28; }

    .workspace { min-height: 100svh; background: #faf3e8; }
    .work-frame { width: min(100% - 64px, 1280px); margin-inline: auto; }
    .work-top { border-bottom: 1px solid #deccb8; background: #fff9ef; }
    .work-top .work-frame { display: flex; align-items: center; justify-content: space-between; min-height: 74px; gap: 16px; }
    .work-session { display: flex; align-items: center; gap: 15px; }
    .session-name { max-width: 22ch; overflow: hidden; text-overflow: ellipsis; color: #5e493a; white-space: nowrap; font: .86rem var(--mono); }
    .work-grid { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: clamp(24px, 3vw, 46px); padding-block: 38px 50px; }
    .work-grid.member { grid-template-columns: minmax(0, 1fr); }
    .work-nav { display: grid; align-content: start; gap: 5px; }
    .work-nav button { display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 8px 11px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); text-align: left; }
    .work-nav button:hover { background: #f5e8d9; color: var(--text); }
    .work-nav button[aria-pressed="true"] { border-color: #d0a785; background: #f2ddc6; color: #743620; }
    .work-nav-icon { display: block; width: 14px; height: 14px; color: currentColor; }
    .work-nav-icon.people { border: 1px solid; border-radius: 50%; box-shadow: 4px 0 0 -2px #f2ddc6, 5px 0 0 -1px currentColor; }
    .work-nav-icon.people::after { content: ""; display: block; width: 4px; height: 4px; margin: 4px; border-radius: 50%; background: currentColor; }
    .work-area { min-width: 0; }
    .work-nav-icon.activity { height: 13px; border: 1px solid; border-radius: 2px; }
    .work-nav-icon.activity::after { content: ""; display: block; width: 7px; height: 1px; margin: 3px 2px; background: currentColor; box-shadow: 0 3px currentColor; }
    .audit-table { overflow-x: auto; }
    .audit-table table { min-width: 650px; }
    .audit-table th:first-child { width: 185px; }
    .audit-table th:nth-child(2) { width: 90px; }
    .audit-table th:nth-child(3) { width: 135px; }
    .audit-table th:last-child { width: 115px; }
    .audit-table time { color: #614d3e; font-size: .8rem; }
    .event-result.failed { color: #982b28; }
    .event-result.recorded { color: var(--accent); }
    .event-result.requested { color: var(--muted); }
    .work-heading { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 22px; }
    .work-heading h1 { font-size: clamp(2rem, 3.8vw, 2.9rem); line-height: 1.05; letter-spacing: -.055em; font-weight: 575; }
    .work-heading :focus-visible { outline-offset: 4px; }
    .work-actions, .row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
    .work-actions .primary, .work-actions .secondary { min-height: 40px; padding-inline: 13px; }
    .work-actions .primary { font-size: .88rem; }
    .file-browser, .users-table, .audit-table { border: 1px solid #d9c4ae; border-radius: 12px; background: #fffaf2; }
    .file-bar { display: flex; min-height: 60px; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 10px 15px; gap: 8px 14px; border-bottom: 1px solid #d9c4ae; }
    .breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; color: var(--muted); font-size: .88rem; }
    .breadcrumbs span { overflow-wrap: anywhere; }
    .breadcrumbs [aria-current="page"] { font-weight: 600; color: var(--text); }
    .owner-control { display: flex; align-items: center; gap: 8px; max-width: 100%; color: var(--muted); font-size: .84rem; }
    .owner-control select { max-width: 23ch; min-height: 34px; padding: 4px 8px; border: 1px solid #c5a58c; border-radius: 6px; background: #fffdf9; color: var(--text); font: inherit; }
    .owner-control select:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
    .workspace table { width: 100%; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: .875rem; }
    .workspace th, .workspace td { padding: 12px 15px; vertical-align: middle; overflow-wrap: anywhere; }
    .workspace th { color: var(--muted); font-weight: 550; }
    .workspace td { height: 60px; border-top: 1px solid #e7d6c4; }
    .workspace tr:hover td { background: #fcf0e1; }
    .workspace th:last-child, .workspace td:last-child { text-align: right; }
    .workspace td:last-child .row-actions { justify-content: flex-end; }
    .file-browser th:nth-child(2) { width: 112px; }
    .file-browser th:last-child { width: 120px; }
    .users-table th:nth-child(2) { width: 145px; }
    .users-table th:last-child { width: 250px; }
    .file-entry { display: flex; align-items: center; gap: 11px; min-width: 0; }
    .entry-icon { flex: 0 0 auto; position: relative; display: inline-block; color: var(--ochre); width: 14px; height: 17px; border: 1px solid currentColor; border-radius: 2px; }
    .entry-icon.folder { width: 18px; height: 13px; margin-top: 4px; color: var(--accent); }
    .entry-icon.folder::before { content: ""; position: absolute; top: -4px; left: -1px; width: 8px; height: 3px; border: 1px solid; border-bottom: 0; border-radius: 2px 2px 0 0; }
    .text-action, .download-link { display: inline-block; padding: 5px 0; border: 0; background: transparent; color: var(--accent); text-align: left; text-decoration: none; overflow-wrap: anywhere; font-size: inherit; }
    .text-action:hover, .download-link:hover { text-decoration: underline; text-underline-offset: 3px; }
    .row-actions .secondary { min-height: 34px; }
    .row-actions .danger-outline { color: #982b28; }
    .workspace .danger { background: #a2322c; color: #fff9f5; }
    .workspace .danger:hover { background: #7c211d; }
    .role-label { color: var(--muted); }
    .file-empty { padding: 25px 15px; border-top: 1px solid #e7d6c4; color: var(--muted); }
    .view-status { margin-top: 12px; }
    .workspace dialog { width: min(100% - 32px, 430px); padding: 24px; border: 1px solid #c6a286; border-radius: 13px; background: #fff8ee; color: var(--text); }
    .workspace dialog::backdrop { background: #3120178c; }
    .workspace dialog h2 { margin-bottom: 15px; font-size: 1.55rem; letter-spacing: -.035em; }
    .workspace dialog form { display: grid; gap: 14px; }
    .workspace dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
    .workspace dialog .field small, .workspace dialog p { color: var(--muted); line-height: 1.45; }
    .workspace dialog .form-status { color: var(--accent); }
    .workspace dialog .form-status[data-error="true"] { color: #982b28; }
    .workspace [type="submit"]:disabled { opacity: .65; cursor: wait; }

    @media (max-width: 820px) {
      .work-frame { width: calc(100% - 36px); }
      .work-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 23px; }
      .work-nav { display: flex; }
      .work-nav button { min-width: 92px; }
    }
    @media (max-width: 525px) {
      .work-frame { width: calc(100% - 24px); }
      .work-top .work-frame { min-height: 64px; }
      .work-session { gap: 7px; min-width: 0; }
      .workspace .brand { flex: none; gap: 6px; font-size: .92rem; }
      .workspace .brand-mark { width: 27px; height: 27px; }
      .session-name { max-width: 9ch; font-size: .73rem; }
      .work-session button { flex: none; }
      .workspace th, .workspace td { padding-inline: 8px; }
      .file-browser th:nth-child(2) { width: 65px; }
      .file-browser th:last-child { width: 85px; }
      .users-table th:nth-child(2) { width: 81px; }
      .users-table th:last-child { width: 118px; }
      .work-nav button { min-width: 0; padding-inline: 9px; }
      .row-actions { gap: 4px; }
      .row-actions .secondary { padding-inline: 6px; }
    }
    .footer { min-height: 58px; border-top: 1px solid #ae79483d; color: var(--dim); font: .76rem var(--mono); }
    .footer { justify-content: flex-end; }

    @media (min-width: 801px) {
      .main:has(#login-panel:not([hidden])) .dashboard { align-self: stretch; display: flex; flex-direction: column; }
      .main:has(#login-panel:not([hidden])) .charts { flex: 1; }
      .main:has(#login-panel:not([hidden])) .metric { display: flex; flex-direction: column; }
      .main:has(#login-panel:not([hidden])) .chart { margin-top: auto; padding-top: 9px; }
      .main:has(#login-panel:not([hidden])) .chart-tip { top: 2px; }
    }

    @media (max-width: 1050px) {
      .shell { width: calc(100% - 64px); }
      .main { column-gap: 28px; }
      .metric { padding-inline: 13px; }
    }
    @media (max-width: 800px) {
      .main { grid-template-columns: minmax(0, 1fr); grid-template-areas: "controls" "dashboard" "access"; }
      .access { margin-top: 24px; }
      .masthead { min-height: 70px; }
      body::before { background-position: 68% center; }
    }
    @media (max-width: 490px) {
      .shell { width: calc(100% - 32px); }
      .main { padding-block: 35px 32px; }
      .charts { gap: 8px; }
      .metric { padding-inline: 9px; }
      .metric h3 { gap: 5px; }
      .axis { font-size: .67rem; }
      canvas { height: 91px; }
      .ranges button { min-width: 34px; }
    }

    #metrics-label[data-stale="true"] { color: #932c27; }
    .activity-more { display: flex; justify-content: flex-end; margin-top: 12px; }
    .primary:disabled { opacity: .65; cursor: wait; }
