:root {
    --ink: #3f322f;
    --muted: #8d7b75;
    --line: #f2ded2;
    --paper: #fffaf7;
    --panel: #ffffff;
    --soft: #fff0e4;
    --accent: #ff7d23;
    --accent-2: #ef4328;
    --ok: #46a982;
    --danger: #dc4c3f;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    min-height: 100%;
}
body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fff7f0 0%, #fffefd 42%, #fff5eb 100%);
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.shell {
    width: min(100%, 800px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 16px 92px;
}
.shell-wide { width: min(100%, 900px); }
.public-shell {
    padding: 22px 22px 48px;
}
.app-header, .card-top, .actions, .link-row, .score-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-square-logo {
    display: block;
    width: 38px;
    height: 52px;
    object-fit: contain;
}
.brand-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: white;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 999px;
    font-size: 25px;
}
.brand strong { display: block; font-size: 21px; letter-spacing: 0; }
.brand small, .eyebrow, .muted, .meta, .hint { color: var(--muted); }
.brand small { display: block; font-size: 11px; }
.main { padding-top: 26px; }
.section-head { margin-bottom: 18px; }
.section-head h1, .vote-copy h1 {
    margin: 2px 0 8px;
    font-size: clamp(28px, 7vw, 42px);
    line-height: 1.08;
}
.section-head p, .vote-copy p { margin: 0; line-height: 1.65; }
.eyebrow {
    margin: 0 0 6px;
    color: var(--accent-2);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.panel, .card, .empty, .print-sheet {
    background: rgba(255,255,255,.88);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(117, 69, 42, .08);
}
.panel, .empty, .print-sheet { padding: 22px; }
.auth-panel { margin-top: 24px; }
.stack { display: grid; gap: 14px; }
label { display: grid; gap: 8px; font-weight: 700; }
input, textarea, select {
    width: 100%;
    border: 1px solid #efd2c2;
    border-radius: 8px;
    padding: 13px 14px;
    color: var(--ink);
    background: #fffdfb;
    font: inherit;
}
textarea { resize: vertical; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.check input { width: auto; }
button, .primary-button, .secondary-button, .ghost-button, .danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.primary-button { color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.secondary-button { color: #b24616; background: #ffe3cf; }
.ghost-button { color: var(--ink); background: #fff4ea; }
.danger-button { color: white; background: var(--danger); }
button:disabled, .disabled-link {
    cursor: not-allowed;
    opacity: .42;
    pointer-events: none;
}
.notice {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    font-weight: 700;
}
.notice p { margin: 0 0 4px; }
.success { color: #24694d; background: #e8f7ef; }
.danger { color: #a7352c; background: #ffe7e3; }
.list { display: grid; gap: 14px; }
.card { padding: 18px; }
.card h2, .panel h2, .empty h2 { margin: 10px 0 8px; font-size: 20px; line-height: 1.25; }
.card p, .empty p { line-height: 1.65; }
.pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    color: #a84316;
    background: #ffe6d4;
    font-size: 12px;
    font-weight: 800;
}
.pill-live { color: #277257; background: #ddf6eb; }
.url {
    overflow-wrap: anywhere;
    color: #b65a28;
    font-size: 12px;
}
.grid-two {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 5;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: min(calc(100% - 28px), 430px);
    transform: translateX(-50%);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 12px 30px rgba(88, 54, 39, .14);
}
.bottom-nav a {
    display: inline-flex;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 12px;
    color: var(--muted);
    font-weight: 800;
}
.bottom-nav a.active { color: white; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.vote-brand {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.vote-brand img {
    display: block;
    width: 194px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}
.vote-hero {
    overflow: hidden;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--line);
}
.vote-hero img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.vote-copy { padding: 22px; }
.vote-form output {
    display: block;
    margin: 8px 0;
    color: var(--accent-2);
    font-size: 52px;
    font-weight: 900;
    line-height: 1;
}
.range { accent-color: var(--accent); padding: 0; }

.public-page {
    background: #fff6f0;
}
.public-shell {
    min-height: 100dvh;
    padding: 18px;
    filter: drop-shadow(0 14px 15px rgba(182, 75, 42, .1));
}
.public-shell .main {
    padding-top: 0;
}
.user-vote-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    min-height: calc(100dvh - 36px);
    border: 1px solid #f1d5c8;
    border-radius: 26px;
    padding: 16px 24px 24px;
    background: #fffdfc;
    box-shadow: none;
    font-family: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.user-vote-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
}
.user-vote-logo-link {
    display: block;
    width: 194px;
    height: 40px;
    max-width: calc(100% - 78px);
}
.user-vote-head img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: left center;
}
.user-vote-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    border-radius: 14px;
    padding: 5px 10px;
    background: #fff0e8;
    color: #6e5750;
    font-size: 12px;
    font-weight: 700;
    line-height: 17px;
    white-space: nowrap;
}
.user-vote-status.is-open {
    color: #d94b2b;
}
.user-vote-copy {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
.user-vote-poll {
    display: flex;
    align-items: center;
    margin: 0;
    border-left: 5px solid #d94b2b;
    padding: 10px;
    color: #3a2824;
    font-size: 15px;
    font-weight: 700;
    line-height: 21px;
}
.user-vote-copy h1 {
    margin: 0;
    color: #3a2824;
    font-size: 25px;
    font-weight: 700;
    line-height: 34px;
}
.user-vote-copy p:not(.user-vote-poll) {
    margin: 0;
    color: #765d54;
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
}
.user-vote-period {
    border: 1px solid #f2d7cc;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff7f2;
    color: #765d54 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 18px !important;
}
.user-vote-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.user-vote-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
}
.user-score-card {
    width: 100%;
    border: 1px solid #f2d7cc;
    border-radius: 16px;
    padding: 16px 18px;
    background: #fff7f2;
}
.user-score-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}
.user-score-head span {
    color: #765d54;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}
.user-score-head output {
    min-width: 90px;
    color: #e84224;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    text-align: right;
}
.user-score-range {
    display: block;
    width: 100%;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.user-score-range:focus,
.user-score-range:focus-visible {
    outline: none;
    border: 0;
    box-shadow: none;
}
.user-score-range::-webkit-slider-runnable-track {
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f16a3d 0 var(--value, 50%), #f3ded5 var(--value, 50%) 100%);
}
.user-score-range::-moz-range-track {
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f16a3d 0 var(--value, 50%), #f3ded5 var(--value, 50%) 100%);
}
.user-score-range::-webkit-slider-thumb {
    width: 32px;
    height: 32px;
    margin-top: -7px;
    border: 1px solid #f16a3d;
    border-radius: 999px;
    appearance: none;
    -webkit-appearance: none;
    background: #fff;
    box-shadow: 0 14px 30px rgba(182, 75, 42, .1);
}
.user-score-range::-moz-range-thumb {
    width: 32px;
    height: 32px;
    border: 1px solid #f16a3d;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(182, 75, 42, .1);
}
.user-score-scale {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    color: #9b8178;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 16px;
}
.user-comment-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    border: 1px solid #f2d7cc;
    border-radius: 16px;
    padding: 16px 18px;
    background: #fff7f2;
    color: #765d54;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}
.user-comment-card textarea {
    width: 100%;
    min-height: 118px;
    border: 1px solid #f1d5c8;
    border-radius: 12px;
    padding: 12px 14px;
    resize: vertical;
    background: #fffdfc;
    color: #3a2824;
    font: inherit;
    font-weight: 400;
    line-height: 22px;
}
.user-comment-card small {
    color: #9b8178;
    font-size: 11px;
    font-weight: 400;
    line-height: 17px;
}
.user-choice-confirm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    border: 1px solid #f2d7cc;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff7f2;
}
.user-choice-confirm p {
    margin: 0;
    color: #765d54;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}
.user-choice-confirm a {
    flex: 0 0 auto;
    color: #d94b2b;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
    text-decoration: none;
}
.user-choice-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}
.user-choice-card {
    border: 1px solid #f2d7cc;
    border-radius: 16px;
    background: #fff7f2;
}
.user-choice-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 260px;
    padding: 10px;
}
.user-choice-list.no-images .user-choice-card-inner {
    min-height: 156px;
}
.user-choice-card.is-selected {
    border-color: #f16a3d;
    background: #fff0e8;
    box-shadow: 0 0 0 2px rgba(241, 106, 61, .18);
}
.user-choice-thumb {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #ebcfc3;
    border-radius: 12px;
    background: #fff0e8;
}
.user-choice-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-choice-thumb b {
    color: #c38a79;
    font-size: 11px;
    font-weight: 900;
    line-height: 16px;
    text-transform: uppercase;
}
.user-choice-meta {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding-top: 10px;
}
.user-choice-meta em {
    position: absolute;
    top: -9px;
    left: -9px;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 999px;
    padding: 3px 8px;
    background: #f16a3d;
    color: #fff;
    font-style: normal;
    font-size: 10px;
    font-weight: 900;
    line-height: 14px;
    white-space: nowrap;
}
.user-choice-meta strong {
    display: block;
    overflow: hidden;
    color: #3a2824;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-choice-meta small {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 6px;
    color: #765d54;
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}
.user-choice-detail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 34px;
    border: 1px solid #f4c8b8;
    border-radius: 10px;
    margin-top: 10px;
    padding: 8px 10px;
    background: #fff;
    color: #b85435;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    line-height: 16px;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}
.user-choice-card.is-selected .user-choice-detail {
    border-color: #f16a3d;
    color: #d94b2b;
}
.user-choice-modal[hidden] {
    display: none;
}
.user-choice-modal {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(58, 40, 36, .32);
}
.user-choice-dialog {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(100%, 352px);
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid #f2d7cc;
    border-radius: 20px;
    padding: 16px;
    background: #fffdfc;
}
.user-choice-dialog-photo {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid #ebcfc3;
    border-radius: 14px;
    background: #fff0e8;
}
.user-choice-dialog-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.user-choice-dialog-photo img[hidden],
.user-choice-dialog-photo span[hidden] {
    display: none;
}
.user-choice-dialog-photo span {
    color: #c38a79;
    font-size: 14px;
    font-weight: 900;
    line-height: 20px;
    text-transform: uppercase;
}
.user-choice-dialog h2 {
    margin: 0;
    color: #3a2824;
    font-size: 20px;
    font-weight: 800;
    line-height: 28px;
}
.user-choice-dialog p {
    margin: 0;
    color: #765d54;
    font-size: 13px;
    line-height: 22px;
    white-space: pre-line;
}
.user-choice-dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
}
.user-choice-close,
.user-choice-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 13px;
    padding: 12px 14px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    white-space: nowrap;
}
.user-choice-close {
    border: 1px solid #f4c8b8;
    background: #fff;
    color: #b85435;
}
.user-choice-submit {
    width: 100%;
    border: 0;
    background: #f16a3d;
    color: #fff;
}
.user-choice-submit:disabled {
    cursor: default;
    opacity: .55;
}
.user-vote-submit {
    width: min(100%, 250px);
    min-height: 44px;
    border: 0;
    border-radius: 13px;
    background: #f16a3d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 20px;
}
.user-vote-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
    margin-top: 48px;
    text-align: center;
}
.user-vote-message h1,
.user-vote-message h2 {
    margin: 0;
    color: #3a2824;
    font-size: 24px;
    font-weight: 700;
    line-height: 34px;
}
.user-vote-message p {
    margin: 0;
    color: #765d54;
    font-size: 14px;
    line-height: 24px;
}
.user-vote-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    border: 1px solid #f2d7cc;
    border-radius: 14px;
    padding: 20px 14px;
    background: #fff7f2;
    text-align: left;
}
.user-vote-notice.is-alert {
    border-color: #f4b39c;
    border-radius: 16px;
    background: #fff0ea;
}
.user-vote-notice-icon {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 15px;
    background: #ffe1d3;
    color: #d94b2b;
    font-family: Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}
