:root {
    color-scheme: light;
    --ink: #232321;
    --muted: #74736d;
    --faint: #9a9992;
    --line: #e7e5de;
    --paper: #ffffff;
    --canvas: #f7f6f2;
    --soft: #f1f0ea;
    --accent: #5f6f64;
    --accent-dark: #435248;
    --accent-soft: #e6ece7;
    --danger: #a44f45;
    --danger-soft: #f8e9e6;
    --shadow: 0 16px 45px rgba(42, 42, 35, .08);
    --radius: 18px;
    --sidebar: 248px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
input, select, textarea {
    width: 100%;
    border: 1px solid #d9d7cf;
    border-radius: 10px;
    color: var(--ink);
    background: var(--paper);
    padding: 11px 12px;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: #8a9a8f; box-shadow: 0 0 0 3px rgba(95,111,100,.12); }
select:not([multiple]) {
    min-height: 44px;
    padding: 10px 42px 10px 13px;
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--paper);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b6e68' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 18px 18px;
    cursor: pointer;
}
select:not([multiple]):disabled { cursor: default; opacity: .58; }
select[multiple] { padding: 7px; }
textarea { resize: vertical; }
label { display: grid; gap: 6px; color: #4f4e49; font-size: 13px; font-weight: 650; }
label .optional { color: var(--faint); font-weight: 400; }
.auth-recovery-links { display: flex; justify-content: space-between; gap: 12px; margin: -3px 0 0; font-size: 12px; }
.auth-recovery-links a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 12px; border: 1px solid #d9d7cf; border-radius: 10px; background: var(--soft); }
.recovery-codes code { padding: 5px 7px; border-radius: 5px; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-align: center; }
.form-field { display: grid; gap: 6px; color: #4f4e49; font-size: 13px; font-weight: 650; }
.field-label .optional { color: var(--faint); font-weight: 400; }
.person-multi-select { position: relative; }
.person-multi-select-control {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 5px 9px;
    border: 1px solid #d9d7cf;
    border-radius: 10px;
    background: var(--paper);
    cursor: text;
    transition: border-color .15s, box-shadow .15s;
}
.person-multi-select.is-open .person-multi-select-control { border-color: #8a9a8f; box-shadow: 0 0 0 3px rgba(95,111,100,.12); }
.person-multi-select-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.person-multi-select-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    min-height: 27px;
    padding: 3px 6px 3px 8px;
    border: 0;
    border-radius: 7px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.person-multi-select-chip:hover { background: #d9e3db; }
.person-multi-select-chip .material-symbols-rounded { font-size: 15px; }
.person-multi-select-search { flex: 1 1 125px; width: auto; min-width: 125px; padding: 4px 2px; border: 0; border-radius: 0; box-shadow: none; }
.person-multi-select-search:focus { border: 0; box-shadow: none; }
.person-multi-select-options {
    position: absolute;
    z-index: 20;
    top: calc(100% + 5px);
    right: 0;
    left: 0;
    display: none;
    max-height: 230px;
    overflow-y: auto;
    padding: 5px;
    border: 1px solid #d9d7cf;
    border-radius: 10px;
    background: var(--paper);
    box-shadow: var(--shadow);
}
.person-multi-select.is-open .person-multi-select-options { display: grid; }
.person-multi-select-option {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 7px;
    width: 100%;
    padding: 8px;
    border: 0;
    border-radius: 7px;
    color: var(--ink);
    background: transparent;
    text-align: left;
    cursor: pointer;
}
.person-multi-select-option:hover, .person-multi-select-option:focus-visible { background: var(--soft); outline: 0; }
.person-multi-select-option.is-selected { background: var(--accent-soft); }
.person-multi-select-option[hidden] { display: none !important; }
.person-multi-select-option > .material-symbols-rounded { padding-top: 1px; color: var(--accent); font-size: 18px; }
.person-multi-select-option strong, .person-multi-select-option small { display: block; }
.person-multi-select-option strong { font-size: 12px; }
.person-multi-select-option small { margin-top: 1px; color: var(--muted); font-size: 10px; font-weight: 500; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(28px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; font-weight: 720; }
h2 { margin-bottom: 0; font-size: 19px; letter-spacing: -.015em; }
h3 { margin-bottom: 6px; }
.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px 18px 18px;
    background: #eeede8;
    border-right: 1px solid #dfddd5;
    z-index: 30;
}
.brand { display: grid; justify-items: center; width: fit-content; margin-inline: auto; }
.brand-logo { display: block; width: 146px; height: auto; }
.environment-badge {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    margin-top: 7px;
    padding: 3px 9px;
    border: 1px solid #a9c1d3;
    border-radius: 999px;
    color: #315f7f;
    background: #d9e8f3;
    font-size: 9px;
    font-weight: 780;
    line-height: 1;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.quick-add-trigger { margin: 25px 0 20px; justify-content: center; }
.start-meeting-trigger { min-height: 32px; margin: -15px 0 15px; padding: 4px 8px; color: #66655f; font-size: 12px; }
.start-meeting-trigger .material-symbols-rounded { font-size: 19px; }
.primary-nav, .area-nav { display: grid; gap: 4px; }
.primary-nav a, .area-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 40px;
    padding: 8px 11px;
    border-radius: 9px;
    color: #54534e;
    font-weight: 560;
}
.primary-nav a > span { width: 19px; color: #797870; text-align: center; }
.primary-nav a:hover, .area-nav a:hover { background: rgba(255,255,255,.7); }
.primary-nav a.active { color: var(--ink); background: #fff; box-shadow: 0 1px 4px rgba(28,28,24,.07); }
.nav-count { margin-left: auto; min-width: 21px; padding: 1px 6px; border-radius: 10px; color: #fff; background: var(--accent); font-size: 11px; text-align: center; }
.sidebar-label, .sidebar-section-heading { margin: 25px 11px 7px; color: #999890; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-section-heading { display: flex; align-items: center; justify-content: space-between; }
.sidebar-section-heading a { border-radius: 6px; padding: 2px 5px; color: #85847d; font-size: 9px; letter-spacing: .04em; }
.sidebar-section-heading a:hover, .sidebar-section-heading a.active { color: var(--accent-dark); background: rgba(255,255,255,.72); }
.area-nav a { min-height: 34px; padding-block: 6px; font-size: 13px; }
.area-nav i { width: 9px; height: 9px; border-radius: 50%; background: var(--area-color); }
.sidebar-footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 10px 0; border-top: 1px solid #d9d7d0; color: var(--muted); font-size: 12px; }
.sidebar-account-link { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 6px; margin-left: -6px; border-radius: 8px; }
.sidebar-account-link .material-symbols-rounded { font-size: 17px; }
.sidebar-account-link span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account-link:hover, .sidebar-account-link.active { color: var(--accent-dark); background: rgba(255,255,255,.72); }
.main-content { min-width: 0; width: 100%; max-width: 1370px; margin: 0 auto; padding: 46px clamp(28px, 4vw, 64px) 80px; }
.mobile-menu { display: none; }
.page-header { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; margin-bottom: 31px; }
.page-header.compact { align-items: center; }
.eyebrow { margin-bottom: 6px; color: #85847c; font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.lede { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 16px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    border: 1px solid #d9d7cf;
    border-radius: 10px;
    padding: 8px 14px;
    color: #45443f;
    background: var(--paper);
    cursor: pointer;
    font-weight: 650;
    transition: .15s ease;
}
.button:hover { transform: translateY(-1px); border-color: #c7c4ba; box-shadow: 0 5px 15px rgba(35,35,30,.07); }
.button-primary { color: #fff; border-color: var(--accent); background: var(--accent); }
.button-primary:hover { border-color: var(--accent-dark); background: var(--accent-dark); }
.button-subtle { border-color: transparent; background: transparent; box-shadow: none; }
.button-small { min-height: 34px; padding: 6px 11px; font-size: 12px; }
.button-large { min-height: 48px; }
.icon-button, .link-button {
    border: 0;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
}
.icon-button { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 21px; }
.icon-button:hover { color: var(--ink); background: var(--soft); }
.add-to-meeting-menu > summary.icon-button {
    position: relative;
    display: block;
    box-sizing: border-box;
    padding: 0;
    list-style: none;
}
.add-to-meeting-menu > summary.icon-button > .material-symbols-rounded {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 21px;
    height: 21px;
    font-size: 21px;
    line-height: 21px;
    text-align: center;
    transform: translate(-50%, -50%);
}
.add-to-meeting-menu > summary.icon-button::-webkit-details-marker { display: none; }
.add-to-meeting-menu { position: relative; }
.add-to-meeting-menu[open] { z-index: 50; }
.add-to-meeting-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    width: min(310px, calc(100vw - 38px));
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 18px 48px rgba(31,32,28,.18);
}
.add-to-meeting-heading { display: flex; align-items: center; gap: 9px; padding: 3px 4px 11px; border-bottom: 1px solid var(--line); }
.add-to-meeting-heading > .material-symbols-rounded { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-size: 18px; }
.add-to-meeting-heading strong, .add-to-meeting-heading small { display: block; }
.add-to-meeting-heading strong { font-size: 12px; }
.add-to-meeting-heading small { margin-top: 1px; color: var(--faint); font-size: 10px; font-weight: 450; }
.add-to-meeting-options { display: grid; gap: 5px; padding: 8px 0; }
.add-to-meeting-options form { margin: 0; }
.add-to-meeting-options button {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--ink);
    background: var(--soft);
    text-align: left;
    cursor: pointer;
}
.add-to-meeting-options button:hover { border-color: #cbd4cd; background: var(--accent-soft); }
.add-to-meeting-options button span, .add-to-meeting-options button small { display: block; }
.add-to-meeting-options button span { font-size: 12px; font-weight: 680; }
.add-to-meeting-options button small { margin-top: 2px; color: var(--faint); font-size: 10px; }
.add-to-meeting-create { display: flex; align-items: center; gap: 6px; padding: 9px 7px 2px; border-top: 1px solid var(--line); color: var(--accent-dark); font-size: 11px; font-weight: 680; }
.add-to-meeting-create .material-symbols-rounded { font-size: 17px; }
.link-button { padding: 0; font-size: 12px; }
.flash { margin-bottom: 22px; padding: 12px 15px; border: 1px solid; border-radius: 11px; }
.flash.success { color: #41634a; border-color: #cfe0d2; background: #edf5ee; }
.flash.error { color: #884239; border-color: #edcbc5; background: #fcf0ee; }
.flash.warning { color: #705b29; border-color: #e7d8ad; background: #fff8e5; }
.flash ul { margin-bottom: 0; }
.error-page { display: grid; min-height: 100vh; place-items: center; padding: 28px; }
.error-card { width: min(520px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); text-align: center; }
.error-card > .material-symbols-rounded { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 18px; border-radius: 15px; color: var(--danger); background: var(--danger-soft); font-size: 25px; }
.error-card h1 { margin-bottom: 10px; font-size: 25px; }
.error-card p:not(.eyebrow) { margin: 0 auto 24px; color: var(--muted); }
.card, .soft-card, .matter-section, .table-card, .source-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: 0 1px 1px rgba(30,30,25,.02);
}
.soft-card { padding: 20px; background: rgba(255,255,255,.72); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-heading > span { color: var(--faint); font-size: 12px; }
.section-heading a { color: var(--accent); font-size: 12px; font-weight: 650; }
.section-heading .eyebrow { margin-bottom: 4px; }
.section-block { margin-bottom: 31px; }
.attention-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 34px; align-items: start; }
.attention-aside { display: grid; gap: 17px; position: sticky; top: 30px; }
.attention-list { display: grid; gap: 9px; }
.attention-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 16px;
    align-items: center;
    min-height: 76px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    transition: .15s ease;
}
a.attention-card:hover, .attention-card:has(.attention-card-main:hover) { border-color: #cfccc2; box-shadow: 0 7px 20px rgba(40,40,35,.06); }
.attention-card.is-overdue { border-left: 3px solid #bd695f; background: linear-gradient(90deg, #f5d7d0 0, #fae5df 18%, #fff5f2 38%, var(--paper) 62%); }
.attention-card.is-due-today { border-left: 3px solid #6e9f4d; background: linear-gradient(90deg, #d8ebcd 0, #e7f3df 18%, #f5faef 38%, var(--paper) 62%); }
.attention-card.is-overdue .attention-date strong { color: #9b443c; }
.attention-card.is-due-today .attention-date strong { color: #426d31; }
.attention-card-main { display: flex; align-items: center; gap: 13px; min-width: 0; }
.attention-card-main > div { min-width: 0; }
.attention-card-main strong, .attention-card-main span, .attention-card-main small { display: block; }
.attention-card-main strong { margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.attention-card-main span { color: #65645e; font-size: 13px; }
.attention-card-main small { margin-top: 3px; color: var(--faint); }
.attention-date { min-width: 84px; text-align: right; }
.attention-date strong, .attention-date small { display: block; }
.attention-date strong { font-size: 13px; }
.attention-date small { color: var(--faint); font-size: 11px; }
.attention-check { color: var(--accent); font-size: 20px; }
.area-dot { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 50%; background: var(--area-color); }
.quick-complete .icon-button { color: var(--accent); border: 1px solid var(--line); font-size: 15px; }
.attention-meetings { margin-bottom: 34px; }
.meeting-attention-card {
    grid-template-columns: 42px minmax(0, 1fr) auto 24px;
    border-color: #d8ddd8;
    background: linear-gradient(110deg, #fbfdfb, #fff);
}
.meeting-attention-card:hover { border-color: #bccbc0; box-shadow: 0 7px 20px rgba(40,40,35,.06); }
.meeting-attention-card.is-due-today { border-left: 3px solid #6e9f4d; background: linear-gradient(90deg, #d8ebcd 0, #e7f3df 18%, #f5faef 38%, var(--paper) 62%); }
.meeting-attention-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: var(--accent-dark);
    background: #eaf0eb;
    font-size: 21px;
}
.meeting-attention-card .attention-card-main { display: block; }
.meeting-attention-chevron { color: #9ba39c; font-size: 20px; }
.overdue-text { color: var(--danger) !important; }
.attention-later > summary { cursor: pointer; list-style: none; }
.attention-later > summary::-webkit-details-marker { display: none; }
.attention-later-summary { display: inline-flex; align-items: center; gap: 7px; color: var(--faint); font-size: 12px; }
.attention-summary-action, .section-heading .attention-summary-action { display: inline-flex; align-items: center; gap: 3px; padding: 5px 8px 5px 10px; border: 1px solid #d4d8d2; border-radius: 999px; color: var(--accent-dark); background: #f8fbf8; font-size: 11px; font-weight: 700; line-height: 1; transition: .15s ease; }
.attention-later:hover .attention-summary-action, a.attention-summary-action:hover { border-color: #aebbae; background: #f0f6f0; }
.attention-summary-action .material-symbols-rounded { font-size: 16px; transition: transform .15s ease; }
.attention-later[open] .attention-summary-action { font-size: 0; }
.attention-later[open] .attention-summary-action::before { content: 'Hide'; font-size: 11px; }
.attention-later[open] .attention-summary-action .material-symbols-rounded { transform: rotate(180deg); }
.mini-item { display: grid; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mini-item:last-child { border-bottom: 0; }
.mini-item:hover strong { color: var(--accent); }
.mini-item strong, .mini-item span, .mini-item small { display: block; }
.mini-item strong { font-size: 13px; }
.mini-item span { color: #66655f; font-size: 12px; }
.mini-item small { margin-top: 3px; color: var(--faint); }
.inbox-callout { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.inbox-callout p { margin: 0; color: var(--muted); font-size: 12px; }
.large-number { display: block; margin-bottom: -3px; font-size: 29px; font-weight: 730; }
.filter-bar {
    display: flex;
    align-items: end;
    gap: 12px;
    margin: -8px 0 28px;
    padding: 13px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255,255,255,.62);
}
.filter-bar label { min-width: 150px; }
.check-row { display: flex; align-items: center; gap: 8px; min-width: 0 !important; min-height: 40px; }
.check-row input { width: auto; }
.empty-state { padding: 70px 25px; border: 1px dashed #d5d2c9; border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state > span { display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 14px; border-radius: 50%; color: var(--accent); background: var(--accent-soft); font-size: 22px; }
.empty-state h2 { margin-bottom: 6px; color: var(--ink); }
.empty-state p { margin-bottom: 17px; }
.inbox-list, .matter-list { display: grid; gap: 9px; }
.inbox-item, .matter-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 17px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
}
.inbox-item:hover, .matter-row:hover { border-color: #cbc8bd; box-shadow: 0 6px 18px rgba(35,35,31,.055); }
.inbox-icon { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: var(--accent); background: var(--accent-soft); font-size: 18px; }
.inbox-item strong, .inbox-item p, .inbox-item small { display: block; }
.inbox-item p { margin: 2px 0; color: #66655f; }
.inbox-item small { color: var(--faint); }
.chevron { color: #aaa89e; font-size: 27px; }
.process-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(440px, 1.2fr); gap: 28px; align-items: start; }
.source-card { position: sticky; top: 30px; padding: 22px; }
.source-delete-form { display: flex; margin: 0; }
.source-delete { width: 38px; height: 38px; color: #7d7b74; }
.source-delete svg { width: 26px; height: 26px; fill: currentColor; }
.source-delete:hover { color: var(--danger); background: var(--danger-soft); }
.source-delete:focus-visible { outline: 2px solid #c9877d; outline-offset: 2px; }
.source-content { max-height: 58vh; overflow: auto; padding: 18px; border-radius: 12px; color: #4d4c47; background: var(--soft); white-space: pre-wrap; }
.attachment-list { display: grid; gap: 7px; margin-top: 14px; }
.attachment-list a, .file-chip { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; font-weight: 650; }
.attachment-list a small { color: var(--muted); font-weight: 400; }
.file-with-action { display: flex; align-items: center; gap: 5px; min-width: 0; }
.file-with-action > a { flex: 1; min-width: 0; }
.attachment-details { display: grid; min-width: 0; }
.attachment-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-source { overflow: hidden; margin-top: 1px; text-overflow: ellipsis; white-space: nowrap; }
.attachment-list a .attachment-size { flex: 0 0 auto; margin-left: auto; }
.file-actions { display: flex; align-items: center; gap: 2px; }
.attachment-delete-form { display: flex; margin: 0; }
.attachment-delete { width: 34px; height: 34px; color: var(--faint); font-size: 19px; }
.attachment-delete:hover { color: var(--danger); background: var(--danger-soft); }
.entry-attachment-list { margin-bottom: 10px; }
.related-matter-group + .related-matter-group { margin-top: 18px; }
.related-matter-group h3 { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 5px; color: var(--muted); font-size: 11px; font-weight: 720; letter-spacing: .02em; }
.related-matter-group h3 small { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; color: var(--accent-dark); background: var(--accent-soft); font-size: 10px; }
.related-matter-item small { display: block; margin-top: 2px; color: var(--muted); }
.relation-editor-list { display: grid; gap: 12px; margin-top: 22px; }
.relation-editor { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.relation-editor > div > strong, .relation-editor > div > small { display: block; }
.relation-editor > div > small { margin-top: 2px; color: var(--muted); }
.compact-stack { gap: 10px; }
.relation-actions { display: flex; justify-content: flex-end; }
.relation-add { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.relation-add h3 { margin-bottom: 15px; }
.process-form { padding: 5px 27px 23px; }
.process-form > section { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step-number { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; background: var(--accent); font-size: 12px; font-weight: 750; }
.step-content { display: grid; gap: 11px; }
.step-content h2 { margin-bottom: 4px; }
.radio-card, .toggle-row { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; cursor: pointer; }
.radio-card input, .toggle-row input { width: auto; margin-top: 4px; }
.radio-card strong, .radio-card small, .toggle-row strong, .toggle-row small { display: block; }
.radio-card small, .toggle-row small { color: var(--muted); font-weight: 400; }
.subform, .conditional { display: grid; gap: 9px; margin: 0 0 5px 30px; padding: 13px; border-radius: 11px; background: var(--soft); }
.hidden { display: none !important; }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.two-fields > label, .two-fields > .form-field { align-content: start; }
.stack { display: grid; gap: 17px; }
.form-card { display: grid; gap: 21px; max-width: 750px; padding: 28px; }
.form-card .form-actions { margin-top: 2px; }
.account-layout { display: grid; grid-template-columns: minmax(0, 760px); gap: 18px; max-width: 760px; }
.account-summary { display: flex; align-items: center; gap: 14px; padding: 22px; }
.account-summary > .material-symbols-rounded { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font-size: 25px; }
.account-summary small, .account-summary strong, .account-summary span { display: block; }
.account-summary small { color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.account-summary strong { margin: 2px 0; font-size: 15px; }
.account-summary span { color: var(--muted); font-size: 12px; }
.account-password-card { max-width: none; }
.account-password-card h2 { margin-bottom: 5px; font-size: 22px; }
.account-intro { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.input-large { min-height: 51px; font-size: 18px; }
.matter-row { grid-template-columns: auto minmax(0, 1fr) auto 110px auto; }
.matter-row-main strong, .matter-row-main span { display: block; }
.matter-row-main strong { margin-bottom: 3px; }
.matter-row-main span { color: var(--muted); font-size: 12px; }
.matter-next { text-align: right; }
.matter-next small, .matter-next strong { display: block; }
.matter-next small { color: var(--faint); font-size: 10px; }
.matter-next strong { font-size: 13px; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border: 1px solid #dedcd3; border-radius: 100px; color: #66655e; background: #f8f7f4; font-size: 11px; font-weight: 650; }
.commitment-view-filter { display: inline-flex; margin: -12px 0 18px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #f8f8f5; }
.commitment-view-filter a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 11px; border-radius: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.commitment-view-filter a:hover { color: var(--accent-dark); }
.commitment-view-filter a.is-active { color: var(--ink); background: #fff; box-shadow: 0 1px 3px rgba(30,30,25,.12); }
.commitment-view-filter span { color: var(--faint); font-size: 10px; }
.commitment-view-filter .is-active span { color: var(--accent-dark); }
.commitment-status-delayed { color: #8a651a; border-color: #e5c77f; background: #fff8e7; }
.matter-library-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.matter-library-controls .commitment-view-filter { margin: 0; }
.matter-area-group { margin-bottom: 28px; }
.matter-area-group > header { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 1px 10px; }
.matter-area-group h2 { margin: 0; font-size: 16px; }
.matter-area-group p { margin: 0; color: var(--faint); font-size: 11px; font-weight: 650; }
.matter-tree { display: grid; gap: 9px; }
.matter-tree-row { position: relative; }
.matter-tree-row > .matter-row { width: 100%; }
.matter-tree-toggle { position: absolute; z-index: 1; top: 20px; left: 17px; display: grid; place-items: center; width: 23px; height: 23px; padding: 0; border: 0; border-radius: 7px; color: var(--accent-dark); background: transparent; cursor: pointer; }
.matter-tree-toggle:hover { background: rgba(225, 234, 227, .9); }
.matter-tree-toggle .material-symbols-rounded { font-size: 19px; transition: transform .15s ease; }
.matter-tree-node.has-children > .matter-tree-row > .matter-row .matter-row-main { padding-left: 29px; }
.matter-tree-node.is-collapsed > .matter-tree-row .matter-tree-toggle .material-symbols-rounded { transform: rotate(-90deg); }
.matter-tree-children { position: relative; display: grid; gap: 5px; margin: 5px 0 2px 30px; padding: 5px 0 5px 18px; border-left: 1px solid #dce1da; }
.matter-tree-node.is-collapsed > .matter-tree-children { display: none; }
.matter-tree-summary { color: var(--accent-dark) !important; font-weight: 650; }
.matter-tree-depth-0.has-children > .matter-tree-row > .matter-row { border-color: #d7ded6; background: rgba(246, 249, 246, .92); }
.matter-tree-children .matter-row { padding-top: 13px; padding-bottom: 13px; border-color: transparent; border-radius: 10px; background: transparent; box-shadow: none; }
.matter-tree-children .matter-row:hover { border-color: var(--line); background: var(--paper); box-shadow: 0 4px 13px rgba(35,35,31,.04); }
.matter-tree-depth-1.has-children > .matter-tree-row > .matter-row {
    border-color: #dce4da;
    background: linear-gradient(90deg, #eef4ee 0, #f6f9f5 42%, #fcfdfb 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
}
.matter-tree-depth-1.has-children > .matter-tree-row > .matter-row:hover { border-color: #bdcfbb; }
.matter-tree-depth-2 .matter-tree-children { margin-left: 18px; }
.matter-header { margin: -4px 0 33px; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.matter-breadcrumb { display: flex; gap: 8px; margin-bottom: 21px; color: var(--faint); font-size: 12px; }
.matter-breadcrumb a:hover { color: var(--accent); }
.matter-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.matter-title-row h1 { margin-top: 13px; }
.matter-purpose { max-width: 790px; margin-bottom: 0; color: #66655f; font-size: 16px; }
.meta-row { display: flex; gap: 8px; }
.area-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--area-color); font-size: 12px; font-weight: 750; }
.area-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.current-summary { max-width: 890px; margin-top: 22px; padding: 15px 17px; border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; background: rgba(230,236,231,.65); }
.current-summary span { display: block; margin-bottom: 4px; color: var(--accent-dark); font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.current-summary p { margin: 0; }
.matter-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 24px; }
.matter-stats > div { padding: 12px 15px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.65); }
.matter-stats small, .matter-stats strong { display: block; }
.matter-stats small { color: var(--faint); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.matter-stats strong { margin-top: 3px; font-size: 13px; }
.matter-section { margin-bottom: 24px; padding: 23px; }
.matter-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 24px; align-items: start; }
.compact-section { padding: 20px; }
.complete-with-outcome { display: flex; gap: 7px; }
.complete-with-outcome input { width: 170px; padding: 7px 9px; font-size: 12px; }
.inline-empty { display: flex; align-items: center; gap: 13px; padding: 20px; border-radius: 12px; color: var(--muted); background: var(--soft); }
.inline-empty > span { color: var(--accent); font-size: 23px; }
.inline-empty strong { color: var(--ink); }
.inline-empty p { margin: 2px 0 0; font-size: 12px; }
.timeline { display: grid; }
.timeline-item { display: grid; grid-template-columns: 52px 14px minmax(0, 1fr); gap: 12px; min-height: 95px; }
.timeline-date { padding-top: 4px; color: #66655f; font-size: 12px; font-weight: 700; text-align: right; }
.timeline-date small { display: block; color: var(--faint); font-size: 10px; font-weight: 400; }
.timeline-marker { position: relative; }
.timeline-marker::before { content: ""; position: absolute; top: 9px; left: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.timeline-marker::after { content: ""; position: absolute; top: 19px; bottom: -8px; left: 7px; width: 1px; background: var(--line); }
.timeline-item:last-child .timeline-marker::after { display: none; }
.timeline-content { padding: 0 0 25px; }
.timeline-content h3 { font-size: 14px; }
.timeline-content p { color: #5e5d58; font-size: 13px; }
.timeline-content small { color: var(--faint); }
.timeline-entry-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 3px; }
.entry-type { color: var(--accent); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.entry-status { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; font-size: 9px; font-weight: 750; letter-spacing: .05em; line-height: 1.3; text-transform: uppercase; }
.entry-status-completed { color: #3f6d52; background: #e3eee7; }
.entry-status-cancelled { color: #6d6259; background: #ece8e4; }
.preserve-lines { white-space: pre-wrap; }
.outcome { padding: 9px 11px; border-radius: 9px; background: var(--accent-soft); }
.file-chip { display: inline-flex; margin-top: 7px; }
.commitment-card { border-bottom: 1px solid var(--line); }
.commitment-card:last-child { border-bottom: 0; }
.commitment-card summary { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 13px 0; cursor: pointer; list-style: none; }
.commitment-card summary::-webkit-details-marker { display: none; }
.commitment-card summary strong, .commitment-card summary em { display: block; }
.commitment-card summary em { color: var(--muted); font-size: 12px; font-style: normal; }
.commitment-date { text-align: right; font-size: 12px; font-weight: 650; }
.commitment-date small { display: block; color: var(--faint); font-weight: 400; }
.commitment-detail { margin-bottom: 13px; padding: 14px; border-radius: 11px; background: var(--soft); }
.history-list { margin: 12px 0; padding: 10px 12px; border-radius: 9px; background: #fff; }
.history-list p { margin: 5px 0; font-size: 11px; }
.history-list span { display: block; color: var(--muted); }
.inline-form { display: flex; align-items: end; gap: 8px; flex-wrap: wrap; }
.inline-form label { min-width: 130px; }
.inline-form .grow { flex: 1; }
.avatar { display: inline-grid; place-items: center; flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font-size: 12px; font-weight: 750; }
.people-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.people-chips a { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px 5px 5px; border: 1px solid var(--line); border-radius: 99px; font-size: 12px; }
.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 70;
    width: min(520px, 94vw);
    height: 100vh;
    overflow: auto;
    padding: 27px;
    border: 0;
    border-left: 1px solid var(--line);
    background: var(--paper);
    box-shadow: none;
    transform: translateX(105%);
    transition: transform .22s ease;
}
.slide-panel.open {
    box-shadow: -20px 0 55px rgba(30,30,25,.13);
    transform: translateX(0);
}
.panel-header { display: flex; justify-content: space-between; margin-bottom: 25px; }
.panel-backdrop { position: fixed; inset: 0; z-index: 60; visibility: hidden; opacity: 0; background: rgba(34,34,31,.25); transition: .2s; }
.panel-backdrop.open { visibility: visible; opacity: 1; }
.entry-form { gap: 19px; }
.entry-kind-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.entry-kind-picker legend { margin-bottom: 10px; color: #55544f; font-size: 13px; font-weight: 700; }
.entry-kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.entry-kind-card {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    min-height: 68px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #4e4d48;
    background: #fff;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
}
.entry-kind-card:hover { border-color: #bfc9c1; background: #fbfcfa; }
.entry-kind-card:focus-visible { outline: 2px solid #92a398; outline-offset: 2px; }
.entry-kind-card.is-selected { border-color: #84998a; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(111,135,117,.16); }
.entry-kind-card > .material-symbols-rounded { color: var(--accent); font-size: 22px; }
.entry-kind-card strong, .entry-kind-card small { display: block; }
.entry-kind-card strong { margin-bottom: 2px; color: var(--ink); font-size: 13px; }
.entry-kind-card small { color: var(--muted); font-size: 10px; font-weight: 450; line-height: 1.28; }
.entry-guidance { margin: -2px 0 1px; padding: 10px 12px; border-radius: 10px; color: #526057; background: var(--accent-soft); font-size: 12px; }
.field-hint { display: block; margin: 3px 0 7px; color: var(--faint); font-size: 10px; font-weight: 450; line-height: 1.35; }
.entry-return-toggle {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    cursor: pointer;
}
.entry-return-toggle input { width: auto; margin-top: 3px; }
.entry-return-toggle strong, .entry-return-toggle small { display: block; }
.entry-return-toggle strong { color: var(--ink); font-size: 12px; }
.entry-return-toggle small { margin-top: 2px; color: var(--muted); font-size: 10px; font-weight: 450; }
.entry-supporting, .entry-advanced { border-top: 1px solid var(--line); }
.entry-supporting summary, .entry-advanced summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 2px 0;
    cursor: pointer;
    list-style: none;
}
.entry-supporting summary::-webkit-details-marker, .entry-advanced summary::-webkit-details-marker { display: none; }
.entry-supporting summary strong, .entry-supporting summary small, .entry-advanced summary strong, .entry-advanced summary small { display: block; }
.entry-supporting summary strong, .entry-advanced summary strong { color: #55544f; font-size: 12px; }
.entry-supporting summary small, .entry-advanced summary small { margin-top: 1px; color: var(--faint); font-size: 10px; font-weight: 450; }
.entry-supporting summary > .material-symbols-rounded, .entry-advanced summary > .material-symbols-rounded { color: var(--faint); font-size: 20px; transition: transform .15s; }
.entry-supporting[open] summary > .material-symbols-rounded, .entry-advanced[open] summary > .material-symbols-rounded { transform: rotate(180deg); }
.entry-supporting-content, .entry-advanced-content { display: grid; gap: 13px; padding: 15px 2px 2px; }
.entry-advanced-content { padding: 13px; border-radius: 11px; background: var(--soft); }
.entry-supporting .file-drop { margin-top: 0; }
.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--faint); background: #faf9f6; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
td { font-size: 13px; }
td small { display: block; color: var(--faint); }
td a:hover { color: var(--accent); }
.commitments-table tbody tr { transition: background .15s ease; }
.commitments-table tbody tr:hover { background: #fbfcfa; }
.commitment-primary-link, .commitment-matter-link { display: block; }
.commitment-primary-link strong, .commitment-matter-link strong { display: block; font-weight: 650; }
.commitment-primary-link small { margin-top: 3px; color: var(--accent); font-size: 10px; font-weight: 650; }
.commitment-matter-link small { margin-top: 2px; }
.commitment-open-button {
    display: inline-grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--accent);
    background: #fff;
    font-size: 18px;
}
.commitment-open-button:hover { border-color: #bac7bd; background: var(--accent-soft); }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.person-card { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 13px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--paper); }
.person-card:hover { border-color: #c9c6bb; box-shadow: 0 8px 20px rgba(35,35,31,.06); }
.avatar-large { width: 43px; height: 43px; font-size: 15px; }
.person-card strong, .person-card span, .person-card small { display: block; }
.person-card span { color: #66655f; font-size: 12px; }
.person-card small { color: var(--faint); }
.person-card dl { grid-column: 1 / -1; display: flex; gap: 12px; margin: 7px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.person-card dl div { display: flex; gap: 6px; }
.person-card dt { color: var(--faint); font-size: 11px; }
.person-card dd { margin: 0; font-size: 11px; font-weight: 750; }
.person-header { display: flex; align-items: center; gap: 18px; margin-bottom: 30px; }
.avatar-hero { width: 66px; height: 66px; font-size: 24px; }
.person-layout { display: grid; grid-template-columns: 1.2fr .9fr .9fr; gap: 20px; align-items: start; }
.search-form { display: flex; gap: 10px; max-width: 820px; margin-bottom: 25px; }
.search-form input { min-height: 52px; font-size: 17px; }
.search-summary { color: var(--muted); }
.search-results { max-width: 920px; }
.area-manager-layout { display: grid; grid-template-columns: minmax(275px, 340px) minmax(0, 1fr); gap: 25px; align-items: start; }
.area-create-card { position: sticky; top: 30px; padding: 23px; }
.area-form-row { display: grid; grid-template-columns: 1.2fr .8fr; gap: 12px; }
.color-control > span { display: flex; align-items: center; gap: 9px; min-height: 43px; }
.color-control input[type="color"] { flex: 0 0 46px; width: 46px; height: 40px; padding: 3px; cursor: pointer; }
.color-control code { color: var(--muted); font-size: 11px; }
.area-admin-list { display: grid; gap: 13px; }
.area-admin-form { min-width: 0; }
.area-admin-card { padding: 21px 22px 14px; }
.area-admin-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; margin-bottom: 18px; }
.area-admin-heading h2 { font-size: 18px; }
.area-admin-heading p { margin: 1px 0 0; color: var(--faint); font-size: 11px; }
.area-color-preview { width: 29px; height: 29px; border-radius: 9px; background: var(--area-color); box-shadow: inset 0 0 0 1px rgba(0,0,0,.07); }
.area-edit-grid { display: grid; grid-template-columns: minmax(180px, 1fr) 150px 85px; gap: 12px; }
.area-description-field { grid-column: 1 / -1; }
.area-card-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; }
.area-card-actions .check-row { margin-right: auto; }
.area-danger-zone { margin: 15px -22px -14px; padding: 11px 22px; border-top: 1px solid var(--line); color: var(--faint); background: #fbfaf7; font-size: 10px; }
.area-danger-zone form { margin: 0; }
.danger-link { color: var(--danger); }
.danger-link:hover { text-decoration: underline; }
.area-bulk-save {
    position: sticky;
    bottom: 18px;
    z-index: 15;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 16px;
    padding: 14px 15px 14px 19px;
    border: 1px solid #d8d6cd;
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 14px 38px rgba(35,35,30,.14);
    backdrop-filter: blur(12px);
}
.area-bulk-save strong, .area-bulk-save small { display: block; }
.area-bulk-save strong { font-size: 13px; }
.area-bulk-save small { color: var(--faint); font-size: 11px; }
.area-bulk-save.is-dirty { border-color: #b9c6bc; box-shadow: 0 14px 40px rgba(61,79,66,.17); }
.button:disabled { cursor: default; opacity: .45; transform: none; box-shadow: none; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 30% 10%, #edf0ea, transparent 35%), var(--canvas); }
.login-card { width: min(430px, 100%); padding: 38px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: var(--shadow); }
.login-brand { margin-bottom: 34px; }
.brand-logo-login { width: 236px; max-width: 80%; }
.login-card h1 { font-size: 34px; }
.login-card .lede { margin-bottom: 27px; }
.quick-add-dialog { width: min(660px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--line); border-radius: 21px; background: var(--paper); box-shadow: 0 25px 80px rgba(25,25,21,.24); }
.quick-add-dialog::backdrop { background: rgba(35,35,31,.3); backdrop-filter: blur(3px); }
.quick-add-dialog form { padding: 25px; }
.dialog-header { display: flex; justify-content: space-between; margin-bottom: 18px; }
.dialog-header h2 { font-size: 24px; }
.file-drop { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding: 12px; border: 1px dashed #ccc9be; border-radius: 11px; cursor: pointer; }
.file-drop input { width: auto; border: 0; padding: 0; }
.file-drop small { width: 100%; color: var(--faint); font-weight: 400; }
.dialog-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; }
.muted { color: var(--muted) !important; }
.dialog-actions .muted { font-size: 11px; }
nav[role="navigation"] { margin-top: 22px; }

@media (max-width: 1050px) {
    .attention-layout, .process-layout, .matter-grid, .area-manager-layout, .account-layout { grid-template-columns: 1fr; }
    .attention-aside, .source-card, .area-create-card { position: static; }
    .person-layout { grid-template-columns: 1fr 1fr; }
    .account-layout { max-width: 760px; }
}

@media (max-width: 780px) {
    .app-shell { display: block; }
    .sidebar { position: fixed; transform: translateX(-105%); transition: transform .2s; width: var(--sidebar); box-shadow: 15px 0 50px rgba(25,25,22,.18); }
    .sidebar.open { transform: translateX(0); }
    .main-content { padding: 28px 17px 60px; }
    .mobile-menu { display: inline-grid; place-items: center; width: 38px; height: 38px; margin-bottom: 21px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
    .page-header, .matter-title-row { display: grid; }
    .attention-card { grid-template-columns: minmax(0, 1fr) auto; }
    .quick-complete, .complete-with-outcome { grid-column: 1 / -1; }
    .complete-with-outcome input { width: 100%; }
    .matter-row { grid-template-columns: auto minmax(0, 1fr) auto; }
    .matter-row .pill, .matter-next { grid-column: 2; text-align: left; }
    .matter-row .chevron { grid-column: 3; grid-row: 1 / 3; }
    .matter-stats { grid-template-columns: 1fr 1fr; }
    .person-layout { grid-template-columns: 1fr; }
    .filter-bar { align-items: stretch; flex-direction: column; }
    .two-fields { grid-template-columns: 1fr; }
    .process-form { padding-inline: 18px; }
    .process-form > section { grid-template-columns: 30px minmax(0, 1fr); }
    .inline-form { display: grid; }
    .area-edit-grid { grid-template-columns: 1fr; }
    .area-description-field { grid-column: auto; }
    .area-bulk-save { align-items: stretch; flex-direction: column; }
    .dialog-actions { align-items: stretch; flex-direction: column; }
}

/* Personal assistant interface */
:root {
    --canvas: #f7f7f4;
    --soft: #f2f2ee;
    --accent: #667b6e;
    --accent-dark: #43564a;
    --accent-soft: #e8eee9;
    --sidebar: 264px;
}

.material-symbols-rounded {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    font-family: "Material Symbols Rounded";
    font-size: 21px;
    font-style: normal;
    font-weight: normal;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    vertical-align: middle;
    -webkit-font-feature-settings: "liga";
    -webkit-font-smoothing: antialiased;
}
.mobile-menu.material-symbols-rounded { display: none; }

.sidebar {
    padding: 28px 20px 20px;
    background: #eff0ed;
    border-right-color: #e1e2dd;
}
.sidebar-development {
    background: linear-gradient(180deg, #e4edf4 0%, #edf2f5 58%, #e7eef2 100%);
    border-right-color: #c7d4de;
    box-shadow: inset -1px 0 rgba(67, 99, 123, .06);
}
.sidebar-development .quick-add-trigger { box-shadow: 0 4px 13px rgba(55, 82, 102, .13); }
.sidebar-development .sidebar-footer { border-top-color: #ccd7de; }
.brand-logo { width: 152px; }
.login-brand .brand-logo { width: 236px; max-width: 80%; }
.quick-add-trigger { margin: 27px 0 22px; }
.quick-add-trigger > .material-symbols-rounded { font-size: 21px; }
.primary-nav a {
    min-height: 43px;
    padding: 9px 12px;
    border-radius: 11px;
    color: #565854;
    font-size: 14px;
    font-weight: 590;
}
.primary-nav a > span { width: 22px; color: #7c7f79; }
.primary-nav a > .material-symbols-rounded { font-size: 21px; }
.primary-nav a.active { box-shadow: 0 2px 7px rgba(28,28,24,.07); }
.primary-nav a.active > span { color: var(--accent-dark); }
.sidebar-label, .sidebar-section-heading {
    margin: 27px 12px 8px;
    color: #969994;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .11em;
}
.area-nav a { min-height: 35px; padding-block: 6px; font-size: 13px; font-weight: 560; }
.main-content { max-width: 1420px; padding: 52px clamp(32px, 4vw, 68px) 80px; }
.page-header { margin-bottom: 34px; }
.button { border-radius: 11px; }
.button > .material-symbols-rounded { font-size: 19px; }
.card, .soft-card, .matter-section, .table-card, .source-card { box-shadow: 0 2px 9px rgba(30,30,25,.025); }
.soft-card { padding: 21px; background: rgba(255,255,255,.82); }

.attention-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.attention-card { min-height: 88px; padding: 14px 16px; }
.attention-card-main strong { margin-bottom: 3px; }
.attention-card-main small { margin-top: 7px; }
.attention-meta { display: flex !important; align-items: center; gap: 5px; min-height: 21px; }
.area-chip {
    display: inline-flex !important;
    align-items: center;
    width: fit-content;
    min-height: 21px;
    margin: 0;
    padding: 2px 8px;
    border: 1px solid color-mix(in srgb, var(--area-color) 32%, #ddd);
    border-radius: 999px;
    color: color-mix(in srgb, var(--area-color) 78%, #222);
    background: color-mix(in srgb, var(--area-color) 10%, #fff);
    font-size: 10px;
    font-weight: 720;
    line-height: 1.2;
}
.quick-complete .icon-button { font-size: 18px; }

.content-toolbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 36px;
    margin: -12px 0 18px;
}
.content-toolbar p { margin: 0 auto 0 0; color: var(--faint); font-size: 12px; }
.filter-menu { position: relative; z-index: 20; }
.filter-menu > summary { list-style: none; }
.filter-menu > summary::-webkit-details-marker { display: none; }
.filter-trigger { min-height: 34px; border-color: transparent; color: #646660; background: transparent; }
.filter-trigger:hover, .filter-menu[open] .filter-trigger { border-color: var(--line); background: var(--paper); }
.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    color: #fff;
    background: var(--accent);
    font-size: 10px;
}
.filter-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 30;
    width: min(390px, calc(100vw - 38px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 20px 55px rgba(31,32,28,.16);
}
.filter-popover fieldset { margin: 0 0 17px; padding: 0; border: 0; }
.filter-popover legend { margin-bottom: 8px; color: #6e706b; font-size: 11px; font-weight: 720; }
.choice-chips { display: flex; gap: 6px; }
.choice-chips-wrap { flex-wrap: wrap; }
.choice-chips label { display: block; cursor: pointer; }
.choice-chips input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.choice-chips label span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 33px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: #656760;
    background: #fafaf8;
    font-size: 12px;
    font-weight: 620;
}
.choice-chips label span i { width: 8px; height: 8px; border-radius: 50%; background: var(--area-color); }
.choice-chips input:checked + span {
    color: var(--accent-dark);
    border-color: #b9c7bd;
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px rgba(70,91,76,.04);
}
.choice-chips input:focus-visible + span { outline: 2px solid #92a398; outline-offset: 2px; }
.area-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 9px; color: #656760; background: #fafaf8; font-size: 12px; font-weight: 620; }
.area-choice:hover { color: var(--accent-dark); border-color: #b9c7bd; }
.area-choice.is-selected { color: var(--accent-dark); border-color: #b9c7bd; background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(70,91,76,.04); }
.area-choice:focus-visible { outline: 2px solid #92a398; outline-offset: 2px; }
.area-choice i { width: 8px; height: 8px; border-radius: 50%; background: var(--area-color); }
.area-picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.area-picker legend { margin-bottom: 8px; color: #4f4e49; font-size: 13px; font-weight: 650; }
.area-picker legend .optional { color: var(--faint); font-weight: 400; }
.area-picker .field-hint { margin-top: 8px; }
.filter-clear { color: var(--accent-dark); font-size: 11px; font-weight: 680; }
.filter-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding-top: 4px; }
.popover-check { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin-bottom: 15px; font-weight: 540; }
.popover-check input { width: auto; }
.matter-filter-popover { width: min(430px, calc(100vw - 38px)); }

.matter-row { grid-template-columns: minmax(0, 1fr) auto 110px auto; padding: 18px 19px; }
.matter-row-main small { display: block; margin-top: 8px; }
.chevron.material-symbols-rounded { color: #aaada7; font-size: 23px; }

.inbox-icon.material-symbols-rounded { font-size: 20px; }
.source-delete .material-symbols-rounded { font-size: 28px; }
.attachment-list .material-symbols-rounded, .file-chip .material-symbols-rounded { font-size: 17px; }
.inbox-item, .matter-row, .person-card { transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.inbox-item:hover, .matter-row:hover, .person-card:hover { transform: translateY(-1px); }
.section-heading h2 { font-weight: 690; }
.table-card { background: rgba(255,255,255,.9); }
th { background: #f9f9f6; }
.form-card { box-shadow: 0 8px 28px rgba(35,35,30,.045); }

@media (max-width: 1050px) {
    .attention-layout { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
    .main-content { padding: 28px 17px 60px; }
    .mobile-menu.material-symbols-rounded { display: inline-grid; }
    .page-header { gap: 18px; margin-bottom: 22px; }
    .page-header > .button { width: fit-content; }
    .content-toolbar { margin-top: -8px; }
    .content-toolbar p { display: none; }
    .matter-library-controls { align-items: stretch; justify-content: flex-start; flex-direction: column; }
    .matter-library-controls .commitment-view-filter { width: fit-content; }
    .filter-popover { position: fixed; top: 78px; right: 17px; left: 17px; width: auto; }
    .attention-card { grid-template-columns: minmax(0, 1fr) auto auto; }
    .quick-complete { grid-column: auto; }
    .complete-with-outcome { grid-column: 1 / -1; }
    .matter-row { grid-template-columns: minmax(0, 1fr) auto; }
    .matter-row .pill, .matter-next { grid-column: 1; }
    .matter-row .chevron { grid-column: 2; grid-row: 1 / 4; }
}

/* Meetings */
.page-actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; flex-wrap: wrap; }
.page-actions form { display: inline-flex; }
.meeting-start-options { margin-top: 14px; border-top: 1px solid var(--line); }
.meeting-start-options summary, .external-agenda-in-mode summary {
    padding: 13px 2px;
    color: var(--accent-dark);
    cursor: pointer;
    font-size: 12px;
    font-weight: 680;
}
.meeting-start-options .stack { padding-top: 5px; }
.meeting-index-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; }
.meeting-index-grid aside { position: sticky; top: 28px; }
.meeting-list { display: grid; gap: 9px; }
.meeting-row {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto auto;
    gap: 15px;
    align-items: center;
    min-height: 78px;
    padding: 12px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    transition: .15s ease;
}
.meeting-row:hover { transform: translateY(-1px); border-color: #c8ccc6; box-shadow: 0 8px 24px rgba(35,35,31,.06); }
.meeting-row > span:nth-child(2) strong, .meeting-row > span:nth-child(2) small { display: block; }
.meeting-row > span:nth-child(2) strong { margin-bottom: 3px; font-size: 14px; }
.meeting-row > span:nth-child(2) small { color: var(--muted); font-size: 11px; }
.meeting-row-live { border-color: #bfd0c4; background: #fbfdfb; }
.meeting-row.is-overdue { border-left: 3px solid #bd695f; background: linear-gradient(90deg, #f5d7d0 0, #fae5df 18%, #fff5f2 38%, var(--paper) 62%); }
.meeting-row.is-overdue .meeting-date-tile { color: #91443c; background: #f2d5cf; }
.meeting-row.is-due-today { border-left: 3px solid #6e9f4d; background: linear-gradient(90deg, #d8ebcd 0, #e7f3df 18%, #f5faef 38%, var(--paper) 62%); }
.meeting-row.is-due-today .meeting-date-tile { background: #d4e9ca; }
.meeting-date-tile {
    display: grid;
    place-items: center;
    align-content: center;
    width: 43px;
    height: 48px;
    border-radius: 11px;
    color: var(--accent-dark);
    background: var(--accent-soft);
    line-height: 1;
}
.meeting-date-tile b { font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.meeting-date-tile strong { margin-top: 3px; font-size: 20px; }
.live-pill { color: #41634a; border-color: #bcd4c1; background: #edf7ef; }
.participant-stack { display: flex; padding-left: 12px; }
.participant-stack i {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    margin-left: -9px;
    border: 2px solid #fff;
    border-radius: 50%;
    color: var(--accent-dark);
    background: var(--accent-soft);
    font-size: 9px;
    font-style: normal;
    font-weight: 750;
}
.compact-meeting-row { min-height: 66px; grid-template-columns: 30px minmax(0,1fr) auto auto; }
.process-queue-card p { color: var(--muted); font-size: 12px; }

.meeting-header { margin: -4px 0 31px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.meeting-title-line { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; }
.meeting-title-line h1 { margin: 12px 0 6px; }
.meeting-meta-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; margin-top: 24px; }
.meeting-meta-strip > div {
    display: grid;
    grid-template-columns: 27px auto;
    grid-template-rows: auto auto;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.68);
}
.meeting-meta-strip .material-symbols-rounded { grid-row: 1 / 3; color: var(--accent); }
.meeting-meta-strip strong { font-size: 14px; }
.meeting-meta-strip small { color: var(--faint); font-size: 10px; }
.meeting-prep-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.meeting-prep-aside { display: grid; gap: 16px; position: sticky; top: 28px; }
.compact-empty { padding-block: 45px; }
.agenda-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: agenda; }
.agenda-item {
    display: grid;
    grid-template-columns: 25px 29px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: start;
    padding: 16px 13px 15px 7px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}
.agenda-item.is-dragging { opacity: .55; border-color: var(--accent); box-shadow: var(--shadow); }
.drag-handle { padding-top: 2px; color: #b0b0a8; cursor: grab; }
.drag-handle:active { cursor: grabbing; }
.agenda-number { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; color: var(--accent-dark); background: var(--accent-soft); font-size: 11px; font-weight: 750; }
.agenda-item-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.agenda-item-title strong { font-size: 14px; }
.agenda-item-title > .muted { font-size: 10px; }
.agenda-item-main > p { margin: 3px 0 7px; color: var(--muted); font-size: 12px; }
.agenda-section { margin-top: 11px; padding-block: 11px; border-style: dashed; background: #f5f5f1; }
.agenda-section .agenda-item-title strong { color: #6d6e68; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; }
.private-badge { display: inline-flex; align-items: center; gap: 3px; color: #7d6651; font-size: 9px; font-weight: 700; }
.private-badge .material-symbols-rounded { font-size: 13px; }
.source-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.source-chips a, .source-chips > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 23px;
    padding: 3px 7px;
    border-radius: 99px;
    color: #5f665f;
    background: #f1f4f1;
    font-size: 9px;
    font-weight: 650;
}
.source-chips .material-symbols-rounded { font-size: 13px; }
.private-prep { display: flex; gap: 8px; margin-top: 10px; padding: 9px 10px; border-radius: 9px; color: #675c50; background: #faf6ee; }
.private-prep > .material-symbols-rounded { font-size: 16px; }
.private-prep small { display: block; color: #8d7a62; font-size: 9px; font-weight: 750; text-transform: uppercase; }
.private-prep p { margin: 2px 0 0; font-size: 11px; }
.agenda-item-actions { display: flex; align-items: flex-start; gap: 2px; }
.compact-menu { position: relative; }
.compact-menu > summary { list-style: none; }
.compact-menu > summary::-webkit-details-marker { display: none; }
.compact-menu > summary.icon-button { position: relative; display: block; padding: 0; }
.compact-menu > summary.icon-button > .material-symbols-rounded { position: absolute; top: 50%; left: 50%; width: 21px; height: 21px; font-size: 21px; line-height: 21px; text-align: center; transform: translate(-50%, -50%); }
.compact-menu > div {
    position: absolute;
    top: 36px;
    right: 0;
    z-index: 20;
    width: 145px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    box-shadow: var(--shadow);
}
.compact-menu form { margin: 0; }
.compact-menu button { width: 100%; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; text-align: left; cursor: pointer; font-size: 11px; }
.compact-menu button:hover { background: var(--soft); }
.danger-text { color: var(--danger) !important; }
.drag-save-state { margin: 9px 2px 0; font-size: 10px; }
.participant-list { display: grid; }
.participant-list a { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.participant-list a:last-child { border: 0; }
.participant-list strong, .participant-list small { display: block; }
.participant-list strong { font-size: 12px; }
.participant-list small { color: var(--faint); font-size: 10px; }
.source-agenda { max-height: 310px; overflow: auto; margin-top: 8px; padding: 12px; border-radius: 9px; color: #5f5e59; background: var(--soft); font-size: 11px; }
.wide-panel { width: min(680px, 96vw); }
.agenda-add-tabs { display: flex; gap: 4px; margin-bottom: 18px; padding: 4px; border-radius: 11px; background: var(--soft); }
.agenda-add-tabs button { flex: 1; padding: 8px 10px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; font-size: 12px; font-weight: 650; }
.agenda-add-tabs button.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(35,35,30,.06); }
.source-search { margin-bottom: 10px; }
.source-filter-chips { display: flex; gap: 5px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 3px; }
.source-filter-chips button { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); background: #fff; cursor: pointer; font-size: 10px; }
.source-filter-chips button.is-active { color: #fff; border-color: var(--accent); background: var(--accent); }
.agenda-source-results { display: grid; gap: 5px; max-height: 54vh; overflow: auto; padding-right: 3px; }
.agenda-source-result {
    display: grid;
    grid-template-columns: 20px 25px minmax(0,1fr);
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.agenda-source-result:hover { border-color: #bec9c1; background: #fbfcfa; }
.agenda-source-result input { width: auto; }
.agenda-source-result > .material-symbols-rounded { color: var(--accent); font-size: 19px; }
.agenda-source-result strong, .agenda-source-result small { display: block; }
.agenda-source-result strong { font-size: 11px; }
.agenda-source-result small { color: var(--faint); font-size: 9px; }
.completed-topic { padding: 15px 0; border-top: 1px solid var(--line); }
.completed-topic > p { margin: 5px 0; color: var(--muted); font-size: 12px; }
.meeting-record-notes { margin-bottom: 17px; }
.processing-link-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.processing-link-row .material-symbols-rounded { color: var(--accent); }
.processing-link-row p { margin: 2px 0; color: var(--muted); font-size: 11px; }

.participant-agenda { max-width: 790px; margin: 0 auto; padding: 55px 65px; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.participant-agenda > header { padding-bottom: 25px; border-bottom: 2px solid var(--ink); }
.participant-agenda > header p { margin-bottom: 7px; color: #555; font-size: 13px; }
.shared-agenda-items { margin-top: 28px; }
.shared-agenda-items > h2 { margin: 30px 0 12px; padding-bottom: 6px; border-bottom: 1px solid #bbb; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.shared-agenda-items > section { display: grid; grid-template-columns: 31px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e5e5e5; }
.shared-agenda-items > section > span { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--accent-soft); font-size: 11px; font-weight: 750; }
.shared-agenda-items h3 { display: flex; justify-content: space-between; gap: 15px; margin: 2px 0 4px; font-size: 15px; }
.shared-agenda-items h3 small { color: #888; font-size: 10px; font-weight: 500; }
.shared-agenda-items p { margin: 0; color: #555; font-size: 12px; }
.visually-hidden { position: fixed !important; left: -10000px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.copy-toast { position: fixed; right: 30px; bottom: 30px; z-index: 100; padding: 10px 15px; border-radius: 99px; color: #fff; background: var(--accent-dark); opacity: 0; transform: translateY(10px); transition: .2s; pointer-events: none; }
.copy-toast.show { opacity: 1; transform: none; }

.meeting-mode { margin: -52px calc(clamp(32px, 4vw, 68px) * -1) -80px; min-height: 100vh; background: #f8f8f5; }
.meeting-mode-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 105px; padding: 20px 30px; border-bottom: 1px solid var(--line); background: #fff; }
.meeting-mode-header h1 { margin-bottom: 3px; font-size: 25px; }
.meeting-mode-header p { margin-bottom: 0; color: var(--muted); font-size: 11px; }
.live-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #5e976b; box-shadow: 0 0 0 4px #e5f2e7; }
.autosave-state { color: var(--faint); font-size: 10px; }
.meeting-mode-grid { display: grid; grid-template-columns: 235px minmax(460px, 1fr) 300px; min-height: calc(100vh - 105px); }
.meeting-topic-nav { padding: 19px 12px; border-right: 1px solid var(--line); background: #f0f1ed; }
.meeting-topic-link { display: grid; grid-template-columns: 22px minmax(0,1fr); gap: 8px; align-items: center; width: 100%; margin-bottom: 4px; padding: 9px 10px; border: 0; border-radius: 9px; color: #555750; background: transparent; text-align: left; cursor: pointer; }
.meeting-topic-link:hover, .meeting-topic-link.is-active { color: var(--ink); background: #fff; box-shadow: 0 2px 6px rgba(30,30,25,.05); }
.meeting-topic-link strong, .meeting-topic-link small { display: block; }
.meeting-topic-link strong { overflow: hidden; text-overflow: ellipsis; font-size: 11px; white-space: nowrap; }
.meeting-topic-link small { color: var(--faint); font-size: 9px; }
.meeting-topic-link .material-symbols-rounded { color: var(--accent); font-size: 18px; }
.topic-status-dot { width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: #a8aaa4; }
.topic-status-dot.discussed { background: #61916b; }
.topic-status-dot.deferred { background: #c99b4f; }
.meeting-topic-section { margin: 17px 10px 6px; color: #92948e; font-size: 9px; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.new-topic-mode { width: 100%; margin-top: 8px; justify-content: flex-start; font-size: 11px; }
.meeting-notes-workspace { min-width: 0; padding: 27px 32px; background: #fff; }
.meeting-note-panel { display: none; }
.meeting-note-panel.is-active { display: block; }
.meeting-note-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 19px; }
.meeting-note-heading h2 { font-size: 23px; }
.meeting-note-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.meeting-note-heading select { width: 135px; min-height: 37px; padding-block: 7px; font-size: 11px; }
.meeting-notes-area { min-height: 310px; border-color: transparent; border-radius: 6px; padding: 17px; background: #fafaf8; font-size: 14px; line-height: 1.7; }
.meeting-notes-area:focus { border-color: #ccd5ce; background: #fff; }
.meeting-note-label { margin-top: 17px; }
.meeting-note-label .meeting-notes-area { margin-top: 3px; }
.mode-topic-actions { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 17px; }
.mode-topic-actions > .muted { max-width: 430px; font-size: 10px; text-align: right; }
.private-prep.prominent { margin: 0 0 15px; }
.meeting-context-panel { padding: 23px 19px; border-left: 1px solid var(--line); background: #f5f5f2; }
.context-help { margin-top: 23px; color: var(--muted); font-size: 11px; }
.mode-matter-context { margin-bottom: 17px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mode-matter-context h2 { margin: 6px 0; font-size: 15px; }
.mode-matter-context > p { color: var(--muted); font-size: 11px; }
.mode-matter-context h3 { margin: 14px 0 5px; color: #777970; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.context-item { display: grid; padding: 7px 0; border-top: 1px solid var(--line); font-size: 10px; }
.context-item small, .context-item span { color: var(--muted); }

.processing-layout { display: grid; grid-template-columns: minmax(0,1fr) 315px; gap: 25px; align-items: start; padding-bottom: 90px; }
.processing-topics { display: grid; gap: 13px; }
.processing-topic { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.processing-topic > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.processing-topic > header h2 { margin-top: 8px; }
.processing-topic > header > a { color: var(--accent); font-size: 10px; font-weight: 700; }
.processing-topic > details { margin-bottom: 15px; padding: 10px 12px; border-radius: 9px; background: var(--soft); }
.processing-topic > details summary { cursor: pointer; font-size: 10px; font-weight: 700; }
.processing-topic > details p { margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.capture-review-section .section-heading { margin-bottom: 12px; }
.capture-review-section .section-heading .muted { margin: 4px 0 0; font-size: 12px; }
.capture-review { padding: 12px 0; border-top: 1px solid var(--line); }
.capture-review:first-of-type { border-top: 0; }
.capture-review details { margin: 8px 0 0 30px; }
.capture-review summary { cursor: pointer; color: var(--accent-dark); font-size: 11px; font-weight: 700; }
.capture-refinement-fields { display: grid; gap: 10px; margin-top: 9px; padding: 12px; border-radius: 10px; background: var(--soft); }
.processing-choice-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 13px; }
.processing-choice { display: grid; place-items: center; gap: 4px; min-height: 66px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; text-align: center; cursor: pointer; font-size: 9px; }
.processing-choice input { position: absolute; opacity: 0; pointer-events: none; }
.processing-choice .material-symbols-rounded { color: var(--accent); font-size: 20px; }
.processing-choice:has(input:checked) { color: var(--accent-dark); border-color: #9fb0a3; background: var(--accent-soft); box-shadow: inset 0 0 0 1px #d1ddd4; }
.processing-fields { display: grid; gap: 11px; margin-top: 13px; padding: 14px; border-radius: 11px; background: var(--soft); }
.processing-status { max-width: 180px; margin-top: 13px; }
.processing-notes-aside { position: sticky; top: 24px; }
.processing-original-notes { max-height: 64vh; overflow: auto; margin-top: 13px; padding: 13px; border-radius: 9px; color: var(--muted); background: var(--soft); font-size: 11px; }
.processing-save-bar { position: fixed; right: 0; bottom: 0; left: var(--sidebar); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 73px; padding: 12px clamp(28px, 4vw, 64px); border-top: 1px solid var(--line); background: rgba(255,255,255,.94); backdrop-filter: blur(15px); box-shadow: 0 -8px 30px rgba(35,35,30,.06); }
.processing-save-bar > span { color: var(--muted); font-size: 11px; }
.processing-save-bar > div { display: flex; gap: 8px; }
.mode-capture-list { display: grid; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.mode-capture-list > small { color: var(--faint); font-size: 10px; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.mode-capture-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 9px; background: var(--soft); }
.mode-capture-row span { min-width: 0; }
.mode-capture-row strong, .mode-capture-row em { display: block; }
.mode-capture-row strong { font-size: 12px; }
.mode-capture-row em { margin-top: 2px; color: var(--faint); font-size: 10px; font-style: normal; }
.mode-capture-row > div { display: flex; align-items: center; gap: 2px; }
.mode-capture-row form { display: flex; margin: 0; }
.capture-kind-picker { margin: 0; padding: 0; border: 0; }
.capture-kind-picker legend { margin-bottom: 8px; color: #4f4e49; font-size: 13px; font-weight: 650; }
.capture-kind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.capture-kind-choice { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; align-items: start; min-height: 70px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.capture-kind-choice input { position: absolute; opacity: 0; pointer-events: none; }
.capture-kind-choice .material-symbols-rounded { color: var(--accent); font-size: 20px; }
.capture-kind-choice strong, .capture-kind-choice small { display: block; }
.capture-kind-choice strong { font-size: 12px; }
.capture-kind-choice small { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.25; }
.capture-kind-choice:has(input:checked) { border-color: #9fb0a3; background: var(--accent-soft); box-shadow: inset 0 0 0 1px #d1ddd4; }
.capture-detail-fields { display: grid; gap: 12px; }
.topic-status-toggle { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin: 0; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.topic-status-toggle label { display: block; cursor: pointer; }
.topic-status-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.topic-status-toggle span { display: block; padding: 6px 9px; border-radius: 7px; color: var(--muted); font-size: 10px; font-weight: 700; }
.topic-status-toggle input:checked + span { color: var(--accent-dark); background: #fff; box-shadow: 0 1px 3px rgba(30,30,25,.12); }
.topic-status-toggle input:focus-visible + span { outline: 2px solid #92a398; outline-offset: 2px; }
.topic-outcome-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 15px; color: #4f4e49; font-size: 13px; font-weight: 650; }
.topic-outcome-toggle { justify-content: flex-end; margin: 0; }
.topic-outcome-input { width: 100%; margin-top: 7px; }

/* Cross-screen usability refinements */
.attention-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}
.attention-card-actions form, .commitment-list-actions form { display: flex; margin: 0; }
.icon-button-danger:hover { color: #9b443c; background: #fff0ed; }
.commitment-detail-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.commitment-detail-heading > p { margin: 0; }
.commitment-card.is-overdue {
    margin-inline: -11px;
    padding-inline: 11px;
    border-left: 3px solid #bd695f;
    border-radius: 8px;
    background: linear-gradient(90deg, #f5d7d0 0, #fae5df 18%, #fff5f2 38%, var(--paper) 62%);
}
.commitment-card.is-overdue .commitment-date { color: #9b443c; font-weight: 700; }
.commitment-card.is-due-today {
    margin-inline: -11px;
    padding-inline: 11px;
    border-left: 3px solid #6e9f4d;
    border-radius: 8px;
    background: linear-gradient(90deg, #d8ebcd 0, #e7f3df 18%, #f5faef 38%, var(--paper) 62%);
}
.commitment-card.is-due-today .commitment-date { color: #426d31; font-weight: 700; }
.commitment-remove-form { display: flex; justify-content: flex-end; margin-top: 12px; }
.timeline-meeting .entry-type { color: #55739a; }
.timeline-meeting .timeline-marker { color: #55739a; }

.matter-row.has-overdue {
    border-left: 3px solid #bd695f;
    background: linear-gradient(90deg, #f5d7d0 0, #fae5df 18%, #fff5f2 38%, var(--paper) 62%);
    box-shadow: 0 3px 13px rgba(150, 67, 56, .06);
}
.matter-row.is-due-today {
    border-left: 3px solid #6e9f4d;
    background: linear-gradient(90deg, #d8ebcd 0, #e7f3df 18%, #f5faef 38%, var(--paper) 62%);
    box-shadow: 0 3px 13px rgba(75, 116, 59, .055);
}
.matter-tree-children .matter-row.has-overdue { background: linear-gradient(90deg, #f5d7d0 0, #fae5df 18%, #fff5f2 38%, var(--paper) 62%); }
.matter-tree-children .matter-row.is-due-today { background: linear-gradient(90deg, #d8ebcd 0, #e7f3df 18%, #f5faef 38%, var(--paper) 62%); }
.matter-row.has-overdue:hover { border-color: #dfaaa2; border-left-color: #bd695f; }
.matter-row.is-due-today:hover { border-color: #bbd1af; border-left-color: #6e9f4d; }
.matter-row.is-due-today .matter-next strong { color: #426d31; }
.matter-row.has-overdue .matter-next strong { color: #9b443c; }
}
.matter-row-status {
    display: grid;
    justify-items: start;
    gap: 6px;
}
.overdue-badge {
    padding: 3px 8px;
    border: 1px solid #e7bbb5;
    border-radius: 99px;
    color: #91443c;
    background: #fff2ef;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}
.matter-attention-summary b { color: var(--ink); font-weight: 700; }

.commitment-mini-item {
    margin-inline: -10px;
    padding-inline: 10px;
    border-radius: 9px;
}
.commitment-mini-item.is-overdue {
    border-left: 3px solid #bd695f;
    background: linear-gradient(90deg, #f5d7d0 0, #fae5df 28%, #fff5f2 58%, transparent 100%);
}
.commitment-mini-item.is-due-today {
    border-left: 3px solid #6e9f4d;
    background: linear-gradient(90deg, #d8ebcd 0, #e7f3df 28%, #f5faef 58%, transparent 100%);
}
.commitments-table tbody tr.is-overdue {
    box-shadow: inset 3px 0 0 #bd695f;
    background: linear-gradient(90deg, #f5d7d0 0, #fae5df 22%, #fff5f2 48%, var(--paper) 76%);
}
.commitments-table tbody tr.is-overdue td { border-color: #edd9d5; }
.commitments-table tbody tr.is-due-today {
    box-shadow: inset 3px 0 0 #6e9f4d;
    background: linear-gradient(90deg, #d8ebcd 0, #e7f3df 22%, #f5faef 48%, var(--paper) 76%);
}
.commitments-table tbody tr.is-due-today td { border-color: #d5e4cc; }
.due-today-text { color: #426d31 !important; }
.commitments-table td:last-child {
    width: 58px;
    padding-inline: 10px;
    text-align: center;
    vertical-align: middle;
}
.commitment-list-actions { display: flex; align-items: center; justify-content: center; gap: 3px; }
.commitment-open-button { margin-inline: auto; }
.commitments-empty { padding: 28px !important; color: var(--muted); text-align: center; }

.people-area-section { margin-bottom: 32px; }
.people-area-section > header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}
.people-area-section > header p { margin: 0; color: var(--faint); font-size: 11px; }
.person-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
}
.person-card-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.person-card-heading > div > span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.person-card-heading > small { max-width: 45%; text-align: right; }
.person-area-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.person-card .area-chip { display: inline-flex; }
.person-card dl { grid-column: auto; }
.person-header-main { flex: 1; min-width: 0; }
.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #ecd7d3;
}
.danger-zone p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.button-danger {
    color: #8f3f37;
    border-color: #e1aaa3;
    background: #fff7f5;
}
.button-danger:hover { border-color: #c87970; background: #ffefec; }

.meeting-meta-strip-compact { grid-template-columns: minmax(0, 2fr) minmax(180px, .65fr); }
.meeting-participants-summary strong { line-height: 1.45; }
.minutes-editor { max-width: 850px; margin-top: 24px; }
.minutes-editor > .stack { gap: 18px; }
.minutes-topic-editor {
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.minutes-topic-editor h3 { margin-bottom: 4px; font-size: 14px; }
.minutes-topic-editor > p { margin: 0 0 13px; color: var(--muted); font-size: 11px; }
.minutes-include {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 700;
}
.minutes-include input { width: auto; }
.minutes-preview { margin-top: 32px; }
.minutes-summary { white-space: pre-wrap; }

@media print {
    @page { size: auto; margin: 15mm 16mm; }

    html, body { height: auto; min-height: 0; background: #fff; }
    .sidebar, .no-print, .mobile-menu, .flash { display: none !important; }
    .app-shell { display: block; min-height: 0; }
    .main-content { width: auto; max-width: none; margin: 0; padding: 0; }
    .main-content > :not(.participant-agenda) { display: none !important; }
    .participant-agenda {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
        break-after: avoid;
    }
}

@media (max-width: 1180px) {
    .meeting-prep-layout, .meeting-index-grid, .processing-layout { grid-template-columns: 1fr; }
    .meeting-prep-aside, .meeting-index-grid aside, .processing-notes-aside { position: static; }
    .meeting-mode-grid { grid-template-columns: 210px minmax(0,1fr); }
    .meeting-context-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 780px) {
    .page-actions { justify-content: flex-start; }
    .meeting-title-line { display: grid; }
    .meeting-meta-strip { grid-template-columns: 1fr 1fr; }
    .meeting-row { grid-template-columns: 46px minmax(0,1fr) auto; }
    .meeting-row .participant-stack, .meeting-row .pill { grid-column: 2; }
    .meeting-row .chevron { grid-column: 3; grid-row: 1 / 3; }
    .agenda-item { grid-template-columns: 22px minmax(0,1fr) auto; }
    .agenda-number { display: none; }
    .participant-agenda { padding: 30px 22px; }
    .meeting-mode { margin: -28px -17px -60px; }
    .meeting-mode-header { display: grid; padding: 17px; }
    .meeting-mode-grid { display: block; }
    .meeting-topic-nav { display: flex; gap: 5px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
    .meeting-topic-link { flex: 0 0 170px; }
    .meeting-topic-section { display: none; }
    .meeting-notes-workspace { padding: 20px 17px; }
    .meeting-context-panel { padding: 18px 17px; }
    .processing-choice-grid { grid-template-columns: repeat(2, 1fr); }
    .processing-save-bar { left: 0; align-items: stretch; flex-direction: column; padding: 10px 17px; }
    .processing-save-bar > span { display: none; }
    .processing-save-bar > div { display: grid; grid-template-columns: 1fr 1fr; }
    .processing-save-bar .button-primary { grid-column: 1 / -1; }
}

/* Entry correction and people-directory refinements */
.panel-intro {
    margin: -4px 0 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.entry-existing-files {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px;
    border-radius: 10px;
    background: var(--soft);
}
.entry-existing-files > strong { width: 100%; font-size: 11px; }
.timeline-entry-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}
.timeline-entry-heading h3 { margin-bottom: 0; }
.timeline-entry-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; margin-top: -2px; }

.people-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--paper);
}
.people-list-header,
.person-list-row {
    display: grid;
    grid-template-columns: minmax(170px, 1.15fr) minmax(210px, 1.3fr) minmax(160px, 1fr) 70px 120px;
    gap: 16px;
    align-items: center;
}
.people-list-header {
    padding: 10px 16px;
    color: var(--faint);
    background: var(--soft);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.person-list-row {
    min-height: 65px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
}
.person-list-row:nth-child(2) { border-top: 0; }
.person-name-link { color: var(--ink); font-weight: 750; }
.person-name-link:hover {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.person-context strong,
.person-context small { display: block; }
.person-context strong { font-size: 12px; font-weight: 650; }
.person-context small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.person-area-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.person-count { text-align: center; font-size: 12px; font-weight: 700; }

@media (max-width: 980px) {
    .people-list-header { display: none; }
    .person-list-row {
        grid-template-columns: minmax(160px, .9fr) minmax(190px, 1.1fr) minmax(140px, 1fr);
    }
    .person-count { display: none; }
    .person-list-row:nth-child(2) { border-top: 0; }
}

@media (max-width: 650px) {
    .person-list-row { grid-template-columns: 1fr; gap: 8px; }
}
