/* Whale Hub screens, on top of the shared brand kit (ui.css). Phone < 700px, iPad 700-1099px, computer >= 1100px. No inline styles anywhere (strict CSP). */
.boot { min-height: 100vh; min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; background: var(--navy); }
.boot .spinner { border-color: rgba(255,255,255,.2); border-top-color: var(--gold); width: 28px; height: 28px; }
.pad { padding: 24px; }
body.modal-open { overflow: hidden; }
.ic { width: 1.2em; height: 1.2em; flex: none; vertical-align: -.2em; }
.req { color: var(--bad); }
.ok { color: var(--ok); } .warn { color: var(--warn); } .bad { color: var(--bad); }
.spacer { height: 12px; } .section { margin-top: 22px; }
.row.tight { gap: 6px; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.hide-sm { } .only-phone { display: none; }
code { background: var(--soft); padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.tbl tr.clickable { cursor: pointer; } .tbl tr.clickable:focus-visible { outline-offset: -3px; }
.tbl td .row { flex-wrap: wrap; }
.filters { margin-bottom: 4px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--blue-2); text-decoration: underline; cursor: pointer; }
.kpi.sm .n { font-size: 1.1rem; }

/* top bar extras */
.topbar .till { display: flex; align-items: center; } .till-select { width: auto; min-width: 140px; max-width: 240px; min-height: 36px; padding: 2px 10px; }
.nav-foot { min-height: 46px; display: flex; align-items: center; gap: 10px; width: 100%; background: transparent; border: 0; color: #cfe0f7; cursor: pointer; text-align: left; font: inherit; font-size: .85rem; padding: 4px; border-radius: 10px; }
.nav-foot:hover { background: rgba(255,255,255,.07); } .nav-foot svg { width: 22px; height: 22px; flex: none; }

/* sign-in / sign-up cards sit on the shared sea scene */
.auth .card h1 { margin-bottom: 0; } .auth .card form { margin-top: 6px; } .auth .btn-block { text-decoration: none; }

/* home / launcher */
.hero-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .hero-head h1 { margin-bottom: 2px; }
.appgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.appcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--gold); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.appcard h2 { margin: 10px 0 4px; font-size: 1.2rem; } .appcard p { flex: 1; margin-bottom: 10px; }
.appcard.locked { background: #fafbfd; border-top-color: #cfd8e6; } .appcard.locked .appicon { filter: grayscale(.8); opacity: .7; }
.appcard.unavailable { border-top-color: #e7c27d; }
.appicon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 14px rgba(11,31,58,.18); } .appicon svg { width: 28px; height: 28px; }
.appicon.pos { background: linear-gradient(135deg, #1C6FF2, #1458D6); } .appicon.erp { background: linear-gradient(135deg, #0B1F3A, #12345A); } .appicon.pbx { background: linear-gradient(135deg, #A87420, #D9A94F); }
.upsell { display: flex; align-items: center; gap: 14px; margin-top: 18px; border-left: 4px solid var(--gold); flex-wrap: wrap; } .upsell h2 { margin-bottom: 2px; } .upsell p { margin: 0; }
.gate { max-width: 520px; margin: 6vh auto 0; text-align: center; padding: 30px 22px; } .gate .gate-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: #f8ecc9; color: var(--gold-3); display: grid; place-items: center; } .gate .gate-icon svg { width: 32px; height: 32px; }

/* plans */
.plangrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin: 14px 0; }
.plan { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; } .plan h2 { margin: 0; }
.plan.mine { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,169,79,.25), var(--shadow); } .plan.paid { border-top: 4px solid var(--navy-2); }
.plan .price { font-size: 1.4rem; font-weight: 800; color: var(--navy); }
.limits { list-style: none; margin: 4px 0 8px; padding: 0; flex: 1; } .limits li { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }

.secret { font: 700 1.1rem/1.4 ui-monospace, Consolas, monospace; padding: 14px; background: var(--soft); border: 1px dashed var(--gold); border-radius: 12px; text-align: center; user-select: all; word-break: break-all; }
.mailbody { white-space: pre-wrap; font-family: inherit; background: var(--soft); padding: 12px; border-radius: 10px; }
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .more-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border: 1px solid var(--border); border-radius: 14px; background: #fff; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer; } .more-item svg { width: 28px; height: 28px; color: var(--blue); }
.alert svg { margin-right: 2px; }

@media (min-width: 700px) and (max-width: 1099px) { .nav-foot { justify-content: center; padding: 6px 0; } }
@media (max-width: 699px) {
  .hide-sm { display: none !important; } .only-phone { display: inline-flex; }
  .till-select { min-width: 0; max-width: 130px; }
  .appgrid, .plangrid { grid-template-columns: 1fr; }
  .filters .grid.g3 { grid-template-columns: 1fr; }
  .gate { margin-top: 2vh; }
}
/* billing: invoice / receipt page */
.doc { max-width: 760px; } .doc .docparties { margin: 14px 0; gap: 14px; }
.badge.big { font-size: .9rem; padding: 5px 12px; }
.amounts { width: 100%; border-collapse: collapse; margin: 10px 0; } .amounts td { padding: 9px 4px; border-bottom: 1px solid var(--border); } .amounts td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.amounts td.strong { font-weight: 800; font-size: 1.15rem; color: var(--navy); } .amounts tr.head td { font-weight: 600; }
.paybox { max-width: 760px; margin-top: 16px; } .paygrid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.qrbox { text-align: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 14px; } .qrbox img { width: 100%; max-width: 240px; height: auto; }
.qramount { font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-top: 4px; }
.bankbox { background: var(--soft); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.steps { padding-left: 20px; margin: 8px 0 14px; } .steps li { margin: 4px 0; }
.saving { color: #15803d; font-weight: 600; }
@media (max-width: 699px) { .paygrid { grid-template-columns: 1fr; } }
@media print {
  body > *:not(#app) { display: none !important; }
  .side, .topbar, .bottom-nav, .no-print, h1 { display: none !important; }
  .shell, .main, .content { display: block !important; padding: 0 !important; margin: 0 !important; }
  .doc { box-shadow: none !important; border: none !important; max-width: none; }
}

.preparing { text-align: center; padding: 10px 0; } .preparing .spinner { margin: 0 auto 12px; width: 34px; height: 34px; }

/* quota and usage page */
.usage-row { padding: 12px 0; border-bottom: 1px solid var(--border); } .usage-row:last-child { border-bottom: 0; }
.usage-val { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.usage-val.warn { color: #b45309; } .usage-val.bad { color: #b91c1c; }
.meter { height: 10px; border-radius: 999px; background: #e6edf7; overflow: hidden; margin: 8px 0 4px; }
.meter-bar { display: block; height: 100%; width: 0; border-radius: 999px; background: #3b82f6; transition: width .4s ease; }
.meter-bar.ok { background: linear-gradient(90deg, #22c55e, #16a34a); } .meter-bar.warn { background: linear-gradient(90deg, #fbbf24, #f59e0b); } .meter-bar.bad { background: linear-gradient(90deg, #f87171, #dc2626); }
.usage-chips { margin-top: 10px; flex-wrap: wrap; } .usage-sys { padding: 8px 0; border-bottom: 1px solid var(--border); } .usage-sys:last-child { border-bottom: 0; }

/* ---- sign-in / sign-up: the same layout and look as the company website's sign-in pages (ported from its iphone.css) ---- */
body.ui-iphone.auth-v2 { background: #F5F7FB; }
.au { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .au { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.au-main { position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px; padding: 20px 16px 24px; isolation: isolate; overflow: hidden;
  background: radial-gradient(60% 45% at 15% 0%, rgba(59,139,255,.18), transparent 70%), radial-gradient(50% 40% at 100% 100%, rgba(125,211,252,.22), transparent 70%), #F5F7FB; }
.au-top { width: 100%; max-width: 560px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
@media (min-width: 1024px) { .au-top { max-width: none; padding: 4px 12px; } }
.au-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.05rem; color: #0B1630; text-decoration: none; }
.au-brand img { border-radius: 10px; }
.au-top-links { display: flex; gap: 8px; align-items: center; }
.au-back, .au-lang { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: .88rem; font-weight: 600; text-decoration: none;
  color: #0B1630; background: rgba(255,255,255,.75); border: 1px solid rgba(11,22,48,.08); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.au-back:hover, .au-lang:hover { background: #fff; color: #2563EB; }
@media (max-width: 479px) { .au-back { display: none; } }

.au-card { width: 100%; max-width: 440px; margin: auto 0; background: #fff; border-radius: 28px; padding: clamp(26px, 5vw, 40px);
  box-shadow: 0 1px 2px rgba(11,22,48,.04), 0 24px 60px -20px rgba(29,78,216,.25); border: 1px solid rgba(11,22,48,.05); animation: au-in .5s cubic-bezier(.2,.8,.2,1) both; }
@keyframes au-in { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .au-card { animation: none; } }
.au-badge { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #fff; margin-bottom: 18px;
  background: linear-gradient(135deg, #3B8BFF, #1D4ED8); box-shadow: 0 10px 24px -6px rgba(29,78,216,.55); }
.au-head h1 { font-size: clamp(1.7rem, 4vw, 2.1rem); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 6px; color: #0B1630; }
.au-head p { margin: 0 0 24px; color: #5B6475; }
.au-card .field { margin-bottom: 16px; }
.au-card .field label { font-weight: 600; font-size: .92rem; }
.au-card input[type="email"], .au-card input[type="password"], .au-card input[type="text"], .au-card input[type="tel"] {
  height: 50px; border-radius: 14px; background: #F5F7FB; border: 1px solid transparent; padding: 0 16px; font-size: 1rem; width: 100%; }
.au-card input:focus { background: #fff; border-color: #2563EB; box-shadow: 0 0 0 4px rgba(37,99,235,.15); outline: none; }
.pw-wrap { position: relative; }
.au-card .pw-wrap input { padding-right: 84px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: #2563EB; font: inherit; font-size: .82rem; font-weight: 600;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; max-width: 80px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pw-toggle:hover { background: #EEF4FF; }
.pw-toggle:focus-visible { outline: 2px solid #2563EB; outline-offset: 1px; }
.au-card .auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 22px; flex-wrap: wrap; font-size: .92rem; }
.au-card .auth-row a { color: #2563EB; font-weight: 600; text-decoration: none; }
.au-card .auth-row a:hover { text-decoration: underline; }
/* iOS-style switch for "remember me" */
.au-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; }
.au-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-switch-ui { width: 42px; height: 26px; border-radius: 999px; background: #D6DCE6; position: relative; transition: background .2s; flex: none; }
.au-switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .2s; }
.au-switch input:checked + .au-switch-ui { background: #2563EB; }
.au-switch input:checked + .au-switch-ui::after { transform: translateX(16px); }
.au-switch input:focus-visible + .au-switch-ui { outline: 2px solid #2563EB; outline-offset: 2px; }
.au-card .btn-lg { height: 52px; font-size: 1.02rem; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: #8A93A5; font-size: .85rem; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: #E6EAF1; }
.au-alt { display: grid; gap: 10px; }
.au-alt-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #F5F7FB; color: #0B1630; text-decoration: none; transition: background .15s; }
.au-alt-btn:hover { background: #EEF4FF; }
.au-alt-btn > svg:first-child { color: #2563EB; flex: none; }
.au-alt-btn > svg:last-child { color: #8A93A5; flex: none; margin-left: auto; }
.au-alt-btn span { display: flex; flex-direction: column; min-width: 0; }
.au-alt-btn strong { font-size: .95rem; }
.au-alt-btn small { color: #5B6475; font-size: .82rem; }
.auth-foot { text-align: center; color: #5B6475; margin: 18px 0 0; font-size: .92rem; }
.au-foot { width: 100%; max-width: 560px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; font-size: .82rem; color: #6B7487; }
@media (min-width: 1024px) { .au-foot { max-width: none; padding: 0 12px; } }
.au-foot span { display: inline-flex; align-items: center; gap: 6px; }
.au-foot nav { display: flex; gap: 14px; flex-wrap: wrap; }
.au-foot a { color: inherit; text-decoration: none; }
.au-foot a:hover { color: #2563EB; }

/* photo panel (wide screens only) */
.au-side { display: none; position: relative; isolation: isolate; }
@media (min-width: 1024px) { .au-side { display: flex; position: sticky; top: 0; height: 100vh; } }
.au-photo, .au-veil { position: absolute; top: 16px; right: 16px; bottom: 16px; left: 0; width: calc(100% - 16px); height: calc(100% - 32px); border-radius: 32px; }
.au-photo { object-fit: cover; z-index: -2; }
.au-veil { z-index: -1; background: radial-gradient(70% 50% at 80% 10%, rgba(59,139,255,.45), transparent 70%), linear-gradient(180deg, rgba(30,58,138,.45) 0%, rgba(11,22,48,.88) 60%, rgba(11,22,48,.96) 100%); }
.au-side-copy { margin-top: auto; padding: clamp(40px, 4vw, 64px); color: #fff; max-width: 600px; }
.au-kicker { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); font-size: .8rem; font-weight: 600; letter-spacing: .02em; margin: 0 0 18px; }
.au-side-copy h2 { color: #fff; font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 12px; }
.au-side-lead { color: rgba(255,255,255,.78); margin: 0 0 26px; font-size: 1.02rem; }
.au-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.au-feats li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 20px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }
.au-feat-ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(135deg, #3B8BFF, #1D4ED8); box-shadow: 0 6px 16px -4px rgba(59,139,255,.6); }
.au-feats strong { display: block; font-size: .98rem; }
.au-feats div > span { display: block; color: rgba(255,255,255,.72); font-size: .86rem; }

/* Hub specifics on top of the website's sign-in look */
.au { background: #F5F7FB; }
.au-card label { display: block; font-weight: 600; font-size: .92rem; color: #1D2433; margin-bottom: 6px; }
.au-card .field .hint { color: #6B7487; font-size: .82rem; margin-top: 6px; }
.au-card input:hover { border-color: #E2E6EE; }
.au-card input[disabled] { color: #6B7487; }
.au-card .btn { border-radius: 999px; font-weight: 600; box-shadow: none; }
.au-card .btn-primary { background: #2563EB; border-color: #2563EB; color: #fff; }
.au-card .btn-primary:hover { background: #1D4ED8; border-color: #1D4ED8; }
.au-card .btn-lg { min-height: 52px; height: auto; }
.au-card .spacer { height: 6px; }
.au-card .alert { border-radius: 14px; }
.au-card form { margin: 0; }
.au-card .auth-row .field { margin: 0; }
.au-card .center.small, .au-card > a { display: block; margin-top: 16px; text-align: center; color: #2563EB; font-weight: 600; text-decoration: none; }
.au-swap { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #EEF1F6; text-align: center; color: #5B6475; font-size: .92rem; }
.au-swap a { color: #2563EB; font-weight: 600; text-decoration: none; } .au-swap a:hover { text-decoration: underline; }
.au-foot .ic { color: #2563EB; }
.au-side-copy h2 span { display: block; }
.au-feat-ic { color: #fff; } .au-feat-ic .ic { width: 22px; height: 22px; }
.au-credit { margin: 18px 0 0; font-size: .72rem; color: rgba(255,255,255,.55); }
.au-credit a { color: inherit; }
.au-top-links:empty { display: none; }
.au-badge .ic { width: 24px; height: 24px; }
.au-card label.au-switch { display: inline-flex; margin: 0; font-weight: 500; color: #3A4252; }
.au-switch-ui { display: inline-block; }
.au-foot .ic { width: 16px; height: 16px; }