.user-vote-notice h2 {
    margin: 0 0 5px;
    color: #765d54;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}
.user-vote-notice.is-alert h2 {
    color: #3a2824;
    font-size: 13px;
}
.user-vote-notice p {
    margin: 0;
    color: #765d54;
    font-size: 11px;
    line-height: 17px;
}
.user-current-choice {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    margin: 0 2px;
    padding: 3px 8px;
    background: #f16a3d;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    line-height: 17px;
    white-space: nowrap;
}
.user-vote-card.is-invalid {
    justify-content: flex-start;
    min-height: 620px;
}
.user-vote-card.is-invalid .user-vote-head {
    visibility: hidden;
}
.user-vote-card.is-invalid .user-vote-message {
    margin-top: 24px;
}
.user-vote-qr-icon {
    position: relative;
    display: grid;
    grid-template-columns: repeat(2, 18px);
    gap: 8px;
    width: 76px;
    height: 76px;
    padding: 14px;
    border: 1px solid #f2d7cc;
    border-radius: 12px;
    background: #fff;
}
.user-vote-qr-icon span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #d94b2b;
}

.vote-ad-overlay[hidden] {
    display: none;
}
.vote-ad-overlay {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 139px;
    min-height: 0;
    padding: 10px;
    background: #fbf4e8;
    box-shadow: 0 -1px 3.5px rgba(0, 0, 0, .25);
    pointer-events: auto;
}
.vote-ad-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 320px;
    max-width: 100%;
}
.vote-ad-slot {
    display: grid;
    place-items: center;
    width: 320px;
    max-width: 100%;
    height: 100px;
    min-height: 100px;
    overflow: hidden;
    background: #d9d9d9;
}
.vote-ad-slot > div {
    display: block;
    width: 320px;
    max-width: 100%;
}
.vote-ad-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -32px;
    right: 0;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #fbf4e8;
    color: transparent;
    font-size: 0;
    font-weight: 700;
    line-height: 1;
}
.vote-ad-close::before,
.vote-ad-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: #7a7a7a;
}
.vote-ad-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}
.vote-ad-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}
.vote-ad-overlay.is-desktop {
    align-items: center;
    height: 100dvh;
    min-height: 0;
    padding: 0 24px;
    background: rgba(40, 36, 34, .56);
    box-shadow: none;
    pointer-events: auto;
}
.vote-ad-overlay.is-desktop .vote-ad-panel {
    align-items: flex-end;
    width: 300px;
    gap: 8px;
}
.vote-ad-overlay.is-desktop .vote-ad-slot {
    width: 300px;
    height: 600px;
    min-height: 600px;
    background: #e7e7e7;
}
.vote-ad-overlay.is-desktop .vote-ad-slot > div {
    width: 300px;
}
.vote-ad-overlay.is-desktop .vote-ad-close {
    position: static;
    width: auto;
    height: auto;
    border-radius: 999px;
    padding: 5px 11px;
    background: #e3e3e3;
    color: #3a2824;
    font-size: 11px;
    line-height: 18px;
}
.vote-ad-overlay.is-desktop .vote-ad-close::before,
.vote-ad-overlay.is-desktop .vote-ad-close::after {
    content: none;
}

@media (max-width: 600px) {
    .public-shell {
        width: min(100%, 430px);
        padding: 18px;
    }
    .user-vote-card {
        padding: 16px 24px 24px;
    }
}

