:root {
    --brand-900: #00513b;
    --brand-800: #006344;
    --brand-700: #007a50;
    --brand-500: #0f9864;
    --bg-page: #f8f7f2;
    --bg-soft: #f1eee5;
    --card-bg: #ffffff;
    --text-main: #122c23;
    --text-sub: #526b61;
    --text-muted: #82968d;
    --line: #e1e7df;
    --line-warm: #d9cda8;
    --danger: #b64040;
    --radius-xl: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 14px 30px rgba(0, 81, 59, 0.09);
    --shadow-card: 0 10px 24px rgba(30, 61, 47, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text-main);
    background:
        linear-gradient(180deg, rgba(0, 81, 59, 0.05), transparent 210px),
        var(--bg-page);
}

a {
    color: inherit;
    text-decoration: none;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background:
        linear-gradient(135deg, #004833, var(--brand-800) 58%, #00845a);
    box-shadow: 0 10px 24px rgba(0, 55, 39, 0.24);
}

.app-header-inner {
    max-width: 760px;
    margin: 0 auto;
    padding: 10px 16px 9px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.app-header-top {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.app-header-bottom {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.brand-link {
    display: block;
    min-width: 0;
    color: #f5fff8;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.brand-stack {
    display: block;
    min-width: 0;
}

.brand-stack strong {
    display: block;
    font-size: clamp(18px, 5.2vw, 28px);
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.icon-btn {
    border: 0;
    background: transparent;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e6f8ee;
    padding: 0;
}

.icon-btn svg {
    width: 24px;
    height: 24px;
}

.header-cart-button {
    position: relative;
}

.header-cart-badge {
    top: -2px;
    left: auto;
    right: -6px;
    transform: none;
}

.header-right {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.header-primary-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.header-bottom-spacer {
    width: 36px;
    height: 1px;
}

.brand-subline {
    min-width: 0;
    color: rgba(214, 246, 228, 0.84);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-secondary-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

.header-link,
.header-logout {
    color: #d6f6e4;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.page-shell {
    max-width: 760px;
    margin: 0 auto;
    padding: 14px 14px calc(104px + env(safe-area-inset-bottom));
}

.hero-banner {
    border-radius: var(--radius-xl);
    padding: 22px 20px;
    color: var(--brand-900);
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.8), transparent 48%),
        radial-gradient(circle at 85% 25%, rgba(255, 255, 255, 0.7), transparent 44%),
        repeating-linear-gradient(
            0deg,
            rgba(125, 140, 126, 0.08),
            rgba(125, 140, 126, 0.08) 1px,
            transparent 1px,
            transparent 7px
        ),
        linear-gradient(180deg, #f4f0e6, #ece6d8);
    border: 1px solid #e3dac8;
    box-shadow: var(--shadow-soft);
}

.hero-eyebrow {
    margin: 0 0 8px;
    letter-spacing: 0.04em;
    font-size: 13px;
    font-weight: 700;
    color: rgba(15, 106, 73, 0.82);
}

.hero-title {
    margin: 0;
    display: grid;
    gap: 4px;
    text-align: left;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-title-lead {
    display: block;
    font-size: clamp(28px, 7vw, 34px);
    line-height: 1.15;
    font-weight: 800;
}

.hero-title-emphasis {
    display: block;
    font-size: clamp(34px, 8vw, 42px);
    line-height: 1.05;
    font-weight: 900;
}

.hero-subtitle {
    margin: 12px 0 0;
    text-align: left;
    color: #46695a;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 600;
}

.hero-support-copy {
    margin: 14px 0 0;
    text-align: left;
    color: #416759;
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
}

.hero-actions {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-title {
    margin: 22px 2px 12px;
    text-align: left;
    font-size: 28px;
    font-weight: 900;
    color: var(--brand-900);
}

.card-surface {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.filter-card {
    margin-top: 14px;
    padding: 12px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
}

.field-input,
.field-select,
.field-textarea,
.field-number {
    width: 100%;
    min-height: 40px;
    border-radius: 10px;
    border: 1px solid #c8d5cc;
    background: #fff;
    padding: 9px 11px;
    color: var(--text-main);
    font-size: 15px;
    outline: none;
}

.field-textarea {
    min-height: 92px;
    resize: vertical;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus,
.field-number:focus {
    border-color: var(--brand-500);
    box-shadow: 0 0 0 2px rgba(49, 166, 109, 0.16);
}

.btn-primary,
.btn-secondary,
.btn-danger,
.btn-ghost {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    line-height: 1.1;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-primary {
    background: linear-gradient(120deg, var(--brand-700), var(--brand-500));
    color: #fff;
}

.btn-secondary {
    background: #e5f0e8;
    color: var(--brand-900);
}

.btn-danger {
    background: #f4d9d9;
    color: #7b2a2a;
}

.btn-ghost {
    background: #fff;
    border: 1px solid #c3d0c7;
    color: var(--text-main);
}

.btn-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

.stack-form {
    display: grid;
    gap: 16px;
}

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

.form-grid label,
.stack-form label {
    display: grid;
    gap: 8px;
    font-size: 14px;
    color: var(--text-sub);
}

.form-grid .full-row {
    grid-column: 1 / -1;
}

.stack-form input,
.stack-form select,
.stack-form textarea,
.form-grid input,
.form-grid select,
.form-grid textarea {
    width: 100%;
    border: 1px solid #cdd7cf;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 14px;
    color: var(--text-main);
    background: #fff;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
}

.mode-option-grid,
.patient-choice-grid,
.patient-list-grid {
    display: grid;
    gap: 12px;
}

.mode-option-card,
.patient-choice-card,
.patient-current-card,
.quick-create-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fbfcfb, #f4f8f5);
    padding: 14px;
}

.mode-option-card {
    display: grid;
    gap: 10px;
}

.patient-choice-card,
.patient-current-card {
    display: grid;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.patient-choice-card.is-selected {
    border-color: rgba(49, 166, 109, 0.55);
    box-shadow: 0 0 0 1px rgba(49, 166, 109, 0.12);
}

.patient-current-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.patient-current-card--compact {
    padding: 14px 16px 12px;
}

.patient-current-copy {
    display: grid;
    gap: 4px;
}

.patient-section-stack {
    display: grid;
    gap: 12px;
}

.patient-panel-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fbfcfb, #f4f8f5);
    padding: 14px;
}

.patient-panel-card--current {
    padding: 14px 16px 12px;
}

.patient-panel-card--switch {
    display: grid;
    gap: 8px;
    background: #fbfcfb;
}

.patient-heading-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.patient-primary-name {
    font-size: 18px;
    line-height: 1.2;
    color: var(--brand-900);
}

.patient-summary-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.patient-inline-meta {
    margin: 0;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.4;
}

.patient-choice-list {
    display: grid;
    gap: 10px;
}

.patient-choice-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.patient-choice-card.is-selected {
    border: 2px solid var(--brand-700);
    box-shadow: 0 10px 24px rgba(20, 115, 77, 0.16);
    background: linear-gradient(180deg, rgba(20, 115, 77, 0.12), rgba(20, 115, 77, 0.05));
    transform: translateY(-1px);
}

.patient-choice-card:hover,
.patient-choice-card:focus-visible {
    color: inherit;
    border-color: rgba(20, 115, 77, 0.28);
}

.patient-choice-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
}

.patient-choice-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.patient-choice-indicator {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 2px solid #b7ccc0;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.patient-choice-card.is-selected .patient-choice-indicator {
    border-color: var(--brand-700);
    background: var(--brand-700);
    box-shadow: inset 0 0 0 4px #fff;
    transform: scale(1.02);
}

.patient-choice-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.patient-choice-selected-tag,
.patient-choice-switch-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.patient-choice-selected-tag {
    background: var(--brand-700);
    color: #fff;
}

.patient-choice-switch-tag {
    border: 1px solid #d7e5db;
    background: #fff;
    color: var(--brand-700);
}

.patient-switch-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.patient-switch-heading-copy {
    display: grid;
    gap: 3px;
}

.patient-switch-title {
    color: var(--brand-900);
    font-size: 13px;
    font-weight: 800;
}

.patient-switch-caption {
    margin: 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.45;
}

.patient-switch-list {
    display: grid;
    gap: 0;
}

.patient-switch-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid #e7eee8;
    background: transparent;
    text-decoration: none;
    color: inherit;
}

.patient-switch-row:first-child {
    border-top: 0;
}

.patient-switch-row:hover,
.patient-switch-row:focus-visible {
    color: inherit;
}

.patient-switch-copy {
    min-width: 0;
    display: grid;
    gap: 0;
}

.patient-switch-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    padding: 5px 10px;
    border: 1px solid #d7e5db;
    border-radius: 999px;
    background: #fff;
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.patient-record-card {
    display: grid;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fbfcfb, #f4f8f5);
    padding: 14px;
}

.patient-record-card.is-selected {
    border-color: rgba(49, 166, 109, 0.55);
    box-shadow: 0 0 0 1px rgba(49, 166, 109, 0.12);
}

.patient-record-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.patient-record-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.patient-record-name {
    font-size: 18px;
    line-height: 1.2;
    color: var(--brand-900);
}

.patient-record-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.35;
}

.patient-record-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
    align-content: start;
}

.patient-record-actions form {
    margin: 0;
}

.patient-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.patient-action-btn--secondary {
    border: 1px solid #cfddd3;
    background: #fff;
    color: var(--brand-800);
}

.quick-create-panel {
    display: grid;
    gap: 14px;
}

.quick-create-section {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e0e9e3;
    border-radius: 16px;
    background: #fbfcfb;
}

.quick-create-section-header {
    display: grid;
    gap: 4px;
}

.quick-create-section-title {
    color: var(--brand-900);
    font-size: 14px;
    line-height: 1.35;
}

.quick-create-section-note {
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.45;
}

.patient-record-detail-list {
    display: grid;
    gap: 0;
    border-top: 1px solid #e4ece6;
}

.patient-record-detail-row {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    min-width: 0;
    padding: 10px 0;
    border-top: 1px solid #edf3ee;
}

.patient-record-detail-row:first-child {
    border-top: 0;
}

.patient-record-fact-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.patient-record-fact-value {
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.45;
    word-break: break-word;
    text-align: left;
}

.default-setting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid #e0e9e3;
    border-radius: 14px;
    background: #f8fbf8;
}

.default-setting-copy {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.default-setting-title {
    color: var(--brand-900);
    font-size: 14px;
    line-height: 1.35;
}

.default-setting-note {
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.45;
}

.default-setting-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 28px;
    flex: 0 0 auto;
}

.default-setting-input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.default-setting-switch {
    position: relative;
    width: 46px;
    height: 28px;
    border-radius: 999px;
    background: #d6e3da;
    transition: background-color 0.18s ease;
}

.default-setting-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(23, 55, 38, 0.16);
    transition: transform 0.18s ease;
}

.default-setting-input:checked + .default-setting-switch {
    background: #2f9c64;
}

.default-setting-input:checked + .default-setting-switch::after {
    transform: translateX(18px);
}

.default-setting-input:focus-visible + .default-setting-switch {
    outline: 2px solid rgba(47, 156, 100, 0.24);
    outline-offset: 2px;
}

.address-record-list,
.address-selection-stack {
    display: grid;
    gap: 14px;
}

.address-current-card,
.address-inline-form-shell,
.address-record-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, #fbfcfb, #f4f8f5);
}

.address-current-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
}

.address-current-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.address-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-toolbar-button {
    min-width: 132px;
    min-height: 40px;
    padding-inline: 16px;
}

.address-inline-form-shell {
    padding: 12px 14px;
}

.address-form-stack {
    display: grid;
    gap: 14px;
}

.address-form-group {
    display: grid;
    gap: 10px;
}

.address-form-group-copy {
    display: grid;
    gap: 4px;
}

.address-record-card {
    display: grid;
    gap: 10px;
    padding: 12px 14px;
}

.address-record-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.address-record-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.address-status-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.address-delete-action {
    color: #915151;
}

.address-switch-panel {
    gap: 6px;
    padding: 12px 14px;
}

.address-switch-panel .patient-switch-list {
    gap: 0;
}

.address-switch-panel .patient-switch-row {
    padding: 10px 0;
}

.address-switch-panel .patient-switch-copy {
    gap: 2px;
}

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

.structured-intake-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e0e9e3;
    border-radius: 16px;
    background: #fbfcfb;
}

.structured-intake-section {
    display: grid;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--card-bg);
}

