:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif; color: #222; background: #f8f8f6; }
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
.topbar { min-height: 60px; padding: 0 max(20px, calc((100vw - 720px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #ddd; background: #fff; }
.brand { text-decoration: none; font-weight: 750; white-space: nowrap; }
.brand span { margin-left: 6px; font-weight: 500; color: #555; }
.account-actions { display: flex; align-items: center; gap: 2px; }
.quiet-link { color: #555; padding: 10px; font-size: .9rem; text-decoration: none; }
.quiet-link:hover, .quiet-link:focus-visible { text-decoration: underline; }
main { max-width: 720px; margin: 0 auto; padding: 28px 20px 80px; }
h1 { font-size: 1.55rem; line-height: 1.3; margin: 0 0 12px; }
h2 { font-size: 1.05rem; margin: 32px 0 14px; }
p { line-height: 1.6; }
.intro, .hint, .footnote, .stamp { color: #666; font-size: .9rem; }
.footnote { margin-top: 28px; }
.call-list, .transcript { padding: 0; list-style: none; }
.call-list li { margin: 10px 0; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.call-list a { display: grid; gap: 6px; padding: 16px; text-decoration: none; }
.call-list a:hover, .call-list a:focus-visible { border-radius: 8px; outline: 2px solid #444; }
.call-list .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row small { flex: none; font-size: .78rem; color: #755b27; }
.empty, .notice { padding: 18px; background: #fff; border: 1px solid #ddd; border-radius: 8px; }
.notice { border-color: #cba957; background: #fff8e7; font-weight: 600; }
.back { display: inline-block; margin-bottom: 20px; color: #555; }
.summary, .transcript li { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 18px; }
dl { display: grid; grid-template-columns: 100px 1fr; gap: 10px 12px; margin: 0; }
dt { color: #666; }
dd { margin: 0; overflow-wrap: anywhere; }
.summary-text { margin: 20px 0 0; padding-top: 16px; border-top: 1px solid #e5e5e5; }
.transcript li { margin: 10px 0; }
.transcript p { margin: 8px 0 0; overflow-wrap: anywhere; }
audio { display: block; width: 100%; max-width: 520px; margin: 14px 0; }
.evaluation fieldset { border: 0; padding: 0; margin: 18px 0; min-width: 0; }
.evaluation legend { font-weight: 600; margin-bottom: 8px; }
.evaluation fieldset label { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.evaluation input { width: 20px; height: 20px; flex: none; }
.evaluation textarea { width: 100%; box-sizing: border-box; font: inherit; padding: 10px; resize: vertical; }
.evaluation .errorlist { color: #9e2f23; padding-left: 20px; }
.rating-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.evaluation .rating-choice { position: relative; cursor: pointer; }
.rating-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-choice > span { display: block; padding: 10px 12px; border: 1px solid #aaa; border-radius: 8px; background: #fff; }
.rating-choice:has(input:checked) > span { background: #303030; border-color: #303030; color: #fff; }
.rating-choice:has(input:focus-visible) > span { outline: 3px solid #87621f; outline-offset: 3px; }
button { font: inherit; cursor: pointer; }
button.primary { width: 100%; min-height: 48px; border: 0; border-radius: 7px; color: #fff; background: #303030; font-weight: 700; }
button.quiet { border: 0; background: transparent; color: #555; padding: 10px; }
.account-summary { margin-top: 24px; padding: 18px 0; border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }
.account-message { padding: 12px 14px; border: 1px solid #cba957; border-radius: 7px; background: #fff8e7; font-size: .9rem; }
.routing-setting { padding: 18px; border: 1px solid #ddd; border-radius: 8px; background: #fff; }
.demo-setting { margin-top: 20px; }
.routing-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.routing-heading strong, .routing-heading span { display: block; }
.routing-heading > div > span { margin-top: 5px; color: #666; font-size: .88rem; line-height: 1.45; }
.routing-status { flex: none; padding: 5px 8px; border-radius: 999px; background: #eee; color: #555; font-size: .76rem; font-weight: 700; }
.routing-status-active { background: #e6f2e8; color: #285d32; }
.routing-status-pending { background: #fff2d3; color: #755b27; }
.routing-form { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin-top: 18px; }
.routing-form label { grid-column: 1 / -1; font-size: .9rem; font-weight: 700; }
.routing-form input { min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid #aaa; border-radius: 6px; font: inherit; }
.demo-form input, .demo-form select { grid-column: 1 / -1; min-width: 0; min-height: 42px; padding: 9px 10px; border: 1px solid #aaa; border-radius: 6px; background: #fff; font: inherit; }
.demo-form .secondary { width: fit-content; }
.field-help, .field-error { grid-column: 1 / -1; margin: 0; font-size: .82rem; line-height: 1.5; }
.field-help { color: #666; }
.field-error { color: #9e2f23; }
.recording-setting { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 18px; padding-top: 18px; border-top: 1px solid #e5e5e5; }
.recording-setting > div { min-width: 0; }
.recording-setting strong, .recording-setting span { display: block; }
.recording-setting span { margin-top: 5px; color: #666; font-size: .82rem; line-height: 1.45; }
.recording-setting form { margin: 0; }
.secondary:disabled { opacity: .5; cursor: default; border-color: #bbb; color: #777; }
.settings-list { border-top: 1px solid #ddd; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid #ddd; }
.setting-row > div { min-width: 0; }
.setting-row strong, .setting-row span { display: block; }
.setting-row span { margin-top: 5px; color: #666; font-size: .88rem; line-height: 1.45; }
.setting-row form { margin: 0; }
.secondary { flex: none; display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 12px; border: 1px solid #999; border-radius: 6px; background: #fff; color: #222; font: inherit; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.secondary:hover, .secondary:focus-visible { border-color: #222; }
.narrow { max-width: 380px; margin: 48px auto; }
.login-form { display: grid; gap: 9px; margin-top: 24px; }
.login-form input { font: inherit; min-height: 44px; padding: 10px; border: 1px solid #aaa; border-radius: 6px; margin-bottom: 12px; }
.error { color: #9e2f23; }
.push-entry { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; margin-bottom: 16px; }
.push-panel { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; color: #222; border: 1px solid #ddd; border-radius: 12px; background: #fff; padding: 24px; margin: auto; }
.push-panel::backdrop { background: rgb(0 0 0 / 40%); }
.push-panel h2 { margin: 0 0 14px; line-height: 1.5; font-size: 1.2rem; }
.push-panel #push-enable:not(:disabled) { background: #303030; color: #fff; }
.push-panel #push-close { margin-top: 16px; width: 100%; }
.push-panel p { margin: 8px 0; font-size: .9rem; }
.push-panel form { display: flex; flex-wrap: wrap; gap: 8px; }
.push-panel button { min-height: 44px; border: 1px solid #aaa; background: #fff; border-radius: 6px; padding: 8px 12px; }
.push-panel button:disabled { opacity: .5; cursor: default; }
.install-steps { padding-left: 22px; font-size: .9rem; line-height: 1.6; }
.install-steps li { margin: 10px 0; }
.push-panel .install-close { margin-top: 16px; width: 100%; }
.push-panel button.primary { background: #303030; color: #fff; }
@media (max-width: 375px) { .topbar { padding: 0 14px; } main { padding: 22px 16px 60px; } dl { grid-template-columns: 86px 1fr; } .setting-row { align-items: flex-start; gap: 12px; } .routing-form { grid-template-columns: 1fr; } .routing-form label, .field-help, .field-error { grid-column: 1; } .routing-form .secondary, .demo-form .secondary { width: 100%; } .recording-setting { align-items: flex-start; flex-direction: column; gap: 12px; } .recording-setting form, .recording-setting .secondary { width: 100%; } }

/* Keep installation available without covering the last call or device safe area. */
.has-install-floating main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.install-floating { position: fixed; z-index: 10; bottom: calc(12px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 24px)); box-sizing: border-box; display: flex; align-items: center; gap: 16px; padding: 14px 16px; border: 1px solid #ddd; border-radius: 12px; background: #fff; box-shadow: 0 3px 16px rgb(0 0 0 / 10%); }
.install-floating[hidden] { display: none; }
.install-floating div { flex: 1; min-width: 0; }
.install-floating strong, .install-floating span { display: block; }
.install-floating strong { font-size: .9rem; }
.install-floating span { margin-top: 4px; font-size: .8rem; color: #555; }
.install-floating button { flex-shrink: 0; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 7px; background: #303030; color: #fff; font-weight: 700; }
@media (max-width: 480px) {
  .install-floating { gap: 10px; padding: 12px; }
  .install-floating button { white-space: nowrap; }
}

.detail-fold { margin: 20px 0; border-top: 1px solid #ddd; padding-top: 8px; }
.detail-fold > summary { min-height: 44px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.detail-fold > summary::before { content: '+'; font-weight: 400; }
.detail-fold[open] > summary::before { content: '−'; }

/* Phone inbox: the question comes first; delivery and connection details fold away. */
:root { color: #172239; background: #faf8f2; }
.topbar { border-color: #e9e5da; background: #faf8f2; }
.brand { color: #172239; }
.inbox-page main, .call-detail-page main { max-width: 640px; padding-top: 24px; }
.inbox-heading { margin-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: #766e60; font-size: .82rem; font-weight: 600; }
.inbox-heading h1 { font-size: 1.8rem; letter-spacing: -.04em; margin-bottom: 8px; }
.inbox-heading .intro, .inbox-heading .stamp { margin: 0; }
.inbox-page .push-entry { margin-bottom: 12px; }
.inbox-page #push-open { border: 1px solid #e1ddd3; border-radius: 999px; background: #fff; font-size: .85rem; }
.inbox-count { display: flex; align-items: center; gap: 6px; margin: 0 2px 16px; font-size: .9rem; }
.count-dot { width: 7px; height: 7px; border-radius: 50%; background: #a56412; margin-right: 3px; }
.refresh-note { margin-left: auto; color: #7e786d; font-size: .75rem; }
.call-list { margin: 0; display: grid; gap: 14px; }
.call-list .call-card { margin: 0; border: 1px solid #e7e2d8; border-radius: 22px; background: #fff; overflow: hidden; }
.call-list .call-card-new { background: #fff0bc; border-color: #efdea0; }
.call-list .call-card > a { display: block; padding: 20px; }
.call-list .call-card > a:hover, .call-list .call-card > a:focus-visible { outline: 2px solid #8a681e; outline-offset: -3px; border-radius: 22px; }
.card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.call-status { display: inline-flex; align-items: center; gap: 5px; color: #624b1a; font-size: .78rem; font-weight: 700; }
.call-card:not(.call-card-new) .call-status { color: #556854; }
.card-top time { color: #756e60; font-size: .78rem; }
.call-list h2 { margin: 14px 0 8px; font-size: 1.18rem; line-height: 1.45; letter-spacing: -.035em; overflow-wrap: anywhere; }
.card-description { margin: 0 0 14px; font-size: .93rem; color: #494942; line-height: 1.65; overflow-wrap: anywhere; white-space: pre-line; }
.card-facts { grid-template-columns: max-content minmax(0, 1fr); gap: 8px 12px; font-size: .9rem; line-height: 1.55; }
.card-facts dt { color: #766e5a; font-size: .82rem; }
.card-facts dd { color: #293043; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 18px; padding-top: 12px; border-top: 1px solid rgb(87 73 35 / 12%); }
.call-list .card-bottom > span { color: #766e60; font-size: .76rem; }
.call-list .card-bottom .card-more { color: #172239; font-size: .83rem; font-weight: 700; }
.card-more > span { margin-left: 4px; font-size: 1.05rem; }
.card-update { font-size: .82rem; color: #70521a; margin: 12px 0 0; }
.memo-summary { background: #fff0bc; border-color: #efdea0; border-radius: 22px; padding: 22px; }
.memo-summary h2 { margin: 0; font-size: .85rem; color: #756043; }
.memo-title { font-size: 1.35rem; line-height: 1.45; letter-spacing: -.035em; margin: 18px 0 10px; overflow-wrap: anywhere; }
.memo-summary .summary-text { margin: 0 0 20px; padding: 0; border: 0; color: #393e46; overflow-wrap: anywhere; }
.confirmation-note { display: inline-block; margin: 20px 0 0; padding: 7px 10px; border-radius: 8px; background: #172239; color: #fff; font-size: .76rem; line-height: 1.5; }
.call-actions { display: flex; gap: 10px; margin: 16px 0 24px; }
.call-actions form { flex: 1; margin: 0; }
.call-actions .secondary { width: 100%; min-height: 48px; border-radius: 12px; border-color: #d6d1c5; }
.call-actions .primary { border-radius: 12px; background: #172239; }
a.call-back { flex: 1; display: flex; justify-content: center; align-items: center; min-height: 48px; color: #fff; font-weight: 700; text-decoration: none; }
.review-complete { margin: 0; font-size: .85rem; color: #556854; }
.recording-card { border: 1px solid #e7e2d8; border-radius: 18px; background: #fff; padding: 18px; }
.recording-card h2 { margin: 0 0 8px; }
.recording-card h2 > span { margin-right: 6px; font-size: .8rem; }
.recording-card p { margin: 8px 0 0; font-size: .88rem; }
.recording-download a { color: #68675f; font-size: .8rem; }
.call-detail-page .detail-fold { border-color: #e4dfd4; margin: 14px 0; padding-top: 4px; }
.call-detail-page .detail-fold > summary { min-height: 48px; font-size: .92rem; }
.call-detail-page .transcript li { border-radius: 16px; border-color: #e7e2d8; }
.call-detail-page .notice { border-radius: 14px; font-size: .88rem; line-height: 1.55; margin-bottom: 16px; }
.inbox-page .footnote, .call-detail-page .footnote { font-size: .78rem; line-height: 1.65; }
@media (max-width: 480px) {
  .inbox-page main, .call-detail-page main { padding: 20px 16px 80px; }
  .has-install-floating.inbox-page main { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
  .call-list .call-card > a { padding: 18px; }
  .memo-summary { padding: 20px; }
  .card-facts { grid-template-columns: minmax(0, 90px) minmax(0, 1fr); gap: 7px 10px; }
  .inbox-heading h1 { font-size: 1.7rem; }
}

.download-entry { margin: 14px 2px 0; font-size: .85rem; text-align: right; }
.download-entry a { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; color: #666457; }
.recording-download .secondary { font-size: .85rem; min-height: 44px; border-radius: 10px; }
