/* County Phone (phone.html): a web stand-in for the in-game phone. The device, lock and home screens are dark
   (it is an object in the world); the apps use the app.css county palette. Works down to 375 px wide. */

.wp-wrap { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); padding: 16px; max-width: 1100px; margin: 0 auto; min-width: 0; }
@media (min-width: 900px) { .wp-wrap { grid-template-columns: 360px minmax(0, 1fr); align-items: start; } }
.wp-page [hidden] { display: none !important; }

/* ---------- side panel ---------- */
.wp-side { display: grid; gap: 14px; min-width: 0; }
.wp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.wp-card h2 { margin: 0; font: 700 13px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.wp-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.wp-kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 13.5px; }
.wp-kv dt { color: var(--muted); font: 600 11px/1.9 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.wp-kv dd { margin: 0; overflow-wrap: anywhere; }
.wp-fict { font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--clay); }
.wp-mod { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wp-mod li { border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; display: grid; gap: 4px; font-size: 13px; background: var(--surface-2); }
.wp-mod-top { display: flex; justify-content: space-between; gap: 8px; font: 600 11px var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wp-mod-text { overflow-wrap: anywhere; }
.wp-mod-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- the device ---------- */
.wp-device {
  position: relative; justify-self: center; width: min(350px, 100%); height: 700px; max-height: calc(100vh - 40px); min-height: 560px;
  padding: 10px; border-radius: 44px; background: #0c100e;
  box-shadow: inset 0 0 0 1.5px #2a312d, inset 0 0 0 5px #0c100e, 0 30px 60px -30px rgba(12, 24, 16, .7), 0 10px 22px -12px rgba(12, 24, 16, .4);
}
.wp-side-btn { position: absolute; right: -3px; top: 150px; width: 3px; height: 70px; border: 0; padding: 0; border-radius: 0 2px 2px 0; background: #222a25; }
.wp-side-btn::before { content: ""; position: absolute; inset: -6px -3px -6px -8px; }
.wp-screen { position: relative; height: 100%; overflow: hidden; border-radius: 34px; isolation: isolate; color: #fff; font: 400 14px/1.4 var(--font-body);
  background:
    radial-gradient(90% 40% at 70% 82%, rgba(228, 128, 70, .55), transparent 70%),
    linear-gradient(180deg, #0f1622 0%, #1c2434 30%, #47303a 55%, #9b4a2a 72%, #d47a3f 80%, #2a1f1c 80.5%, #141a16 100%);
}
/* a row of pines along the horizon, drawn with gradients only */
.wp-screen::before { content: ""; position: absolute; inset: auto 0 0; height: 24%; z-index: 0; pointer-events: none;
  background:
    linear-gradient(135deg, transparent 50%, #0e1411 50%) 0 0 / 18px 22px repeat-x,
    linear-gradient(225deg, transparent 50%, #0e1411 50%) 9px 0 / 18px 22px repeat-x,
    linear-gradient(180deg, #0e1411, #0a0e0c);
  background-position: 0 0, 9px 0, 0 21px; background-size: 18px 22px, 18px 22px, 100% 100%; background-repeat: repeat-x, repeat-x, no-repeat; }
.wp-screen :focus-visible { outline: 2px solid #ffb38a; outline-offset: 2px; border-radius: 8px; }
.wp-screen.in-app :focus-visible { outline-color: var(--clay); }
.wp-screen button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }

.wp-ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* status bar */
.wp-sb { position: absolute; z-index: 30; inset: 0 0 auto; height: 34px; padding: 2px 22px 0 26px; display: flex; align-items: center; justify-content: space-between;
  font: 600 13px/1 var(--font-body); color: #fff; pointer-events: none; font-variant-numeric: tabular-nums; }
.in-app .wp-sb { color: var(--fg); }
.in-dark .wp-sb { color: #fff; }
.wp-notch { position: absolute; left: 50%; top: 10px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #050706; box-shadow: inset 0 0 0 3px #111916; }
.wp-sb-r { display: flex; gap: 6px; align-items: center; font-size: 11px; letter-spacing: .02em; }
.wp-sig { display: flex; align-items: flex-end; gap: 1.5px; height: 10px; }
.wp-sig i { width: 3px; background: currentColor; border-radius: 1px; }
.wp-sig i:nth-child(1) { height: 3px; } .wp-sig i:nth-child(2) { height: 5px; } .wp-sig i:nth-child(3) { height: 7.5px; } .wp-sig i:nth-child(4) { height: 10px; }

/* ---------- lock ---------- */
.wp-lock { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; padding: 54px 14px 18px; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
.wp-lock-top { display: grid; justify-items: center; text-align: center; gap: 2px; }
.wp-lock-time { font: 700 76px/.95 var(--font-display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.wp-lock-date { font-weight: 600; font-size: 15px; margin-top: 6px; }
.wp-lock-wx { font-size: 12.5px; opacity: .85; }
.wp-lock-notes { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 8px; align-content: start; overflow: auto; flex: 1; min-height: 0; scrollbar-width: none; }
.wp-note { width: 100%; display: grid; gap: 1px; text-align: left; color: #fff; padding: 10px 12px; background: rgba(22, 26, 30, .6); border: 1px solid rgba(255,255,255,.12); border-radius: 16px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 13px; }
.wp-note-k { font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.wp-note-t { font-weight: 650; font-size: 13.5px; }
.wp-unlock { margin-top: 10px; align-self: center; padding: 10px 22px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); color: #fff; border-radius: 99px; font-size: 13px; font-weight: 600; }
.wp-unlock:hover { background: rgba(255,255,255,.18); }

/* ---------- home ---------- */
.wp-home { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; padding: 46px 14px 28px; }
.wp-widget { display: grid; gap: 2px; padding: 13px 16px; border-radius: 20px; background: rgba(18, 22, 26, .5); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.wp-widget-k { font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.wp-widget-v { font: 700 24px/1.1 var(--font-display); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.wp-widget-s { font-size: 12.5px; opacity: .85; }
.wp-grid, .wp-dock { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wp-grid { margin-top: 20px; row-gap: 16px; }
.wp-dock { margin-top: auto; padding: 9px 6px; border-radius: 26px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.wp-app { width: 100%; display: grid; justify-items: center; gap: 5px; padding: 2px 0; background: none; border: 0; color: #fff; font-size: 11.5px; font-weight: 500; text-decoration: none; border-radius: 14px; }
.wp-app-ico { position: relative; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 14px -6px rgba(0,0,0,.55); transition: transform .12s ease; }
.wp-app:active .wp-app-ico { transform: scale(.93); }
.wp-app-ico .wp-ico { width: 27px; height: 27px; stroke-width: 1.8; }
.wp-app-l { text-shadow: 0 1px 4px rgba(0,0,0,.5); white-space: nowrap; }
.wp-dock .wp-app-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wp-badge { position: absolute; top: -5px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; background: #d8432f; color: #fff; font: 700 11px/1 var(--font-body); box-shadow: 0 0 0 2px rgba(0,0,0,.2); }
.ai-msg { background: linear-gradient(160deg, #3fa56b, #1b6b43); }
.ai-call { background: linear-gradient(160deg, #5cc48a, #1f7d49); }
.ai-contacts { background: linear-gradient(160deg, #7c8a82, #3a4640); }
.ai-swap { background: linear-gradient(160deg, #f0cf8e, #c3852a); color: #3a2608 !important; }
.ai-porch { background: linear-gradient(160deg, #e98a5c, #a8401c); }
.ai-radio { background: linear-gradient(160deg, #6fb3cf, #2b6782); }
.ai-bank { background: linear-gradient(160deg, #2e3c35, #111915); color: #e6c27c !important; }
.ai-sos { background: linear-gradient(160deg, #d9503c, #8f1f15); }
.wp-homebar { position: absolute; z-index: 45; bottom: 4px; left: 50%; width: 130px; height: 20px; margin-left: -65px; padding: 0; background: none; border: 0; display: grid; place-items: center; }
.wp-homebar span { display: block; width: 112px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.85); }
.in-app:not(.in-dark) .wp-homebar span { background: rgba(23, 35, 28, .7); }
.is-locked .wp-homebar { display: none; }

/* banner */
.wp-banner { position: absolute; z-index: 40; top: 38px; left: 8px; right: 8px; display: grid; gap: 1px; padding: 10px 12px; text-align: left; color: #fff; border-radius: 16px;
  background: rgba(24, 28, 32, .92); border: 1px solid rgba(255,255,255,.12); box-shadow: 0 14px 28px -12px rgba(0,0,0,.6); transform: translateY(-140%); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.wp-banner.in { transform: none; }

/* ---------- app views ---------- */
.wp-view { position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; padding-top: 34px; background: var(--bg); color: var(--fg); animation: wp-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes wp-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.wp-bar { display: grid; grid-template-columns: 78px minmax(0, 1fr) 78px; align-items: center; gap: 4px; min-height: 46px; padding: 2px 8px 4px; border-bottom: 1px solid var(--line); }
.wp-back { justify-self: start; display: inline-flex; align-items: center; min-height: 40px; padding: 6px 8px 6px 0; background: none; border: 0; color: var(--green); font-size: 14.5px; font-weight: 500; }
.wp-title { margin: 0; text-align: center; font: 700 15.5px/1.2 var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-bar-r { justify-self: end; display: flex; }
.wp-iconbtn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 0; background: none; color: var(--green); }
.wp-iconbtn:hover { background: var(--bg-2); }
.wp-body { flex: 1; min-height: 0; overflow: auto; padding: 12px 12px 30px; overscroll-behavior: contain; scrollbar-width: thin; }
.wp-body.flush { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.wp-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 26px 10px; }
.wp-k { font: 600 10.5px/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wp-mono { font-family: var(--font-mono); }
.wp-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; margin: 10px 12px 4px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--line); }
.wp-seg button { min-height: 34px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 600 13px var(--font-body); }
.wp-seg button[aria-selected="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.wp-btn { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 12px; border: 0; background: var(--clay); color: var(--clay-ink); font: 700 14.5px var(--font-body); }
.wp-btn.alt { background: transparent; color: var(--fg); border: 1px solid var(--line); }
.wp-btn.go { background: var(--green); color: #f4fbf6; }
.wp-btn:disabled { opacity: .6; cursor: progress; }
.wp-form { display: grid; gap: 10px; }
.wp-form label { display: grid; gap: 4px; }
.wp-form label > span { font: 600 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.wp-form input, .wp-form select, .wp-form textarea { width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-size: 14px; }
.wp-form textarea { min-height: 70px; resize: vertical; }
.wp-count { justify-self: end; font: 500 11px var(--font-mono); color: var(--muted); }
.wp-count.over { color: var(--bad); }
.wp-link { display: inline-flex; align-items: center; gap: 4px; padding: 4px 2px; background: none; border: 0; color: var(--clay); font: 600 12.5px var(--font-body); text-decoration: underline; text-underline-offset: 3px; }
.wp-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* lists */
.wp-list { list-style: none; margin: -4px 0 0; padding: 0; }
.wp-item { width: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 2px; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; text-align: left; }
.wp-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 14px var(--font-body); background: linear-gradient(160deg, #2e8a58, #155a37); }
.wp-av.clay { background: linear-gradient(160deg, #cf6a3e, #8e3416); }
.wp-av.ink { background: linear-gradient(160deg, #56625b, #26302a); }
.wp-item-main { display: grid; gap: 1px; min-width: 0; }
.wp-item-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.wp-item-name { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-item-time { font-size: 12px; color: var(--muted); flex: none; }
.wp-item-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-item.unread .wp-item-name { font-weight: 750; }
.wp-item.unread .wp-item-sub { color: var(--fg); }
.wp-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.wp-item.missed .wp-item-name { color: var(--bad); }

/* thread */
.wp-log { flex: 1; min-height: 0; overflow: auto; display: flex; flex-direction: column; gap: 5px; padding: 12px; scrollbar-width: none; }
.wp-msg { position: relative; max-width: 82%; padding: 8px 12px; border-radius: 18px; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; white-space: pre-wrap; }
.wp-msg.them { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.wp-msg.me { align-self: flex-end; background: var(--green); color: #f4fbf6; border-bottom-right-radius: 6px; }
.wp-msg-meta { display: flex; gap: 8px; align-items: center; font-size: 10.5px; opacity: .7; margin-top: 2px; }
.wp-msg-meta button { background: none; border: 0; padding: 0; color: inherit; font-size: 10.5px; text-decoration: underline; }
.wp-compose { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px; padding: 8px 10px 26px; border-top: 1px solid var(--line); background: var(--surface); }
.wp-compose textarea { min-height: 40px; max-height: 110px; padding: 9px 12px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); resize: none; font-size: 14px; }
.wp-send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; align-self: end; }
.wp-send:disabled { opacity: .5; }

/* dialer */
.wp-dial { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 18px; }
.wp-numrow { position: relative; display: flex; justify-content: center; align-items: center; min-height: 48px; padding: 0 44px; }
.wp-num { font: 500 28px/1.2 var(--font-body); letter-spacing: .06em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wp-del { position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); border-radius: 50%; }
.wp-hint { text-align: center; font-size: 12.5px; color: var(--muted); min-height: 2.4em; padding: 0 8px; }
.wp-pad { display: grid; grid-template-columns: repeat(3, 64px); justify-content: center; gap: 10px 18px; }
.wp-key { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; align-content: center; background: var(--bg-2); color: var(--fg); }
.wp-key:hover { background: #e2dfd5; }
.wp-key:active { background: #d7d4c9; }
.wp-key-n { font: 400 25px/1.05 var(--font-body); }
.wp-key-l { font: 700 8.5px/1.2 var(--font-body); letter-spacing: .16em; color: var(--muted); min-height: 10px; }
.wp-callrow { display: flex; justify-content: center; padding-top: 4px; }
.wp-callbtn { width: 64px; height: 64px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #23874f; color: #fff; box-shadow: 0 8px 18px -8px rgba(35,135,79,.8); }
.wp-callbtn.end { background: #c4382a; box-shadow: 0 8px 18px -8px rgba(196,56,42,.8); }
.wp-callbtn .wp-ico { width: 28px; height: 28px; }
.wp-sosbtn { align-self: center; padding: 7px 14px; border-radius: 99px; background: none; border: 1px dashed var(--line); color: var(--bad); font: 600 12.5px var(--font-body); }

/* in-call and incoming */
.wp-incall { position: absolute; inset: 0; z-index: 35; display: flex; flex-direction: column; align-items: center; padding: 70px 20px 40px; color: #f1f2ee; text-align: center;
  background: radial-gradient(120% 60% at 50% 0%, #22362b, transparent 70%), linear-gradient(180deg, #121a16, #080b09); }
.wp-incall-who { font: 700 30px/1.15 var(--font-display); letter-spacing: .03em; overflow-wrap: anywhere; }
.wp-incall-num { font: 500 14px var(--font-mono); opacity: .8; margin-top: 4px; }
.wp-incall-st { margin-top: 10px; font: 500 13px var(--font-mono); color: #8be0ad; font-variant-numeric: tabular-nums; }
.wp-incall-note { margin-top: 18px; max-width: 30ch; font-size: 12.5px; opacity: .7; }
.wp-incall-btns { margin-top: auto; display: flex; gap: 60px; justify-content: center; }
.wp-incall-btns figure { margin: 0; display: grid; gap: 6px; justify-items: center; font-size: 12px; }

/* 911 */
.wp-sos-head { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); border: 1px solid var(--bad); color: var(--p1); margin-bottom: 10px; }
.wp-sos-head strong { font: 700 15px var(--font-body); }
.wp-mapbox { position: relative; height: 230px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); }
.wp-mapbox .map { position: absolute; inset: 0; }
.wp-mapbox .map-btn { width: 30px; height: 30px; font-size: 15px; }
.pin.pick::before { width: 16px; height: 16px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 2px solid #fff; background: var(--bad); }

/* Swap Sheet */
.wp-chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.wp-chip { flex: none; min-height: 32px; padding: 4px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--fg-2); font: 600 12.5px var(--font-body); text-transform: capitalize; }
.wp-chip[aria-pressed="true"] { background: #f3e3c4; border-color: #c3852a; color: #4a3208; }
.wp-ad { display: grid; gap: 6px; padding: 12px; margin-bottom: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.wp-ad-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.wp-ad-title { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.wp-ad-price { font: 700 14px var(--font-mono); color: var(--clay); white-space: nowrap; }
.wp-ad-body { font-size: 13.5px; color: var(--fg-2); overflow-wrap: anywhere; white-space: pre-wrap; }
.wp-ad-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.wp-cat { font: 600 10px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; padding: 4px 6px; border-radius: 4px; background: var(--bg-2); color: var(--muted); }
.wp-search { width: 100%; min-height: 38px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); margin-bottom: 8px; }

/* Porchlight */
.wp-post { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 10px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.wp-post .wp-av { width: 38px; height: 38px; font-size: 13px; }
.wp-post-head { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; font-size: 13px; }
.wp-post-name { font-weight: 700; }
.wp-post-handle, .wp-post-time { color: var(--muted); }
.wp-post-body { font-size: 14px; overflow-wrap: anywhere; white-space: pre-wrap; margin: 2px 0 6px; }
.wp-post-actions { display: flex; gap: 16px; align-items: center; }
.wp-post-actions button { display: inline-flex; gap: 5px; align-items: center; background: none; border: 0; padding: 2px 0; color: var(--muted); font: 500 12.5px var(--font-body); }
.wp-post-actions button.liked { color: var(--clay); }
.wp-post-actions .wp-ico { width: 16px; height: 16px; }
.wp-porch-compose { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.wp-porch-compose textarea { min-height: 60px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); resize: vertical; }

/* radio */
.wp-ch { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.wp-ch-freq { font: 700 15px var(--font-mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.wp-ch-name { font-weight: 600; font-size: 14px; }
.wp-ch-sub { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.wp-lockchip { display: inline-flex; gap: 4px; align-items: center; font: 600 10px var(--font-mono); letter-spacing: .08em; padding: 4px 6px; border-radius: 4px; background: var(--bg-2); color: var(--muted); }
.wp-lockchip.enc { background: #e3efe8; color: var(--green); }

@media (max-width: 400px) {
  .wp-wrap { padding: 10px 6px; }
  .wp-device { height: 640px; padding: 8px; border-radius: 38px; }
  .wp-screen { border-radius: 30px; }
  .wp-lock-time { font-size: 64px; }
  .wp-pad { grid-template-columns: repeat(3, 58px); gap: 8px 16px; }
  .wp-key, .wp-callbtn { width: 58px; height: 58px; }
}
@media (prefers-reduced-motion: reduce) { .wp-view, .wp-banner { animation: none; transition: none; } }