.structured-intake-grid,
.structured-field {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.structured-field-label {
    color: var(--brand-900);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.structured-choice-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
}

.form-grid label.structured-choice,
.stack-form label.structured-choice,
.structured-choice {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    width: auto;
    max-width: 100%;
    min-height: 38px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--card-bg);
    color: var(--text-main);
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.structured-choice input,
.stack-form .structured-choice input[type="checkbox"],
.stack-form .structured-choice input[type="radio"] {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    border-radius: 4px;
    align-self: center;
    accent-color: var(--brand-700);
}

.structured-choice span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.structured-choice:has(input:checked) {
    border-color: var(--brand-700);
    background: #f2fbf5;
    color: var(--brand-900);
}

.tag-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 8px;
    margin-top: 8px;
}

.tag-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: var(--card-bg);
    font-size: 14px;
    color: var(--text-main);
}

.tag-checkbox input {
    margin: 0;
}

.tag-checkbox em {
    margin-left: 4px;
    font-style: normal;
    color: var(--text-sub);
}

.form-tip {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-sub);
}

.success-note {
    margin: 8px 0 0;
    color: var(--brand-800);
    font-size: 13px;
    font-weight: 700;
}

.error-note {
    margin: 8px 0 0;
    color: #a24646;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.category-section {
    margin-top: 12px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.section-kicker {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--brand-500);
}

