:root {
    --ink: #1c2824;
    --muted: #5e6a64;
    --sidebar: #16312c;
    --sidebar-ink: #f4f8f6;
    --sidebar-dim: #b7c7c0;
    --line: #e3d8c8;
    --paper: #f3eee6;
    --card: #fffdf9;
    --accent: #b85c34;
    --accent-ink: #fff8f4;
    --good: #1d6b43;
    --good-bg: #e4f3ea;
    --bad: #8e342c;
    --bad-bg: #f8e8e4;
    --focus: #1f6f8a;
    --shadow: 0 10px 30px rgba(48, 36, 22, 0.06);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
    font-size: 15px;
    line-height: 1.45;
}

h1, h2 {
    font-family: "Palatino Linotype", Palatino, Georgia, serif;
    font-weight: 700;
}

a { color: var(--accent); }

.app {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar);
    color: var(--sidebar-ink);
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.sidebar-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sidebar-logout {
    display: none;
    flex: none;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fffdf9;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    background: rgba(184, 92, 52, 0.92);
}

.sidebar-logout:hover {
    background: var(--accent);
    color: #fffdf9;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    color: inherit;
    text-decoration: none;
    min-width: 0;
}

.brand strong {
    display: block;
    font-family: "Sitka Display", Constantia, "Palatino Linotype", Georgia, serif;
    font-size: 1.22rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.15;
}
.brand small { color: var(--sidebar-dim); }

.brand-mark {
    width: 42px;
    height: 42px;
    display: block;
    object-fit: contain;
    flex: none;
}

.nav { display: flex; flex-direction: column; gap: 4px; }

