/* Page styles carried over from the design mockups (design/tools/pages/*.html) */
/* --- dashboard --- */
  .kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .grid-2-1 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .def { font-size: 11.5px; line-height: 15px; color: var(--n-500); border-top: 1px dashed var(--n-200); padding-top: 8px; margin-top: 2px; }
  .sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
  .src { border: 1px solid var(--n-200); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
  .src .l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--n-600); }
  .src .l .i { width: 15px; height: 15px; }
  .src .v { font-size: 22px; font-weight: 700; line-height: 28px; font-variant-numeric: tabular-nums; }
  .src .v small { font-size: 12.5px; font-weight: 600; color: var(--n-500); margin-left: 4px; }
  .src.is-link { background: var(--rc-50); border-color: var(--rc-100); }
  .bars { display: flex; flex-direction: column; gap: 11px; }
  .bar-row { display: grid; grid-template-columns: 190px 1fr 40px; align-items: center; gap: 14px; }
  .bar-label strong { display: block; font-size: 13.5px; font-weight: 600; line-height: 18px; }
  .bar-label span { font-size: 12px; line-height: 16px; color: var(--text-3); display: flex; align-items: center; gap: 4px; }
  .bar-label span .i { width: 13px; height: 13px; }
  .track { height: 24px; background: var(--n-50); border-radius: 6px; display: flex; overflow: hidden; }
  .seg-bar { height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .seg-bar + .seg-bar { border-left: 2px solid #fff; }
  .c-email { background: var(--rc-600); } .c-sms { background: var(--tenant-500); }
  .bar-total { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
  .legend { display: flex; flex: none; white-space: nowrap; gap: 14px; font-size: 12.5px; color: var(--n-600); font-weight: 500; }
  .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
  .sub-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
  .sub-h h3 { font-size: 13.5px; font-weight: 650; }
  .callrow .btn { height: 30px; } .callrow .call-btn { width: 34px; padding: 0; justify-content: center; } .calltable th, .calltable td { padding-left: 10px; padding-right: 10px; } .calltable th:first-child, .calltable td:first-child { padding-left: 16px; } .calltable th:last-child, .calltable td:last-child { padding-right: 16px; }
  .days { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding-top: 8px; }
  .day { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
  .day .b { width: 100%; background: var(--rc-200); border-radius: 4px 4px 0 0; min-height: 2px; }
  .day.is-today .b { background: var(--rc-600); }
  .day.is-closed .b { background: repeating-linear-gradient(45deg, var(--n-200) 0 3px, transparent 3px 6px); height: 100% !important; opacity: .6; }
  .day small { font-size: 10.5px; color: var(--n-500); line-height: 12px; }
  .day.is-today small { color: var(--n-900); font-weight: 700; }
  .hours { display: grid; grid-template-columns: 54px 1fr 36px; row-gap: 5px; column-gap: 10px; align-items: center; font-size: 12px; color: var(--n-600); }
  .hours .h-bar { height: 10px; border-radius: 5px; background: var(--rc-200); }
  .hours .h-bar.peak { background: var(--rc-600); }
  .hours .n { text-align: right; font-weight: 600; color: var(--n-800); font-variant-numeric: tabular-nums; }

/* --- kiosk --- */
  .kiosk { min-height: 100vh; display: flex; flex-direction: column; color: #fff; background: radial-gradient(120% 70% at 50% 0%, var(--tenant-600) 0%, var(--tenant-800) 70%); }
  .k-top { display: flex; align-items: center; justify-content: space-between; padding: 28px 40px; }
  .k-lock { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); font-size: 13px; font-weight: 600; }
  .k-main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 56px 40px; gap: 26px; }
  .k-logo { width: 104px; height: 104px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.25)); }
  .k-h1 { font-size: 40px; line-height: 48px; font-weight: 750; letter-spacing: -0.02em; }
  .k-sub { font-size: 20px; line-height: 28px; color: rgba(255,255,255,.88); max-width: 560px; }
  .viewfinder { width: 440px; height: 440px; border-radius: 32px; background: rgba(0,0,0,.28); position: relative; display: grid; place-items: center; margin-top: 6px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); overflow: hidden; }
  .vf-corner { position: absolute; width: 64px; height: 64px; border: 6px solid var(--tenant-gold); }
  .vf-corner.tl { top: 26px; left: 26px; border-right: 0; border-bottom: 0; border-radius: 18px 0 0 0; }
  .vf-corner.tr { top: 26px; right: 26px; border-left: 0; border-bottom: 0; border-radius: 0 18px 0 0; }
  .vf-corner.bl { bottom: 26px; left: 26px; border-right: 0; border-top: 0; border-radius: 0 0 0 18px; }
  .vf-corner.br { bottom: 26px; right: 26px; border-left: 0; border-top: 0; border-radius: 0 0 18px 0; }
  .vf-line { position: absolute; left: 40px; right: 40px; top: 46%; height: 3px; border-radius: 2px; background: var(--tenant-gold); box-shadow: 0 0 18px 4px rgba(227,168,43,.55); }
  .vf-hint { position: absolute; bottom: 64px; left: 0; right: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; color: rgba(255,255,255,.75); font-size: 15px; }
  .k-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: 100%; max-width: 640px; margin-top: 8px; }
  .k-btn { font: inherit; height: 104px; border-radius: 20px; background: #fff; color: var(--tenant-800); display: flex; align-items: center; gap: 16px; padding: 0 22px; font-weight: 700; font-size: 19px; line-height: 23px; text-align: left; border: 0; }
  .k-btn .ki { width: 52px; height: 52px; border-radius: 14px; background: var(--tenant-50); color: var(--tenant-600); display: grid; place-items: center; flex: none; }
  .k-btn small { display: block; font-weight: 500; font-size: 14px; color: var(--n-600); }
  .k-foot { display: flex; align-items: center; justify-content: space-between; padding: 24px 40px 30px; font-size: 13px; color: rgba(255,255,255,.75); }
  .k-foot .powered { color: rgba(255,255,255,.75); }
  .seg.big button { height: 40px; min-width: 56px; font-size: 15px; }
  .k-ok { width: 100%; max-width: 640px; background: #fff; color: var(--n-900); border-radius: 28px; padding: 36px; display: flex; flex-direction: column; align-items: center; gap: 18px; box-shadow: var(--sh-lg); margin-top: 12px; }
  .k-ok .big-check { width: 120px; height: 120px; border-radius: 50%; background: var(--ok-600); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 14px var(--ok-50); }
  .k-ok .big-check .i { width: 64px; height: 64px; stroke-width: 2.6; }
  .k-meta { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border: 1px solid var(--border); border-radius: 16px; }
  .k-meta > div { padding: 14px; text-align: center; } .k-meta > div + div { border-left: 1px solid var(--border); }
  .k-meta .v { font-weight: 700; font-size: 17px; line-height: 24px; }

/* --- renewal-ath --- */
  .ring-wrap { position: relative; width: 196px; height: 196px; margin: 4px auto 0; }
  .ring-wrap svg.ring { width: 196px; height: 196px; transform: rotate(-90deg); }
  .ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .ring-center .time { font-size: 40px; font-weight: 750; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 46px; }
  .steps-ath { display: flex; flex-direction: column; gap: 12px; }
  .sa { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 20px; }
  .sa .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; background: var(--n-100); color: var(--n-700); }
  .sa.done .n { background: var(--ok-600); color: #fff; }
  .sa.cur .n { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
  .pulse { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; background: var(--warn-50); border: 1px solid var(--warn-200); color: var(--warn-700); font-weight: 650; font-size: 13px; }
  .pulse .dot { background: var(--warn-500); box-shadow: 0 0 0 4px rgba(229,154,11,.2); }

/* --- renewal-confirm --- */
  .ok-badge { width: 76px; height: 76px; border-radius: 50%; background: var(--ok-600); color: #fff; display: grid; place-items: center; margin: 0 auto; box-shadow: 0 0 0 10px var(--ok-50); }
  .ok-badge .i { width: 40px; height: 40px; stroke-width: 2.8; }
  .mini-card { border-radius: 18px; padding: 16px; color: #fff; background: linear-gradient(135deg, var(--tenant-600), var(--tenant-800)); position: relative; overflow: hidden; display: flex; gap: 14px; align-items: center; }
  .mini-card::before { content: ""; position: absolute; right: -40px; bottom: -60px; width: 180px; height: 180px; border-radius: 50%; border: 18px solid rgba(255,255,255,.07); }
  .mini-card .qr { width: 84px; height: 84px; background: #fff; border-radius: 12px; padding: 7px; flex: none; position: relative; }
  .mini-card .qr img { width: 100%; height: 100%; display: block; }

/* --- portal --- */
  .p-greet { display: flex; align-items: center; justify-content: space-between; }
  .renew-banner { border-radius: 16px; padding: 14px 16px; background: var(--tenant-gold-50); border: 1px solid var(--tenant-gold); display: flex; gap: 12px; align-items: center; }
  .renew-banner .i { color: var(--n-900); }
  .dcard { border-radius: 20px; padding: 18px; color: #fff; background: linear-gradient(135deg, var(--tenant-600) 0%, var(--tenant-800) 100%); position: relative; overflow: hidden; box-shadow: var(--sh-lg); text-decoration: none !important; display: block; }
  .dcard::before { content: ""; position: absolute; right: -50px; top: -50px; width: 200px; height: 200px; border-radius: 50%; border: 20px solid rgba(255,255,255,.06); box-shadow: 0 0 0 26px rgba(255,255,255,.035); }
  .dcard .top { display: flex; align-items: center; gap: 8px; position: relative; }
  .dcard .bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 22px; position: relative; }
  .dcard .qr { width: 88px; height: 88px; background: #fff; border-radius: 12px; padding: 7px; }
  .dcard .qr img { width: 100%; height: 100%; display: block; }
  .stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
  .stat .l { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--n-600); }
  .stat .l .i { width: 15px; height: 15px; }
  .stat .v { font-weight: 700; font-size: 15px; line-height: 20px; display: flex; align-items: center; gap: 6px; }
  .stat .v .i { width: 16px; height: 16px; }
  .stat .s { font-size: 11.5px; color: var(--n-500); line-height: 15px; }
  .list-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
  .list-row + .list-row { border-top: 1px solid var(--n-100); }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--border); padding: 8px 4px 18px; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--n-500); text-decoration: none; }
  .tabbar a.is-active { color: var(--primary); }
  .tabbar .i { width: 22px; height: 22px; }
  .sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }

/* --- card --- */
  .c-top { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: #fff; }
  .c-top .btn-icon { color: #fff; }
  .who { display: flex; gap: 8px; padding: 0 20px 16px; overflow: hidden; }
  .who-chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 4px; border-radius: 999px; background: rgba(255,255,255,.1); color: #fff; font-size: 13px; font-weight: 600; white-space: nowrap; border: 1px solid rgba(255,255,255,.16); }
  .who-chip.is-on { background: #fff; color: var(--tenant-800); }
  .who-chip .avatar { width: 26px; height: 26px; font-size: 10.5px; }
  .big-card { margin: 0 20px; border-radius: 24px; background: #fff; overflow: hidden; box-shadow: 0 24px 48px -12px rgba(0,0,0,.45); }
  .bc-head { background: linear-gradient(135deg, var(--tenant-600), var(--tenant-800)); color: #fff; padding: 18px 20px 20px; position: relative; overflow: hidden; }
  .bc-head::after { content: ""; position: absolute; right: -40px; top: -60px; width: 190px; height: 190px; border-radius: 50%; border: 18px solid rgba(255,255,255,.07); }
  .bc-qr { padding: 22px 22px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
  .bc-qr .qrbox { width: 250px; height: 250px; padding: 14px; border-radius: 18px; border: 1px solid var(--border); position: relative; }
  .bc-qr .qrbox img { width: 100%; height: 100%; display: block; }
  .bc-qr .qrbox .mid { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; transform: translate(-50%,-50%); background: #fff; border-radius: 12px; padding: 4px; }
  .bc-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
  .bc-grid > div { padding: 12px 18px; } .bc-grid > div:nth-child(2n) { border-left: 1px solid var(--border); }
  .bc-grid > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .bc-grid .v { font-weight: 700; font-size: 15px; line-height: 20px; }
  .c-actions { padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 10px; }
  .btn-glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.22); }

/* --- waiver --- */
  .doc { height: 300px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #fff; padding: 16px; font-size: 14px; line-height: 21px; color: var(--n-800); position: relative; }
  .doc h3 { font-size: 14px; font-weight: 700; margin: 12px 0 4px; } .doc h3:first-child { margin-top: 0; }
  .doc p { margin: 0 0 6px; }
  .doc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 54px; background: linear-gradient(transparent, #fff); }
  .read-bar { height: 4px; border-radius: 2px; background: var(--n-100); overflow: hidden; } .read-bar i { display: block; height: 100%; width: 100%; background: var(--ok-600); }
  .sigpad { position: relative; height: 150px; border: 1.5px solid var(--primary); border-radius: 14px; background: #fff; box-shadow: var(--ring); }
  .sigpad .base { position: absolute; left: 18px; right: 18px; bottom: 38px; border-bottom: 1.5px dashed var(--n-300); }
  .sigpad .x { position: absolute; left: 18px; bottom: 42px; color: var(--n-400); font-weight: 700; font-size: 18px; }
  .sigpad .lbl { position: absolute; left: 18px; bottom: 12px; font-size: 12px; color: var(--n-500); }
  .sigpad .clear { position: absolute; right: 12px; top: 10px; font-size: 13px; font-weight: 600; color: var(--n-600); display: inline-flex; gap: 4px; align-items: center; }
  .sigpad svg.sig { position: absolute; left: 30px; top: 18px; width: 290px; height: 100px; }
  .langpick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .lp { height: 52px; border: 1.5px solid var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 650; background: #fff; }
  .lp.is-selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 0 0 1px var(--primary) inset; }
  .lp { cursor: pointer; }
  
  .lp .flag { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--n-500); border: 1px solid var(--n-300); border-radius: 4px; padding: 1px 4px; }

/* --- signup-details --- */.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .sec { font-size: 15px; font-weight: 700; margin-top: 4px; }