
:root{
  --bg:#f1f2f3;
  --key-size:82px;
  --key-gap-x:18px;
  --key-gap-y:14px;
  --panel:#ffffff;
  --text:#111;
  --muted:#777;
  --line:#d9d9d9;
  --shadow:0 18px 50px rgba(0,0,0,.09);
  --danger:#b60018;
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html,body{margin:0;min-height:100%;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}
button,input{font:inherit}
a{color:inherit;text-decoration:none}
.topbar{
  position:sticky;top:0;z-index:30;display:flex;align-items:center;justify-content:space-between;
  padding:14px 18px;background:rgba(245,245,245,.88);backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(0,0,0,.08)
}
.brand{font-weight:800;font-size:20px;letter-spacing:-.02em}
.top-actions{display:flex;gap:8px;align-items:center}
.soft-btn,.primary-btn,.danger-btn{
  border:0;border-radius:14px;padding:10px 14px;cursor:pointer;box-shadow:0 3px 10px rgba(0,0,0,.08)
}
.soft-btn{background:#fff}
.primary-btn{background:#111;color:#fff}
.danger-btn{background:#b60018;color:#fff}
.page{max-width:720px;margin:0 auto;padding:clamp(12px,3vh,28px) 18px 60px}
.phone-shell{
  max-width:390px;margin:0 auto;background:linear-gradient(145deg,#fdfdfd,#e8e8e8);
  border:1px solid #d0d0d0;border-radius:32px;padding:24px;box-shadow:var(--shadow)
}
.status-line{text-align:center;color:var(--muted);font-size:13px;min-height:20px}
.number-display{
  min-height:68px;display:flex;align-items:center;justify-content:center;
  font-size:30px;font-weight:750;letter-spacing:.04em;margin:8px 0 18px;
  border-radius:18px;background:#fafafa;border:1px solid #ddd;
  box-shadow:inset 0 2px 7px rgba(0,0,0,.06)
}
.keypad{display:grid;grid-template-columns:repeat(3,var(--key-size));justify-content:center;gap:var(--key-gap-y) var(--key-gap-x)}
.metal-key{
  position:relative;border:1px solid #a9aaac;border-radius:50%;
  width:var(--key-size);height:var(--key-size);cursor:pointer;font-size:clamp(20px,calc(var(--key-size) * .29),24px);font-weight:700;color:#111;
  background:
    radial-gradient(circle at 38% 30%,rgba(255,255,255,.95),rgba(255,255,255,.15) 28%,transparent 29%),
    linear-gradient(145deg,#eeeeef,#b6b8ba 48%,#f7f7f7);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,.9),
    inset 0 -4px 7px rgba(0,0,0,.15),
    0 7px 12px rgba(0,0,0,.15);
  transition:transform .06s ease,box-shadow .06s ease
}
.metal-key:active{transform:translateY(3px);box-shadow:inset 0 3px 7px rgba(0,0,0,.18),0 2px 4px rgba(0,0,0,.12)}
.key-sub{display:block;font-size:9px;letter-spacing:.14em;color:#555;margin-top:2px}
.call-row{display:grid;grid-template-columns:1fr 72px 1fr;align-items:center;margin-top:20px}
.clear-btn{justify-self:start;border:0;background:transparent;color:#666;padding:10px;cursor:pointer}
.call-btn{
  width:64px;height:64px;border-radius:50%;border:1px solid #7a7c7e;cursor:pointer;
  background:linear-gradient(145deg,#f6f6f6,#aeb0b2 48%,#fff);
  box-shadow:inset 0 1px 2px #fff,inset 0 -5px 9px rgba(0,0,0,.16),0 8px 18px rgba(0,0,0,.2)
}
.call-btn svg{width:31px;height:31px}
.notify-btn{justify-self:end;border:0;background:transparent;padding:10px;cursor:pointer;color:#666}
.card{background:#fff;border-radius:22px;padding:22px;box-shadow:var(--shadow);margin:16px auto;max-width:560px}
.form-row{display:flex;flex-direction:column;gap:7px;margin:14px 0}
.form-row input{padding:14px 15px;border:1px solid #ccc;border-radius:14px;background:#fff}
.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}
.helper{font-size:13px;color:#777;line-height:1.6}
.error{color:#a40016;font-size:14px}
.success{color:#146c2e;font-size:14px}
.modal-backdrop{
  position:fixed;inset:0;background:rgba(0,0,0,.38);display:none;align-items:center;justify-content:center;
  z-index:100;padding:20px
}
.modal-backdrop.show{display:flex}
.modal{
  width:min(440px,100%);background:#fff;border-radius:24px;padding:24px;box-shadow:0 30px 80px rgba(0,0,0,.25)
}
.call-screen{
  position:fixed;inset:0;z-index:120;background:#0f1011;color:#fff;display:none;
  align-items:center;justify-content:center;padding:24px
}
.call-screen.show{display:flex}
.call-inner{text-align:center;width:min(460px,100%)}
.call-number{font-size:34px;font-weight:800;letter-spacing:.04em;margin:16px 0}
.call-state{color:#c7c7c7;margin-bottom:32px}
.call-actions{display:flex;justify-content:center;gap:28px}
.circle-action{
  width:78px;height:78px;border:0;border-radius:50%;cursor:pointer;font-weight:700;
  box-shadow:0 10px 30px rgba(0,0,0,.35)
}
.answer{background:#f5f5f5;color:#111}
.hangup{background:#c2142a;color:#fff}
.toast{
  position:fixed;left:50%;bottom:26px;transform:translateX(-50%) translateY(20px);
  opacity:0;pointer-events:none;background:#111;color:#fff;padding:11px 16px;border-radius:999px;
  transition:.2s;z-index:200;max-width:min(90vw,560px);text-align:center
}
.toast.show{opacity:1;transform:translateX(-50%) translateY(0)}
.account-number{font-size:32px;font-weight:800;letter-spacing:.05em}
@media(max-width:520px){
  .topbar{padding:11px 12px}
  .brand{font-size:18px}
  .soft-btn,.primary-btn{padding:9px 11px;font-size:13px}
  .page{padding:18px 12px 70px}
  .phone-shell{max-width:330px;padding:16px;border-radius:26px}
  .number-display{min-height:62px;font-size:26px}
  :root{--key-size:70px;--key-gap-x:15px;--key-gap-y:12px}
  .keypad{grid-template-columns:repeat(3,var(--key-size));gap:var(--key-gap-y) var(--key-gap-x)}
  .metal-key{width:var(--key-size);height:var(--key-size);font-size:clamp(19px,calc(var(--key-size) * .29),22px)}
  .call-btn{width:58px;height:58px}
  .call-btn svg{width:28px;height:28px}
}


/* v0.5.3: JavaScriptで実際の表示領域を測り、キーパッドサイズを調整 */
html.viewport-compact .page{padding-top:14px;padding-bottom:28px}
html.viewport-compact .phone-shell{padding:18px 20px;border-radius:28px}
html.viewport-compact .status-line{min-height:18px;font-size:12px}
html.viewport-compact .number-display{
  min-height:58px;
  margin:6px 0 12px;
  font-size:clamp(22px,4vw,28px);
}
html.viewport-compact .call-row{margin-top:12px}
html.viewport-compact .call-btn{width:56px;height:56px}
html.viewport-compact .call-btn svg{width:27px;height:27px}

html.viewport-tight .page{padding-top:8px;padding-bottom:12px}
html.viewport-tight .phone-shell{padding:12px 16px;border-radius:24px}
html.viewport-tight .status-line{min-height:16px;font-size:11px}
html.viewport-tight .number-display{
  min-height:48px;
  margin:4px 0 8px;
  font-size:clamp(19px,3.6vw,24px);
  border-radius:14px;
}
html.viewport-tight .key-sub{font-size:7px;margin-top:0}
html.viewport-tight .call-row{margin-top:8px}
html.viewport-tight .call-btn{width:50px;height:50px}
html.viewport-tight .call-btn svg{width:24px;height:24px}
html.viewport-tight .clear-btn,
html.viewport-tight .notify-btn{padding:6px;font-size:12px}

/* 高さが極端に小さい端末は無理に縮めすぎず、通常スクロールを許可する */
@media (max-height:560px){
  html,body{overflow-y:auto}
}


/* =========================================================
   Rincall v0.6.0 UI overrides
   ========================================================= */
:root{
  --key-size:88px;
  --key-gap-x:18px;
  --key-gap-y:14px;
}

/* hidden属性をCSSより必ず優先 */
[hidden]{display:none !important}

/* 連打時のダブルタップ拡大を防止。ピンチズームはページ全体では残す */
.keypad,
.metal-key,
.call-btn,
.dial-delete-btn,
.circle-action,
.soft-btn,
.primary-btn,
.danger-btn,
.tab-btn{
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
  -webkit-user-select:none;
  user-select:none;
}

.phone-shell{max-width:430px}
.keypad{
  grid-template-columns:repeat(3,var(--key-size)) !important;
  gap:var(--key-gap-y) var(--key-gap-x) !important;
  justify-content:center;
  align-items:center;
}
.metal-key{
  width:var(--key-size) !important;
  height:var(--key-size) !important;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:0;
  line-height:1;
  position:relative;
}
.key-main{
  display:block;
  font-size:clamp(22px,calc(var(--key-size) * .31),28px);
  line-height:1;
  transform:translateY(-2px);
}
.key-sub{
  position:absolute;
  left:0;right:0;
  bottom:15%;
  display:block;
  min-height:9px;
  margin:0;
  font-size:8px;
  line-height:1;
  text-align:center;
  letter-spacing:.12em;
  color:#555;
}
.dial-footer{
  display:grid;
  grid-template-columns:var(--key-size) var(--key-size) var(--key-size);
  gap:var(--key-gap-y) var(--key-gap-x);
  justify-content:center;
  align-items:center;
  margin-top:12px;
}
.dial-footer-spacer{width:var(--key-size);height:1px}
.call-btn{
  width:64px !important;
  height:64px !important;
  justify-self:center;
  display:grid;
  place-items:center;
}
.dial-delete-btn{
  justify-self:center;
  width:48px;
  height:48px;
  border:0;
  border-radius:50%;
  cursor:pointer;
  background:#f1f1f1;
  color:#333;
  box-shadow:0 4px 12px rgba(0,0,0,.10),inset 0 1px 0 rgba(255,255,255,.9);
  font-size:23px;
}
.dial-delete-btn:active{transform:translateY(2px)}

/* 通話画面 */
.call-peer-name{font-size:20px;font-weight:750;margin-top:20px;min-height:25px}
.call-number{margin-top:7px !important}
.call-timer{font-variant-numeric:tabular-nums;color:#ddd;font-size:18px;margin:-18px 0 26px}
.mute{background:#f5f5f5;color:#111}
.circle-action[aria-pressed="true"]{background:#d9d9d9}

/* アカウント・一覧ページ */
.account-menu{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:20px}
.menu-card{display:flex;align-items:center;justify-content:center;min-height:76px;padding:14px;border-radius:18px;background:#f5f5f5;box-shadow:inset 0 1px 0 #fff,0 4px 14px rgba(0,0,0,.06);font-weight:700;text-align:center}
.tabs{display:flex;gap:8px;margin:10px 0 18px}
.tab-btn{flex:1;border:0;border-radius:14px;padding:12px;background:#eee;cursor:pointer}
.tab-btn.active{background:#111;color:#fff}
.list{display:flex;flex-direction:column;gap:10px}
.list-item{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border-radius:16px;background:#f7f7f7}
.list-main{min-width:0}
.list-title{font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.list-sub{font-size:13px;color:#777;margin-top:3px}
.list-actions{display:flex;gap:7px;flex-shrink:0}
.mini-btn{border:0;border-radius:11px;padding:8px 10px;background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.08);cursor:pointer}
.empty-state{text-align:center;color:#777;padding:34px 10px}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}

@media(max-width:520px){
  :root{--key-size:82px;--key-gap-x:14px;--key-gap-y:11px}
  .phone-shell{max-width:390px}
  .account-menu{grid-template-columns:1fr}
  .list-item{align-items:flex-start}
  .list-actions{flex-direction:column}
}

/* 高さが短い画面ではJSが --key-size を縮める。
   下限まで縮めても入らない場合は普通にスクロールさせる。 */
html.viewport-compact .page{padding-top:10px;padding-bottom:24px}
html.viewport-compact .phone-shell{padding-top:15px;padding-bottom:15px}
html.viewport-compact .number-display{min-height:52px;margin-top:4px;margin-bottom:9px}
html.viewport-compact .dial-footer{margin-top:8px}
html.viewport-tight .status-line{font-size:11px;min-height:15px}
html.viewport-tight .number-display{min-height:46px;font-size:22px}
html.viewport-tight .phone-shell{padding-top:10px;padding-bottom:10px}


/* =========================================================
   Rincall v0.6.1 - Account / Service / Settings
   ========================================================= */

.header-icon-btn{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:16px;
  background:#fff;
  color:#111;
  cursor:pointer;
  box-shadow:0 5px 18px rgba(0,0,0,.09);
}
.header-icon-btn svg{width:24px;height:24px;display:block}
.header-icon-btn:active{transform:translateY(1px)}

.section-title{
  margin:0 0 14px;
  font-size:21px;
  font-weight:800;
  letter-spacing:-.02em;
}

.service-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.service-row,
.settings-row{
  width:100%;
  border:0;
  display:grid;
  grid-template-columns:46px minmax(0,1fr) 24px;
  align-items:center;
  gap:13px;
  padding:15px 16px;
  border-radius:18px;
  background:#f6f6f6;
  color:#111;
  text-align:left;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 4px 14px rgba(0,0,0,.045);
}
.service-row:hover,
.settings-row:hover{background:#f1f1f1}
.service-icon{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:#fff;
  box-shadow:0 3px 10px rgba(0,0,0,.07);
}
.service-icon svg{width:23px;height:23px}
.service-copy{min-width:0}
.service-name{font-weight:780;font-size:16px}
.service-sub{
  margin-top:3px;
  color:#777;
  font-size:12.5px;
  line-height:1.45;
  white-space:normal;
}
.service-chevron{
  color:#999;
  font-size:25px;
  line-height:1;
  justify-self:end;
}
.service-separator{
  height:18px;
}

.settings-row{
  grid-template-columns:1fr 24px;
}
.settings-row-main{min-width:0}
.settings-row-label{font-weight:760}
.settings-row-value{
  margin-top:4px;
  color:#777;
  font-size:13px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.settings-panel{
  display:none;
  margin:9px 0 14px;
  padding:17px;
  border-radius:18px;
  background:#fafafa;
  border:1px solid #ececec;
}
.settings-panel.open{display:block}

.settings-group{
  margin-top:18px;
}
.settings-group:first-child{margin-top:0}
.settings-group-title{
  margin:0 0 8px 4px;
  color:#777;
  font-size:12px;
  font-weight:750;
  letter-spacing:.06em;
}

.notification-state{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:7px 10px;
  border-radius:999px;
  background:#eee;
  color:#555;
  font-size:12px;
  font-weight:700;
}
.notification-state.on{
  background:#e8f5eb;
  color:#17682c;
}
.notification-state.blocked{
  background:#f6e9eb;
  color:#9b1426;
}

.settings-danger-zone{
  margin-top:46px;
  padding-top:22px;
  border-top:1px solid #ececec;
}
.settings-danger-zone .danger-btn{
  width:100%;
  min-height:50px;
  font-weight:800;
  font-size:16px;
}

.number-hero{
  padding:24px;
  border-radius:22px;
  background:linear-gradient(145deg,#fff,#f4f4f4);
  box-shadow:inset 0 1px 0 #fff,0 7px 24px rgba(0,0,0,.06);
}
.number-hero-label{
  color:#777;
  font-size:12px;
  font-weight:700;
}
.number-hero-value{
  margin-top:8px;
  font-size:clamp(30px,5vw,42px);
  font-weight:850;
  letter-spacing:.045em;
}
.number-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-top:18px;
}
.number-meta-item{
  padding:14px;
  border-radius:16px;
  background:#f7f7f7;
}
.number-meta-label{
  color:#888;
  font-size:12px;
}
.number-meta-value{
  margin-top:5px;
  font-weight:760;
  overflow-wrap:anywhere;
}
.future-box{
  margin-top:18px;
  padding:16px;
  border:1px dashed #cfcfcf;
  border-radius:18px;
  color:#666;
  font-size:13px;
  line-height:1.7;
  background:#fbfbfb;
}

.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:#555;
  font-size:14px;
  margin-bottom:12px;
}
.back-link svg{width:18px;height:18px}

@media(max-width:520px){
  .service-row{grid-template-columns:42px minmax(0,1fr) 20px;padding:14px}
  .service-icon{width:38px;height:38px;border-radius:12px}
  .service-name{font-size:15px}
  .number-meta{grid-template-columns:1fr}
}


/* =========================================================
   Rincall v0.6.2 - Call icons / account info / push
   ========================================================= */
.call-icon-action{
  display:grid;
  place-items:center;
  padding:0;
}
.call-icon-action svg{width:39px;height:39px;display:block}
.call-icon-action.answer svg{transform:rotate(-8deg)}
.call-icon-action.hangup svg{transform:rotate(132deg)}
.sr-only{
  position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;
  overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important
}
.account-private-note{font-size:12px;color:#888;line-height:1.6;margin-top:14px}
.account-info-grid{display:flex;flex-direction:column;gap:10px}
.account-info-row{display:grid;grid-template-columns:minmax(120px,.8fr) minmax(0,1.4fr);gap:18px;padding:15px 16px;border-radius:16px;background:#f7f7f7;align-items:center}
.account-info-label{color:#777;font-size:13px}
.account-info-value{font-weight:720;overflow-wrap:anywhere;text-align:right}
.push-help{font-size:12px;color:#777;line-height:1.65;margin-top:10px}
@media(max-width:520px){
  .circle-action{width:82px;height:82px}
  .call-icon-action svg{width:41px;height:41px}
  .account-info-row{grid-template-columns:1fr;gap:4px}
  .account-info-value{text-align:left}
}


/* =========================================================
   Rincall v0.6.5 - Audio output chooser
   ========================================================= */

.audio-output-action{
  position:relative;
  display:grid;
  place-items:center;
  padding:0;
  background:#f1f1f1;
  color:#111;
}
.audio-output-action svg{
  width:30px;
  height:30px;
  transform:translateY(-5px);
}
.circle-action-caption{
  position:absolute;
  left:50%;
  bottom:12px;
  transform:translateX(-50%);
  max-width:68px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  font-size:10px;
  font-weight:800;
  line-height:1;
}

.audio-output-backdrop{
  position:fixed;
  inset:0;
  z-index:260;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
  background:rgba(0,0,0,.42);
  opacity:0;
  transition:opacity .18s ease;
}
.audio-output-backdrop[hidden]{
  display:none!important;
}
.audio-output-backdrop.show{
  opacity:1;
}

.audio-output-sheet{
  width:min(520px,100%);
  max-height:min(72vh,620px);
  overflow:auto;
  padding:9px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius:26px 26px 20px 20px;
  background:#fff;
  color:#111;
  box-shadow:0 -12px 50px rgba(0,0,0,.24);
  transform:translateY(22px);
  transition:transform .18s ease;
}
.audio-output-backdrop.show .audio-output-sheet{
  transform:translateY(0);
}
.audio-output-handle{
  width:44px;
  height:5px;
  margin:2px auto 14px;
  border-radius:999px;
  background:#d4d4d4;
}
.audio-output-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.audio-output-title{
  font-size:21px;
  font-weight:850;
}
.audio-output-current{
  margin-top:4px;
  color:#777;
  font-size:13px;
}
.audio-output-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#eee;
  color:#333;
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.audio-output-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.audio-output-row{
  width:100%;
  border:0;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 28px;
  align-items:center;
  gap:12px;
  padding:13px 14px;
  border-radius:17px;
  background:#f5f5f5;
  color:#111;
  text-align:left;
  cursor:pointer;
}
.audio-output-row:active{
  transform:translateY(1px);
}
.audio-output-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:13px;
  background:#fff;
  box-shadow:0 3px 10px rgba(0,0,0,.06);
}
.audio-output-icon svg{
  width:23px;
  height:23px;
}
.audio-output-copy{
  min-width:0;
}
.audio-output-name{
  display:block;
  font-size:15px;
  font-weight:800;
}
.audio-output-sub{
  display:block;
  margin-top:3px;
  color:#777;
  font-size:12px;
  line-height:1.4;
}
.audio-output-check{
  color:#111;
  font-size:20px;
  font-weight:900;
  text-align:center;
}
.audio-output-native-btn{
  width:100%;
  min-height:48px;
  margin-top:14px;
  border:0;
  border-radius:16px;
  background:#111;
  color:#fff;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
}
.audio-output-help{
  margin:10px 5px 0;
  color:#777;
  font-size:11.5px;
  line-height:1.55;
}

@media(max-width:520px){
  .call-actions{
    gap:15px;
  }
  .circle-action{
    width:78px;
    height:78px;
  }
  .audio-output-backdrop{
    padding:0;
  }
  .audio-output-sheet{
    border-radius:26px 26px 0 0;
  }
}


/* =========================================================
   Rincall v0.6.7 - Global touch zoom lock
   ========================================================= */

html,
body {
  touch-action: pan-x pan-y;
  -ms-touch-action: pan-x pan-y;
}

button,
a,
input,
textarea,
select,
[role="button"],
[role="switch"] {
  touch-action: manipulation;
}

/* =========================================================
   Rincall v0.6.7 - Incoming notification switch
   ========================================================= */

.notification-switch-row{
  width:100%;
  min-height:76px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:16px;
  padding:14px 16px;
  border-radius:18px;
  background:#f5f5f5;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 4px 14px rgba(0,0,0,.045);
}
.notification-switch-copy{
  min-width:0;
}
.notification-switch-title{
  display:block;
  font-size:16px;
  font-weight:800;
  color:#111;
}
.notification-switch-sub{
  display:block;
  margin-top:4px;
  font-size:12.5px;
  line-height:1.45;
  color:#777;
}
.rincall-switch{
  position:relative;
  width:52px;
  height:32px;
  flex:0 0 auto;
  border:0;
  border-radius:999px;
  padding:0;
  background:#c9c9c9;
  cursor:pointer;
  transition:background .18s ease,opacity .18s ease;
  -webkit-tap-highlight-color:transparent;
}
.rincall-switch::after{
  content:"";
  position:absolute;
  top:3px;
  left:3px;
  width:26px;
  height:26px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 7px rgba(0,0,0,.22);
  transition:transform .18s ease;
}
.rincall-switch[aria-checked="true"]{
  background:#111;
}
.rincall-switch[aria-checked="true"]::after{
  transform:translateX(20px);
}
.rincall-switch:disabled{
  opacity:.45;
  cursor:default;
}
.notification-inline-status{
  margin:9px 4px 0;
  color:#777;
  font-size:12px;
  line-height:1.5;
}
.notification-inline-status.ok{
  color:#17682c;
}
.notification-inline-status.blocked{
  color:#9b1426;
}
.notification-explain{
  margin-top:10px;
  padding:13px 15px;
  border-radius:16px;
  background:#fafafa;
  border:1px solid #ececec;
  color:#777;
  font-size:12px;
  line-height:1.65;
}


/* =========================================================
   Rincall unified light / dark design
   ========================================================= */

:root{
  --rincall-page-bg:#f2f4f7;
  --rincall-topbar:rgba(248,249,251,.84);
  --rincall-surface:rgba(255,255,255,.88);
  --rincall-surface-solid:#ffffff;
  --rincall-surface-soft:rgba(247,248,250,.90);
  --rincall-control:rgba(255,255,255,.72);
  --rincall-field:#ffffff;
  --rincall-text:#121417;
  --rincall-text-soft:#343940;
  --rincall-text-muted:#737982;
  --rincall-border:rgba(18,20,23,.085);
  --rincall-glass-border:rgba(255,255,255,.90);
  --rincall-shadow:0 16px 42px rgba(21,28,38,.075);
  --rincall-control-shadow:0 7px 22px rgba(21,28,38,.075);
  --rincall-accent:#0a84ff;
  --rincall-danger:#c90024;
  --rincall-bg-dim:.20;
  --rincall-key-bg:rgba(255,255,255,.72);
  --rincall-key-border:rgba(255,255,255,.96);
  --rincall-key-shadow:0 8px 22px rgba(24,31,42,.10);
}

html[data-theme="dark"]{
  --rincall-page-bg:#0e1114;
  --rincall-topbar:rgba(22,25,29,.88);
  --rincall-surface:rgba(27,31,36,.94);
  --rincall-surface-solid:#1b1f24;
  --rincall-surface-soft:rgba(34,39,45,.90);
  --rincall-control:rgba(255,255,255,.055);
  --rincall-field:#13171b;
  --rincall-text:#f4f6f8;
  --rincall-text-soft:#d6dae0;
  --rincall-text-muted:#9aa1aa;
  --rincall-border:rgba(255,255,255,.085);
  --rincall-glass-border:rgba(255,255,255,.10);
  --rincall-shadow:0 18px 48px rgba(0,0,0,.30);
  --rincall-control-shadow:0 7px 22px rgba(0,0,0,.18);
  --rincall-key-bg:rgba(255,255,255,.075);
  --rincall-key-border:rgba(255,255,255,.11);
  --rincall-key-shadow:0 8px 22px rgba(0,0,0,.22);
}

html{
  background:var(--rincall-page-bg);
  color-scheme:light;
}

html[data-theme="dark"]{
  color-scheme:dark;
}

html,
body{
  background:var(--rincall-page-bg);
  color:var(--rincall-text);
}

body{
  min-height:100dvh;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;
  background:var(--rincall-page-bg);
}

a{color:inherit}

/* Header --------------------------------------------------- */

.topbar{
  background:var(--rincall-topbar);
  color:var(--rincall-text);
  border-bottom:1px solid var(--rincall-border);
  -webkit-backdrop-filter:blur(22px) saturate(135%);
  backdrop-filter:blur(22px) saturate(135%);
}

.brand{color:var(--rincall-text)}

.header-icon-btn,
.soft-btn{
  background:var(--rincall-control);
  color:var(--rincall-text);
  border:1px solid var(--rincall-glass-border);
  box-shadow:var(--rincall-control-shadow);
}

.header-icon-btn{
  -webkit-backdrop-filter:blur(14px) saturate(125%);
  backdrop-filter:blur(14px) saturate(125%);
}

.soft-btn{
  -webkit-backdrop-filter:blur(14px) saturate(125%);
  backdrop-filter:blur(14px) saturate(125%);
}

.primary-btn{
  background:var(--rincall-text);
  color:var(--rincall-page-bg);
}

.danger-btn{
  background:var(--rincall-danger);
  color:#fff;
}

/* Common surfaces ----------------------------------------- */

.card,
.settings-panel,
.number-hero,
.modal{
  background:var(--rincall-surface);
  color:var(--rincall-text);
  border:1px solid var(--rincall-border);
  box-shadow:var(--rincall-shadow);
}

.card{
  -webkit-backdrop-filter:blur(16px) saturate(120%);
  backdrop-filter:blur(16px) saturate(120%);
}

.menu-card,
.service-row,
.settings-row,
.notification-switch-row,
.list-item,
.account-info-row,
.number-meta-item,
.future-box,
.audio-output-row{
  background:var(--rincall-control);
  color:var(--rincall-text);
  border:1px solid var(--rincall-border);
  box-shadow:none;
}

.menu-card{
  box-shadow:var(--rincall-control-shadow);
}

.service-row,
.settings-row,
.notification-switch-row{
  box-shadow:0 5px 16px rgba(20,26,36,.035);
}

html[data-theme="dark"] .service-row,
html[data-theme="dark"] .settings-row,
html[data-theme="dark"] .notification-switch-row,
html[data-theme="dark"] .menu-card{
  box-shadow:none;
}

.service-row:hover,
.settings-row:hover{
  background:var(--rincall-surface-soft);
}

.service-icon,
.mini-btn{
  background:var(--rincall-surface-solid);
  color:var(--rincall-text);
  border:1px solid var(--rincall-border);
  box-shadow:0 4px 12px rgba(20,26,36,.06);
}

.section-title,
.service-name,
.settings-row-label,
.notification-switch-title,
.list-title,
.number-meta-value,
.account-info-value{
  color:var(--rincall-text);
}

.helper,
.service-sub,
.settings-row-value,
.settings-group-title,
.notification-switch-sub,
.notification-inline-status,
.notification-explain,
.account-private-note,
.account-info-label,
.list-sub,
.number-meta-label,
.future-box,
.back-link,
.audio-output-current,
.audio-output-sub,
.audio-output-help{
  color:var(--rincall-text-muted);
}

.service-chevron{
  color:var(--rincall-text-muted);
}

.settings-panel,
.notification-explain{
  background:var(--rincall-surface-soft);
  border-color:var(--rincall-border);
}

.settings-danger-zone{
  border-color:var(--rincall-border);
}

/* Inputs -------------------------------------------------- */

input,
textarea,
select{
  color:var(--rincall-text);
  background:var(--rincall-field);
  border-color:var(--rincall-border);
  caret-color:var(--rincall-accent);
}

.form-row input,
.form-row textarea,
.form-row select{
  color:var(--rincall-text) !important;
  background:var(--rincall-field) !important;
  border:1px solid var(--rincall-border) !important;
  box-shadow:inset 0 1px 1px rgba(0,0,0,.02);
}

input::placeholder,
textarea::placeholder{
  color:var(--rincall-text-muted);
  opacity:.72;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus{
  -webkit-text-fill-color:var(--rincall-text);
  transition:background-color 99999s ease-in-out 0s;
}

.appearance-range{
  accent-color:var(--rincall-accent);
}

/* Appearance selector ------------------------------------ */

.appearance-choice{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
  padding:5px;
  border-radius:17px;
  background:var(--rincall-control);
  border:1px solid var(--rincall-border);
}

.appearance-option{
  min-height:46px;
  padding:8px 6px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:var(--rincall-text-muted);
  font-size:13px;
  font-weight:800;
  cursor:pointer;
}

.appearance-option[aria-checked="true"]{
  color:var(--rincall-text);
  background:var(--rincall-surface-solid);
  border:1px solid var(--rincall-border);
  box-shadow:0 4px 13px rgba(18,24,34,.08);
}

html[data-theme="dark"] .appearance-option[aria-checked="true"]{
  background:#2b3036;
  box-shadow:0 4px 13px rgba(0,0,0,.18);
}

.appearance-background-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.appearance-preview{
  position:relative;
  overflow:hidden;
  min-height:150px;
  margin-top:10px;
  border-radius:20px;
  border:1px solid var(--rincall-border);
  background:linear-gradient(145deg,var(--rincall-surface-soft),var(--rincall-page-bg));
  background-size:cover;
  background-position:center;
  box-shadow:inset 0 1px 0 var(--rincall-glass-border);
}

.appearance-preview::after{
  content:"Rincall";
  position:absolute;
  left:18px;
  bottom:16px;
  padding:9px 13px;
  border-radius:13px;
  background:var(--rincall-key-bg);
  border:1px solid var(--rincall-key-border);
  color:var(--rincall-text);
  font-weight:850;
  box-shadow:var(--rincall-control-shadow);
  -webkit-backdrop-filter:blur(14px) saturate(135%);
  backdrop-filter:blur(14px) saturate(135%);
}

.appearance-note{
  margin:8px 2px 0;
  color:var(--rincall-text-muted);
  font-size:12px;
  line-height:1.55;
}

/* Notification ------------------------------------------- */

.notification-switch-title{
  color:var(--rincall-text);
}

.rincall-switch{
  background:rgba(127,127,127,.30);
  border:1px solid var(--rincall-border);
}

.rincall-switch[aria-checked="true"]{
  background:var(--rincall-accent);
}

.notification-inline-status.ok{
  color:#2b9a4b;
}

.notification-inline-status.blocked{
  color:#d04b5c;
}

/* Dialer: flat glass ------------------------------------- */

.phone-shell{
  background:rgba(255,255,255,.58);
  color:var(--rincall-text);
  border:1px solid rgba(255,255,255,.88);
  box-shadow:0 20px 50px rgba(20,28,40,.10);
}

html[data-theme="dark"] .phone-shell{
  background:rgba(27,31,36,.82);
  border-color:rgba(255,255,255,.075);
  box-shadow:0 20px 52px rgba(0,0,0,.34);
}

.status-line{
  color:var(--rincall-text-muted);
}

.number-display{
  background:var(--rincall-key-bg);
  color:var(--rincall-text);
  border:1px solid var(--rincall-key-border);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 7px 20px rgba(20,28,40,.055);
}

html[data-theme="dark"] .number-display{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.035),
    0 7px 20px rgba(0,0,0,.12);
}

.metal-key{
  background:var(--rincall-key-bg) !important;
  color:var(--rincall-text) !important;
  border:1px solid var(--rincall-key-border) !important;
  box-shadow:var(--rincall-key-shadow) !important;
  transform:none;
  transition:transform .08s ease,background .12s ease,box-shadow .12s ease;
}

.metal-key::before,
.metal-key::after{
  content:none !important;
}

.metal-key:active{
  transform:scale(.965) !important;
  background:var(--rincall-surface-soft) !important;
  box-shadow:0 3px 10px rgba(20,28,40,.08) !important;
}

.key-main{
  color:var(--rincall-text);
}

.key-sub{
  color:var(--rincall-text-muted);
}

.call-btn{
  background:var(--rincall-key-bg);
  color:var(--rincall-accent);
  border:1px solid var(--rincall-key-border);
  box-shadow:var(--rincall-key-shadow);
}

.call-btn:active{
  transform:scale(.965);
}

.dial-delete-btn{
  background:var(--rincall-key-bg);
  color:var(--rincall-text-soft);
  border:1px solid var(--rincall-key-border);
  box-shadow:var(--rincall-key-shadow);
}

.dial-delete-btn:active{
  transform:scale(.965);
}

/* Right-top number and keypad button use the same glass language. */
#myNumberPill,
.header-icon-btn{
  background:var(--rincall-key-bg);
  border:1px solid var(--rincall-key-border);
  color:var(--rincall-text);
  box-shadow:var(--rincall-key-shadow);
}

/* Actual blur is enabled when a custom background exists. */
html.has-custom-background body::before{
  background-image:
    linear-gradient(rgba(0,0,0,var(--rincall-bg-dim)),rgba(0,0,0,var(--rincall-bg-dim))),
    var(--rincall-custom-background);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  background-attachment:fixed;
}

html.has-custom-background body{
  background:transparent;
}

html.has-custom-background .topbar,
html.has-custom-background .phone-shell,
html.has-custom-background .card,
html.has-custom-background .menu-card,
html.has-custom-background .service-row,
html.has-custom-background .settings-row,
html.has-custom-background .settings-panel,
html.has-custom-background .notification-switch-row,
html.has-custom-background .number-hero,
html.has-custom-background .account-info-row,
html.has-custom-background .list-item{
  -webkit-backdrop-filter:blur(22px) saturate(135%);
  backdrop-filter:blur(22px) saturate(135%);
}

html.has-custom-background .metal-key,
html.has-custom-background .number-display,
html.has-custom-background .call-btn,
html.has-custom-background .dial-delete-btn,
html.has-custom-background #myNumberPill,
html.has-custom-background .header-icon-btn{
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
}

html.has-custom-background .phone-shell{
  background:rgba(255,255,255,.46);
}

html[data-theme="dark"].has-custom-background .phone-shell{
  background:rgba(19,23,28,.52);
}

html.has-custom-background .metal-key,
html.has-custom-background .number-display,
html.has-custom-background .call-btn,
html.has-custom-background .dial-delete-btn{
  background:rgba(255,255,255,.54) !important;
}

html[data-theme="dark"].has-custom-background .metal-key,
html[data-theme="dark"].has-custom-background .number-display,
html[data-theme="dark"].has-custom-background .call-btn,
html[data-theme="dark"].has-custom-background .dial-delete-btn{
  background:rgba(22,27,32,.55) !important;
  border-color:rgba(255,255,255,.13) !important;
}

/* Tabs / lists ------------------------------------------- */

.tab-btn{
  background:var(--rincall-control);
  color:var(--rincall-text-muted);
  border:1px solid var(--rincall-border);
}

.tab-btn.active{
  background:var(--rincall-text);
  color:var(--rincall-page-bg);
}

/* Account / number pages --------------------------------- */

.number-hero{
  background:var(--rincall-surface);
}

.future-box{
  border-style:dashed;
}

/* Modal --------------------------------------------------- */

.modal-backdrop{
  background:rgba(5,8,12,.46);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}

/* Call screen / audio output ------------------------------ */

.call-screen{
  background:#0b0e11;
}

.answer,
.mute,
.audio-output-action{
  background:rgba(255,255,255,.94);
  color:#111;
}

.audio-output-sheet{
  background:var(--rincall-surface-solid);
  color:var(--rincall-text);
  border:1px solid var(--rincall-border);
}

.audio-output-handle{
  background:var(--rincall-text-muted);
  opacity:.42;
}

.audio-output-close{
  background:var(--rincall-control);
  color:var(--rincall-text);
}

.audio-output-icon{
  background:var(--rincall-surface-solid);
  color:var(--rincall-text);
  border:1px solid var(--rincall-border);
  box-shadow:none;
}

.audio-output-check{
  color:var(--rincall-text);
}

.audio-output-native-btn{
  background:var(--rincall-text);
  color:var(--rincall-page-bg);
}

/* Toast --------------------------------------------------- */

.toast{
  background:rgba(15,17,20,.92);
  color:#fff;
  border:1px solid rgba(255,255,255,.08);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}

/* Mobile refinements ------------------------------------- */

@media(max-width:520px){
  .appearance-choice{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .appearance-option{
    min-height:44px;
    font-size:12px;
  }

  .card{
    border-radius:24px;
  }

  .phone-shell{
    border-radius:30px;
  }
}


/* =========================================================
   Rincall screen transitions
   ========================================================= */

.page{
  transform-origin:50% 18%;
}

html[data-rincall-enter="forward"] .page{
  animation:rincall-enter-forward 220ms cubic-bezier(.22,.82,.28,1) both;
}

html[data-rincall-enter="back"] .page{
  animation:rincall-enter-back 220ms cubic-bezier(.22,.82,.28,1) both;
}

html[data-rincall-enter="fade"] .page{
  animation:rincall-enter-fade 190ms ease-out both;
}

body[data-rincall-leave="forward"] .page{
  animation:rincall-leave-forward 135ms cubic-bezier(.4,0,1,1) both;
}

body[data-rincall-leave="back"] .page{
  animation:rincall-leave-back 135ms cubic-bezier(.4,0,1,1) both;
}

body[data-rincall-leave="fade"] .page{
  animation:rincall-leave-fade 120ms ease-in both;
}

body.rincall-is-navigating{
  cursor:progress;
}

body.rincall-is-navigating .page{
  pointer-events:none;
}

@keyframes rincall-enter-forward{
  from{
    opacity:.18;
    transform:translate3d(18px,0,0) scale(.995);
    filter:blur(1.5px);
  }
  to{
    opacity:1;
    transform:translate3d(0,0,0) scale(1);
    filter:blur(0);
  }
}

@keyframes rincall-enter-back{
  from{
    opacity:.18;
    transform:translate3d(-18px,0,0) scale(.995);
    filter:blur(1.5px);
  }
  to{
    opacity:1;
    transform:translate3d(0,0,0) scale(1);
    filter:blur(0);
  }
}

@keyframes rincall-enter-fade{
  from{
    opacity:.10;
    transform:translate3d(0,5px,0) scale(.997);
  }
  to{
    opacity:1;
    transform:translate3d(0,0,0) scale(1);
  }
}

@keyframes rincall-leave-forward{
  from{
    opacity:1;
    transform:translate3d(0,0,0);
  }
  to{
    opacity:.58;
    transform:translate3d(-10px,0,0) scale(.998);
  }
}

@keyframes rincall-leave-back{
  from{
    opacity:1;
    transform:translate3d(0,0,0);
  }
  to{
    opacity:.58;
    transform:translate3d(10px,0,0) scale(.998);
  }
}

@keyframes rincall-leave-fade{
  from{opacity:1}
  to{opacity:.28}
}

/* Modal/sheet motion stays independent from full-page navigation. */
.modal,
.audio-output-sheet{
  transition:
    transform 190ms cubic-bezier(.22,.82,.28,1),
    opacity 160ms ease;
}

/* Respect the OS accessibility setting. */
@media (prefers-reduced-motion: reduce){
  html[data-rincall-enter] .page,
  body[data-rincall-leave] .page{
    animation:none !important;
    transform:none !important;
    filter:none !important;
    opacity:1 !important;
  }

  .modal,
  .audio-output-sheet{
    transition:none !important;
  }
}


/* =========================================================
   Legal / privacy / safety / App Store readiness
   ========================================================= */

.legal-page{max-width:860px}
.legal-card{max-width:760px;line-height:1.8}
.legal-card h1{margin-bottom:4px}
.legal-card section{margin-top:30px;padding-top:4px}
.legal-card h2{font-size:18px;margin:0 0 10px;color:var(--rincall-text)}
.legal-card p{color:var(--rincall-text-soft);margin:8px 0}
.legal-card li{color:var(--rincall-text-soft);margin:6px 0}
.legal-kicker{font-size:12px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:var(--rincall-text-muted)}
.legal-updated{font-size:12px!important;color:var(--rincall-text-muted)!important;margin-top:2px!important}
.legal-link,.legal-inline-links a,.legal-footer a{color:var(--rincall-accent);text-decoration:underline;text-underline-offset:3px}
.legal-contact{padding:14px 16px;border-radius:16px;background:var(--rincall-control);border:1px solid var(--rincall-border)}
.legal-contact p{margin:5px 0}
.legal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

.service-nature-note{
  display:flex;flex-direction:column;gap:6px;margin:14px 0 18px;padding:13px 15px;
  border-radius:16px;background:var(--rincall-control);border:1px solid var(--rincall-border);
  color:var(--rincall-text-soft);font-size:12.5px;line-height:1.55
}
.service-nature-note strong{color:var(--rincall-text)}

.signup-legal{margin:22px 0 16px}
.signup-legal-title{font-weight:850;margin-bottom:8px}
.legal-scrollbox{
  max-height:210px;overflow:auto;-webkit-overflow-scrolling:touch;padding:14px 15px;
  border:1px solid var(--rincall-border);border-radius:16px;background:var(--rincall-surface-soft);
  color:var(--rincall-text-soft);font-size:12px;line-height:1.62
}
.legal-scrollbox p{margin:0 0 12px}
.legal-scrollbox p:last-child{margin-bottom:0}
.legal-inline-links{display:flex;gap:14px;flex-wrap:wrap;margin:10px 2px;font-size:12px}
.legal-check{
  display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:12px 13px;
  border-radius:15px;background:var(--rincall-control);border:1px solid var(--rincall-border);
  color:var(--rincall-text-soft);font-size:12.5px;line-height:1.55;cursor:pointer
}
.legal-check input{width:20px;height:20px;flex:0 0 auto;margin:1px 0 0;accent-color:var(--rincall-accent)}
.compact-check{margin:14px 0 18px}

.form-row textarea,.form-row select{
  padding:14px 15px;border:1px solid var(--rincall-border);border-radius:14px;
  background:var(--rincall-field);color:var(--rincall-text);font:inherit
}
.form-row textarea{resize:vertical;min-height:112px}
.full-btn{width:100%;min-height:48px;font-weight:800}
.report-target{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 0;
  padding:13px 15px;border-radius:15px;background:var(--rincall-control);border:1px solid var(--rincall-border)
}
.report-target span{font-size:12px;color:var(--rincall-text-muted)}
.report-target strong{font-size:15px}
.report-mini-btn{color:var(--rincall-danger)!important}

.delete-account-btn{
  width:100%;min-height:50px;border:1px solid color-mix(in srgb,var(--rincall-danger) 45%,transparent);
  border-radius:14px;background:transparent;color:var(--rincall-danger);font-weight:850;cursor:pointer
}
.account-delete-note{margin:9px 4px 22px;color:var(--rincall-text-muted);font-size:12px;line-height:1.55}
.logout-secondary{margin-top:6px}
.delete-account-modal p{color:var(--rincall-text-soft);line-height:1.65}
.delete-confirm-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:20px}
.deleted-card{text-align:center;padding-top:38px;padding-bottom:38px}
.deleted-check{
  width:64px;height:64px;margin:0 auto 14px;display:grid;place-items:center;border-radius:50%;
  background:rgba(42,155,76,.14);color:#2a9b4c;font-size:32px;font-weight:900
}
.deleted-home{display:inline-block;margin-top:16px}

.legal-footer{
  display:flex;justify-content:center;gap:7px;flex-wrap:wrap;
  margin:18px 0 4px;color:var(--rincall-text-muted);font-size:12px
}

button:disabled{opacity:.52;cursor:default}

html[data-theme="dark"] .legal-scrollbox,
html[data-theme="dark"] .legal-contact,
html[data-theme="dark"] .service-nature-note,
html[data-theme="dark"] .legal-check,
html[data-theme="dark"] .report-target{
  background:rgba(44,44,46,.62);
  border-color:rgba(84,84,88,.30);
}

@media(max-width:520px){
  .legal-card{padding:20px 17px}
  .legal-card h2{font-size:17px}
  .delete-confirm-actions{grid-template-columns:1fr}
}


/* =========================================================
   Unified back navigation / contacts detail
   ========================================================= */

.rincall-backbar{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  min-height:44px;
  margin:0 0 2px;
}

.rincall-back-button{
  width:44px;
  height:44px;
  display:grid;
  place-items:center;
  margin-left:-8px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:var(--rincall-text-muted);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  transition:background .15s ease,color .15s ease,transform .08s ease;
}

.rincall-back-button svg{
  width:25px;
  height:25px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.25;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.rincall-back-button:active{
  transform:scale(.93);
  background:var(--rincall-control);
  color:var(--rincall-text);
}

/* Old per-page text back links are replaced by the common icon button. */
.back-link{display:none!important}

.contact-list-item{cursor:pointer}
.contact-chevron{
  color:var(--rincall-text-muted);
  font-size:28px;
  line-height:1;
  margin-left:2px;
}

.contact-detail{
  display:grid;
  gap:1px;
  overflow:hidden;
  margin-top:14px;
  border:1px solid var(--rincall-border);
  border-radius:18px;
  background:var(--rincall-border);
}

.contact-detail-row{
  display:grid;
  grid-template-columns:100px minmax(0,1fr);
  align-items:center;
  gap:16px;
  min-height:66px;
  padding:14px 16px;
  background:var(--rincall-surface-soft);
}

.contact-detail-label{
  color:var(--rincall-text-muted);
  font-size:13px;
}

.contact-detail-value{
  color:var(--rincall-text);
  font-size:16px;
  overflow-wrap:anywhere;
}

.contact-safety-title{
  margin:24px 0 9px;
  color:var(--rincall-text-muted);
  font-size:13px;
  font-weight:800;
}

.contact-safety-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.contact-action-btn{
  min-height:48px;
  border:1px solid var(--rincall-border);
  border-radius:15px;
  background:var(--rincall-control);
  color:var(--rincall-text);
  font-weight:800;
  cursor:pointer;
}

.contact-action-btn.danger-outline{
  color:var(--rincall-danger);
  border-color:color-mix(in srgb,var(--rincall-danger) 30%,var(--rincall-border));
}

.delete-contact-btn{
  width:100%;
  min-height:46px;
  margin-top:12px;
  border:0;
  background:transparent;
  color:var(--rincall-danger);
  font-weight:800;
  cursor:pointer;
}

.block-mini-btn{color:var(--rincall-text)!important}

html[data-theme="dark"] .contact-detail{
  background:rgba(84,84,88,.30);
}

html[data-theme="dark"] .contact-detail-row{
  background:rgba(44,44,46,.58);
}

@media(max-width:520px){
  .rincall-backbar{min-height:40px}
  .rincall-back-button{
    width:40px;
    height:40px;
    margin-left:-6px;
  }
  .rincall-back-button svg{width:23px;height:23px}
  .contact-detail-row{
    grid-template-columns:82px minmax(0,1fr);
    min-height:62px;
    padding:13px 14px;
  }
}


/* =========================================================
   Contact safety controls
   ========================================================= */

.contact-safety-panel{
  overflow:hidden;
  border:1px solid var(--rincall-border);
  border-radius:18px;
  background:var(--rincall-surface-soft);
}

.contact-block-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:68px;
  padding:12px 16px;
}

.contact-block-copy{
  display:flex;
  align-items:baseline;
  gap:10px;
  min-width:0;
}

.contact-block-copy strong{
  color:var(--rincall-text);
  font-size:16px;
}

.contact-block-copy span{
  color:var(--rincall-text-muted);
  font-size:12px;
  font-weight:800;
  letter-spacing:.04em;
}

.contact-report-button{
  width:100%;
  min-height:52px;
  padding:12px 16px;
  border:0;
  border-top:1px solid var(--rincall-border);
  background:transparent;
  color:var(--rincall-danger);
  font-size:15px;
  font-weight:850;
  text-align:center;
  cursor:pointer;
}

.contact-report-button:active{
  background:var(--rincall-control);
}

html[data-theme="dark"] .contact-safety-panel{
  background:rgba(44,44,46,.58);
  border-color:rgba(84,84,88,.30);
}

html[data-theme="dark"] .contact-report-button{
  border-top-color:rgba(84,84,88,.30);
}


/* =========================================================
   Back button sizing refinement
   ========================================================= */
.rincall-backbar{
  min-height:56px;
}

.rincall-back-button{
  width:54px;
  height:54px;
  margin-left:-8px;
  border-radius:17px;
}

.rincall-back-button svg{
  width:31px;
  height:31px;
  stroke-width:2.35;
}

@media(max-width:520px){
  .rincall-backbar{
    min-height:54px;
  }

  .rincall-back-button{
    width:52px;
    height:52px;
    margin-left:-6px;
    border-radius:16px;
  }

  .rincall-back-button svg{
    width:30px;
    height:30px;
  }
}


/* =========================================================
   Unified header back button
   ========================================================= */

/* Sub-screens place Back in the exact visual slot normally occupied by Rincall. */
.rincall-header-back{
  width:54px;
  height:54px;
  flex:0 0 54px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--rincall-glass-border);
  border-radius:17px;
  background:var(--rincall-control);
  color:var(--rincall-text);
  box-shadow:var(--rincall-control-shadow);
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
  -webkit-backdrop-filter:blur(14px) saturate(125%);
  backdrop-filter:blur(14px) saturate(125%);
  transition:transform .08s ease,background .15s ease,border-color .15s ease;
}

.rincall-header-back svg{
  width:29px;
  height:29px;
  fill:none;
  stroke:currentColor;
  stroke-width:2.45;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.rincall-header-back:active{
  transform:scale(.94);
  background:var(--rincall-surface-soft);
}

/* Hide the older content-area back placeholder if a stale page/SW briefly serves it. */
.rincall-backbar{
  display:none!important;
}

html[data-theme="dark"] .rincall-header-back{
  background:rgba(44,44,46,.78);
  border-color:rgba(255,255,255,.08);
  color:#f5f5f7;
}

html.has-custom-background .rincall-header-back{
  -webkit-backdrop-filter:blur(18px) saturate(145%);
  backdrop-filter:blur(18px) saturate(145%);
}

@media(max-width:520px){
  .rincall-header-back{
    width:52px;
    height:52px;
    flex-basis:52px;
    border-radius:16px;
  }

  .rincall-header-back svg{
    width:28px;
    height:28px;
  }
}


/* =========================================================
   Unified header navigation pattern
   Sub screens: [Back] ---------------- [Keypad]
   ========================================================= */

.rincall-header-back,
.rincall-header-keypad{
  width:54px;
  height:54px;
  flex:0 0 54px;
  padding:0;
  border-radius:17px;
}

.rincall-header-keypad{
  display:grid;
  place-items:center;
}

.rincall-header-keypad svg{
  width:25px;
  height:25px;
}

@media(max-width:520px){
  .rincall-header-back,
  .rincall-header-keypad{
    width:52px;
    height:52px;
    flex-basis:52px;
    border-radius:16px;
  }

  .rincall-header-keypad svg{
    width:24px;
    height:24px;
  }
}


/* =========================================================
   Contacts call icon / multi-number UI
   ========================================================= */

.contact-call-button{
  width:48px;
  height:48px;
  min-width:48px;
  display:grid;
  place-items:center;
  padding:0;
  border-radius:15px;
}

.contact-call-button svg{
  width:25px;
  height:25px;
}

.contact-chevron{
  display:none!important;
}

.account-number-button{
  display:block;
  width:auto;
  max-width:100%;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  text-align:left;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
}

.account-number-button:active{
  opacity:.68;
}

.account-number-hint{
  margin-top:4px;
  color:var(--rincall-text-muted);
  font-size:12px;
  font-weight:650;
}

.default-number-modal h2{
  margin-bottom:6px;
}

.default-number-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  margin-top:18px;
}

.owned-number-list{
  display:grid;
  gap:10px;
  margin-top:18px;
}

.owned-number-row{
  width:100%;
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px;
  border:1px solid var(--rincall-border);
  border-radius:18px;
  background:var(--rincall-control);
  color:var(--rincall-text);
  text-align:left;
  cursor:pointer;
  box-shadow:var(--rincall-control-shadow);
}

.owned-number-row:active{
  transform:scale(.99);
  background:var(--rincall-surface-soft);
}

.owned-number-main{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}

.owned-number-main strong{
  font-size:20px;
  letter-spacing:.02em;
  overflow-wrap:anywhere;
}

.owned-number-main span{
  color:var(--rincall-text-muted);
  font-size:12px;
}

.default-number-badge{
  flex:0 0 auto;
  padding:7px 10px;
  border-radius:999px;
  background:var(--rincall-text);
  color:var(--rincall-page-bg);
  font-size:11px;
  font-weight:850;
}

.number-list-future{
  margin-top:18px;
}

html[data-theme="dark"] .owned-number-row{
  background:rgba(44,44,46,.64);
  border-color:rgba(84,84,88,.28);
}

@media(max-width:520px){
  .contact-call-button{
    width:46px;
    height:46px;
    min-width:46px;
  }

  .contact-call-button svg{
    width:24px;
    height:24px;
  }

  .default-number-actions{
    grid-template-columns:1fr;
  }

  .owned-number-row{
    min-height:76px;
    padding:14px 15px;
  }

  .owned-number-main strong{
    font-size:18px;
  }
}


/* =========================================================
   Account number dropdown / internal-view back fix UI
   ========================================================= */

.account-number-picker{
  position:relative;
  display:inline-block;
  max-width:100%;
  margin-top:4px;
}

.account-number-button{
  display:inline-flex;
  align-items:center;
  gap:11px;
  width:auto;
  max-width:100%;
  padding:3px 2px;
  border:0;
  background:transparent;
  color:var(--rincall-text);
  font-family:inherit;
  font-size:32px;
  font-weight:800;
  line-height:1.2;
  letter-spacing:.05em;
  text-align:left;
  cursor:pointer;
}

.account-number-button:disabled{
  opacity:1;
}

.account-number-chevron{
  width:25px;
  height:25px;
  flex:0 0 auto;
  fill:none;
  stroke:currentColor;
  stroke-width:2.1;
  stroke-linecap:round;
  stroke-linejoin:round;
  color:var(--rincall-text-muted);
  transition:transform .16s ease;
}

.account-number-button[aria-expanded="true"] .account-number-chevron{
  transform:rotate(180deg);
}

.account-number-dropdown{
  position:absolute;
  z-index:70;
  left:0;
  top:calc(100% + 10px);
  width:min(390px,calc(100vw - 54px));
  padding:10px;
  border:1px solid var(--rincall-border);
  border-radius:18px;
  background:var(--rincall-surface-solid);
  box-shadow:0 18px 46px rgba(20,28,40,.16);
}

.account-number-dropdown[hidden]{
  display:none!important;
}

.account-number-dropdown-title{
  padding:7px 9px 10px;
  color:var(--rincall-text-muted);
  font-size:12px;
  font-weight:750;
}

.account-number-options{
  display:grid;
  gap:5px;
}

.account-number-option{
  width:100%;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:var(--rincall-text);
  font-size:16px;
  font-weight:800;
  text-align:left;
  cursor:pointer;
}

.account-number-option:hover,
.account-number-option:active,
.account-number-option[aria-selected="true"]{
  background:var(--rincall-control);
}

.account-number-option svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:var(--rincall-accent);
  stroke-width:2.4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

html[data-theme="dark"] .account-number-dropdown{
  background:#1c1c1e;
  border-color:rgba(84,84,88,.38);
  box-shadow:0 18px 46px rgba(0,0,0,.36);
}

@media(max-width:520px){
  .account-number-button{
    gap:8px;
    font-size:clamp(27px,8.1vw,32px);
  }

  .account-number-chevron{
    width:23px;
    height:23px;
  }

  .account-number-dropdown{
    width:min(360px,calc(100vw - 48px));
  }
}


/* =========================================================
   Appearance preview follows the selected theme
   ========================================================= */

.appearance-preview[data-preview-theme="light"]{
  background:
    radial-gradient(circle at 28% 22%,rgba(255,255,255,.94),transparent 34%),
    linear-gradient(145deg,#f4f5f7,#dfe2e7);
  border-color:rgba(18,20,23,.08);
}

.appearance-preview[data-preview-theme="light"]::after{
  background:rgba(255,255,255,.72);
  border-color:rgba(255,255,255,.92);
  color:#121417;
  box-shadow:0 7px 20px rgba(21,28,38,.10);
}

.appearance-preview[data-preview-theme="dark"]{
  background:
    radial-gradient(circle at 28% 22%,rgba(255,255,255,.06),transparent 34%),
    linear-gradient(145deg,#2c2c2e,#17181a);
  border-color:rgba(255,255,255,.08);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
}

.appearance-preview[data-preview-theme="dark"]::after{
  background:rgba(58,58,60,.72);
  border-color:rgba(255,255,255,.08);
  color:#f5f5f7;
  box-shadow:0 7px 20px rgba(0,0,0,.24);
}

/* When a custom wallpaper is previewed, retain its image but keep the
   sample Rincall badge readable for the selected light/dark theme. */
.appearance-preview[style*="background-image"][data-preview-theme="light"]::after{
  background:rgba(255,255,255,.66);
}

.appearance-preview[style*="background-image"][data-preview-theme="dark"]::after{
  background:rgba(30,30,32,.66);
}


/* =========================================================
   Compact two-line list hierarchy
   ========================================================= */

.settings-row-main,
.service-copy,
.notification-switch-copy{
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:3px;
}

.settings-row-label,
.service-name,
.notification-switch-title{
  display:block;
  width:100%;
  color:var(--rincall-text);
  font-size:16px;
  font-weight:800;
  line-height:1.32;
}

.settings-row-value,
.service-sub,
.notification-switch-sub{
  display:block;
  width:100%;
  margin:0;
  color:var(--rincall-text-muted);
  font-size:12px;
  font-weight:500;
  line-height:1.42;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}

.settings-row{
  min-height:72px;
  align-items:center;
}

.service-row{
  min-height:76px;
  align-items:center;
}

.notification-switch-row{
  min-height:72px;
}

.status-line:empty,
.helper:empty,
.notification-inline-status:empty{
  display:none;
}

.notification-explain,
.appearance-note,
.number-list-future{
  display:none!important;
}

@media(max-width:520px){
  .settings-row-label,
  .service-name,
  .notification-switch-title{
    font-size:15px;
  }

  .settings-row-value,
  .service-sub,
  .notification-switch-sub{
    font-size:11.5px;
  }

  .settings-row{
    min-height:68px;
  }

  .service-row{
    min-height:72px;
  }
}


/* =========================================================
   Dial display: larger phone-number text
   ========================================================= */

.number-display{
  min-height:72px;
  font-size:38px;
  font-weight:800;
  letter-spacing:.045em;
}

html.viewport-compact .number-display{
  min-height:64px;
  font-size:clamp(32px,5.3vw,36px);
}

html.viewport-tight .number-display{
  min-height:56px;
  font-size:clamp(28px,5vw,32px);
}

@media(max-width:520px){
  .number-display{
    font-size:clamp(30px,8vw,36px);
  }
}


/* =========================================================
   Flat dial-number display
   ========================================================= */

.phone-shell{
  position:relative;
}

/* Normal light / dark:
   number floats directly on the keypad panel. */
.number-display{
  width:100%;
  min-height:68px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:6px 0 16px;
  padding:8px 10px;
  border:0!important;
  border-radius:0!important;
  outline:0;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  color:var(--rincall-text);
  font-family:inherit;
  font-size:38px;
  font-weight:800;
  line-height:1.15;
  letter-spacing:.05em;
  cursor:pointer;
  -webkit-tap-highlight-color:transparent;
  touch-action:manipulation;
}

.number-display:focus-visible{
  outline:2px solid color-mix(in srgb,var(--rincall-accent) 48%,transparent);
  outline-offset:4px;
  border-radius:12px!important;
}

.number-display:active{
  opacity:.68;
}

/* Wallpaper is the only case where the number receives a glass backing,
   purely to preserve readability. */
html.has-custom-background .number-display{
  padding:10px 18px;
  border:1px solid rgba(255,255,255,.24)!important;
  border-radius:20px!important;
  background:rgba(255,255,255,.26)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 10px 28px rgba(10,18,28,.08)!important;
  -webkit-backdrop-filter:blur(18px) saturate(135%)!important;
  backdrop-filter:blur(18px) saturate(135%)!important;
}

html[data-theme="dark"].has-custom-background .number-display{
  border-color:rgba(255,255,255,.10)!important;
  background:rgba(24,27,31,.42)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.045),
    0 10px 28px rgba(0,0,0,.18)!important;
}

/* Tap menu: intentionally small, like a native contextual action. */
.dial-clipboard-menu{
  position:absolute;
  z-index:90;
  top:104px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  overflow:hidden;
  padding:4px;
  border:1px solid var(--rincall-border);
  border-radius:14px;
  background:var(--rincall-surface-solid);
  box-shadow:0 13px 34px rgba(18,25,35,.16);
  -webkit-backdrop-filter:blur(18px) saturate(135%);
  backdrop-filter:blur(18px) saturate(135%);
}

.dial-clipboard-menu[hidden]{
  display:none!important;
}

.dial-clipboard-action{
  min-width:84px;
  min-height:40px;
  padding:8px 13px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--rincall-text);
  font-family:inherit;
  font-size:13px;
  font-weight:750;
  cursor:pointer;
  touch-action:manipulation;
}

.dial-clipboard-action + .dial-clipboard-action{
  border-left:1px solid var(--rincall-border);
  border-top-left-radius:0;
  border-bottom-left-radius:0;
}

.dial-clipboard-action:active{
  background:var(--rincall-control);
}

.dial-clipboard-action:disabled{
  opacity:.32;
  cursor:default;
}

html[data-theme="dark"] .dial-clipboard-menu{
  background:rgba(35,37,41,.94);
  border-color:rgba(255,255,255,.09);
  box-shadow:0 13px 34px rgba(0,0,0,.32);
}

html.has-custom-background .dial-clipboard-menu{
  background:rgba(255,255,255,.68);
}

html[data-theme="dark"].has-custom-background .dial-clipboard-menu{
  background:rgba(25,28,32,.72);
}

html.viewport-compact .number-display{
  min-height:62px;
  font-size:clamp(32px,5.3vw,36px);
}

html.viewport-tight .number-display{
  min-height:54px;
  font-size:clamp(28px,5vw,32px);
}

@media(max-width:520px){
  .number-display{
    font-size:clamp(30px,8vw,36px);
  }

  .dial-clipboard-menu{
    top:96px;
  }

  .dial-clipboard-action{
    min-width:82px;
    min-height:42px;
  }
}


/* =========================================================
   Dial display final: text only in every theme
   ========================================================= */

.number-display,
html.has-custom-background .number-display,
html[data-theme="dark"].has-custom-background .number-display{
  width:100%;
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin:6px 0 16px;
  padding:4px 8px;
  border:0!important;
  border-radius:0!important;
  outline:0;
  background:transparent!important;
  box-shadow:none!important;
  -webkit-backdrop-filter:none!important;
  backdrop-filter:none!important;
  color:var(--rincall-text);
}

html.has-custom-background .number-display{
  /* Keep only a subtle text shadow for readability on photographs.
     No box, plate, blur, border, or translucent background. */
  text-shadow:0 1px 3px rgba(255,255,255,.30), 0 2px 10px rgba(0,0,0,.16);
}

html[data-theme="dark"].has-custom-background .number-display{
  text-shadow:0 2px 12px rgba(0,0,0,.34);
}

.number-display:focus-visible{
  outline:0!important;
  border-radius:0!important;
  box-shadow:none!important;
}


/* =========================================================
   Instant theme application / bfcache restoration
   ========================================================= */

html.rincall-theme-instant *,
html.rincall-theme-instant *::before,
html.rincall-theme-instant *::after{
  transition:none!important;
}


/* =========================================================
   Keypad quick access: History (left) / Contacts (right)
   ========================================================= */

.dialer-home .page{
  padding-bottom:max(96px,calc(env(safe-area-inset-bottom) + 88px));
}

.dialer-quick-dock{
  position:fixed;
  left:0;
  right:0;
  bottom:max(18px,calc(env(safe-area-inset-bottom) + 10px));
  z-index:62;
  pointer-events:none;
}

.dialer-quick-button{
  position:absolute;
  bottom:0;
  width:56px;
  height:56px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--rincall-border);
  border-radius:18px;
  background:var(--rincall-control);
  color:var(--rincall-text);
  box-shadow:var(--rincall-control-shadow);
  -webkit-backdrop-filter:blur(16px) saturate(135%);
  backdrop-filter:blur(16px) saturate(135%);
  cursor:pointer;
  pointer-events:auto;
  touch-action:manipulation;
  -webkit-tap-highlight-color:transparent;
}

#quickHistoryBtn{
  left:max(18px,env(safe-area-inset-left));
}

#quickContactsBtn{
  right:max(18px,env(safe-area-inset-right));
}

.dialer-quick-button svg{
  width:27px;
  height:27px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.dialer-quick-button:active{
  transform:scale(.94);
}

html[data-theme="dark"] .dialer-quick-button{
  background:rgba(44,44,46,.76);
  border-color:rgba(255,255,255,.09);
}

html.has-custom-background .dialer-quick-button{
  background:rgba(255,255,255,.42);
  border-color:rgba(255,255,255,.30);
  -webkit-backdrop-filter:blur(20px) saturate(145%);
  backdrop-filter:blur(20px) saturate(145%);
}

html[data-theme="dark"].has-custom-background .dialer-quick-button{
  background:rgba(28,31,35,.58);
  border-color:rgba(255,255,255,.10);
}

/* =========================================================
   Quick bottom-sheet modal
   ========================================================= */

body.quick-panel-open{
  overflow:hidden;
}

.quick-panel-backdrop{
  position:fixed;
  inset:0;
  z-index:110;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
  padding-bottom:max(18px,env(safe-area-inset-bottom));
  background:rgba(10,13,17,.30);
  -webkit-backdrop-filter:blur(3px);
  backdrop-filter:blur(3px);
}

.quick-panel-backdrop[hidden]{
  display:none!important;
}

.quick-panel{
  width:min(520px,100%);
  max-height:min(72vh,620px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:8px 12px 12px;
  border:1px solid var(--rincall-border);
  border-radius:26px;
  background:var(--rincall-surface-solid);
  color:var(--rincall-text);
  box-shadow:0 28px 70px rgba(17,23,31,.24);
}

.quick-panel-handle{
  width:42px;
  height:5px;
  margin:3px auto 5px;
  border-radius:999px;
  background:var(--rincall-border);
}

.quick-panel-head{
  min-height:54px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:4px 4px 8px 8px;
}

.quick-panel-head h2{
  margin:0;
  font-size:20px;
  letter-spacing:-.02em;
}

.quick-panel-close{
  width:42px;
  height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:14px;
  background:var(--rincall-control);
  color:var(--rincall-text-muted);
  font-size:24px;
  line-height:1;
  cursor:pointer;
}

.quick-panel-list{
  min-height:90px;
  overflow:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
  border-top:1px solid var(--rincall-border);
  border-bottom:1px solid var(--rincall-border);
}

.quick-list-row{
  min-height:70px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 8px 10px 10px;
  border-bottom:1px solid var(--rincall-border);
}

.quick-list-row:last-child{
  border-bottom:0;
}

.quick-list-copy{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.quick-list-copy strong{
  overflow:hidden;
  color:var(--rincall-text);
  font-size:15px;
  font-weight:800;
  line-height:1.35;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.quick-list-copy span{
  overflow:hidden;
  color:var(--rincall-text-muted);
  font-size:12px;
  line-height:1.4;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.quick-call-button{
  width:46px;
  height:46px;
  flex:0 0 46px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid var(--rincall-border);
  border-radius:15px;
  background:var(--rincall-control);
  color:var(--rincall-accent);
  cursor:pointer;
  touch-action:manipulation;
}

.quick-call-button svg{
  width:23px;
  height:23px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.quick-panel-all{
  min-height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-top:8px;
  border-radius:14px;
  color:var(--rincall-text);
  font-size:13px;
  font-weight:750;
}

.quick-panel-all:active{
  background:var(--rincall-control);
}

.quick-panel-loading,
.quick-panel-empty{
  padding:34px 16px;
  color:var(--rincall-text-muted);
  font-size:13px;
  text-align:center;
}

html[data-theme="dark"] .quick-panel{
  border-color:rgba(255,255,255,.08);
  box-shadow:0 28px 70px rgba(0,0,0,.42);
}

html.has-custom-background .quick-panel{
  background:rgba(255,255,255,.78);
  -webkit-backdrop-filter:blur(28px) saturate(145%);
  backdrop-filter:blur(28px) saturate(145%);
}

html[data-theme="dark"].has-custom-background .quick-panel{
  background:rgba(26,29,33,.82);
}

@media(min-width:760px){
  .dialer-quick-button{
    width:60px;
    height:60px;
    border-radius:19px;
  }

  .dialer-quick-button svg{
    width:29px;
    height:29px;
  }

  #quickHistoryBtn{
    left:24px;
  }

  #quickContactsBtn{
    right:24px;
  }

  .quick-panel-backdrop{
    align-items:center;
  }
}

@media(max-width:520px){
  .dialer-quick-button{
    width:54px;
    height:54px;
    border-radius:17px;
  }

  .dialer-quick-button svg{
    width:26px;
    height:26px;
  }

  .quick-panel-backdrop{
    padding:10px;
    padding-bottom:max(10px,env(safe-area-inset-bottom));
  }

  .quick-panel{
    width:100%;
    max-height:74vh;
    border-radius:25px;
  }
}


/* =========================================================
   Appearance color customization
   Light: tint tactile controls / Dark: tint text and line icons
   ========================================================= */
:root{
  --rincall-user-color:#0a84ff;
  --rincall-user-color-soft:rgba(10,132,255,.14);
  --rincall-user-color-soft-strong:rgba(10,132,255,.23);
  --rincall-user-color-border:rgba(10,132,255,.30);
  --rincall-user-color-text:#0a6fd8;
  --rincall-rainbow:linear-gradient(135deg,#ff4f9a 0%,#ff7657 17%,#ffbf38 34%,#57d96b 51%,#34c8d5 67%,#4b8cff 83%,#bd63ee 100%);
  --rincall-rainbow-soft:linear-gradient(135deg,#ffd8e9 0%,#ffe0d6 17%,#ffefbd 34%,#dff5d9 51%,#d8f3f6 67%,#dce7ff 83%,#eedcff 100%);
}
html[data-color="pink"]{--rincall-user-color:#ff4f9a;--rincall-user-color-soft:rgba(255,79,154,.14);--rincall-user-color-soft-strong:rgba(255,79,154,.24);--rincall-user-color-border:rgba(255,79,154,.34);--rincall-user-color-text:#d92d78}
html[data-color="red"]{--rincall-user-color:#ff453a;--rincall-user-color-soft:rgba(255,69,58,.13);--rincall-user-color-soft-strong:rgba(255,69,58,.23);--rincall-user-color-border:rgba(255,69,58,.33);--rincall-user-color-text:#d72f27}
html[data-color="orange"]{--rincall-user-color:#ff9f0a;--rincall-user-color-soft:rgba(255,159,10,.15);--rincall-user-color-soft-strong:rgba(255,159,10,.25);--rincall-user-color-border:rgba(255,159,10,.35);--rincall-user-color-text:#ae6500}
html[data-color="yellow"]{--rincall-user-color:#e9b400;--rincall-user-color-soft:rgba(255,214,10,.18);--rincall-user-color-soft-strong:rgba(255,214,10,.29);--rincall-user-color-border:rgba(231,181,0,.35);--rincall-user-color-text:#8a6700}
html[data-color="green"]{--rincall-user-color:#34c759;--rincall-user-color-soft:rgba(52,199,89,.14);--rincall-user-color-soft-strong:rgba(52,199,89,.23);--rincall-user-color-border:rgba(52,199,89,.32);--rincall-user-color-text:#218b3d}
html[data-color="mint"]{--rincall-user-color:#18b9a7;--rincall-user-color-soft:rgba(24,185,167,.14);--rincall-user-color-soft-strong:rgba(24,185,167,.23);--rincall-user-color-border:rgba(24,185,167,.32);--rincall-user-color-text:#0b8377}
html[data-color="blue"]{--rincall-user-color:#0a84ff;--rincall-user-color-soft:rgba(10,132,255,.14);--rincall-user-color-soft-strong:rgba(10,132,255,.23);--rincall-user-color-border:rgba(10,132,255,.32);--rincall-user-color-text:#0a6fd8}
html[data-color="purple"]{--rincall-user-color:#bf5af2;--rincall-user-color-soft:rgba(191,90,242,.14);--rincall-user-color-soft-strong:rgba(191,90,242,.23);--rincall-user-color-border:rgba(191,90,242,.32);--rincall-user-color-text:#9440bf}
html[data-theme="dark"][data-color="pink"]{--rincall-user-color-text:#ff74b2}
html[data-theme="dark"][data-color="red"]{--rincall-user-color-text:#ff7169}
html[data-theme="dark"][data-color="orange"]{--rincall-user-color-text:#ffb84a}
html[data-theme="dark"][data-color="yellow"]{--rincall-user-color-text:#ffd84a}
html[data-theme="dark"][data-color="green"]{--rincall-user-color-text:#66dc82}
html[data-theme="dark"][data-color="mint"]{--rincall-user-color-text:#55d8c9}
html[data-theme="dark"][data-color="blue"]{--rincall-user-color-text:#5aaeff}
html[data-theme="dark"][data-color="purple"]{--rincall-user-color-text:#d38aff}

.appearance-color-label{margin-top:22px}
.appearance-color-choice{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px 8px;margin-top:10px}
.appearance-color-option{min-width:0;display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 3px;border:1px solid transparent;border-radius:14px;background:transparent;color:var(--rincall-text-muted);font-size:10px;font-weight:750;cursor:pointer;-webkit-tap-highlight-color:transparent}
.appearance-color-option[aria-checked="true"]{color:var(--rincall-text);border-color:var(--rincall-border);background:var(--rincall-control);box-shadow:var(--rincall-control-shadow)}
.appearance-color-swatch{width:32px;height:32px;display:block;border-radius:50%;border:2px solid rgba(255,255,255,.78);box-shadow:0 0 0 1px var(--rincall-border),0 4px 10px rgba(15,20,28,.10)}
[data-color-choice="standard"] .appearance-color-swatch{background:linear-gradient(135deg,#fff 0 44%,#1c2229 44% 55%,#0a84ff 55%)}
[data-color-choice="pink"] .appearance-color-swatch{background:#ff4f9a}
[data-color-choice="red"] .appearance-color-swatch{background:#ff453a}
[data-color-choice="orange"] .appearance-color-swatch{background:#ff9f0a}
[data-color-choice="yellow"] .appearance-color-swatch{background:#ffd60a}
[data-color-choice="green"] .appearance-color-swatch{background:#34c759}
[data-color-choice="mint"] .appearance-color-swatch{background:#18b9a7}
[data-color-choice="blue"] .appearance-color-swatch{background:#0a84ff}
[data-color-choice="purple"] .appearance-color-swatch{background:#bf5af2}
[data-color-choice="rainbow"] .appearance-color-swatch{background:var(--rincall-rainbow)}

/* Light mode: surfaces change color, text stays calm and readable. */
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .metal-key,
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .call-btn,
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .header-icon-btn,
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .rincall-header-back,
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .dialer-quick-button,
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .quick-call-button,
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .soft-btn{
  background:var(--rincall-user-color-soft)!important;border-color:var(--rincall-user-color-border)!important
}
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .metal-key:active,
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .dialer-quick-button:active{background:var(--rincall-user-color-soft-strong)!important}
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .call-btn,
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .quick-call-button{color:var(--rincall-user-color-text)!important}
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .rincall-switch[aria-checked="true"]{background:var(--rincall-user-color)!important}

/* Dark mode: surfaces stay dark; typography and line icons carry the selected color. */
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .brand,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .number-display,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .key-main,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .key-sub,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .page-head h1,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .settings-group-title,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .settings-row-label,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .service-name,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .notification-switch-title,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .number-hero-value,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .account-number-button,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .header-icon-btn,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .rincall-header-back,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .dialer-quick-button,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .quick-call-button,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .service-chevron,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .account-number-chevron{color:var(--rincall-user-color-text)!important}
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .metal-key,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .header-icon-btn,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .rincall-header-back,
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .dialer-quick-button{border-color:var(--rincall-user-color-border)!important}
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .rincall-switch[aria-checked="true"]{background:var(--rincall-user-color)!important}

/* Rainbow light: soft rainbow surfaces. */
html[data-theme="light"][data-color="rainbow"] .metal-key,
html[data-theme="light"][data-color="rainbow"] .call-btn,
html[data-theme="light"][data-color="rainbow"] .header-icon-btn,
html[data-theme="light"][data-color="rainbow"] .rincall-header-back,
html[data-theme="light"][data-color="rainbow"] .dialer-quick-button,
html[data-theme="light"][data-color="rainbow"] .quick-call-button,
html[data-theme="light"][data-color="rainbow"] .soft-btn{background:var(--rincall-rainbow-soft)!important;border-color:rgba(255,255,255,.80)!important}
html[data-theme="light"][data-color="rainbow"] .rincall-switch[aria-checked="true"]{background:var(--rincall-rainbow)!important}

/* Rainbow dark: gradient typography and rainbow-edged tactile controls. */
html[data-theme="dark"][data-color="rainbow"] .brand,
html[data-theme="dark"][data-color="rainbow"] .number-display,
html[data-theme="dark"][data-color="rainbow"] .key-main,
html[data-theme="dark"][data-color="rainbow"] .key-sub,
html[data-theme="dark"][data-color="rainbow"] .page-head h1,
html[data-theme="dark"][data-color="rainbow"] .settings-group-title,
html[data-theme="dark"][data-color="rainbow"] .settings-row-label,
html[data-theme="dark"][data-color="rainbow"] .service-name,
html[data-theme="dark"][data-color="rainbow"] .notification-switch-title,
html[data-theme="dark"][data-color="rainbow"] .number-hero-value,
html[data-theme="dark"][data-color="rainbow"] .account-number-button{background:var(--rincall-rainbow);-webkit-background-clip:text;background-clip:text;color:transparent!important;-webkit-text-fill-color:transparent}
html[data-theme="dark"][data-color="rainbow"] .metal-key,
html[data-theme="dark"][data-color="rainbow"] .header-icon-btn,
html[data-theme="dark"][data-color="rainbow"] .rincall-header-back,
html[data-theme="dark"][data-color="rainbow"] .dialer-quick-button,
html[data-theme="dark"][data-color="rainbow"] .quick-call-button{border:1px solid transparent!important;background:linear-gradient(var(--rincall-surface-solid),var(--rincall-surface-solid)) padding-box,var(--rincall-rainbow) border-box!important}
html[data-theme="dark"][data-color="rainbow"] .rincall-switch[aria-checked="true"]{background:var(--rincall-rainbow)!important}

/* Preview uses the selected combination. */
.appearance-preview[data-preview-theme="light"][data-preview-color]:not([data-preview-color="standard"]):not([data-preview-color="rainbow"])::after{background:var(--rincall-user-color-soft-strong);border-color:var(--rincall-user-color-border);color:var(--rincall-user-color-text)}
.appearance-preview[data-preview-theme="dark"][data-preview-color]:not([data-preview-color="standard"]):not([data-preview-color="rainbow"])::after{background:rgba(38,41,46,.82);border-color:var(--rincall-user-color-border);color:var(--rincall-user-color-text)}
.appearance-preview[data-preview-theme="light"][data-preview-color="rainbow"]::after{background:var(--rincall-rainbow-soft);color:#17191c}
.appearance-preview[data-preview-theme="dark"][data-preview-color="rainbow"]::after{background:var(--rincall-rainbow);color:#fff;border-color:transparent}
@media(max-width:420px){.appearance-color-choice{gap:8px 4px}.appearance-color-option{font-size:9px;padding-left:0;padding-right:0}.appearance-color-swatch{width:29px;height:29px}}


/* =========================================================
   Light mode brand color
   ========================================================= */

/* Solid accent colors: make the Rincall logo itself use the selected color. */
html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .brand{
  color:var(--rincall-user-color-text)!important;
}

/* Rainbow: make the Rincall logo a true gradient instead of a single color. */
html[data-theme="light"][data-color="rainbow"] .brand{
  display:inline-block;
  background:var(--rincall-rainbow);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent!important;
  -webkit-text-fill-color:transparent;
}

/* Appearance preview: the sample "Rincall" logo follows the same rule. */
.appearance-preview[data-preview-theme="light"][data-preview-color]:not([data-preview-color="standard"]):not([data-preview-color="rainbow"])::after{
  color:var(--rincall-user-color-text)!important;
}

.appearance-preview[data-preview-theme="light"][data-preview-color="rainbow"]::after{
  background:var(--rincall-rainbow)!important;
  color:#fff!important;
}


/* =========================================================
   Fix: dark + rainbow dial number visibility
   ========================================================= */

html[data-theme="dark"][data-color="rainbow"] .number-display{
  background:var(--rincall-rainbow)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
  text-shadow:none!important;
}

html[data-theme="dark"][data-color="rainbow"] .number-display:focus-visible,
html[data-theme="dark"][data-color="rainbow"] .number-display:active{
  background:var(--rincall-rainbow)!important;
  -webkit-background-clip:text!important;
  background-clip:text!important;
  color:transparent!important;
  -webkit-text-fill-color:transparent!important;
}

/* =========================================================
   Billing / Stripe embedded checkout
   ========================================================= */

.number-purchase-button{
  width:100%;
  min-height:72px;
  margin-top:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:1px solid var(--rincall-border);
  border-radius:18px;
  background:var(--rincall-control);
  color:var(--rincall-text);
  box-shadow:var(--rincall-control-shadow);
  cursor:pointer;
  text-align:left;
}

.number-purchase-button-main{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.number-purchase-button-main strong{
  font-size:15px;
  line-height:1.3;
}
.number-purchase-button-main span{
  color:var(--rincall-text-muted);
  font-size:12px;
  line-height:1.45;
}
.number-purchase-price{
  flex:0 0 auto;
  font-size:15px;
  font-weight:800;
}

body.billing-modal-open{overflow:hidden}
.billing-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:140;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(10,13,17,.38);
  -webkit-backdrop-filter:blur(5px);
  backdrop-filter:blur(5px);
}
.billing-modal-backdrop[hidden]{display:none!important}
.billing-modal{
  width:min(620px,100%);
  max-height:min(90vh,820px);
  overflow:auto;
  overscroll-behavior:contain;
  padding:18px;
  border:1px solid var(--rincall-border);
  border-radius:26px;
  background:var(--rincall-surface-solid);
  color:var(--rincall-text);
  box-shadow:0 30px 90px rgba(10,15,25,.28);
}
.billing-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom:14px;
}
.billing-modal-head h2{
  margin:0;
  font-size:22px;
  letter-spacing:-.02em;
}
.billing-modal-head p{
  margin:5px 0 0;
  color:var(--rincall-text-muted);
  font-size:12px;
  line-height:1.55;
}
.billing-modal-close{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border:0;
  border-radius:14px;
  background:var(--rincall-control);
  color:var(--rincall-text-muted);
  font-size:24px;
  cursor:pointer;
}
.billing-product-summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin:12px 0 16px;
  padding:14px 16px;
  border:1px solid var(--rincall-border);
  border-radius:18px;
  background:var(--rincall-control);
}
.billing-product-summary>div{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.billing-product-summary span{
  color:var(--rincall-text-muted);
  font-size:12px;
}
.billing-product-price{font-size:20px}
.billing-intro p{
  margin:0 0 16px;
  color:var(--rincall-text-muted);
  font-size:13px;
  line-height:1.65;
}
.billing-status,
.billing-error,
.billing-success{
  padding:28px 10px;
  text-align:center;
}
.billing-status{color:var(--rincall-text-muted);font-size:13px}
.billing-error{
  color:#d73b35;
  font-size:13px;
  line-height:1.6;
}
.billing-success strong{
  display:block;
  margin-bottom:10px;
  font-size:16px;
}
.billing-issued-number{
  margin:10px 0 20px;
  font-size:28px;
  font-weight:850;
  letter-spacing:.02em;
}
.stripe-checkout-host{
  min-height:280px;
  overflow:hidden;
  border-radius:18px;
}
.stripe-checkout-host[hidden]{display:none!important}

html[data-theme="light"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .number-purchase-button{
  background:var(--rincall-user-color-soft)!important;
  border-color:var(--rincall-user-color-border)!important;
}
html[data-theme="light"][data-color="rainbow"] .number-purchase-button{
  background:var(--rincall-rainbow-soft)!important;
  border-color:rgba(255,255,255,.78)!important;
}
html[data-theme="dark"][data-color]:not([data-color="standard"]):not([data-color="rainbow"]) .number-purchase-price{
  color:var(--rincall-user-color-text);
}

@media(max-width:560px){
  .billing-modal-backdrop{
    align-items:flex-end;
    padding:8px;
    padding-bottom:max(8px,env(safe-area-inset-bottom));
  }
  .billing-modal{
    width:100%;
    max-height:92vh;
    border-radius:25px;
    padding:15px;
  }
  .billing-issued-number{font-size:24px}
}

/* =========================================================
   Billing admin
   ========================================================= */
.billing-admin-toolbar{
  display:grid;
  grid-template-columns:minmax(0,1fr) 180px auto;
  gap:10px;
  margin:14px 0;
}
.billing-admin-toolbar input,
.billing-admin-toolbar select{
  min-height:46px;
  padding:0 13px;
  border:1px solid var(--rincall-border);
  border-radius:14px;
  background:var(--rincall-control);
  color:var(--rincall-text);
  font:inherit;
}
.billing-admin-list{display:flex;flex-direction:column;gap:10px}
.billing-admin-item{
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  padding:14px 15px;
  border:1px solid var(--rincall-border);
  border-radius:16px;
  background:var(--rincall-control);
  color:var(--rincall-text);
  text-align:left;
  cursor:pointer;
}
.billing-admin-item-main{min-width:0;display:flex;flex-direction:column;gap:4px}
.billing-admin-item-main strong,
.billing-admin-item-main span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.billing-admin-item-main span{color:var(--rincall-text-muted);font-size:12px}
.billing-status-badge{
  align-self:center;
  padding:6px 9px;
  border-radius:999px;
  background:var(--rincall-surface-solid);
  border:1px solid var(--rincall-border);
  font-size:10px;
  font-weight:800;
}
.billing-admin-detail-grid{
  display:grid;
  grid-template-columns:140px minmax(0,1fr);
  gap:10px 14px;
  margin-top:14px;
}
.billing-admin-detail-grid dt{color:var(--rincall-text-muted);font-size:12px}
.billing-admin-detail-grid dd{margin:0;overflow-wrap:anywhere;font-size:13px;font-weight:650}
.billing-admin-actions{display:flex;gap:10px;margin-top:20px;flex-wrap:wrap}
.billing-danger-button{
  min-height:44px;
  padding:0 16px;
  border:1px solid rgba(215,59,53,.35);
  border-radius:14px;
  background:rgba(215,59,53,.08);
  color:#d73b35;
  font:inherit;
  font-weight:800;
  cursor:pointer;
}
.billing-admin-empty{padding:28px 12px;text-align:center;color:var(--rincall-text-muted);font-size:13px}

@media(max-width:620px){
  .billing-admin-toolbar{grid-template-columns:1fr 1fr}
  .billing-admin-toolbar input{grid-column:1/-1}
  .billing-admin-detail-grid{grid-template-columns:1fr;gap:4px}
  .billing-admin-detail-grid dd{margin-bottom:8px}
}
