.converter{position:relative;min-width:0}
.name-form{display:flex;align-items:center;gap:16px;min-height:72px;padding:9px 20px;background:#fff;border:1px solid #d1d5db;border-radius:999px}
.name-form:focus-within{border-color:#2563eb}
.input-logo{display:block;width:32px;height:32px;flex:none}
.name-form input{min-width:0;flex:1;border:0;outline:0;background:transparent;color:#111827;font-size:1.125rem;font-weight:700}
.name-form #hangul-name:focus,.name-form #mobile-search-trigger:focus,.mobile-search-form #mobile-hangul-name:focus{outline:none!important;box-shadow:none!important}
.name-form input::placeholder{color:#d1d5db;font-weight:600}
.name-form .name-submit{display:grid;place-items:center;width:40px;height:40px;flex:none;border:0;border-radius:50%;background:linear-gradient(to top right,#2563eb,#60a5fa);color:#fff}
.name-form .name-submit:hover{background:#2563eb}
.mobile-search-trigger{display:none}
.form-status{margin:6px 0;color:#b91c1c;font-size:.8rem}.form-status:empty{display:none}
.mobile-search-overlay{position:fixed;z-index:100;inset:0;overflow-y:auto;background:#fff;padding-top:env(safe-area-inset-top,0px)}
.mobile-search-form{display:flex;align-items:center;gap:4px;margin:12px 16px 0;padding:6px 8px;border:2px solid transparent;border-radius:999px;background:#f3f4f6}
.mobile-search-form:focus-within{border-color:#bfdbfe;background:#fff}
.mobile-search-form button{display:grid;place-items:center;width:44px;height:44px;flex:none;border:0;background:transparent;color:#3b82f6}
.mobile-search-form button:first-child{color:#6b7280}
.mobile-search-form input{min-width:0;min-height:44px;flex:1;padding:0 4px;border:0;outline:0;background:transparent;color:#111827;font-size:1.125rem;font-weight:500}
.mobile-search-form input::placeholder{color:#9ca3af}
.mobile-search-status{margin:10px 24px;color:#b91c1c;font-size:.875rem}
.mobile-search-status:empty{display:none}
.recent-searches{position:absolute;z-index:30;top:calc(100% + 8px);left:0;width:100%;overflow:hidden;border:1px solid #d1d5db;border-radius:8px;background:#fff;text-align:left}
.recent-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-bottom:1px solid #f3f4f6}
.recent-heading strong{color:#111827;font-size:.875rem}
.recent-clear{padding:2px 0;border:0;background:transparent;color:#9ca3af;font-size:.75rem}
.recent-clear:hover,.recent-remove:hover{color:#2563eb}
.recent-list{max-height:320px;overflow-y:auto;margin:0;padding:4px 0;list-style:none}
.recent-item{display:flex;align-items:center;min-width:0}
.recent-select{display:flex;align-items:center;gap:10px;min-width:0;min-height:44px;flex:1;padding:6px 14px;border:0;background:#fff;text-align:left}
.recent-select:hover,.recent-select:focus-visible{background:#f8fafc}
.recent-select svg{flex:none;color:#9ca3af}
.recent-name{overflow:hidden;color:#1f2937;font-size:.875rem;text-overflow:ellipsis;white-space:nowrap}
.recent-romanized{overflow:hidden;color:#9ca3af;font-size:.75rem;text-overflow:ellipsis;white-space:nowrap}
.recent-date{flex:none;margin-left:auto;color:#9ca3af;font-size:.75rem}
.recent-remove{width:36px;height:36px;flex:none;margin-right:8px;border:0;background:transparent;color:#9ca3af;font-size:1.25rem;line-height:1}
.mobile-recent{margin-top:16px;padding:0 20px}
.mobile-recent .recent-heading{padding:12px 0}
.mobile-recent .recent-list{max-height:calc(100dvh - 150px)}
.ad-space{position:relative}
.ad-space ins.adsbygoogle{display:block;width:100%}
.ad-space-top{min-width:0;max-width:100%;margin:16px 0 0;contain:inline-size}
.ad-space-side{width:336px;height:280px}
.result-stack{display:grid;gap:12px;margin-top:14px}
.result-skeleton{display:grid;gap:12px;margin-top:14px}
.skeleton-card{padding:24px;border:1px solid #e5e7eb;border-radius:8px;background:#fff}
.skeleton-line,.skeleton-options span{display:block;border-radius:8px;background:#e5e7eb;animation:skeleton-pulse 1.1s ease-in-out infinite alternate}
.skeleton-line--name{width:25%;height:16px;margin-bottom:16px}
.skeleton-line--result{width:52%;height:40px;margin-bottom:24px}
.skeleton-line--alternatives{width:100%;height:32px;background:#f3f4f6}
.skeleton-line--heading{width:34%;height:20px;margin-bottom:16px}
.skeleton-options{display:flex;gap:8px}
.skeleton-options span{flex:1;height:40px;background:#f3f4f6}
.skeleton-card--links{display:grid;gap:12px;padding:16px}
.skeleton-card--links .skeleton-line{width:100%;height:48px;background:#f3f4f6}
@keyframes skeleton-pulse{from{opacity:.55}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.skeleton-line,.skeleton-options span{animation:none}}
.result-card,.options-card,.result-next{background:#fff;border:1px solid #d1d5db;overflow:hidden}
.result-card,.options-card{border-radius:8px}
.result-next{border-radius:8px}
.result-card{padding:20px 20px 16px}
.result-topline{margin-bottom:8px;color:#9ca3af;font-size:.75rem;font-weight:500;line-height:16px}
.result-topline span:first-child::before{content:'';display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:#0090ff;vertical-align:2px}
.result-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.result-heading h2{min-width:0;margin:0;color:#111827;font-size:1.875rem;font-weight:800;letter-spacing:-.04em;line-height:1;word-break:break-word}
.result-actions{display:flex;gap:8px;flex:none}
.result-actions button{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:40px;height:40px;padding:0 10px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;color:#6b7280;font-size:.75rem;font-weight:700}
.result-actions #copy{border-color:#3b82f6;background:#3b82f6;color:#fff}
.result-actions #share{background:#f3f4f6}
.result-actions button:hover{filter:brightness(.95)}
.warnings p{margin:10px 0 0;padding:9px 11px;border:1px solid #fcd34d;border-radius:8px;background:#fffbeb;font-size:.8rem}
.alternatives{margin-top:16px;padding-top:12px;border-top:1px solid #f3f4f6}
.alternatives h3{margin:0 0 8px;color:#9ca3af;font-size:.68rem;font-weight:700}
.alternative-list{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:4px}
.alternative-list button{padding:6px 12px;border:1px solid #f3f4f6;border-radius:8px;background:#f9fafb;color:#4b5563;font-size:.875rem;font-weight:500;line-height:20px;white-space:nowrap}
.alternative-list button:hover{border-color:#93c5fd;color:#2563eb}
.choices{display:block}
.choice-group{padding:12px 16px;border-bottom:1px solid #f3f4f6}
.choice-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}
.choice-head h3{margin:0;color:#1f2937;font-size:.875rem;font-weight:700;letter-spacing:0}
.surname-group .choice-head h3::first-letter{color:#3b82f6}
.choice-badge{flex:none;padding:2px 8px;border:1px solid #f3f4f6;border-radius:8px;background:#f9fafb;color:#9ca3af;font-size:.65rem}
.candidate-list{display:grid;gap:8px}
.candidate{position:relative;display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:12px;border:1px solid #e5e7eb;border-radius:8px;background:#fff;text-align:left;overflow:hidden}
.candidate:hover{border-color:#93c5fd;background:#f9fafb}
.candidate[aria-pressed=true]{border-color:#60a5fa;background:#eff6ff}
.candidate-bar{position:absolute;inset:0 auto 0 0;background:#d1d5db;opacity:.2}
.candidate[aria-pressed=true] .candidate-bar{background:#60a5fa;opacity:.2}
.candidate::before{position:relative;z-index:1;content:'';width:20px;height:20px;flex:none;border:1px solid #d1d5db;border-radius:50%;background:#fff}
.candidate[aria-pressed=true]::before{border-color:#3b82f6;background:#3b82f6}
.candidate[aria-pressed=true]::after{content:'✓';position:absolute;z-index:2;top:50%;left:18px;transform:translateY(-50%);color:#fff;font-size:12px;font-weight:700;line-height:1}
.candidate-label{position:relative;z-index:1;display:flex;align-items:center;gap:8px;min-width:0}
.candidate-name{color:#374151;font-size:1rem;font-weight:700;letter-spacing:.02em}
.candidate-badge{padding:2px 6px;border:1px solid #fde68a;border-radius:5px;background:#fffbeb;color:#d97706;font-size:.62rem;font-weight:700;white-space:nowrap}
.candidate-badge:not(:empty):where(.given-group *){border-color:#a7f3d0;background:#ecfdf5;color:#059669}
html:not([lang="ko"]) .candidate-label{flex-wrap:wrap}
html:not([lang="ko"]) .candidate-badge{white-space:normal;overflow-wrap:anywhere}
.candidate-score{position:relative;z-index:1;margin-left:auto;color:#6b7280;font-size:.875rem;font-weight:700}
.choice-note{margin:10px 0 0;color:#6b7280;font-size:.75rem;line-height:1.55}
.candidate-more{margin-top:12px}.candidate-more summary{color:#9ca3af;font-size:.7rem;font-weight:700;cursor:pointer}
.candidate-chips{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.candidate-chip{padding:5px 9px;border:1px solid #d1d5db;border-radius:8px;background:#fff;color:#4b5563;font-size:.7rem;font-weight:700}
.candidate-chip:hover,.candidate-chip[aria-pressed=true]{border-color:#3b82f6;background:#eff6ff;color:#2563eb}
.given-group .choice-head{justify-content:flex-start}.given-group .choice-head h3{margin-right:3px}
.syllable-label{margin:0 0 8px;color:#9ca3af;font-size:.7rem}
.given-group .candidate-list{gap:6px}.given-group .candidate{min-height:42px;padding:10px}.given-group .candidate::before{width:16px;height:16px}.given-group .candidate[aria-pressed=true]::after{left:14px;font-size:10px}.given-group .candidate-name{font-size:.875rem}.given-group .candidate-score{font-size:.75rem}
.choice-source{margin:0;padding:10px 16px;border-bottom:1px solid #f3f4f6;color:#9ca3af;font-size:.65rem;line-height:1.5}
.option-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 16px;border-bottom:1px solid #f3f4f6;color:#4b5563;font-size:.875rem;font-weight:500}
.segment-control{display:flex;gap:2px;padding:4px;border-radius:8px;background:#f3f4f6}
.segment-control button{padding:8px 12px;border:1px solid transparent;border-radius:8px;background:transparent;color:#6b7280;font-size:.875rem;white-space:nowrap}
.segment-control button[aria-pressed=true]{border-color:#dbeafe;background:#fff;color:#2563eb;font-weight:700}
.advanced-options summary{padding:12px 16px;color:#6b7280;font-size:.875rem;cursor:pointer;list-style:none}.advanced-options summary::after{content:'⌄';float:right}.advanced-options[open] summary::after{content:'⌃'}
.advanced-body{padding:8px 16px 12px;border-top:1px solid #f3f4f6}
.advanced-row{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:64px;padding:10px 0}
.advanced-row+.advanced-row{border-top:1px solid #f3f4f6}
.advanced-label{color:#4b5563;font-size:.875rem;font-weight:500}
.advanced-case button{min-width:42px;min-height:36px;padding:6px 10px}
.advanced-switch{position:relative;width:48px;height:24px;flex:none;padding:0;border:0;border-radius:999px;background:#e5e7eb;transition:background-color .18s}
.advanced-switch[aria-checked=true]{background:#3b82f6}
.switch-knob{position:absolute;top:2px;left:2px;width:20px;height:20px;border:1px solid #f3f4f6;border-radius:50%;background:#fff;transition:transform .18s}
.advanced-switch[aria-checked=true] .switch-knob{transform:translateX(24px)}
.result-next{margin-top:12px;padding:14px 16px}
.next-kicker{margin:0 0 8px;color:#9ca3af;font-size:.72rem;font-weight:700}
.next-links{display:grid;gap:5px}.next-links a{display:flex;align-items:center;justify-content:space-between;padding:9px 11px;border:1px solid #dbeafe;border-radius:8px;color:#1e3a8a;font-size:.8rem;text-decoration:none}.next-links a strong{font-weight:600}.next-links a span{color:#9ca3af}
.briefing{margin-bottom:14px;padding:2px 0 14px;border-bottom:1px solid #e5e7eb}
.briefing h2{margin:0 0 10px;color:#111827;font-size:1rem;font-weight:800}
.briefing p{margin:0 0 8px;color:#475569;font-size:.875rem;line-height:1.7}
.briefing p:last-child{margin-bottom:0}
.briefing .briefing-lead{color:#111827;font-weight:700}
.briefing .briefing-note{margin-top:10px;color:#64748b;font-size:.75rem}
.briefing a{font-weight:700}
.ai-briefing-button{margin-top:4px;padding:8px 10px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:#1d4ed8;font-size:.75rem;font-weight:700}
.ai-briefing-button:disabled{opacity:.6;cursor:wait}
.briefing .ai-briefing-status{margin:8px 0 0;color:#64748b;font-size:.75rem}
.briefing .ai-briefing-status:empty{display:none}
.ai-briefing-progress{display:block;width:min(100%,320px);height:10px;margin-top:8px;accent-color:#3b82f6}
.ai-briefing-progress[hidden]{display:none}
.briefing .ai-briefing-text{margin-top:8px;padding:10px 12px;border-radius:8px;background:#f8fafc}
@media(max-width:1159px){.side-ad-stack{display:none}}
@media(max-width:767px){
  html:not([lang="ko"]) .option-row{display:block}
  html:not([lang="ko"]) .option-row>span{display:block;margin-bottom:8px}
  html:not([lang="ko"]) .option-row .segment-control{width:100%}
  html:not([lang="ko"]) .option-row .segment-control button{flex:1;min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
  .recent-searches{display:none}
  .mobile-recent .recent-romanized,.mobile-recent .recent-date{display:none}
  .converter{margin-top:36px}
  .name-form{min-height:72px;padding:9px 20px}
  .name-form input{display:none}
  .mobile-search-trigger{display:flex;align-items:center;min-width:0;flex:1;overflow:hidden;padding:0;border:0;background:transparent;color:#9ca3af;text-align:left;font-size:1.125rem;font-weight:700;white-space:nowrap;cursor:text}
  .mobile-search-trigger span{overflow:hidden;text-overflow:ellipsis}
  .mobile-search-trigger.has-value{color:#111827}
  .input-logo{width:32px;height:32px}
  .name-form .name-submit{width:40px;height:40px}
  .ad-space-top{margin-top:44px}
  .alternative-list{flex-wrap:nowrap;overflow-x:auto}
  .segment-control button{padding:6px;font-size:.8125rem}
}