@media (max-width: 420px) {
    .public-shell {
        padding: 12px;
    }
    .user-vote-card {
        min-height: calc(100dvh - 24px);
        padding: 16px 18px 22px;
    }
    .user-vote-logo-link {
        width: 178px;
        height: auto;
        max-width: calc(100% - 70px);
    }
    .user-vote-head img {
        height: auto;
    }
    .user-score-card {
        padding: 16px 14px;
    }
    .user-choice-list {
        gap: 10px;
    }
    .user-choice-card-inner {
        min-height: 232px;
        padding: 8px;
    }
    .user-choice-list.no-images .user-choice-card-inner {
        min-height: 148px;
    }
    .user-choice-meta strong {
        font-size: 13px;
        line-height: 19px;
    }
    .user-choice-meta small {
        font-size: 10px;
        line-height: 15px;
    }
    .user-choice-detail {
        min-height: 32px;
        font-size: 11px;
        line-height: 16px;
    }
}
.score-summary {
    margin-bottom: 14px;
    align-items: stretch;
}
.score-summary div {
    flex: 1;
    min-width: 150px;
    padding: 18px;
    border-radius: 8px;
    background: white;
    border: 1px solid var(--line);
}
.score-summary span { display: block; color: var(--muted); }
.score-summary strong { font-size: 40px; color: var(--accent-2); }
.bars { display: grid; gap: 10px; }
.bar-row {
    display: grid;
    grid-template-columns: 56px 1fr 30px;
    gap: 10px;
    align-items: center;
}
.bar-row div, .meter {
    height: 12px;
    border-radius: 999px;
    background: var(--soft);
    overflow: hidden;
}
.bar-row i, .meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.print-sheet {
    display: grid;
    gap: 24px;
    place-items: center;
    text-align: center;
}
.qr-box img {
    width: min(78vw, 320px);
    height: auto;
}
@media (min-width: 720px) {
    .shell { padding: 28px 24px 104px; }
    .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media print {
    body { background: white; }
    .app-header, .bottom-nav, .notice, .print-hide { display: none; }
    .shell { width: 100%; padding: 0; }
    .print-sheet { border: 0; box-shadow: none; }
}

/* Figma-auth screens */
.auth-page {
    min-height: 100vh;
    background: #eae9e8;
    color: #3a2824;
    font-family: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.auth-shell {
    display: flex;
    justify-content: center;
    width: min(100%, 430px);
    min-height: 100vh;
    padding: 0;
}
.auth-main {
    width: 100%;
    padding: 0;
}
.figma-auth-frame {
    width: 430px;
    max-width: 100vw;
    padding: 18px;
    background: #fff6f0;
    border-radius: 30px;
    box-shadow: 0 14px 30px rgba(182, 75, 42, .1);
}
.figma-auth-screen {
    width: 394px;
    max-width: calc(100vw - 36px);
    overflow: hidden;
    border: 1px solid #f1d5c8;
    border-radius: 26px;
    background: #fffdfc;
}
.figma-auth-login { min-height: 770px; }
.figma-auth-login .figma-auth-screen { min-height: 734px; }
.figma-auth-register { min-height: 815px; }
.figma-auth-register .figma-auth-screen { min-height: 779px; }
.figma-auth-reminder { min-height: 637px; }
.figma-auth-reminder .figma-auth-screen { min-height: 601px; }
.figma-auth-reset { min-height: 706px; }
.figma-auth-reset .figma-auth-screen { min-height: 670px; }
.figma-auth-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 17px;
    width: 100%;
    padding: 70px 26px 32px;
}
.figma-auth-body-tight { gap: 12px; padding-top: 34px; padding-bottom: 28px; }
.figma-auth-reminder .figma-auth-body { gap: 18px; padding-top: 58px; padding-bottom: 28px; }
.figma-auth-reset .figma-auth-body { gap: 15px; padding-top: 40px; padding-bottom: 28px; }
.figma-brand-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 342px;
    max-width: 100%;
}
.kp-logo-image {
    display: block;
    width: 70px;
    height: 100px;
    object-fit: contain;
}
.figma-auth-body h1 {
    width: 342px;
    max-width: 100%;
    margin: -4px 0 0;
    color: #3a2824;
    font-size: 24px;
    font-weight: 800;
    line-height: 34px;
    text-align: center;
    letter-spacing: 0;
}
.figma-auth-body .figma-lead {
    width: 310px;
    max-width: 100%;
    margin: 0;
    color: #8a6d64;
    font-size: 13px;
    font-weight: 400;
    line-height: 21px;
    text-align: center;
}
.figma-auth-reset .figma-lead {
    width: 342px;
    text-align: left;
}
.figma-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 342px;
    max-width: 100%;
    color: #765d54;
    font-size: 12px;
    font-weight: 800;
    line-height: 17px;
}
.figma-field input {
    height: 54px;
    border: 1px solid #f1d5c8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fffcfa;
    color: #3a2824;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}
.figma-field input::placeholder { color: #b69b91; opacity: 1; }
.figma-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 342px;
    max-width: 100%;
    min-height: 32px;
}
.figma-options a {
    color: #d94b2b;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
}
.figma-check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #765d54;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}
.figma-check input,
.figma-terms input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #d94b2b;
}
.figma-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    height: auto;
    border: 0;
    border-radius: 13px;
    padding: 12px 60px;
    background: #f16a3d;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    white-space: nowrap;
}
.figma-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border: 1px solid #f4c8b8;
    border-radius: 13px;
    padding: 12px 14px;
    background: #fff;
    color: #b85435;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    cursor: pointer;
}
button.figma-secondary {
    appearance: none;
}
.figma-helper,
.figma-terms {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 342px;
    max-width: 100%;
    border: 1px solid #f2d7cc;
    border-radius: 14px;
    background: #fff7f2;
}
.figma-helper {
    padding: 20px 14px;
}
.figma-helper span {
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 15px;
    background: #ffe1d3;
    color: #d94b2b;
    font-size: 13px;
    font-weight: 800;
    line-height: 17px;
}
.figma-helper p {
    margin: 0;
    color: #765d54;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}
.figma-helper strong {
    display: block;
    margin-bottom: 2px;
    font-weight: 800;
}
.figma-terms {
    min-height: 54px;
    padding: 0 14px;
    color: #765d54;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}
.figma-terms a {
    color: #d94b2b;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.legal-frame {
    min-height: 100dvh;
}
.legal-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 572px;
    min-height: calc(100dvh - 36px);
    margin: 0 auto;
    padding: 56px 26px 128px;
}
.legal-page h1 {
    width: 100%;
    max-width: 520px;
    margin: 0;
    color: #3a2824;
    font-size: 26px;
    font-weight: 800;
    line-height: 34px;
}
.legal-page > p {
    width: 100%;
    max-width: 520px;
    margin: 0;
    color: #8a6d64;
    font-size: 13px;
    line-height: 22px;
}
.legal-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    border: 1px solid #f2d7cc;
    border-radius: 16px;
    padding: 18px 16px;
    background: #fff7f2;
}
.legal-card h2 {
    padding-top: 6px;
    margin: 0;
    color: #3a2824;
    font-size: 15px;
    font-weight: 800;
    line-height: 22px;
}
.legal-card p {
    margin: 0;
    color: #765d54;
    font-size: 13px;
    line-height: 22px;
}
.legal-card a {
    color: #b85435;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.resource-page {
    max-width: 680px;
}
.resource-page h1,
.resource-page > p,
.resource-page .legal-card {
    max-width: 620px;
}
.resource-list {
    gap: 12px;
}
.resource-card {
    display: block;
    padding: 16px;
    border: 1px solid #f2d7cc;
    border-radius: 12px;
    background: #fff;
    text-decoration: none !important;
}
.resource-card span {
    display: inline-flex;
    margin-bottom: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #fff1e9;
    color: #b85435;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
}
.resource-card strong {
    display: block;
    color: #3a2824;
    font-size: 15px;
    line-height: 23px;
}
.resource-card small {
    display: block;
    margin-top: 6px;
    color: #765d54;
    font-size: 12px;
    line-height: 20px;
}
.legal-card ul {
    display: grid;
    gap: 5px;
    margin: 0 0 6px;
    padding-left: 1.2em;
    color: #765d54;
    font-size: 13px;
    line-height: 22px;
    list-style: disc;
}
.site-page-body {
    background: #fff;
}
.site-shell {
    width: 100%;
    max-width: none;
    padding: 0;
}
.site-shell > .main {
    padding-top: 0;
}
.site-tone {
    min-height: 100vh;
    background: #fff;
    color: #1b1f26;
    font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}
