﻿:root {
    --bg: #efe7dc;
    --bg-soft: rgba(253, 249, 244, 0.84);
    --surface: rgba(255, 252, 247, 0.9);
    --surface-strong: rgba(20, 28, 36, 0.92);
    --ink: #1a232b;
    --ink-soft: #56606c;
    --line: rgba(33, 45, 57, 0.12);
    --line-strong: rgba(33, 45, 57, 0.26);
    --accent: #bc6039;
    --accent-deep: #8f4120;
    --accent-soft: rgba(188, 96, 57, 0.14);
    --teal: #275f63;
    --teal-soft: rgba(39, 95, 99, 0.16);
    --gold-soft: rgba(201, 155, 74, 0.18);
    --success-bg: #e9f7ef;
    --success-text: #1e6d42;
    --error-bg: #fff1ed;
    --error-text: #bb4b37;
    --shadow: 0 20px 44px rgba(42, 36, 32, 0.12);
    --shadow-soft: 0 12px 24px rgba(42, 36, 32, 0.08);
    --radius-xl: 26px 26px 12px 26px;
    --radius-lg: 22px 22px 10px 22px;
    --radius-md: 16px 16px 8px 16px;
    --container: 1280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI Variable Text", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 12%, rgba(188, 96, 57, 0.18), transparent 24%),
        radial-gradient(circle at 88% 10%, rgba(39, 95, 99, 0.12), transparent 22%),
        linear-gradient(180deg, #f7f1ea 0%, #eee7dc 54%, #e7dfd4 100%);
}

.site-body,
.auth-page {
    min-height: 100vh;
    position: relative;
}

.site-body::before,
.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(27, 36, 45, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(27, 36, 45, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(circle at center, black 48%, transparent 92%);
    opacity: 0.36;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 55%);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    background: none;
}

.site-shell {
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 40px;
    position: relative;
    z-index: 1;
}

.page-stack {
    display: grid;
    gap: 24px;
}

.reveal {
    animation: rise-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.site-masthead,
.hero-banner,
.section-card,
.metric-card,
.shortcut-card,
.auth-story,
.auth-panel {
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.site-masthead,
.section-card,
.metric-card,
.shortcut-card,
.auth-panel {
    background: var(--bg-soft);
    backdrop-filter: blur(18px);
}

.hero-banner,
.auth-story,
.dark-card,
.dark-panel {
    color: #f4efe8;
}

.site-masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 24px;
    margin-bottom: 20px;
    border-radius: var(--radius-xl);
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.brand-mark {
    width: 58px;
    height: 58px;
    border-radius: 18px 18px 8px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: "Georgia", "Songti SC", serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
    box-shadow: 0 16px 26px rgba(39, 95, 99, 0.24);
}

.brand-copy h1,
.hero-copy h2,
.section-head h3,
.entry-head h4,
.auth-panel-header h2,
.auth-story h1,
.archive-head h4 {
    margin: 0;
    font-family: "Georgia", "Songti SC", serif;
    letter-spacing: 0.02em;
}

.brand-copy h1 {
    font-size: clamp(25px, 2.8vw, 34px);
    line-height: 1.08;
}

.brand-copy p,
.hero-copy p,
.section-card p,
.auth-panel p,
.auth-story p,
.note-panel p,
.entry-body p,
.archive-head p,
.legend-item p,
.metric-card span,
.form-footer,
.field-hint,
.calendar-link-hint {
    color: var(--ink-soft);
}

.brand-copy {
    min-width: 0;
}

.brand-copy p,
.hero-copy p,
.entry-body p,
.auth-story p,
.auth-panel p {
    line-height: 1.75;
}

.brand-copy p {
    margin: 0;
}

.header-actions,
.hero-actions,
.entry-actions,
.form-actions-row,
.badge-row,
.detail-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions form,
.entry-actions form {
    margin: 0;
}

.section-tag,
.status-pill,
.meta-note,
.brand-ribbon,
.light-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.section-tag,
.meta-note,
.brand-ribbon,
.status-pill {
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-deep);
    border: 1px solid rgba(188, 96, 57, 0.14);
}

.light-tag {
    color: #f7efe3;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.solid-btn,
.ghost-btn,
.danger-btn,
.text-btn,
.inline-link {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.solid-btn:hover,
.ghost-btn:hover,
.danger-btn:hover,
.text-btn:hover,
.inline-link:hover {
    transform: translateY(-1px);
}

.solid-btn,
.ghost-btn,
.danger-btn,
.wide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    cursor: pointer;
}

.solid-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    color: #fff;
    box-shadow: 0 16px 28px rgba(143, 65, 32, 0.22);
}

.ghost-btn {
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.68);
    color: var(--ink);
}

.danger-btn {
    background: linear-gradient(135deg, #b14a3f, #7f2b21);
    color: #fff;
    box-shadow: 0 16px 24px rgba(127, 43, 33, 0.2);
    border: none;
}

.text-btn,
.inline-link {
    border: none;
    cursor: pointer;
    color: var(--accent-deep);
    font-weight: 700;
    padding: 0;
}

.inline-link.light-link {
    color: #f6eadf;
}

.small-btn {
    padding: 9px 13px;
    font-size: 12px;
}

.code-copy-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0 10px;
}

.code-copy-row.compact {
    margin: 8px 0 0;
    gap: 10px;
}

.code-copy-label {
    font-weight: 700;
    color: var(--ink-soft);
}

.code-copy-row .code-value {
    margin: 0;
}

.code-inline-value {
    display: inline-block;
    margin: 0;
    font-family: "Georgia", "Songti SC", serif;
    font-size: 18px;
    letter-spacing: 0.08em;
    color: var(--ink);
}

.code-copy-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

.code-copy-btn.is-copied {
    border-color: rgba(39, 95, 99, 0.24);
    background: rgba(39, 95, 99, 0.12);
    color: var(--accent-deep);
}

.code-copy-btn.is-error {
    border-color: rgba(177, 74, 63, 0.3);
    background: rgba(177, 74, 63, 0.12);
    color: var(--error-text);
}

.wide-btn {
    width: 100%;
}

.flash-stack {
    display: grid;
    gap: 12px;
}

.flash-banner {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid transparent;
    box-shadow: var(--shadow-soft);
}

.flash-banner.success {
    background: var(--success-bg);
    color: var(--success-text);
    border-color: rgba(30, 109, 66, 0.12);
}

.flash-banner.error {
    background: var(--error-bg);
    color: var(--error-text);
    border-color: rgba(187, 75, 55, 0.12);
}

.hero-banner {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 20px;
    padding: 36px;
    border-radius: 40px 40px 20px 40px;
    background:
        radial-gradient(circle at top left, rgba(226, 166, 122, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(72, 123, 122, 0.24), transparent 28%),
        linear-gradient(135deg, #16222e 0%, #203546 52%, #295158 100%);
}

.landing-hero,
.business-hero {
    grid-template-columns: minmax(0, 1fr);
}

.hero-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent 48%);
    pointer-events: none;
}

.hero-copy h2 {
    font-size: clamp(30px, 4.2vw, 46px);
    line-height: 1.08;
    letter-spacing: 0.01em;
    max-width: 13ch;
}

.hero-copy p {
    color: rgba(244, 239, 232, 0.78);
    max-width: 34rem;
    margin: 16px 0 0;
    line-height: 1.72;
}

.hero-panel-grid {
    display: grid;
    gap: 16px;
    align-content: start;
}

.landing-hero .hero-copy,
.business-hero .hero-copy {
    display: grid;
    align-content: start;
}

.business-hero .hero-actions {
    margin-top: 20px;
}

.business-hero .hero-copy p {
    max-width: 30rem;
    margin-top: 14px;
}

.insight-card {
    padding: 24px;
    border-radius: 26px 26px 14px 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.08));
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: var(--shadow-soft);
}

