@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500;6..72,600&display=swap');

:root {
    --ink: #202a25;
    --muted: #78817b;
    --line: #e7eae6;
    --paper: #f7f8f5;
    --white: #fff;
    --green: #23664d;
    --green-dark: #174a38;
    --mint: #e4f3ea;
    --coral: #d76b54;
    --coral-pale: #fff0eb;
    --blue: #4d83a5;
    --blue-pale: #eaf4fa;
    --yellow: #bd8d2d;
    --yellow-pale: #fff5da;
    --purple: #7d6b9b;
    --purple-pale: #f1edf7;
    --shadow: 0 10px 28px rgba(32, 42, 37, .035);
    font-family: 'DM Sans', 'Trebuchet MS', sans-serif;
    color: var(--ink);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { width: 100%; max-width: 100%; }
body { margin: 0; background: var(--paper); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid rgba(35,102,77,.25); outline-offset: 2px; }
.app-shell { min-height: 100vh; }
.sidebar { width: 238px; position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 27px 18px 16px; background: #fff; border-right: 1px solid var(--line); z-index: 3; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 8px 34px; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.brand small { display: block; color: #939b95; font-size: 10px; font-weight: 500; letter-spacing: .1px; }
.side-label, .eyebrow { color: #87918a; font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.side-label { padding: 0 12px 11px; }
.sidebar nav { display: grid; gap: 4px; }
.nav-link { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 12px; border-radius: 6px; color: #69746d; font-size: 13px; font-weight: 600; transition: background .18s ease, color .18s ease; }
.nav-link:hover { background: #f4f7f4; color: var(--green); }
.nav-link.active { background: var(--mint); color: var(--green-dark); }
.nav-number { color: #9aa39d; font-size: 10px; font-weight: 600; font-variant-numeric: tabular-nums; }
.nav-link.active .nav-number { color: var(--green); }
.sidebar-bottom { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 15px 5px 3px; border-top: 1px solid var(--line); }
.avatar { flex: 0 0 auto; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: #e8eee9; color: var(--green); font-size: 12px; font-weight: 700; }
.user-meta { min-width: 0; flex: 1; }
.user-meta strong, .user-meta small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-meta strong { font-size: 11px; }
.user-meta small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.icon-button { width: auto; height: 32px; padding: 0 9px; border: 0; background: transparent; color: #77827a; border-radius: 5px; cursor: pointer; font-size: 11px; font-weight: 600; }
.icon-button:hover { background: var(--paper); color: var(--green); }
.main-content { min-width: 0; min-height: 100vh; margin-left: 238px; display: flex; flex-direction: column; }
.topbar { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 42px; background: rgba(255,255,255,.8); border-bottom: 1px solid var(--line); }
.breadcrumb { color: #919a94; font-size: 10px; font-weight: 700; letter-spacing: .85px; }
.breadcrumb span { padding: 0 8px; color: #bec5bf; }
.top-user { display: flex; align-items: center; gap: 8px; color: #67736b; font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #68a980; box-shadow: 0 0 0 3px #e8f4eb; }
.page-wrap { width: min(100%, 1320px); min-width: 0; padding: 35px 42px 28px; margin: 0 auto; flex: 1; }
.footer-note { padding: 15px 42px 20px; color: #a0a8a2; font-size: 10px; }
.footer-note span { padding: 0 4px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-family: 'Newsreader', Georgia, serif; font-size: 34px; font-weight: 500; letter-spacing: 0; line-height: 1.12; }
h2 { margin: 3px 0 0; font-family: 'Newsreader', Georgia, serif; font-size: 21px; font-weight: 500; letter-spacing: 0; line-height: 1.2; }
.muted { color: var(--muted); }
.welcome-row, .page-title { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 24px; }
.welcome-row { margin-bottom: 28px; }
.welcome-row .eyebrow, .page-title .eyebrow { margin-bottom: 8px; }
.welcome-row p, .page-title p { margin: 6px 0 0; font-size: 12px; }
.page-title { align-items: flex-end; }
.page-title h1 { margin-top: 4px; }
.title-actions { display: flex; align-items: center; gap: 9px; }
.title-actions form { margin: 0; }
.back-link { display: inline-block; margin-bottom: 13px; color: var(--green); font-size: 11px; font-weight: 600; }
.button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 5px; cursor: pointer; font-size: 12px; font-weight: 700; transition: transform .16s ease, background .16s ease, box-shadow .16s ease; white-space: nowrap; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--green); box-shadow: 0 3px 8px rgba(35,102,77,.12); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { color: #45534a; background: #fff; border-color: #dfe4df; }
.button.secondary:hover { background: #f7f9f7; }
.button.small { min-height: 32px; padding: 0 10px; font-size: 11px; }
.button.full { width: 100%; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-bottom: 17px; }
.metric { position: relative; min-height: 118px; overflow: hidden; padding: 17px 18px 15px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); animation: rise-in .38s both; }
.metric:nth-child(2) { animation-delay: .04s; }.metric:nth-child(3) { animation-delay: .08s; }.metric:nth-child(4) { animation-delay: .12s; }.metric:nth-child(5) { animation-delay: .16s; }.metric:nth-child(6) { animation-delay: .2s; }
.metric > span { display: block; color: #78827b; font-size: 11px; font-weight: 600; }
.metric strong { display: block; margin: 3px 0 0; font-family: 'Newsreader', Georgia, serif; font-size: 30px; font-weight: 500; line-height: 1.05; }
.metric-inline { display: inline; margin-left: 5px; color: var(--green); font-family: 'DM Sans', 'Trebuchet MS', sans-serif; font-size: 13px; font-weight: 700; }
.metric small { display: block; margin-top: 5px; color: #9aa29c; font-size: 10px; }
.metric-accent { position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; border-radius: 50%; }
.metric-accent.green { background: #5caa78; }.metric-accent.coral { background: var(--coral); }.metric-accent.blue { background: var(--blue); }.metric-accent.yellow { background: #d3a446; }.metric-accent.violet { background: #9883b6; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.22fr) minmax(280px,.78fr); gap: 14px; }
.panel { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: var(--shadow); }
.dashboard-grid > .panel { animation: rise-in .42s .08s both; }
.dashboard-grid > .wide { grid-column: 1 / -1; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; }
.section-heading .eyebrow { margin-bottom: 3px; }
.text-link { color: var(--green); font-size: 11px; font-weight: 700; white-space: nowrap; }
.text-link span { padding-left: 3px; }
.table-scroll { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { padding: 10px 11px; border-bottom: 1px solid var(--line); color: #98a19b; font-size: 9px; font-weight: 700; letter-spacing: .7px; }
td { padding: 12px 11px; border-bottom: 1px solid #f0f2ef; color: #58635c; font-size: 11px; }
tbody tr:last-child td { border-bottom: 0; }
td strong, td small { display: block; }
td strong { color: var(--ink); font-size: 11px; font-weight: 600; }
td small { margin-top: 3px; color: #99a19b; font-size: 10px; }
.table-primary { display: block; color: var(--ink); font-size: 11px; font-weight: 700; }
.table-primary:hover, .row-link:hover, .text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.row-link { color: var(--green); font-size: 10px; font-weight: 700; }
.action-sep { margin: 0 5px; color: #c2c8c3; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 3px 8px; border-radius: 4px; background: #f0f2ef; color: #647069; font-size: 9px; font-weight: 700; white-space: nowrap; }
.status-new, .status-todo { background: var(--blue-pale); color: #41708e; }
.status-contacted, .status-inprogress { background: var(--mint); color: #397554; }
.status-followup, .status-onhold { background: var(--yellow-pale); color: #98701c; }
.status-converted, .status-completed, .status-done { background: #e7f2e9; color: #3f8052; }
.status-lost, .status-cancelled { background: var(--coral-pale); color: #ae5d48; }
.status-notstarted { background: #f0f1ef; color: #6c756f; }
.empty-state { padding: 27px 12px; color: #929b94; text-align: center; font-size: 11px; }
.deadline-list { display: grid; }
.deadline-item { display: flex; align-items: center; gap: 10px; min-height: 53px; border-bottom: 1px solid #f0f2ef; }
.deadline-item:last-child { border-bottom: 0; }
.deadline-mark { width: 7px; height: 7px; flex: 0 0 auto; border: 2px solid #8cbc9a; border-radius: 50%; box-shadow: 0 0 0 3px #edf6ef; }
.deadline-item div { min-width: 0; flex: 1; }
.deadline-item strong, .deadline-item small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deadline-item strong { font-size: 11px; }
.deadline-item small { margin-top: 3px; color: #99a19b; font-size: 10px; }
.deadline-item time { color: #738078; font-size: 10px; font-weight: 600; }
.project-list { display: grid; }
.project-row { display: grid; grid-template-columns: minmax(180px,1.5fr) minmax(90px,.75fr) minmax(120px,1fr) minmax(90px,.75fr); align-items: center; gap: 20px; padding: 13px 9px; border-top: 1px solid #f0f2ef; }
.project-row:hover { background: #fafbf9; }
.project-ident { display: flex; align-items: center; gap: 10px; min-width: 0; }
.project-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 2px; background: #7bb18b; transform: rotate(45deg); }
.project-ident strong, .project-ident small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-ident strong { font-size: 11px; }.project-ident small { margin-top: 3px; color: #99a19b; font-size: 10px; }
.progress-cell, .table-progress { display: flex; align-items: center; gap: 8px; }
.progress-track { min-width: 45px; height: 5px; overflow: hidden; flex: 1; border-radius: 5px; background: #edf0ed; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: #4a9670; }
.progress-cell small, .table-progress small { color: #79847c; font-size: 10px; }
.date-cell { font-size: 10px; }
.filter-bar { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.search-box { display: flex; align-items: center; gap: 8px; width: min(360px, 42vw); height: 38px; padding: 0 11px; border: 1px solid #dfe4df; border-radius: 5px; background: #fff; color: #8b968e; }
.search-box span { font-size: 19px; line-height: 1; }
.search-box input { width: 100%; height: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 11px; }
.search-box input:focus-visible { outline: none; }
.search-box:focus-within { border-color: #9cb9a5; box-shadow: 0 0 0 3px rgba(35,102,77,.08); }
.filter-select { display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 9px; border: 1px solid #dfe4df; border-radius: 5px; background: #fff; color: #87918a; font-size: 10px; }
.filter-select select { max-width: 145px; border: 0; color: #536057; background: transparent; outline: 0; font-size: 10px; }
.clear-link { color: #818c84; font-size: 10px; font-weight: 600; }
.table-panel { padding: 5px 12px 0; }
.table-panel td { padding-top: 13px; padding-bottom: 13px; vertical-align: middle; }
.table-panel th { padding-top: 11px; }
.table-panel td form { margin: 0; }
.table-panel td .button, .table-panel td select { vertical-align: middle; }
.table-footer { padding: 11px; border-top: 1px solid #f0f2ef; color: #98a19b; font-size: 10px; }
.form-panel { padding: 0 23px 18px; }
.form-section { padding: 20px 0 21px; border-bottom: 1px solid var(--line); }
.form-section h2 { margin: 0 0 16px; font-family: 'DM Sans', 'Trebuchet MS', sans-serif; font-size: 13px; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 16px; }
label { display: grid; gap: 6px; color: #59655d; font-size: 11px; font-weight: 600; }
label em { color: var(--coral); font-style: normal; }
input, select, textarea { width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #dfe4df; border-radius: 4px; color: var(--ink); background: #fff; font-size: 12px; font-weight: 400; }
textarea { min-height: 76px; resize: vertical; }
input::placeholder, textarea::placeholder { color: #adb5af; }
label small { margin-top: -2px; color: #8d978f; font-size: 10px; font-weight: 400; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 18px; }
.detail-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.9fr); gap: 14px; align-items: start; }
.lead-meta-panel { margin-top: 14px; }
.lead-meta-panel .detail-list { margin-top: 12px; }
.row-status-form { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; margin: 0; }
.table-panel td .row-status-form { display: inline-flex; }
.row-status-form select { width: 128px; min-width: 128px; min-height: 31px; padding: 5px 7px; font-size: 10px; }
.row-status-form .button { min-height: 31px; padding: 0 8px; font-size: 10px; line-height: 1; }
.detail-grid > .panel { padding: 21px; }
.detail-grid .section-heading { align-items: flex-start; }
.detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 20px; margin: 22px 0 0; }
.detail-list div { min-width: 0; }
.detail-list dt { color: #919b94; font-size: 10px; }
.detail-list dd { margin: 4px 0 0; color: #344039; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.note-copy { color: #606c64; font-size: 12px; line-height: 1.75; }
.activity-label { margin: 25px 0 11px; }
.detail-subhead { margin: 23px 0 9px; }
.history-list { display: grid; }
.history-list > div { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f2ef; }
.history-list > div:last-child { border-bottom: 0; }
.history-dot { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: #80ae8d; box-shadow: 0 0 0 3px #eef5ef; }
.history-list p { margin: 0; }
.history-list strong, .history-list small { display: block; }
.history-list strong { color: #4d5951; font-size: 11px; font-weight: 600; }
.history-list small { margin-top: 3px; color: #9aa39c; font-size: 10px; }
.large-progress { display: flex; align-items: center; gap: 12px; min-width: 0; width: 100%; margin: 22px 0 10px; }
.large-progress .progress-track { min-width: 0; }
.large-progress .progress-track { height: 9px; }
.large-progress strong { flex: 0 0 auto; color: var(--green); font-family: 'Newsreader', Georgia, serif; font-size: 23px; font-weight: 500; }
.project-detail .detail-list { margin: 21px 0 23px; }
.task-list { display: grid; }
.task-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid #f0f2ef; }
.task-check { width: 17px; height: 17px; display: grid; flex: 0 0 auto; place-items: center; border: 1px solid #ccd5ce; border-radius: 50%; color: #fff; font-size: 10px; }
.task-check.checked { border-color: #6a9d79; background: #6a9d79; }
.task-body { flex: 1; min-width: 0; }
.task-body strong, .task-body small { display: block; }
.task-body strong { font-size: 11px; }.task-body small { margin-top: 3px; color: #929b94; font-size: 10px; }
.inline-task-form { display: grid; gap: 12px; padding: 15px; margin: 0 0 12px; border: 1px solid var(--line); border-radius: 5px; background: #fafbf9; }
.task-updates { margin-top: 14px; }
.task-update-row { display: grid; grid-template-columns: minmax(130px,1fr) minmax(110px,.8fr) minmax(130px,.7fr) auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid #f0f2ef; }
.task-update-row strong { font-size: 11px; }
.task-update-row select { min-height: 32px; padding: 6px 8px; font-size: 11px; }
.task-project-name { font-size: 10px; }
.tabs { display: flex; gap: 20px; margin: -3px 0 16px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 0 1px 11px; color: #808b83; font-size: 11px; font-weight: 600; }
.tabs a.selected { margin-bottom: -1px; border-bottom: 2px solid var(--green); color: var(--green); }
.team-list { display: grid; }
.team-row { display: flex; align-items: center; gap: 11px; padding: 13px 0; border-top: 1px solid #f0f2ef; }
.team-row > div { flex: 1; min-width: 0; }
.team-row form { margin: 0; }
.button.danger { color: #a64e3c; background: var(--coral-pale); border-color: #f0d7d0; }
.button.danger:hover { background: #ffe4dc; }
.team-row strong, .team-row small { display: block; }
.team-row strong { font-size: 11px; }.team-row small { margin-top: 2px; color: #929b94; font-size: 10px; }
.small-avatar { width: 30px; height: 30px; font-size: 11px; }
.stack-form { display: grid; gap: 14px; margin-top: 22px; }
.compact-form { margin-top: 16px; }
.detail-grid > .panel > .muted { font-size: 11px; }
.settings-panel { max-width: 570px; }
.settings-panel h2 { margin: 4px 0; }
.settings-panel .stack-form { max-width: 390px; }
.proof-upload-form, .aftersales-form { display: grid; gap: 11px; max-width: 620px; }
.proof-upload-form { grid-template-columns: minmax(0,1fr) auto; align-items: end; }
.proof-upload-form label { min-width: 0; }
.proof-list { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 12px; margin-top: 16px; }
.proof-item { display: grid; gap: 8px; min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 5px; }
.proof-item img { display: block; width: 100%; height: 145px; object-fit: cover; border-radius: 3px; background: var(--paper); }
.proof-item strong, .proof-item small { display: block; }
.proof-item strong { font-size: 11px; }
.proof-item small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.proof-expired { display: grid; min-height: 145px; place-items: center; color: var(--muted); background: var(--paper); font-size: 11px; }
.aftersales-panel, .inventory-history { margin-top: 14px; }
.aftersales-form { margin-bottom: 14px; }
.project-messages-panel { margin-top: 14px; }
.project-messages-panel .section-heading { align-items: flex-start; }
.project-messages-panel .section-heading p { margin: 5px 0 0; font-size: 11px; }
.project-team-panel { margin-top: 14px; }
.project-team-panel .note-copy { margin-bottom: 0; }
.project-status-panel { margin-top: 14px; }
.project-status-form { display: grid; gap: 12px; max-width: 700px; }
.status-update-history { margin-top: 15px; }
.status-update-history p > span { display: block; margin-top: 5px; color: #59655d; font-size: 11px; line-height: 1.65; white-space: pre-line; }
.project-member-options { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 7px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: #fafbf9; }
.project-member-option { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px; border-radius: 4px; color: #4d5951; font-size: 11px; cursor: pointer; }
.project-member-option:hover { background: #f0f5f0; }
.project-member-option input { width: 15px; height: 15px; flex: 0 0 auto; margin: 0; accent-color: var(--green); }
.role-staff a[href*="edit="], .role-staff .table-panel td .row-status-form { display: none; }
.message-list { display: grid; gap: 9px; max-height: 480px; overflow-y: auto; padding: 2px 2px 14px; }
.message-item { max-width: min(88%, 680px); padding: 11px 13px; border: 1px solid #e8ece8; border-radius: 6px 6px 6px 2px; background: #f8faf8; overflow-wrap: anywhere; }
.message-item.message-own { justify-self: end; border-color: #d7e9dc; border-radius: 6px 6px 2px 6px; background: #eff8f0; }
.message-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.message-heading strong { color: #445148; font-size: 11px; }
.message-heading time { color: #929b94; font-size: 10px; }
.message-item p { margin: 5px 0 0; color: #4d5951; font-size: 12px; line-height: 1.65; white-space: pre-line; }
.project-message-form { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.project-message-form label { font-size: 11px; font-weight: 600; }
.project-message-form textarea { width: 100%; }
.message-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.message-form-footer small { color: var(--muted); font-size: 10px; }
.aftersales-history strong { font-weight: 500; line-height: 1.7; white-space: pre-line; }
.inventory-add-panel { margin-bottom: 14px; }
.inventory-add-form { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: end; gap: 12px; }
.inventory-adjust-form { display: grid; grid-template-columns: minmax(95px,.7fr) minmax(130px,1fr) auto; align-items: center; gap: 6px; }
.inventory-adjust-form input { min-width: 0; min-height: 32px; padding: 6px 7px; font-size: 10px; }
.inventory-table-panel td { white-space: normal; }
.inventory-table-panel td:first-child { min-width: 140px; }
.inventory-table-panel td form { min-width: 290px; }
.notice { padding: 11px 13px; margin-bottom: 16px; border: 1px solid #cfe6d4; border-radius: 5px; color: #356f48; background: #eff8f0; font-size: 12px; }
.notice.error { border-color: #f0c9bd; color: #9c4e3c; background: #fff2ed; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 25px; background-color: #f2f5ef; background-image: radial-gradient(circle at 9% 14%, rgba(50,118,80,.07) 0 1px, transparent 1.5px), linear-gradient(130deg, transparent 53%, rgba(234,242,233,.8) 53% 70%, transparent 70%); background-size: 18px 18px, 100% 100%; }
.auth-panel { width: min(100%, 420px); padding: 36px; border: 1px solid #e4e9e3; border-radius: 8px; background: #fff; box-shadow: 0 18px 55px rgba(38,63,46,.08); animation: rise-in .45s both; }
.auth-brand { padding: 0 0 31px; }
.auth-panel h1 { font-size: 30px; }
.auth-panel > .muted { margin: 9px 0 20px; font-size: 12px; }
.auth-panel .stack-form { gap: 16px; margin-top: 21px; }
.auth-panel .notice { margin-bottom: 15px; }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1500px) { .metrics { grid-template-columns: repeat(6,minmax(0,1fr)); }.dashboard-grid { grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); } }
@media (max-width: 1100px) { .sidebar { width: 205px; }.main-content { margin-left: 205px; }.page-wrap { padding: 30px 26px 24px; }.topbar { padding: 0 26px; }.footer-note { padding-left: 26px; }.metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }.dashboard-grid { grid-template-columns: 1fr; }.dashboard-grid > .wide { grid-column: auto; } }
@media (max-width: 760px) { .sidebar { width: auto; height: auto; position: sticky; inset: 0 0 auto; display: block; padding: 10px 13px 9px; border-right: 0; border-bottom: 1px solid var(--line); }.brand { padding: 0 2px 9px; font-size: 14px; }.brand small { display: inline; margin-left: 5px; font-size: 9px; }.side-label, .sidebar-bottom { display: none; }.sidebar nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }.sidebar nav::-webkit-scrollbar { display: none; }.nav-link { height: 34px; flex: 0 0 auto; gap: 6px; padding: 0 9px; font-size: 11px; }.nav-number { display: none; }.main-content { min-height: calc(100vh - 90px); margin-left: 0; }.topbar { height: 40px; padding: 0 17px; }.top-user { font-size: 10px; }.page-wrap { padding: 25px 16px 20px; }.footer-note { padding: 12px 16px 17px; }.welcome-row, .page-title { align-items: flex-start; margin-bottom: 19px; }.welcome-row { align-items: center; }.welcome-row h1, .page-title h1 { font-size: 29px; }.welcome-row p, .page-title p { font-size: 11px; }.button { min-height: 36px; padding: 0 11px; font-size: 11px; }.metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.metric { min-height: 108px; padding: 14px; }.metric strong { font-size: 27px; }.dashboard-grid { gap: 10px; }.panel { padding: 16px; }.project-row { grid-template-columns: minmax(140px,1fr) minmax(95px,.65fr); gap: 9px 13px; }.project-row > .badge { justify-self: start; }.project-row .progress-cell { grid-column: 1; }.project-row .date-cell { grid-column: 2; grid-row: 2; text-align: right; }.filter-bar { flex-wrap: wrap; }.search-box { width: 100%; }.filter-select { flex: 1; }.filter-select select { flex: 1; max-width: none; }.table-panel { padding: 3px 6px 0; }.table-panel td { padding: 12px 9px; }.table-panel th { padding: 9px; }.detail-grid { grid-template-columns: 1fr; gap: 10px; }.detail-grid > .panel { padding: 17px; }.form-panel { padding: 0 16px 16px; }.form-section { padding: 17px 0; }.form-grid { gap: 12px; }.detail-list { gap: 15px; }.page-title > .button { flex-shrink: 0; }.tabs { gap: 15px; }.footer-note { font-size: 9px; }.proof-upload-form { grid-template-columns: 1fr; }.inventory-add-form { grid-template-columns: repeat(2,minmax(0,1fr)); }.inventory-adjust-form { grid-template-columns: minmax(90px,.7fr) minmax(110px,1fr) auto; } }
@media (max-width: 760px) { .task-update-row { grid-template-columns: minmax(0,1fr) minmax(110px,.8fr) auto; }.task-project-name { grid-column: 1; grid-row: 2; }.task-update-row select { grid-column: 2; grid-row: 1 / span 2; }.task-update-row button { grid-column: 3; grid-row: 1 / span 2; } }
@media (max-width: 430px) { .welcome-row { align-items: flex-start; }.welcome-row .button { padding: 0 9px; }.welcome-row h1 { font-size: 25px; }.welcome-row p { max-width: 230px; }.metrics { gap: 7px; }.metric { padding: 12px; }.metric > span { font-size: 10px; }.metric small { font-size: 9px; }.form-grid { grid-template-columns: 1fr; }.span-2 { grid-column: auto; }.detail-list { grid-template-columns: 1fr; gap: 12px; }.title-actions { flex-wrap: wrap; }.filter-bar > .button { flex: 1; }.filter-bar .clear-link { padding: 8px; }.auth-panel { padding: 27px 22px; }.project-row { grid-template-columns: minmax(130px,1fr) auto; }.project-row .progress-cell { grid-column: 1; }.project-row .date-cell { grid-column: 2; }.tabs { gap: 11px; }.tabs a { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }

:root {
    --ink: #182821;
    --muted: #718078;
    --line: #e6ece8;
    --paper: #f5f8f6;
    --green: #24734f;
    --green-dark: #185b3c;
    --mint: #e8f4ed;
    --shadow: 0 2px 8px rgba(24, 40, 33, .035), 0 12px 30px rgba(24, 40, 33, .025);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
}

body { color: var(--ink); background: var(--paper); }
.sidebar { width: 250px; padding: 24px 17px 16px; border-right-color: #e9efeb; box-shadow: 3px 0 18px rgba(29, 48, 38, .025); }
.brand { gap: 12px; padding: 2px 9px 37px; font-size: 16px; }
.brand small { margin-top: 2px; color: #87938c; }
.side-label, .eyebrow { color: #87958d; letter-spacing: 1.15px; }
.sidebar nav { gap: 5px; }
.nav-link { height: 43px; gap: 13px; border-radius: 8px; color: #68776e; }
.nav-link:hover { background: #f4f8f5; }
.nav-link.active { color: var(--green-dark); background: #e9f4ed; box-shadow: inset 3px 0 #3d9467; }
.sidebar-bottom { padding: 16px 5px 4px; }
.main-content { margin-left: 250px; }
.topbar { position: sticky; top: 0; z-index: 10; height: 62px; padding: 0 clamp(22px, 3vw, 46px); background: rgba(255,255,255,.96); border-bottom-color: #e8eeea; backdrop-filter: blur(12px); }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.notification-link { position: relative; width: 32px; height: 32px; display: inline-grid; flex: 0 0 auto; place-items: center; border-radius: 7px; color: #65746a; text-decoration: none; transition: color .15s ease, background .15s ease; }
.notification-link:hover { color: var(--green); background: #f1f7f3; }
.notification-link svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notification-count { min-width: 19px; height: 19px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 999px; color: #fff; background: var(--coral); font-size: 10px; line-height: 1; }
.notification-link .notification-count { position: absolute; top: -5px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border: 2px solid #fff; font-size: 9px; }
.notification-link:focus-visible { outline: 3px solid rgba(35,102,77,.25); outline-offset: 2px; }
.breadcrumb { color: #829088; }
.top-user { padding: 7px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.page-wrap { width: min(100%, 1480px); padding: 37px clamp(22px, 3vw, 46px) 34px; }
.footer-note { padding: 14px clamp(22px, 3vw, 46px) 20px; }
h1 { margin-bottom: 7px; font-family: 'DM Sans', 'Segoe UI', sans-serif; font-size: clamp(28px, 2.3vw, 35px); font-weight: 700; letter-spacing: -.8px; line-height: 1.18; }
h2 { font-family: 'DM Sans', 'Segoe UI', sans-serif; font-size: 17px; font-weight: 650; letter-spacing: -.2px; }
.welcome-row, .page-title { margin-bottom: 27px; }
.welcome-row { margin-bottom: 29px; }
.welcome-row p, .page-title p { font-size: 13px; }
.button { min-height: 40px; padding: 0 15px; border-radius: 7px; font-size: 12px; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, #2d8058, #216a48); box-shadow: 0 3px 8px rgba(35,102,77,.14); }
.button.primary:hover { background: linear-gradient(135deg, #28734f, #185b3c); box-shadow: 0 5px 13px rgba(35,102,77,.19); }
.button.secondary { border-color: #dce5df; box-shadow: 0 1px 2px rgba(24,40,33,.025); }
.button.secondary:hover { border-color: #c8d8ce; background: #f8fbf9; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.metric { min-height: 132px; padding: 19px 20px; border-color: #e5ece7; border-radius: 10px; box-shadow: var(--shadow); }
.metric > span { color: #6e7d74; font-size: 12px; }
.metric strong { margin-top: 10px; font-family: 'DM Sans', 'Segoe UI', sans-serif; font-size: 30px; font-weight: 700; letter-spacing: -.8px; }
.metric small { margin-top: 7px; color: #89968f; font-size: 10px; }
.metric-accent { top: 20px; right: 20px; width: 9px; height: 9px; box-shadow: 0 0 0 4px rgba(35,102,77,.08); }
.dashboard-grid { gap: 16px; }
.panel { padding: 22px; border-color: #e5ece7; border-radius: 10px; box-shadow: var(--shadow); }
.section-heading { margin-bottom: 18px; }
.table-panel { padding: 5px 13px 0; }
table { white-space: normal; }
th { padding: 12px 11px; border-bottom-color: #e7ede9; color: #829088; font-size: 9px; letter-spacing: .8px; }
td { padding: 14px 11px; border-bottom-color: #edf1ee; color: #5e6e64; font-size: 12px; }
tbody tr { transition: background .15s ease; }
tbody tr:hover { background: #f8fbf9; }
td strong, .table-primary { font-size: 12px; }
td small { color: #89968f; font-size: 10px; }
.badge { min-height: 24px; padding: 4px 9px; border-radius: 999px; font-size: 9px; }
.empty-state { padding: 34px 14px; color: #829088; font-size: 12px; }
.project-row { gap: 18px; padding: 15px 10px; border-color: #edf1ee; }
.project-row:hover { border-radius: 7px; background: #f8fbf9; }
.project-ident { gap: 12px; }
.project-dot { width: 9px; height: 9px; background: #58a678; }
.project-ident strong, .deadline-item strong { font-size: 12px; }
.project-ident small, .deadline-item small { color: #89968f; font-size: 10px; }
.deadline-item { min-height: 58px; border-bottom-color: #edf1ee; }
.filter-bar { gap: 10px; margin-bottom: 17px; }
.search-box, .filter-select { height: 41px; border-color: #dfe7e2; border-radius: 7px; box-shadow: 0 1px 2px rgba(24,40,33,.02); }
.search-box input, .filter-select select { font-size: 12px; }
.clear-link { font-size: 11px; }
label { gap: 7px; color: #4f6257; font-size: 11px; }
input, select, textarea { min-height: 41px; padding: 10px 11px; border-color: #dce5df; border-radius: 6px; font-size: 12px; transition: border-color .16s ease, box-shadow .16s ease; }
input:hover, select:hover, textarea:hover { border-color: #c6d5cb; }
input:focus, select:focus, textarea:focus { border-color: #70a587; outline: 0; box-shadow: 0 0 0 3px rgba(35,102,77,.1); }
textarea { min-height: 88px; }
.form-panel { padding: 0 25px 21px; }
.form-section { padding: 23px 0; }
.form-section h2 { margin-bottom: 17px; }
.form-grid { gap: 17px 19px; }
.form-actions { padding-top: 21px; }
.detail-grid { gap: 16px; }
.detail-grid > .panel { padding: 23px; }
.detail-list { gap: 20px 22px; }
.detail-list dt { font-size: 10px; }
.detail-list dd { font-size: 12px; }
.contact-link { color: var(--green); text-decoration: underline; text-decoration-color: #c7ddce; text-underline-offset: 3px; }
.contact-link:hover { color: var(--green-dark); text-decoration-color: currentColor; }
.history-list > div, .task-item, .team-row { border-color: #edf1ee; }
.history-list strong, .task-body strong, .team-row strong { font-size: 12px; }
.history-list small, .task-body small, .team-row small { color: #87948c; }
.notification-panel { max-width: 960px; padding: 0; overflow: hidden; }
.notification-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid #e9efeb; background: linear-gradient(115deg, #fbfdfb, #f5faf6); }
.notification-heading h2 { margin: 3px 0 0; }
.notification-heading p { margin: 5px 0 0; font-size: 11px; }
.notification-heading form { flex: 0 0 auto; margin: 0; }
.notification-list { display: grid; }
.notification-item { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 16px 24px; border-bottom: 1px solid #edf1ee; transition: background .15s ease; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: #fbfdfb; }
.notification-item.unread { background: #f4faf6; }
.notification-item.unread:hover { background: #eef7f1; }
.notification-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #c7d1ca; }
.notification-item.unread .notification-dot { background: var(--green); box-shadow: 0 0 0 4px var(--mint); }
.notification-copy { min-width: 0; flex: 1; }
.notification-copy strong, .notification-copy small { display: block; }
.notification-copy strong { color: #344039; font-size: 12px; font-weight: 600; line-height: 1.6; }
.notification-copy small { margin-top: 5px; color: #89968f; font-size: 10px; }
.notification-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 10px; }
.notification-actions .button { min-height: 34px; }
.notification-empty { display: grid; justify-items: center; gap: 7px; padding: 52px 20px; text-align: center; }
.notification-empty-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 4px; border-radius: 50%; color: var(--green); background: var(--mint); font-size: 18px; font-weight: 700; }
.notification-empty strong { color: #344039; font-size: 13px; }
.notification-empty p { margin: 0; color: var(--muted); font-size: 11px; }
.notification-limit { margin: 0; padding: 12px 24px; border-top: 1px solid #edf1ee; color: var(--muted); font-size: 10px; }
.conversion-filters { margin-bottom: 16px; padding: 19px 21px; }
.conversion-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.conversion-filter-heading h2 { margin: 3px 0 0; }
.conversion-filter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 13px; }
.conversion-filter-grid label { min-width: 0; }
.conversion-filter-grid .button { width: 100%; }
.conversion-search { grid-column: span 2; }
.conversion-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.conversion-results { margin-top: 16px; }
.conversion-results .section-heading { align-items: flex-start; }
.conversion-results .section-heading h2 { margin-top: 3px; }
.conversion-results .section-heading p { max-width: 670px; margin: 7px 0 0; font-size: 11px; }
.conversion-rate-cell { display: flex; align-items: center; gap: 9px; min-width: 130px; }
.conversion-rate-cell .progress-track { max-width: 140px; }
.conversion-rate-cell strong { min-width: 44px; font-size: 11px; }
@media (max-width: 760px) {
    .notification-heading { align-items: flex-start; padding: 18px; }
    .notification-item { align-items: flex-start; gap: 11px; padding: 15px 18px; }
    .notification-dot { margin-top: 5px; }
    .notification-actions { flex-direction: column; align-items: flex-end; gap: 7px; }
    .notification-actions .badge { order: 0; }
    .notification-actions .button { order: 1; }
    .notification-empty { padding: 42px 18px; }
    .conversion-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .conversion-search { grid-column: 1 / -1; }
    .conversion-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 430px) {
    .notification-heading { flex-direction: column; gap: 12px; }
    .notification-item { flex-wrap: wrap; }
    .notification-copy { flex-basis: calc(100% - 24px); }
    .notification-actions { width: 100%; flex-direction: row; justify-content: flex-end; padding-left: 20px; }
    .conversion-filters { padding: 16px; }
    .conversion-filter-grid { grid-template-columns: 1fr; }
    .conversion-search { grid-column: auto; }
    .conversion-metrics { grid-template-columns: 1fr; }
}
.large-progress .progress-track { height: 8px; }
.progress-track { background: #edf2ee; }
.progress-track span { background: linear-gradient(90deg, #52a174, #2f8257); }
.inline-task-form { padding: 17px; border-color: #e5ece7; border-radius: 8px; background: #f8fbf9; }
.tabs { gap: 22px; margin-bottom: 18px; }
.tabs a { padding-bottom: 12px; font-size: 12px; }
.tabs a.selected { border-bottom-width: 3px; }
.notice { padding: 13px 15px; border-radius: 7px; font-size: 12px; }
.auth-page { background-color: #f3f7f4; background-image: radial-gradient(circle at 12% 12%, rgba(50,118,80,.06) 0 1px, transparent 1.5px), linear-gradient(130deg, transparent 53%, rgba(234,242,233,.68) 53% 70%, transparent 70%); }
.auth-panel { border-color: #e3ebe5; border-radius: 12px; box-shadow: 0 20px 60px rgba(38,63,46,.09); }
.auth-panel h1 { font-size: 29px; }

@media (min-width: 1500px) {
    .metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .sidebar { width: 220px; }
    .main-content { margin-left: 220px; }
    .page-wrap { padding-right: 26px; padding-left: 26px; }
    .topbar { padding-right: 26px; padding-left: 26px; }
    .footer-note { padding-right: 26px; padding-left: 26px; }
    .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .sidebar { padding: 10px 13px 9px; }
    .brand { padding: 0 2px 10px; }
    .sidebar nav { gap: 5px; }
    .nav-link { height: 36px; border-radius: 7px; }
    .nav-link.active { box-shadow: inset 0 -2px var(--green); }
    .topbar { height: 46px; }
    .page-wrap { padding: 24px 16px 21px; }
    .footer-note { padding: 12px 16px 17px; }
    .panel, .detail-grid > .panel { padding: 17px; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .metric { min-height: 112px; padding: 15px; }
    .metric strong { font-size: 26px; }
    .project-row { gap: 10px 13px; }
    .table-panel { padding: 3px 7px 0; }
    .form-panel { padding: 0 17px 17px; }
    .form-section { padding: 18px 0; }
    .form-grid { gap: 13px; }
    .notification-panel { padding: 0; }
}
@media (max-width: 430px) {
    h1 { font-size: 25px; letter-spacing: -.5px; }
    .welcome-row h1, .page-title h1 { font-size: 25px; }
    .metric { min-height: 105px; padding: 13px; }
    .metric > span { font-size: 10px; }
    .metric strong { margin-top: 8px; font-size: 24px; }
    .metric small { font-size: 9px; }
    .filter-bar > .button { flex: 1; }
    .notification-panel { padding: 0; }
}
@media (max-width: 760px) {
    .sidebar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 8px; }
    .brand { grid-column: 1; grid-row: 1; padding-bottom: 0; }
    .sidebar nav { grid-column: 1 / -1; grid-row: 2; min-width: 0; }
    .sidebar-bottom { display: flex; grid-column: 2; grid-row: 1; margin: 0; padding: 0; border: 0; }
    .sidebar-bottom .avatar, .sidebar-bottom .user-meta { display: none; }
    .sidebar-bottom form { margin: 0; }
    .sidebar-bottom .icon-button { height: 30px; padding: 0 8px; }
}
@media (max-width: 430px) {
    .filter-bar > .button { flex: 1; }
}
@media (max-width: 760px) {
    .topbar-actions { gap: 8px; }
}
@media (max-width: 430px) {
    .notification-link { width: 30px; height: 30px; }
}

@media (max-width: 960px) {
    .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
    .dashboard-grid > .wide { grid-column: auto; }
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-row { gap: 12px; }
}

@media (max-width: 900px) {
    .app-shell, .main-content, .page-wrap { width: 100%; max-width: 100%; min-width: 0; }
    .topbar, .panel, .table-panel, .dashboard-grid, .detail-grid { min-width: 0; max-width: 100%; }
    .app-shell { min-height: 100vh; }
    .sidebar {
        position: sticky;
        inset: 0 0 auto;
        width: 100%;
        height: auto;
        min-width: 0;
        padding: 10px 13px 9px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        z-index: 5;
    }
    .main-content { width: 100%; min-height: 0; margin-left: 0; }
    .sidebar nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); overflow: visible; }
    .nav-link { justify-content: center; }
    .topbar { min-width: 0; gap: 12px; }
    .breadcrumb { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topbar-actions { flex: 0 0 auto; }
    .top-user { max-width: min(38vw, 180px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .page-wrap { padding: 22px 16px 24px; }
    .welcome-row, .page-title { display: flex; flex-direction: column; align-items: stretch; gap: 13px; }
    .welcome-row h1, .page-title h1 { overflow-wrap: anywhere; }
    .welcome-row > .button, .page-title > .button { align-self: flex-start; }
    .title-actions { width: 100%; justify-content: flex-start; }
    .title-actions form { display: flex; }
    .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .metric { min-width: 0; }
    .dashboard-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .detail-grid { min-width: 0; max-width: 100%; }
    .panel, .detail-grid > *, .detail-grid > .panel { min-width: 0; max-width: 100%; padding: 17px; }
    .table-scroll { width: 100%; max-width: 100%; overflow-x: hidden; }
    .table-scroll table { width: 100%; min-width: 0; table-layout: fixed; white-space: normal; }
    .table-scroll th, .table-scroll td { padding: 8px 4px; overflow-wrap: anywhere; white-space: normal; }
    .table-scroll th { font-size: 8px; letter-spacing: .3px; }
    .table-scroll td { font-size: 10px; }
    .table-scroll td strong { font-size: 10px; }
    .table-scroll td form { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; }
    .table-scroll td .button, .table-scroll td select { max-width: 100%; }
    .table-scroll .badge { white-space: normal; }
    .table-panel { min-width: 0; }
    .projects-table .table-scroll { overflow: visible; }
    .projects-table table { display: block; table-layout: auto; }
    .projects-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .projects-table tbody { display: grid; gap: 10px; }
    .projects-table tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 12px;
        padding: 13px 3px;
        border-bottom: 1px solid var(--line);
    }
    .projects-table tbody tr:last-child { border-bottom: 0; }
    .projects-table tbody td {
        display: block;
        min-width: 0;
        padding: 0;
        border: 0;
        overflow-wrap: anywhere;
    }
    .projects-table tbody td::before {
        display: block;
        margin-bottom: 4px;
        color: #89958d;
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .45px;
    }
    .projects-table tbody td:nth-child(1) { grid-column: 1 / -1; }
    .projects-table tbody td:nth-child(1)::before { content: "PROJECT"; }
    .projects-table tbody td:nth-child(2)::before { content: "RESPONSIBLE"; }
    .projects-table tbody td:nth-child(3)::before { content: "STATUS"; }
    .projects-table tbody td:nth-child(4)::before { content: "PROGRESS"; }
    .projects-table tbody td:nth-child(5)::before { content: "TARGET DATE"; }
    .projects-table tbody td:nth-child(6)::before { content: "NEXT STEPS"; }
    .projects-table .table-primary { overflow-wrap: anywhere; }
    .projects-table .badge { display: inline-flex; max-width: 100%; }
    .projects-table .table-progress { min-width: 0; gap: 6px; }
    .projects-table .table-progress .progress-track { min-width: 0; }
    .projects-table .table-footer { padding: 11px 3px; }
    .filter-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    .search-box { width: auto; grid-column: 1 / -1; }
    .filter-select { min-width: 0; }
    .filter-select select { min-width: 0; }
    .filter-bar > .button, .filter-bar > .clear-link { align-self: center; justify-self: stretch; text-align: center; }
    .form-grid { grid-template-columns: minmax(0, 1fr); }
    .form-grid > *, .span-2 { grid-column: auto; min-width: 0; }
    .form-actions { flex-wrap: wrap; }
    .form-actions > * { flex: 1 1 130px; }
    .detail-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .task-update-row { grid-template-columns: minmax(0, 1fr) auto; gap: 9px 12px; }
    .task-update-row strong { grid-column: 1; grid-row: 1; overflow-wrap: anywhere; }
    .task-update-row .task-project-name { grid-column: 1; grid-row: 2; min-width: 0; }
    .task-update-row select { grid-column: 2; grid-row: 1; min-width: 130px; }
    .task-update-row .button { grid-column: 2; grid-row: 2; }
    .project-row { grid-template-columns: minmax(0, 1fr) auto; }
    .project-row .progress-cell { grid-column: 1; }
    .project-row .date-cell { grid-column: 2; grid-row: 2; text-align: right; }
    .proof-upload-form { grid-template-columns: minmax(0, 1fr); }
    .proof-upload-form .button { justify-self: start; }
    .inventory-add-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .inventory-adjust-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .inventory-adjust-form .button { grid-column: 1 / -1; }
    .tabs { max-width: 100%; flex-wrap: wrap; overflow: visible; white-space: normal; }
    .tabs a { flex: 0 1 auto; }
    .conversion-filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .conversion-search { grid-column: 1 / -1; }
    .conversion-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    input, select, textarea { font-size: 16px; }
    .row-status-form select, .task-update-row select, .inventory-adjust-form input { font-size: 16px; }
    .button, .row-status-form .button { min-height: 44px; }
    .button.small { min-height: 40px; }
    .icon-button, .notification-link { min-width: 40px; min-height: 40px; }
    .auth-page { padding: 16px; }
    .auth-panel { padding: 28px 22px; }
    .footer-note { padding: 12px 16px 18px; }
}

@media (max-width: 430px) {
    .sidebar { padding-right: 10px; padding-left: 10px; }
    .sidebar nav { margin: 3px 0 0; padding: 0; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); }
    .nav-link { min-width: 0; min-height: 40px; padding: 0 7px; font-size: 12px; }
    .topbar { height: 48px; padding-right: 12px; padding-left: 12px; }
    .top-user { max-width: 43vw; padding: 6px 8px; }
    .page-wrap { padding-right: 12px; padding-left: 12px; }
    .welcome-row, .page-title { margin-bottom: 18px; }
    .welcome-row h1, .page-title h1 { font-size: 26px; }
    .welcome-row p, .page-title p { font-size: 12px; }
    .metrics { gap: 8px; }
    .metric { min-height: 106px; padding: 12px; }
    .metric strong { font-size: 24px; }
    .metric small { line-height: 1.4; }
    .panel, .detail-grid > .panel { padding: 14px; }
    .table-panel { padding: 3px 7px 0; }
    .detail-list { grid-template-columns: minmax(0, 1fr); gap: 13px; }
    .filter-bar { grid-template-columns: minmax(0, 1fr); }
    .search-box, .filter-bar > .button, .filter-bar > .clear-link { grid-column: auto; }
    .filter-bar > .clear-link { padding: 8px; }
    .title-actions { flex-wrap: wrap; }
    .title-actions > *, .title-actions form, .title-actions .button { flex: 1 1 130px; }
    .task-update-row { grid-template-columns: minmax(0, 1fr) minmax(92px, auto); gap: 8px; }
    .task-update-row select { grid-column: 1; grid-row: 3; min-width: 0; }
    .task-update-row .button { grid-column: 2; grid-row: 3; }
    .project-row { gap: 8px; padding: 13px 5px; }
    .inventory-add-form, .conversion-filter-grid { grid-template-columns: minmax(0, 1fr); }
    .conversion-search { grid-column: auto; }
    .conversion-metrics { grid-template-columns: minmax(0, 1fr); }
    .conversion-filter-heading { align-items: flex-start; }
    .team-row { flex-wrap: wrap; }
    .team-row > .badge { margin-left: 41px; }
    .section-heading { align-items: flex-start; }
    .auth-panel { padding: 24px 18px; }
}

@media (max-width: 350px) {
    .brand { gap: 8px; font-size: 13px; }
    .brand small { font-size: 8px; }
    .sidebar-bottom .icon-button { padding: 0 5px; font-size: 10px; }
    .metric > span { font-size: 9px; }
    .metric strong { font-size: 21px; }
    .metric small { font-size: 9px; }
    .button { white-space: normal; text-align: center; }
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 250px;
    height: 100vh;
    height: 100dvh;
    display: flex;
    padding: 24px 17px 16px;
    overflow-y: auto;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    box-shadow: 3px 0 18px rgba(29, 48, 38, .025);
    z-index: 12;
}

.sidebar nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    margin: 0;
    overflow: visible;
}

.nav-link { justify-content: flex-start; }
.nav-link.active { box-shadow: none; }
.nav-number { display: inline; }
.sidebar-bottom { display: flex; margin-top: auto; padding: 15px 5px 3px; border-top: 1px solid var(--line); }
.sidebar-bottom .avatar, .sidebar-bottom .user-meta { display: initial; }
.sidebar-bottom .user-meta { display: block; }
.sidebar-bottom form { margin-left: auto; }
.sidebar-bottom .icon-button { height: 32px; padding: 0 9px; }
.brand { padding: 2px 8px 34px; font-size: 16px; }
.brand small { display: block; margin-left: 0; font-size: 10px; }
.side-label { display: block; }
.main-content { width: auto; margin-left: 250px; }
.menu-toggle { display: none; }
.topbar-leading { min-width: 0; display: flex; align-items: center; gap: 15px; }

@keyframes sidebar-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 760px) {
    .sidebar {
        inset: 46px auto 0 0;
        width: min(270px, calc(100vw - 56px));
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
        padding: 18px 16px 14px;
        box-shadow: 10px 0 28px rgba(32, 42, 37, .08);
        transform: translateX(-105%);
        visibility: hidden;
        transition: transform .22s ease, visibility 0s linear .22s;
    }
    .sidebar-open .sidebar {
        transform: translateX(0);
        visibility: visible;
        transition-delay: 0s;
    }
    .sidebar nav {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        margin: 0;
        overflow: visible;
    }
    .sidebar-bottom { display: flex; }
    .main-content { width: 100%; margin-left: 0; }
    .menu-toggle {
        display: grid;
        flex: 0 0 auto;
        width: 38px;
        height: 38px;
        place-items: center;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 7px;
        background: #fff;
        color: var(--green-dark);
        cursor: pointer;
    }
    .menu-toggle:hover { background: var(--mint); }
    .menu-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
    .sidebar-backdrop {
        position: fixed;
        inset: 46px 0 0;
        display: block;
        width: 100%;
        height: 100%;
        padding: 0;
        border: 0;
        background: rgba(26, 39, 31, .38);
        opacity: 1;
        z-index: 11;
        cursor: default;
        animation: sidebar-backdrop-in .22s ease both;
    }
    .sidebar-backdrop[hidden] { display: none; }
    body.sidebar-open { overflow: hidden; }
    body.sidebar-open .topbar { z-index: 13; }
    .topbar-leading { min-width: 0; display: flex; align-items: center; gap: 10px; }
    .brand { padding: 2px 8px 20px; }
}

@media (max-width: 430px) {
    .sidebar {
        top: 48px;
        height: calc(100vh - 48px);
        height: calc(100dvh - 48px);
        padding-right: 10px;
        padding-left: 10px;
    }
    .sidebar-backdrop { top: 48px; }
    .sidebar nav { margin: 3px 0 0; padding: 0; }
    .nav-link { min-width: 0; min-height: 40px; padding: 0 7px; font-size: 12px; }
}