:root {
    --black: #050706;
    --ink: #17201c;
    --green: #00a968;
    --green-dark: #007a4d;
    --green-soft: #e7f8f0;
    --blue: #1677c8;
    --blue-soft: #e8f3fc;
    --orange: #ed8a22;
    --orange-soft: #fff1df;
    --red: #c43d45;
    --red-soft: #fde9ea;
    --muted: #65716b;
    --line: #dce4df;
    --soft: #f4f7f5;
    --white: #fff;
    --shadow: 0 8px 28px rgba(14, 35, 24, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
.icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }

.topbar { background: var(--black); border-bottom: 2px solid var(--green); color: #fff; position: sticky; top: 0; z-index: 20; }
.topbar-inner { align-items: center; display: flex; gap: 30px; margin: auto; max-width: 1320px; min-height: 82px; padding: 0 24px; }
.brand { align-items: center; color: #fff; display: flex; flex-direction: column; line-height: 1; min-width: 145px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-image { display: block; height: 38px; object-fit: contain; object-position: center; width: auto; }
.brand-subtitle { color: #d3ded8; font-size: 9px; font-weight: 700; letter-spacing: .28em; margin-top: 6px; padding-left: .28em; }
.nav { align-items: stretch; display: flex; gap: 4px; min-height: 82px; }
.nav > a, .nav-more > summary {
    align-items: center;
    border-bottom: 3px solid transparent;
    color: #e9efec;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 650;
    gap: 8px;
    padding: 0 16px;
    text-decoration: none;
}
.nav > a:hover, .nav > a.active, .nav-more > summary:hover { border-color: var(--green); color: #fff; text-decoration: none; }
.nav-more { display: flex; position: relative; }
.nav-more summary { list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-menu {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: var(--shadow);
    display: grid;
    min-width: 210px;
    overflow: hidden;
    position: absolute;
    top: 70px;
    z-index: 25;
}
.nav-menu a { align-items: center; color: var(--ink); display: flex; gap: 10px; padding: 13px 16px; }
.nav-menu a:hover { background: var(--green-soft); text-decoration: none; }
.account-area { align-items: center; display: flex; gap: 11px; margin-left: auto; white-space: nowrap; }
.avatar { align-items: center; background: var(--green); border-radius: 50%; display: flex; font-size: 18px; font-weight: 800; height: 44px; justify-content: center; width: 44px; }
.account-name { display: flex; flex-direction: column; font-size: 14px; line-height: 1.25; }
.account-name small { color: #aebbb4; margin-top: 3px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.account-password { color: #d9e4de; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.account-password:hover { color: #fff; }
.sign-out { background: transparent; border: 1px solid #526058; font-size: 13px; min-height: 40px; padding: 8px 12px; }

.main { margin: 0 auto; max-width: 1320px; padding: 30px 24px 70px; }
.main:has(.dashboard-hero) { max-width: none; padding: 0 0 70px; }
.main:has(.dashboard-hero) > .alert { margin: 18px auto; max-width: 1272px; }
.dashboard-content { margin: 0 auto; max-width: 1320px; padding: 30px 24px 0; }

.dashboard-hero {
    background: #07110d url("../images/astel-portal-hero.jpg") center 72% / cover no-repeat;
    color: #fff;
    min-height: 205px;
    position: relative;
}
.dashboard-hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .72) 43%, rgba(0, 0, 0, .12) 76%); content: ""; inset: 0; position: absolute; }
.hero-inner { align-items: center; display: flex; margin: auto; max-width: 1320px; min-height: 205px; padding: 24px; position: relative; z-index: 1; }
.hero-copy { max-width: 1050px; }
.hero-kicker { align-items: center; color: #7de0b4; display: flex; font-size: 13px; font-weight: 750; gap: 8px; letter-spacing: .08em; margin-bottom: 8px; text-transform: uppercase; }
.hero-copy h1 { font-size: clamp(31px, 3.4vw, 46px); letter-spacing: -.025em; line-height: 1.08; margin: 0 0 15px; }
.hero-work-summary { color: #e5ede9; display: grid; font-size: 14px; gap: 10px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 14px 0 16px; }
.hero-work-summary span { align-items: center; backdrop-filter: blur(5px); background: rgba(3, 17, 12, .72); border: 1px solid rgba(255, 255, 255, .2); border-left: 4px solid #2bd08e; border-radius: 9px; display: flex; gap: 8px; min-height: 54px; padding: 9px 12px; }
.hero-work-summary span:nth-child(2) { border-left-color: #4aa9e9; }
.hero-work-summary span:nth-child(4) { border-left-color: #f0a43a; }
.hero-work-summary span:nth-child(5) { border-left-color: #e45b62; }
.hero-work-summary strong { color: #fff; flex: 0 0 auto; font-size: 22px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-head { align-items: center; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 22px; }
.page-head h1 { font-size: 30px; line-height: 1.2; margin: 0; }
.muted { color: var(--muted); }
.eyebrow { color: var(--green-dark); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 2px 9px rgba(15, 35, 24, .04); margin-bottom: 20px; padding: 22px; }
.card h2, .card h3 { margin-top: 0; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.action-card {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    color: var(--ink);
    display: flex;
    gap: 16px;
    min-height: 116px;
    padding: 20px;
    text-decoration: none;
}
.action-card:hover { border-color: var(--green); text-decoration: none; transform: translateY(-2px); }
.action-icon { align-items: center; border-radius: 12px; display: flex; height: 60px; justify-content: center; width: 60px; }
.action-icon.green { background: var(--green-soft); color: var(--green-dark); }
.action-icon.blue { background: var(--blue-soft); color: var(--blue); }
.action-icon.orange { background: var(--orange-soft); color: var(--orange); }
.action-card strong { display: block; font-size: 18px; }
.action-card small { color: var(--muted); display: block; font-size: 14px; margin-top: 3px; }

.metric { border: 0; border-left: 5px solid var(--green); box-shadow: var(--shadow); padding: 20px 22px; }
.metric.blue { border-color: var(--blue); }
.metric.orange { border-color: var(--orange); }
.metric.red { border-color: var(--red); }
.metric strong { color: var(--ink); display: block; font-size: 34px; line-height: 1.1; }
.metric span { color: var(--muted); display: block; font-size: 14px; margin-top: 7px; }
.dashboard-metrics-title { margin: 0 0 10px; }
.dashboard-metrics-title > div { align-items: baseline; display: flex; gap: 10px; }
.dashboard-metrics-title h2 { font-size: 19px; }
.dashboard-metrics-title .eyebrow { font-size: 11px; }
.dashboard-metrics { gap: 12px; margin-bottom: 18px; }
.dashboard-metrics .metric { align-items: center; display: flex; gap: 12px; margin: 0; min-height: 68px; padding: 11px 16px; }
.dashboard-metrics .metric strong { flex: 0 0 auto; font-size: 28px; }
.dashboard-metrics .metric span { line-height: 1.25; margin: 0; }

.section-title { align-items: flex-end; display: flex; justify-content: space-between; margin: 34px 0 14px; }
.section-title h2 { font-size: 24px; line-height: 1.2; margin: 0; }
.section-title p { color: var(--muted); font-size: 15px; margin: 5px 0 0; }
.section-link { align-items: center; display: flex; font-weight: 700; gap: 6px; }

.btn, button {
    align-items: center;
    background: var(--green);
    border: 1px solid var(--green);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 750;
    gap: 9px;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
}
.btn:hover, button:hover { filter: brightness(.93); text-decoration: none; }
.btn-secondary { background: #fff; border-color: #bcc9c2; color: var(--ink); }
.btn-dark { background: #080b09; border-color: #080b09; color: #fff; }
.btn-light { background: #fff; border-color: #fff; color: #080b09; }
.btn-danger { background: var(--red); border-color: var(--red); }
.btn-small { font-size: 14px; min-height: 38px; padding: 7px 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }

.quick-log { align-items: end; background: linear-gradient(135deg, #f3fbf7, #fff); border: 1px solid #ccebdc; display: grid; gap: 14px; grid-template-columns: 1fr auto; }
.quick-log h2 { margin-bottom: 4px; }
.quick-log .field { min-width: 0; }
.quick-log .actions { align-self: end; }
.quick-log-heading { align-items: center; display: flex; gap: 14px; justify-content: space-between; margin-bottom: 5px; }
.quick-log-heading h2 { margin: 4px 0 0; }
.contact-search { position: relative; }
.contact-search-control { position: relative; }
.contact-search-control .icon { color: var(--muted); left: 14px; pointer-events: none; position: absolute; top: 14px; }
.contact-search-control input { padding-left: 44px; }
.contact-search-results {
    background: #fff;
    border: 1px solid #aabbb2;
    border-radius: 9px;
    box-shadow: var(--shadow);
    left: 0;
    max-height: 340px;
    overflow-y: auto;
    position: absolute;
    right: 0;
    top: calc(100% + 5px);
    z-index: 15;
}
.contact-search-option {
    align-items: flex-start;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-height: 54px;
    padding: 8px 14px;
    text-align: left;
    width: 100%;
}
.contact-search-option:hover, .contact-search-option:focus { background: var(--green-soft); color: var(--ink); filter: none; outline: none; }
.contact-search-option[hidden] { display: none; }
.contact-search-option small { color: var(--muted); font-size: 13px; }
.contact-search-empty { color: var(--muted); padding: 18px; text-align: center; }
.home-activity-panel { margin-bottom: 28px; }
.home-quick-log { border-radius: 14px 14px 0 0; box-shadow: none; margin-bottom: 0; }
.dashboard-attention.card { border-radius: 0 0 14px 14px; border-top: 0; box-shadow: none; margin-bottom: 0; padding: 12px 22px 8px; }
.dashboard-attention-heading { align-items: center; display: flex; gap: 14px; justify-content: space-between; padding: 0 0 6px; }
.dashboard-attention-heading h2 { align-items: center; display: flex; font-size: 20px; gap: 8px; margin: 0; }
.dashboard-attention .activity-item { align-items: center; border-radius: 8px; padding: 8px; }
.dashboard-attention .activity-dot { height: 36px; width: 36px; }
.dashboard-attention .activity-body { align-items: center; display: grid; gap: 0 18px; grid-template-columns: minmax(0, 1fr) auto; }
.dashboard-attention .activity-body > a { grid-column: 1; }
.dashboard-attention .activity-body p { font-size: 14px; grid-column: 1; margin: 0; }
.dashboard-attention .activity-meta { grid-column: 2; grid-row: 1 / span 2; }

.task-board { align-items: stretch; }
.task-form, .task-list { height: 100%; }
.task-form h3, .task-list h3 { align-items: center; display: flex; gap: 8px; }
.compact-fields { gap: 12px; margin: 15px 0; }
.task-list { display: flex; flex-direction: column; }
.task-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; padding: 12px 0; }
.task-row:last-child { border-bottom: 0; }
.task-check {
    background: #fff;
    border: 2px solid #a9b9b0;
    border-radius: 50%;
    color: transparent;
    height: 38px;
    min-height: 38px;
    padding: 0;
    width: 38px;
}
.task-check:hover { background: var(--green); border-color: var(--green); color: #fff; }
.task-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.task-copy strong { line-height: 1.3; }
.task-copy > span { color: #48534d; font-size: 14px; line-height: 1.35; margin-top: 4px; }
.task-copy small { color: var(--muted); font-size: 13px; margin-top: 4px; }
.task-row-actions { align-items: center; display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.task-row-actions form { margin: 0; }
.task-list-heading { align-items: flex-end; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-bottom: 13px; }
.task-list-heading h2 { margin: 3px 0 0; }
.task-page-list .pagination { margin-top: auto; padding-top: 15px; }
.task-detail-stack { display: grid; gap: 18px; }
.task-description-card { border-left: 5px solid var(--green); }
.task-description-card h2 { margin: 5px 0 14px; }
.task-description { font-size: 19px; line-height: 1.65; white-space: pre-wrap; }
.reminder-settings { border-left: 5px solid var(--blue); }
.reminder-settings-heading { align-items: center; display: flex; gap: 14px; justify-content: space-between; }
.reminder-settings-heading h2 { margin: 4px 0 0; }
.reminder-settings > p { margin: 7px 0 16px; }
.reminder-settings-fields { align-items: end; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
.reminder-save { align-self: end; }
.email-status-grid { margin-bottom: 20px; }
.email-status-card { display: flex; flex-direction: column; margin: 0; min-height: 130px; }
.email-status-card span { color: var(--muted); font-size: 13px; font-weight: 750; text-transform: uppercase; }
.email-status-card strong { font-size: 20px; line-height: 1.25; margin-top: 8px; overflow-wrap: anywhere; }
.email-status-card small { color: var(--muted); line-height: 1.35; margin-top: auto; padding-top: 8px; }
.email-address-settings { padding: 0; }
.email-address-settings > form { padding: 5px 24px 24px; }
.admin-copy-field { border: 0; margin: 0; padding: 0; }
.admin-copy-field legend { color: #344139; font-size: 14px; font-weight: 750; padding: 0; }
.admin-copy-field > p { font-size: 14px; margin: 4px 0 10px; }
.admin-copy-list { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-copy-option { align-items: center; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; display: flex; gap: 11px; padding: 11px 13px; }
.admin-copy-option:has(input:checked) { background: var(--green-soft); border-color: #9dd8be; }
.admin-copy-option input { accent-color: var(--green); flex: 0 0 auto; min-height: 22px; width: 22px; }
.admin-copy-option span { min-width: 0; }
.admin-copy-option small { color: var(--muted); display: block; font-weight: 400; overflow-wrap: anywhere; }
.email-preview-panel { padding: 0; overflow: hidden; }
.email-preview-heading { align-items: center; display: flex; gap: 16px; justify-content: space-between; padding: 22px 24px 15px; }
.email-preview-heading h2 { margin: 3px 0 0; }
.email-preview-controls { align-items: end; background: #f7faf8; border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: minmax(260px, 1fr) auto auto auto; padding: 15px 24px; }
.email-preview-frame { background: #e9efeb; padding: 18px; }
.email-preview-frame iframe { background: #fff; border: 1px solid #cad6cf; border-radius: 9px; display: block; height: 850px; width: 100%; }
.email-preview-note { font-size: 13px; margin: 0; padding: 12px 24px 16px; }
.config-example { background: #101713; border-radius: 9px; color: #d7eee2; font: 13px/1.55 ui-monospace,SFMono-Regular,Consolas,monospace; overflow-x: auto; padding: 15px; }

.activity-feed { display: grid; gap: 12px; }
.activity-item { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 14px; padding: 10px 0 17px; }
.activity-item:last-child { border-bottom: 0; padding-bottom: 0; }
.activity-dot { align-items: center; background: var(--green-soft); border-radius: 50%; color: var(--green-dark); display: flex; flex: 0 0 auto; height: 44px; justify-content: center; width: 44px; }
.activity-body { flex: 1; min-width: 0; }
.activity-body strong { font-size: 17px; }
.activity-body p { color: #48534d; margin: 5px 0; }
.activity-meta { color: var(--muted); font-size: 13px; }

.contact-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.contact-tile { align-items: center; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); display: flex; gap: 12px; padding: 14px; }
.contact-tile:hover { background: var(--green-soft); border-color: #a8dcc5; text-decoration: none; }
.contact-initial { align-items: center; background: var(--green); border-radius: 9px; color: #fff; display: flex; flex: 0 0 auto; font-weight: 850; height: 42px; justify-content: center; width: 42px; }
.contact-tile small { color: var(--muted); display: block; }

.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: auto; }
table { border-collapse: collapse; white-space: nowrap; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: 15px 16px; text-align: left; }
th { background: #f8faf9; color: #536059; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
tr:last-child td { border: 0; }
tbody tr:hover { background: #fbfdfc; }
.clickable-row { cursor: pointer; }
.clickable-row:hover { background: var(--green-soft); }
.clickable-row:focus-visible { outline: 3px solid rgba(0, 174, 111, .28); outline-offset: -3px; }

.assignee-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 190px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fbfdfc;
}
.assignee-choice {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid #dce6e1;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.assignee-choice:has(input:checked) {
    border-color: var(--green);
    background: var(--green-soft);
}
.assignee-choice input {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: var(--green);
}
.assignee-choice span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}
.assignee-choice small { color: var(--muted); }
@media (max-width: 700px) {
    .assignee-checklist { grid-template-columns: 1fr; }
}

.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
label { color: #344139; font-size: 14px; font-weight: 750; }
.optional-label { color: var(--muted); font-size: 12px; font-weight: 500; }
input, select, textarea {
    background: #fff;
    border: 1px solid #b9c7bf;
    border-radius: 8px;
    color: var(--ink);
    font: inherit;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}
textarea { min-height: 120px; resize: vertical; }
.activity-notes-input { min-height: 180px; }
.activity-record-stack { margin-bottom: 20px; }
.activity-record-stack .card { margin-bottom: 0; }
.activity-details-card { border-radius: 14px 14px 0 0; box-shadow: none; }
.activity-notes-card { border-left: 5px solid var(--green); border-radius: 0 0 14px 14px; border-top: 0; }
.activity-notes-card h2 { font-size: 24px; margin: 4px 0 12px; }
.activity-notes-content { font-size: 19px; line-height: 1.65; white-space: pre-wrap; }
.activity-support-box { background: var(--orange-soft); border-radius: 9px; margin-top: 20px; padding: 14px 16px; }
.activity-support-box p { margin: 6px 0 0; white-space: pre-wrap; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 3px solid rgba(0, 169, 104, .16); }

.alert { border-radius: 9px; margin-bottom: 18px; padding: 14px 17px; }
.alert-success { background: var(--green-soft); color: #076441; }
.alert-error { background: var(--red-soft); color: #932d34; }
.errors { margin: 0; padding-left: 22px; }
.badge { background: #e9efeb; border-radius: 999px; color: #415047; display: inline-block; font-size: 13px; padding: 4px 9px; }
.badge-open, .badge-submitted { background: var(--orange-soft); color: #7b4a10; }
.badge-completed, .badge-reviewed, .badge-active { background: var(--green-soft); color: #09623f; }
.badge-in_progress { background: var(--orange-soft); color: #7b4a10; }
.badge-closed { background: var(--green-soft); color: #09623f; }
.status-readonly { align-items: center; border: 1px solid var(--line); border-radius: 8px; display: flex; gap: 12px; min-height: 48px; padding: 8px 12px; }
.status-readonly small { color: var(--muted); }
.badge-overdue { background: var(--red-soft); color: #992f36; }
.text-overdue { color: var(--red); font-weight: 800; }
.bulk-assignment-bar { align-items: center; display: grid; gap: 28px; grid-template-columns: minmax(240px, .8fr) minmax(390px, 1.2fr); margin-top: 18px; }
.bulk-assignment-bar h2 { margin: 4px 0 6px; }
.bulk-assignment-bar p { color: var(--muted); margin: 0; }
.bulk-assignment-controls { display: grid; gap: 10px; grid-template-columns: minmax(230px, 1fr) auto; }
.bulk-assignment-controls .selection-count { align-self: center; color: var(--green-dark); font-size: 14px; grid-column: 1 / -1; }
.checkbox-cell { text-align: center; width: 54px; }
.checkbox-cell input { accent-color: var(--green); min-height: 22px; width: 22px; }
.assignment-badges { display: flex; flex-wrap: wrap; gap: 6px; max-width: 330px; white-space: normal; }
.assignment-badge { background: var(--green-soft); border: 1px solid #b6dec9; border-radius: 999px; color: #09623f; display: inline-block; font-size: 13px; font-weight: 700; padding: 5px 9px; }
.detail-list { display: grid; gap: 9px 20px; grid-template-columns: 190px 1fr; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; }
.empty { color: var(--muted); padding: 36px; text-align: center; }
.pagination { margin-top: 20px; }
.login-page { background: radial-gradient(circle at 50% 0, #18372a 0, #0b1611 38%, #030504 100%); min-height: 100vh; }
.login-page .main { padding-bottom: 55px; }
.login-shell { margin: 6vh auto; max-width: 460px; }
.login-logo { align-items: center; display: flex; flex-direction: column; justify-content: center; margin-bottom: 22px; }
.login-logo img { height: auto; max-width: 240px; width: 100%; }
.login-logo span { color: #d7e3dd; font-size: 11px; font-weight: 750; letter-spacing: .32em; margin-top: 9px; padding-left: .32em; }
.login-card { box-shadow: 0 20px 55px rgba(0, 0, 0, .32); }
.remember-option { align-items: center; cursor: pointer; display: inline-flex; gap: 9px; margin: 14px 0; }
.remember-option input { accent-color: var(--green); flex: 0 0 auto; height: 20px; margin: 0; min-height: 20px; padding: 0; width: 20px; }
.remember-option span { line-height: 20px; }
.inline { display: inline; }
.note { border-left: 4px solid var(--green); margin: 15px 0; padding-left: 15px; }
.comment-thread { border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 5px; }
.comment-head { align-items: baseline; display: flex; flex-wrap: wrap; gap: 7px 12px; justify-content: space-between; }
.comment-thread .note { padding-bottom: 13px; }
.comment-thread .note + .note { border-top: 1px solid var(--line); padding-top: 15px; }
.comment-thread p { margin: 8px 0 12px; white-space: pre-wrap; }
.file-row { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 12px; padding: 10px 0; }
.priority-date { align-items: center; border-radius: 9px; display: flex; flex-direction: column; flex: 0 0 auto; font-weight: 800; justify-content: center; min-height: 56px; min-width: 65px; padding: 6px; }
.priority-date.normal { background: var(--blue-soft); color: var(--blue); }
.priority-date.overdue { background: var(--red-soft); color: var(--red); }
.priority-date small { font-size: 11px; text-transform: uppercase; }

@media (max-width: 1050px) {
    .topbar-inner { align-items: flex-start; flex-wrap: wrap; gap: 12px 24px; padding-bottom: 14px; padding-top: 14px; }
    .nav { min-height: 50px; order: 3; overflow-x: auto; width: 100%; }
    .nav > a, .nav-more > summary { padding: 0 13px; }
    .nav-menu { top: 48px; }
    .grid-4, .grid-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    body { font-size: 16px; }
    .topbar { position: static; }
    .topbar-inner { padding-left: 15px; padding-right: 15px; }
    .brand { min-width: auto; }
    .brand-image { height: 33px; }
    .brand-subtitle { font-size: 8px; }
    .account-name { display: none; }
    .sign-out { min-height: 38px; }
    .nav > a, .nav-more > summary { font-size: 14px; padding: 0 9px; }
    .main { padding: 20px 13px 45px; }
    .dashboard-content { padding: 22px 13px 0; }
    .hero-inner { min-height: 345px; padding: 24px 16px; }
    .dashboard-hero { background-position: 68% 70%; min-height: 345px; }
    .dashboard-hero::after { background: rgba(0, 0, 0, .7); }
    .hero-work-summary { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-work-summary span { min-height: 48px; padding: 7px 9px; }
    .grid-2, .grid-3, .grid-4, .grid-5, .form-grid, .contact-grid { grid-template-columns: 1fr; }
    .quick-log { grid-template-columns: 1fr; }
    .quick-log-heading { align-items: flex-start; flex-wrap: wrap; }
    .dashboard-attention .activity-body { display: block; }
    .dashboard-attention .activity-body p { margin: 2px 0; }
    .dashboard-attention-heading { align-items: flex-start; }
    .page-head { align-items: flex-start; flex-direction: column; }
    .field.full { grid-column: auto; }
    .detail-list { gap: 2px; grid-template-columns: 1fr; }
    .detail-list dd { margin-bottom: 10px; }
    .card { padding: 17px; }
    .section-title { align-items: flex-start; gap: 10px; }
    .bulk-assignment-bar, .bulk-assignment-controls { grid-template-columns: 1fr; }
    .task-page-list .task-row { align-items: flex-start; flex-direction: column; }
    .task-page-list .task-row-actions { justify-content: flex-start; width: 100%; }
    .email-preview-heading { align-items: flex-start; flex-direction: column; }
    .email-preview-controls { grid-template-columns: 1fr; }
    .email-preview-frame { padding: 8px; }
    .email-preview-frame iframe { height: 720px; }
    .admin-copy-list { grid-template-columns: 1fr; }
}
