* { box-sizing: border-box; }
:root { color-scheme: light; --accent: #FF8A3D; --ink: #493323; --muted: #947b69; }
html, body { margin: 0; min-height: 100%; background: #fff5e9; color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif; }
button { font: inherit; color: inherit; border: 0; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible { outline: 3px solid #b65316; outline-offset: 4px; }
button:active:not(:disabled) { filter: brightness(.94); }
button:disabled { opacity: .4; cursor: default; }
[hidden] { display: none !important; }
.phone { width: 100%; max-width: 480px; margin: 0 auto; }
.screen { min-height: 100vh; min-height: 100svh; padding: max(20px, env(safe-area-inset-top)) 26px max(22px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; }
.dial-top, .history-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.eyebrow { font-size: 14px; font-weight: 600; color: #a75b2a; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; background: #ffe5cd; border-radius: 16px; padding: 0 13px; font-size: 13px; }
.mp-icon { font-size: 22px; }
.number-area { display: flex; flex-direction: column; justify-content: center; text-align: center; flex: 1; min-height: 160px; padding: 22px 0; }
.hint { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 8px 0; }
.dial-number { font-size: clamp(25px, 7.8vw, 38px); font-weight: 600; line-height: 1.35; min-height: 52px; overflow-wrap: anywhere; letter-spacing: 1px; }
.keypad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; padding: 0 10px; }
.keypad button { min-height: 70px; border-radius: 24px; background: #fffdf8; border: 1px solid #f2decb; box-shadow: 0 3px 0 #eed8c1; font-size: 29px; font-weight: 500; }
.keypad span { display: block; font-size: 9px; letter-spacing: 2px; color: var(--muted); line-height: 15px; }
.dial-actions { display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; justify-items: center; gap: 22px; padding: 22px 10px 0; }
.round-button { width: 76px; height: 76px; border-radius: 28px; display: flex; justify-content: center; align-items: center; }
.round-button .mp-icon { font-size: 34px; }
.call-button { background: var(--accent); color: #fff; box-shadow: 0 5px 0 #db6d26; }
.delete-button { width: 60px; height: 60px; background: transparent; color: #9b7358; }
.bottom-note { color: var(--muted); font-size: 11px; text-align: center; margin: 22px 0 0; }
.call-screen { text-align: center; align-items: center; padding-top: max(44px, env(safe-area-inset-top)); }
.avatar { width: 112px; height: 112px; border-radius: 40px; background: #ffe0bc; color: #c07842; display: grid; place-items: center; margin: 54px 0 28px; }
.avatar .mp-icon { font-size: 65px; }
.call-number { font-size: 32px; font-weight: 600; overflow-wrap: anywhere; max-width: 100%; }
.call-timer { font-size: 23px; font-variant-numeric: tabular-nums; margin: 18px 0 6px; color: #b66329; }
.hangup-area { margin-top: auto; padding-top: 70px; }
.hangup-button { background: #e96658; color: white; box-shadow: 0 5px 0 #c84c40; }
.hangup-area p { font-size: 13px; color: var(--muted); margin: 16px 0; }
h1 { font-size: 28px; margin: 34px 0 0; }
.history-list { margin-top: 22px; display: grid; gap: 12px; }
.history-row { display: flex; align-items: center; gap: 12px; padding: 18px 15px; border-radius: 20px; background: #fffdf8; border: 1px solid #f2decb; }
.history-row > .mp-icon { color: #d58249; }
.record-main { flex: 1; min-width: 0; }
.record-number { font-size: 19px; font-weight: 600; overflow-wrap: anywhere; }
.record-date { font-size: 11px; color: var(--muted); margin-top: 6px; }
.record-duration { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty-state { margin: auto 0; padding: 65px 0; text-align: center; color: var(--muted); }
.empty-state > .mp-icon { font-size: 48px; color: #d7b293; }
.empty-state span { font-size: 12px; }
@media (max-height: 700px) { .keypad button { min-height: 57px; border-radius: 20px; } .keypad { gap: 10px 20px; } .number-area { min-height: 125px; padding: 10px 0; } .avatar { margin-top: 28px; } }