.insight-card strong,
.metric-number,
.bullet-grid strong {
    display: block;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1;
    margin: 12px 0 10px;
    font-family: "Georgia", "Songti SC", serif;
}

.insight-card p,
.dark-panel p,
.dark-card p {
    color: rgba(244, 239, 232, 0.76);
}

.accent-panel {
    background: linear-gradient(135deg, rgba(186, 96, 58, 0.88), rgba(130, 62, 35, 0.84));
}

.dark-panel,
.dark-card {
    background: linear-gradient(145deg, rgba(22, 31, 39, 0.94), rgba(29, 44, 56, 0.92));
}

.metric-grid,
.shortcut-grid,
.bullet-grid,
.story-grid {
    display: grid;
    gap: 16px;
}

.metric-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.shortcut-grid,
.story-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.metric-card,
.shortcut-card,
.story-grid article {
    padding: 22px;
    border-radius: var(--radius-lg);
}

.metric-card {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: space-between;
    gap: 16px;
    min-height: 144px;
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.96), rgba(243, 236, 228, 0.9));
    border: 1px solid rgba(33, 45, 57, 0.08);
    box-shadow: 0 14px 24px rgba(42, 36, 32, 0.08);
}

.metric-card--primary {
    grid-column: span 3;
}

.metric-card--secondary {
    grid-column: span 6;
    min-height: 132px;
}

.metric-card--compact {
    grid-column: span 4;
}

.metric-card::before {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    top: 0;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(188, 96, 57, 0.82), rgba(39, 95, 99, 0.78));
}

.metric-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -34% auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(188, 96, 57, 0.1), transparent 66%);
    pointer-events: none;
}

.metric-card.tone-warm {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.97), rgba(247, 233, 214, 0.88));
}

.metric-card.tone-ink {
    background: linear-gradient(145deg, rgba(24, 31, 38, 0.95), rgba(34, 54, 68, 0.92));
    color: #f6eee3;
}

.metric-card.tone-ink::before {
    background: linear-gradient(90deg, rgba(255, 210, 171, 0.82), rgba(122, 189, 177, 0.78));
}

.metric-card.tone-ink::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 66%);
}

.metric-card.tone-ink span {
    color: rgba(246, 238, 227, 0.72);
}

.metric-card.tone-soft {
    background: linear-gradient(180deg, rgba(237, 246, 243, 0.98), rgba(223, 236, 232, 0.88));
}

.shortcut-card {
    position: relative;
    overflow: hidden;
}

.shortcut-card::after {
    content: "";
    position: absolute;
    inset: auto -18% -38% auto;
    width: 190px;
    height: 190px;
    background: radial-gradient(circle, rgba(188, 96, 57, 0.2), transparent 66%);
}

.warm-card {
    background: linear-gradient(180deg, rgba(255, 248, 240, 0.96), rgba(247, 233, 212, 0.88));
}

.shortcut-card.dark-card::after {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 68%);
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
    gap: 20px;
    align-items: start;
}

.main-column {
    min-width: 0;
}

.section-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, rgba(255, 251, 247, 0.94), rgba(243, 236, 228, 0.88));
    border: 1px solid rgba(33, 45, 57, 0.08);
    box-shadow: 0 14px 28px rgba(42, 36, 32, 0.08);
}

.side-tone {
    background: linear-gradient(180deg, rgba(251, 247, 240, 0.98), rgba(239, 233, 224, 0.92));
}

.section-head,
.archive-head,
.entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.section-head {
    margin-bottom: 16px;
}

.section-head h3 {
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.14;
}

.section-head-note {
    margin: 10px 0 0;
}

.section-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-minor-link {
    display: inline-flex;
    margin-top: 16px;
}

.empty-panel,
.note-panel {
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px dashed var(--line-strong);
    background: rgba(255, 255, 255, 0.58);
}

.collapsible-card {
    padding: 0;
    overflow: hidden;
}

.collapsible-card > summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px;
    user-select: none;
}

.collapsible-card > summary::-webkit-details-marker {
    display: none;
}

.collapsible-card > summary:focus-visible {
    outline: 2px solid rgba(39, 95, 99, 0.32);
    outline-offset: -2px;
}

.collapsible-summary-copy {
    min-width: 0;
}

.collapsible-summary-copy h3 {
    margin: 10px 0 8px;
    font-size: 26px;
    line-height: 1.14;
}