.site-container {
    width: min(100% - 48px, 1072px);
    margin: 0 auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid #ffe1d3;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 8px 28px rgba(68, 48, 45, .08);
}
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    min-height: 70px;
}
.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.site-brand img {
    width: 132px;
    height: 38px;
    object-fit: contain;
}
.site-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    color: #1b1f26;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
    white-space: nowrap;
}
.site-nav a {
    color: inherit;
}
.site-nav a:not(.site-login).is-active,
.site-nav a:not(.site-login):hover {
    color: #d94b2b;
}
.site-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 84px;
    padding: 9px 16px;
    border-radius: 4px;
    background: #d94b2b;
    color: #fff !important;
}
.site-hero {
    background: linear-gradient(225deg, #f16a3d 49.332%, #ffd2c3 49.413%);
}
.site-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 44px;
    min-height: 300px;
    padding: 70px 0 62px;
}
.site-hero-copy {
    width: min(100%, 700px);
}
.site-kicker {
    margin: 0 0 12px;
    color: #3a2824;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
}
.site-hero h1 {
    margin: 0;
    color: #1b1f26;
    font-size: 38px;
    font-weight: 800;
    line-height: 50px;
}
.site-lead {
    width: min(100%, 620px);
    margin: 16px 0 0;
    color: #3a2824;
    font-size: 15px;
    line-height: 28px;
}
.site-hero-summary {
    display: grid;
    gap: 10px;
    width: 220px;
    flex: 0 0 220px;
}
.site-hero-summary span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 9px 16px;
    border: 1px solid #ffe1d3;
    border-radius: 999px;
    background: #fff;
    color: #d94b2b;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.site-main {
    background: #fefcf8;
    padding: 58px 0 72px;
}
.site-article {
    display: grid;
    gap: 22px;
    width: min(100%, 760px);
    margin: 0 auto;
}
.site-tone .legal-card {
    gap: 18px;
    max-width: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
}
.site-tone .legal-card h2 {
    position: relative;
    padding: 18px 0 0 18px;
    color: #1b1f26;
    font-size: 19px;
    line-height: 29px;
}
.site-tone .legal-card h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 23px;
    width: 5px;
    height: 20px;
    border-radius: 999px;
    background: #f16a3d;
}
.site-tone .legal-card p {
    color: #5f646e;
    font-size: 14px;
    line-height: 27px;
}
.site-tone .legal-card ul {
    gap: 8px;
    margin: 0;
    padding: 16px 18px 16px 34px;
    border: 1px solid #ffe1d3;
    border-radius: 8px;
    background: #fff;
    color: #5f646e;
    font-size: 14px;
    line-height: 26px;
}
.site-tone .legal-card a {
    color: #d94b2b;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-article:has(.site-guide-page) {
    width: min(100%, 920px);
}
.site-guide-page {
    display: grid;
    gap: 22px;
    width: 100%;
}
.site-guide-intro {
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid #ffe1d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(68, 48, 45, .06);
}
.site-guide-intro h2,
.site-guide-step-copy h2 {
    position: relative;
    margin: 0;
    color: #1b1f26;
    font-weight: 800;
    letter-spacing: 0;
}
.site-guide-intro h2 {
    padding-left: 18px;
    font-size: 19px;
    line-height: 29px;
}
.site-guide-intro h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    width: 5px;
    height: 20px;
    border-radius: 999px;
    background: #f16a3d;
}
.site-guide-intro p,
.site-guide-step-copy p {
    margin: 0;
    color: #5f646e;
    font-size: 14px;
    line-height: 27px;
}
.site-guide-intro a {
    color: #d94b2b;
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.site-guide-checklist {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 1.25em;
    color: #5f646e;
    font-size: 14px;
    line-height: 26px;
    list-style: disc;
}
.site-guide-steps {
    display: grid;
    gap: 18px;
}
.site-guide-step {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(250px, .88fr);
    gap: 24px;
    align-items: start;
    padding: 24px;
    border: 1px solid #ffe1d3;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(68, 48, 45, .06);
}
.site-guide-step-mobile {
    grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
}
.site-guide-step-media {
    margin: 0;
}
.site-guide-image {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #f2d7cc;
    border-radius: 8px;
    background: #fff7f2;
    box-shadow: 0 12px 26px rgba(68, 48, 45, .08);
}
.site-guide-step-copy {
    display: grid;
    gap: 12px;
}
.site-guide-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: start;
    min-height: 28px;
    margin: 0;
    padding: 5px 12px;
    border-radius: 999px;
    background: #ffe1d3;
    color: #d94b2b !important;
    font-size: 12px !important;
    font-weight: 800;
    line-height: 18px !important;
}
.site-guide-step-copy h2 {
    padding-left: 18px;
    font-size: 21px;
    line-height: 31px;
}
.site-guide-step-copy h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 5px;
    height: 21px;
    border-radius: 999px;
    background: #f16a3d;
}
.site-guide-note {
    padding-left: 12px;
    border-left: 3px solid #f16a3d;
    color: #765d54 !important;
    font-size: 13px !important;
    line-height: 23px !important;
}
.site-guide-outro {
    margin-top: 4px;
}
.site-tone .resource-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.site-tone .resource-card {
    display: flex;
    flex-direction: column;
    min-height: 178px;
    padding: 18px;
    border: 1px solid #e1dbd4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(68, 48, 45, .07);
}
.site-tone .resource-card span {
    align-self: flex-start;
    background: #ffe1d3;
    color: #d94b2b;
}
.site-tone .resource-card strong {
    color: #1b1f26;
    font-size: 16px;
    line-height: 25px;
}
.site-tone .resource-card small {
    color: #5f646e;
    font-size: 13px;
    line-height: 22px;
}
.site-button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.site-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 13px 22px;
    border: 1px solid #d94b2b;
    border-radius: 4px;
    background: #fff;
    color: #d94b2b;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    cursor: pointer;
}
.site-button:hover {
    background: #d94b2b;
    color: #fff;
}
.site-button-primary {
    border-color: #ffd433;
    background: #ffd433;
    color: #1b1f26;
}
.site-button-primary:hover {
    border-color: #1b1f26;
    background: #1b1f26;
    color: #ffd433;
}
.site-contact-form {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid #e1dbd4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(68, 48, 45, .07);
}
.site-field {
    display: grid;
    gap: 8px;
    color: #1b1f26;
    font-size: 14px;
    font-weight: 800;
}
.site-field span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.site-field em {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #ffe1d3;
    color: #d94b2b;
    font-size: 11px;
    font-style: normal;
    line-height: 16px;
}
.site-field input,
.site-field textarea {
    border: 1px solid #e1dbd4;
    border-radius: 8px;
    background: #fffdfb;
    color: #1b1f26;
    font-size: 15px;
    line-height: 24px;
}
.site-field textarea {
    min-height: 180px;
}
.site-error {
    color: #d94b2b;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
}
.site-confirm-list {
    display: grid;
    gap: 14px;
}
.site-confirm-list > div {
    padding: 18px;
    border: 1px solid #e1dbd4;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(68, 48, 45, .07);
}
.site-confirm-list span {
    display: block;
    margin-bottom: 8px;
    color: #d94b2b;
    font-size: 12px;
    font-weight: 800;
    line-height: 18px;
}
.site-confirm-list p {
    margin: 0;
    color: #1b1f26;
    font-size: 15px;
    line-height: 26px;
    overflow-wrap: anywhere;
}
.site-confirm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer {
    padding: 42px 104px;
    background: #f6f6f5;
}
.lp-footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    width: 860px;
    max-width: 100%;
    margin: 0 auto;
}
.lp-footer-logo {
    width: 169px;
    height: 48px;
    object-fit: contain;
    margin-bottom: 16px;
}
.lp-footer-copy {
    margin: 0;
    color: #5f646e;
    font-size: 12px;
    line-height: 21px;
}
.lp-footer-links {
    display: flex;
    gap: 48px;
}
.lp-footer-links h2 {
    margin: 0 0 10px;
    color: #1b1f26;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
}
.lp-footer-links a,
.lp-footer-links button {
    display: block;
    margin: 0 0 7px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #5f646e;
    font-size: 12px;
    line-height: 19px;
    text-align: left;
    cursor: pointer;
}
@media (max-width: 860px) {
    .site-container {
        width: min(100% - 40px, 680px);
    }
    .site-header-inner {
        min-height: 64px;
    }
    .site-nav a:not(.site-login) {
        display: none;
    }
    .site-nav {
        gap: 0;
    }
    .site-hero {
        background: #f16a3d;
    }
    .site-hero-inner {
        min-height: 0;
        padding: 48px 0 44px;
    }
    .site-hero-summary {
        display: none;
    }
    .site-kicker,
    .site-hero h1,
    .site-lead {
        color: #fff;
    }
    .site-hero h1 {
        font-size: 30px;
        line-height: 40px;
    }
    .site-main {
        padding: 42px 0 54px;
    }
    .site-tone .resource-list {
        grid-template-columns: 1fr;
    }
    .site-article:has(.site-guide-page) {
        width: min(100%, 680px);
    }
    .site-guide-page {
        gap: 16px;
    }
    .site-guide-intro,
    .site-guide-step {
        padding: 18px;
    }
    .site-guide-step,
    .site-guide-step-mobile {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .site-guide-step-mobile .site-guide-step-media {
        width: min(100%, 390px);
        justify-self: center;
    }
    .site-guide-step-copy h2 {
        font-size: 19px;
        line-height: 29px;
    }
    .site-footer {
        padding: 36px 24px 42px;
    }
    .lp-footer-inner {
        display: block;
        width: 100%;
    }
    .lp-footer-links {
        margin-top: 24px;
        gap: 34px;
    }
}
.auth-page .notice {
    position: fixed;
    left: 50%;
    top: 12px;
    z-index: 10;
    width: min(342px, calc(100vw - 48px));
    transform: translateX(-50%);
    border: 1px solid #f2d7cc;
    background: #fff7f2;
    color: #765d54;
}
@media (max-width: 429px) {
    .figma-auth-frame {
        width: 100vw;
        min-height: 100vh;
        padding: 12px;
        border-radius: 0;
    }
    .figma-auth-screen {
        width: 100%;
        max-width: none;
        min-height: calc(100vh - 24px);
    }
    .figma-auth-body {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Auth responsive refinements */
.auth-shell {
    width: 100%;
    max-width: 800px;
    min-height: 100dvh;
    padding: 0;
}
.figma-auth-frame {
    width: 100%;
    max-width: 800px;
    min-height: 100dvh;
}
.figma-auth-screen {
    width: 100%;
    max-width: none;
    min-height: calc(100dvh - 36px);
}
.figma-auth-login,
.figma-auth-register,
.figma-auth-reminder,
.figma-auth-reset,
.figma-auth-login .figma-auth-screen,
.figma-auth-register .figma-auth-screen,
.figma-auth-reminder .figma-auth-screen,
.figma-auth-reset .figma-auth-screen {
    min-height: unset;
}
.figma-auth-body {
    width: 100%;
    max-width: 572px;
    min-height: calc(100dvh - 36px);
    margin: 0 auto;
}
.figma-brand-block,
.figma-auth-body h1,
.figma-field,
.figma-options,
.figma-helper,
.figma-terms {
    width: 100%;
    max-width: 520px;
}
.figma-auth-body .figma-lead {
    width: 100%;
    max-width: 520px;
}
.figma-auth-reset .figma-lead {
    width: 100%;
    max-width: 520px;
}
@media (min-width: 600px) {
    .figma-auth-body {
        padding-left: 40px;
        padding-right: 40px;
    }
}
@media (max-width: 429px) {
    .auth-shell {
        max-width: none;
    }
    .figma-auth-frame {
        width: 100vw;
        max-width: none;
        min-height: 100dvh;
        padding: 12px;
        border-radius: 0;
    }
    .figma-auth-screen {
        min-height: calc(100dvh - 24px);
    }
    .figma-auth-body {
        min-height: calc(100dvh - 24px);
    }
}

/* Figma admin screens */
.admin-page {
    min-height: 100vh;
    background: #eae9e8;
    color: #3a2824;
    font-family: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.admin-shell {
    display: flex;
    justify-content: center;
    width: min(100%, 430px);
    min-height: 100vh;
    padding: 0;
}
.admin-shell .main {
    width: 100%;
    padding: 0;
}
.admin-device {
    width: 430px;
    max-width: 100vw;
    min-height: 932px;
    padding: 18px;
    border-radius: 30px;
    background: #fff6f0;
    box-shadow: 0 14px 30px rgba(182, 75, 42, .1);
}
.admin-device-tall { min-height: 1064px; }
.admin-device-profile { min-height: 1017px; }
.admin-device-profile-confirm { min-height: 608px; }
.admin-screen {
    display: flex;
    flex-direction: column;
    width: 394px;
    max-width: calc(100vw - 36px);
    min-height: 896px;
    overflow: hidden;
    border: 1px solid #f1d5c8;
    border-radius: 26px;
    background: #fffdfc;
}
.admin-device-tall .admin-screen { min-height: 1028px; }
.admin-device-profile .admin-screen { min-height: 981px; }
.admin-device-profile-confirm .admin-screen { min-height: 572px; }
.admin-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 150px;
    padding: 22px 22px 18px;
    background: #fff4ed;
}
.admin-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 350px;
    max-width: 100%;
    min-height: 40px;
}
.admin-logo-mini {
    display: block;
    width: 194px;
    height: 40px;
    object-fit: contain;
    object-position: left center;
}
.admin-avatar {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #9e3d25;
    font-size: 12px;
    font-weight: 800;
    line-height: 17px;
    white-space: nowrap;
}
.admin-user-menu {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-menu {
    position: relative;
    flex: 0 0 auto;
}
.admin-menu summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f16a3d;
    cursor: pointer;
    list-style: none;
}
.admin-menu summary::-webkit-details-marker { display: none; }
.admin-menu summary span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
    transform-origin: center;
    transition: transform .22s ease, opacity .16s ease;
}
.admin-menu[open] summary span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}
.admin-menu[open] summary span:nth-child(2) {
    opacity: 0;
    transform: scaleX(.4);
}
.admin-menu[open] summary span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}
.admin-menu-panel {
    position: absolute;
    right: 0;
    top: 46px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 9px;
    min-width: 92px;
    border-radius: 4px;
    padding: 20px 10px;
    background: #efefef;
    filter: drop-shadow(0 4px 2px rgba(0,0,0,.25));
}
.admin-menu-user {
    display: none;
    padding-bottom: 9px;
    border-bottom: 1px solid #d9c7c0;
    color: #9e3d25;
    font-size: 12px;
    font-weight: 900;
    line-height: 17px;
    text-align: center;
    white-space: nowrap;
}
.admin-menu-user span {
    font-weight: 800;
}
.admin-menu-panel a,
.admin-menu-panel button {
    width: 100%;
    border: 0;
    padding: 0;
    background: transparent;
    color: #3a2824;
    font: inherit;
    font-size: 12px;
    line-height: 17px;
    text-align: center;
    white-space: nowrap;
}
.admin-menu-panel form {
    border-top: 1px solid #d94b2b;
    padding-top: 9px;
}
.admin-title {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 350px;
}
.admin-title-row {
    display: block;
}
.admin-title h1 {
    margin: 0;
    color: #3a2824;
    font-size: 23px;
    font-weight: 800;
    line-height: 31px;
    letter-spacing: 0;
}
.admin-title-user {
    display: none;
    color: #9e3d25;
    font-size: 12px;
    font-weight: 800;
    line-height: 17px;
    white-space: nowrap;
}
.admin-title p {
    margin: 0;
    color: #8a6d64;
    font-size: 12px;
    line-height: 18px;
}
.admin-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 16px 22px 18px;
    background: #fffdfc;
}
.admin-device-tall .admin-body {
    gap: 8px;
    padding: 16px 10px 10px;
}
.admin-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 78px;
    padding: 10px 18px;
    border-top: 1px solid #f4ddd3;
    background: #fff;
}
.admin-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 78px;
    min-height: 49px;
    border-radius: 14px;
    color: #8a6d64;
    font-weight: 800;
    text-align: center;
}
.admin-nav a span {
    color: #b59b92;
    font-size: 16px;
    line-height: 20px;
}
.admin-nav a b {
    font-size: 11px;
    line-height: 15px;
}
.admin-nav a.active {
    background: #fff0e8;
    color: #e84224;
}
.admin-nav a.active span { color: #e84224; }
.admin-primary-action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 66px;
    border: 1px solid #f7cdbe;
    border-radius: 16px;
    padding: 0 14px 0 16px;
    background: #fff0e8;
}
.admin-primary-action > span:not(.admin-plus) {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}
.admin-primary-action b {
    font-size: 15px;
    line-height: 21px;
}
.admin-primary-action small {
    color: #8a6d64;
    font-size: 12px;
    line-height: 17px;
}
.admin-plus {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: #f16a3d;
    color: #fff;
    font-size: 17px;
    font-weight: 800;
}
.admin-primary-action strong {
    border-radius: 12px;
    padding: 12px 14px;
    background: #f16a3d;
    color: #fff;
    font-size: 14px;
    line-height: 20px;
}
.admin-stats {
    display: flex;
    gap: 10px;
}
.admin-stats div {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 88px;
    border: 1px solid #f2ded6;
    border-radius: 14px;
    background: #fff;
}
.admin-stats strong {
    color: #d94b2b;
    font-family: Inter, ui-sans-serif, system-ui;
    font-size: 24px;
    line-height: 30px;
}
.admin-stats span {
    color: #8a6d64;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
}
.admin-card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.admin-poll-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #f2ded6;
    border-radius: 16px;
    padding: 15px 16px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(182,75,42,.1);
}
.admin-poll-card.featured {
    border-color: #f7cdbe;
    background: #fff7f2;
}
.admin-card-top,
.admin-card-actions,
.admin-card-actions > div,
.admin-qr-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.admin-qr-action-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-card-top h2,
.admin-qr-meta h2,
.admin-add-card h2,
.admin-chart-card h2,
.admin-print-card h2 {
    margin: 0;
    color: #3a2824;
    font-size: 15px;
    font-weight: 800;
    line-height: 21px;
}
.admin-poll-card p,
.admin-qr-meta p {
    margin: 0;
    color: #8a6d64;
    font-size: 12px;
    line-height: 18px;
}
.admin-poll-memo {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: pre-line;
}
.admin-card-actions span {
    color: #6e5750;
    font-size: 13px;
    font-weight: 800;
    line-height: 18px;
}
.admin-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    border-radius: 14px;
    padding: 5px 10px;
    background: #f6efea;
    color: #6e5750;
    font-size: 12px;
    font-weight: 800;
    line-height: 17px;
    white-space: nowrap;
}
.admin-pill.live {
    background: #ffe7dd;
    color: #d94b2b;
}
.admin-small-button,
.admin-copy-button,
.admin-outline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
}
.admin-small-button,
.admin-outline-button {
    border: 1px solid #f4c8b8;
    background: #fff;
    color: #b85435;
}
.admin-poll-edit-button {
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 17px;
}
.admin-copy-button {
    border: 0;
    background: #fff0e8;
    color: #d94b2b;
    cursor: pointer;
}
.admin-outline-button { border-radius: 12px; padding: 12px 14px; }
.admin-icon-button {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    background: transparent;
    color: #ff0000;
}
.admin-icon-button:disabled {
    color: #aaa09c;
    opacity: 1;
}
.admin-icon-button .trash-svg {
    display: block;
    width: 34px;
    height: 34px;
}
.admin-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.admin-form label,
.admin-add-card label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    color: #765d54;
    font-size: 12px;
    font-weight: 800;
    line-height: 17px;
}
.admin-form input,
.admin-form textarea,
.admin-add-card input,
.admin-add-card textarea,
.admin-profile-form input {
    width: 100%;
    border: 1px solid #f1d5c8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fffcfa;
    color: #3a2824;
    font-size: 14px;
    line-height: 22px;
}
.admin-form input,
.admin-add-card input,
.admin-profile-form input { min-height: 54px; }
.admin-form textarea,
.admin-add-card textarea { min-height: 106px; resize: vertical; }
.admin-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}
.admin-date-grid label,
.admin-date-grid input {
    min-width: 0;
}
.admin-date-grid input { font-size: 12px; }
.admin-draft-form {
    display: flex;
    justify-content: center;
}
.admin-form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.admin-mode-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}
.admin-response-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}
.admin-mode-field legend,
.admin-response-field legend {
    padding: 0;
    color: #765d54;
    font-size: 12px;
    font-weight: 800;
    line-height: 17px;
}
.admin-mode-card,
.admin-response-card {
    position: relative;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start;
    gap: 14px !important;
    width: 100%;
    border: 1px solid #f1d5c8;
    border-radius: 12px;
    padding: 12px 14px;
    background: #fffcfa;
    color: #3a2824;
    cursor: pointer;
}
.admin-response-card {
    align-items: center;
    min-height: 64px;
}
.admin-mode-card.is-selected,
.admin-response-card.is-selected {
    border: 3px solid #f16a3d;
    padding: 10px 12px;
}
.admin-mode-card input,
.admin-response-card input {
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    min-height: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
    pointer-events: none;
}
.admin-mode-visual {
    display: flex;
    flex: 0 0 36px;
    align-items: flex-start;
    justify-content: center;
    width: 36px;
    min-height: 105px;
}
.admin-mode-visual img {
    display: block;
    width: auto;
    height: 105px;
    max-width: 36px;
    object-fit: contain;
}
.admin-mode-card b,
.admin-response-card b {
    display: block;
    margin-bottom: 2px;
    color: #040100;
    font-size: 12px;
    line-height: 17px;
}
.admin-mode-card small,
.admin-response-card small {
    display: block;
    color: #3a2824;
    font-size: 14px;
    font-weight: 400;
    line-height: 22px;
}
.admin-response-field > p {
    margin: 0;
    color: #8a6d64;
    font-size: 12px;
    line-height: 18px;
}
.admin-response-form {
    align-items: center;
}
.admin-response-form .figma-primary {
    width: 100%;
    max-width: 250px;
}
.admin-response-note {
    margin: 0;
    color: #8a6d64;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
}
.admin-response-field.is-disabled {
    opacity: .62;
}
.admin-response-field.is-disabled .admin-response-card {
    cursor: default;
}
.admin-poll-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border: 1px solid #f2d7cc;
    border-radius: 16px;
    padding: 10px 14px;
    background: #fff7f2;
}
.admin-poll-select div {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.admin-poll-select .admin-poll-select-actions {
    flex: 0 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-width: auto;
}
.admin-poll-select b {
    overflow: hidden;
    color: #3a2824;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-poll-select small {
    display: block;
    overflow: hidden;
    color: #8a6d64;
    font-size: 11px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-poll-select-mode {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font-weight: 800;
}
.admin-poll-select-mode span {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #f16a3d;
}
.admin-poll-select-date {
    font-weight: 400;
}
.admin-add-card,
.admin-chart-card,
.admin-print-card,
.admin-empty {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border: 1px solid #f2ded6;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(182,75,42,.1);
}
.admin-add-card { align-items: center; }
.admin-add-card h2 { width: 100%; font-size: 16px; line-height: 22px; }
.admin-answer-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f2ded6;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(182,75,42,.1);
}
.admin-answer-card.compact {
    max-width: 100%;
    box-shadow: none;
}
.admin-answer-card h2,
.admin-common-qr-card h2 {
    margin: 0;
    color: #3a2824;
    font-size: 16px;
    font-weight: 800;
    line-height: 22px;
}
.admin-answer-card p {
    margin: 0;
    color: #8a6d64;
    font-size: 12px;
    line-height: 18px;
}
.admin-answer-check {
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    min-height: 54px;
    border: 1px solid #f2d7cc;
    border-radius: 14px;
    padding: 0 14px;
    background: #fff7f2;
    color: #765d54;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}
.admin-answer-check input {
    flex: 0 0 auto;
    width: 20px;
    min-height: 20px;
    height: 20px;
    margin: 0;
    accent-color: #f16a3d;
}
.admin-answer-pills {
    display: flex;
    gap: 6px;
    margin-top: 5px;
}
.admin-answer-pills span {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 7px;
    background: #ffe7dd;
    color: #d94b2b;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
}
.admin-common-qr-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid #f2ded6;
    border-radius: 16px;
    padding: 16px;
    background: #fff;
    box-shadow: 0 14px 30px rgba(182,75,42,.1);
    text-align: center;
}
.admin-common-qr-link {
    display: grid;
    place-items: center;
    width: 210px;
    height: 210px;
    border: 1px solid #ebcfc3;
    border-radius: 12px;
    background: #fff;
}
.admin-common-qr-link img {
    display: block;
    width: 190px;
    height: 190px;
}
.admin-common-qr-card p {
    max-width: 100%;
    margin: 0;
    overflow-wrap: anywhere;
    color: #a95a43;
    font-size: 11px;
    line-height: 16px;
}
.admin-upload {
    position: relative;
    flex-direction: row !important;
    align-items: center;
    gap: 10px !important;
    min-height: 48px;
    border: 1px solid #f4d4c7;
    border-radius: 12px;
    padding: 0 14px;
    background: #fff7f2;
    color: #765d54;
    cursor: pointer;
}
.admin-upload span {
    color: #d94b2b;
    font-size: 18px;
    line-height: 22px;
}
.admin-upload b {
    color: #765d54;
    font-size: 13px;
    line-height: 18px;
}
.admin-upload input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.admin-qr-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-choice-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.admin-choice-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    border: 1px solid #f7cdbe;
    border-radius: 16px;
    padding: 12px 14px;
    background: #fff7f2;
}
.admin-choice-card.has-photo {
    grid-template-columns: 64px minmax(0, 1fr) auto;
}
.admin-choice-thumb {
    width: 64px;
    height: 64px;
    overflow: hidden;
    border: 1px solid #ebcfc3;
    border-radius: 12px;
    background: #fff;
}
.admin-choice-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-choice-thumb.is-empty {
    display: grid;
    place-items: center;
    background: #fff0e8;
}
.admin-choice-thumb.is-empty span {
    color: #c38a79;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 14px;
    text-transform: uppercase;
}
.admin-choice-meta {
    min-width: 0;
}
.admin-choice-meta h2 {
    overflow: hidden;
    margin: 0;
    color: #3a2824;
    font-size: 15px;
    font-weight: 800;
    line-height: 21px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-choice-meta p {
    display: -webkit-box;
    overflow: hidden;
    margin: 4px 0 0;
    color: #8a6d64;
    font-size: 12px;
    line-height: 18px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.admin-choice-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}
.admin-qr-card {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 116px;
    border: 1px solid #f7cdbe;
    border-radius: 16px;
    padding: 12px 13px;
    background: #fff7f2;
}
.admin-qr-card.is-target-list {
    min-height: 92px;
}
.admin-qr-link,
.fake-qr,
.admin-target-thumb {
    position: relative;
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
    overflow: hidden;
    border: 1px solid #ebcfc3;
    border-radius: 10px;
    background: #fff;
}
.admin-target-thumb {
    display: grid;
    place-items: center;
}
.admin-target-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-target-thumb span {
    color: #d94b2b;
    font-size: 22px;
    font-weight: 900;
}
.admin-qr-image {
    display: block;
    width: 100%;
    height: 100%;
}
.fake-qr i {
    position: absolute;
    display: block;
    background: #51342b;
}
.fake-qr i:nth-child(1) { left: 8px; top: 8px; width: 19px; height: 19px; }
.fake-qr i:nth-child(2) { right: 8px; top: 8px; width: 19px; height: 19px; }
.fake-qr i:nth-child(3) { left: 8px; bottom: 8px; width: 19px; height: 19px; }
.fake-qr i:nth-child(4) { left: 43px; top: 22px; width: 5px; height: 5px; }
.fake-qr i:nth-child(5) { left: 57px; top: 22px; width: 12px; height: 5px; }
.fake-qr i:nth-child(6) { left: 36px; top: 36px; width: 5px; height: 19px; }
.fake-qr i:nth-child(7) { left: 50px; top: 64px; width: 5px; height: 19px; }
.fake-qr i:nth-child(8) { left: 64px; top: 64px; width: 19px; height: 5px; }
.fake-qr i:nth-child(9) { left: 78px; top: 78px; width: 12px; height: 12px; }
.admin-qr-meta {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
    align-self: stretch;
    min-width: 0;
}
.admin-qr-meta h2 {
    overflow: hidden;
    font-size: 14px;
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-qr-meta p {
    overflow: hidden;
    color: #a95a43;
    font-size: 11px;
    line-height: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-empty {
    align-items: flex-start;
    color: #8a6d64;
}
.admin-empty.compact { box-shadow: none; }
.admin-empty h2 {
    margin: 0;
    color: #3a2824;
    font-size: 16px;
    line-height: 22px;
}
.admin-empty p { margin: 0; font-size: 12px; line-height: 18px; }
.admin-score-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.admin-score-summary div {
    border: 1px solid #f2ded6;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}
.admin-score-summary span {
    display: block;
    color: #8a6d64;
    font-size: 11px;
    font-weight: 800;
}
.admin-score-summary strong {
    color: #d94b2b;
    font-size: 28px;
    line-height: 36px;
}
.admin-bar-row {
    display: grid;
    grid-template-columns: 54px 1fr 24px;
    gap: 8px;
    align-items: center;
    color: #8a6d64;
    font-size: 11px;
}
.admin-bar-row div,
.admin-meter {
    height: 10px;
    overflow: hidden;
    border-radius: 999px;
    background: #fff0e8;
}
.admin-bar-row i,
.admin-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #f16a3d;
}
.admin-vote-history h2 {
    margin-bottom: 4px;
}
.admin-vote-table {
    display: flex;
    flex-direction: column;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid #f2ded6;
    border-radius: 12px;
    background: #fff;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-inline: contain;
    cursor: grab;
    scrollbar-width: thin;
    scrollbar-color: #f16a3d #fff0e8;
}
.admin-vote-table.is-dragging {
    cursor: grabbing;
    user-select: none;
}
.admin-vote-table::-webkit-scrollbar {
    height: 8px;
}
.admin-vote-table::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #fff0e8;
}
.admin-vote-table::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #f16a3d;
}
.admin-vote-table-head,
.admin-vote-table-row {
    display: grid;
    grid-template-columns: 142px 64px 112px minmax(180px, 1fr);
    align-items: center;
    gap: 8px;
    width: max-content;
    min-width: 100%;
    min-height: 42px;
    padding: 8px 10px;
}
.admin-vote-table-head {
    border-bottom: 1px solid #f2ded6;
    background: #fff8f4;
    color: #8a6d64;
    font-size: 10px;
    font-weight: 900;
    line-height: 14px;
}
.admin-vote-table-row {
    border-bottom: 1px solid #f8e5dd;
}
.admin-vote-table-row:nth-child(odd) {
    background: #fff4ed;
}
.admin-vote-table-row:last-child {
    border-bottom: 0;
}
.admin-vote-table-row time {
    min-width: 0;
    color: #3a2824;
    font-size: 12px;
    font-weight: 900;
    line-height: 16px;
    white-space: nowrap;
}
.admin-vote-table-row span {
    overflow: hidden;
    color: #8a6d64;
    font-size: 11px;
    font-weight: 800;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-vote-table-row strong {
    color: #d94b2b;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
}
.admin-vote-table-row p {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    color: #765d54;
    font-size: 11px;
    font-weight: 400;
    line-height: 16px;
}
.admin-print-card {
    align-items: center;
    text-align: center;
}
.admin-print-logo { width: 194px; height: 40px; object-fit: contain; }
.admin-print-card p {
    margin: 0;
    color: #8a6d64;
    font-size: 12px;
    line-height: 18px;
}
.admin-print-qr img {
    width: 240px;
    height: 240px;
}
.admin-photo-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 520px;
}
.admin-photo-preview {
    position: relative;
    display: flex;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 0;
    background: #fff7f2;
}
.admin-photo-preview[hidden] {
    display: none !important;
}
.admin-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.admin-photo-remove {
    position: absolute;
    top: 13px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #ff0000;
    cursor: pointer;
}
.admin-photo-remove:disabled {
    cursor: not-allowed;
    opacity: .5;
}
.admin-photo-remove .trash-svg {
    display: block;
    width: 34px;
    height: 34px;
}
.admin-print-url {
    overflow-wrap: anywhere;
    color: #a95a43 !important;
}
.admin-profile-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 4px 0;
}
.admin-profile-form label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 342px;
    max-width: 100%;
    color: #765d54;
    font-size: 12px;
    font-weight: 800;
    line-height: 17px;
}
.admin-read-field {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    width: 342px;
    max-width: 100%;
    padding-top: 4px;
}
.admin-read-field b,
.admin-confirm-list b {
    color: #765d54;
    font-size: 12px;
    line-height: 17px;
}
.admin-read-field p,
.admin-confirm-list p {
    margin: 0;
    color: #3a2824;
    font-size: 14px;
    line-height: 22px;
}
.admin-read-field .figma-primary {
    align-self: center;
    margin-top: 12px;
}
.admin-read-field .figma-primary:disabled {
    opacity: .55;
    cursor: not-allowed;
}
.admin-profile-note {
    width: 350px;
    max-width: 100%;
    margin: 12px 0 0;
    color: #8a6d64;
    font-size: 12px;
    line-height: 18px;
}
.admin-withdraw {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    width: 100%;
    padding-top: 24px;
}
.admin-withdraw h2 {
    margin: 0;
    border-left: 5px solid #d94b2b;
    padding: 10px;
    color: #3a2824;
    font-size: 15px;
    line-height: 21px;
}
.admin-withdraw .admin-outline-button {
    align-self: center;
}
.admin-withdraw button:disabled {
    opacity: .7;
    cursor: not-allowed;
}
.admin-confirm-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 342px;
    max-width: 100%;
    margin: 18px auto 0;
}
.admin-confirm-list div {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.admin-confirm-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}
.admin-danger-panel {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 342px;
    max-width: 100%;
    margin: 18px auto 0;
    border: 1px solid #f4c8b8;
    border-radius: 14px;
    padding: 18px 16px;
    background: #fff7f2;
}
.admin-danger-panel h2 {
    margin: 0;
    color: #3a2824;
    font-size: 16px;
    line-height: 22px;
}
.admin-danger-panel p {
    margin: 0;
    color: #8a6d64;
    font-size: 12px;
    line-height: 18px;
}
.admin-danger-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 250px;
    border: 0;
    border-radius: 13px;
    padding: 12px 60px;
    background: #d94b2b;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
    white-space: nowrap;
}
.delete-modal {
    position: absolute;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(58, 40, 36, .28);
}
.delete-modal[hidden] {
    display: none;
}
.delete-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    width: min(342px, 100%);
    border-radius: 20px;
    padding: 22px 20px 20px;
    background: #fff;
}
.delete-dialog-icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: #fff0ea;
    color: #d94b2b;
    font-size: 20px;
    font-weight: 800;
    line-height: 27px;
}
.delete-dialog h2 {
    margin: 0;
    color: #3a2824;
    font-size: 19px;
    font-weight: 800;
    line-height: 28px;
    text-align: center;
}
.delete-dialog p {
    width: 100%;
    margin: 0;
    font-size: 13px;
    line-height: 21px;
}
.delete-dialog-target {
    color: #e84224;
    font-weight: 800;
}
.delete-dialog-copy {
    color: #765d54;
}
.delete-dialog-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}
.delete-cancel,
.delete-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
}
.delete-cancel {
    border: 1px solid #f4c8b8;
    background: #fff;
    color: #b85435;
}
.delete-submit {
    border: 0;
    background: #e84224;
    color: #fff;
}
.admin-page .notice {
    position: fixed;
    left: 50%;
    top: 12px;
    z-index: 10;
    width: min(350px, calc(100vw - 48px));
    transform: translateX(-50%);
}
@media (min-width: 820px) {
    .admin-shell { width: min(100%, 800px); }
}
@media (max-width: 429px) {
    .admin-device {
        width: 100vw;
        min-height: 100vh;
        padding: 12px;
        border-radius: 0;
    }
    .admin-screen {
        width: 100%;
        max-width: none;
        min-height: calc(100vh - 24px);
    }
    .admin-head { padding-left: 20px; padding-right: 20px; }
    .admin-body { padding-left: 20px; padding-right: 20px; }
    .admin-device-tall .admin-body { padding-left: 10px; padding-right: 10px; }
}

