:root{--paper:#f8f6f0;--ink:#353d35;--muted:#777970;--line:#e5e3d9;--green:#596c58;--green-dark:#435641;--sand:#e9e0cf;--red:#ae5c51;--font:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif}*{box-sizing:border-box}html{min-height:100%;background:#eae7df}body{margin:0;min-height:100vh;min-height:100dvh;color:var(--ink);font-family:var(--font);display:grid;place-items:center;padding:48px 24px;background:radial-gradient(ellipse at 22% 15%,#f5f2eb 0,transparent 60%),#eae7df;font-size:15px;line-height:1.6}button,input,textarea,a{-webkit-tap-highlight-color:transparent}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #8b9a7a;outline-offset:4px}[hidden]{display:none!important}.icon-library{width:0;height:0;position:absolute}.icon{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none}.phone{width:420px;max-width:100%;min-height:820px;position:relative;display:flex;flex-direction:column;background:var(--paper);border:8px solid #353c34;border-radius:48px;box-shadow:0 28px 70px #3b3e3820,0 4px 12px #3b3e3815;overflow:hidden}.app-header{display:flex;justify-content:space-between;align-items:center;padding:25px 24px 14px;gap:12px}.brand{font-size:18px;letter-spacing:3px;font-weight:700;text-decoration:none;display:flex;align-items:center;gap:10px}.brand span{font-size:11px;font-weight:400;letter-spacing:1px;color:var(--muted)}.local-badge{font-size:10px;color:var(--muted);letter-spacing:.1px;display:flex;align-items:center;gap:6px}.local-badge>span{width:5px;height:5px;background:#9ba78d;border-radius:50%}.screen{flex:1;padding:24px;min-width:0}.section-kicker{font-size:10px;letter-spacing:2.2px;color:#838777;margin-bottom:12px;font-weight:600}h1,h2,p{margin-top:0}h1{font-size:27px;font-weight:550;letter-spacing:-1px;line-height:1.4;margin-bottom:10px}h2{font-size:26px;letter-spacing:-.8px;font-weight:550}.intro{color:var(--muted);font-size:13px;margin-bottom:32px}.avatar{border-radius:50%;background:linear-gradient(145deg,#e7e5da,#d9ddcf);display:grid;place-items:center;overflow:hidden;flex:none}.avatar svg{width:40%;height:40%;stroke:#959f89;stroke-width:1;fill:none}.avatar img{width:100%;height:100%;object-fit:cover}.large{width:116px;height:116px;margin:0 auto}.small{width:42px;height:42px}.person-main{text-align:center;padding:8px 0 28px}.person-main h2{margin:20px 0 4px;font-size:30px;overflow-wrap:anywhere}.person-number{font-size:14px;letter-spacing:1px;color:var(--muted);margin-bottom:8px;overflow-wrap:anywhere}.text-button{border:0;background:none;color:var(--muted);font-size:12px;padding:10px 8px;min-height:44px;text-align:center;display:inline-flex;justify-content:center;align-items:center;gap:6px}.text-button .icon{width:14px;height:14px}.contact-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.action-tile{border:0;background:none;padding:0;display:grid;justify-items:center;gap:10px;color:var(--ink);min-width:0}.action-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:22px;transition:transform .15s,filter .15s}.action-tile:hover .action-icon{transform:translateY(-3px);filter:brightness(.97)}.action-icon .icon{width:26px;height:26px}.green{background:var(--green);color:#fff}.sand{background:#e9decb;color:#81745f}.stone{background:#e3e5df;color:#6c7765}.action-tile strong{font-size:12px;font-weight:500;white-space:nowrap}.quiet-note{text-align:center;padding:36px 0 12px;color:#85877d;font-size:12px;line-height:1.9}.tiny-line{display:block;width:22px;height:1px;background:#c9cdbf;margin:0 auto 18px}.contact-form{display:flex;flex-direction:column}.photo-picker{text-align:center;margin:0 0 24px}.photo-button{display:block;width:fit-content;margin:10px auto 0;font-size:12px;color:var(--green);cursor:pointer;padding:8px;min-height:44px}.photo-button span{font-size:10px;color:var(--muted);margin-left:6px}.contact-form>label{font-size:12px;font-weight:600;display:flex;align-items:center;gap:8px;margin-bottom:8px}.contact-form label>span{font-size:10px;font-weight:400;color:var(--muted)}.contact-form label>.required{color:var(--green)}input:not([type=file]),textarea{width:100%;border:1px solid var(--line);border-radius:12px;background:#fffefb;color:var(--ink);padding:13px 14px;font-size:16px;min-height:48px}.contact-form>input{margin-bottom:20px}input::placeholder,textarea::placeholder{color:#a2a39b;font-size:13px}.contact-form #contact-number{margin-bottom:8px}.field-note{font-size:11px;line-height:1.7;color:var(--muted)}.form-buttons{display:flex;gap:12px;margin-top:16px}.button{min-height:48px;border-radius:14px;border:1px solid transparent;padding:12px 18px;display:inline-flex;gap:8px;align-items:center;justify-content:center;text-decoration:none;font-size:14px;font-weight:550;transition:background .15s}.primary{background:var(--green);color:white}.primary:hover{background:var(--green-dark)}.secondary{background:transparent;border-color:#d9dbd0;color:var(--green)}.danger,.stop{background:var(--red);color:white}.form-buttons .primary{flex:1}.privacy-note{font-size:10px;text-align:center;line-height:1.9;color:#93958b;margin:32px 0 4px}.home-indicator{width:100px;height:4px;border-radius:4px;background:#c0c4b8;margin:16px auto 10px;flex:none}.back-button{display:inline-flex;align-items:center;gap:2px;border:0;background:none;color:var(--green);padding:0 0 0 0;min-height:44px;font-size:13px;margin-bottom:24px}.back-button .icon{width:20px;height:20px}.call-screen{display:flex;flex-direction:column}.call-person{text-align:center;padding-top:8px}.call-avatar{width:142px;height:142px;margin:20px auto 22px}.call-person h1{font-size:32px;overflow-wrap:anywhere}.call-status{color:var(--green);font-size:13px;margin:28px 0 12px}.call-waves{height:28px;display:flex;align-items:center;justify-content:center;gap:5px}.call-waves i{height:7px;width:3px;border-radius:3px;background:#9aa48c;animation:wave 1.4s ease-in-out infinite}.call-waves i:nth-child(2){animation-delay:.2s}.call-waves i:nth-child(3){animation-delay:.4s}.call-waves i:nth-child(4){animation-delay:.6s}.call-waves i:nth-child(5){animation-delay:.8s}.call-waves.stopped i{animation:none;height:4px}.call-bottom{margin-top:auto;text-align:center;padding-top:36px}.call-voice{display:flex;gap:7px;align-items:center;justify-content:center;margin:0 auto 24px;min-height:44px;color:var(--green);border:0;background:transparent;font-size:13px}.hangup{border:0;display:grid;place-items:center;width:66px;height:66px;background:var(--red);border-radius:50%;color:white;margin:auto}.hangup .icon{transform:rotate(135deg);width:28px;height:28px}.end-label{display:block;color:var(--muted);font-size:11px;margin:10px 0 24px}.voice-screen>.section-kicker{margin-top:4px}.record-stage{text-align:center;padding:16px 0 28px}.record-orb{width:112px;height:112px;border-radius:50%;margin:0 auto 26px;background:#e8e4d8;display:grid;place-items:center;color:#818670}.record-orb .icon{width:34px;height:34px}.record-orb.recording{background:#eee0da;color:var(--red);box-shadow:0 0 0 12px #eee0da55;animation:breathe 2s ease-in-out infinite}#record-time{display:block;font-size:39px;font-weight:300;font-variant-numeric:tabular-nums;letter-spacing:2px}#record-status{margin:10px 0 0;font-size:12px;color:var(--muted)}.record-actions{display:flex;flex-direction:column;gap:12px}.record-dot{width:8px;height:8px;border-radius:50%;background:currentColor}audio{width:100%;margin-bottom:20px}.messages-screen{display:flex;flex-direction:column;padding:8px 24px 0;min-height:630px;max-height:740px}.message-header{display:flex;gap:10px;align-items:center;border-bottom:1px solid var(--line);padding-bottom:16px}.message-header .back-button{margin:0}.message-header h1{font-size:17px;letter-spacing:0;margin:0;overflow-wrap:anywhere}.message-header p{font-size:10px;color:var(--muted);margin:0}.icon-only{width:24px}.message-disclaimer{font-size:10px;color:#999b91;text-align:center;padding:14px 0;margin:0}.message-list{flex:1;min-height:260px;overflow:auto;overscroll-behavior:contain;padding:12px 0;display:flex;flex-direction:column;gap:22px;scrollbar-width:thin}.empty-messages{margin:auto;text-align:center;color:#a0a397;font-size:12px;line-height:1.9}.empty-messages .icon{display:block;width:30px;height:30px;margin:0 auto 12px;color:#afb5a4}.message-row{align-self:flex-end;max-width:88%;display:flex;flex-direction:column;align-items:flex-end}.message-bubble{padding:12px 16px;background:#e4e8db;color:#48583e;font-size:14px;border-radius:17px 17px 4px 17px;white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;margin:0}.message-meta{display:flex;align-items:center;gap:8px;font-size:9px;color:#909486;line-height:1.5}.delete-message{background:none;border:0;color:#8d9285;font-size:10px;min-height:32px;padding:4px}.message-composer{display:flex;align-items:flex-end;gap:10px;border-top:1px solid var(--line);padding-top:16px;margin-top:12px}.message-composer textarea{resize:vertical;max-height:150px;min-height:52px;line-height:1.6;font-size:15px;padding:12px}.message-composer button{width:44px;height:44px;min-width:44px;border:0;border-radius:50%;background:var(--green);color:#fff;display:grid;place-items:center;margin-bottom:4px}.composer-note{font-size:9px;color:#969a8e;text-align:center;margin:8px 0}.notice{margin:4px 24px 0;font-size:12px;padding:12px;border-radius:10px;background:#f1e4dc;color:#865b47;overflow-wrap:anywhere}.notice.success{background:#e6ebdf;color:#4b6345}.desktop-note{position:fixed;left:max(32px,calc(50% - 490px));top:25%;max-width:210px}.wordmark{font-size:62px;letter-spacing:-5px;font-weight:450;color:#65735d}.wordmark>span{color:#b8a485}.desktop-note p{margin:20px 0 30px;font-size:20px;line-height:1.9;letter-spacing:-.8px;color:#747a6b}.note-line{display:block;background:#b8beac;width:30px;height:1px;margin-bottom:20px}.desktop-note small{font-size:10px;letter-spacing:1px;line-height:1.9;color:#979c8d}.desktop-caption{position:fixed;left:calc(50% + 290px);top:70%;font-size:11px;line-height:2;color:#8a9080}dialog{width:min(340px,calc(100% - 40px));border:1px solid #e2e2d6;border-radius:24px;padding:28px;background:var(--paper);color:var(--ink);text-align:center;box-shadow:0 20px 80px #30382d30}dialog::backdrop{background:#32382c55;backdrop-filter:blur(4px)}dialog h2{font-size:21px;line-height:1.6;margin-bottom:14px}dialog p{font-size:12px;color:var(--muted);line-height:1.9;margin-bottom:22px}dialog .button,dialog .text-button{width:100%;margin-top:8px}.dialog-icon{display:grid;place-items:center;background:#e6eadf;border-radius:50%;width:52px;height:52px;color:var(--green);margin:0 auto 18px}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@keyframes wave{50%{height:23px}}@keyframes breathe{50%{box-shadow:0 0 0 18px #eee0da33}}@media(max-width:1040px){.desktop-note,.desktop-caption{display:none}}@media(max-width:600px){html,body{background:var(--paper)}body{display:block;padding:0}.phone{width:100%;max-width:none;min-height:100vh;min-height:100dvh;border:0;border-radius:0;box-shadow:none;overflow:clip}.app-header{padding-top:calc(20px + env(safe-area-inset-top));padding-left:24px;padding-right:24px}.screen{padding-left:24px;padding-right:24px}.home-indicator{margin-bottom:calc(10px + env(safe-area-inset-bottom))}.contact-screen{padding-top:24px}.messages-screen{height:calc(100dvh - 105px - env(safe-area-inset-top) - env(safe-area-inset-bottom));max-height:none;min-height:400px}.contact-actions{gap:12px}.person-main{padding-top:24px}.person-main .large{width:128px;height:128px}.quiet-note{padding-top:40px}.call-screen{min-height:calc(100dvh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.call-person{padding-top:20px}.call-avatar{width:152px;height:152px}.call-bottom{padding-bottom:8px}.back-button{margin-bottom:20px}.privacy-note{margin-top:32px}}@media(max-width:350px){.action-icon{width:56px;height:56px}.action-tile strong{font-size:11px}.local-badge{font-size:9px}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.retention-note{font-size:11px;line-height:1.7;color:#858b7b;margin:0 0 12px;text-align:center}.record-retention{font-size:10px;color:#8a907f;margin:6px 0 0;line-height:1.6}.keep-label{display:inline-flex;align-items:center;gap:5px;font-size:11px;color:#68775b;min-height:36px;cursor:pointer}.keep-label input{accent-color:var(--green);min-width:16px;min-height:16px;width:16px;height:16px;margin:0;padding:0}.message-row .record-tools{display:flex;gap:12px;align-items:center}.voice-history{margin-top:32px;border-top:1px solid var(--line);padding-top:24px}.voice-history h2{font-size:17px;text-align:center;margin-bottom:8px}.voice-record{border:1px solid var(--line);border-radius:16px;padding:16px;margin-top:12px;background:#fffdf8}.voice-record>time{font-size:11px;color:#818877}.voice-record audio{margin:12px 0 0;height:40px}.record-tools{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.voice-record a{font-size:11px;color:var(--green);padding:8px 0;min-height:36px}.storage-note{color:#8c9184;font-size:10px;line-height:1.8;margin:20px 0 0;text-align:center}.privacy-note strong{font-weight:500;color:#7a806f}.voice-screen .record-stage{padding-bottom:20px}.voice-screen .record-orb{width:92px;height:92px;margin-bottom:20px}.voice-screen .intro{margin-bottom:20px}
.contacts-list{display:flex;flex-direction:column;margin-top:24px;gap:0}.contact-list-item{display:flex;align-items:center;text-align:left;gap:14px;width:100%;padding:18px 0;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--ink)}.contact-list-item .avatar{width:56px;height:56px}.contact-list-info{flex:1;min-width:0}.contact-list-info strong{display:block;font-size:17px;font-weight:550;overflow-wrap:anywhere}.contact-list-info small{display:block;font-size:12px;color:var(--muted);margin-top:3px;overflow-wrap:anywhere}.contact-list-item>.icon{color:#9ca58f;width:18px}.add-contact{width:100%;min-height:48px}.contacts-empty{text-align:center;font-size:13px;color:var(--muted);padding:54px 0;line-height:2}.list-screen>.intro{margin-bottom:24px}.history-link{width:100%;display:flex;justify-content:space-between;align-items:center;min-height:48px;margin:32px 0 8px;padding:12px 0;background:none;border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--green);font-size:13px}.delete-contact{display:flex;margin:8px auto 0;color:#9f7467}.contact-screen>.back-button{margin-bottom:12px}.history-record{border:1px solid var(--line);border-radius:16px;background:#fffdf8;padding:16px;margin-top:12px}.history-record-header{display:flex;gap:8px;align-items:center;flex-wrap:wrap;font-size:11px;color:var(--muted);margin-bottom:10px}.record-type{font-size:10px;background:#e8ecdf;color:#637650;padding:2px 7px;border-radius:5px}.history-record .message-bubble{background:transparent;padding:0;border-radius:0;color:var(--ink);margin:10px 0}.history-record audio{height:42px;margin:4px 0 12px}.history-record .record-tools a{font-size:11px;color:var(--green);padding:8px 0}.history-screen h1{font-size:25px}.form-screen .intro{margin-bottom:24px}.migration-panel{margin-top:24px;padding:18px;border:1px solid #ddd5c2;border-radius:16px;background:#f3efe4}.migration-panel h2{font-size:17px}.migration-panel p,.migration-panel label{font-size:12px;line-height:1.8}.migration-panel select{width:100%;min-height:44px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff;margin:8px 0 12px;font:inherit;font-size:13px}.migration-panel .button{width:100%;font-size:12px;margin-top:8px}.form-screen .form-buttons .secondary{min-width:80px}
/* Approved review: preserve the existing palette and simplify the phone layout. */
:root{--muted:#5f6258;--red:#555c55}body{word-break:keep-all;overflow-wrap:break-word}button:focus:not(:focus-visible),h1:focus:not(:focus-visible){outline:none}.section-kicker{display:none}.desktop-caption{display:none}.wordmark{font-size:32px;letter-spacing:3px;font-weight:700}.wordmark>span{display:none}.avatar-initial{font-size:clamp(20px,5vw,44px);font-weight:500;color:#435641}.avatar.small .avatar-initial,.contact-list-item .avatar-initial{font-size:20px}.info-button{font-size:22px;min-width:44px;min-height:44px}.phone:not([data-screen="list"]) .brand{visibility:hidden}.phone:not([data-screen="list"]) .app-header{justify-content:flex-end;padding-top:8px;padding-bottom:0;min-height:44px}.phone:not([data-screen="list"]) .app-header .brand{display:none}.back-button,.text-button,.photo-button{min-height:44px}.message-meta,.record-retention,.storage-note,.privacy-note,.composer-note,.retention-note,.keep-label,.message-disclaimer,.field-note,.intro,.voice-record>time,.record-type{font-size:13px;color:#5f6258}input::placeholder,textarea::placeholder{color:#5f6258;opacity:1}.keep-label{min-height:44px}.delete-message,.voice-record a{min-width:44px;min-height:44px}.button.danger,.hangup,.button.stop{background:#555c55;color:#fff}.delete-contact,.delete-message{color:#434b43}.person-main{padding:0 0 12px}.person-main h2{margin:8px 0 0}.person-main .text-button{margin:0}.contact-screen{padding-top:0}.contact-screen .back-button{margin-bottom:4px}.contact-actions{gap:10px}.action-icon{width:72px;height:72px}.action-tile strong{font-size:15px}.history-link{min-height:48px}.record-stage{padding:0}.record-orb{background:transparent!important;box-shadow:none!important;width:64px!important;height:64px!important;margin:0 auto 4px!important}.record-actions{gap:8px}.record-actions .button{min-height:44px}.message-composer textarea{resize:none;min-height:44px;max-height:112px;line-height:1.5;overflow-y:auto}.message-composer{align-items:end}.privacy-note summary{cursor:pointer;min-height:44px}.phone[data-screen="messages"] .app-header{display:none}.messages-screen{min-height:0}.call-bottom{gap:24px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}.call-waves{display:none}.call-avatar{width:120px;height:120px}.call-person{padding-top:0}.home-indicator{display:none}@media(max-width:600px){body{overscroll-behavior:none}.phone{min-height:100vh;min-height:100dvh}.screen{padding-top:8px}.contact-screen .person-main .large{width:120px;height:120px}.contact-screen .privacy-note{margin-top:12px}.messages-screen{height:100vh;height:100dvh;padding-top:env(safe-area-inset-top);padding-bottom:env(safe-area-inset-bottom)}.call-screen{min-height:0}.call-person{padding-top:0}.call-avatar{width:120px;height:120px}.voice-screen .intro{margin-bottom:8px}.voice-screen .privacy-note{margin-top:10px}}@media(max-height:700px){.phone{min-height:100vh;min-height:100dvh}.person-main .large,.contact-screen .person-main .large,.call-avatar{width:105px;height:105px}.person-main h2{font-size:24px}.contact-screen .privacy-note{margin-top:4px}.call-person h1{margin:8px 0}.call-bottom{gap:12px}.voice-screen .record-stage{padding-bottom:0}.voice-screen .storage-note{margin-top:8px}}

/* Self-hosted fonts and flexible text for future localized interfaces. */
@font-face{font-family:WIRO-Roboto;src:url('../assets/fonts/Roboto.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
@font-face{font-family:WIRO-NotoKR;src:url('../assets/fonts/NotoSansKR.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
:root{--font:WIRO-Roboto,WIRO-NotoKR,system-ui,-apple-system,'Malgun Gothic',sans-serif}
button,a,label,p,h1,h2,h3,summary,small,.person-number,.message-bubble{overflow-wrap:anywhere}
.button,.text-button,.back-button,.action-tile strong,.record-tools,.form-buttons{white-space:normal;line-height:1.4}
.action-tile strong{max-width:100%;text-align:center;word-break:normal}
.contact-actions>*{min-width:0}
.contact-form>label,.form-buttons,.record-tools{flex-wrap:wrap}
.form-buttons>*{min-width:0}
dialog{max-width:min(92vw,480px);max-height:90vh;max-height:90dvh;overflow-y:auto}
dialog .button{max-width:100%;height:auto}
[dir="rtl"] .message-row{align-items:flex-start}

/* Screen headings receive programmatic focus for screen readers, without a visual box. */
h1[tabindex='-1']:focus{outline:none}

/* Follow-up: keep page fixed while allowing long content and keyboards to scroll inside. */
.empty-messages{color:#5f6258}.message-header #message-info{margin-inline-start:auto;flex:none}.message-menu{position:relative;align-self:flex-end}.message-menu summary{list-style:none;display:grid;place-items:center;min-width:44px;min-height:44px;cursor:pointer}.message-menu summary::-webkit-details-marker{display:none}.message-menu[open]{padding:6px 12px;border:1px solid var(--line);border-radius:12px;background:#fffefb}.message-menu .record-tools{gap:8px}.record-stage #record-status{margin-bottom:12px}.voice-screen[data-record-state="ready"] .record-orb{display:none!important}.voice-screen[data-record-state="ready"] .intro{display:none}.voice-screen[data-record-state="ready"] .record-stage{padding:0}.voice-screen[data-record-state="ready"] .privacy-note,.voice-screen[data-record-state="ready"] .storage-note{margin:4px 0}.record-orb.recording{color:#435641}.record-orb.recording::after{content:'';display:block;width:7px;height:7px;border-radius:50%;background:#435641;animation:record-pulse 1.8s ease-in-out infinite}@keyframes record-pulse{50%{opacity:.35}}@media(prefers-reduced-motion:reduce){.record-orb.recording::after{animation:none}}
@media(max-width:600px){html,body{height:100%;overflow:hidden}body{padding:0;overscroll-behavior:none}.phone{height:100vh;height:100dvh;min-height:0;max-height:100dvh;overflow:hidden;display:flex;flex-direction:column}.screen{min-height:0;overflow-y:auto;overscroll-behavior:contain}.messages-screen{height:auto;flex:1;overflow:hidden}.messages-screen .message-list{min-height:0;overflow-y:auto;overscroll-behavior:contain}.form-screen .photo-picker{margin-bottom:4px}.form-screen .photo-picker .large{width:80px;height:80px}.form-screen .intro{margin-bottom:4px}.form-screen .contact-form>input{margin-bottom:8px}.form-screen .field-note{margin-bottom:4px}.form-screen .form-buttons{margin-top:4px}.voice-screen .history-link{margin:6px 0}.voice-screen .record-stage{padding-bottom:4px}}

.voice-player{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%;margin:6px 0}.voice-player[hidden]{display:none!important}.voice-player button{min-width:60px;min-height:44px;border:1px solid var(--line);border-radius:10px;background:#fffefb;color:var(--ink)}.voice-player input[type=range]{flex:1;min-width:80px;accent-color:var(--green)}.voice-player-time{font-size:13px;white-space:nowrap}.voice-player-status{font-size:13px;width:100%}.voice-player-status:empty{display:none}
@media(max-width:600px) and (max-height:700px){
.phone:not([data-screen="list"]) .app-header{min-height:36px;padding-top:0}.screen{padding-bottom:8px}.contact-screen .privacy-note{margin:0;line-height:1.35}.contact-screen .history-link{margin:8px 0}.contact-screen .person-main .large{width:88px;height:88px}.contact-screen .person-main{padding:0}.contact-screen .delete-contact{margin:0 auto}.contact-screen .back-button{margin-bottom:0}
.call-screen .back-button{margin-bottom:0}.call-avatar{width:88px;height:88px;margin:4px auto}.call-status{margin:8px 0}.call-bottom{padding-top:4px;gap:4px}.call-voice{margin-bottom:4px}.end-label{margin:4px 0}.call-bottom .field-note{margin:4px 0}
.voice-screen>.back-button{margin-bottom:0}.voice-screen h1{margin-bottom:2px;font-size:24px}.voice-screen .intro{margin-bottom:0}.voice-screen .record-orb{width:48px!important;height:48px!important}.voice-screen #record-time{font-size:28px}.voice-screen #record-status{margin:0 0 12px}.voice-screen .record-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}.voice-screen .record-actions .button,.voice-screen .record-actions .text-button{padding:7px;min-height:44px}.voice-screen .privacy-note{margin:2px 0;line-height:1.4}.voice-screen .privacy-note summary{min-height:32px}.voice-screen .history-link{margin:0;min-height:44px;padding:4px 0}.voice-screen>.storage-note{display:none}
}

#install-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 24px 12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--paper);font-size:13px}#install-hint span{flex:1 1 100%;line-height:1.5}#install-hint button{min-height:44px;margin:0;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink);font-size:13px}#install-action{font-weight:700}

.call-avatar-wrap{position:relative;width:max-content;margin:auto}.call-avatar-wrap .call-avatar{position:relative}.call-ring{position:absolute;inset:0;border:2px solid #9ba894;border-radius:50%;animation:wiro-ring 2.6s ease-out infinite;pointer-events:none}.call-person:has(.call-waves.stopped) .call-ring{animation:none;opacity:0}@keyframes wiro-ring{from{transform:scale(1);opacity:.55}to{transform:scale(1.22);opacity:0}}@media(prefers-reduced-motion:reduce){.call-ring{display:none}}.kakao-hint{border:1px solid var(--line);border-radius:12px;padding:10px;margin:4px 0;font-size:13px}.kakao-hint p{margin:4px 0}.kakao-hint .button{min-height:44px}

/* Call hang-up only: familiar phone control. */
.hangup{background:#ae5c51;color:#fff}

/* User-selected light and dark appearance. */
.theme-options{display:flex;gap:12px;flex-wrap:wrap;text-align:left;border:1px solid var(--line);border-radius:14px;margin:0 0 18px;padding:8px 12px}.theme-options legend{font-weight:600;padding:0 5px}.theme-options label{display:flex;align-items:center;gap:7px;min-height:44px;flex:1;white-space:nowrap}.theme-options input{accent-color:#596c58;width:18px;height:18px;min-height:0;margin:0}.theme-options p:empty{display:none}.theme-options p{margin:0;font-size:13px}
:root[data-theme="dark"]{--paper:#1b211f;--ink:#f0f4ee;--muted:#c5d1c3;--line:#59665b;--green:#c1d6bc;--green-dark:#d2e3cd;--sand:#404a3d;color-scheme:dark}
:root[data-theme="dark"] body{background:#111614;color:var(--ink)}
:root[data-theme="dark"] .phone,:root[data-theme="dark"] dialog{background:var(--paper);color:var(--ink)}
:root[data-theme="dark"] .phone{border-color:#3d4941}
:root[data-theme="dark"] .primary,:root[data-theme="dark"] .green,:root[data-theme="dark"] .message-composer button{background:#4d684c;color:#fff}
:root[data-theme="dark"] .primary:hover{background:#617e5d}
:root[data-theme="dark"] .secondary{border-color:#829280;color:#e2eee0}
:root[data-theme="dark"] input:not([type=file]):not([type=radio]):not([type=checkbox]):not([type=range]),:root[data-theme="dark"] textarea,:root[data-theme="dark"] select{background:#29332e;border-color:#768579;color:#fff}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder{color:#c5d1c3;opacity:1}
:root[data-theme="dark"] .intro,:root[data-theme="dark"] .message-meta,:root[data-theme="dark"] .record-retention,:root[data-theme="dark"] .storage-note,:root[data-theme="dark"] .privacy-note,:root[data-theme="dark"] .composer-note,:root[data-theme="dark"] .retention-note,:root[data-theme="dark"] .keep-label,:root[data-theme="dark"] .message-disclaimer,:root[data-theme="dark"] .field-note,:root[data-theme="dark"] .empty-messages,:root[data-theme="dark"] .contacts-empty,:root[data-theme="dark"] .person-number,:root[data-theme="dark"] .text-button,:root[data-theme="dark"] .record-type,:root[data-theme="dark"] .history-record-header,:root[data-theme="dark"] .record-orb,:root[data-theme="dark"] #record-status{color:#c5d1c3}
:root[data-theme="dark"] .avatar{background:#435044}:root[data-theme="dark"] .avatar-initial,:root[data-theme="dark"] .avatar svg{color:#e4eee1;stroke:#e4eee1}
:root[data-theme="dark"] .sand,:root[data-theme="dark"] .stone{background:#414f42;color:#e6efe3}
:root[data-theme="dark"] .message-bubble{background:#445745;color:#fff}
:root[data-theme="dark"] .history-record,:root[data-theme="dark"] .migration-panel,:root[data-theme="dark"] .message-menu[open],:root[data-theme="dark"] .voice-player button{background:#29332e;color:#f0f4ee;border-color:#657469}
:root[data-theme="dark"] .history-record .message-bubble{background:transparent;color:#f0f4ee}
:root[data-theme="dark"] .record-type{background:#425144}:root[data-theme="dark"] .delete-contact,:root[data-theme="dark"] .delete-message{color:#e1e9df}
:root[data-theme="dark"] .notice{background:#493d30;color:#fff3dc}:root[data-theme="dark"] .notice.success{background:#354d39;color:#eff8ed}
:root[data-theme="dark"] .call-ring{border-color:#c1d6bc}:root[data-theme="dark"] .record-orb.recording{color:#dcebd9}:root[data-theme="dark"] .record-orb.recording::after{background:#dcebd9}
:root[data-theme="dark"] .theme-options input{accent-color:#abc9a9}
@media(max-width:600px){:root[data-theme="dark"],:root[data-theme="dark"] body{background:#1b211f}:root[data-theme="dark"] .phone{border:0}}

/* Primary voice action saves and returns; optional actions remain available. */
.record-more{width:100%;grid-column:1/-1}.record-more summary{cursor:pointer;text-align:center;color:var(--green);min-height:44px;padding:10px}.record-more .button,.record-more .text-button{display:flex;width:100%;margin:6px 0}.record-more [hidden]{display:none!important}.record-actions #record-save{width:100%;grid-column:1/-1}

/* Make message management and closing understandable and easy to tap. */
.message-menu{max-width:100%;min-width:112px}.message-menu summary{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;font-size:14px;font-weight:600;color:var(--green)}.message-menu summary::after{content:'▾';font-size:12px}.message-menu[open] summary::after{content:'▴'}.message-menu[open]{width:min(100%,320px);padding:12px}.message-menu .record-tools{display:flex;flex-direction:column;align-items:stretch;gap:4px}.message-menu .keep-label{min-height:44px}.message-menu .delete-message,.message-menu-close{width:100%;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font-size:14px}.message-menu-close{margin-top:8px;font-weight:600}.message-menu .delete-message{margin-top:4px}:root[data-theme="dark"] .message-menu summary{color:#e2eee0}:root[data-theme="dark"] .message-menu .delete-message,:root[data-theme="dark"] .message-menu-close{color:#f0f4ee;border-color:#829280}

/* Align the playable track with its real range and keep voice actions explicit. */
.voice-player input[type=range]{appearance:auto;-webkit-appearance:auto;padding:0;border:0;background:transparent;box-shadow:none;min-height:44px;height:44px;margin:0;cursor:pointer}.voice-screen .record-actions{display:flex;flex-direction:column;gap:6px}.voice-screen .record-actions .button,.voice-screen .record-actions .text-button{width:100%;min-height:44px}

/* A large familiar ellipsis opens message controls. */
.message-menu{min-width:0}.message-menu summary{display:flex;min-width:48px;width:48px;min-height:48px;padding:0;border:0;border-radius:10px;font-size:30px;line-height:1;font-weight:700}.message-menu summary::after,.message-menu[open] summary::after{content:none}.message-menu[open] summary{margin-left:auto}

/* Make the contact's past-story entry visibly actionable. */
#open-history{min-height:54px;padding:12px 16px;border:1px solid #b9c7b5;border-radius:14px;background:#e5ebdf;color:#304931;font-size:16px;font-weight:700;line-height:1.35}
#open-history span{font-size:22px;line-height:1}
#open-history:hover{background:#d9e4d5}
:root[data-theme="dark"] #open-history{background:#35493a;border-color:#8ba489;color:#f2f8ef}
:root[data-theme="dark"] #open-history:hover{background:#425a45}
/* Selected history style: a clearer row with breathing room. */
#open-history{min-height:70px;padding:18px 4px;border:0;border-top:1px solid #bac8b5;border-bottom:1px solid #bac8b5;border-radius:0;background:transparent;color:#304931;font-size:17px;font-weight:700;line-height:1.4}
#open-history span{font-size:26px;line-height:1;font-weight:700}
#open-history:hover{background:rgba(89,108,88,.06)}
:root[data-theme="dark"] #open-history{background:transparent;border-color:#829280;color:#f2f8ef}
:root[data-theme="dark"] #open-history:hover{background:rgba(193,214,188,.08)}

/* Voice and history navigation align with the information control. */
.phone[data-screen="voice"] .voice-screen>.back-button,.phone[data-screen="history"] .history-screen>.back-button{position:absolute;top:0;left:24px;min-height:44px;z-index:2;margin:0}
.voice-screen .record-stage{margin-top:18px}.voice-screen .record-actions+.privacy-note{margin-top:14px}.voice-screen .privacy-note+.history-link{margin-top:20px}
@media(max-width:600px){.phone[data-screen="messages"]{height:var(--message-viewport-height,100dvh);max-height:var(--message-viewport-height,100dvh)}.messages-screen .message-list{flex:1 1 0;min-height:0}.voice-screen .privacy-note+.history-link{margin-top:20px}}

/* Contact detail: align navigation and give primary actions room. */
.phone[data-screen="contact"] .contact-screen>.back-button{position:absolute;top:0;left:24px;min-height:44px;z-index:2;margin:0}
.contact-screen .history-link{margin:24px 0 6px;min-height:48px;padding:8px 0}

/* Match the list header height on contact, voice, and history screens. */
.phone[data-screen="contact"] .app-header,.phone[data-screen="voice"] .app-header,.phone[data-screen="history"] .app-header{padding:25px 24px 14px;min-height:0}
.phone[data-screen="contact"] .contact-screen>.back-button,.phone[data-screen="voice"] .voice-screen>.back-button,.phone[data-screen="history"] .history-screen>.back-button{top:25px}
.form-screen>.delete-contact{display:flex;margin:24px auto 8px}

@media(max-width:600px){.phone[data-screen="contact"] .app-header,.phone[data-screen="voice"] .app-header,.phone[data-screen="history"] .app-header{padding-top:20px}.phone[data-screen="contact"] .contact-screen>.back-button,.phone[data-screen="voice"] .voice-screen>.back-button,.phone[data-screen="history"] .history-screen>.back-button{top:23px}}

/* Move the recording area and following content down by 34px. */
.voice-screen .record-stage{margin-top:52px}

.contact-list-row{display:flex;align-items:center;gap:8px}.contact-list-row .contact-list-item{flex:1;min-width:0}.list-delete{flex:none;min-width:48px}.list-screen #manage-contacts{display:flex;margin:8px 0 0 auto}

.home-shortcut{position:absolute;right:76px;top:20px;z-index:3;min-width:52px;color:var(--ink)}.phone[data-screen="form"] .home-shortcut,.phone[data-screen="call"] .home-shortcut{top:0}.message-home{flex:none;min-width:50px;color:var(--ink)}.message-header #message-info{margin-inline-start:0}

/* Align message navigation with the main header and keep record controls compact. */
.messages-screen{padding-top:25px}
.message-header{gap:8px;padding-bottom:14px}
.message-header > div:not(.avatar){flex:1;min-width:0}
.message-header #message-info{margin-inline-start:auto}
.message-menu[open]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:min(100%,300px);padding:12px}
.message-menu[open] summary{display:none}
.message-menu .record-tools{display:contents}
.message-menu .record-retention,.message-menu .keep-label{grid-column:1 / -1;margin:0}
.message-menu .keep-label{min-height:36px}
.message-menu .delete-message,.message-menu-close{width:100%;margin:0;min-height:44px}
@media(max-width:600px){.messages-screen{padding-top:calc(20px + env(safe-area-inset-top))}}
.message-row:has(.message-menu[open]){width:min(100%,300px);max-width:100%}
.message-menu[open]{display:block;width:100%}
.message-menu .record-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.message-menu .record-retention{margin:0 0 8px}
/* Compact message controls while retaining comfortable touch targets. */
.message-row:has(.message-menu[open]){width:min(100%,260px)}
.message-menu[open]{padding:8px}
.message-menu .record-retention{margin:0 0 4px;font-size:12px;line-height:1.4}
.message-menu .record-tools{gap:4px 6px}
.message-menu .keep-label{min-height:32px;font-size:12px}
.message-menu .delete-message,.message-menu-close{padding:6px 8px}
.message-menu .delete-message,.message-menu-close{min-height:40px;padding:4px 8px;line-height:1.3}
.message-menu .keep-label{min-height:28px}
.message-menu .record-tools{row-gap:3px}

/* Offer updates on the home screen without interrupting recording or editing. */
#update-hint{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:0 24px 12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--paper);font-size:13px}#update-hint span{flex:1 1 100%}#update-hint button{min-height:44px;padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--ink)}#update-apply{font-weight:700}