.collapsible-summary-copy p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.summary-hint {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.72);
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.summary-hint::after {
    content: "▾";
    font-size: 14px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.collapsible-card[open] > summary {
    border-bottom: 1px solid var(--line);
}

.collapsible-card[open] > summary .summary-hint::after {
    transform: rotate(180deg);
}

.collapsible-body {
    padding: 0 28px 28px;
    display: grid;
    gap: 18px;
}

.empty-panel h4 {
    margin: 0 0 10px;
    font-family: "Georgia", "Songti SC", serif;
}

.small-empty {
    padding: 16px 18px;
}

.entry-list,
.archive-stack {
    display: grid;
    gap: 16px;
}

.entry-card,
.archive-group {
    padding: 20px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.compact-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
}

.entry-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
}

.entry-stamp {
    min-width: 88px;
    padding: 16px 14px;
    border-radius: 18px 18px 8px 18px;
    background: linear-gradient(180deg, rgba(188, 96, 57, 0.14), rgba(39, 95, 99, 0.08));
    border: 1px solid rgba(188, 96, 57, 0.16);
    text-align: center;
}

.entry-stamp span {
    display: block;
    font-weight: 700;
    font-size: 18px;
    color: var(--ink);
}

.entry-stamp small {
    display: block;
    margin-top: 8px;
    color: var(--ink-soft);
}

.large-stamp {
    min-width: 100px;
}

.small-stamp {
    min-width: 96px;
}

.entry-body {
    min-width: 0;
}

.entry-body p {
    margin: 12px 0 0;
    white-space: pre-wrap;
}

.entry-meta {
    margin-top: 16px;
}

.bullet-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.bullet-grid article,
.story-grid article {
    padding: 18px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.56);
    border: 1px solid rgba(33, 45, 57, 0.08);
}

.compact-bullets {
    margin-top: 20px;
}

.account-action-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(33, 45, 57, 0.12);
    display: grid;
    gap: 12px;
}

.account-action-panel p {
    margin: 0;
    color: var(--ink-soft);
    line-height: 1.65;
}

.account-action-panel form {
    margin: 0;
}

.light-grid article {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
}

.light-grid p {
    color: rgba(244, 239, 232, 0.74);
}

.pager-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.form-stack {
    display: grid;
    gap: 18px;
}

.form-stack label {
    display: grid;
    gap: 9px;
}

