:root {
    --bg: #f5f7f4;
    --surface: #ffffff;
    --surface-soft: #f0f6ef;
    --text: #152019;
    --muted: #637067;
    --line: #dde5df;
    --primary: #176b43;
    --primary-dark: #0f5132;
    --primary-light: #dff1e7;
    --accent: #d8f15a;
    --danger: #b42318;
    --danger-soft: #fff0ee;
    --shadow: 0 16px 50px rgba(24, 52, 35, 0.08);
    --radius: 22px;
    --radius-small: 13px;
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-underline-offset: 3px;
}

button,
input,
select {
    font: inherit;
}

button,
.button,
select {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(221, 229, 223, 0.85);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner,
.section-inner,
.hero-inner,
.page-shell,
.notice-section,
.flash-wrap {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-decoration: none;
}

.brand-mark {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: var(--primary);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 19px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.site-nav a,
.nav-button {
    border: 0;
    padding: 8px 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.site-nav a:hover,
.nav-button:hover {
    color: var(--primary);
}

.inline-form {
    display: inline;
    margin: 0;
}

.hero {
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 30%, rgba(216, 241, 90, 0.32), transparent 29%),
        linear-gradient(145deg, #f8fbf6 0%, #edf5ef 100%);
}

.hero-inner {
    min-height: 620px;
    padding-block: 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.75fr);
    align-items: center;
    gap: clamp(40px, 6vw, 72px);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(42px, 4.8vw, 64px);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.hero-line {
    display: block;
    white-space: nowrap;
}

.hero-line-accent {
    position: relative;
    color: var(--primary);
}

.hero-word {
    white-space: nowrap;
}

.hero-lead {
    max-width: 620px;
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 3px solid rgba(23, 107, 67, 0.22);
    outline-offset: 2px;
}

.button-primary {
    background: var(--primary);
    color: #fff;
}

.button-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.button-secondary {
    border-color: var(--line);
    background: #fff;
    color: var(--text);
}

.button-secondary:hover {
    border-color: #bdc9c0;
    color: var(--primary);
}

.button-danger {
    background: var(--danger);
    color: #fff;
}

.button-disabled {
    border-color: var(--line);
    background: #eef1ef;
    color: #89918b;
    cursor: not-allowed;
}

.button-disabled:hover {
    transform: none;
}

.button-large {
    min-height: 54px;
    padding-inline: 25px;
    border-radius: 14px;
}

.button-block {
    width: 100%;
    min-height: 52px;
}

.hero-preview {
    position: relative;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 80px rgba(28, 77, 47, 0.13);
    transform: rotate(1.5deg);
}

.hero-preview::before {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -55px;
    top: -48px;
    border-radius: 50%;
    background: var(--accent);
    z-index: -1;
}

.preview-caption {
    margin: 0 4px 8px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-align: right;
}

.preview-total {
    padding: 26px;
    border-radius: 20px;
    background: var(--primary);
    color: #fff;
}

.preview-total span,
.preview-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
}

.preview-total strong {
    display: block;
    margin-top: 3px;
    font-size: 40px;
    line-height: 1.3;
    letter-spacing: -0.03em;
}

.preview-card {
    margin-top: 12px;
    padding: 19px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: #fff;
}

.preview-card strong {
    display: block;
    margin-top: 2px;
    font-size: 24px;
}

.preview-card small {
    font-size: 13px;
}

.preview-yen {
    color: var(--primary);
    font-weight: 800;
}

.feature-section {
    padding: 96px 0;
    background: #fff;
}

.feature-section h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -0.03em;
}

.feature-grid {
    margin-top: 42px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    min-height: 220px;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(3.4em, auto) 1fr;
    align-content: start;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.feature-number {
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 700;
}

.feature-card h3 {
    margin: 28px 0 8px;
    font-size: 19px;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.notice-section {
    padding-block: 58px 80px;
}

.notice-box {
    padding: 26px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    background: #fff;
}

.notice-box strong {
    display: block;
    margin-bottom: 6px;
}

.notice-box p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.page-shell {
    min-height: calc(100vh - 170px);
    padding-block: 48px 80px;
}

.narrow-shell {
    width: min(720px, calc(100% - 40px));
}

.dashboard-shell {
    padding-top: 30px;
}

.panel {
    padding: clamp(26px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel-heading {
    margin-bottom: 30px;
}

.panel-heading h1,
.status-panel h1 {
    margin: 0;
    font-size: clamp(28px, 4.5vw, 38px);
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.panel-heading > p:last-child,
.status-panel .muted {
    margin: 8px 0 0;
    color: var(--muted);
}

.auth-panel {
    max-width: 580px;
    margin-inline: auto;
}

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

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

.form-group label {
    font-size: 14px;
    font-weight: 800;
}

input,
select {
    width: 100%;
    min-height: 50px;
    border: 1px solid #cfd9d2;
    border-radius: 11px;
    padding: 11px 13px;
    background: #fff;
    color: var(--text);
}

input:hover,
select:hover {
    border-color: #aabbb0;
}

input:focus,
select:focus {
    border-color: var(--primary);
}

.field-hint {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.optional {
    margin-left: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.input-suffix {
    position: relative;
}

.input-suffix input {
    padding-right: 52px;
}

.input-suffix span {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    pointer-events: none;
}

.auth-switch {
    margin: 26px 0 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.auth-switch a {
    font-weight: 800;
}

.auth-help-link {
    margin: 0;
    font-size: 12px;
    text-align: right;
}

.auth-help-link a,
.auth-inline-notice a {
    color: var(--muted);
    text-decoration-color: #afbeb4;
    text-underline-offset: 3px;
}

.auth-help-link a:hover,
.auth-inline-notice a:hover {
    color: var(--primary-dark);
}

.auth-inline-notice {
    margin: -10px 0 22px;
    font-size: 13px;
    text-align: center;
}

.auth-result-actions {
    margin-top: 22px;
    display: grid;
    gap: 12px;
}

.auth-security-note {
    margin-top: 18px;
    text-align: center;
}

.auth-code-input {
    min-height: 64px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.28em;
    text-align: center;
}

.auth-resend-form,
.auth-inline-action-form {
    margin-top: 20px;
    text-align: center;
}

.auth-inline-action-form {
    margin: -8px 0 22px;
}

.auth-text-button {
    min-height: 44px;
    border: 0;
    padding: 8px 12px;
    background: transparent;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: #afbeb4;
    text-underline-offset: 3px;
    cursor: pointer;
}

.auth-text-button:hover {
    color: var(--primary);
}

.recovery-guide {
    border: 1px solid #d9e6dc;
    border-radius: 14px;
    padding: 18px;
    background: var(--surface-soft);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.recovery-guide ol {
    margin: 0;
    padding-left: 1.5em;
}

.recovery-guide li + li {
    margin-top: 8px;
}

.recovery-guide p {
    margin: 16px 0 0;
    font-size: 12px;
}

.error-box,
.flash,
.privacy-note {
    margin-bottom: 24px;
    border-radius: 11px;
    padding: 14px 16px;
    font-size: 14px;
}

.error-box {
    border: 1px solid #ffc8c2;
    background: var(--danger-soft);
    color: #8b1a11;
}

.error-box ul {
    margin: 0;
    padding-left: 20px;
}

.flash-wrap {
    position: relative;
    z-index: 10;
}

.flash {
    margin: 18px 0 0;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: 0 8px 25px rgba(24, 52, 35, 0.06);
}

.flash-success {
    border-color: #b6dfc7;
    background: #edf9f1;
    color: var(--primary-dark);
}

.flash-info {
    border-color: #cbdce8;
    background: #f0f7fb;
    color: #28566f;
}

.privacy-note {
    margin: 0;
    border: 1px solid #d9e6dc;
    background: var(--surface-soft);
}

.privacy-note strong {
    font-size: 13px;
}

.privacy-note p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.back-link {
    margin-bottom: 16px;
}

.back-link a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.registration-shell {
    width: min(920px, calc(100% - 40px));
}

.registration-heading {
    text-align: center;
}

.service-registration-form {
    display: grid;
    gap: 26px;
}

.service-fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.service-fieldset legend {
    width: 100%;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
}

.service-hint {
    margin: 4px 0 18px;
    text-align: center;
}

.service-display-toolbar {
    margin: 8px 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.service-display-toolbar .service-hint {
    margin: 0;
    text-align: left;
}

.service-display-toggle {
    flex: none;
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(78px, 1fr));
    gap: 3px;
    border: 1px solid #cfdad2;
    border-radius: 12px;
    padding: 3px;
    background: #f3f6f4;
}

.service-display-toggle button {
    min-height: 44px;
    border: 0;
    border-radius: 9px;
    padding: 7px 11px;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.service-display-toggle button.is-active,
.service-display-toggle button[aria-pressed="true"] {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 3px 10px rgba(23, 107, 67, 0.18);
}

.service-display-toggle button:disabled {
    opacity: 0.62;
    cursor: wait;
}

.service-display-notice {
    margin: -8px 0 12px;
    color: #8c5d00;
    font-size: 11px;
    text-align: right;
}

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

.service-choice {
    position: relative;
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 17px;
    background: #fff;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.service-choice:hover {
    border-color: #9eb4a5;
    transform: translateY(-1px);
}

.service-choice input {
    position: absolute;
    width: 1px;
    min-height: 1px;
    margin: 0;
    opacity: 0;
}

.service-check {
    width: 23px;
    height: 23px;
    flex: none;
    display: grid;
    place-items: center;
    border: 2px solid #b8c6bc;
    border-radius: 7px;
    background: #fff;
}

.service-choice-name {
    font-size: 14px;
    font-weight: 800;
    line-height: 1.5;
}

.service-provider-note {
    margin-left: auto;
    border-radius: 999px;
    padding: 2px 7px;
    background: #eef5ff;
    color: #315d8c;
    font-size: 9px;
    font-weight: 800;
}

.service-support-note,
.service-category-note {
    margin-left: auto;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 800;
}

.service-support-note.is-manual {
    background: #e5f1ff;
    color: #245b8e;
}

.service-category-note {
    width: 100%;
    margin-left: 35px;
    padding: 0;
    color: var(--muted);
}

.service-choice.is-selected,
.service-choice:has(input:checked) {
    border-color: var(--primary);
    background: var(--surface-soft);
    box-shadow: 0 0 0 2px rgba(23, 107, 67, 0.08);
}

.service-choice.is-selected .service-check,
.service-choice:has(input:checked) .service-check {
    border-color: var(--primary);
    background: var(--primary);
}

.service-choice.is-selected .service-check::after,
.service-choice:has(input:checked) .service-check::after {
    content: "✓";
    color: #fff;
    font-size: 14px;
    font-weight: 900;
}

.service-choice:has(input:focus-visible) {
    outline: 3px solid rgba(23, 107, 67, 0.22);
    outline-offset: 2px;
}

.service-choice.is-registered {
    flex-wrap: wrap;
    border-color: #e1e5e2;
    background: #f4f6f4;
    color: #7a837d;
    cursor: not-allowed;
    transform: none;
}

.service-choice.is-registered .service-check {
    border-color: #aeb8b1;
    background: #d9dfdb;
}

.service-choice.is-registered .service-check::after {
    content: "✓";
    color: #667069;
    font-size: 14px;
    font-weight: 900;
}

.service-choice.is-management-disabled:not(.is-registered) {
    border-color: #ddd9cb;
    background: #fffcf2;
}

.service-management-note {
    margin-left: auto;
    border-radius: 999px;
    padding: 2px 7px;
    background: #f4ead0;
    color: #715817;
    font-size: 9px;
    font-weight: 800;
    white-space: nowrap;
}

.registered-badge {
    width: 100%;
    padding-left: 35px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
}

.service-registration-status:not(.registered-badge) {
    display: none;
}

.service-fieldset[data-view-mode="list"] .service-choice-grid {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.service-fieldset[data-view-mode="list"] .service-choice {
    min-height: 60px;
    display: grid;
    grid-template-columns: 23px minmax(220px, 1.4fr) minmax(120px, 0.7fr) minmax(90px, auto) 92px;
    grid-template-areas: "check name category note status";
    align-items: center;
    gap: 8px 13px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    padding: 10px 14px;
}

.service-fieldset[data-view-mode="list"] .service-choice:last-child {
    border-bottom: 0;
}

.service-fieldset[data-view-mode="list"] .service-choice:hover {
    border-color: var(--line);
    background: #f8fbf9;
    transform: none;
}

.service-fieldset[data-view-mode="list"] .service-check {
    grid-area: check;
}

.service-fieldset[data-view-mode="list"] .service-choice-name {
    grid-area: name;
    min-width: 0;
    font-size: 15px;
}

.service-fieldset[data-view-mode="list"] .service-category-note {
    width: auto;
    grid-area: category;
    margin: 0;
    padding: 0;
    font-size: 11px;
}

.service-fieldset[data-view-mode="list"] .service-provider-note,
.service-fieldset[data-view-mode="list"] .service-support-note,
.service-fieldset[data-view-mode="list"] .service-management-note {
    grid-area: note;
    justify-self: start;
    margin: 0;
    white-space: nowrap;
}

.service-fieldset[data-view-mode="list"] .service-choice.is-management-disabled .service-provider-note,
.service-fieldset[data-view-mode="list"] .service-choice.is-management-disabled .service-support-note {
    display: none;
}

.service-fieldset[data-view-mode="list"] .service-registration-status {
    width: auto;
    grid-area: status;
    display: block;
    justify-self: end;
    margin: 0;
    padding: 0;
    color: #7a837d;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.service-fieldset[data-view-mode="list"] .service-registration-status.registered-badge {
    color: var(--primary);
}

.service-fieldset[data-view-mode="list"] .service-choice.is-registered {
    background: #f4f6f4;
}

@media (max-width: 767px) {
    .service-fieldset[data-view-mode="card"] .service-choice-grid {
        grid-template-columns: 1fr;
    }

    .service-fieldset[data-view-mode="list"] .service-choice {
        min-height: 74px;
        grid-template-columns: 23px minmax(0, 1fr) auto;
        grid-template-areas:
            "check name status"
            ". category status"
            ". note status";
        align-items: center;
        column-gap: 11px;
        row-gap: 2px;
        padding: 11px 12px;
    }

    .service-fieldset[data-view-mode="list"] .service-choice-name {
        line-height: 1.45;
    }

    .service-fieldset[data-view-mode="list"] .service-category-note {
        font-size: 11px;
    }

    .service-fieldset[data-view-mode="list"] .service-registration-status {
        align-self: center;
        font-size: 10px;
    }
}

@media (max-width: 360px) {
    .service-display-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .service-display-toggle {
        width: 100%;
    }
}

.custom-point-details {
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
}

.custom-point-details summary {
    padding: 17px 19px;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.custom-point-body {
    padding: 0 19px 19px;
    display: grid;
    gap: 8px;
}

.custom-point-body label,
.custom-field-label {
    font-size: 13px;
    font-weight: 800;
}

.custom-point-intro {
    margin: -2px 0 6px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.custom-category-field {
    display: grid;
    gap: 8px;
}

.custom-category-choices {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.custom-category-choice {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.custom-category-choice:focus-visible {
    outline: 3px solid rgba(23, 107, 67, 0.24);
    outline-offset: 2px;
}

.custom-type-fields,
.custom-advanced-body {
    display: grid;
    gap: 8px;
    border-radius: 12px;
    padding: 14px;
    background: #f6f9f7;
}

.custom-type-fields[hidden],
.custom-advanced-details [hidden] {
    display: none;
}

.custom-type-fields label,
.custom-field-grid label {
    display: block;
    margin-bottom: 6px;
}

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

.custom-advanced-details {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.custom-advanced-details > summary {
    padding: 12px 14px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.custom-advanced-body {
    border-radius: 0 0 12px 12px;
    padding-top: 4px;
    background: #fff;
}

.custom-edit-form .custom-type-fields {
    gap: 10px;
}

.station-picker {
    position: relative;
}

.station-input-wrap {
    position: relative;
}

.station-input-wrap input {
    padding-right: 46px;
}

.station-clear {
    position: absolute;
    top: 50%;
    right: 10px;
    width: 30px;
    height: 30px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #e8f0eb;
    color: var(--primary-dark);
    font: 700 18px/30px sans-serif;
    text-align: center;
    cursor: pointer;
}

.station-clear:hover,
.station-clear:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    background: #dce9e0;
}

.station-suggestions {
    position: absolute;
    top: 78px;
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #b9ccc0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 16px 34px rgba(24, 52, 35, 0.16);
}

.station-suggestion {
    width: 100%;
    display: grid;
    gap: 2px;
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 11px 13px;
    background: #fff;
    color: var(--text);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.station-suggestion:last-child {
    border-bottom: 0;
}

.station-suggestion:hover,
.station-suggestion:focus-visible {
    outline: 0;
    background: var(--surface-soft);
}

.station-suggestion strong {
    font-size: 14px;
}

.station-suggestion span,
.station-selection {
    color: var(--muted);
    font-size: 11px;
}

.station-suggestion-lines {
    display: -webkit-box;
    overflow: hidden;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.station-suggestion-location {
    color: #7b8b81 !important;
}

.station-selection {
    margin: 0;
    color: var(--primary-dark);
    font-weight: 700;
}

.custom-benefit-editor {
    margin-top: 6px;
    display: grid;
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.custom-benefit-heading h3 {
    margin: 0;
    font-size: 14px;
}

.custom-benefit-heading p,
.benefit-rule-empty {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.benefit-rule-list {
    display: grid;
    gap: 12px;
}

.benefit-rule-card {
    display: grid;
    gap: 12px;
    border: 1px solid #cfe0d4;
    border-radius: 12px;
    padding: 14px;
    background: #f7faf8;
}

.benefit-rule-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.benefit-rule-heading > strong {
    font-size: 13px;
}

.benefit-enabled-toggle {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    color: var(--muted);
    font-size: 11px !important;
    cursor: pointer;
}

.benefit-enabled-toggle input,
.benefit-targets input {
    width: auto;
    min-height: 0;
    margin: 0;
}

.benefit-targets {
    min-width: 0;
    margin: 0;
    border: 0;
    padding: 0;
}

.benefit-targets legend {
    margin-bottom: 7px;
    font-size: 12px;
    font-weight: 800;
}

.benefit-weekday-grid,
.benefit-monthday-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
}

.benefit-weekday-grid label,
.benefit-monthday-grid label {
    margin: 0;
    cursor: pointer;
}

.benefit-weekday-grid input,
.benefit-monthday-grid input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.benefit-weekday-grid span,
.benefit-monthday-grid span {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid #cbd8cf;
    border-radius: 9px;
    background: #fff;
    color: #536058;
    font-size: 11px;
    font-weight: 800;
}

.benefit-weekday-grid input:checked + span,
.benefit-monthday-grid input:checked + span {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.benefit-weekday-grid input:focus-visible + span,
.benefit-monthday-grid input:focus-visible + span {
    outline: 3px solid rgba(23, 107, 67, 0.24);
    outline-offset: 2px;
}

.benefit-rule-remove {
    justify-self: end;
    border-color: #e3bbb6;
    padding: 8px 11px;
    background: #fff;
    color: var(--danger);
    font-size: 11px;
}

.benefit-rule-add {
    justify-self: start;
}

.registration-footer {
    padding-top: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.selection-summary {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.selection-summary strong {
    margin-right: 3px;
    color: var(--primary);
    font-size: 20px;
}

.dashboard-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.dashboard-heading h1 {
    margin: 0;
    font-size: clamp(32px, 5vw, 48px);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.muted {
    color: var(--muted);
}

.dashboard-heading .muted {
    margin: 8px 0 0;
}

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

.bulk-update-button {
    box-shadow: 0 10px 24px rgba(23, 107, 67, 0.18);
}

.total-card {
    margin-bottom: 28px;
    padding: clamp(26px, 5vw, 42px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 90% 20%, rgba(216, 241, 90, 0.3), transparent 28%),
        var(--primary);
    color: #fff;
    box-shadow: 0 20px 50px rgba(23, 107, 67, 0.2);
}

.total-card p {
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 14px;
    font-weight: 700;
}

.total-card strong {
    font-size: clamp(42px, 8vw, 72px);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.total-amount {
    min-width: 0;
}

.total-note {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
}

.total-stats {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 8px;
}

.total-stats > div {
    min-width: 90px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 13px;
    padding: 11px 13px;
    background: rgba(255, 255, 255, 0.08);
}

.total-stats dt {
    color: rgba(255, 255, 255, 0.7);
    font-size: 10px;
    font-weight: 700;
}

.total-stats dd {
    margin: 1px 0 0;
    font-size: 23px;
    font-weight: 900;
    line-height: 1.3;
}

.currency-symbol {
    margin-right: 5px;
    font-size: 0.55em;
    vertical-align: 0.35em;
}

.total-count {
    flex: none;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 7px 13px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 700;
}

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

.point-card {
    min-width: 0;
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 10px 32px rgba(24, 52, 35, 0.055);
}

.point-card.is-unchecked {
    border-style: dashed;
}

.point-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.point-service-label {
    margin: 0 0 4px;
    color: #8c9790;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.point-card h2 {
    margin: 0;
    overflow-wrap: anywhere;
    font-size: 20px;
    line-height: 1.4;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 8px;
    border-radius: 999px;
    padding: 3px 9px;
    font-size: 10px;
    font-weight: 800;
}

.status-neutral {
    background: #edf0ee;
    color: #667069;
}

.status-manual {
    background: #e5f1ff;
    color: #245b8e;
}

.status-success {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.status-warning {
    background: #fff4d8;
    color: #865b00;
}

.status-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.point-menu {
    display: flex;
    gap: 11px;
    flex: none;
}

.point-menu a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.point-menu .danger-link {
    color: var(--danger);
}

.balance-block {
    margin: 27px 0 24px;
    padding-bottom: 23px;
    border-bottom: 1px solid var(--line);
}

.balance-block p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.balance-block strong {
    display: block;
    margin-top: 2px;
    font-size: clamp(34px, 5vw, 46px);
    line-height: 1.25;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.balance-block small {
    font-size: 15px;
    letter-spacing: 0;
}

.balance-block .balance-unavailable {
    color: #68736c;
    font-size: clamp(31px, 5vw, 42px);
}

.yen-excluded {
    display: inline-block;
    margin-top: 8px;
    border-radius: 7px;
    padding: 4px 9px;
    background: #eef1ef;
    color: #737c76;
    font-size: 12px;
    font-weight: 700;
}

.yen-value {
    display: inline-block;
    margin-top: 8px;
    border-radius: 7px;
    padding: 4px 9px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
}

.point-meta {
    margin: 0;
    display: grid;
    gap: 9px;
}

.point-meta > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.point-meta dt {
    color: var(--muted);
    font-size: 12px;
}

.point-meta dd {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
}

.card-actions {
    margin-top: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.card-actions .button {
    padding-inline: 10px;
    font-size: 12px;
}

.empty-state {
    padding-block: 70px;
    text-align: center;
}

.empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: 700;
}

.empty-state h2 {
    margin: 0;
    font-size: 23px;
}

.empty-state p {
    max-width: 540px;
    margin: 11px auto 26px;
    color: var(--muted);
}

.delete-panel,
.status-panel {
    text-align: center;
}

.delete-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--danger-soft);
    color: var(--danger);
    font-size: 26px;
    font-weight: 900;
}

.danger-text {
    color: var(--danger);
}

.delete-panel h1 {
    margin: 0;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.45;
}

.delete-panel > p:not(.eyebrow) {
    margin: 14px auto 0;
    color: var(--muted);
}

.delete-actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.status-panel .button {
    margin-top: 26px;
}

.coming-soon-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 34px;
    font-weight: 800;
}

.status-description {
    max-width: 520px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: 14px;
}

[hidden] {
    display: none !important;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
}

.footer-inner {
    min-height: 98px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--muted);
    font-size: 12px;
}

.footer-inner p {
    margin: 0;
}

.footer-copy {
    display: grid;
    gap: 5px;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-nav a {
    color: var(--primary-dark);
    font-weight: 700;
    text-underline-offset: 3px;
}

@media (max-width: 820px) {
    .hero-inner {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 64px;
        gap: 46px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-preview {
        width: min(520px, 100%);
        margin-inline: auto;
        transform: none;
    }

    .feature-grid,
    .point-grid {
        grid-template-columns: 1fr;
    }

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

    .total-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-card {
        min-height: auto;
        display: block;
    }

    .feature-card h3 {
        min-height: 0;
        margin-top: 16px;
    }
}

@media (max-width: 620px) {
    .header-inner,
    .footer-inner,
    .section-inner,
    .hero-inner,
    .page-shell,
    .notice-section,
    .flash-wrap {
        width: min(100% - 28px, 1120px);
    }

    .header-inner {
        min-height: 64px;
    }

    .site-nav {
        gap: 13px;
    }

    .site-nav .nav-mobile-hidden {
        display: none;
    }

    .site-nav .inline-form {
        display: inline;
    }

    .site-nav .nav-button,
    .site-nav a {
        font-size: 12px;
    }

    .hero-inner {
        padding-block: 50px 58px;
    }

    .hero h1 {
        font-size: 39px;
    }

    .hero-line {
        white-space: normal;
    }

    .hero-lead {
        font-size: 15px;
    }

    .hero-actions {
        display: grid;
    }

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

    .hero-preview {
        padding: 14px;
        border-radius: 23px;
    }

    .preview-total {
        padding: 21px;
    }

    .preview-total strong {
        font-size: 33px;
    }

    .preview-card {
        padding: 15px;
    }

    .preview-card strong {
        font-size: 21px;
    }

    .feature-section {
        padding-block: 68px;
    }

    .feature-grid {
        margin-top: 30px;
    }

    .notice-section {
        padding-block: 40px 58px;
    }

    .notice-box {
        padding: 20px;
    }

    .page-shell {
        padding-block: 30px 56px;
    }

    .panel {
        padding: 25px 20px;
        border-radius: 18px;
    }

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

    .dashboard-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .dashboard-heading .button {
        width: 100%;
    }

    .dashboard-actions {
        width: 100%;
        display: grid;
    }

    .service-choice-grid {
        grid-template-columns: 1fr;
    }

    .registration-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .registration-footer .button {
        width: 100%;
    }

    .total-card {
        align-items: flex-start;
        flex-direction: column;
        padding: 25px 22px;
        border-radius: 20px;
    }

    .total-card strong {
        font-size: 46px;
    }

    .total-stats {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }

    .total-stats > div {
        min-width: 0;
        padding: 9px;
    }

    .total-stats dt {
        min-height: 30px;
        line-height: 1.45;
    }

    .point-card {
        padding: 22px 19px;
    }

    .point-card-top {
        display: block;
    }

    .point-menu {
        margin-top: 8px;
    }

    .balance-block strong {
        font-size: 39px;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }

    .delete-actions {
        flex-direction: column-reverse;
    }

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

    .footer-inner {
        min-height: 120px;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
        gap: 3px;
        padding-block: 24px;
    }
}

.compact-dashboard-heading {
    margin-bottom: 10px;
    align-items: center;
}

.compact-dashboard-heading .eyebrow {
    margin-bottom: 4px;
}

.compact-dashboard-heading h1 {
    font-size: clamp(30px, 4vw, 42px);
}

.compact-dashboard-heading .muted {
    margin-top: 3px;
    font-size: 14px;
}

.compact-total-card {
    min-height: 112px;
    margin-bottom: 10px;
    padding: 16px 26px;
    align-items: center;
}

.compact-total-card .total-amount strong {
    font-size: clamp(38px, 5vw, 54px);
}

.summary-update-button {
    flex: none;
    min-height: 50px;
    border-color: rgba(255, 255, 255, 0.4);
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 10px 24px rgba(8, 53, 31, 0.2);
}

.summary-update-button:hover {
    background: var(--accent);
    color: var(--primary-dark);
}

.summary-update-area {
    flex: none;
    display: grid;
    justify-items: center;
    gap: 7px;
}

.bulk-progress {
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 800;
}

.update-notice {
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #b6dfc7;
    border-radius: 12px;
    padding: 12px 16px;
    background: #edf9f1;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    white-space: pre-line;
}

.update-notice-link {
    flex: none;
    border-bottom: 1px solid currentColor;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.point-list-tools {
    position: relative;
    margin: 0 0 9px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 5px 12px;
    background: #fff;
}

.point-filter-stack {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.point-asset-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(225px, 330px);
    align-items: end;
    gap: 12px;
    min-width: 0;
}

.point-tool-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.3;
}

.point-search-field input {
    width: 100%;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 11px;
}

.point-search-field {
    width: 100%;
    display: grid;
    gap: 4px;
}

.point-asset-filter-section {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.point-asset-type-chips {
    display: flex;
    gap: 6px;
    min-width: 0;
    overflow-x: auto;
    padding: 1px 1px 3px;
    scrollbar-width: thin;
    overscroll-behavior-inline: contain;
}

.point-asset-type-chip {
    min-height: 34px;
    flex: 0 0 auto;
    border: 1px solid #d6e1d9;
    border-radius: 999px;
    padding: 5px 12px;
    background: #fff;
    color: #405149;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.point-asset-type-chip:hover {
    border-color: #a8c8b4;
    background: #f0f7f2;
    color: var(--primary-dark);
}

.point-asset-type-chip.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.favorite-filter-star {
    color: #e0a400;
    font-size: 14px;
    line-height: 1;
}

.point-asset-type-chip.is-active .favorite-filter-star {
    color: #ffd36a;
}

.point-filter-status {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.point-filter-status:empty {
    display: none;
}

.point-filter-status[data-state="error"] {
    color: var(--danger);
}

.point-asset-type-chip:focus-visible {
    outline: 3px solid rgba(23, 107, 67, 0.2);
    outline-offset: 2px;
}

.point-filter-section {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.point-filter-chips {
    display: grid;
    grid-template-columns: repeat(8, minmax(96px, 1fr));
    gap: 8px;
    padding: 1px;
}

.point-filter-chip {
    min-width: 96px;
    max-width: none;
    min-height: 82px;
    display: inline-grid;
    grid-template-rows: 36px 22px;
    place-items: center;
    align-content: center;
    gap: 7px;
    border: 1px solid #d6e1d9;
    border-radius: 12px;
    padding: 6px 7px;
    background: #fafbfa;
    color: #526159;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
    cursor: pointer;
    transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease;
}

.point-filter-chip:hover {
    border-color: #a8c8b4;
    background: #f0f7f2;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.point-filter-chip.is-active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 13px rgba(23, 107, 67, 0.16);
}

.point-filter-chip-icon {
    width: 36px;
    height: 36px;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.point-filter-chip-label {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    max-width: 100%;
    line-height: 1.05;
    white-space: normal;
    text-wrap: balance;
}

.point-list {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(24, 52, 35, 0.06);
}

.point-list-header,
.point-list-row {
    display: grid;
    grid-template-columns: 56px 38px 64px minmax(190px, 1.35fr) minmax(130px, 0.8fr) 158px 100px 42px;
    align-items: center;
    gap: 10px;
}

.point-list-header {
    min-height: 42px;
    border-bottom: 1px solid var(--line);
    padding: 8px 18px;
    background: #f5f8f5;
    color: #77827a;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.point-list-header span:nth-child(-n + 3),
.point-list-header span:nth-last-child(-n + 2) {
    text-align: center;
}

.point-list-item + .point-list-item {
    border-top: 1px solid var(--line);
}

.point-list-item[hidden] {
    display: none;
}

.point-list-item.is-dragging {
    opacity: 0.55;
}

.point-list-item.is-drag-target {
    box-shadow: inset 0 3px 0 var(--primary);
}

.point-list-row {
    min-height: 78px;
    padding: 8px 18px;
}

.point-list-item.is-unchecked {
    background: #fcfdfc;
}

.point-favorite-cell,
.point-update-cell,
.point-official-cell {
    display: flex;
    justify-content: center;
}

.point-favorite-cell {
    align-items: center;
}

.point-order-cell {
    display: grid;
    place-items: center;
}

.point-drag-handle {
    width: 32px;
    height: 40px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #879189;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -4px;
    cursor: grab;
}

.point-drag-handle:hover:not(:disabled),
.point-drag-handle:focus-visible {
    background: var(--surface-soft);
    color: var(--primary);
}

.point-drag-handle:active {
    cursor: grabbing;
}

.point-drag-handle:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.mobile-order-controls {
    display: none;
}

.point-auto-update {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid #b8d4c2;
    border-radius: 13px;
    background: var(--surface-soft);
    color: var(--primary);
    font-size: 20px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.point-auto-update:hover:not(:disabled) {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.point-auto-update.is-loading {
    width: auto;
    padding-inline: 10px;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
}

.point-auto-update.is-loading [data-update-icon] {
    display: inline-block;
    animation: pointcho-spin 900ms linear infinite;
}

.point-auto-update.is-loading .auto-update-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
}

@keyframes pointcho-spin {
    to {
        transform: rotate(360deg);
    }
}

.point-auto-update.is-success {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary-dark);
}

.point-auto-update.is-login-required {
    border-color: #e5c875;
    background: #fff5d9;
    color: #795600;
}

.point-auto-update.is-error {
    border-color: #efb7b0;
    background: var(--danger-soft);
    color: var(--danger);
}

.point-auto-update.is-manual {
    border-color: var(--line);
    background: #f0f2f0;
    color: #7d857f;
    font-size: 10px;
    cursor: not-allowed;
}

.point-manual-update {
    min-width: 56px;
    min-height: 46px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border: 1px solid #aac4d8;
    border-radius: 13px;
    padding: 5px 7px;
    background: #eef6fc;
    color: #245b8e;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
}

.point-manual-update > span:first-child {
    font-size: 18px;
    line-height: 1;
}

.point-manual-update:hover,
.point-manual-update:focus-visible {
    border-color: #4c86b4;
    background: #e3f1fb;
}

.auto-update-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.manual-update-text {
    font-size: 10px;
}

.point-name-cell {
    min-width: 0;
}

.point-name-heading {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.point-name-heading h2 {
    min-width: 0;
    flex: 1 1 auto;
}

.point-favorite-button {
    width: 46px;
    height: 46px;
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    color: #c39200;
    font-size: 26px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: color 140ms ease, transform 140ms ease;
}

.point-favorite-button:hover:not(:disabled) {
    background: transparent;
    color: #ad7900;
    transform: scale(1.08);
}

.point-favorite-button.is-favorite {
    background: transparent;
    color: #e0a400;
}

.point-favorite-button:focus-visible {
    outline: 3px solid rgba(23, 107, 67, 0.22);
    outline-offset: 2px;
}

.point-favorite-button:disabled {
    opacity: 0.5;
    cursor: wait;
}

.point-name-cell h2 {
    margin: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.point-name-cell .status-badge {
    margin-top: 4px;
    padding: 2px 7px;
    font-size: 9px;
}

.point-category-badge,
.bulk-row-state {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    margin-left: 3px;
    border-radius: 999px;
    padding: 2px 7px;
    background: #f0f3f1;
    color: #68726b;
    font-size: 9px;
    font-weight: 800;
}

.support-mode-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    border-radius: 999px;
    padding: 2px 7px;
    font-size: 9px;
    font-weight: 800;
}

.support-mode-badge.is-manual {
    background: #e5f1ff;
    color: #245b8e;
}

.custom-type-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    margin-left: 3px;
    border-radius: 999px;
    padding: 2px 7px;
    background: #f2edf9;
    color: #6b4d8f;
    font-size: 9px;
    font-weight: 800;
}

.manual-checked-label {
    display: block;
    color: #245b8e;
    font-size: 9px;
    font-weight: 800;
}

.manual-only-note {
    margin: 0;
    border-radius: 10px;
    padding: 12px 14px;
    background: #eef6fc;
    color: #245b8e;
    font-size: 13px;
}

.bulk-row-state[data-state="waiting"],
.bulk-row-state[data-state="skipped"] {
    color: #68726b;
}

.bulk-row-state[data-state="updating"] {
    background: #eef5ff;
    color: #315d8c;
}

.bulk-row-state[data-state="success"] {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.bulk-row-state[data-state="login"] {
    background: #fff5d9;
    color: #795600;
}

.bulk-row-state[data-state="failed"] {
    background: var(--danger-soft);
    color: var(--danger);
}

.point-filter-empty {
    margin: 0;
    padding: 28px 18px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.point-balance-cell {
    min-width: 0;
    display: grid;
    gap: 1px;
}

.point-balance-cell strong {
    overflow: hidden;
    font-size: 21px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.point-balance-cell strong small {
    font-size: 11px;
    letter-spacing: 0;
}

.point-balance-cell > span {
    color: var(--muted);
    font-size: 10px;
}

.point-balance-cell .block-conversion-hint {
    width: fit-content;
    border-radius: 999px;
    padding: 2px 7px;
    background: #eef6fc;
    color: #245b8e;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.4;
}

.point-balance-cell .compact-balance-unavailable {
    color: #737c76;
    font-size: 17px;
}

.custom-stamp-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.custom-stamp-progress i {
    width: 8px;
    height: 8px;
    border: 1px solid #9fb1a5;
    border-radius: 50%;
    background: #fff;
}

.custom-stamp-progress i.is-filled {
    border-color: var(--primary);
    background: var(--primary);
}

.point-balance-cell .custom-reward-status {
    max-width: 100%;
    overflow: hidden;
    color: #68726b;
    font-size: 9px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.point-balance-cell .custom-reward-status.is-achieved {
    color: var(--primary);
}

.point-balance-cell .custom-expiration {
    color: #68726b;
    font-size: 9px;
}

.point-balance-cell .custom-expiration.is-warning,
.point-balance-cell .custom-expiration.is-danger {
    color: #9a6300;
    font-weight: 800;
}

.stamp-quick-dialog {
    width: min(440px, calc(100% - 32px));
    max-height: min(720px, calc(100dvh - 32px));
    margin: auto;
    overflow-y: auto;
    border: 0;
    border-radius: 22px;
    padding: 24px;
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 28px 80px rgba(15, 40, 25, 0.24);
}

.stamp-quick-dialog::backdrop {
    background: rgba(15, 32, 22, 0.48);
    backdrop-filter: blur(3px);
}

.stamp-quick-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.stamp-quick-header .eyebrow {
    margin: 0 0 3px;
}

.stamp-quick-header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.45;
}

.stamp-quick-close {
    width: 44px;
    height: 44px;
    flex: none;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--muted);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.stamp-quick-current {
    margin-top: 20px;
    border: 1px solid #d5e5da;
    border-radius: 17px;
    padding: 17px 18px;
    background: var(--surface-soft);
}

.stamp-quick-current > span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.manual-balance-current > label {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.manual-balance-input {
    margin-top: 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.manual-balance-input input {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border: 1px solid #b7c9bd;
    border-radius: 13px;
    padding: 8px 12px;
    background: #fff;
    color: var(--text);
    font-size: 28px;
    font-weight: 900;
    line-height: 1.2;
    text-align: right;
}

.manual-balance-input input:focus {
    outline: 3px solid rgba(23, 107, 67, 0.18);
    border-color: var(--primary);
}

.manual-balance-input input[aria-invalid="true"] {
    border-color: var(--danger);
    outline-color: rgba(180, 35, 24, 0.16);
}

.manual-balance-input > span {
    min-width: 24px;
    color: var(--text);
    font-size: 15px;
    font-weight: 900;
}

.manual-balance-current > p {
    min-height: 0;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.stamp-quick-current strong {
    display: block;
    margin-top: 2px;
    font-size: 30px;
    line-height: 1.35;
    letter-spacing: -0.03em;
}

.stamp-quick-current strong b {
    font: inherit;
}

.stamp-quick-current strong small {
    font-size: 12px;
    letter-spacing: 0;
}

.stamp-quick-progress {
    height: 10px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: #d8e2db;
}

.stamp-quick-progress i {
    width: 0;
    height: 100%;
    display: block;
    border-radius: inherit;
    background: var(--primary);
    transition: width 180ms ease;
}

.stamp-quick-current p {
    min-height: 24px;
    margin: 10px 0 0;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.6;
    white-space: pre-line;
}

.stamp-quick-current p.is-achieved {
    color: var(--primary);
}

.stamp-quick-current p.is-warning {
    color: #8a5900;
}

.stamp-quick-feedback {
    margin: 14px 0 0;
    border-radius: 11px;
    padding: 9px 11px;
    background: var(--success-soft);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
}

.stamp-quick-feedback.is-error {
    background: var(--danger-soft);
    color: var(--danger);
}

.stamp-quick-actions {
    margin-top: 18px;
    display: grid;
    gap: 11px;
}

.manual-balance-actions .stamp-quick-reset {
    width: 100%;
    min-height: 48px;
}

.stamp-quick-actions button,
.stamp-reset-confirm button,
.stamp-quick-dismiss {
    min-height: 48px;
    border-radius: 13px;
    padding: 10px 16px;
    font-weight: 900;
    cursor: pointer;
}

.stamp-quick-increment {
    min-height: 58px !important;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(23, 107, 67, 0.2);
}

.stamp-quick-secondary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
    gap: 11px;
}

.stamp-quick-decrement {
    border: 1px solid #b7c9bd;
    background: #fff;
    color: var(--primary-dark);
}

.stamp-quick-reset {
    border: 1px solid transparent;
    background: #f1f3f1;
    color: #68726b;
    font-size: 12px;
}

.stamp-quick-actions button:hover:not(:disabled),
.stamp-reset-confirm button:hover:not(:disabled),
.stamp-quick-dismiss:hover:not(:disabled) {
    filter: brightness(0.97);
}

.stamp-quick-actions button:disabled,
.stamp-reset-confirm button:disabled,
.stamp-quick-dismiss:disabled,
.stamp-quick-close:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    box-shadow: none;
}

.stamp-reset-confirm {
    margin-top: 18px;
    border: 1px solid #edc0ba;
    border-radius: 15px;
    padding: 15px;
    background: var(--danger-soft);
}

.stamp-reset-confirm > strong {
    display: block;
    color: #75251d;
    font-size: 14px;
}

.stamp-reset-confirm > p {
    margin: 5px 0 12px;
    color: #7d4b46;
    font-size: 12px;
}

.stamp-reset-confirm > div {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.stamp-reset-confirm button {
    border: 1px solid #d9b4af;
    background: #fff;
    color: #67423e;
}

.stamp-reset-confirm button.is-danger {
    border-color: var(--danger);
    background: var(--danger);
    color: #fff;
}

.stamp-quick-dismiss {
    width: 100%;
    margin-top: 12px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 12px;
}

.point-checked-cell {
    display: grid;
    gap: 1px;
}

.point-checked-cell time {
    color: #536058;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mobile-cell-label {
    display: none;
    color: var(--muted);
    font-size: 9px;
}

.compact-official-button {
    min-width: 72px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 7px 9px;
    background: #fff;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
}

.compact-official-button:hover {
    border-color: var(--primary);
    background: var(--surface-soft);
}

.compact-official-button.is-disabled {
    background: #f0f2f0;
    color: #929994;
}

.point-overflow-menu {
    position: relative;
    display: flex;
    justify-content: center;
}

.point-overflow-menu summary {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    color: #667069;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    list-style: none;
    cursor: pointer;
}

.point-overflow-menu summary::-webkit-details-marker {
    display: none;
}

.point-overflow-menu summary:hover,
.point-overflow-menu[open] summary {
    background: var(--surface-soft);
    color: var(--primary);
}

.point-menu-popover {
    position: absolute;
    top: 42px;
    right: 0;
    z-index: 12;
    width: 150px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(24, 52, 35, 0.16);
}

.point-menu-popover a,
.point-menu-popover button,
.point-menu-meta {
    width: 100%;
    display: block;
    border: 0;
    padding: 10px 13px;
    background: #fff;
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
    font-family: inherit;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.point-menu-meta {
    cursor: default;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
}

.point-menu-popover a:hover,
.point-menu-popover button:hover {
    background: var(--surface-soft);
}

.point-menu-popover .danger-link {
    border-top: 1px solid var(--line);
    color: var(--danger);
}

.point-list-item.has-point-details .point-list-row {
    min-height: 92px;
}

.rakuten-balance-breakdown {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #43574a;
    font-size: 10px;
    line-height: 1.35;
    white-space: nowrap;
}

.rakuten-balance-breakdown b {
    color: var(--primary-dark);
    font-weight: 900;
}

.amazon-balance-breakdown,
.dpoint-balance-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 9px;
    color: #43574a;
    font-size: 9px;
    line-height: 1.4;
}

.amazon-balance-breakdown b,
.dpoint-balance-breakdown b {
    color: var(--primary-dark);
    font-weight: 900;
}

.rakuten-expiration-summary,
.vpoint-expiration-summary {
    width: fit-content;
    border-radius: 999px;
    padding: 2px 7px;
    background: #f1f5f2;
    color: #536058;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.4;
}

.rakuten-expiration-summary.is-warning,
.vpoint-expiration-summary.is-warning {
    background: #fff5d9;
    color: #795600;
}

.rakuten-expiration-summary.is-danger,
.vpoint-expiration-summary.is-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.vpoint-fetch-hint,
.vpass-login-hint {
    color: #65746a;
    font-size: 9px;
    font-weight: 700;
}

.vpass-login-hint {
    display: block;
    margin-top: 3px;
    color: #8a6200;
}

.point-row-details {
    border-top: 1px dashed var(--line);
    padding: 14px 92px;
    background: #fafcfa;
}

.rakuten-detail-panel {
    display: grid;
    grid-template-columns: minmax(180px, 0.65fr) minmax(320px, 1.35fr) minmax(190px, 0.7fr);
    align-items: start;
    gap: 22px;
}

.amazon-detail-panel {
    grid-template-columns: minmax(180px, 0.5fr) minmax(480px, 1.5fr);
}

.amazon-detail-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rakuten-detail-heading h3,
.rakuten-expiration-detail h4 {
    margin: 0;
    font-size: 13px;
}

.rakuten-detail-heading span {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.rakuten-detail-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.rakuten-detail-metrics div {
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 9px 11px;
    background: #fff;
}

.rakuten-detail-metrics dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
}

.rakuten-detail-metrics dd {
    margin: 2px 0 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.rakuten-detail-metrics dd b {
    font-size: 17px;
}

.rakuten-detail-metrics dd small {
    margin-left: 2px;
    font-size: 9px;
}

.rakuten-expiration-detail ul {
    display: grid;
    gap: 4px;
    margin: 7px 0 0;
    padding: 0;
    list-style: none;
}

.rakuten-expiration-detail li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-radius: 7px;
    padding: 4px 7px;
    color: #536058;
    font-size: 10px;
}

.rakuten-expiration-detail li.is-warning {
    background: #fff5d9;
    color: #795600;
}

.rakuten-expiration-detail li.is-danger {
    background: var(--danger-soft);
    color: var(--danger);
}

.rakuten-expiration-detail .muted {
    margin: 7px 0 0;
    font-size: 10px;
}

@media (max-width: 1080px) {
    .point-asset-type-chips,
    .point-filter-chips {
        display: flex;
        overflow-x: auto;
        padding-bottom: 5px;
        scrollbar-width: thin;
        overscroll-behavior-inline: contain;
    }

    .point-filter-chip {
        flex: 0 0 96px;
    }
}

@media (max-width: 920px) {
    .point-list-header,
    .point-list-row {
        grid-template-columns: 52px 34px 58px minmax(150px, 1.2fr) minmax(115px, 0.8fr) 140px 88px 38px;
        gap: 8px;
        padding-inline: 12px;
    }

    .point-row-details {
        padding-inline: 70px;
    }

    .rakuten-detail-panel {
        grid-template-columns: minmax(140px, 0.7fr) minmax(300px, 1.3fr);
    }

    .rakuten-expiration-detail {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .dashboard-shell {
        padding-top: 20px;
    }

    .compact-dashboard-heading {
        align-items: stretch;
        gap: 13px;
    }

    .compact-total-card {
        min-height: 0;
        align-items: stretch;
        flex-direction: column;
        padding: 17px 18px;
    }

    .summary-update-button {
        width: 100%;
    }

    .summary-update-area {
        width: 100%;
    }

    .point-list-tools {
        padding: 5px 9px;
    }

    .point-asset-search-row {
        grid-template-columns: 1fr;
        row-gap: 8px;
    }

    .custom-field-grid {
        grid-template-columns: 1fr;
    }

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

    .point-search-field input {
        min-height: 38px;
        padding-inline: 8px;
        font-size: 10px;
    }

    .point-list {
        display: grid;
        gap: 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .point-list-header {
        display: none;
    }

    .point-list-item,
    .point-list-item + .point-list-item {
        border: 1px solid var(--line);
        border-radius: 15px;
        background: #fff;
        box-shadow: 0 7px 20px rgba(24, 52, 35, 0.045);
    }

    .point-list-row {
        min-height: 142px;
        grid-template-columns: 34px 46px 56px minmax(0, 1fr) 36px;
        grid-template-areas:
            "order favorite update name menu"
            "order favorite update balance menu"
            "order favorite update checked menu"
            "order favorite update official menu";
        align-items: center;
        gap: 3px 9px;
        padding: 10px;
    }

    .point-favorite-cell {
        grid-area: favorite;
        align-self: stretch;
    }

    .point-update-cell {
        grid-area: update;
        align-self: stretch;
        align-items: center;
    }

    .point-order-cell {
        grid-area: order;
        align-self: stretch;
    }

    .point-drag-handle {
        display: none;
    }

    .mobile-order-controls {
        height: 100%;
        display: grid;
        align-content: center;
        gap: 5px;
    }

    .mobile-order-controls button {
        width: 30px;
        height: 30px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        color: var(--primary);
        font: inherit;
        font-size: 14px;
        font-weight: 900;
    }

    .mobile-order-controls button:disabled {
        color: #b7bdb9;
        background: #f4f6f4;
    }

    .point-auto-update {
        width: 46px;
        height: 46px;
        border-radius: 12px;
    }

    .point-favorite-button {
        width: 46px;
        height: 46px;
    }

    .point-manual-update {
        min-width: 52px;
        min-height: 48px;
    }

    .stamp-quick-dialog {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 18px);
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
        padding: 20px max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    }

    .stamp-quick-header h2 {
        font-size: 18px;
    }

    .stamp-quick-current strong {
        font-size: 28px;
    }

    .point-name-cell {
        grid-area: name;
    }

    .point-name-cell h2 {
        font-size: 14px;
    }

    .point-name-cell .status-badge {
        margin-top: 2px;
    }

    .point-category-badge,
    .bulk-row-state {
        margin-top: 2px;
        font-size: 8px;
    }

    .point-balance-cell {
        grid-area: balance;
        display: flex;
        align-items: baseline;
        gap: 8px;
    }

    .point-balance-cell strong {
        font-size: 22px;
    }

    .point-balance-cell .compact-balance-unavailable {
        font-size: 18px;
    }

    .point-list-item.has-point-details .point-list-row {
        min-height: 166px;
    }

    .point-list-item.has-point-details .point-balance-cell {
        display: grid;
        align-items: start;
        gap: 2px;
    }

    .rakuten-balance-breakdown {
        flex-wrap: wrap;
        font-size: 9px;
    }

    .amazon-balance-breakdown,
    .dpoint-balance-breakdown {
        font-size: 9px;
    }

    .point-checked-cell {
        grid-area: checked;
        display: flex;
        align-items: baseline;
        gap: 6px;
    }

    .mobile-cell-label {
        display: inline;
    }

    .point-checked-cell time {
        font-size: 10px;
    }

    .point-official-cell {
        grid-area: official;
        justify-content: flex-start;
    }

    .compact-official-button {
        min-width: 52px;
        min-height: 30px;
        padding: 5px 7px;
        font-size: 10px;
    }

    .point-overflow-menu {
        grid-area: menu;
        align-self: start;
    }

    .point-overflow-menu summary {
        width: 34px;
        height: 34px;
    }

    .point-row-details {
        padding: 12px 16px 12px 67px;
    }

    .rakuten-detail-panel {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .rakuten-expiration-detail {
        grid-column: auto;
    }

    .rakuten-detail-metrics {
        grid-template-columns: 1fr;
    }

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

/* Privacy policy */
.privacy-shell {
    width: min(900px, calc(100% - 40px));
    padding-block: 64px 88px;
}

.privacy-heading {
    max-width: 780px;
    margin-inline: auto;
    text-align: center;
}

.privacy-heading h1 {
    margin: 8px 0 20px;
    font-size: clamp(32px, 5vw, 48px);
    letter-spacing: -0.04em;
}

.privacy-lead {
    margin: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 2;
}

.privacy-scope {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.privacy-index {
    margin: 38px 0 26px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.privacy-index a {
    border: 1px solid #cfe0d4;
    border-radius: 999px;
    padding: 8px 13px;
    color: var(--primary-dark);
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.privacy-content {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 18px 48px 40px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(19, 72, 43, 0.07);
}

.privacy-section {
    scroll-margin-top: 24px;
    padding-block: 34px;
    border-bottom: 1px solid var(--line);
}

.privacy-section:last-of-type {
    border-bottom: 0;
}

.privacy-section h2 {
    margin: 0 0 18px;
    color: var(--primary-dark);
    font-size: 24px;
    line-height: 1.45;
}

.privacy-section h3 {
    margin: 26px 0 10px;
    font-size: 16px;
}

.privacy-section p,
.privacy-section li,
.privacy-section dd {
    line-height: 1.9;
}

.privacy-section p {
    margin: 12px 0 0;
}

.privacy-section ul {
    margin: 12px 0 0;
    padding-left: 1.35em;
}

.privacy-section li + li {
    margin-top: 5px;
}

.privacy-section code {
    overflow-wrap: anywhere;
    border-radius: 5px;
    padding: 1px 5px;
    background: #f0f5f1;
    font-size: 0.9em;
}

.privacy-extension-section {
    margin-inline: -20px;
    padding-inline: 20px;
    background: linear-gradient(180deg, rgba(235, 247, 239, 0.55), rgba(255, 255, 255, 0));
}

.privacy-callout,
.privacy-do-not-send {
    margin-top: 20px;
    border: 1px solid #bcd9c5;
    border-radius: 16px;
    padding: 20px 22px;
    background: var(--surface-soft);
}

.privacy-do-not-send {
    border-color: #d6e0d8;
    background: #f8faf8;
}

.privacy-callout h3,
.privacy-do-not-send h3 {
    margin-top: 0;
}

.privacy-service-list {
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

.privacy-service-list > div {
    border-left: 3px solid var(--primary);
    padding: 4px 0 4px 15px;
}

.privacy-service-list dt {
    color: var(--primary-dark);
    font-weight: 800;
}

.privacy-service-list dd {
    margin: 3px 0 0;
}

.privacy-dates {
    margin-top: 14px;
    border-radius: 14px;
    padding: 17px 20px;
    background: #f5f8f6;
    color: var(--muted);
    font-size: 12px;
}

.privacy-dates dl {
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 28px;
}

.privacy-dates dl > div {
    display: flex;
    gap: 8px;
}

.privacy-dates dt {
    font-weight: 700;
}

.privacy-dates dd {
    margin: 0;
}

/* First-use disclosure shown immediately before the first AUTO update. */
.extension-data-notice-dialog {
    width: min(520px, calc(100% - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
    border: 0;
    border-radius: 22px;
    padding: 0;
    color: var(--text);
    background: #fff;
    box-shadow: 0 28px 90px rgba(6, 45, 24, 0.28);
}

.extension-data-notice-dialog::backdrop {
    background: rgba(9, 36, 21, 0.54);
    backdrop-filter: blur(2px);
}

.extension-data-notice-body {
    padding: 30px;
}

.extension-data-notice-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    background: var(--primary);
    font-size: 23px;
    font-weight: 800;
}

.extension-data-notice-body h2 {
    margin: 18px 0 10px;
    font-size: 24px;
}

.extension-data-notice-body > p {
    margin: 0;
    line-height: 1.8;
}

.extension-data-notice-points {
    margin: 17px 0 0;
    border-radius: 14px;
    padding: 15px 17px;
    background: var(--surface-soft);
    line-height: 1.75;
}

.extension-data-notice-points strong {
    color: var(--primary-dark);
}

.extension-data-notice-more {
    display: inline-block;
    margin-top: 16px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.extension-data-notice-actions {
    margin-top: 22px;
    display: grid;
    gap: 10px;
}

.extension-data-notice-actions .button {
    width: 100%;
}

.extension-data-notice-cancel {
    min-height: 42px;
    border: 0;
    color: var(--muted);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.extension-data-notice-note,
.extension-data-notice-error {
    margin-top: 14px !important;
    color: var(--muted);
    font-size: 11px;
}

.extension-data-notice-error {
    color: #9d261d;
    font-weight: 700;
}

@media (max-width: 720px) {
    .privacy-shell {
        width: min(100% - 28px, 900px);
        padding-block: 42px 64px;
    }

    .privacy-heading {
        text-align: left;
    }

    .privacy-lead {
        font-size: 14px;
    }

    .privacy-index {
        justify-content: flex-start;
        overflow: hidden;
    }

    .privacy-content {
        border-radius: 18px;
        padding: 4px 20px 24px;
    }

    .privacy-section {
        padding-block: 28px;
    }

    .privacy-section h2 {
        font-size: 20px;
    }

    .privacy-section p,
    .privacy-section li,
    .privacy-section dd {
        font-size: 13px;
    }

    .privacy-extension-section {
        margin-inline: -10px;
        padding-inline: 10px;
    }

    .privacy-callout,
    .privacy-do-not-send {
        padding: 17px;
    }

    .privacy-dates dl,
    .privacy-dates dl > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .privacy-dates dl {
        gap: 12px;
    }

    .footer-inner {
        min-height: 120px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 14px;
    }

    .extension-data-notice-dialog {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 12px);
        margin: auto 0 0;
        border-radius: 22px 22px 0 0;
    }

    .extension-data-notice-body {
        padding: 24px max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
    }

    .extension-data-notice-body h2 {
        font-size: 21px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
    }

    .point-auto-update.is-loading [data-update-icon] {
        animation: none;
    }
}

textarea {
    width: 100%;
    border: 1px solid #cfd9d2;
    border-radius: 11px;
    padding: 12px 13px;
    background: #fff;
    color: var(--text);
    font: inherit;
    line-height: 1.7;
    resize: vertical;
}

textarea:hover { border-color: #aabbb0; }
textarea:focus { border-color: var(--primary); }

.service-request-entry {
    margin-bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid #cfe0d4;
    border-radius: 14px;
    padding: 17px 19px;
    background: var(--surface-soft);
}

.service-request-entry strong { font-size: 14px; }
.service-request-entry p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }
.service-request-entry .button { flex: none; }

.request-shell { display: grid; gap: 24px; }
.request-heading { text-align: center; }
.required-label { margin-left: 6px; color: #9d261d; font-size: 10px; }
.request-form { gap: 18px; }
.request-inline-security { margin: -5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.request-form > .button { justify-self: end; }
.request-popular-panel { padding-top: 32px; padding-bottom: 32px; }
.request-section-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.request-section-heading h2 { margin: 3px 0 0; font-size: 22px; }
.request-section-heading > p { margin: 0; color: var(--muted); font-size: 12px; }
.request-suggestion-list { display: grid; gap: 10px; }
.request-suggestion { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line); border-radius: 13px; padding: 15px 17px; }
.request-suggestion h3 { margin: 0; font-size: 15px; }
.request-suggestion p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.request-suggestion p strong { margin: 0 2px; color: var(--primary); }
.request-voted-badge { border-radius: 999px; padding: 6px 10px; color: var(--primary-dark); background: var(--success-soft); font-size: 11px; font-weight: 800; }
.request-contact-guide { margin-top: 12px !important; font-size: 12px; }
.request-contact-guide a { color: var(--primary-dark); font-weight: 800; text-underline-offset: 3px; }

/* Private contact form */
.contact-shell { max-width: 720px; }
.contact-panel { padding: 42px; }
.contact-heading { text-align: center; }
.contact-heading > p:last-child { max-width: 560px; margin-inline: auto; }
.contact-form { gap: 20px; }
.contact-account-email {
    display: grid;
    gap: 5px;
    border: 1px solid #d6e4da;
    border-radius: 12px;
    padding: 14px 16px;
    background: var(--surface-soft);
}
.contact-account-email span,
.contact-account-email small { color: var(--muted); font-size: 11px; }
.contact-account-email strong { overflow-wrap: anywhere; font-size: 14px; }
.contact-security-note {
    margin: -4px 0 0;
    border-left: 3px solid #c6892b;
    padding: 10px 13px;
    color: #6e531e;
    background: #fff9ed;
    font-size: 12px;
    line-height: 1.75;
}
.contact-form > .button { justify-self: end; }
.contact-request-guide {
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-top: 24px;
}
.contact-request-guide strong { font-size: 14px; }
.contact-request-guide p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.contact-request-guide .button { flex: none; }

@media (max-width: 720px) {
    .service-request-entry,
    .request-section-heading,
    .request-suggestion { align-items: stretch; flex-direction: column; }
    .service-request-entry .button,
    .request-suggestion .button { width: 100%; }
    .request-form > .button { width: 100%; justify-self: stretch; }
    .contact-panel { padding: 25px 20px; }
    .contact-heading { text-align: left; }
    .contact-form > .button { width: 100%; justify-self: stretch; }
    .contact-request-guide { align-items: stretch; flex-direction: column; }
    .contact-request-guide .button { width: 100%; }
}

/* Account settings and self-service account deletion */
.account-shell {
    max-width: 760px;
    display: grid;
    gap: 24px;
}

.account-heading {
    text-align: center;
}

.account-heading h1 {
    margin: 6px 0 10px;
    font-size: 34px;
}

.account-heading > p:last-child {
    margin: 0;
    color: var(--muted);
}

.account-profile-panel h2,
.account-preferences-panel h2,
.account-danger-zone h2 {
    margin: 0;
    font-size: 20px;
}

.account-preferences-form {
    display: grid;
    gap: 22px;
}

.account-asset-types {
    margin: 0;
    border: 0;
    padding: 0;
}

.account-asset-types legend {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 800;
}

.account-asset-type-grid {
    margin-top: 13px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.account-asset-type-grid label {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 11px 12px;
    background: #fafcfa;
    font-size: 13px;
    font-weight: 700;
}

.account-asset-type-grid input {
    width: 18px;
    height: 18px;
    flex: none;
    accent-color: var(--primary);
}

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

.account-display-mode-grid label {
    min-width: 0;
    display: grid;
    gap: 7px;
    font-size: 13px;
    font-weight: 800;
}

.account-display-mode-grid select {
    width: 100%;
}

.account-profile-panel dl {
    margin: 20px 0 0;
    display: grid;
    gap: 14px;
}

.account-profile-panel dl > div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 18px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.account-profile-panel dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.account-profile-panel dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.account-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    border-color: #e2d8d5;
}

.account-danger-zone p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.account-delete-link {
    flex: none;
    border: 1px solid #d8c4c0;
    border-radius: 11px;
    padding: 10px 15px;
    color: #8f2d24;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.account-delete-link:hover {
    border-color: #bd8e87;
    color: var(--danger);
}

.account-delete-shell {
    max-width: 680px;
}

.account-delete-panel {
    padding: 42px;
}

.account-delete-heading {
    text-align: left;
}

.account-delete-summary {
    margin-top: 26px;
    border: 1px solid #e1e8e3;
    border-radius: 15px;
    padding: 20px 22px;
    background: #f8faf8;
}

.account-delete-summary h2 {
    margin: 0;
    font-size: 17px;
}

.account-delete-summary ul {
    margin: 14px 0 0;
    padding-left: 1.35em;
}

.account-delete-summary li {
    line-height: 1.75;
}

.account-delete-summary li + li {
    margin-top: 5px;
}

.account-delete-summary p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.account-delete-password-form {
    margin-top: 26px;
}

.account-delete-entry-actions,
.account-delete-final-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 12px;
}

.account-delete-entry-actions .button,
.account-delete-final-actions .button {
    width: 100%;
}

.account-delete-final {
    text-align: center;
}

.account-delete-warning-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--danger);
    background: var(--danger-soft);
    font-size: 28px;
    font-weight: 900;
}

.account-delete-final h1 {
    margin: 7px 0 14px;
    font-size: 28px;
    line-height: 1.45;
}

.account-delete-final > p {
    margin: 0;
    line-height: 1.85;
}

.account-delete-company-note {
    margin-top: 16px !important;
    border-radius: 12px;
    padding: 14px 16px;
    color: var(--primary-dark);
    background: var(--surface-soft);
    font-size: 13px;
}

.account-delete-final-actions {
    margin-top: 26px;
}

.account-delete-final .field-hint {
    margin-top: 14px;
}

@media (max-width: 620px) {
    .account-heading {
        text-align: left;
    }

    .account-heading h1 {
        font-size: 28px;
    }

    .account-profile-panel dl > div {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .account-asset-type-grid,
    .account-display-mode-grid {
        grid-template-columns: 1fr;
    }

    .account-danger-zone {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .account-delete-link {
        align-self: flex-start;
    }

    .account-delete-panel {
        padding: 25px 20px;
    }

    .account-delete-entry-actions,
    .account-delete-final-actions {
        grid-template-columns: 1fr;
    }

    .account-delete-entry-actions .button-secondary,
    .account-delete-final-actions .button-secondary {
        order: 2;
    }

    .account-delete-final h1 {
        font-size: 23px;
    }
}
