:root {
    color-scheme: light;
    --ink: #1c201a;
    --muted: #565d50;
    --border: #e4e7df;
    --paper: #fff;
    --background: #f7f8f4;
    --green: #111111;
    --lime: #ff7723;
    --orange: #ff7723;
    --radius: 15px;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--background);
    font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
    outline: 2px solid #477749;
    outline-offset: 3px;
}
h1, h2, h3, p { margin: 0; }
h1 { font-size: 18px; letter-spacing: -.02em; line-height: 1.2; font-weight: 600; overflow-wrap: anywhere; }
h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.035em; font-weight: 600; }
h3 { font-size: 18px; letter-spacing: -.03em; line-height: 1.25; overflow-wrap: anywhere; font-weight: 600; }
strong { font-weight: 600; }
svg { display: block; flex-shrink: 0; }
.skip { position: absolute; left: 8px; top: -100px; z-index: 10; padding: 10px; background: white; }
.skip:focus { top: 8px; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 226px minmax(0, 1fr); }
.sidebar {
    display: flex; flex-direction: column; gap: 42px; padding: 24px 15px 16px;
    background: #fdfefa; border-right: 0; position: sticky;
    top: 0; height: 100vh;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.brand { display: flex; align-items: center; gap: 11px; padding: 2px 7px; width: fit-content; }
.brand strong { display: block; font-size: 17px; line-height: 1.25; letter-spacing: -.045em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 9px; letter-spacing: .15em; font-weight: 600; }
.brand-mark { background: #111; border-radius: 12px; width: 39px; height: 39px; display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 28px; height: 28px; object-fit: contain; display: block; }
.menu-toggle { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border: 0; border-radius: 8px; color: var(--muted); background: transparent; }
.menu-toggle:hover { background: #eef1e8; color: var(--ink); }
nav { display: grid; gap: 5px; }
nav a { color: #50574d; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; font-weight: 500; min-height: 42px; }
nav a:hover { background: #eef1e8; }
nav .selected, nav .selected:hover { background: #e7efdc; color: #243e26; }
.sidebar-bottom { margin-top: auto; border-top: 0; padding: 13px 4px 0; display: flex; align-items: center; gap: 6px; justify-content: space-between; }
.profile { display: flex; gap: 9px; align-items: center; min-width: 0; }
.profile strong, .profile small { display: block; overflow-wrap: anywhere; line-height: 1.3; }
.profile strong { font-size: 13px; }
.profile small { font-size: 12px; color: var(--muted); }
.avatar { display: inline-grid; flex: 0 0 auto; place-items: center; width: 29px; height: 29px; border-radius: 50%; font-size: 10px; font-weight: 600; background: #e7ebdf; color: #384933; }
.profile-avatar { width: 35px; height: 35px; background: #e5edcf; }
.tone-1 { background: #e3ebd6; color: #374932; }
.tone-2 { background: #ece7fa; color: #58417e; }
.tone-3 { background: #f8e6d9; color: #783e28; }
.icon-button { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 7px; color: var(--muted); background: none; }
.icon-button:hover { background: #e9eddf; }
.topbar { min-height: 65px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 34px; border-bottom: 0; background: #fdfefa; }
.crumb, .today { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.crumb { flex-wrap: wrap; overflow-wrap: anywhere; }
.crumb strong { color: var(--ink); font-weight: 600; }
.crumb a:hover { text-decoration: underline; }
.slash { color: #767e6e; }
.today { gap: 7px; white-space: nowrap; }
.content { width: 100%; max-width: none; margin: 0; padding: 34px 34px 44px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 27px; }
.page-header p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.header-actions { display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.button, .small-button {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 8px 14px;
    min-height: 41px; border: 0; border-radius: 9px; font-weight: 500;
    background: var(--paper); color: var(--ink); width: fit-content; text-align: center;
}
.button:hover, .small-button:hover { background: #eef1e8; }
.primary { background: var(--orange); color: #fff; border: 0; padding-inline: 16px; }
.primary:hover { background: #e95f12; color: #fff; }
.danger { background: #fbe8e3; color: #9a3424; }
.danger:hover { background: #f7d7cf; }
.small-button { min-height: 32px; padding: 3px 8px; }
.metrics, .project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 15px; }
.metric, .project-card, .project-summary, .editor, .empty, .table-wrap {
    border: 0; border-radius: var(--radius); background: var(--paper);
    box-shadow: 0 5px 18px #2939210b;
}
.metric, .project-card { display: block; padding: 17px 18px; transition: box-shadow .15s, transform .15s; }
.metric:hover, .project-card:hover { box-shadow: 0 8px 20px #23341c14; transform: translateY(-1px); }
.metric-top, .card-top, .progress-label, .card-foot, .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tile { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 10px; }
.violet { background: #eee8fc; color: #62479a; }
.aqua { background: #e2f3eb; color: #28644f; }
.peach { background: #fbe9df; color: #934b33; }
.blue { background: #e7effe; color: #385a94; }
.metric-arrow { color: #707869; align-self: flex-start; padding-top: 3px; }
.metric-label { margin-top: 12px; font-size: 13px; font-weight: 500; color: #424b3e; }
.metric strong { display: block; font-size: clamp(24px, 3vw, 34px); line-height: 1.16; letter-spacing: -.06em; margin-top: 3px; font-variant-numeric: tabular-nums; }
.metric small { display: block; color: var(--muted); margin-top: 4px; font-size: 12px; }
.section { margin-top: 26px; }
.section-heading { margin-bottom: 13px; }
.section-caption { margin-top: 3px; color: var(--muted); font-size: 12px; }
.text-link, .table-link { color: #385e3f; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.text-link:hover, .table-link:hover { text-decoration: underline; }
.project-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.project-card h3 { margin-top: 13px; }
.project-card p { color: var(--muted); font-size: 13px; margin-top: 3px; overflow-wrap: anywhere; }
.progress-label { margin-top: 17px; font-size: 12px; color: var(--muted); }
.progress-label strong { color: var(--ink); }
progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 10px; margin-top: 6px; overflow: hidden; appearance: none; }
progress::-webkit-progress-bar { background: #edf0e9; }
progress::-webkit-progress-value { background: currentColor; border-radius: 10px; }
progress::-moz-progress-bar { background: currentColor; border-radius: 10px; }
progress.violet { color: #9279c3; } progress.aqua { color: #62a18c; } progress.peach { color: #d08d72; } progress.blue { color: #739bd6; }
.card-foot { margin-top: 14px; padding-top: 11px; border-top: 0; font-size: 12px; color: var(--muted); }
.card-foot span:first-child, .person { display: inline-flex; align-items: center; gap: 7px; }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 30px; padding: 3px 8px; white-space: nowrap; font-size: 11px; font-weight: 500; color: #50584c; background: #edf0eb; }
.badge i, .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: inline-block; flex-shrink: 0; }
.badge.active, .badge.doing { background: #edf3de; color: #456121; }
.badge.review { background: #eee8fa; color: #64458a; }
.badge.done, .badge.low { background: #e6f3e9; color: #306142; }
.badge.high { background: #fcece7; color: #963e2c; }
.badge.medium { background: #f8efd8; color: #765211; }
.overdue { color: #a13f29; font-weight: 500; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th, td { border-bottom: 0; padding: 10px 15px; }
th { color: #535d4e; background: #fafbf8; font-size: 12px; font-weight: 500; white-space: nowrap; }
td { min-width: 100px; }
td:first-child { min-width: 235px; overflow-wrap: anywhere; }
td strong { font-weight: 600; }
td small { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--muted); }
td small a:hover { text-decoration: underline; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcf9; }
.notes { overflow-wrap: anywhere; min-width: 170px; }
.attachments { min-width: 155px; max-width: 240px; }
.file-link { display: flex; align-items: center; gap: 5px; color: #b84b0d; font-weight: 500; overflow-wrap: anywhere; }
.file-link:hover { text-decoration: underline; }
.muted-dash { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 36px 15px; }
.file-empty h2 { color: var(--ink); margin-bottom: 7px; }
.file-empty p { max-width: 500px; margin: 0 auto 18px; }
.notice { margin: 0 0 18px; padding: 12px 15px; border-radius: 9px; background: #e8f1dc; color: #2e532b; }
.notice.error { background: #fcece6; color: #8f3325; }
.editor, .project-summary { padding: 22px; margin-bottom: 22px; }
.editor { max-width: 740px; }
.editor h2 { margin-bottom: 13px; }
.editor p, .project-summary p { color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.editor p + form { margin-top: 14px; }
.project-summary { display: flex; justify-content: space-between; align-items: start; gap: 25px; }
.project-summary > p { flex-shrink: 0; }
.project-workspace { display: block; }
body:has(.task-panel)::before { content: ""; position: fixed; inset: 0; z-index: 25; background: #11111145; }
.task-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 30; width: min(430px, 100vw); overflow-y: auto; border: 0; border-radius: 0; background: var(--paper); padding: 28px 24px; box-shadow: -12px 0 30px #29392126; animation: task-drawer-in .22s ease-out both; }
@keyframes task-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
.task-panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.task-panel-heading h2 { margin-top: 4px; overflow-wrap: anywhere; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.task-panel-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.task-meta { display: grid; gap: 12px; margin: 20px 0; padding: 16px 0; border-top: 0; border-bottom: 0; background: #f7f8f4; border-radius: 10px; padding-inline: 12px; }
.task-meta div { display: flex; justify-content: space-between; gap: 12px; }
.task-meta dt { color: var(--muted); }
.task-meta dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.task-panel-files h3 { font-size: 15px; }
.task-panel-files .file-link { margin-top: 10px; }
.task-panel-files .file-link small { margin-left: auto; color: var(--muted); font-weight: 500; }
.panel-muted { margin-top: 9px; color: var(--muted); font-size: 13px; }
.task-panel-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.delete-confirm { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 22px; padding: 18px 20px; border-radius: var(--radius); background: #fff0eb; box-shadow: 0 5px 18px #9a342412; }
.delete-confirm h2 { margin-top: 3px; color: #8e3022; }
.delete-confirm p { margin-top: 5px; color: #7b4b42; }
.delete-confirm.compact { display: block; margin-top: 20px; margin-bottom: 0; padding: 14px; }
.delete-confirm.compact .inline { margin-top: 10px; }
.table-view { display: inline-grid; margin-right: 5px; vertical-align: middle; width: 30px; height: 30px; }
.task-panel-reassign, .task-comments { margin-top: 20px; padding-top: 18px; border-top: 0; }
.task-panel-reassign { display: grid; gap: 9px; }
.task-panel-reassign .button { justify-self: start; }
.task-comments h3 { margin-bottom: 10px; font-size: 15px; }
.comment { padding: 10px 12px; margin-top: 8px; border-top: 0; border-radius: 10px; background: #f7f8f4; }
.comment:first-of-type { padding-top: 10px; }
.comment-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.comment-meta time { color: var(--muted); white-space: nowrap; }
.comment p { margin-top: 4px; color: var(--ink); overflow-wrap: anywhere; }
.mention { display: inline-block; padding: 1px 5px; border-radius: 5px; background: #ffe1c9; color: #a94309; font-weight: 500; }
.comment-form { display: grid; gap: 7px; margin-top: 14px; }
.comment-form label { font-size: 12px; }
.comment-form textarea { min-height: 76px; }
label { display: grid; gap: 4px; font-weight: 500; color: #3b4739; font-size: 13px; min-width: 0; }
label small { color: var(--muted); font-weight: 450; }
input:not([type="checkbox"]), select, textarea {
    padding: 10px 12px; border: 0; width: 100%; border-radius: 10px;
    background: #f5f7f2; color: var(--ink); min-width: 0; min-height: 44px;
}
input[type="file"] { padding: 9px; min-height: 44px; }
textarea { resize: vertical; }
input::placeholder { color: #6b7568; }
input:not([type="checkbox"]):focus, select:focus, textarea:focus { outline: 2px solid var(--orange); outline-offset: 2px; background: #fff; }
.form-grid { display: grid; gap: 14px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.full { grid-column: 1 / -1; }
.inline { display: flex; gap: 8px; align-items: center; }
.inline select { min-width: 105px; min-height: 32px; padding: 3px 6px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-bottom: 19px; }
.filters label:not(.check) { min-width: 210px; }
.filters > button.button { background: var(--orange); color: #fff; }
.filters > button.button:hover { background: #e95f12; color: #fff; }
.filters input[type="date"] { min-width: 140px; }
.check { display: flex; align-items: center; gap: 5px; min-height: 40px; }
.check input { accent-color: var(--green); width: 16px; height: 16px; }
.total { color: var(--muted); font-weight: 500; }
.login { display: grid; min-height: 100vh; place-items: center; padding: 20px; }
.login-panel { width: min(440px, 100%); padding: 30px; border-radius: 20px; background: #fff; border: 0; box-shadow: 0 8px 24px #29392112; }
.login-panel .brand { padding: 0; margin-bottom: 25px; }
.login-panel h1 { font-size: 18px; }
.login-panel p { margin: 7px 0 19px; color: var(--muted); }
.login-panel button { width: 100%; }
body.menu-collapsed .shell { grid-template-columns: 76px minmax(0, 1fr); }
body.menu-collapsed .sidebar { padding-inline: 10px; }
body.menu-collapsed .brand { justify-content: center; padding-inline: 0; }
body.menu-collapsed .brand > span:last-child, body.menu-collapsed nav a span, body.menu-collapsed .profile > span:last-child { display: none; }
body.menu-collapsed nav a { justify-content: center; padding-inline: 8px; }
body.menu-collapsed .sidebar-bottom { justify-content: center; }
@media (max-width: 1080px) {
    .shell { grid-template-columns: 188px minmax(0, 1fr); }
    .content, .topbar { padding-inline: 24px; }
    .metric, .project-card { padding-inline: 14px; }
}
@media (max-width: 830px) {
    .metrics, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .shell { grid-template-columns: 156px minmax(0, 1fr); }
    .sidebar { padding-inline: 9px; }
    .brand { gap: 7px; padding-inline: 3px; }
    .brand strong { font-size: 15px; }
    .brand-mark { width: 33px; height: 33px; border-radius: 8px; }
    .page-header { align-items: flex-start; flex-wrap: wrap; }
}
@media (max-width: 620px) {
    body { padding-bottom: 76px; }
    .shell { display: block; }
    .sidebar { position: relative; height: auto; padding: 10px 13px; gap: 9px; display: flex; align-items: center; justify-content: space-between; border-right: none; border-bottom: 0; box-shadow: 0 5px 15px #2939210a; }
    .sidebar-head { flex: 1 1 auto; }
    .sidebar .brand { flex: 1 1 auto; }
    nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; justify-content: flex-start; margin: 0; padding: 7px 6px calc(7px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 20px #29392118; scrollbar-width: none; }
    nav::-webkit-scrollbar { display: none; }
    nav a { flex: 1 0 55px; flex-direction: column; min-height: 52px; gap: 3px; padding: 6px 4px; font-size: 10px; }
    nav svg { width: 17px; height: 17px; }
    .sidebar-bottom { padding: 0; border: 0; margin: 0; }
    .profile > span:last-child { display: none; }
    .profile-avatar { width: 30px; height: 30px; }
    .brand-mark { width: 31px; height: 31px; border-radius: 8px; }
    .brand-mark img { width: 22px; height: 22px; }
    body.menu-collapsed .shell { display: block; }
    body.menu-collapsed .sidebar { padding-inline: 13px; }
    body.menu-collapsed .sidebar-head { justify-content: space-between; }
    body.menu-collapsed nav a { justify-content: center; }
    .topbar { min-height: 46px; padding-block: 7px; }
    .topbar, .content { padding-inline: 14px; }
    .content { padding-top: 23px; }
    .today, .crumb { font-size: 11px; }
    .page-header { margin-bottom: 18px; }
    .metrics, .project-grid { gap: 9px; }
    .metric, .project-card { padding: 12px; }
    .card-top { flex-wrap: wrap; }
    .project-summary, .form-grid.two { display: grid; grid-template-columns: 1fr; gap: 10px; }
    .task-panel { width: min(100vw, 430px); padding: 22px 16px; }
    .header-actions, .header-actions .button { width: 100%; }
    .header-actions .button { flex: 1; }
    .filters { display: grid; grid-template-columns: 1fr; align-items: stretch; }
    .filters label:not(.check), .filters .button { width: 100%; min-width: 0; }
    .table-wrap { margin-inline: -2px; }
    th, td { padding: 9px 11px; }
    .section-heading h2 { font-size: 19px; }
}
@media (max-width: 360px) {
    .project-grid { grid-template-columns: 1fr; }
    .crumb > span:first-child, .crumb > span:nth-child(2) { display: none; }
}
