.soda-preset-page { --paper:var(--canvas); --muted:var(--sub); --line:#e0d2c3; max-width:540px }
.soda-preset-page .basic-controls { display:block }
.soda-preset-page .card-avatar { background:transparent; border:0; padding:0; width:100% }
.soda-preset-page .avatar-content { display:grid; place-items:center; width:100%; height:100%; border-radius:50%; overflow:hidden; color:#593125; font-size:26px; font-weight:740 }
.avatar-tools { display:grid; justify-items:center; gap:3px }
.preset-subaction { min-height:35px; padding:2px; font-size:12px; color:var(--sub) }
.preset-subaction:hover { text-decoration:underline }
.voice-none { position:relative }
.preset-radio { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; cursor:pointer }
.soda-preset-page .card-pref { position:relative }
.soda-preset-page .card-pref input { clip-path:none; inset:auto 0 auto auto; opacity:0; width:41px; height:44px; z-index:1; cursor:pointer }
.soda-preset-page :is(button,input,select) { font: inherit; color: inherit }
.soda-preset-page :is(button,a,select,.card-avatar,.voice-tag,.voice-none,.card-pref) { touch-action: manipulation; cursor: pointer }
.soda-preset-page :is(button,a,input,select):focus-visible, .card-pref:focus-within .card-switch { outline: 3px solid #ad4826; outline-offset: 3px }
.soda-preset-page :is(h1,h2,p,fieldset) { margin: 0 }
.card-invisible { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap }
.card-heading { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 83px; margin-bottom: 13px }
.card-heading h1 { position: relative; z-index: 0; color: #302019; font: 900 clamp(39px,10.7vw,47px)/1.15 "Soda Display","PingFang SC","Microsoft YaHei",sans-serif; letter-spacing: -.07em; -webkit-text-stroke: .65px }
.card-heading h1::after { position: absolute; left: 2px; bottom: -3px; height: 5px; width: 70%; border-radius: 65% 35% 50% 35%; background: #fb674c; content: ""; transform: rotate(-2deg) }
.card-heading img { width: 85px; height: 70px; object-fit: contain; transform: rotate(-5deg) }
.identity-pass {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: clamp(16px, 5vw, 24px);
  padding: 5px 2px 8px;
}
.card-avatar { position: relative; display: grid; justify-items: center; gap: 8px; border-radius: 12px }
.avatar-disc { position: relative; display: grid; width: 68px; height: 68px; place-items: center; border-radius: 50%; background: #ffe4cc }
.avatar-disc img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover }
.camera-badge { position: absolute; right: -2px; bottom: -2px; display: grid; width: 24px; height: 24px; place-items: center; border: 2px solid var(--paper); border-radius: 50%; background: #47342c }
.identity-pass svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round }
.camera-badge svg { width: 14px; height: 14px; color: #fffaf3 }
.avatar-action { color: #744f3d; font-size: 12px; font-weight: 600; line-height: 16px }
.identity-fields { min-width: 0 }
.card-name { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; font-weight: 550; cursor: text }
.name-editor { display: flex; align-items: center; gap: 8px; min-height: 42px; color: var(--ink) }
.soda-preset-page .name-editor input { flex: 1; min-width: 0; width: 100%; padding: 2px 0 5px; margin: 0; border: 0; background: transparent; color: var(--ink); font-family: inherit; font-size: 24px; line-height: 1.3; font-weight: 700 }
.soda-preset-page .name-editor input:focus-visible, .soda-preset-page .card-gender button:focus-visible { outline: none; box-shadow: none }
.card-name:focus-within > span:first-child, .identity-lower:has(button:focus-visible) > label { color: #a33e21; text-decoration: underline; text-underline-offset: 3px }
.name-editor input::placeholder { font-weight: 500; font-size: 17px; color: var(--muted) }
.name-editor svg { flex: none; width: 17px; height: 17px; margin-right: 2px; color: #826f60 }
.identity-lower { display: flex; align-items: center; justify-content: space-between; min-height: 42px; color: var(--muted); font-size: 12px; font-weight: 550 }
.card-gender { position: relative; display: inline-flex; align-items: center }
.soda-preset-page .card-gender button { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; min-height: 44px; min-width: 64px; padding: 0 2px 0 9px; border: 0; background: transparent; color: var(--ink); font-size: 15px; font-weight: 650 }
.card-gender svg { width: 15px; height: 15px; color: #826f60 }
.card-gender [aria-expanded=true] svg { transform: rotate(180deg) }
.card-gender [role=listbox] { position: absolute; z-index: 5; top: 100%; right: 0; width: 148px; margin: 0; padding: 5px; list-style: none; border-radius: 15px; background: #fffcf7; box-shadow: 0 4px 18px #54322026, 0 0 0 1px #e4d5c5 }
.card-gender [role=option] { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 12px; border-radius: 10px; color: #3c2a20; font-size: 14px; cursor: pointer }
.card-gender [role=option][aria-selected=true] { font-weight: 750 }
.card-gender [role=option][aria-selected=true]::after { content: "✓"; color: #a43c22 }
.card-gender [role=option]:hover, .card-gender [role=option].highlighted { background: #ffe7d6 }
.birthday-strip { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fffdf8; border: 1px solid #e2cdbc; border-radius: 16px; margin-top: 14px; padding: 11px 14px }
.birthday-copy { display: grid; gap: 4px; margin-right: auto }
.birthday-title { font-size: 14px; font-weight: 750 }
.birthday-title small { color: var(--muted); font-size: 11px; font-weight: 450 }
.card-date { font: 630 19px/1.15 "Avenir Next","PingFang SC",sans-serif; letter-spacing: -.025em; font-variant-numeric: tabular-nums }
.zodiac-seal { display: inline-flex; align-items: center; justify-content: center; border: 1px solid #52676b; background: #d7ecef; font-size: 12px; font-weight: 690; border-radius: 50%; padding: 5px 9px; transform: rotate(-6deg) }
.zodiac-seal:empty { display: none }
.birthday-arrow { font-size: 22px; color: var(--muted) }
.voice-shelf { min-inline-size: 0; padding: 0; border: 0; margin-top: 24px !important }
.shelf-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:8px }
.shelf-head h2 { font-size: 20px; font-weight: 850; line-height: 1.3; letter-spacing: -.05em }
.voice-none span { display: block; border: 1px solid #d0c5bb; border-radius: 20px; padding: 3px 10px; color: #6a5b51; font-size: 12px }
.voice-none input:checked + span { border:1.5px solid var(--ink); color:var(--ink); background:#f7e7d6 }
.voice-none input:focus-visible + span, .voice-tag input:focus-visible + span { outline: 3px solid #ad4826; outline-offset: 2px }
.voice-stickers { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px }
.soda-preset-page .voice-tag { background:transparent; display: block; position: relative; min-width: 0 }
.voice-tag > span { height: 58px; border-radius: 12px; background: var(--fill); border: 1.5px solid transparent; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: clamp(12px,3.15vw,15px); font-weight: 710; white-space: nowrap }
.voice-tag img { width: 27px; height:28px; object-fit:contain }
.voice-tag input:checked + span { border: 2px solid #3b2a1d; background:#ffda68; box-shadow: 0 2px 0 #3b2a1d }
.voice-tag input:checked + span::after { position: absolute; display: grid; place-items: center; top:-4px; right:4px; width:13px; height:13px; color:white; background:#3b2a1d; border-radius:50%; content:"✓"; font: 700 10px/1 system-ui }
.voice-tag.butter { --fill:#ffedcb }.voice-tag.cream { --fill:#ffedd2 }.voice-tag.mint { --fill:#d9eddf }.voice-tag.sky { --fill:#ddebfa }.voice-tag.blush { --fill:#fde1dc }.voice-tag.lilac { --fill:#ece1f7 }
.card-pref { display: flex; align-items: center; gap: 12px; margin: 23px 1px 16px; padding: 14px 1px 1px; border-top: 1px dashed #d6c9bb; }
.pref-copy { display: grid; gap: 4px; flex: 1; min-width:0 }
.pref-copy strong { font-size: 15px; font-weight: 750 }.pref-copy small { font-size:12px; line-height: 1.45; color: var(--muted) }
.card-switch { display:block; position:relative; flex:none; width:39px; height:24px; border-radius:22px; border:1px solid #b3a699; background:#d6cbbf }
.card-switch::after { content:""; width:18px; height:18px; position:absolute; top:2px; left:2px; border-radius:100%; background:#fffaf4; box-shadow:0 1px 2px #5c47372e }
.card-pref input:checked + .card-switch { background:#c65534; border-color:#9a411f }.card-pref input:checked + .card-switch::after { left:17px }
.card-save { display: block; width:100%; min-height:47px; border:0; border-radius:14px; font-size:16px !important; font-weight:740 !important; color:#fff9ef !important; background:#38241d }
.birthday-wheel { --wheel-tint:#ffe2d3; --wheel-accent:#aa3d22; --item:38px; box-sizing:border-box; width:min(352px,calc(100vw - 32px)); max-height:90dvh; padding:0; margin:auto; border:2px solid #392d26; border-radius:23px; color:#332a24; background:#fffbf5; box-shadow:4px 5px 0 #392d2629; text-align:left; font:15px/1.5 "PingFang SC",system-ui,sans-serif }
.birthday-wheel::backdrop { background:#261d195d; backdrop-filter:blur(2px) }
.birthday-wheel header { display:flex; align-items:center; justify-content:space-between; gap:8px; border:0; margin:0; padding:17px 18px 8px }
.birthday-wheel h2 { color:#30261e; font:800 23px/1.25 "PingFang SC",system-ui,sans-serif; margin:0 }
.birthday-wheel output { color:var(--wheel-accent); background:var(--wheel-tint); border-radius:30px; padding:3px 10px; font-size:13px; font-weight:700 }
.birthday-wheel .picker-columns { position:relative; display:grid; grid-template-columns:1.32fr 1fr 1fr; isolation:isolate; margin:6px 14px 0; overflow:hidden }
.picker-columns::before { content:""; position:absolute; z-index:-1; inset:calc(50% - var(--item)/2) 0 auto; height:var(--item); border-radius:9px; background:var(--wheel-tint); border:1px solid color-mix(in srgb,var(--wheel-accent) 25%,transparent) }
.picker-lane { isolation:isolate; height:calc(var(--item)*5); overflow-y:auto; scrollbar-width:none; overscroll-behavior:contain; scroll-snap-type:y mandatory; touch-action:pan-y; text-align:center; font-variant-numeric:tabular-nums; color:#756e67; mask-image:linear-gradient(to bottom,transparent,#000 28%,#000 72%,transparent) }
.picker-lane::-webkit-scrollbar { display:none }
.picker-lane:before,.picker-lane:after { display:block; content:""; height:calc(var(--item)*2) }
.picker-lane span { display:block; height:var(--item); line-height:var(--item); scroll-snap-align:center; font-size:16px; cursor:pointer }
.picker-lane span.current { font-weight:800; color:#30271f; font-size:18px }
.birthday-wheel .picker-foot { display:flex; justify-content:space-between; gap:6px; align-items:center; padding:12px 15px 15px; border-top:1px solid #eadfd6 }
.picker-foot button { font-size:14px; line-height:1.3; font-weight:650; border:0; border-radius:20px; padding:9px 14px; color:#41362e; background:#f4ece4 }
.picker-foot .clear-date { margin-right:auto; color:#735951; font-size:12px; background:none; padding-inline:4px }
.picker-foot .commit-date { background:#352922; color:#fffaf3 }

body:has(.birthday-wheel[open]) { overflow:hidden }
@media(max-width:350px) {
  .voice-tag img { width:21px; height:25px }
  .voice-tag > span { gap:3px }
  .card-heading img { width:75px; height:62px }
}
