:root {
    --coral: #f05a50;
    --navy: #233246;
    --line: rgba(35, 50, 70, 0.12);
    --wash: rgba(35, 50, 70, 0.04);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    color: #111111;
    background: #fff;
    font-family: "Montserrat", sans-serif;
    line-height: 1.45;
}

a { color: var(--coral); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
::placeholder { color: #111111; opacity: 1; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 44px; letter-spacing: -0.045em; line-height: 1.05; font-weight: 750; }
h2 { letter-spacing: -0.03em; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

.navlinks { display: flex; align-items: center; gap: 22px; }
.navlinks a {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
}
.navlinks a.on, .navlinks a:hover { color: var(--coral); }

.bell-btn {
    position: relative;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid #e6ebf1;
    border-radius: 50%;
    background: #fff;
    color: #233246;
    cursor: pointer;
}
.bell-btn svg { width: 20px; height: 20px; }
.bell[open] > .bell-btn, .bell-btn:hover { border-color: #f05a50; color: #f05a50; }
.bell-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: #f05a50;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    display: grid;
    place-items: center;
}
.bell-pop { width: min(380px, 86vw); max-height: 460px; overflow: auto; padding: 0; }
.bell-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border-bottom: 1px solid #e6ebf1;
}
.bell-head strong { font-size: 14px; }
.bell-pop .bell-item {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-height: 0;
    padding: 12px 14px;
    border-radius: 0;
    border-bottom: 1px solid #f2f4f7;
    text-decoration: none;
}
.bell-item.unread { background: #fff8f7; }
.bell-item strong, .bell-body, .bell-meta { display: block; }
.bell-item strong { font-size: 13px; line-height: 1.35; }
.bell-body { margin-top: 2px; font-size: 12px; font-weight: 500; line-height: 1.4; color: #233246; }
.bell-meta { margin-top: 4px; font-size: 11px; font-weight: 700; color: #111111; opacity: 1; }
.bell-kind {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #233246;
    color: #fff;
}
.bell-kind.schedule { background: #f05a50; }
.bell-kind svg { width: 18px; height: 18px; }
.bell-empty { margin: 0; padding: 22px 16px; font-size: 13px; line-height: 1.5; color: #233246; }
.bell-head form { margin: 0; }
.bell-head .link-btn { min-height: 0; width: auto; padding: 0; font-size: 12px; }

.who { display: flex; align-items: center; gap: 10px; }
.avatar, .face {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    flex: none;
}
.face.more { background: var(--coral); text-decoration: none; }
.link {
    background: transparent;
    border: 0;
    color: var(--navy);
    cursor: pointer;
    font-weight: 700;
    padding: 0;
}
.link:hover { color: var(--coral); }

.app-shell {
    display: grid;
    grid-template-columns: 252px minmax(0, 1fr);
    align-items: stretch;
    min-height: 100vh;
}
.app-main { min-width: 0; }
.app-main .topbar { justify-content: space-between; }
.sidepanel {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    padding: 22px 14px 28px;
    border-right: 0;
    background: #233236;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}
.sidepanel::-webkit-scrollbar { width: 8px; }
.sidepanel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.22); border-radius: 8px; }
.side-brand {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin: 0 6px 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-align: center;
    text-decoration: none;
}
.side-brand:hover { color: #fff; text-decoration: none; }
.side-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.side-brand strong {
    margin-top: 6px;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}
.side-brand span {
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.62);
}
.side-nav { display: grid; gap: 4px; }
.side-label {
    margin: 16px 12px 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}
.side-empty { margin: 0 12px; font-size: 13px; color: #fff; }
.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.3;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}
.side-ico { width: 18px; height: 18px; flex: none; display: grid; }
.side-ico svg { width: 18px; height: 18px; }
.side-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.side-nav a.on,
.side-nav a.on:hover { background: #f05a50; color: #fff; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 24px auto 56px; }
.app-main .wrap {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 12px 20px 40px 20px;
}
.topbar-lead {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    flex: 1;
}
.topbar-lead .hello { margin: 0; min-width: 0; }
.topbar-lead .hello h1 { font-size: 18px; line-height: 1.15; }
.topbar-lead .hello p, .topbar-lead .kicker { margin: 0; font-size: 12px; }
.topbar-lead .toolbar { margin: 10px 0 0; gap: 6px; }
.app-main .topbar { height: auto; min-height: 52px; padding: 8px 20px 10px 20px; gap: 12px; align-items: flex-start; }
@media (max-width: 860px) {
    .app-shell { grid-template-columns: 1fr; }
    .sidepanel { position: static; height: auto; }
    .side-brand { margin-bottom: 12px; }
    .side-nav { display: flex; gap: 6px; overflow: auto; padding-bottom: 4px; }
    .side-label, .side-empty { display: none; }
    .side-nav a { flex: none; }
}
.banner {
    background: var(--coral);
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.actions .btn, .actions .btn-navy { width: auto; }
.folder { margin: 8px 0 18px; padding-top: 8px; }
.folder-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.folder-head h2, .group-label { font-size: 22px; margin: 18px 0 10px; }
.home .folder:first-child .folder-head h2, .home .group-label:first-of-type { margin-top: 0; }
.pcard-link { color: var(--navy); text-decoration: none; display: block; }
.pcard-link:hover { text-decoration: none; }
.move { margin-top: 12px; }
.move select { width: auto; min-width: 180px; padding: 6px 10px; }
.sheet { border: 0; border-radius: 18px; padding: 22px; width: min(440px, calc(100% - 32px)); color: var(--navy); box-shadow: 0 18px 50px rgba(35, 50, 70, 0.18); }
.edit-sheet { width: min(560px, calc(100% - 32px)); }
.edit-sheet h2 { margin-bottom: 4px; }
.edit-sheet .field { margin-top: 12px; }
.edit-sheet .form-actions { margin-top: 18px; }
.sheet::backdrop { background: rgba(35, 50, 70, 0.35); }
.check { display: flex; align-items: center; gap: 8px; font-weight: 650; margin: 6px 0; }
.check input { width: auto; }
fieldset.field { border: 0; padding: 0; margin: 0 0 12px; }
.kicker { color: var(--coral); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.project-link { color: var(--navy); text-decoration: none; display: block; }
.project-link:hover { text-decoration: none; border-color: var(--coral); }

.hello { margin-bottom: 14px; }
.hello h1 { font-size: 28px; }
.hello p { margin-top: 2px; font-size: 14px; font-weight: 650; }

.home {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
}

.pcard {
    display: block;
    color: var(--navy);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px 22px 16px;
    margin-bottom: 14px;
    background: #fff;
    box-shadow: 0 1px 0 var(--wash);
}
.pcard:hover { border-color: var(--coral); text-decoration: none; }
.pcard h2 { font-size: 30px; margin-bottom: 6px; }
.pcard .blurb { min-height: 22px; margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 13px;
    font-weight: 700;
}
.pcard.new {
    border-style: dashed;
    min-height: 140px;
    display: flex;
    align-items: center;
}
.pcard.new h2 { font-size: 24px; color: var(--coral); }

.rail {
    position: sticky;
    top: 84px;
    display: grid;
    gap: 14px;
}
.rail section, .panel, .card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    padding: 16px 18px;
}
.rail h3, .tool-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 15px;
    margin-bottom: 10px;
}
.rail h3 { margin-bottom: 12px; }
.rail a, .tool-head a { color: var(--navy); font-weight: 800; text-decoration: none; }
.rail a:hover, .tool-head a:hover { color: var(--coral); }
.rail li { list-style: none; margin: 0 0 10px; }
.activity-mini-line {
    display: block;
    color: #111111;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-decoration: none;
}
.activity-mini-line strong { font-weight: 800; }
.activity-mini-line:hover { color: var(--coral); }
.rail .activity-files { margin: 3px 0 2px; }
.rail .activity-mini .muted { font-size: 12px; line-height: 1.2; }
.rail ul { margin: 0; padding: 0; }
.when { color: var(--coral); font-weight: 800; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }

.project-top {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
    margin-bottom: 8px;
}
.project-top .desc { margin-top: 8px; max-width: 640px; font-size: 18px; }
.faces { display: flex; align-items: center; }
.faces .face { margin-left: -8px; border: 2px solid #fff; }
.faces .face:first-child { margin-left: 0; }
.archive {
    background: transparent;
    border: 0;
    color: var(--navy);
    font-weight: 700;
    cursor: pointer;
    margin-top: 8px;
}
.archive:hover { color: var(--coral); }

.subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    margin: 14px 0 22px;
    border-bottom: 1px solid var(--line);
}
.subnav a {
    color: var(--navy);
    font-weight: 750;
    text-decoration: none;
    padding: 8px 0 10px;
    border-bottom: 2px solid transparent;
}
.subnav a.on { color: var(--coral); border-bottom-color: var(--coral); }
.subnav a:hover { color: var(--coral); text-decoration: none; }

.hq {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 16px;
    align-items: stretch;
}
.hq-3 { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.panel { min-height: 240px; display: flex; flex-direction: column; color: var(--navy); text-decoration: none; }
a.panel:hover { border-color: var(--coral); text-decoration: none; }
.message-title { font-size: 26px; letter-spacing: -0.03em; margin: 4px 0 8px; color: var(--navy); }
.excerpt { flex: 1; }
.foot { margin-top: 14px; font-size: 14px; }

.checkline {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 7px 0;
    border-top: 1px solid var(--line);
}
.checkline form { margin: 0; }
.tick, .check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid var(--navy);
    background: #fff;
    cursor: pointer;
    flex: none;
    padding: 0;
}
.tick:hover, .check:hover { border-color: var(--coral); }
.todo.done .check { background: var(--coral); border-color: var(--coral); }
.todo.done .title { text-decoration: line-through; opacity: 1; color: #111111; }
.see-all { margin-top: auto; padding-top: 12px; font-weight: 800; }

.fileline, .eventline, .chatline { padding: 8px 0; border-top: 1px solid var(--line); }
.chatline strong { display: block; }

.activity { margin-top: 28px; }
.activity h2 { font-size: 22px; margin-bottom: 12px; }
.feed-item { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 8px; }
.page-head h1 { font-size: 36px; }

.btn, .btn-navy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--coral);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { filter: brightness(0.95); text-decoration: none; }
.btn-navy { background: var(--navy); width: auto; }

.stack { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field span { font-weight: 750; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="file"], textarea, select {
    width: 100%;
    border: 1px solid rgba(35, 50, 70, 0.22);
    border-radius: 12px;
    padding: 11px 12px;
    background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid rgba(240, 90, 80, 0.35); border-color: var(--coral); }
input[type="checkbox"], input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    padding: 0;
    border: 1.5px solid #b7c3d0;
    background: #fff;
    display: inline-grid;
    place-content: center;
    flex: 0 0 18px;
    cursor: pointer;
    vertical-align: middle;
}
input[type="checkbox"] { border-radius: 5px; }
input[type="radio"] { border-radius: 50%; }
input[type="checkbox"]:checked {
    border-color: #f05a50;
    background: #f05a50 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.2 6.3 4.7 8.8 9.8 3.2' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
input[type="radio"]:checked {
    border-color: #f05a50;
    background: radial-gradient(circle at center, #f05a50 0 5px, #fff 5.5px);
    box-shadow: inset 0 0 0 1.5px #f05a50;
}
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible {
    outline: 3px solid rgba(240, 90, 80, 0.35);
    outline-offset: 2px;
}
input[type="checkbox"]:disabled, input[type="radio"]:disabled { opacity: 0.45; cursor: not-allowed; }
.error { color: var(--coral); font-weight: 750; }
.muted { opacity: 1; color: #111111; }
.split, .between, .row { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.todo { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.person, .item { display: flex; gap: 12px; align-items: flex-start; }
.composer { display: flex; gap: 8px; }
.composer input { flex: 1; }
.bubble { background: var(--wash); border-radius: 16px; padding: 10px 12px; flex: 1; }
.chat { display: grid; gap: 12px; }
.card + .card, .stack .card { margin: 0; }

body.guest { background: #fff; }
.auth-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 16px;
}
.auth { width: min(420px, 100%); }
.auth .brand { font-size: 28px; margin-bottom: 18px; }
.auth h1 { font-size: 32px; margin-bottom: 8px; }
.auth form { margin-top: 18px; }

hr.line { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

@media (prefers-reduced-motion: no-preference) {
    .wrap, .auth-shell { animation: page-in .4s cubic-bezier(.16, 1, .3, 1); }
    .pcard, a.panel, .card, .btn, .btn-navy, .subnav a, .navlinks a, .tick, .check {
        transition: border-color .2s ease, color .2s ease, background .2s ease, transform .22s ease, box-shadow .22s ease;
    }
    .pcard:hover, a.panel:hover, .project-link:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(35, 50, 70, 0.08); }
    .btn:active, .btn-navy:active { transform: scale(.98); }
}
@keyframes page-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
    .home, .hq, .hq-3, .tool-grid, .columns { grid-template-columns: 1fr; }
    .rail { position: static; }
    h1 { font-size: 36px; }
    .wrap { width: min(100% - 28px, 1120px); }
}

body {
    background: #ffffff;
    color: #233246;
}
.topbar, body.guest { background: #ffffff; }
.brand, .navlinks a, .link, h1, h2, h3, .tool-head a, .pcard, .pcard-link, .project-link, .rail a {
    color: #233246;
}
.topbar { border-bottom-color: #e6ebf1; }
.navlinks a.on, .navlinks a:hover, .link:hover, .subnav a.on, .subnav a:hover, .archive:hover { color: #f05a50; }
.muted, .quiet { color: #111111; opacity: 1; }
.panel, .card, .pcard, .rail section, .bubble {
    background: #ffffff;
    border-color: #e6ebf1;
    color: #233246;
}
input, textarea, select {
    background: #ffffff;
    color: #233246;
    border-color: #d5dde6;
}
.subnav { border-bottom-color: #e6ebf1; }
.subnav a { color: #233246; }
.checkline, .fileline, .eventline, .todo, .feed-item { border-top-color: #eef2f6; }

.board { width: 100%; margin: 0; }
.board-head h1 { font-size: 32px; font-weight: 800; margin: 8px 0 4px; letter-spacing: -0.03em; }
.board-head .desc { max-width: 720px; font-size: 14px; line-height: 1.45; color: #111111; margin-top: 4px; }
.board-head .archive { margin-top: 8px; font-size: 13px; }
.quiet { margin-top: 10px; font-size: 14px; }
.tool-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.tool-grid .panel { min-height: 0; position: relative; }
.tool-head { color: #233246; font-weight: 700; }
.empty-tool { margin: 6px 0 0; color: #111111; font-size: 13px; }
.count { position: absolute; right: 16px; bottom: 12px; color: #111111; font-size: 13px; }
.chatline { display: flex; gap: 8px; align-items: flex-start; padding: 8px 0; }
.message-title { font-size: 18px; }
.add-menu { margin: 16px 0 8px; position: relative; }
.add-menu summary {
    width: 42px; height: 42px; border-radius: 12px; border: 1px solid #d5dde6;
    display: grid; place-items: center; cursor: pointer; list-style: none; font-size: 26px; color: #233246;
    background: #fff;
}
.add-menu summary::-webkit-details-marker { display: none; }
.add-pop {
    position: absolute; top: 48px; left: 0; z-index: 5;
    background: #fff; border: 1px solid #e6ebf1; border-radius: 12px; padding: 8px;
    display: grid; min-width: 160px; box-shadow: 0 12px 30px rgba(35, 50, 70, 0.08);
}
.add-pop a { color: #233246; padding: 8px 10px; border-radius: 8px; font-weight: 600; }
.add-pop a:hover { background: #fff4f3; color: #f05a50; }
.latest { margin-top: 20px; padding-top: 8px; border-top: 0; }
.latest-head, .latest-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.latest-head h2 { font-size: 22px; font-weight: 800; }
.latest-head input { width: 140px; min-height: 36px; }
.latest-meta { margin: 8px 0 14px; font-size: 14px; color: #111111; }
.active-count { display: inline-flex; align-items: center; gap: 6px; }
.day { margin: 0; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #111111; }
.feed-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.feed-item p { margin: 0; }
.notify-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; }
.notify-head .notify-label { width: auto; }
.people-box {
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    padding: 10px 12px 12px;
    margin: 12px 0;
    background: #fafbfc;
}
.people-box legend { font-weight: 750; padding: 0; }
.people-box .notify { margin-bottom: 0; }
.latest-head {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
}
.latest-head h2 { font-size: 16px; font-weight: 800; white-space: nowrap; margin: 0; }
.latest-note {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111111;
    font-size: 12px;
    font-weight: 600;
}
.activity-filters {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}
.activity-filters .control {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: #111111;
}
.activity-filters .control input {
    min-height: 32px;
    width: 168px;
    font-size: 13px;
}
.activity-filters .control input[type="date"] { width: 138px; }
.notify { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 4px; }
.notify-label { width: 100%; font-weight: 750; color: #233246; }
.notify-person {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid #e6ebf1;
    border-radius: 999px;
    padding: 4px 12px 4px 8px;
    background: #fff;
}
.notify-person input { position: static; opacity: 1; }
.notify-person .face { width: 28px; height: 28px; margin: 0; font-size: 11px; }
.notify-person:has(input:checked) { border-color: #f05a50; background: #fff4f3; }
.notify-person input:focus-visible + .face { outline: 2px solid #f05a50; }
.notify-name { font-size: 13px; font-weight: 650; color: #233246; }
.people-pick { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.people-search { width: 100%; min-height: 36px; }
.people-pick [hidden], .notify-person[hidden], .people-empty[hidden] { display: none !important; }
.drag-handle { cursor: grab; color: #233246; font-size: 12px; letter-spacing: -1px; user-select: none; }
.notify-person.dragging { opacity: 0.45; }
.pin-tag { display: inline-flex; align-items: center; margin-left: 6px; vertical-align: middle; }
.pin-ico { width: 14px; height: 14px; color: #f05a50; display: block; }
button .pin-tag, .menu-pop .pin-tag, .link-btn .pin-tag { margin: 0 6px 0 0; }
.viewer { width: min(980px, calc(100% - 32px)); padding: 0; overflow: hidden; }
.viewer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e6ebf1; }
.viewer-bar h2 { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-actions { display: flex; gap: 8px; flex-shrink: 0; }
.viewer-stage { min-height: 280px; max-height: 72vh; overflow: auto; background: #f4f6f8; display: flex; flex-direction: column; }
.viewer-stage img { max-width: 100%; max-height: 72vh; margin: auto; object-fit: contain; background: #fff; }
.viewer-stage iframe { width: 100%; height: 72vh; border: 0; background: #fff; }
.viewer-text { margin: 0; padding: 20px 22px; white-space: pre-wrap; background: #fff; color: #233246; font: 14px/1.6 Montserrat, sans-serif; }
.viewer-table-wrap { overflow: auto; background: #fff; }
.viewer-table-wrap table { width: 100%; border-collapse: collapse; }
.viewer-table-wrap th, .viewer-table-wrap td { border: 1px solid #e6ebf1; padding: 6px 8px; font-size: 13px; text-align: left; }
.viewer-table-wrap th { background: #233246; color: #fff; font-weight: 700; }
.viewer-note, .viewer-fallback { margin: 0; padding: 14px 16px; color: #233246; font-size: 13px; }
.is-pinned { box-shadow: inset 3px 0 0 #f05a50; }
.pinned-strip { display: grid; gap: 8px; padding: 10px 12px; border-bottom: 1px solid #e6ebf1; background: #fff8f7; }
.pinned-label { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #f05a50; }
.pinned-note { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.pinned-note p { margin: 0; }
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.column { min-height: 220px; }
.board-card { background: #f7f9fb; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }

.tool-page { width: min(1080px, 100%); margin: 0 auto; }
.tool-page.narrow { width: min(760px, 100%); }
.tool-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 8px 0 16px; }
.tool-bar h1 { margin: 0; font-size: 34px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.composer { position: relative; }
.composer > summary { cursor: pointer; list-style: none; color: #111111; font-weight: 600; }
.composer > summary::-webkit-details-marker { display: none; }
.composer[open] > summary { color: #233246; }
.composer form, .pop {
    margin-top: 10px; background: #fff; border: 1px solid #e6ebf1; border-radius: 14px; padding: 14px;
    box-shadow: 0 10px 28px rgba(35, 50, 70, 0.06);
}
.composer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.composer-grid label, .field { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: #111111; }
.todo-row, .file-row, .message-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #eef2f6; }
.message-row { text-decoration: none; color: inherit; padding: 14px; margin-top: 10px; }
.check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #c5d0db; background: #fff; color: #2f9e6b; }
.check.done { background: #e8f7ef; border-color: #2f9e6b; }
.done-text { text-decoration: line-through; color: #111111; }
.tiny { font-size: 12px; display: block; }
.list-block { margin-bottom: 14px; padding: 12px 14px 8px; min-height: 0; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.list-head h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.list-dot { width: 10px; height: 10px; border-radius: 50%; background: #3b82f6; flex: none; }
.list-dot.tone-1 { background: #f5a524; }
.list-dot.tone-2 { background: #34a853; }
.list-dot.tone-3 { background: #7b61c9; }
.list-dot.tone-4 { background: #14919b; }
.todo-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.todo-toolbar input[type="search"] { width: 180px; min-height: 40px; }
.todo-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 750; color: #233246; }
.todo-date input { width: 140px; min-height: 36px; }
.todo-row { align-items: flex-start; }
.todo-main { flex: 1; min-width: 0; }
.todo-title { font-weight: 750; }
.todo-notes, .todo-when { margin: 2px 0 0; font-size: 13px; color: #111111; }
.assignee-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.assignee-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 8px 2px 2px;
    border-radius: 999px;
    background: #f4f7fb;
    font-size: 12px;
    font-weight: 750;
    color: #233246;
}
.assignee-chip .face { width: 22px; height: 22px; font-size: 9px; }
.todo-composer > summary { display: flex; align-items: center; gap: 10px; color: #f05a50; font-weight: 750; padding: 10px 0; }
.todo-composer > summary::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 1.5px solid #c5d0db;
    border-radius: 5px;
    background: #fff;
}
input.todo-describe {
    width: 100%;
    border: 0;
    border-bottom: 1px dashed #d5dde6;
    border-radius: 0;
    padding: 8px 0 10px;
    font-size: 16px;
    margin-bottom: 8px;
}
.todo-describe:focus { outline: none; border-bottom-color: #f05a50; }
.todo-line { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; align-items: start; margin: 8px 0; }
.todo-line > span { font-weight: 750; font-size: 14px; padding-top: 8px; color: #233246; }
.todo-line .people-box, .todo-line .notify { margin: 0; border: 0; padding: 0; background: transparent; }
.due-choices { display: grid; gap: 6px; }
.due-option { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.due-option .choice { width: auto; }
.due-option input[type="date"] { width: 168px; min-height: 36px; }
.due-pair { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; color: #233246; }
.due-choices [hidden] { display: none !important; }
.archived-block { margin: 8px 0 12px; }
.archived-block summary { cursor: pointer; font-weight: 750; color: #233246; padding: 8px 0; }
.todo-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: -4px 0 8px 32px; }
.todo-edit { width: 100%; }
.todo-edit summary { cursor: pointer; color: #f05a50; font-weight: 750; }
.todo-edit form { margin-top: 8px; }
.bubble-actions { display: flex; gap: 10px; align-items: center; margin-top: 4px; }
.bubble-actions summary { cursor: pointer; color: #f05a50; font-weight: 750; font-size: 12px; }
.bubble-actions textarea { width: 100%; min-height: 64px; margin: 6px 0; }
.chat-shell .bubble-row.mine .bubble-actions summary,
.chat-shell .bubble-row.mine .link-btn { color: #f05a50; }
.edited { display: block; margin-top: 2px; font-size: 11px; font-weight: 700; color: #111111; }
.list-count { font-size: 13px; font-weight: 700; color: #111111; }
.empty-list { display: grid; gap: 8px; justify-items: start; padding: 22px; }
.empty-list h2 { font-size: 22px; }
.empty-list p { margin: 0 0 8px; color: #111111; max-width: 46ch; }
.actions { display: flex; gap: 8px; margin-top: 12px; }
.btn-line { background: #fff; border: 1px solid #d5dde6; border-radius: 999px; padding: 8px 14px; font-weight: 700; color: #233246; cursor: pointer; }
.title-input { font-size: 28px; font-weight: 700; border: 0; padding: 8px 0; width: 100%; }
.title-input:focus, .chat-box textarea:focus { outline: none; }
.notify-box, .place-box {
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    padding: 10px 12px 12px;
    margin: 0 0 14px;
    background: #fafbfc;
}
.notify-box legend, .place-box legend { font-weight: 750; padding: 0 6px; color: #233246; }
.choice {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    color: #111111;
    font-weight: 650;
}
.choice:hover { background: #fff; }
.choice:has(input:checked) { background: #fff; box-shadow: inset 0 0 0 1.5px #f3c4c0; }
.choice.remember { margin-bottom: 16px; }
.place-folder { margin: 0 8px 8px 42px; }
.link-btn { background: none; border: 0; color: #f05a50; font-weight: 700; cursor: pointer; padding: 0; }
.file-list { padding: 6px 16px 16px; }
.file-row { text-decoration: none; color: inherit; }
.folder-mark { width: 42px; height: 42px; border-radius: 10px; background: #f4f7fb; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #233246; }
.crumb { margin: 0 0 10px; }
.thread { min-height: 320px; display: flex; flex-direction: column; gap: 10px; }
.bubble-row { display: flex; gap: 8px; max-width: 78%; }
.bubble-row.mine { margin-left: auto; flex-direction: row-reverse; }
.bubble-text { background: #f4f7fb; border-radius: 14px; padding: 10px 12px; margin: 2px 0 0; white-space: pre-wrap; }
.bubble-row.mine .bubble-text { background: #233246; color: #fff; }
.who { margin: 0; font-size: 13px; font-weight: 700; }
.who span { font-weight: 500; color: #111111; }
.day-chip, .gap { text-align: center; color: #111111; font-size: 12px; letter-spacing: 0.04em; margin: 8px 0; }
.chat-box { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.chat-box textarea { flex: 1; border: 0; resize: vertical; }
.cal-nav { display: flex; justify-content: center; gap: 16px; align-items: center; margin-bottom: 10px; }
.cal-nav a { text-decoration: none; font-size: 22px; color: #233246; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #e6ebf1; border-radius: 14px; overflow: hidden; background: #fff; }
.cal-head, .cal-day { padding: 8px; min-height: 36px; border-right: 1px solid #eef2f6; border-bottom: 1px solid #eef2f6; font-size: 12px; }
.cal-head { font-weight: 700; color: #111111; background: #fafbfc; }
.cal-day { min-height: 92px; display: flex; flex-direction: column; gap: 4px; }
.cal-day.out { color: #111111; background: #fcfcfd; }
.cal-day.today { background: #fff6e8; }
.cal-day em { font-style: normal; background: #fff4f3; color: #f05a50; border-radius: 6px; padding: 2px 4px; font-size: 11px; font-weight: 700; }
.card-table { display: grid; grid-template-columns: repeat(3, minmax(220px, 1fr)); gap: 12px; }
.lane { background: #fff; border: 1px solid #e6ebf1; border-top: 4px solid var(--lane); border-radius: 12px; padding: 12px; min-height: 180px; }
.lane header { display: flex; justify-content: space-between; align-items: center; }
.lane h2 { margin: 0 0 8px; font-size: 16px; }
.lane-card { background: #f7f9fb; border-radius: 10px; padding: 10px 12px; margin: 8px 0; }
.lane form { display: flex; gap: 6px; margin-top: 8px; }
.day-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; }
.chip { border: 1px solid #d5dde6; border-radius: 999px; padding: 6px 12px; text-decoration: none; color: #233246; font-weight: 700; font-size: 13px; }
.chip.on { background: #233246; color: #fff; border-color: #233246; }
.status { background: #eefaf3; color: #1e7a45; border-radius: 10px; padding: 10px 12px; }

.toolbar, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.toolbar { margin: 0 0 22px; }
.form-actions { margin-top: 14px; }
.project-form {
    width: min(560px, 100%);
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    padding: 22px 22px 18px;
    box-shadow: 0 10px 28px rgba(35, 50, 54, 0.06);
}
.project-form .card-title { margin-bottom: 8px; }
.project-form .card-title h1 { margin: 0; font-size: 22px; letter-spacing: -0.03em; color: #111111; }
.project-form .kicker { margin: 0; }
.project-form-note { margin: 0 0 14px; font-size: 13px; line-height: 1.45; color: #111111; }
.project-form .field { margin-bottom: 14px; }
.project-form .field span { font-size: 13px; font-weight: 750; color: #111111; }
.project-form input[type="text"],
.project-form textarea,
.project-form select {
    min-height: 44px;
    background: #f7f8fa;
    border: 1px solid #e6ebf1;
    border-radius: 12px;
    color: #111111;
    font-size: 15px;
}
.project-form textarea { min-height: 96px; padding-top: 12px; }
.project-form input::placeholder,
.project-form textarea::placeholder { color: #9aa3ad; font-weight: 600; }
.project-form .error { margin: -8px 0 12px; font-size: 13px; }
.project-form .form-actions { margin-top: 4px; }
.project-form .btn { width: auto; min-width: 0; min-height: 32px; padding: 0 12px; font-size: 13px; }

.btn, .btn-navy, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 1px 0 rgba(35, 50, 70, 0.04);
}
.btn { background: #f05a50; color: #fff; }
.btn-navy { background: #233246; color: #fff; width: auto; }
.btn-ghost, summary.btn-ghost {
    background: #fff;
    color: #233246;
    border-color: #d7dee6;
}
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13px; }
.btn:hover, .btn-navy:hover { filter: brightness(0.96); text-decoration: none; color: #fff; }
.btn-ghost:hover, summary.btn-ghost:hover { border-color: #f05a50; color: #f05a50; background: #fff; }
.btn:focus-visible, .btn-navy:focus-visible, .btn-ghost:focus-visible, summary:focus-visible {
    outline: 3px solid rgba(240, 90, 80, 0.35);
    outline-offset: 2px;
}
.btn:active, .btn-navy:active, .btn-ghost:active { transform: translateY(1px); }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px 4px 4px;
    border-radius: 999px;
    border: 1px solid transparent;
}
.avatar-btn:hover, .menu[open] > .avatar-btn { background: #f6f8fb; border-color: #e6ebf1; }
.caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    display: inline-block;
}
.caret.light { border-color: #fff; }
.menu[open] > summary .caret { transform: rotate(225deg) translateY(-1px); }
.menu-pop {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    min-width: 220px;
    padding: 8px;
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(35, 50, 70, 0.12);
    display: grid;
}
.menu-pop a, .menu-pop button {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #233246;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.menu-pop a:hover, .menu-pop button:hover { background: #fff4f3; color: #f05a50; }
.menu-label { margin: 6px 10px 0; font-weight: 800; }
.menu-meta { margin: 0 10px 8px; color: #111111; font-size: 12px; }
.avatar-photo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; display: block; }
.avatar.lg, .avatar-photo.lg { width: 42px; height: 42px; font-size: 14px; }
.avatar.xl, .avatar-photo.xl { width: 72px; height: 72px; font-size: 22px; }
.account-pop { min-width: 260px; padding: 8px; }
.account-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 2px 8px;
    padding: 8px;
    border-radius: 12px;
    background: #f7f8fa;
}
.account-head strong, .account-head span span { display: block; }
.account-head strong { font-size: 14px; line-height: 1.2; }
.account-head span span { margin-top: 2px; font-size: 12px; font-weight: 600; color: #111111; }
.account-pop form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid #eef2f6; }
.settings-page { display: grid; gap: 12px; }
.settings-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.8fr); gap: 16px; align-items: center; }
.settings-id h1 { margin: 0; font-size: 26px; letter-spacing: -0.03em; }
.settings-mail { margin: 2px 0 0; font-size: 13px; font-weight: 650; }
.settings-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.settings-photo-actions form { margin: 0; }
.settings-name { display: flex; align-items: flex-end; gap: 8px; }
.settings-name .field { flex: 1; margin: 0; }
.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}
.settings-grid .card { padding: 14px; }
.settings-grid .field { margin-bottom: 8px; }
.profile-row { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.crop-sheet { width: min(420px, calc(100% - 32px)); }
.crop-sheet h2 { margin-bottom: 4px; font-size: 22px; }
.crop-sheet .muted { margin-bottom: 12px; font-size: 13px; }
.crop-frame {
    width: 280px;
    height: 280px;
    margin: 0 auto 12px;
    border-radius: 50%;
    overflow: hidden;
    background: #233246;
    cursor: grab;
    box-shadow: inset 0 0 0 2px #fff, 0 0 0 1px #e6ebf1;
}
.crop-frame canvas { display: block; width: 280px; height: 280px; touch-action: none; }
.crop-zoom { display: grid; gap: 6px; margin-bottom: 12px; font-size: 13px; font-weight: 750; }
.crop-zoom input { width: 100%; }
.profile-row form + form { margin-top: 8px; }
.info-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; margin: 0 0 12px; }
.info-list div { display: grid; gap: 2px; padding: 7px 0; border-top: 1px solid #eef2f6; }
.info-list dt { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.info-list dd { margin: 0; font-size: 14px; font-weight: 650; }
@media (max-width: 980px) {
    .settings-hero, .settings-grid, .info-list { grid-template-columns: 1fr; }
    .settings-name { flex-direction: column; align-items: stretch; }
}
.menu[open] .menu-pop { animation: menu-in .16s ease; }
@keyframes menu-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
}

.subnav.pills {
    gap: 8px;
    border-bottom: 0;
    padding: 4px;
    background: #f6f8fb;
    border-radius: 14px;
    width: fit-content;
    max-width: 100%;
}
.subnav.pills a {
    border: 0;
    border-radius: 10px;
    padding: 8px 12px;
    color: #233246;
    font-size: 13px;
}
.subnav.pills a.on, .subnav.pills a:hover { background: #fff; color: #f05a50; box-shadow: 0 1px 2px rgba(35, 50, 70, 0.06); }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 22px;
}
.stat {
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    padding: 16px 16px 14px;
    display: grid;
    gap: 2px;
    box-shadow: 0 1px 0 rgba(35, 50, 70, 0.03);
}
.stat-value { font-size: 32px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: #233246; }
.stat-label { font-weight: 800; margin-top: 8px; }
.stat-note { color: #111111; font-size: 13px; }
.stat.attention { border-color: #f3c7c3; background: #fff8f7; }
.stat.attention .stat-value { color: #f05a50; }
.adminland .stat-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto;
    margin: 0 0 14px;
}
.adminland .stat {
    flex: 1 0 132px;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 8px;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
}
.stat-ico, .card-ico {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #fff4f3;
    color: #f05a50;
    flex: none;
}
.stat-ico svg, .card-ico svg { width: 16px; height: 16px; }
.adminland .stat-ico { grid-row: 1 / span 2; }
.adminland .stat-value { grid-column: 2; font-size: 22px; }
.adminland .stat-label { grid-column: 2; margin-top: 0; font-size: 12px; }
.adminland .stat-note { grid-column: 1 / -1; margin-top: 6px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adminland .hq { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; margin-bottom: 18px; }
.adminland .hq .card { padding: 14px; }
.adminland .hq .field { margin-bottom: 8px; }
.adminland .form-actions { margin-top: 8px; }
.adminland .form-actions .btn,
.page-head summary.btn { width: auto; min-height: 32px; padding: 0 12px; font-size: 13px; }
.adminland fieldset.field { border: 0; margin: 0 0 8px; padding: 0; }
.card-title { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.card-title h2 { margin: 0; font-size: 16px; }
.card-title .pill { margin-left: auto; }
.card-ico.sm { width: 24px; height: 24px; }
.card-ico.sm svg { width: 14px; height: 14px; }
.wait-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #eef2f6; }
.wait-row strong, .wait-row .tiny, .wait-row a { display: block; }
.wait-row a { font-size: 12px; font-weight: 700; }
.adminland .project-grid { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 10px; }
.adminland .project-stat { flex: 1 0 240px; }
.adminland .project-stat h2 { display: flex; align-items: center; gap: 8px; font-size: 15px; }
@media (max-width: 860px) {
    .adminland .hq { grid-template-columns: 1fr; }
}

.people-board { margin: 8px 0 22px; }
.people-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.people-head h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; }
.people-head span { font-size: 13px; font-weight: 700; }
.people-sheet { padding: 0; overflow: auto; }
.people-table { width: 100%; min-width: 680px; border-collapse: collapse; }
.people-table th {
    text-align: left;
    padding: 9px 14px;
    background: #f7f8fa;
    border-bottom: 1px solid #e6ebf1;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.people-table td { padding: 10px 14px; border-bottom: 1px solid #eef2f6; vertical-align: middle; }
.people-table tr:last-child td { border-bottom: 0; }
.who-cell { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.who-cell .avatar { width: 32px; height: 32px; font-size: 11px; }
.who-cell strong, .people-table td > strong { display: block; font-size: 14px; line-height: 1.25; }
.people-actions { white-space: nowrap; text-align: right; }
.people-actions form { display: inline; }
.people-actions .btn { margin-left: 6px; }
.pill.owner { background: #fff4f3; color: #f05a50; }
.assign-list.tight { gap: 6px; }
.assign-list.tight .assign { padding: 3px 8px; font-size: 12px; font-weight: 650; }
.project-board, .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    align-items: stretch;
}
.project-board .pcard { margin: 0; height: 100%; padding: 12px; border-radius: 12px; }
.project-board .pcard h2, .project-stat h2 { font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
.card-kicker { margin: 0 0 2px; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #f05a50; }
.project-board .blurb, .project-stat .muted, .people-line {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 0;
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.35;
}
.card-people { display: flex; align-items: center; gap: 8px; }
.card-people .face { width: 22px; height: 22px; font-size: 9px; margin-left: -6px; }
.card-people .faces .face:first-child { margin-left: 0; }
.card-people p { margin: 0; font-size: 12px; line-height: 1.3; }
.project-board .move { margin-top: 8px; }
.project-board .move select { min-height: 32px; font-size: 12px; padding: 4px 28px 4px 8px; }
.overview-line { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 6px; font-size: 13px; font-weight: 700; }
.board-head h1 { font-size: 32px; }
.board-head .desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-stat { padding: 12px; }
.project-stat .metric-row { margin-top: 8px; }
.project-stat .metric-row span { font-size: 11px; padding: 3px 8px; }
.person-card header { display: flex; align-items: center; gap: 10px; }
.person-card header div { flex: 1; min-width: 0; }
.pill {
    border-radius: 999px;
    background: #f4f7fb;
    color: #233246;
    font-size: 12px;
    font-weight: 800;
    padding: 4px 8px;
}
.assigned-line { margin: 12px 0 8px; font-weight: 700; }
.assign-list { display: flex; flex-wrap: wrap; gap: 8px; }
.assign {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #e6ebf1;
    border-radius: 999px;
    padding: 6px 10px;
    background: #fff;
    font-weight: 650;
    cursor: pointer;
}
.assign input { width: 18px; height: 18px; margin: 0; }
.assign:has(input:checked) { border-color: #f05a50; background: #fff4f3; color: #233246; }
.project-stat { color: #233246; text-decoration: none; display: block; }
.project-stat h2 { font-size: 22px; }
.project-stat:hover { border-color: #f05a50; text-decoration: none; }
.metric-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.metric-row span {
    background: #f6f8fb;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    color: #111111;
}
.metric-row strong { color: #233246; }

.tool-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tool-grid .tool-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(35, 50, 70, 0.08); border-color: #f3c7c3; }
select {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #233246 50%), linear-gradient(135deg, #233246 50%, transparent 50%);
    background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 32px;
}

@media (max-width: 900px) {
    .stat-grid, .people-grid { grid-template-columns: 1fr; }
    .project-board, .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .subnav.pills { width: 100%; }
}
@media (max-width: 640px) {
    .project-board, .project-grid { grid-template-columns: 1fr; }
    .subnav.pills { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .menu[open] .menu-pop, .tool-card, .wrap { animation: none; transition: none; }
}

.tool-headbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 8px;
}
.tool-headbar h1 { font-size: 40px; letter-spacing: -0.045em; }
.tool-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.menu-pop.left { left: 0; right: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 4px 0 16px;
}
.seg {
    display: inline-flex;
    padding: 3px;
    background: #f4f7fb;
    border-radius: 12px;
    gap: 2px;
}
.seg button, .seg a {
    border: 0;
    background: transparent;
    color: #233246;
    font-weight: 700;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: 9px;
    cursor: pointer;
    text-decoration: none;
}
.seg button.on, .seg a.on { background: #fff; color: #f05a50; box-shadow: 0 1px 2px rgba(35, 50, 70, 0.08); }
.filter-bar input[type="search"], .tool-headbar input[type="search"] { width: 220px; min-height: 40px; }
.keep-open { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #111111; margin-left: auto; cursor: pointer; }
.keep-open input { width: 18px; height: 18px; margin: 0; }

.file-board {
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
}
.crumb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.crumb-bar .crumb { margin: 0; }
.row-menu .menu-pop { min-width: 240px; }
.menu-field { display: grid; gap: 4px; padding: 8px 10px 0; font-size: 12px; font-weight: 700; color: #111111; }
.menu-field input, .menu-field select { min-height: 36px; }
.menu-pop .danger { color: #f05a50; }
.menu-divider { height: 1px; margin: 4px 8px; background: #eef2f6; }
.row-menu .menu-pop { z-index: 50; }
.file-board, .file-table, .file-table tr, .file-table td, .folder-block { overflow: visible; }
.file-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-top: 1px solid #eef2f6;
    color: #233246;
    text-decoration: none;
    background: #fff;
}
.file-board > :first-child .file-row, .file-board > a.file-row:first-child { border-top: 0; }
.file-row:hover { background: #fbfcfe; text-decoration: none; }
.file-main { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
button.file-main, button.doc-line { border: 0; background: transparent; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.file-main strong { display: block; }
.file-ico {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    flex: none;
    background: #f4f7fb;
    color: #233246;
}
.file-ico.folder {
    background: #e8f2ff;
    position: relative;
}
.file-ico.folder::before {
    content: "";
    width: 18px;
    height: 14px;
    border: 0;
    background: #3b82f6;
    clip-path: polygon(0 28%, 34% 28%, 46% 0, 100% 0, 100% 100%, 0 100%);
    border-radius: 2px;
}
.file-ico.folder.tone-1 { background: #fff4e5; }
.file-ico.folder.tone-1::before { background: #f5a524; }
.file-ico.folder.tone-2 { background: #e8f7ee; }
.file-ico.folder.tone-2::before { background: #34a853; }
.file-ico.folder.tone-3 { background: #f3eefe; }
.file-ico.folder.tone-3::before { background: #7b61c9; }
.file-ico.folder.tone-4 { background: #e7f6f6; }
.file-ico.folder.tone-4::before { background: #14919b; }
.file-ico.image { background: #eef3ff; color: #3156c4; }
.file-ico.doc { background: #fff4f3; color: #c4473d; }
.file-ico.sheet { background: #eefaf3; color: #1e7a45; }
.folder-files { background: #fbfcfe; border-top: 1px solid #eef2f6; }
.file-row.nested { padding-left: 28px; }
.pad { padding: 12px 16px; }
.crumb { display: flex; gap: 8px; align-items: center; margin: 0 0 12px; font-weight: 700; }
.crumb span { color: #111111; }
.empty-state { margin: 0; padding: 28px 16px; color: #111111; text-align: center; }
.upload-sheet { width: min(520px, calc(100% - 32px)); padding: 16px; }
.upload-sheet h2 { margin-bottom: 2px; font-size: 20px; }
.upload-sheet .kicker { margin-bottom: 2px; }
.upload-sheet .muted { margin-bottom: 8px; font-size: 13px; }
.upload-sheet .place-box { margin: 0 0 8px; padding: 8px 10px; }
.upload-sheet .drop {
    min-height: 0;
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    justify-items: start;
    align-items: center;
    column-gap: 10px;
    row-gap: 0;
    text-align: left;
    padding: 8px 12px;
    margin: 0 0 8px;
    border-radius: 12px;
}
.upload-sheet .drop-ico { grid-row: 1 / span 2; width: 36px; height: 36px; margin: 0; border-radius: 10px; }
.upload-sheet .drop-ico svg { width: 18px; height: 18px; }
.upload-sheet .drop strong { font-size: 14px; }
.upload-sheet .people-pick { gap: 4px; }
.upload-sheet .form-actions { margin-top: 8px; }
.upload-sheet textarea { min-height: 72px; }
.upload-sheet .file-picks { margin-bottom: 8px; gap: 4px; }
.file-note { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; line-height: 1.3; color: #111111; }
.upload-sheet .file-picks li { padding: 4px 8px; border-radius: 8px; font-size: 13px; }
.upload-sheet .goes-to { margin: 0 0 8px; padding: 6px 10px; border-radius: 8px; }
.drop {
    position: relative;
    display: grid;
    place-items: center;
    gap: 4px;
    min-height: 156px;
    border: 1.5px dashed #c5d0db;
    border-radius: 16px;
    padding: 22px 18px;
    margin: 0 0 12px;
    background: #fff;
    text-align: center;
    cursor: pointer;
}
.drop strong { color: #233246; font-size: 16px; }
.drop span { color: #233246; font-weight: 600; font-size: 13px; }
.drop.is-over { border-color: #f05a50; background: #fff4f3; }
.drop input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}
.drop-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff4f3;
    color: #f05a50;
    margin-bottom: 4px;
}
.drop-ico svg { width: 22px; height: 22px; }
.file-picks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.file-picks li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px 8px 12px;
    border: 1px solid #e6ebf1;
    border-radius: 10px;
    background: #fff;
    font-weight: 650;
    color: #111111;
}
.file-picks button {
    border: 0;
    background: transparent;
    color: #f05a50;
    font-weight: 750;
    cursor: pointer;
    padding: 4px 6px;
}
.goes-to {
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: #fff4f3;
    color: #233246;
    font-weight: 700;
}
.sheet h2 { margin-bottom: 6px; }
.sheet .muted { margin-bottom: 14px; }
.reading p { white-space: pre-wrap; font-size: 16px; line-height: 1.6; }

.month-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 8px 0 14px; }
.month-bar h2 { min-width: 180px; text-align: center; font-size: 22px; }
.icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid #e6ebf1;
    display: grid;
    place-items: center;
    color: #233246;
    text-decoration: none;
    font-size: 20px;
    background: #fff;
}
.icon-btn:hover { border-color: #f05a50; color: #f05a50; }
.cal-pro { border-radius: 16px; box-shadow: 0 1px 0 rgba(35, 50, 70, 0.03); }
.cal-pro .cal-head { text-align: center; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; padding: 12px 6px; }
.cal-pro .cal-day {
    min-height: 108px;
    text-align: left;
    background: #fff;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.cal-pro .cal-day:hover { background: #fbfcfe; }
.cal-pro .num {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 800;
}
.cal-pro .cal-day.today { background: #fff8f7; }
.cal-pro .cal-day.today .num { background: #f05a50; color: #fff; }
.cal-pro .cal-day em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-left: 3px solid #f05a50;
    background: #fff4f3;
    cursor: pointer;
}
.cal-pro .cal-day em:hover { background: #ffe8e6; }
.agenda-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.agenda { display: grid; gap: 14px; }
.agenda-day { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; }
.agenda-day time { display: grid; justify-items: center; align-content: start; padding-top: 12px; }
.agenda-day time strong { font-size: 28px; letter-spacing: -0.04em; }
.agenda-day time span { color: #111111; font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.agenda-card {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #e6ebf1;
    border-left: 4px solid #233246;
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 8px;
}
.agenda-card.today { border-left-color: #f05a50; background: #fff8f7; }
.agenda-card.past { opacity: 1; }
.agenda-card h3 { font-size: 16px; margin-bottom: 4px; }

.thread { max-height: 560px; overflow: auto; }
.lane-add { display: flex; gap: 6px; }
.lane-add input { min-height: 36px; }
.card-table { align-items: start; }

.hq-tools { align-items: start; }
.hq-tools .tool-card {
    min-height: 0;
    padding: 12px 14px 10px;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(35, 50, 70, 0.04);
}
.tool-title {
    display: inline-block;
    color: #f05a50;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: -0.02em;
    text-decoration: none;
    margin-bottom: 4px;
}
.tool-title:hover { color: #d4483f; }
.preview-row, .doc-line {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 3px 0;
    color: #233246;
    text-decoration: none;
    border-top: 1px solid #f2f4f7;
}
.preview-row:hover, .doc-line:hover { text-decoration: none; }
.preview-row strong, .doc-line strong { display: block; font-size: 13px; line-height: 1.25; }
.who-line { display: block; font-size: 12px; font-weight: 700; color: #111111; }
.who-line time { font-weight: 600; }
.clip { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
.chat-preview { display: flex; gap: 8px; padding: 3px 0; align-items: center; }
.chat-preview p {
    margin-top: 4px;
    background: #f4f7fb;
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 13px;
}
.mini-cal p { text-align: center; font-weight: 800; margin-bottom: 8px; }
.mini-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: 11px; }
.mini-grid .dow { color: #111111; font-weight: 800; padding-bottom: 4px; }
.mini-grid .cell { padding: 4px 0; border-radius: 999px; color: #233246; }
.mini-grid .cell.out { color: #111111; }
.mini-grid .cell.today { background: #f05a50; color: #fff; font-weight: 800; }
.mini-grid .cell.has { box-shadow: inset 0 -2px 0 #f05a50; font-weight: 800; }
.mini-lanes { display: flex; gap: 8px; align-items: stretch; overflow: auto; padding-bottom: 4px; }
.mini-lane { flex: 1; min-width: 88px; background: color-mix(in srgb, var(--lane) 16%, #fff); border-radius: 10px; padding: 8px; }
.mini-lane header { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }
.mini-lane p { background: #fff; border-radius: 8px; padding: 6px; margin: 0 0 6px; font-size: 12px; }

.menu-pop { max-height: none; overflow: visible; }
.row-menu .menu-pop { min-width: 220px; padding-bottom: 6px; }
.row-menu .menu-pop form { margin: 0; }
.menu-rename { display: grid; gap: 8px; padding: 10px; }
.menu-rename .menu-field { padding: 0; }
.menu-pop button.save {
    width: 100%;
    min-height: 40px;
    margin: 0;
    background: #f05a50;
    color: #fff;
    border-radius: 999px;
    justify-content: center;
}
.menu-pop button.save:hover { background: #d4483f; color: #fff; }
.filter-bar {
    background: #fff;
    border: 1px solid #e6ebf1;
    border-radius: 16px;
    padding: 12px;
    align-items: flex-end;
}
.control { display: grid; gap: 6px; font-size: 12px; font-weight: 800; color: #111111; letter-spacing: 0.04em; text-transform: uppercase; }
.control.grow { flex: 1; min-width: 220px; }
.control select, .control input { text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 14px; color: #233246; min-height: 40px; }
.seg { background: #f6f8fb; border: 1px solid #e6ebf1; }
.file-table { width: 100%; border-collapse: collapse; }
.file-table th { text-align: left; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #111111; padding: 6px 10px; background: #f8fafc; border-bottom: 1px solid #e6ebf1; }
.file-table td { padding: 6px 10px; border-top: 1px solid #eef2f6; vertical-align: middle; }
.file-table tr { animation: row-in .28s ease both; }
.file-table tr:hover td { background: #fbfcfe; }
.menu-cell { width: 56px; text-align: right; }
.loose-label { margin: 0; padding: 14px 16px 0; font-size: 13px; font-weight: 800; color: #111111; letter-spacing: 0.04em; text-transform: uppercase; }
.doc-group { border-top: 1px solid #f2f4f7; }
.doc-group .doc-line { border-top: 0; }
.subfolders { margin: 0 0 0 36px; padding-left: 10px; border-left: 2px solid #e6ebf1; }
.subfolders .file-row { padding-top: 6px; padding-bottom: 6px; }
.doc-line.child {
    margin-left: 16px;
    padding: 1px 0 1px 8px;
    border-left: 2px solid #e6ebf1;
}
.doc-group .activity-files { margin: 2px 0 6px 34px; }
.tool-card > .activity-files { margin: 6px 0 2px; }
.tool-card .file-ico { width: 26px; height: 26px; border-radius: 6px; font-size: 8px; }
.tool-card .file-ico.folder::before { width: 14px; height: 10px; }
.tool-card .doc-line.child .file-ico { width: 22px; height: 22px; font-size: 8px; }
.tool-card .tiny { font-size: 11px; line-height: 1.2; }
.tool-card .face { width: 26px; height: 26px; font-size: 10px; }
.activity-feed { margin-top: 4px; }
.activity-feed .is-hidden { display: none !important; }
.day-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 2px; }
.day-pill {
    flex-shrink: 0;
    padding: 2px 8px;
    border: 1px solid #e6ebf1;
    border-radius: 999px;
    background: #fff;
    color: #233246;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.day-rule { flex: 1; height: 1px; background: #e6ebf1; }
.day-people { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; color: #111111; font-size: 12px; font-weight: 650; }
.day-people .face { width: 18px; height: 18px; margin: 0; font-size: 8px; }
.day-people .face + .face { margin-left: -6px; }
.tl-item {
    display: grid;
    grid-template-columns: 16px 62px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    position: relative;
    padding: 2px 4px 2px 0;
    border-radius: 8px;
}
.tl-item { cursor: pointer; }
.tl-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.activity-files .is-extra { display: none; }
.activity-pop { width: min(520px, calc(100% - 32px)); padding: 0; }
.activity-pop h2 { font-size: 18px; }
.act-body { padding: 12px 16px 16px; }
#act-summary { margin: 0; color: #111111; font-size: 14px; line-height: 1.45; }
.act-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.act-table th, .act-table td { padding: 5px 6px; border-top: 1px solid #eef2f6; text-align: left; font-size: 12px; color: #111111; }
.act-table th { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 800; }
.tl-item::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #34a853;
}
.tl-check {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1.5px solid #34a853;
    background: #34a853;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.tl-item time { color: #111111; font-size: 12px; font-weight: 700; padding-top: 2px; white-space: nowrap; }
.tl-body { min-width: 0; }
.tl-line { margin: 0; color: #111111; font-size: 13px; line-height: 1.3; }
.tl-line .face { width: 18px; height: 18px; margin: 0 4px 0 0; font-size: 8px; vertical-align: -3px; }
.tl-line strong { font-weight: 800; }
.tl-line a { color: #111111; font-weight: 650; text-decoration: none; }
.tl-line a:hover { color: var(--coral); }
.tl-item:hover { background: #fff8f7; }
.gap-row { margin: 4px 0 4px 26px; color: #111111; font-size: 12px; }
.activity-files { display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-top: 4px; min-width: 0; }
.activity-files a.act-file,
.activity-files a.act-more {
    flex: none;
    width: 48px;
    height: 36px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #e4ebf2;
    border-radius: 8px;
    background: #f7f9fb;
    color: #233246;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1;
    text-decoration: none;
}
.activity-files a.act-file img { width: 100%; height: 100%; object-fit: cover; display: block; }
.activity-files a.act-file.is-doc { background: #fff4f3; color: #c4473d; }
.activity-files a.act-file.is-sheet { background: #eefaf3; color: #1e7a45; }
.activity-files a.act-file.is-folder { background: #e8f2ff; }
.activity-files a.act-file .file-ico { width: 22px; height: 22px; background: transparent; }
.activity-files a.act-file .file-ico.folder::before { width: 14px; height: 11px; }
.activity-files a.act-file:hover,
.activity-files a.act-more:hover { border-color: #f05a50; box-shadow: 0 0 0 2px rgba(240, 90, 80, 0.16); color: #233246; }
.rail .activity-files { gap: 4px; overflow: hidden; }
.rail .activity-files a.act-file { width: 36px; height: 28px; border-radius: 6px; }
.rail .activity-files a.act-more { width: auto; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 6px; }
.latest { border-top: 0; margin-top: 20px; }
@keyframes row-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
.menu-pop.floating-menu {
    position: fixed;
    right: auto;
    z-index: 80;
    min-width: 188px;
    margin: 0;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 12px 28px rgba(35, 50, 70, 0.16);
    transform-origin: top right;
    opacity: 0;
    transform: translateY(-4px) scale(.98);
}
.menu-pop.floating-menu.is-open {
    opacity: 1;
    transform: none;
    transition: opacity .16s ease, transform .2s cubic-bezier(.16, 1, .3, 1);
}
.menu-pop.floating-menu[hidden] { display: none !important; }
.menu-pop.floating-menu a,
.menu-pop.floating-menu button {
    min-height: 32px;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 13px;
}
.docs-page .tool-headbar { align-items: center; margin-bottom: 0; }
.docs-page .tool-headbar h1 { font-size: 28px; }
.docs-page .kicker { margin-bottom: 0; }
.docs-page .file-board { border-radius: 14px; overflow: hidden; box-shadow: 0 1px 2px rgba(35, 50, 70, 0.04); }
.docs-page .file-toolbar { background: #fff; border-bottom: 1px solid #e6ebf1; }
.docs-page .path-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 42px;
    padding: 4px 8px 4px 14px;
    border-bottom: 1px solid #eef2f6;
}
.docs-page .path-row .crumb { margin: 0; min-width: 0; gap: 6px; font-size: 13px; font-weight: 650; flex-wrap: nowrap; overflow: hidden; }
.docs-page .path-row .crumb a,
.docs-page .path-row .crumb .here { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.docs-page .path-row .crumb a { color: #111111; text-decoration: none; }
.docs-page .path-row .crumb a:hover { color: #f05a50; }
.docs-page .path-row .crumb .here { color: #233246; font-weight: 750; }
.docs-page .path-row .icon-btn { width: 32px; height: 32px; border-radius: 8px; font-size: 16px; }
.docs-page .finder {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
}
.docs-page .finder .seg { flex: none; }
.docs-page .finder-sort { flex: none; margin: 0; }
.docs-page .finder-sort select {
    width: auto;
    min-width: 132px;
    min-height: 32px;
    padding: 0 28px 0 10px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    background-color: #fff;
}
.docs-page .finder-search {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 120px;
    min-height: 32px;
    margin: 0;
    padding: 0 10px;
    border: 1px solid #d5dde6;
    border-radius: 8px;
    background: #f8fafc;
    color: #111111;
}
.docs-page .finder-search svg { width: 15px; height: 15px; flex: none; }
.docs-page .finder-search input {
    width: 100%;
    min-height: 30px;
    border: 0;
    padding: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #233246;
}
.docs-page .finder-search input:focus { outline: none; border: 0; }
.docs-page .finder-search:focus-within { border-color: #f05a50; background: #fff; box-shadow: 0 0 0 3px rgba(240, 90, 80, 0.16); }
.docs-page .finder .keep-open { margin: 0; white-space: nowrap; font-size: 12px; }
.docs-page .file-table { table-layout: fixed; }
.docs-page .file-table th {
    padding: 8px 12px;
    background: #f7f9fb;
    color: #111111;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 0.05em;
}
.docs-page .file-table td {
    padding: 7px 12px;
    font-size: 13px;
    color: #233246;
    border-top: 1px solid #f0f3f7;
}
.docs-page .file-table th:nth-child(2),
.docs-page .file-table td:nth-child(2) { width: 18%; }
.docs-page .file-table th:nth-child(3),
.docs-page .file-table td:nth-child(3) { width: 88px; color: #111111; }
.docs-page .file-table th:nth-child(4),
.docs-page .file-table td:nth-child(4) { width: 118px; color: #111111; white-space: nowrap; }
.docs-page .file-table .menu-cell { width: 52px; padding-right: 8px; }
.docs-page .file-table tbody tr:hover td { background: #fbfcfe; }
.docs-page .file-table .file-main strong { font-size: 13.5px; font-weight: 650; }
.docs-page .folder-files { background: #fff; border-top: 0; }
.docs-page .file-row { padding: 8px 12px; gap: 8px; }
.docs-page .file-main { gap: 10px; }
.docs-page .file-ico { width: 28px; height: 28px; border-radius: 7px; font-size: 8px; }
.docs-page .file-ico.folder::before { width: 15px; height: 11px; }
.docs-page .file-row .btn-sm { min-height: 28px; padding: 0 10px; font-size: 12px; }

body.guest:has(.gate) {
    background:
        radial-gradient(680px 460px at 100% 0%, rgba(240, 90, 80, 0.85), transparent 58%),
        radial-gradient(640px 480px at 0% 100%, #f05a50 0%, transparent 62%),
        linear-gradient(145deg, #233246 0%, #3a2a38 48%, #f05a50 100%);
}
.auth-shell:has(.gate) {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 32px 16px;
}
.gate-card {
    position: relative;
    width: min(420px, calc(100% - 32px));
    padding: 36px 32px 28px;
    background: #fff;
    border: 0;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    text-align: left;
    color: #111111;
}
.gate-card h1 {
    margin: 0 0 22px;
    color: #111111;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    text-align: center;
}
.gate-avatar {
    width: 92px;
    height: 92px;
    margin: 4px auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f4f6f8;
    border: 1px solid #e6ebf1;
}
.gate-logo {
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 14px;
    display: block;
    object-fit: cover;
}
.gate-card form { margin: 0; }
.gate-alert {
    margin: 0 0 14px;
    padding: 8px 10px;
    border-radius: 10px;
    background: #fff4f3;
    color: #111111;
    font-size: 13px;
    font-weight: 650;
}
.gate-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 8px 2px 10px;
    border-bottom: 1px solid #d5dde6;
    color: #233246;
}
.gate-line svg { width: 18px; height: 18px; flex: none; }
.gate-card .gate-line input[type="email"],
.gate-card .gate-line input[type="password"] {
    width: 100%;
    height: 32px;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #111111;
    font-size: 15px;
    font-weight: 600;
}
.gate-line input::placeholder { color: #9aa3ad; opacity: 1; font-weight: 600; }
.gate-line input:focus { outline: none; }
.gate-card.is-invalid .gate-line { border-bottom-color: #f05a50; }
.gate-line input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #fff inset;
    -webkit-text-fill-color: #111111;
}
.gate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 0 22px;
}
.gate-card .choice.remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    color: #111111;
    font-size: 13px;
    font-weight: 650;
}
.gate-row a { color: #f05a50; font-size: 13px; font-weight: 650; text-decoration: none; }
.gate-row a:hover { color: #d4483f; }
.gate-card .btn {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(90deg, #f05a50, #233246);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.gate-card .btn:hover { color: #fff; filter: brightness(1.05); }
.gate-card .banner { margin: 0 0 12px; }

body.guest { background: #233246; }
.login-screen {
    background: #ffffff;
    border: 0;
    border-top: 6px solid #f05a50;
    border-radius: 20px;
    padding: 32px 28px 24px;
    box-shadow: 0 18px 50px rgba(35, 50, 70, 0.28);
}
.login-screen .brand { display: flex; justify-content: center; margin-bottom: 18px; }
.login-screen .brand-logo { height: 48px; }
.login-screen .secure-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    margin: 0 auto 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff4f3;
    color: #111111;
    font-size: 12px;
    font-weight: 750;
}
.login-screen .secure-pill svg { width: 14px; height: 14px; color: #f05a50; }
.login-screen h1 { font-size: 26px; text-align: center; margin-bottom: 6px; letter-spacing: -0.03em; }
.login-screen .lede { margin: 0 0 18px; text-align: center; color: #111111; font-size: 14px; line-height: 1.45; }
.login-screen .login-foot { margin: 18px 0 0; text-align: center; color: #111111; font-size: 14px; }
.login-screen .choice { color: #111111; }
.login-screen a { color: #f05a50; }
.login-screen a:hover { color: #d4483f; }
.login-screen h1 { color: #233246; }
.login-screen .btn {
    width: 100%;
    background: #f05a50;
    color: #ffffff;
    box-shadow: none;
}
.login-screen .btn:hover { background: #d4483f; color: #ffffff; filter: none; }
.login-screen .banner { background: #fff4f3; color: #233246; }
.login-screen input:focus,
.login-screen textarea:focus {
    outline: 3px solid rgba(240, 90, 80, 0.35);
    border-color: #f05a50;
}
.login-screen .error { color: #f05a50; }

.new-menu > summary.new-btn {
    border-radius: 10px;
    min-height: 40px;
    padding: 0 16px;
    font-weight: 800;
}
.new-pop {
    min-width: 260px;
    padding: 6px;
    border-radius: 12px;
}
.new-pop button {
    gap: 12px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 650;
    color: #233246;
}
.new-pop button:hover { background: #f4f7fb; color: #233246; }
.new-pop svg { width: 20px; height: 20px; flex: 0 0 20px; }

@media (max-width: 900px) {
    .tool-headbar, .agenda-day { display: grid; grid-template-columns: 1fr; }
    .keep-open { margin-left: 0; }
    .cal-pro .cal-head { font-size: 0; }
    .cal-pro .cal-head::first-letter { font-size: 12px; }
}

.tool-page.chat-page { width: min(880px, 100%); }
.chat-shell {
    display: flex;
    flex-direction: column;
    height: min(680px, calc(100vh - 230px));
    min-height: 440px;
    border: 1px solid #e6ebf1;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
}
.chat-shell .thread {
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 8px 16px 12px;
    background: #fff;
}
.chat-shell .day-chip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 8px 10px;
    color: #111111;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}
.chat-shell .day-chip::before,
.chat-shell .day-chip::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e6ebf1;
}
.chat-shell .bubble-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    max-width: min(78%, 540px);
    margin: 10px 0 0;
}
.chat-shell .bubble-row.follow { margin-top: 3px; }
.chat-shell .bubble-row.follow .face { visibility: hidden; }
.chat-shell .bubble-row.mine { margin-left: auto; flex-direction: row-reverse; }
.chat-shell .bubble-body { min-width: 0; }
.chat-shell .who {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 2px 4px;
    font-size: 13px;
    font-weight: 750;
    color: #111111;
}
.chat-shell .bubble-row.mine .who { justify-content: flex-end; }
.chat-shell .who time { font-weight: 600; color: #111111; font-size: 12px; }
.chat-shell .bubble-text {
    margin: 0;
    background: #f4f7fb;
    color: #111111;
    border-radius: 6px 16px 16px 16px;
    padding: 10px 14px;
    line-height: 1.5;
    font-size: 15px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.chat-shell .bubble-row.mine .bubble-text {
    background: #233246;
    color: #fff;
    border-radius: 16px 6px 16px 16px;
}
.chat-empty {
    margin: auto;
    text-align: center;
    max-width: 320px;
    padding: 24px 12px;
}
.chat-empty strong { display: block; font-size: 18px; margin-bottom: 6px; color: #233246; }
.chat-empty p { margin: 0; color: #111111; }
.chat-shell .chat-box {
    display: block;
    margin: 0;
    padding: 12px 12px 10px;
    border: 0;
    border-top: 1px solid #e6ebf1;
    border-radius: 0;
    box-shadow: none;
    background: #fff;
}
.composer-field {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    border: 1px solid #d5dde6;
    border-radius: 16px;
    padding: 6px 6px 6px 14px;
    background: #fff;
}
.composer-field:focus-within {
    border-color: #f05a50;
    box-shadow: 0 0 0 3px rgba(240, 90, 80, 0.22);
}
.composer-field textarea {
    flex: 1;
    width: auto;
    min-height: 24px;
    max-height: 140px;
    margin: 0;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    resize: none;
    background: transparent;
    line-height: 1.45;
    font-size: 15px;
    color: #111111;
}
.composer-field textarea:focus { outline: none; box-shadow: none; border-color: transparent; }
.send-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 12px;
    background: #f05a50;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    flex: none;
}
.send-btn svg { width: 18px; height: 18px; }
.send-btn:hover { background: #d4483f; }
.send-btn:disabled { background: #f3c7c3; cursor: not-allowed; }
.chat-hint { margin: 6px 6px 0; font-size: 12px; font-weight: 600; color: #111111; }
@media (max-width: 640px) {
    .chat-shell { height: min(640px, calc(100vh - 200px)); min-height: 380px; }
    .chat-shell .bubble-row { max-width: 92%; }
    .day-line { flex-wrap: wrap; }
    .day-rule { display: none; }
    .tl-item { grid-template-columns: 22px minmax(0, 1fr); }
    .tl-item time { grid-column: 2; padding-top: 0; }
    .latest-head, .activity-filters { flex-wrap: wrap; }
    .latest-note { display: none; }
}