.mini-link {
    color: var(--brand-700);
    font-size: 13px;
    font-weight: 700;
}

.results-context-card {
    background:
        radial-gradient(circle at top right, rgba(49, 166, 109, 0.12), transparent 30%),
        linear-gradient(180deg, #fbf8f0, #f4efe3);
    border-color: #e2d8c5;
}

.results-summary {
    margin: 0;
    line-height: 1.6;
    color: var(--text-sub);
}

.trust-grid {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-section + .home-section {
    margin-top: 16px;
}

.trust-card {
    padding: 14px;
    display: grid;
    gap: 8px;
    min-height: 128px;
}

.trust-card-title {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-900);
}

.trust-card-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-sub);
}

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

.category-card {
    min-height: 132px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #ffffff, #f6faf7);
    display: grid;
    gap: 8px;
}

.category-card strong {
    font-size: 16px;
    line-height: 1.35;
}

.category-card span {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-sub);
}

.category-card.active {
    border-color: var(--brand-700);
    box-shadow: inset 0 0 0 1px rgba(31, 126, 87, 0.18);
    background: linear-gradient(180deg, #eef7f0, #e6f1e9);
}

.process-grid {
    display: grid;
    gap: 10px;
}

.process-card {
    border-radius: var(--radius-md);
    padding: 14px;
    background: var(--bg-soft);
    border: 1px solid #d8e4db;
}

.process-card h3,
.detail-card h3,
.detail-trust-card h3,
.faq-item h3 {
    margin: 0;
    font-size: 16px;
    color: var(--brand-900);
}

.process-card p,
.detail-card p,
.detail-trust-card p,
.faq-item p,
.guide-intro,
.service-summary {
    margin: 0;
    line-height: 1.6;
    color: var(--text-sub);
}

.process-index {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--brand-500);
}

.category-title {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--text-sub);
    font-weight: 700;
}

.category-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.results-section {
    margin-top: 16px;
    display: grid;
    gap: 14px;
}

.results-section > .section-heading {
    margin-bottom: 0;
}

.results-section .section-title {
    margin: 0 0 4px;
}

.results-section .product-grid {
    gap: 10px;
    grid-template-columns: 1fr;
}

.results-section .product-list-card {
    position: relative;
    border-radius: 18px;
    border: 1px solid rgba(200, 217, 207, 0.92);
    background:
        radial-gradient(circle at 86% 22%, rgba(211, 232, 220, 0.74) 0 36px, transparent 37px),
        radial-gradient(circle at 36% 18%, rgba(236, 245, 239, 0.88) 0 58px, transparent 59px),
        linear-gradient(155deg, #ffffff 0%, #f8fbf8 58%, #f3f8f4 100%);
    box-shadow: 0 12px 26px rgba(17, 75, 52, 0.08);
}

.results-section .product-list-card .product-link {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(120px, 0.72fr) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    height: 100%;
    padding: 14px;
}

.results-section .product-list-media {
    min-width: 0;
    align-self: stretch;
    display: grid;
    align-items: center;
}

.results-section .product-image-frame {
    width: 100%;
    aspect-ratio: 1.42 / 1;
    border-radius: 14px;
    border: 0;
    background: linear-gradient(145deg, rgba(244, 249, 246, 0.72), rgba(255, 255, 255, 0.92));
}

.results-section .product-list-copy {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 8px;
}

.results-section .product-list-heading {
    display: grid;
    justify-items: start;
    gap: 3px;
    min-width: 0;
}

.results-section .product-title {
    margin: 0;
    font-size: clamp(18px, 4.8vw, 22px);
    line-height: 1.15;
    letter-spacing: 0;
}

.results-section .badge {
    order: -1;
    padding: 3px 9px;
    border-color: rgba(24, 130, 83, 0.14);
    background: rgba(222, 239, 228, 0.88);
    color: var(--brand-700);
    font-size: 11px;
}

.results-section .product-subtitle {
    min-height: 0;
    font-size: 13px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
}

.results-section .product-list-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: end;
    min-width: 0;
}

.results-section .product-list-price {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: baseline;
}

.results-section .price-main {
    font-size: clamp(21px, 5.6vw, 28px);
    line-height: 1;
}

.results-section .price-suffix {
    font-size: 11px;
}

.results-section .price-tag {
    height: 22px;
    padding: 0 8px;
    background: #e4f0e8;
    color: #50715c;
    font-size: 10px;
}

.results-section .mini-cta {
    height: 38px;
    min-width: 86px;
    padding: 0 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--brand-700), var(--brand-800));
    border: 1px solid rgba(0, 92, 61, 0.22);
    color: #fff;
    box-shadow: 0 7px 14px rgba(0, 112, 73, 0.2);
    font-size: 12px;
    font-weight: 900;
}

.results-section .mini-cta::after {
    content: "›";
    margin-left: 6px;
    font-size: 16px;
    line-height: 1;
}

.active-filter-row {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eaf4ec;
    color: #2c5a45;
    font-size: 13px;
    font-weight: 700;
}