.form-stack span {
    font-size: 14px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(33, 45, 57, 0.14);
    background: rgba(255, 255, 255, 0.9);
    color: var(--ink);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea {
    resize: vertical;
    min-height: 140px;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: rgba(39, 95, 99, 0.42);
    box-shadow: 0 0 0 4px rgba(39, 95, 99, 0.1);
    transform: translateY(-1px);
}

.checkbox-inline {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-inline input {
    width: auto;
}

.field-error {
    color: var(--error-text);
    font-size: 12px;
}

.field-hint {
    font-size: 12px;
}

.form-footer {
    margin: 22px 0 0;
}

.form-footer a {
    font-weight: 700;
    color: var(--accent-deep);
}
.auth-layout {
    min-height: 100vh;
    width: min(var(--container), calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    gap: 24px;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.reverse-auth-layout {
    grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
}

.auth-story,
.auth-panel {
    padding: 34px;
    border-radius: 38px 38px 18px 38px;
}

.auth-story {
    background:
        radial-gradient(circle at top right, rgba(255, 225, 188, 0.18), transparent 26%),
        linear-gradient(145deg, #17202a 0%, #233240 50%, #2d5f65 100%);
    display: grid;
    align-content: space-between;
    gap: 24px;
}

.story-topline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.brand-ribbon {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

.auth-story h1 {
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.04;
}

.auth-story p {
    color: rgba(244, 239, 232, 0.76);
}

.story-grid article {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.story-grid strong {
    display: block;
    margin-bottom: 8px;
    color: #fff;
}

.auth-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-panel-header {
    margin-bottom: 20px;
}

.auth-panel-header h2 {
    font-size: 38px;
    line-height: 1.1;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 12px;
}

.calendar-week span {
    text-align: center;
    color: var(--ink-soft);
    font-weight: 700;
}

.calendar-board {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 12px;
}

.calendar-card {
    min-height: 172px;
    padding: 16px;
    border-radius: 22px 22px 10px 22px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(250, 244, 237, 0.82));
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.calendar-card:hover {
    transform: translateY(-2px);
    border-color: rgba(39, 95, 99, 0.28);
}

.calendar-card.is-active {
    background: linear-gradient(180deg, rgba(255, 237, 220, 0.96), rgba(246, 217, 180, 0.92));
    border-color: rgba(188, 96, 57, 0.28);
}

.calendar-card.is-muted {
    opacity: 0.52;
}

.calendar-card.is-today {
    box-shadow: inset 0 0 0 2px rgba(39, 95, 99, 0.76), var(--shadow-soft);
}

.calendar-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.calendar-day-number {
    font-size: 26px;
    font-family: "Georgia", "Songti SC", serif;
    color: var(--ink);
}

.calendar-count {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(33, 45, 57, 0.1);
}

.calendar-card-body {
    display: grid;
    gap: 10px;
}

.calendar-card-body strong {
    color: var(--ink);
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.legend-list {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.legend-swatch {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.9);
}

.legend-swatch.active {
    background: linear-gradient(180deg, rgba(255, 237, 220, 0.96), rgba(246, 217, 180, 0.92));
}

.legend-swatch.today {
    box-shadow: inset 0 0 0 2px rgba(39, 95, 99, 0.76);
}

.legend-swatch.muted {
    opacity: 0.52;
}
.sticky-card {
    position: sticky;
    top: 24px;
}

.upload-zone {
    position: relative;
    padding: 6px;
    border-radius: 28px;
    border: 2px dashed rgba(39, 95, 99, 0.28);
    background: linear-gradient(180deg, rgba(252, 248, 243, 0.98), rgba(246, 237, 225, 0.9));
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    outline: none;
}

.upload-zone:hover,
.upload-zone:focus,
.upload-zone.is-dragover {
    border-color: rgba(39, 95, 99, 0.54);
    box-shadow: 0 20px 36px rgba(39, 95, 99, 0.14);
    transform: translateY(-1px);
}

.upload-zone.has-file {
    border-style: solid;
    border-color: rgba(30, 109, 66, 0.38);
}

.native-file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.upload-zone-inner {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-height: 220px;
    padding: 34px 24px;
    text-align: center;
}

.upload-glyph {
    width: 72px;
    height: 72px;
    border-radius: 22px 22px 10px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    color: var(--teal);
    background: rgba(39, 95, 99, 0.1);
}

.upload-copy h4 {
    margin: 0;
    font-family: "Georgia", "Songti SC", serif;
    font-size: 28px;
}

.upload-copy p {
    margin: 10px 0 0;
}

.upload-meta {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-deep);
}

.archive-head {
    margin-bottom: 14px;
}

.note-panel {
    margin-top: 20px;
}

.business-hero {
    background:
        radial-gradient(circle at top left, rgba(226, 169, 128, 0.18), transparent 30%),
        radial-gradient(circle at bottom right, rgba(79, 134, 116, 0.22), transparent 28%),
        linear-gradient(135deg, #172430 0%, #213647 48%, #2c6157 100%);
}

.business-hero + .metric-grid {
    margin-top: -2px;
}

.business-card {
    background:
        radial-gradient(circle at top right, rgba(39, 95, 99, 0.16), transparent 32%),
        linear-gradient(180deg, rgba(250, 248, 243, 0.96), rgba(233, 245, 240, 0.88));
}

.landing-hero {
    align-items: center;
}

.home-focus-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.24fr) minmax(320px, 0.76fr);
    gap: 18px;
    align-items: stretch;
}

.home-focus-layout .landing-hero {
    height: 100%;
    min-height: 100%;
}

.home-primary-stack {
    display: grid;
    gap: 18px;
    align-content: stretch;
}

.home-primary-stack .home-module-card--primary {
    min-height: 0;
    height: 100%;
}

.home-aux {
    gap: 18px;
}

.home-aux .section-card {
    background: linear-gradient(180deg, rgba(252, 248, 243, 0.92), rgba(241, 235, 226, 0.84));
}

.home-aux .section-head {
    margin-bottom: 18px;
}

.home-aux .entry-card {
    background: rgba(255, 255, 255, 0.68);
}

.home-aux .main-column {
    grid-column: 1 / -1;
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.home-module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-module-grid--secondary {
    gap: 16px;
}

.home-module-card {
    position: relative;
    overflow: hidden;
    min-height: 248px;
    padding: 22px;
    border-radius: 28px 28px 14px 28px;
    border: 1px solid rgba(33, 45, 57, 0.08);
    box-shadow: 0 16px 30px rgba(42, 36, 32, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-module-card--primary {
    min-height: 292px;
    padding: 24px;
    gap: 18px;
}

.home-module-card--secondary {
    min-height: 208px;
    padding: 20px;
    gap: 12px;
    align-self: start;
}

.home-module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 42px rgba(42, 36, 32, 0.16);
}

.home-module-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -24% auto;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
    pointer-events: none;
}

.home-module-card__head h3 {
    margin: 12px 0 6px;
    font-family: "Georgia", "Songti SC", serif;
    font-size: clamp(24px, 2.3vw, 30px);
    line-height: 1.12;
    max-width: 12ch;
}

.home-module-card--secondary .home-module-card__head h3 {
    font-size: clamp(20px, 1.8vw, 25px);
    margin: 12px 0 6px;
    max-width: none;
}

.home-module-card__head p,
.home-module-card__profile p {
    margin: 0;
    line-height: 1.68;
    font-size: 15px;
}

.home-module-card--secondary .home-module-card__head p,
.home-module-card--secondary .home-module-card__profile p {
    font-size: 14px;
    line-height: 1.6;
}

.home-module-card__meta,
.home-module-card__profile {
    display: grid;
    gap: 10px;
    padding: 16px 16px 14px;
    border-radius: 20px;
    backdrop-filter: blur(14px);
}

.home-module-card__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-module-card__code,
.home-module-card__profile strong {
    display: block;
    font-family: "Georgia", "Songti SC", serif;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.05;
}

.home-module-card__tips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.home-module-card__tips span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.home-module-card__metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
    gap: 10px;
    padding: 4px;
    border-radius: 24px;
}

.home-module-card--secondary .home-module-card__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    border-radius: 20px;
}

.home-module-card__metrics article {
    padding: 14px 12px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.home-module-card--secondary .home-module-card__metrics article {
    padding: 14px 12px;
    border-radius: 16px;
}

.home-module-card__metrics strong {
    display: block;
    margin-bottom: 4px;
    font-family: "Georgia", "Songti SC", serif;
    font-size: 24px;
    line-height: 1;
}

.home-module-card--secondary .home-module-card__metrics strong {
    font-size: 22px;
    margin-bottom: 4px;
}

.home-module-card__metrics span {
    font-size: 12px;
    line-height: 1.45;
}

.home-module-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.home-module-card--secondary .home-module-card__footer {
    padding-top: 10px;
    gap: 10px;
}

.module-tone-business,
.module-tone-checkin {
    color: #f6efe8;
}

.module-tone-business {
    background:
        radial-gradient(circle at top left, rgba(255, 209, 167, 0.16), transparent 32%),
        linear-gradient(135deg, #1a2834 0%, #2d4355 56%, #456658 100%);
}

.module-tone-checkin {
    background:
        radial-gradient(circle at top right, rgba(203, 229, 255, 0.16), transparent 34%),
        linear-gradient(135deg, #192332 0%, #27394d 54%, #586b90 100%);
}

.module-tone-business .section-tag,
.module-tone-checkin .section-tag {
    color: #f7efe4;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

.module-tone-business .home-module-card__head p,
.module-tone-business .home-module-card__eyebrow,
.module-tone-business .choice-meta,
.module-tone-checkin .home-module-card__head p,
.module-tone-checkin .choice-meta {
    color: rgba(246, 239, 232, 0.82);
}

.module-tone-business .home-module-card__tips span,
.module-tone-business .home-module-card__metrics article,
.module-tone-checkin .home-module-card__metrics article {
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
}

.module-tone-business .home-module-card__tips span,
.module-tone-business .home-module-card__metrics span,
.module-tone-checkin .home-module-card__metrics span {
    color: rgba(246, 239, 232, 0.8);
}

.module-tone-business .home-module-card__meta,
.module-tone-checkin .home-module-card__metrics {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.module-tone-business .home-module-card__code,
.module-tone-checkin .home-module-card__metrics strong {
    color: #fff8f0;
}

.module-tone-memo,
.module-tone-profile {
    color: var(--ink);
}

.module-tone-memo {
    background:
        radial-gradient(circle at top left, rgba(39, 95, 99, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(249, 251, 249, 0.97), rgba(229, 239, 235, 0.93));
}

.module-tone-profile {
    background:
        radial-gradient(circle at top right, rgba(188, 96, 57, 0.12), transparent 32%),
        linear-gradient(180deg, rgba(253, 248, 242, 0.97), rgba(244, 235, 225, 0.93));
}

.module-tone-memo .home-module-card__metrics article,
.module-tone-profile .home-module-card__profile {
    border: 1px solid rgba(33, 45, 57, 0.08);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.module-tone-memo .home-module-card__metrics,
.module-tone-profile .home-module-card__profile,
.module-tone-memo .home-module-card__profile,
.module-tone-profile .home-module-card__profile {
    border: 1px solid rgba(33, 45, 57, 0.08);
    background: rgba(255, 255, 255, 0.56);
}

.module-tone-memo .home-module-card__metrics span,
.module-tone-profile .home-module-card__profile p,
.module-tone-profile .choice-meta {
    color: var(--ink-soft);
}

.module-tone-memo .choice-meta,
.module-tone-profile .choice-meta {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(33, 45, 57, 0.08);
}

.module-tone-memo .home-module-card__footer,
.module-tone-profile .home-module-card__footer {
    border-top-color: rgba(33, 45, 57, 0.08);
}

.module-tone-memo .home-module-card__metrics strong,
.module-tone-profile .home-module-card__profile strong {
    color: var(--ink);
}

.module-tabbar {
    display: none;
}

.choice-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    padding: 30px;
    border-radius: 38px 38px 18px 38px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.choice-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 42px rgba(42, 36, 32, 0.14);
}

.choice-card::after {
    content: "";
    position: absolute;
    inset: auto -12% -28% auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
    pointer-events: none;
}

.choice-card h3 {
    margin: 16px 0 12px;
    font-family: "Georgia", "Songti SC", serif;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.04;
}

.choice-card p {
    margin: 0;
    line-height: 1.75;
    max-width: 34ch;
}

.choice-footer {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.choice-meta {
    display: inline-flex;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.14);
}

.choice-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 15px;
}

.choice-cta::after {
    content: "→";
    font-size: 16px;
}

.home-module-card--secondary .choice-cta {
    font-size: 14px;
}

.business-choice {
    color: #f6efe8;
    background:
        radial-gradient(circle at top left, rgba(255, 208, 169, 0.18), transparent 32%),
        linear-gradient(135deg, #1d2a35 0%, #314c60 56%, #4b7057 100%);
}

.business-choice .section-tag {
    color: #f7efe4;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

.business-choice p,
.business-choice .choice-meta {
    color: rgba(246, 239, 232, 0.8);
}

.checkin-choice {
    color: #f6efe8;
    background:
        radial-gradient(circle at top right, rgba(203, 229, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #1a2330 0%, #26384a 54%, #5f6f96 100%);
}

.checkin-choice .section-tag {
    color: #f7efe4;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.16);
}

.checkin-choice p,
.checkin-choice .choice-meta {
    color: rgba(246, 239, 232, 0.8);
}

.note-layout {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
    gap: 18px;
    align-items: start;
}

.note-current {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(39, 95, 99, 0.12);
    background: linear-gradient(135deg, rgba(39, 95, 99, 0.1), rgba(188, 96, 57, 0.08));
    box-shadow: var(--shadow-soft);
}

.note-current p {
    margin: 0;
}

.note-form {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(33, 45, 57, 0.1);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.filter-card {
    background: linear-gradient(180deg, rgba(250, 246, 239, 0.96), rgba(244, 236, 225, 0.9));
}

.filter-form {
    margin-top: 14px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    align-items: end;
}

.filter-grid label {
    display: grid;
    gap: 9px;
}

.filter-grid span {
    font-size: 14px;
    font-weight: 700;
}

.filter-actions {
    display: flex;
    align-items: end;
}

.scope-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.scope-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-weight: 700;
}

.scope-chip.active {
    color: #fff;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
    border-color: transparent;
}

.business-filter-card {
    display: grid;
    align-content: start;
    gap: 12px;
}

.business-filter-card p {
    margin: 0;
}

.business-hero-scope {
    margin-top: 0;
    gap: 8px;
}

.business-hero-scope .scope-chip {
    padding: 8px 12px;
    min-width: 0;
    font-size: 12px;
}

.code-panel {
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(39, 95, 99, 0.12);
    background: linear-gradient(135deg, rgba(39, 95, 99, 0.1), rgba(188, 96, 57, 0.08));
    box-shadow: var(--shadow-soft);
}

.code-value {
    display: block;
    margin: 12px 0 10px;
    font-family: "Georgia", "Songti SC", serif;
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: 0.08em;
    color: var(--ink);
}

.reporter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.reporter-card {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px 20px 12px 20px;
    border: 1px solid rgba(33, 45, 57, 0.08);
    background: linear-gradient(180deg, rgba(255, 251, 246, 0.94), rgba(241, 235, 227, 0.88));
    box-shadow: 0 16px 28px rgba(42, 36, 32, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.reporter-card:hover {
    transform: translateY(-2px);
    border-color: rgba(39, 95, 99, 0.16);
    box-shadow: 0 22px 32px rgba(42, 36, 32, 0.12);
}

.reporter-card h4 {
    margin: 0 0 4px;
    font-family: "Georgia", "Songti SC", serif;
    font-size: 20px;
    line-height: 1.15;
}

.reporter-card p {
    margin: 0;
    font-size: 12px;
    color: var(--ink-soft);
}

.reporter-card p + p {
    margin-top: 4px;
}

.reporter-card strong {
    align-self: flex-end;
    font-size: 24px;
    font-family: "Georgia", "Songti SC", serif;
    color: var(--accent-deep);
}

.business-hero .hero-panel-grid .insight-card strong {
    font-size: clamp(26px, 2.4vw, 34px);
}

.business-page .site-masthead {
    padding-block: 22px;
}

.business-page .brand-copy {
    gap: 6px;
}

.business-page .brand-copy p {
    max-width: 36rem;
    color: var(--ink-soft);
}

.business-form-page .site-masthead {
    align-items: flex-start;
}

.checkin-page .site-masthead {
    margin-bottom: 18px;
}

.checkin-page .brand-copy p {
    max-width: 32rem;
}

.checkin-page .section-head {
    margin-bottom: 18px;
}

.checkin-page .metric-grid {
    margin-top: -4px;
}

.memo-page .site-masthead,
.profile-page .site-masthead {
    margin-bottom: 18px;
}

.memo-page .section-head,
.profile-page .section-head {
    margin-bottom: 18px;
}

.profile-page .content-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 18px;
}

.profile-account-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(33, 45, 57, 0.12);
    display: grid;
    gap: 14px;
}

.profile-account-head {
    margin-bottom: 0;
}

.profile-account-list {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-account-list article {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(33, 45, 57, 0.08);
}

.profile-account-list strong {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    font-family: inherit;
    color: var(--ink-soft);
}

.profile-account-list p {
    margin: 0;
    color: var(--ink);
    line-height: 1.55;
}

.profile-code-panel {
    margin-top: 2px;
}

.profile-account-actions {
    margin-top: 2px;
    padding-top: 0;
    border-top: 0;
}

.profile-subsection {
    padding-top: 18px;
    border-top: 1px solid rgba(33, 45, 57, 0.12);
    display: grid;
    gap: 14px;
}

.checkin-form-page .site-masthead {
    align-items: flex-start;
}

.checkin-form-page .section-tools {
    align-self: center;
}

.business-form-page .section-tools {
    align-self: center;
}

.business-page .hero-panel-grid {
    grid-template-columns: repeat(2, minmax(220px, 260px));
    justify-content: end;
}

.table-scroll {
    overflow-x: auto;
    margin-top: 18px;
}

.record-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
}

.record-table th,
.record-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.record-table th {
    text-align: left;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.record-table tr:hover td {
    background: rgba(39, 95, 99, 0.04);
}

.record-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.record-tag.report {
    background: rgba(188, 96, 57, 0.14);
    color: var(--accent-deep);
}

.record-tag.inbound {
    background: rgba(39, 95, 99, 0.14);
    color: var(--teal);
}

.record-tag.uninventoried {
    background: rgba(185, 77, 48, 0.12);
    color: var(--accent-deep);
}

.record-tag.pending {
    background: rgba(201, 155, 74, 0.16);
    color: #8d5d16;
}

.record-tag.settled {
    background: rgba(30, 109, 66, 0.14);
    color: var(--success-text);
}

.record-tag.self {
    margin-left: 8px;
    background: rgba(33, 45, 57, 0.08);
    color: var(--ink);
}

.row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.row-actions form {
    margin: 0;
}

.mobile-record-list {
    display: none;
}

.record-chip-row {
    margin-top: 14px;
}

.record-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.record-info-item {
    padding: 12px 14px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(33, 45, 57, 0.08);
    display: grid;
    gap: 6px;
}

.record-info-item span {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
}

.record-info-item strong {
    font-size: 16px;
    line-height: 1.1;
    font-family: "Georgia", "Songti SC", serif;
}

.record-remark {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    white-space: pre-wrap;
    line-height: 1.6;
}

.business-mobile-viewbar {
    display: none;
}

.business-mobile-viewbar__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 16px;
    border: 1px solid rgba(33, 45, 57, 0.08);
    background: rgba(255, 255, 255, 0.8);
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
}

.business-mobile-viewbar__item.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
}

.business-mobile-panel {
    display: grid;
    gap: 24px;
}

.readonly-card {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(33, 45, 57, 0.1);
    background: rgba(255, 255, 255, 0.74);
    display: grid;
    gap: 8px;
}

.readonly-card strong {
    font-size: 18px;
    font-family: "Georgia", "Songti SC", serif;
}

.business-form-block {
    display: grid;
    gap: 16px;
    padding: 20px 22px;
    border-radius: 24px;
    border: 1px solid rgba(33, 45, 57, 0.08);
    background: rgba(255, 255, 255, 0.56);
}

.business-form-block + .business-form-block {
    margin-top: 2px;
}

.business-form-block__head {
    display: grid;
    gap: 8px;
}

.business-form-block__head h4 {
    margin: 0;
    font-size: 22px;
    line-height: 1.16;
    font-family: "Georgia", "Songti SC", serif;
    color: var(--ink);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-span-2 {
    grid-column: span 2;
}

.business-form textarea {
    min-height: 160px;
}

.business-form-side {
    position: sticky;
    top: 24px;
}

.business-form-side__stack {
    display: grid;
    gap: 16px;
}

@media (max-width: 1100px) {
    .home-focus-layout,
    .hero-banner,
    .content-grid,
    .auth-layout,
    .reverse-auth-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-primary-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticky-card {
        position: static;
    }
}

@media (max-width: 900px) {
    .calendar-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-week {
        display: none;
    }

    .choice-grid,
    .home-module-grid,
    .note-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-primary-stack {
        grid-template-columns: minmax(0, 1fr);
    }

    .profile-account-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-hide {
        display: none !important;
    }

    .login-page .auth-layout,
    .register-page .auth-layout {
        min-height: 100dvh;
        min-height: 100svh;
        padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
        align-items: start;
        align-content: start;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scroll-padding-top: 16px;
        scroll-padding-bottom: calc(24px + env(safe-area-inset-bottom));
    }

    .login-page .auth-story,
    .register-page .auth-story {
        display: none;
    }

    .login-page .auth-panel,
    .register-page .auth-panel {
        gap: 0;
        justify-content: flex-start;
        align-self: start;
    }

    .login-page .auth-panel-header,
    .register-page .auth-panel-header {
        margin-bottom: 14px;
    }

    .login-page .auth-panel-header h2,
    .register-page .auth-panel-header h2 {
        font-size: 31px;
    }

    .login-page .auth-panel-header p,
    .register-page .auth-panel-header p {
        margin-top: 8px;
    }

    .login-page .flash-stack,
    .register-page .flash-stack {
        gap: 10px;
        margin-bottom: 12px;
    }

    .login-page .flash-banner,
    .register-page .flash-banner {
        padding: 11px 13px;
        border-radius: 14px;
        font-size: 13px;
    }

    .login-page .form-stack,
    .register-page .form-stack {
        gap: 14px;
    }

    .login-page .form-stack label,
    .register-page .form-stack label {
        gap: 7px;
    }

    .login-page .form-stack span,
    .register-page .form-stack span {
        font-size: 13px;
    }

    .login-page input,
    .register-page input {
        padding: 12px 14px;
        border-radius: 16px;
    }

    .login-page .checkbox-inline,
    .register-page .checkbox-inline {
        gap: 8px;
        font-size: 13px;
    }

    .login-page .solid-btn.wide-btn,
    .register-page .solid-btn.wide-btn {
        min-height: 46px;
        padding: 11px 14px;
    }

    .login-page .form-footer,
    .register-page .form-footer {
        margin-top: 16px;
        font-size: 13px;
    }

    .site-shell,
    .auth-layout {
        width: min(var(--container), calc(100% - 24px));
    }

    .site-shell {
        padding: 16px 0 calc(126px + env(safe-area-inset-bottom));
    }

    .page-stack {
        gap: 16px;
    }

    .site-masthead,
    .section-card,
    .metric-card,
    .shortcut-card,
    .auth-story,
    .auth-panel,
    .hero-banner {
        padding: 20px;
        border-radius: 26px 26px 14px 26px;
    }

    .site-masthead,
    .entry-card,
    .compact-card,
    .section-head,
    .archive-head,
    .entry-head {
        grid-template-columns: minmax(0, 1fr);
        flex-direction: column;
        align-items: flex-start;
    }

    .entry-card,
    .compact-card {
        display: grid;
        gap: 16px;
    }

    .site-masthead {
        align-items: stretch;
        justify-content: flex-start;
        margin-bottom: 16px;
        gap: 16px;
    }

    .brand-block {
        width: 100%;
        align-items: flex-start;
        gap: 14px;
    }

    .brand-mark {
        width: 50px;
        height: 50px;
        border-radius: 16px 16px 8px 16px;
        font-size: 22px;
        flex-shrink: 0;
    }

    .brand-copy {
        display: grid;
        gap: 8px;
        width: 100%;
    }

    .brand-copy h1 {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.12;
    }

    .brand-copy p {
        line-height: 1.55;
    }

    .business-page .site-masthead {
        margin-bottom: 12px;
    }

    .business-page .brand-copy p {
        font-size: 13px;
        line-height: 1.5;
    }

    .business-form-page .section-tools {
        align-self: flex-start;
    }

    .checkin-form-page .section-tools {
        align-self: flex-start;
    }

    .business-page .hero-panel-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .header-actions,
    .hero-actions,
    .form-actions-row,
    .detail-nav {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .header-actions,
    .detail-nav {
        position: static;
        left: auto;
        bottom: auto;
        transform: none;
        z-index: auto;
        width: 100%;
        padding: 0;
        border-radius: 0;
        border: 0;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 10px;
        scrollbar-width: none;
    }

    .header-actions::-webkit-scrollbar,
    .detail-nav::-webkit-scrollbar {
        display: none;
    }

    .header-actions > *,
    .detail-nav > * {
        flex: 0 0 auto;
        min-width: max-content;
        width: auto;
    }

    .header-actions .ghost-btn,
    .header-actions .solid-btn,
    .header-actions .text-btn,
    .detail-nav .ghost-btn,
    .detail-nav .solid-btn,
    .detail-nav .text-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        white-space: nowrap;
        text-align: center;
        padding: 10px 14px;
        min-height: 42px;
        font-size: 13px;
        line-height: 1;
    }

    .header-actions .text-btn,
    .detail-nav .text-btn {
        border: 1px solid var(--line-strong);
        background: rgba(255, 255, 255, 0.68);
        border-radius: 999px;
        color: var(--accent-deep);
    }

    .header-actions form,
    .detail-nav form {
        width: auto;
    }

    .header-actions form button,
    .detail-nav form button {
        width: auto;
    }

    .module-tabbar {
        position: fixed;
        left: 50%;
        bottom: calc(12px + env(safe-area-inset-bottom));
        transform: translateX(-50%);
        z-index: 30;
        display: block;
        width: min(calc(100% - 18px), 640px);
    }

    .module-tabbar__shell {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
        padding: 8px;
        border-radius: 26px;
        border: 1px solid rgba(33, 45, 57, 0.08);
        background: rgba(255, 252, 247, 0.94);
        backdrop-filter: blur(18px);
        box-shadow: 0 18px 38px rgba(42, 36, 32, 0.16);
    }

    .module-tabbar__item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 6px;
        min-height: 66px;
        padding: 8px 4px;
        border-radius: 18px;
        color: var(--ink-soft);
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 0.02em;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .module-tabbar__item.is-active {
        color: #fff;
        background: linear-gradient(135deg, var(--accent) 0%, var(--teal) 100%);
        box-shadow: 0 12px 20px rgba(39, 95, 99, 0.2);
        transform: translateY(-1px);
    }

    .module-tabbar__icon {
        width: 34px;
        height: 34px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: rgba(33, 45, 57, 0.06);
        color: currentColor;
    }

    .module-tabbar__item.is-active .module-tabbar__icon {
        background: rgba(255, 255, 255, 0.16);
    }

    .module-tabbar__icon svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
        stroke-width: 1.8;
    }

    .home-module-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .home-focus-layout {
        gap: 14px;
    }

    .home-module-card {
        min-height: 0;
        padding: 20px;
        gap: 16px;
    }

    .home-module-card--primary,
    .home-module-card--secondary {
        min-height: 0;
        padding: 20px;
        gap: 16px;
    }

    .home-module-card__head h3 {
        font-size: clamp(24px, 7vw, 32px);
    }

    .home-module-card--secondary .home-module-card__head h3 {
        font-size: clamp(22px, 6.5vw, 28px);
    }

    .home-module-card__footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-tools {
        width: 100%;
        justify-content: flex-start;
    }

    .hero-actions > *,
    .form-actions-row > * {
        width: 100%;
    }

    .business-form-side {
        position: static;
    }

    .hero-actions form,
    .form-actions-row form {
        width: 100%;
    }

    .hero-actions form button,
    .form-actions-row form button {
        width: 100%;
    }

    .landing-hero .hero-copy h2 {
        font-size: clamp(26px, 8vw, 36px);
    }

    .landing-hero .hero-copy p {
        margin-top: 12px;
    }

    .landing-hero .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .landing-hero .hero-actions > * {
        width: 100%;
    }

    .form-actions-row .inline-link {
        display: inline-flex;
        justify-content: center;
        width: 100%;
        padding: 4px 0 0;
    }

    .code-copy-row {
        width: 100%;
        gap: 10px;
        align-items: center;
    }

    .code-copy-row .code-value,
    .code-copy-row .code-inline-value {
        display: block;
        width: auto;
        min-width: 0;
    }

    .code-copy-row .code-copy-btn {
        width: auto;
    }

    .code-copy-row.compact {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 8px 10px;
        align-items: center;
        margin-top: 6px;
    }

    .code-copy-row.compact .code-copy-label {
        grid-column: 1 / -1;
    }

    .code-copy-row.compact .code-inline-value {
        font-size: 22px;
        letter-spacing: 0.05em;
    }

    .code-copy-row.compact .code-copy-btn {
        justify-self: start;
    }

    .metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .metric-card {
        min-height: 0;
        padding: 18px;
    }

    .metric-card--primary,
    .metric-card--secondary,
    .metric-card--compact {
        grid-column: span 1;
        min-height: 0;
    }

    .metric-card span {
        line-height: 1.45;
    }

    .metric-number {
        font-size: clamp(24px, 6vw, 34px);
        margin: 8px 0 0;
    }

    .table-scroll {
        display: none;
    }

    .mobile-record-list {
        display: grid;
        gap: 14px;
        margin-top: 18px;
    }

    .entry-stamp,
    .large-stamp,
    .small-stamp {
        min-width: 0;
        width: 100%;
    }

    .calendar-board {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-card {
        min-height: 138px;
    }

    .hero-copy h2,
    .auth-story h1 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .collapsible-card > summary {
        padding: 20px;
    }

    .collapsible-summary-copy h3 {
        font-size: 22px;
    }

    .collapsible-body {
        padding: 0 20px 20px;
    }

    .business-hero {
        padding: 16px 16px 18px;
        gap: 12px;
        border-radius: 22px 22px 12px 22px;
        background: linear-gradient(145deg, #18242d 0%, #22394a 58%, #2b5a53 100%);
    }

    .business-hero .section-tag {
        padding: 6px 10px;
    }

    .business-hero .hero-copy h2 {
        font-size: clamp(24px, 7.4vw, 32px);
        line-height: 1.12;
        max-width: 12ch;
    }

    .business-hero .hero-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-top: 18px;
        width: 100%;
    }

    .business-hero .hero-actions .solid-btn,
    .business-hero .hero-actions .ghost-btn {
        width: 100%;
        padding: 11px 12px;
        font-size: 14px;
    }

    .business-hero .hero-panel-grid {
        display: none;
    }

    .business-mobile-viewbar {
        position: sticky;
        top: 8px;
        z-index: 8;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 4px;
        border-radius: 18px;
        border: 1px solid rgba(33, 45, 57, 0.08);
        background: rgba(255, 252, 247, 0.94);
        backdrop-filter: blur(18px);
        box-shadow: 0 10px 18px rgba(42, 36, 32, 0.08);
    }

    .business-mobile-viewbar__item {
        padding: 8px 10px;
        min-height: 36px;
        font-size: 12px;
    }

    .business-mobile-panel {
        display: none;
        gap: 16px;
    }

    .business-mobile-panel.is-active {
        display: grid;
    }

    .home-aux {
        display: none;
    }

    .filter-grid,
    .form-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-span-2 {
        grid-column: span 1;
    }

    .reporter-card {
        flex-direction: column;
    }

    .reporter-grid {
        grid-template-columns: 1fr;
    }

    .reporter-card {
        gap: 10px;
        padding: 14px 16px;
    }

    .reporter-card strong {
        align-self: flex-start;
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .site-shell,
    .auth-layout {
        width: min(var(--container), calc(100% - 16px));
    }

    .login-page .auth-layout,
    .register-page .auth-layout {
        min-height: 100dvh;
        min-height: 100svh;
        padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
    }

    .login-page .auth-panel-header h2,
    .register-page .auth-panel-header h2 {
        font-size: 28px;
    }

    .login-page .auth-panel,
    .register-page .auth-panel {
        padding: 16px;
    }

    .login-page .flash-banner,
    .register-page .flash-banner {
        padding: 10px 12px;
    }

    .login-page input,
    .register-page input {
        padding: 11px 13px;
    }

    .login-page .solid-btn.wide-btn,
    .register-page .solid-btn.wide-btn {
        min-height: 44px;
    }

    .site-shell {
        padding-bottom: calc(118px + env(safe-area-inset-bottom));
    }

    .site-masthead,
    .section-card,
    .metric-card,
    .shortcut-card,
    .auth-story,
    .auth-panel,
    .hero-banner {
        padding: 16px;
    }

    .brand-mark {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .brand-copy {
        gap: 6px;
    }

    .code-copy-row.compact .code-inline-value {
        font-size: 20px;
        letter-spacing: 0.04em;
    }

    .metric-grid {
        gap: 10px;
    }

    .collapsible-card > summary {
        padding: 18px;
    }

    .collapsible-body {
        padding: 0 18px 18px;
    }

    .calendar-board {
        grid-template-columns: minmax(0, 1fr);
    }

    .business-hero .hero-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .business-hero .hero-actions .solid-btn,
    .business-hero .hero-actions .ghost-btn {
        font-size: 13px;
    }

    .business-form-block {
        padding: 18px;
        gap: 14px;
    }

    .business-form-block__head h4 {
        font-size: 20px;
    }

    .profile-account-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .module-tabbar {
        width: min(calc(100% - 12px), 640px);
    }

    .module-tabbar__shell {
        gap: 4px;
        padding: 6px;
        border-radius: 22px;
    }

    .module-tabbar__item {
        min-height: 62px;
        padding: 7px 2px;
        font-size: 10px;
    }

    .module-tabbar__icon {
        width: 30px;
        height: 30px;
    }

    .module-tabbar__icon svg {
        width: 18px;
        height: 18px;
    }
}