.nav-link {
    color: var(--sidebar-ink);
    text-decoration: none;
    padding: 9px 12px;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.is-active { background: rgba(255, 255, 255, 0.1); }

.sidebar-foot {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.foot-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
}

.foot-link {
    color: var(--sidebar-ink);
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
}

.foot-link:hover,
.foot-link.is-active {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

.who-name {
    color: inherit !important;
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    border-radius: 12px;
    padding: 4px;
}

.who-avatar {
    width: 36px;
    height: 36px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #b85c34;
    color: #fff8f4;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.who-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.who-copy strong {
    display: block;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.who-copy span {
    display: block;
    color: var(--sidebar-dim);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.who-name:hover,
.who-name:focus-visible,
.who-name.is-active {
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.main { padding: 28px 32px 56px; max-width: 1180px; }

.page-head { margin-bottom: 18px; }
.page-head h1 { margin: 0 0 4px; font-size: 2rem; }
.back-btn { margin: 0 0 12px; }
.intro { margin: 0; color: var(--muted); }

.flash {
    border-radius: 10px;
    padding: 10px 12px;
    margin: 0 0 10px;
}

.flash-success { background: var(--good-bg); color: var(--good); }
.flash-error { background: var(--bad-bg); color: var(--bad); }

.toolbar, .filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: end;
    margin-bottom: 16px;
}

.filters label, .field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.filters input, .filters select { min-width: 120px; }
.filters input[name="q"] { min-width: 260px; }

.hotel-rows input, .hotel-rows select { min-width: 0; }
.hotel-rows td { vertical-align: middle; }
.hotel-rows select { width: 88px; }

.hotel-block {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.hotel-fields {
    display: grid;
    grid-template-columns: minmax(140px, 1.4fr) minmax(110px, 1fr) 88px minmax(110px, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.dept-under td { background: #faf6f1; }
.dept-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.dept-box { width: 100%; }
.dept-label {
    margin: 0 0 8px;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.dept-rows { display: flex; flex-direction: column; gap: 8px; }
.dept-row {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(160px, 1.4fr) minmax(120px, 1fr) auto;
    gap: 8px;
    align-items: center;
}
.dept-row input { min-width: 0; }
.dept-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dept-read p { margin: 0 0 4px; }
.dept-box .help { margin: 8px 0 0; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }

.tab {
    text-decoration: none;
    color: var(--ink);
    background: #efe6da;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
}

.tab.is-on { background: var(--sidebar); color: white; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 8px 14px;
    border: 1px solid transparent;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: #efe6da;
    color: var(--ink);
}

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-danger { background: transparent; color: var(--bad); border-color: #e2b2ab; }
.btn-ghost { background: transparent; border-color: #d9cfc0; color: var(--ink); }
.btn-small { padding: 5px 10px; font-size: 13px; }

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
}

.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong {
    display: block;
    margin-top: 6px;
    font-size: 2rem;
    font-variant-numeric: tabular-nums;
}

.dash { display: flex; flex-direction: column; gap: 22px; }

.main:has(.dash) .page-head {
    margin-bottom: 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.main:has(.dash) .page-head h1 {
    font-family: "Sitka Display", Constantia, Georgia, serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.dash-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px 28px;
    align-items: end;
    padding: 8px 2px 2px;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: var(--ink);
}

.dash-kicker {
    margin: 0 0 6px;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
}

.dash-greeting {
    margin: 0;
    color: var(--sidebar);
    font-family: "Sitka Display", Constantia, Georgia, serif;
    font-size: 1.85rem;
    font-weight: 600;
    line-height: 1.15;
}

.dash-date { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-hero .btn {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}

.dash-hero .btn:hover { border-color: #c4b5a4; }

.dash-hero .btn-primary {
    background: var(--sidebar);
    border-color: transparent;
    color: #f7f3ec;
}

.dash-stats {
    margin-bottom: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dash-stat {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 20px 16px;
    border-right: 1px solid var(--line);
    background: transparent;
}

.dash-stat:last-child { border-right: 0; }

.dash-stat:hover { background: #faf7f2; }

.dash-stat span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
}

.dash-stat strong {
    margin-top: 10px;
    font-family: "Sitka Display", Constantia, Georgia, serif;
    font-weight: 600;
    font-size: 2.15rem;
    color: var(--sidebar);
}

.dash-stat em {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-size: 12.5px;
    color: var(--muted);
}

.dash-stat.is-attention strong { color: #8a4b12; }
.dash-stat.is-attention em { color: #8a4b12; }

.dash-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 16px;
    align-items: start;
}

.dash-panel {
    margin-bottom: 0;
    min-height: 220px;
    border-radius: 16px;
}

.dash-panel .card-head {
    align-items: baseline;
    padding-bottom: 10px;
    margin-bottom: 4px;
    border-bottom: 1px solid var(--line);
}

.dash-panel .card-head h2 {
    font-family: "Sitka Display", Constantia, Georgia, serif;
    font-weight: 600;
    font-size: 1.2rem;
}

.dash-panel .card-head a {
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-panel .card-head a:hover { color: var(--accent); }

.dash-table th, .dash-table td { padding: 11px 10px; }
.dash-table tbody tr:hover td { background: #faf7f2; }
.dash-table .quote-profit { color: #1d6b43; font-weight: 650; }

.dash-empty {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    padding: 18px 4px 8px;
    color: var(--muted);
}

.dash-empty p { margin: 0; }

.dash-more { margin: 12px 0 0; }

.dash-resources { margin-bottom: 0; }

.dash-resource-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.dash-resource {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--sidebar);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: #fff;
}

.dash-resource:hover { border-color: #cbbba6; border-top-color: var(--accent); background: #fffdf9; }

.dash-resource span {
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

.dash-resource strong {
    font-size: 1.35rem;
    font-variant-numeric: tabular-nums;
}

.hotel-view { margin-bottom: 16px; }
.hotel-view > .card { margin-bottom: 0; }
.hotel-notes { margin-top: 8px; }
.hotel-notes p { margin: 0; }
.hotel-notes .dept-label { margin-bottom: 6px; }

.rates-filters input[name="q"] { min-width: 180px; }
.rates-group-body { display: flex; flex-direction: column; gap: 18px; }
.rates-hotel {
    padding-top: 14px;
    border-top: 1px solid var(--line);
}
.rates-hotel:first-child { padding-top: 0; border-top: 0; }
.rates-hotel .card-head h3 {
    margin: 0;
    font-family: "Palatino Linotype", Palatino, Georgia, serif;
    font-size: 1.15rem;
}
.rates-hotel .card-head a,
.rates-group .card-head a { color: inherit; text-decoration: none; }
.rates-hotel .card-head a:hover,
.card-head h2 a:hover { color: var(--accent); }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 8px;
}

.card-head h2 { margin: 0; font-size: 1.25rem; }
.card-head p { margin: 0; color: var(--muted); }

.table-wrap { overflow-x: auto; }

table.data { width: 100%; border-collapse: collapse; }

table.data th {
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

table.data th, table.data td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: 0; }
.is-inactive { color: var(--muted); }

table.data td.quote-tour-cost {
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}

table.data td.quote-profit {
    font-weight: 700;
    color: #1d6b43;
    white-space: nowrap;
}

table.data .money-label {
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85em;
}

.na-label {
    display: inline-block;
    min-width: 2.2em;
    padding: 2px 8px;
    border-radius: 4px;
    background: #efe8df;
    color: #6a5f52;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-align: center;
}

.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-actions form { margin: 0; }

.profile {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 22px;
    align-items: start;
}

.profile-photo, .profile-thumb {
    object-fit: cover;
    background: #efe6da;
    border: 1px solid var(--line);
    color: var(--sidebar);
}

.profile-photo {
    width: 132px;
    height: 132px;
    border-radius: 16px;
}

.profile-thumb {
    width: 42px;
    height: 42px;
    border-radius: 8px;
}

.profile-fallback {
    display: grid;
    place-items: center;
    font-weight: 700;
}

.profile-photo.profile-fallback { font-size: 2rem; }

.profile-dl {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 10px 16px;
    margin: 0;
}

.profile-dl dt { margin: 0; color: var(--muted); font-size: 13px; }
.profile-dl dd { margin: 0; }

.photo-cell { width: 58px; }

.check {
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--ink);
    margin-top: 6px;
}

.check input { width: auto; }

.section-title { margin: 8px 0 4px; font-size: 1.35rem; }

.vehicle-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.vehicle-photos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }

.shot {
    width: 148px;
    color: inherit;
    text-decoration: none;
}

.shot img {
    width: 148px;
    height: 104px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
    display: block;
    background: #efe6da;
}

.vehicle-facts { margin-bottom: 4px; }
.vehicle-actions { margin-top: 14px; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 16px;
}

.span-2 { grid-column: span 2; }

input, select, textarea, input[type="file"] {
    width: 100%;
    border: 1px solid #d9cfc0;
    background: #fff;
    border-radius: 8px;
    padding: 9px 10px;
    font: inherit;
    color: inherit;
}

textarea { min-height: 96px; resize: vertical; }

input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.help { margin: 0; color: var(--muted); font-size: 13px; }

.form-actions { display: flex; gap: 10px; align-items: center; }

.empty { padding: 8px 0 12px; }
.empty p { margin: 0 0 10px; }

.badge {
    display: inline-block;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 700;
    background: #efe6da;
}

.badge-admin { background: #f3e1d4; color: #8d3f22; }
.badge-off { background: #eeeae4; color: var(--muted); }
.badge-draft { background: #eeeae4; color: #5e6a64; }
.badge-submitted { background: #ddeff5; color: #1f6f8a; }
.badge-paid { background: #e4f3ea; color: #1d6b43; }
.badge-cancelled { background: #f8e8e4; color: #8e342c; }
.badge-confirmed { background: #e4f3ea; color: #1d6b43; }
.badge-assigned { background: #ddeff5; color: #1f6f8a; }
.badge-in_progress { background: #f3e9d4; color: #8a5a1f; }
.badge-completed { background: #e8ebe9; color: #3d4a45; }
.inline-form { display: inline; }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.login-wrap {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(280px, 420px);
    gap: 32px;
    align-items: center;
    padding: 40px 8vw;
    background:
        linear-gradient(160deg, rgba(22, 49, 44, 0.94), rgba(22, 49, 44, 0.78)),
        var(--sidebar);
}

.login-copy { color: var(--sidebar-ink); }
.login-copy h1 { margin: 0 0 8px; font-size: 3rem; }
.login-copy p { margin: 0; color: var(--sidebar-dim); font-size: 1.05rem; }
.login-copy .vision {
    max-width: 16em;
    margin-top: 14px;
    padding-left: 14px;
    border-left: 2px solid #e7c3b0;
    color: #f7f3ec;
    font-family: "Sitka Display", Constantia, Georgia, serif;
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
}
.eyebrow {
    margin: 0 0 8px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 12px;
    color: #e7c3b0;
}

.login-card h1 { margin: 0 0 12px; font-size: 1.6rem; }
.stack { display: flex; flex-direction: column; gap: 12px; }

@media (max-width: 800px) {
    body { overflow-x: hidden; }
    .app { grid-template-columns: 1fr; }
    .dash-grid { grid-template-columns: 1fr; }
    .dash-hero { align-items: start; }
    .dash-stats { grid-template-columns: 1fr 1fr; }
    .dash-stat { border-bottom: 1px solid var(--line); }
    .dash-stat:nth-child(odd) { border-right: 1px solid var(--line); }
    .dash-stat:nth-child(even) { border-right: 0; }
    .main { max-width: none; }
    .sidebar {
        height: auto;
        position: sticky;
        top: 0;
        z-index: 5;
        gap: 12px;
        padding: 12px 14px 10px;
        padding-top: max(12px, env(safe-area-inset-top));
    }
    .sidebar-top {
        gap: 10px;
        position: relative;
        z-index: 2;
    }
    .sidebar-logout { display: inline-flex; }
    .brand span { min-width: 0; }
    .brand strong {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .brand small { display: none; }
    .nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin: 0 -14px;
        padding: 0 14px 4px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-link { flex: none; padding: 10px 12px; }
    .sidebar-foot {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 8px 8px 6px;
    }
    .who-copy strong { max-width: 42vw; }
    .foot-links {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 6px;
    }
    .foot-link { padding: 7px 12px; white-space: nowrap; }
    .foot-logout { display: none; }
    .main { padding: 18px 14px 48px; }
    .page-head h1 { font-size: 1.7rem; }
    .filters, .toolbar, .form-actions { align-items: stretch; }
    .filters label,
    .filters input,
    .filters select,
    .filters .btn,
    .toolbar .btn { width: 100%; min-width: 0; }
    .form-actions { flex-wrap: wrap; }
    .form-actions .btn { flex: 1 1 140px; }
    .card { padding: 12px; }
    .card-head { flex-wrap: wrap; }
    .stats, .form-grid, .login-wrap, .profile, .profile-dl, .hotel-fields, .dept-row, .vehicle-block { grid-template-columns: 1fr; }
    .form-grid > .card .profile-dl { grid-template-columns: 1fr; }
    .span-2 { grid-column: auto; }
    .login-wrap {
        padding: 28px 18px;
        padding-bottom: max(28px, env(safe-area-inset-bottom));
        gap: 22px;
        align-items: start;
    }
    .login-copy h1 { font-size: 2.2rem; }
    .login-copy .vision { font-size: 1.2rem; max-width: 18em; }
    input, select, textarea { font-size: 16px; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    table.data.is-cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
    table.data.is-cards,
    table.data.is-cards tbody,
    table.data.is-cards tr,
    table.data.is-cards td { display: block; width: auto; }
    table.data.is-cards tr {
        border: 1px solid var(--line);
        border-radius: 12px;
        margin: 0 0 12px;
        padding: 6px 12px;
        background: #fff;
    }
    table.data.is-cards td {
        display: grid;
        grid-template-columns: minmax(88px, 38%) 1fr;
        gap: 8px 10px;
        align-items: start;
        padding: 8px 0;
        border-bottom: 1px solid #f0e8dc;
        text-align: left;
        overflow-wrap: anywhere;
    }
    table.data.is-cards tr td:last-child { border-bottom: 0; }
    table.data.is-cards td:before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        font-weight: 600;
        padding-top: 3px;
    }
    table.data.is-cards td[data-label=""] { grid-template-columns: 1fr; }
    table.data.is-cards td[data-label=""]:before { content: none; }
    table.data.is-cards td.num { text-align: left; }
    table.data.is-cards tr.dept-under {
        border: 0;
        background: #faf6f1;
        padding: 4px 8px 10px;
        margin-top: -8px;
    }
    table.data.is-cards tr.dept-under td {
        display: block;
        border: 0;
        padding: 0;
    }
    table.data.is-cards tr.dept-under td:before { content: none; }
}

@media (max-width: 420px) {
    .brand strong { font-size: 1.05rem; }
    .login-copy h1 { font-size: 1.85rem; }
    .shot, .shot img { width: 100%; }
    .shot img { height: 160px; }
}