.direction-drawer {
    margin-top: 18px;
    padding: 0;
    overflow: hidden;
}

.direction-drawer summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 14px;
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-900);
}

.direction-drawer summary::-webkit-details-marker {
    display: none;
}

.direction-drawer summary::after {
    content: "＋";
    float: right;
    color: var(--brand-700);
}

.direction-drawer[open] summary::after {
    content: "－";
}

.direction-drawer-body {
    padding: 0 14px 14px;
}

.chip {
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 12px;
    border: 1px solid #bfd0c3;
    border-radius: 999px;
    color: #3e5c4e;
    background: #f8fbf8;
    font-size: 13px;
    font-weight: 600;
}

.chip.active {
    color: #fff;
    background: var(--brand-700);
    border-color: var(--brand-700);
}

.muted {
    color: var(--text-muted);
    font-size: 13px;
}

.error-text {
    margin: 6px 0 0;
    color: var(--danger);
    font-size: 13px;
}

.product-grid {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-card {
    overflow: hidden;
    display: flex;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 26px rgba(11, 90, 63, 0.14);
}

.product-link {
    display: block;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.product-image-frame {
    border-radius: 10px;
    border: 1px solid #dbe5dd;
    background: #fbfcfb;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #91a99a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    background: linear-gradient(160deg, #f3f8f3, #e8efe9);
}

.product-title {
    margin: 10px 0 4px;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    color: var(--brand-900);
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-subtitle {
    margin: 0;
    min-height: 36px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--text-sub);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.price-row {
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.price-main {
    margin: 0;
    font-size: 33px;
    color: var(--brand-900);
    font-weight: 900;
}

.price-suffix {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.price-tag {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e5f0e8;
    color: #2c5a45;
    font-size: 11px;
    font-weight: 700;
}

.product-card .price-main {
    font-size: clamp(20px, 6vw, 24px);
    line-height: 1.04;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 32px;
    max-width: 100%;
    padding: 0 12px;
    border-radius: 8px;
    background: var(--brand-500);
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: auto;
    flex-shrink: 0;
}

.page-card {
    margin-bottom: 12px;
    padding: 14px;
}

.home-directions-card {
    padding: 16px;
    background: linear-gradient(180deg, #fffdfa, #f9f6ee);
    border-color: #d5c49a;
    box-shadow: 0 8px 20px rgba(145, 125, 72, 0.08);
}

.home-directions-card .section-heading {
    margin-bottom: 12px;
}

.home-directions-card .section-kicker {
    margin: 0;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: 0;
    text-transform: none;
    color: #2d2b25;
}

.home-mini-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.home-mini-category-card {
    min-height: 78px;
    padding: 10px 8px;
    border-radius: 14px;
    border: 1px solid #d5c49a;
    background: linear-gradient(180deg, #fffefb, #fbf8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #214031;
    box-shadow: 0 4px 12px rgba(131, 113, 63, 0.08);
}

.home-mini-category-card span {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    line-height: 1.35;
    font-weight: 800;
    word-break: break-word;
}

.compact-filter-card {
    display: grid;
    gap: 12px;
}

.products-filter-header {
    display: grid;
    gap: 10px;
}

.products-filter-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.products-filter-title {
    margin: 0;
}

.products-filter-count {
    margin: 0;
}

.home-featured-section {
    display: grid;
    gap: 12px;
}

.home-featured-section .section-title {
    margin: 0 2px;
}

.home-featured-section .product-grid {
    margin-top: 0;
}

.hero-banner {
    position: relative;
    min-height: 372px;
    overflow: hidden;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid #dfe7dd;
    color: var(--brand-900);
    background:
        linear-gradient(105deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.94) 44%, rgba(255, 255, 255, 0.28) 72%),
        #f7f8f3;
    box-shadow: 0 18px 34px rgba(0, 81, 59, 0.12);
}

.home-hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("/static/images/home-hero-japan-medical.png");
    background-repeat: no-repeat;
    background-position: center right;
    background-size: cover;
}

.home-hero-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(100deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.94) 42%, rgba(255, 255, 255, 0.32) 70%, rgba(255, 255, 255, 0.08) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(250, 248, 241, 0.18));
}

.home-hero-content {
    position: relative;
    z-index: 1;
    max-width: 430px;
    min-height: 324px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-banner .hero-eyebrow {
    margin-bottom: 10px;
    color: var(--brand-700);
    letter-spacing: 0.05em;
}

.hero-banner .hero-title {
    gap: 6px;
    letter-spacing: 0;
}

.hero-banner .hero-title-lead {
    font-size: clamp(28px, 6vw, 40px);
    line-height: 1.18;
    font-weight: 900;
    color: var(--brand-900);
}

.hero-banner .hero-title-emphasis {
    font-size: clamp(38px, 8vw, 54px);
    line-height: 1.02;
    color: var(--brand-900);
}

.hero-banner .hero-subtitle {
    margin-top: 14px;
    max-width: 24rem;
    color: #174b38;
    font-size: clamp(15px, 3.2vw, 18px);
    font-weight: 800;
}

.home-hero-trust-row {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.home-hero-trust-row a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    color: var(--brand-800);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.home-hero-trust-row .home-line-icon {
    width: 18px;
    height: 18px;
}

.hero-banner .hero-actions {
    margin-top: 22px;
    gap: 12px;
}

.hero-banner .btn-inline {
    min-height: 50px;
    min-width: 140px;
    padding: 0 20px;
    border-radius: 12px;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, #007349, #00945e);
    color: #fff;
    box-shadow: 0 10px 20px rgba(0, 115, 73, 0.22);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(0, 99, 68, 0.58);
    color: var(--brand-900);
}

.home-shortcut-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.home-shortcut-card {
    position: relative;
    min-width: 0;
    min-height: 118px;
    display: grid;
    gap: 8px;
    align-items: start;
    padding: 12px 8px 14px;
    border-radius: 16px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, #fdfcf8);
    box-shadow: var(--shadow-card);
}

.home-shortcut-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(140deg, var(--brand-700), var(--brand-500));
    box-shadow: 0 9px 16px rgba(0, 122, 80, 0.18);
}

.home-shortcut-icon .home-line-icon {
    width: 22px;
    height: 22px;
}

.home-shortcut-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.home-shortcut-copy strong {
    color: #172a23;
    font-size: 14px;
    line-height: 1.25;
    font-weight: 900;
    white-space: normal;
}

.home-shortcut-copy span {
    padding-right: 20px;
    color: var(--text-sub);
    font-size: 12px;
    line-height: 1.45;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-shortcut-arrow {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf3e7;
    color: var(--brand-700);
    font-size: 28px;
    line-height: 1;
    font-weight: 500;
}

.home-directions-card {
    padding: 22px;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), #fffdf8);
    border-color: #e4dfcf;
    box-shadow: var(--shadow-card);
}

.home-directions-card .section-heading {
    align-items: center;
    margin-bottom: 16px;
}

.home-directions-card .section-kicker {
    margin: 0 0 4px;
    font-size: 12px;
    color: var(--brand-700);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-directions-card .page-title {
    margin: 0;
    color: #171e1b;
    font-size: clamp(22px, 4.6vw, 30px);
}

.home-section-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.home-section-link::after {
    content: "›";
    font-size: 19px;
    line-height: 1;
}

.home-mini-category-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-mini-category-card {
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--line-warm);
    background: linear-gradient(180deg, #fffefd, #fffaf0);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 8px;
    text-align: left;
    color: #174634;
    box-shadow: 0 6px 14px rgba(126, 106, 49, 0.06);
}

.home-category-icon {
    width: 28px;
    height: 28px;
    color: var(--brand-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.home-category-svg {
    width: 24px;
    height: 24px;
}

.home-mini-category-card span:last-child {
    display: -webkit-box;
    min-width: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #193f31;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 900;
    white-space: normal;
}

.home-featured-section {
    padding: 18px;
    border: 1px solid #e4dfcf;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-card);
}

.home-featured-section .section-heading {
    align-items: center;
    margin-bottom: 0;
}

.home-featured-section .section-title {
    color: var(--brand-900);
    font-size: clamp(26px, 5.4vw, 34px);
}

.home-product-card {
    border-color: #e2e8e1;
    border-radius: 16px;
    background: #fff;
}

.home-product-card .product-link {
    padding: 12px;
    display: grid;
    gap: 8px;
}

.home-product-card .product-image-frame {
    border-radius: 14px;
    aspect-ratio: 1.45 / 1;
    background: linear-gradient(150deg, #f7faf8, #ffffff);
}

.home-product-card .product-title {
    margin: 2px 0 0;
    font-size: 18px;
}

.home-product-card .product-subtitle {
    min-height: 40px;
    font-size: 14px;
    line-height: 1.45;
}

.home-product-card .price-row {
    margin-top: 2px;
}

.home-product-card .price-main {
    color: var(--brand-800);
    font-size: clamp(24px, 5.6vw, 32px);
}

.home-product-action-row {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.home-product-action-row .badge {
    min-width: 0;
    justify-content: center;
    border-radius: 999px;
    background: #e8f2eb;
    color: var(--brand-800);
}

.home-product-action-row .mini-cta {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(135deg, #007349, #00945e);
    box-shadow: 0 8px 16px rgba(0, 115, 73, 0.18);
}

.mock-payment-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(32, 102, 70, 0.16);
    background:
        radial-gradient(circle at top right, rgba(49, 166, 109, 0.14), transparent 34%),
        linear-gradient(180deg, #fcfdfc, #f2f8f4);
    box-shadow: 0 14px 28px rgba(11, 90, 63, 0.08);
}

.mock-payment-hero-copy {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.mock-payment-description {
    margin: 0;
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.7;
    max-width: 30rem;
}

.mock-payment-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mock-payment-amount-panel {
    min-width: 128px;
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

.mock-payment-amount-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.mock-payment-amount {
    color: var(--brand-900);
    font-size: 32px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.mock-payment-summary-card {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #d9e5dd;
    background: #fbfcfb;
}

.mock-payment-detail-list {
    display: grid;
    gap: 0;
}

.mock-payment-detail-row {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 12px 0;
    border-top: 1px solid #ebf1ed;
}

.mock-payment-detail-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.mock-payment-detail-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.mock-payment-detail-value {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 800;
    word-break: break-word;
}

.mock-payment-detail-value--mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
}

.mock-payment-action-form {
    margin-top: 12px;
}

.mock-payment-action-form .btn-primary {
    min-height: 52px;
    font-size: 16px;
}

.context-back-row {
    margin-bottom: 10px;
}

.context-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-700);
    font-size: 14px;
    font-weight: 800;
}

.context-back-link::before {
    content: "←";
}

.page-title {
    margin: 0 0 10px;
    font-size: 20px;
    color: var(--brand-900);
}

.order-list,
.cart-list,
.variant-list {
    display: grid;
    gap: 10px;
}

.product-summary-list {
    display: grid;
    gap: 10px;
}

.product-summary-card {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfcfb, #f4f8f5);
}

.product-summary-card.compact {
    grid-template-columns: 68px minmax(0, 1fr);
    padding: 10px;
}

.product-summary-media {
    min-width: 0;
}

.product-summary-body {
    min-width: 0;
    display: grid;
    gap: 10px;
}

.product-summary-copy {
    display: grid;
    gap: 6px;
}

.product-summary-title {
    color: var(--brand-900);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.product-summary-card.compact .product-summary-title {
    font-size: 15px;
}

.product-summary-variant,
.product-summary-note,
.product-summary-pricing p {
    margin: 0;
    color: var(--text-sub);
    line-height: 1.5;
}

.product-summary-subline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}

.product-summary-subline .product-summary-variant {
    min-width: 0;
    color: var(--text-main);
    font-weight: 700;
}

.product-summary-quantity {
    flex: 0 0 auto;
    align-self: start;
    white-space: nowrap;
}

.product-summary-note span {
    display: inline-block;
    margin-right: 6px;
    color: var(--brand-700);
    font-weight: 800;
}

.product-summary-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.product-summary-pricing {
    display: grid;
    gap: 6px;
}

.product-summary-pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
}

.product-summary-pricing-row.total {
    color: var(--brand-900);
}

.product-summary-pricing strong {
    color: var(--brand-900);
}

.amount-summary {
    margin-top: 14px;
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.amount-summary-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
    color: var(--text-main);
}

.amount-summary-row.total {
    color: var(--brand-900);
    font-size: 18px;
    font-weight: 800;
}

.amount-summary-row.total .amount-summary-label,
.amount-summary-row.total .amount-summary-value {
    color: var(--brand-900);
}

.amount-summary-label {
    min-width: 0;
    color: var(--text-sub);
}

.amount-summary-value {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    color: var(--text-main);
    font-weight: 700;
}

.amount-summary-note {
    margin: -2px 0 0;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.5;
}

.amount-summary-divider {
    border-top: 1px solid #e2e8e3;
    margin-top: 2px;
    padding-top: 6px;
}

.service-fee-list {
    display: grid;
    gap: 10px;
}

.prescription-stage-card {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(32, 102, 70, 0.16);
    background:
        radial-gradient(circle at top right, rgba(49, 166, 109, 0.14), transparent 34%),
        linear-gradient(180deg, #fcfdfc, #f2f8f4);
    box-shadow: 0 14px 28px rgba(11, 90, 63, 0.08);
}

.prescription-stage-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: start;
}

.prescription-stage-copy {
    min-width: 0;
    display: grid;
    gap: 8px;
}

.prescription-stage-status {
    min-width: 116px;
    display: grid;
    gap: 6px;
    justify-items: end;
    text-align: right;
}

.prescription-stage-status-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.prescription-stage-status-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #eaf5ee;
    color: var(--brand-900);
    font-size: 15px;
    font-weight: 900;
    text-align: center;
    white-space: nowrap;
}

.prescription-stage-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.prescription-stage-meta-item {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(212, 227, 218, 0.85);
}

.prescription-stage-meta-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.prescription-stage-meta-value {
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.4;
    font-weight: 800;
}

.prescription-stage-footnote {
    margin: -2px 0 0;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.55;
}

.detail-summary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfcfb, #f4f8f5);
}

.detail-summary-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.detail-summary-title {
    color: var(--brand-900);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.detail-summary-description {
    margin: 0;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.5;
}

.detail-summary-result {
    min-width: 108px;
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.detail-summary-result-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.detail-summary-result-value {
    color: var(--brand-900);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 900;
    text-align: right;
}

.page-action-shell {
    padding-top: 14px;
}

.page-action-hero {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 20px;
    border: 1px solid rgba(32, 102, 70, 0.16);
    background:
        radial-gradient(circle at top right, rgba(49, 166, 109, 0.14), transparent 34%),
        linear-gradient(180deg, #fcfdfc, #f1f8f3);
    box-shadow: 0 14px 28px rgba(11, 90, 63, 0.08);
}

.page-action-copy {
    display: grid;
    gap: 8px;
}

.page-action-kicker {
    margin: 0;
    color: var(--brand-700);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-action-title {
    margin: 0;
    color: var(--brand-900);
    font-size: 28px;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.page-action-description {
    margin: 0;
    color: var(--text-sub);
    font-size: 15px;
    line-height: 1.7;
    max-width: 32rem;
}

.page-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.page-action-button-form {
    display: flex;
    flex: 1 1 220px;
}

.page-action-buttons .btn-primary,
.page-action-buttons .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: min(100%, 220px);
    min-height: 50px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 1.1;
}

.page-action-buttons .btn-primary {
    min-height: 50px;
    box-shadow: 0 12px 24px rgba(15, 106, 73, 0.18);
}

.page-action-buttons .btn-ghost {
    border-width: 1.5px;
    color: var(--brand-900);
}

.page-action-button-form > .btn-primary,
.page-action-button-form > .btn-ghost {
    width: 100%;
}

.page-action-buttons > a {
    flex: 1 1 220px;
}

.page-action-buttons--detail {
    margin-top: 2px;
}

.detail-meta-list {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.detail-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: baseline;
}

.detail-meta-label {
    color: var(--text-muted);
    font-size: 13px;
}

.detail-meta-value {
    color: var(--text-main);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
}

.next-step-actions {
    margin-top: 12px;
}

.service-fee-card {
    display: grid;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfcfb, #f4f8f5);
}

.service-fee-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.service-fee-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.service-fee-title-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.service-fee-title {
    color: var(--brand-900);
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.service-fee-description {
    margin: 0;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.5;
}

.service-fee-amount-wrap {
    min-width: 92px;
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.service-fee-amount-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.service-fee-amount {
    color: var(--brand-900);
    font-size: 22px;
    line-height: 1.1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.service-fee-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #e2e8e3;
}

.service-fee-method-select {
    width: 100%;
    min-height: 44px;
    border: 1px solid #cdd7cf;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 16px;
    color: var(--text-main);
    background: #fff;
}

.product-summary-actions {
    display: grid;
    gap: 10px;
}

.product-summary-form-grid {
    display: grid;
    gap: 10px;
}

.cart-item-delete-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--danger);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.cart-item-delete-trigger svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.cart-item-delete-trigger:hover,
.cart-item-delete-trigger:focus-visible {
    color: #932f2f;
}

.cart-item-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.cart-item-delete-row {
    display: flex;
    justify-content: flex-start;
}

.cart-list .product-summary-card .field-number {
    min-width: 0;
}

.detail-trust-card-link {
    text-decoration: none;
}

.line-split {
    border-top: 1px solid #e2e8e3;
    margin-top: 12px;
    padding-top: 12px;
}

.stack-8 {
    display: grid;
    gap: 8px;
}

.inline-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.actions-row {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .stack-form input,
    .stack-form select,
    .stack-form textarea,
    .form-grid input,
    .form-grid select,
    .form-grid textarea {
        font-size: 16px;
    }

    .cart-item-primary-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .compact-form-grid,
    .patient-current-card,
    .patient-switch-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .structured-intake-panel,
    .structured-intake-section {
        padding: 12px;
    }

    .address-current-card,
    .address-record-header {
        grid-template-columns: minmax(0, 1fr);
    }

    .address-selection-stack {
        gap: 12px;
    }

    .mock-payment-hero,
    .mock-payment-detail-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .mock-payment-amount-panel {
        justify-items: start;
        text-align: left;
    }

    .patient-switch-header {
        flex-direction: column;
    }

    .patient-record-actions {
        justify-items: start;
    }

    .address-record-actions {
        justify-content: flex-start;
    }

    .address-toolbar-button {
        min-width: 0;
    }

    .default-setting-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-summary-pricing-row {
        gap: 12px;
    }

    .prescription-stage-top,
    .prescription-stage-meta,
    .detail-summary-card,
    .service-fee-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .prescription-stage-status {
        justify-items: start;
        text-align: left;
    }

    .order-card-header,
    .order-card-amount-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .order-card-amount-value {
        justify-self: end;
        text-align: right;
    }

    .detail-summary-result,
    .detail-meta-value {
        justify-items: end;
        text-align: right;
    }
}

.actions-row > * {
    flex: 1 1 128px;
    min-width: 0;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eaf4ec;
    color: #365b49;
    font-size: 12px;
    font-weight: 700;
}

.auth-wrap {
    margin-top: 16px;
}

.auth-footnote {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-sub);
}

.content-html {
    line-height: 1.6;
    color: #37564a;
    font-size: 14px;
}

.product-decision-card {
    display: grid;
    gap: 14px;
}

.product-decision-top {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
}

.detail-inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.product-decision-grid,
.product-hero {
    display: grid;
    gap: 14px;
}

.product-decision-grid .product-image-frame {
    aspect-ratio: 4 / 3;
}

.product-decision-copy,
.product-hero-copy {
    display: grid;
    gap: 8px;
}

.product-detail-subtitle {
    margin: 0;
    color: var(--text-sub);
    font-size: 14px;
    line-height: 1.55;
}

.product-decision-price {
    display: grid;
    gap: 4px;
}

.product-decision-price-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.product-decision-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.detail-grid,
.detail-trust-grid,
.faq-list {
    display: grid;
    gap: 10px;
}

.detail-card,
.detail-trust-card,
.faq-item {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfcfb, #f4f8f5);
    padding: 14px;
    display: grid;
    gap: 8px;
}

.detail-list {
    margin: 0;
    padding-left: 18px;
    color: var(--text-sub);
    display: grid;
    gap: 8px;
}

.ordered {
    padding-left: 20px;
}

.service-meta {
    margin-top: 12px;
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-meta > div {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.service-meta strong {
    display: block;
    margin-bottom: 6px;
    color: var(--brand-900);
}

.service-meta p,
.coming-soon-note p,
.coming-soon-note span {
    margin: 0;
    line-height: 1.6;
    color: var(--text-sub);
}

.price-block {
    text-align: right;
}

.detail-purchase-card {
    display: grid;
    gap: 14px;
}

.variant-choice-list {
    display: grid;
    gap: 10px;
}

.variant-choice-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.variant-choice-card.is-unavailable {
    cursor: not-allowed;
}

.variant-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.variant-choice-body {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: #fff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.variant-choice-input:checked + .variant-choice-body {
    border: 2px solid var(--brand-700);
    box-shadow: 0 10px 24px rgba(20, 115, 77, 0.16);
    background: linear-gradient(180deg, rgba(20, 115, 77, 0.12), rgba(20, 115, 77, 0.05));
    transform: translateY(-1px);
}

.variant-choice-input:disabled + .variant-choice-body {
    opacity: 0.7;
}

.variant-choice-top {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: flex-start;
    justify-content: space-between;
}

.variant-choice-heading {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.variant-choice-indicator {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border-radius: 999px;
    border: 2px solid #b7ccc0;
    background: #fff;
    box-shadow: inset 0 0 0 4px #fff;
    transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.variant-choice-top strong {
    color: var(--brand-900);
    font-size: 16px;
    line-height: 1.35;
}

.variant-choice-meta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
}

.variant-choice-selected-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--brand-700);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-2px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.variant-choice-input:checked + .variant-choice-body .variant-choice-indicator {
    border-color: var(--brand-700);
    background: var(--brand-700);
    box-shadow: inset 0 0 0 4px #fff;
    transform: scale(1.02);
}

.variant-choice-input:checked + .variant-choice-body .variant-choice-selected-tag {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.variant-choice-price-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.variant-choice-price {
    color: var(--brand-900);
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
}

.detail-selected-summary {
    display: grid;
    gap: 6px;
    padding: 12px 14px;
    border-radius: var(--radius-md);
    border: 1px solid #dce7e0;
    background: #f8fbf9;
}

.detail-selected-kicker {
    margin-bottom: 0;
}

.detail-selected-main {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.detail-selected-main strong {
    color: var(--brand-900);
    font-size: 15px;
}

.detail-selected-price {
    color: var(--brand-700);
    font-size: 14px;
    font-weight: 800;
}

.detail-purchase-form {
    display: grid;
    gap: 12px;
}

.detail-quantity-row {
    display: grid;
    gap: 6px;
}

.detail-quantity-label {
    color: var(--brand-900);
    font-size: 13px;
    font-weight: 800;
}

.detail-primary-action {
    min-height: 48px;
}

.is-hidden {
    display: none;
}

.coming-soon-note {
    margin-top: 16px;
    padding: 14px;
    border-radius: var(--radius-md);
    background: var(--bg-soft);
    display: grid;
    gap: 6px;
}

.site-footer {
    margin-top: 16px;
    margin-bottom: 12px;
    padding: 16px 14px;
}

.site-footer-brand {
    display: grid;
    gap: 6px;
}

.site-footer-mark {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--brand-900);
}

.site-footer-tagline {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: var(--text-sub);
}

.footer-link-grid {
    margin-top: 14px;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-link-grid a {
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-700);
}

.result-success {
    color: var(--brand-800);
    font-weight: 800;
}

.result-pending {
    color: var(--text-muted);
    font-weight: 800;
}

.result-fail {
    color: #8d3b3b;
    font-weight: 800;
}

.empty-note {
    text-align: center;
    padding: 18px 12px;
    color: #71897b;
}

.results-empty-card {
    grid-column: 1 / -1;
}

.results-section .product-grid {
    margin-top: 0;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 560px) {
    .results-section .product-grid {
        grid-template-columns: 1fr;
    }
}

.bottom-tabbar {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: min(760px, 100vw);
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid #d8e1da;
    backdrop-filter: blur(7px);
    z-index: 40;
}

.tabbar-inner {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.tab-item {
    min-width: 0;
    min-height: 64px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    color: #6d8578;
    font-size: 11px;
    font-weight: 700;
    gap: 4px;
    padding: 8px 2px 10px;
}

.tab-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.tab-item span {
    max-width: 100%;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tab-item.active {
    color: var(--brand-700);
}

.tab-count {
    position: absolute;
    top: 6px;
    left: 50%;
    right: auto;
    transform: translateX(6px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--brand-700);
    color: #fff;
    font-size: 11px;
    font-style: normal;
    line-height: 18px;
    text-align: center;
}

.success-banner-card {
    display: grid;
    gap: 14px;
    border-color: rgba(20, 115, 77, 0.18);
    background: linear-gradient(180deg, rgba(20, 115, 77, 0.08), rgba(255, 255, 255, 0.96));
}

.summary-grid {
    display: grid;
    gap: 12px;
}

.summary-card,
.summary-link-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #fbfcfb, #f5f8f6);
    padding: 14px;
    display: grid;
    gap: 8px;
}

.filter-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fbfcfb;
    color: #587064;
    font-size: 13px;
    font-weight: 800;
}

.filter-chip.active {
    border-color: rgba(20, 115, 77, 0.24);
    background: rgba(20, 115, 77, 0.08);
    color: var(--brand-700);
}

.progress-task-card {
    gap: 12px;
}

.page-title-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-title-badge {
    transform: translateY(1px);
}

.progress-preview-list {
    display: grid;
    gap: 10px;
}

.progress-preview-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e2e8e3;
}

.progress-preview-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.progress-preview-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.progress-preview-title,
.progress-preview-meta,
.progress-preview-note {
    margin: 0;
}

.progress-preview-title {
    color: var(--brand-900);
    font-size: 14px;
    font-weight: 800;
}

.progress-preview-meta {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.5;
}

.progress-preview-note {
    color: var(--brand-700);
    font-size: 13px;
    font-weight: 700;
}

.progress-preview-action {
    flex: none;
    min-width: 112px;
}

.progress-card-footer {
    display: flex;
    justify-content: flex-end;
}

.consultation-action-card {
    gap: 10px;
}

.consultation-detail-lines {
    display: grid;
    gap: 6px;
}

.consultation-detail-line {
    margin: 0;
    color: var(--brand-900);
    font-size: 14px;
    font-weight: 700;
}

.consultation-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.consultation-workspace-card {
    gap: 14px;
}

.workspace-status-grid {
    display: grid;
    gap: 8px;
}

.consultation-progress-groups {
    display: grid;
    gap: 14px;
}

.consultation-progress-group {
    gap: 10px;
}

.progress-compact-list .progress-preview-item {
    padding-top: 12px;
}

.summary-card h3,
.summary-link-card h3 {
    margin: 0;
    font-size: 16px;
    color: var(--brand-900);
}

.summary-card p,
.summary-link-card p {
    margin: 0;
    color: var(--text-sub);
    line-height: 1.6;
}

.summary-link-card {
    color: inherit;
}

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

.profile-summary {
    display: grid;
    gap: 6px;
}

.profile-summary p {
    margin: 0;
}

.status-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.orders-page-header {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.orders-page-header-card {
    padding-top: 12px;
    padding-bottom: 12px;
}

.orders-page-header-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
}

.orders-page-header-top .page-title {
    margin: 0;
}

.orders-page-summary {
    margin: 0;
    font-size: 14px;
}

.orders-page-header .filter-chip-row {
    margin-top: 2px;
}

.order-section {
    display: grid;
    gap: 10px;
}

.order-section-heading {
    align-items: start;
    margin-bottom: 10px;
}

.order-card {
    display: grid;
    gap: 12px;
}

.order-card.historical {
    background: linear-gradient(180deg, #fbfcfb, #f7faf8);
}

.order-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
}

.order-card-status-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.order-card-title,
.order-card-meta,
.order-card-amount-label,
.order-card-amount-value {
    margin: 0;
}

.order-card-title {
    color: var(--brand-900);
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}

.order-card-meta {
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.order-card-amount-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #e2e8e3;
}

.order-card-amount-label {
    color: var(--text-sub);
    font-size: 14px;
    font-weight: 700;
}

.order-card-amount-value {
    color: var(--brand-900);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.order-card-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.order-card-actions > * {
    flex: 1 1 148px;
    min-width: 0;
}

.service-guide-hero,
.guide-section {
    scroll-margin-top: 88px;
}

@media (min-width: 768px) {
    .page-shell {
        padding: 18px 20px 98px;
    }

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

    .home-featured-section .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .brand-link {
        font-size: 36px;
    }

    .brand-stack strong {
        font-size: 34px;
    }

    .brand-subline {
        font-size: 13px;
    }

    .product-hero {
        grid-template-columns: minmax(0, 240px) 1fr;
        align-items: start;
    }

    .product-decision-grid {
        grid-template-columns: minmax(0, 240px) 1fr;
        align-items: start;
    }

    .detail-grid,
    .detail-trust-grid,
    .faq-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

@media (max-width: 420px) {
    .section-title {
        font-size: clamp(24px, 9vw, 34px);
    }

    .product-card .price-main {
        font-size: clamp(18px, 6vw, 22px);
    }

    .product-card .price-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .product-card .mini-cta {
        width: 100%;
        justify-self: stretch;
    }

    .results-section .product-list-card .product-link {
        grid-template-columns: minmax(108px, 0.7fr) minmax(0, 1fr);
        gap: 10px;
        padding: 12px;
    }

    .results-section .product-list-card .mini-cta {
        width: auto;
        justify-self: end;
        min-width: 78px;
        padding-inline: 12px;
    }

    .trust-grid,
    .service-meta,
    .footer-link-grid {
        grid-template-columns: 1fr;
    }

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

    .home-mini-category-card {
        min-height: 74px;
    }

    .home-mini-category-card span {
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .inline-row {
        grid-template-columns: 1fr;
    }

    .btn-inline {
        width: 100%;
    }

    .section-heading {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 360px) {
    .results-section .product-list-footer {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .results-section .product-list-card .mini-cta {
        width: 100%;
        justify-self: stretch;
    }

    .app-header-inner {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-primary-actions {
        gap: 4px;
    }

    .app-header-top,
    .app-header-bottom {
        gap: 8px;
    }

    .brand-stack strong {
        font-size: clamp(18px, 5.7vw, 21px);
    }

    .brand-subline,
    .header-link,
    .header-logout {
        font-size: 11px;
    }

    .filter-row {
        grid-template-columns: 1fr;
    }
}