/* Admin responsive shell refinements */
.admin-shell {
    width: 100%;
    max-width: 800px;
    min-height: 100dvh;
    padding: 0;
}
.admin-device,
.admin-device-tall,
.admin-device-profile,
.admin-device-profile-confirm {
    width: 100%;
    max-width: 800px;
    height: 100dvh;
    min-height: 0;
    padding: 18px;
}
.admin-screen,
.admin-device-tall .admin-screen,
.admin-device-profile .admin-screen,
.admin-device-profile-confirm .admin-screen {
    width: 100%;
    max-width: none;
    height: calc(100dvh - 36px);
    min-height: 0;
}
.admin-head {
    position: sticky;
    top: 0;
    z-index: 12;
    flex: 0 0 auto;
}
.admin-nav {
    position: sticky;
    bottom: 0;
    z-index: 12;
    flex: 0 0 auto;
}
.admin-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.admin-topbar,
.admin-title {
    width: 100%;
}
.admin-form,
.admin-profile-form,
.admin-confirm-list,
.admin-confirm-actions,
.admin-danger-panel {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.admin-form label,
.admin-add-card label,
.admin-profile-form label,
.admin-read-field,
.admin-profile-note {
    width: 100%;
    max-width: 520px;
}
.admin-profile-note {
    margin-left: auto;
    margin-right: auto;
}
.admin-email-helper {
    width: 100%;
    max-width: 520px;
}
.admin-item-helper {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.admin-card-list,
.admin-qr-list,
.admin-choice-list {
    width: 100%;
}
.admin-add-card,
.admin-chart-card,
.admin-print-card,
.admin-empty,
.admin-poll-card,
.admin-qr-card,
.admin-choice-card,
.admin-poll-select,
.admin-primary-action,
.admin-stats {
    width: 100%;
}
.admin-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-nav a:not(.active) {
    background: #fff;
    color: #8a6d64;
}
.admin-nav a:not(.active) span {
    color: #b59b92;
}
@media (min-width: 600px) {
    .admin-body {
        padding-left: 32px;
        padding-right: 32px;
    }
    .admin-device-tall .admin-body {
        padding-left: 32px;
        padding-right: 32px;
    }
    .admin-head {
        padding-left: 32px;
        padding-right: 32px;
    }
    .admin-card-list {
        gap: 12px;
    }
    .admin-poll-card {
        padding: 18px 20px;
    }
}
@media (max-width: 429px) {
    .admin-device,
    .admin-device-tall,
    .admin-device-profile,
    .admin-device-profile-confirm {
        width: 100vw;
        max-width: none;
        height: 100dvh;
        padding: 12px;
        border-radius: 0;
    }
    .admin-screen,
    .admin-device-tall .admin-screen,
    .admin-device-profile .admin-screen,
    .admin-device-profile-confirm .admin-screen {
        height: calc(100dvh - 24px);
    }
    .admin-topbar {
        gap: 10px;
    }
    .admin-logo-mini {
        width: min(194px, calc(100vw - 104px));
    }
    .admin-avatar {
        display: none;
    }
    .admin-title-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
    }
    .admin-title-row h1 {
        flex: 1 1 auto;
        min-width: 0;
    }
    .admin-title-user {
        display: inline-flex;
        flex: 0 1 auto;
        justify-content: flex-end;
        max-width: 42%;
        padding-top: 5px;
        overflow-wrap: anywhere;
        white-space: normal;
        text-align: right;
    }
    .admin-menu-user {
        display: block;
    }
    .admin-menu-panel {
        min-width: 152px;
    }
    .admin-date-grid {
        grid-template-columns: 1fr;
    }
    .admin-date-grid input {
        font-size: 14px;
    }
    .admin-choice-card,
    .admin-choice-card.has-photo {
        grid-template-columns: 64px minmax(0, 1fr) auto;
        align-items: center;
    }
    .admin-choice-thumb {
        width: 64px;
        height: 64px;
    }
    .admin-choice-actions {
        width: auto;
        justify-content: flex-end;
    }
}
@media (max-width: 599px) {
    .admin-avatar {
        display: none;
    }
    .admin-title-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 10px;
    }
    .admin-title-row h1 {
        flex: 1 1 auto;
        min-width: 0;
    }
    .admin-title-user {
        display: inline-flex;
        flex: 0 1 auto;
        justify-content: flex-end;
        max-width: 42%;
        padding-top: 5px;
        overflow-wrap: anywhere;
        white-space: normal;
        text-align: right;
    }
    .admin-date-grid {
        grid-template-columns: 1fr;
    }
    .admin-date-grid input {
        font-size: 14px;
    }
}
