/* ============================================================================
   Chatti brand system for the MyTime integration.
   Mirrors the main Chatti platform (chatti-platform/public/styles.css):
   same tokens, same two-band header, same buttons, cards, tables and pills.
   Loaded AFTER each page's own <style>, so these rules win on a tie.
   Generic element rules use :where() so page-specific widgets (e.g. the
   iPhone preview) can still override them.
   ========================================================================== */

@font-face { font-family:'Pangram'; src:url('/fonts/Pangram-Regular.otf') format('opentype'); font-weight:400; font-style:normal; font-display:swap; }
@font-face { font-family:'Pangram'; src:url('/fonts/Pangram-Medium.otf') format('opentype'); font-weight:500; font-style:normal; font-display:swap; }
@font-face { font-family:'Pangram'; src:url('/fonts/Pangram-Bold.otf') format('opentype'); font-weight:700; font-style:normal; font-display:swap; }
@font-face { font-family:'Pangram'; src:url('/fonts/Pangram-ExtraBold.otf') format('opentype'); font-weight:800; font-style:normal; font-display:swap; }

:root {
  /* surfaces */
  --bg:#fafaff; --bg-warm:#f4f3fb; --surface:#ffffff; --surface-2:#f6f5fc; --surface-3:#ecebf5;
  /* ink */
  --ink:#1c1a2e; --ink-2:#3a374f; --ink-3:#6c6883; --ink-mute:#9c98ad;
  /* line */
  --line:#e3e1ee; --line-2:#cdcbe0; --line-soft:#eeedf6;
  /* Chatti purples */
  --accent:#40328C; --accent-deep:#322670; --accent-blue:#4C67B0; --accent-ink:#2a2363;
  --accent-soft:#efebf8; --accent-line:#c8bfe1; --accent-mid:#4150A1;
  --gradient:linear-gradient(135deg,#322670 0%,#40328C 50%,#4C67B0 100%);
  /* status */
  --good:#2f7a52; --good-soft:#d9efe2;
  --warn-amber:#a06a16; --warn-amber-soft:#fae9c5;
  --bad:#B5304A; --bad-soft:#f7dbe1; --bad-line:#e8b4c0;
  /* type */
  --sans:'Pangram','Poppins','Avenir Next',system-ui,-apple-system,'Helvetica Neue',sans-serif;
  --radius:8px; --radius-lg:14px;
  --shadow-sm:0 1px 0 var(--line);

  /* aliases: the names the integration's pages already use */
  --purple:var(--accent); --purple-mid:var(--accent-mid); --blue:var(--accent-blue); --magenta:#CE29B6;
  --card:var(--surface); --muted:var(--ink-3); --border:var(--line);
  --ok:var(--good); --okbg:var(--good-soft); --warn:var(--bad); --warnbg:var(--bad-soft);
  --chip:var(--accent-soft);
}

/* ── base ─────────────────────────────────────────────────────────────── */
body.app-ui {
  margin:0; font-family:var(--sans); font-weight:400; font-size:14px; line-height:1.5;
  color:var(--ink); background:var(--bg);
  background-image:
    radial-gradient(circle at 0% -10%, rgba(109,83,156,.06), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(82,104,171,.05), transparent 35%);
  background-attachment:fixed;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
body.app-ui a { color:var(--accent); }

/* ── two-band header (as on the main platform) ────────────────────────── */
.hdr { position:sticky; top:0; z-index:50; }
/* neutralise the pages' older generic `header` rule */
header.hdr { display:block; padding:0; margin:0; background:transparent; border:0; gap:0; }
.hdr .hdr-top { background:linear-gradient(100deg,#322670 0%,#40328C 45%,#4C67B0 100%); color:#fff; }
.hdr .hdr-row { max-width:1600px; margin:0 auto; padding:0 28px; display:flex; align-items:center;
                gap:18px; min-height:56px; position:relative; }
.hdr .hdr-brand { display:inline-flex; align-items:center; text-decoration:none; transition:opacity .15s ease; }
.hdr .hdr-brand:hover { opacity:.8; }
.hdr .hdr-logo { height:26px; width:auto; display:block; filter:brightness(0) invert(1); }
.hdr .hdr-product { font-size:9.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
                    color:rgba(255,255,255,.72); border-left:1px solid rgba(255,255,255,.22);
                    padding-left:16px; white-space:nowrap; }
.hdr .hdr-spacer { flex:1; }
.hdr .hdr-meta { display:flex; align-items:center; gap:8px; }
.hdr .meta-item { display:inline-flex; flex-direction:row; align-items:baseline; gap:8px; padding:6px 14px;
                  border:1px solid rgba(255,255,255,.16); border-radius:999px; background:rgba(255,255,255,.10);
                  line-height:1.15; white-space:nowrap; }
.hdr .meta-label { font-size:9.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
                   color:rgba(255,255,255,.72); }
.hdr .meta-value { font-size:13px; font-weight:600; color:#fff; font-variant-numeric:lining-nums; }
.hdr .hdr-who { display:flex; align-items:center; gap:10px; padding:0 0 0 14px; margin-left:6px; border:0;
                background:none; cursor:pointer; color:#fff; font-family:var(--sans); height:40px;
                box-shadow:none; border-radius:0; }
.hdr .hdr-who:hover { background:none; color:#fff; }
.hdr .user-bar { display:flex; flex-direction:column; align-items:flex-start; gap:1px; font-size:13px; line-height:1.15; }
.hdr .user-bar-name { font-weight:700; color:#fff; white-space:nowrap; }
.hdr .user-bar-role { font-size:9.5px; font-weight:700; letter-spacing:.12em; text-transform:uppercase;
                      color:rgba(255,255,255,.7); white-space:nowrap; }
.hdr .hdr-bubble { width:32px; height:34px; flex:none; background:#CE29B6;
                   -webkit-mask:url("/chatti-mark.svg") no-repeat center / contain;
                   mask:url("/chatti-mark.svg") no-repeat center / contain; }
.hdr .hdr-caret { color:rgba(255,255,255,.7); font-size:11px; }
.hdr .hdr-menu { position:absolute; right:24px; top:100%; margin-top:2px; background:var(--surface);
                 border:1px solid var(--line); border-top:3px solid #40328C; min-width:240px; padding:6px 0;
                 box-shadow:0 10px 30px rgba(40,30,80,.18); z-index:60; }
.hdr .hdr-menu[hidden] { display:none; }
.hdr .hdr-mh { padding:10px 16px 8px; border-bottom:1px solid var(--line-soft); }
.hdr .hdr-mh b { display:block; font-weight:800; font-size:13px; color:var(--ink); }
.hdr .hdr-mh small { display:block; color:var(--ink-mute); font-size:11px; margin-top:2px; }
.hdr .hdr-mi { display:block; width:100%; text-align:left; background:none; border:0; padding:10px 16px;
               font-family:var(--sans); font-size:13px; font-weight:600; color:var(--ink); cursor:pointer;
               border-radius:0; text-decoration:none; box-shadow:none; }
.hdr .hdr-mi:hover { background:var(--surface-2); color:#40328C; }
.hdr .hdr-nav { background:var(--surface); border-bottom:1px solid var(--line); }
.hdr .hdr-nav .hdr-row { min-height:46px; }
.hdr .hnav { display:flex; gap:0; margin:0; flex:1; min-width:0; height:46px; overflow-x:auto; scrollbar-width:none; }
.hdr .hnav::-webkit-scrollbar { display:none; }
.hdr .hnav .nav { font-family:var(--sans); font-size:13px; font-weight:700; letter-spacing:.01em;
                  color:var(--ink-3); background:none; border:0; border-radius:0; padding:0 16px; height:46px;
                  cursor:pointer; position:relative; white-space:nowrap; flex:none; box-shadow:none;
                  display:inline-flex; align-items:center; text-decoration:none; transition:color .15s ease; }
.hdr .hnav .nav:hover { color:#40328C; background:none; }
.hdr .hnav .nav.active { color:#40328C; background:none; }
.hdr .hnav .nav.active::after { content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:3px;
                                background:linear-gradient(90deg,#40328C,#4C67B0); }
.hdr .crumb { font-size:12.5px; color:var(--ink-3); white-space:nowrap; }
.hdr .crumb b { color:var(--ink); font-weight:700; }
@media (max-width:900px){
  .hdr .hdr-meta, .hdr .hdr-product, .hdr .crumb { display:none; }
  .hdr .hdr-row { padding:0 16px; }
}

/* ── page frame ───────────────────────────────────────────────────────── */
/* Header, page and footer share one column (1600px, 28px gutters), as on the
   main platform, so the logo, the menu, the page title and the footer all start
   on the same vertical line. The body is a column that fills the window, so the
   footer sits at the bottom of the window on short pages and below the content
   on long ones. It never floats part-way up the screen. */
html { overflow-y:scroll; }
body.app-ui { min-height:100vh; display:flex; flex-direction:column; }
body.app-ui > .hdr { flex:none; width:100%; }
body.app-ui > .app, body.app-ui > .content { flex:1 0 auto; width:100%; box-sizing:border-box; }
body.app-ui .app { display:block; min-height:0; }
body.app-ui .content { max-width:1600px; margin:0 auto; padding:28px 28px 56px; box-sizing:border-box; }
body.app-ui .content main { max-width:none; margin:0; padding:0; }
@media (max-width:900px){ body.app-ui .content { padding:20px 16px 40px; } }

/* ── type ─────────────────────────────────────────────────────────────── */
body.app-ui h1 { font-family:var(--sans); font-size:34px; font-weight:800; letter-spacing:-.02em;
                 line-height:1.05; color:var(--ink); margin:0; }
body.app-ui h1 em { font-style:italic; font-weight:500; color:var(--accent); }
body.app-ui .pagesub, body.app-ui .sub {
  display:inline-block; margin:8px 0 22px; font-size:12px; color:var(--accent-ink);
  background:var(--accent-soft); padding:4px 10px; border-radius:4px; letter-spacing:.02em; }
body.app-ui h2 { font-size:17px; font-weight:700; letter-spacing:-.005em; color:var(--ink); margin:30px 0 12px; }
body.app-ui h2 .note { font-weight:400; letter-spacing:0; }
body.app-ui .secsub { font-size:15px; font-weight:700; color:var(--ink); }
body.app-ui .note { color:var(--ink-3); font-size:12.5px; }

/* ── buttons ──────────────────────────────────────────────────────────── */
:where(.app-ui) button {
  font-family:var(--sans); font-size:13px; font-weight:500; line-height:1.4;
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:7px 14px; border-radius:var(--radius); border:1px solid var(--line);
  background:var(--surface); color:var(--ink-2); cursor:pointer; white-space:nowrap;
  transition:all .12s; box-shadow:none; }
:where(.app-ui) button:hover { color:var(--ink); border-color:var(--line-2); background:var(--surface-2); }
:where(.app-ui) button.primary {
  background:var(--accent); color:#fff; border-color:var(--accent-ink); font-weight:600;
  box-shadow:0 1px 0 var(--accent-ink), inset 0 1px 0 rgba(255,255,255,.15); }
:where(.app-ui) button.primary:hover { background:var(--accent-ink); color:#fff; border-color:var(--accent-ink); }
:where(.app-ui) button.primary:active { transform:translateY(1px); box-shadow:0 0 0 var(--accent-ink); }
:where(.app-ui) button.danger { color:var(--bad); border-color:var(--bad-line); background:var(--surface); font-weight:600; }
:where(.app-ui) button.danger:hover { background:var(--bad-soft); color:var(--bad); border-color:var(--bad-line); }
:where(.app-ui) button.small { padding:5px 10px; font-size:12px; }
:where(.app-ui) button:disabled,
:where(.app-ui) button.primary:disabled,
:where(.app-ui) button.danger:disabled {
  background:var(--surface-3); color:var(--ink-mute); border-color:var(--line); box-shadow:none;
  cursor:not-allowed; opacity:1; }
/* the one solid-red action: stopping a live campaign */
body.app-ui button.danger.solid { background:var(--bad); color:#fff; border-color:var(--bad); }
body.app-ui button.danger.solid:hover { filter:brightness(.92); }

/* ── form controls ────────────────────────────────────────────────────── */
:where(.app-ui) input:not([type]),
:where(.app-ui) input[type=text], :where(.app-ui) input[type=email], :where(.app-ui) input[type=password],
:where(.app-ui) input[type=search], :where(.app-ui) input[type=tel], :where(.app-ui) input[type=datetime-local],
:where(.app-ui) input[type=date], :where(.app-ui) input[type=time], :where(.app-ui) input[type=number],
:where(.app-ui) select, :where(.app-ui) textarea {
  font-family:var(--sans); font-size:13.5px; color:var(--ink); background:#fff;
  border:1px solid #d8d2e3; border-radius:var(--radius); padding:9px 12px;
  transition:border-color .15s, box-shadow .15s; }
:where(.app-ui) input:focus, :where(.app-ui) select:focus, :where(.app-ui) textarea:focus {
  outline:none; border-color:#40328C; box-shadow:0 0 0 3px rgba(109,83,156,.15); }
:where(.app-ui) input[type=checkbox] { accent-color:var(--accent); }
/* field labels: small caps, as on the main platform */
body.app-ui label.f, body.app-ui .cfield, body.app-ui .mform label,
body.app-ui #chForm label, body.app-ui #wsCredForm label {
  font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-mute); }
body.app-ui label .note, body.app-ui .cfield .note {
  text-transform:none; letter-spacing:0; font-weight:400; font-size:11.5px; color:var(--ink-mute); }

/* ── tables ───────────────────────────────────────────────────────────── */
:where(.app-ui) table {
  width:100%; border-collapse:collapse; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--radius-lg); overflow:hidden; font-size:13px; }
:where(.app-ui) th {
  text-align:left; padding:10px 14px; background:var(--surface-2); border-bottom:1px solid var(--line);
  font-size:11px; font-weight:700; color:var(--ink-3); text-transform:uppercase; letter-spacing:.05em;
  white-space:nowrap; }
:where(.app-ui) td { text-align:left; padding:11px 14px; border-bottom:1px solid var(--line-soft); color:var(--ink-2); }
:where(.app-ui) tr:last-child td { border-bottom:none; }
:where(.app-ui) td b { color:var(--ink); }
body.app-ui .wrap { overflow-x:auto; border-radius:var(--radius-lg); box-shadow:var(--shadow-sm); }
body.app-ui tr.rowlink:hover td { background:var(--surface-2); }

/* ── pills ────────────────────────────────────────────────────────────── */
body.app-ui .pill {
  display:inline-block; padding:4px 10px; border-radius:999px; font-size:10.5px; font-weight:700;
  text-transform:uppercase; letter-spacing:.04em; line-height:1; white-space:nowrap;
  background:var(--accent-soft); color:var(--accent-ink); vertical-align:middle; }
body.app-ui .pill.on { background:var(--good-soft); color:var(--good); }
body.app-ui .pill.off { background:var(--bad-soft); color:var(--bad); }
body.app-ui .pill.draft { background:var(--surface-3); color:var(--ink-3); }
body.app-ui .pill.send { background:var(--warn-amber-soft); color:var(--warn-amber); }

/* ── KPI tiles ────────────────────────────────────────────────────────── */
body.app-ui .tiles { gap:14px; }
body.app-ui .tile { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
                    padding:18px 20px 16px; box-shadow:var(--shadow-sm); }
body.app-ui .tile .k { font-size:11px; font-weight:500; color:var(--ink-3); text-transform:uppercase;
                       letter-spacing:.08em; margin-bottom:8px; }
body.app-ui .tile .v { font-size:30px; font-weight:600; color:var(--ink); line-height:1.05;
                       letter-spacing:-.015em; font-variant-numeric:tabular-nums lining-nums; margin-top:0; }
body.app-ui .tile .v.small { font-size:15px; letter-spacing:0; line-height:1.3; }
body.app-ui .tile.accent { background:var(--gradient); border:none; }
body.app-ui .tile.accent .k { color:rgba(255,255,255,.75); }
body.app-ui .tile.accent .v { color:#fff; }

/* ── cards and panels ─────────────────────────────────────────────────── */
body.app-ui .tree, body.app-ui .attn, body.app-ui .wcard, body.app-ui .chcard,
body.app-ui .panel, body.app-ui .chartcard {
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-lg);
  box-shadow:var(--shadow-sm); }
body.app-ui .chhead, body.app-ui .wcard .whead { font-size:15px; font-weight:700; color:var(--ink); letter-spacing:-.005em; }
body.app-ui .chhead .note { font-weight:400; }
body.app-ui .tnode { border-bottom:1px solid var(--line-soft); }
body.app-ui .tnode.head { background:var(--surface-2); }
body.app-ui .attn .row { border-bottom:1px solid var(--line-soft); }
body.app-ui .custlogo, body.app-ui #chInitials { background:var(--gradient) !important; border-radius:12px !important; }
body.app-ui .wcard .numchip { background:var(--accent-soft); color:var(--accent-ink); }
body.app-ui .qlinks { border-top:1px solid var(--line-soft); }
body.app-ui .qlinks .qt { font-size:10.5px; font-weight:700; letter-spacing:.1em; color:var(--ink-mute); }
body.app-ui .qlinks a { color:var(--accent); font-weight:500; }
body.app-ui .campitem { border-bottom:1px solid var(--line-soft); }

/* ── workspace tabs ───────────────────────────────────────────────────── */
body.app-ui .tabs { display:flex; gap:0; border-bottom:1px solid var(--line); margin:18px 0 24px; flex-wrap:wrap; }
body.app-ui .tab { padding:0 16px; height:44px; display:inline-flex; align-items:center; font-size:13px;
                   font-weight:700; letter-spacing:.01em; color:var(--ink-3); cursor:pointer;
                   border-bottom:0; margin-bottom:0; position:relative; transition:color .15s ease; }
body.app-ui .tab:hover, body.app-ui .tab.active { color:#40328C; }
body.app-ui .tab.active::after { content:""; position:absolute; left:12px; right:12px; bottom:-1px; height:3px;
                                 background:linear-gradient(90deg,#40328C,#4C67B0); }

/* ── banners, progress, toast, modal ──────────────────────────────────── */
body.app-ui .simbanner, body.app-ui .csim {
  background:var(--warn-amber-soft); border:1px solid #efd9a3; color:#7a5010; border-radius:var(--radius);
  font-size:12.5px; padding:9px 12px; }
body.app-ui .progress, body.app-ui .cprogress { background:var(--accent-soft); }
body.app-ui .progress i, body.app-ui .cprogress i { background:linear-gradient(90deg,#40328C,#4C67B0); }
body.app-ui #toast { background:var(--ink); border-radius:var(--radius); }
body.app-ui .modal-overlay { background:rgba(40,30,80,.5); }
body.app-ui .modal { background:#fff; border-radius:var(--radius); padding:28px 32px 24px;
                     box-shadow:0 20px 60px rgba(40,30,80,.3); }

/* support-mode strip (same treatment as the main platform's impersonation bar) */
.impbar { position:fixed; left:0; right:0; bottom:0; z-index:9000; display:flex; gap:14px; align-items:center;
          justify-content:center; padding:8px 16px; font-size:12.5px; font-weight:700;
          background:var(--accent-deep); color:#fff; box-shadow:0 -2px 10px rgba(28,26,46,.2); }
.impbar[hidden] { display:none; }
.impbar .impnote { font-weight:400; opacity:.85; }
body.app-ui .impbar button { background:#fff; color:var(--accent-deep); border-color:#fff; padding:3px 10px;
                             font-size:11.5px; font-weight:700; }
body.imp-on { padding-bottom:42px; }
@media (max-width:900px){ .impbar .impnote { display:none; } }

/* dashboard account list */
body.app-ui .acct-parent td { background:var(--surface); }
body.app-ui .acct-parent .acct-name { font-size:15px; font-weight:800; color:var(--ink); letter-spacing:-.005em; }
body.app-ui .acct-child td { background:var(--bg); }
body.app-ui .acct-child .acct-name { font-weight:700; color:var(--ink); }
body.app-ui .acct-elbow { display:inline-block; width:18px; margin:0 6px 0 14px; height:14px;
                          border-left:2px solid var(--accent-line); border-bottom:2px solid var(--accent-line);
                          border-bottom-left-radius:6px; vertical-align:2px; }
body.app-ui .acct-tag { display:inline-block; font-size:9.5px; font-weight:700; letter-spacing:.12em;
                        text-transform:uppercase; color:var(--ink-mute); margin-left:8px; }
body.app-ui .acct-gap td { padding:0; height:10px; background:var(--bg); border-bottom:1px solid var(--line-soft); }

/* ── sign-in page (matches the main platform's login) ─────────────────── */
body.app-login { margin:0; min-height:100vh; display:flex; align-items:center; justify-content:center;
                 font-family:var(--sans); font-size:15px; line-height:1.5; color:#2a2540;
                 background:none; position:relative; overflow:auto; padding:24px 16px; box-sizing:border-box; }
.app-login .login-bg { position:fixed; inset:0; z-index:0; overflow:hidden;
                       background:linear-gradient(140deg,var(--accent-deep) 0%,var(--accent) 45%,var(--accent-blue) 100%); }
.app-login .login-bg-video { position:absolute; top:50%; left:50%; min-width:100%; min-height:100%;
                             width:auto; height:auto; transform:translate(-50%,-50%); object-fit:cover; opacity:.85; }
.app-login .login-bg-scrim { position:absolute; inset:0;
  background:linear-gradient(140deg, rgba(61,52,134,.82) 0%, rgba(109,83,156,.68) 45%, rgba(82,104,171,.78) 100%); }
@media (prefers-reduced-motion: reduce){ .app-login .login-bg-video { display:none; } }
.app-login .card { position:relative; z-index:1; width:100%; max-width:440px; background:rgba(255,255,255,.97);
                   color:#2a2540; border:0; border-radius:18px; padding:36px 32px;
                   box-shadow:0 24px 60px rgba(28,26,46,.28); backdrop-filter:blur(6px); }
.app-login .login-brand { text-align:center; margin-bottom:28px; }
.app-login .logo { height:38px; width:auto; display:inline-block; margin:0; }
.app-login .login-sub { font-size:13px; color:#6f6986; letter-spacing:.04em; margin-top:6px;
                        text-transform:uppercase; font-weight:600; }
.app-login h1 { font-size:22px; font-weight:700; margin:0 0 6px; color:#2a2540; text-align:left; }
.app-login .sub { font-size:14px; line-height:1.5; color:#5d5775; margin:0 0 20px; text-align:left; }
.app-login .sub:empty { display:none; }
.app-login h1 + .sub:empty + form { margin-top:14px; }
.app-login label { display:block; margin:0 0 16px; font-size:13px; font-weight:600; color:#4a4566; }
.app-login input { display:block; width:100%; box-sizing:border-box; padding:11px 14px; margin-top:6px;
                   font-size:15px; font-family:inherit; font-weight:400; border:1px solid #d8d2e3; border-radius:8px;
                   background:#fff; color:#2a2540; transition:border-color .15s, box-shadow .15s; }
.app-login input:focus { outline:none; border-color:#40328C; box-shadow:0 0 0 3px rgba(109,83,156,.15); }
.app-login button { display:block; width:100%; padding:12px; font-size:15px; font-weight:700; font-family:inherit;
                    border:0; border-radius:8px; background:linear-gradient(135deg,#322670,#40328C,#4C67B0);
                    color:#fff; cursor:pointer; margin-top:6px; transition:filter .15s, transform .05s; }
.app-login button:hover { filter:brightness(1.08); }
.app-login button:active { transform:translateY(1px); }
.app-login button:disabled { opacity:.6; cursor:not-allowed; }
.app-login .err { min-height:0; margin-top:12px; font-size:13px; line-height:1.4; text-align:left; color:var(--bad); }
.app-login .err:not(:empty) { padding:10px 12px; background:var(--bad-soft); border:1px solid var(--bad-line); border-radius:6px; }
.app-login .foot { text-align:center; font-size:12px; color:#6f6986; margin-top:20px; }

/* ── icons (customer portal): Hugeicons, stroke rounded ───────────────── */
.ico { display:inline-flex; align-items:center; justify-content:center; flex:none; width:34px; height:34px;
       border-radius:10px; background:var(--accent-soft); color:var(--accent); }
.ico svg { width:20px; height:20px; display:block; }
.ico.inline { width:auto; height:auto; background:none; border-radius:0; color:inherit; margin-right:6px; vertical-align:-3px; }
.ico.inline svg { width:16px; height:16px; }
body.app-ui .wcard .whead { display:flex; align-items:center; gap:10px; }
.dot-on { display:inline-block; width:9px; height:9px; border-radius:50%; background:var(--good);
          box-shadow:0 0 0 3px var(--good-soft); margin:0 4px 0 2px; flex:none; }

/* ── footer ──────────────────────────────────────────────────────────── */
.app-foot { flex:none; width:100%; box-sizing:border-box; max-width:1600px; margin:0 auto; padding:0 28px 26px;
            font-size:12.5px; line-height:1.7; color:#5b5773; }
.app-foot .af-row { display:grid; grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr); gap:10px 40px;
                    border-top:1px solid var(--line); padding-top:22px; }
.app-foot .af-col { min-width:0; }
.app-foot .af-brand { display:flex; align-items:center; gap:12px; height:22px; margin-bottom:4px; }
.app-foot .af-brand img { height:20px; width:auto; display:block; }
.app-foot .af-brand span { font-weight:700; font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:#8a8896;
                           border-left:1px solid var(--line-2); padding-left:12px; line-height:1.6; }
.app-foot .af-h { font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#8a8896;
                  height:22px; display:flex; align-items:center; margin-bottom:4px; }
.app-foot a { color:#3b3660; text-decoration:none; font-weight:500; }
.app-foot a:hover { color:#40328C; text-decoration:underline; }
.app-foot .af-mute { color:#8a8896; }
.app-foot .af-sep { color:#c5c2d3; margin:0 5px; }
/* nothing shows until the first page has painted, so the footer never flashes
   at the top of an empty page while it loads */
body.app-ui:not(.ready) .app-foot { visibility:hidden; }
@media (max-width:900px){ .app-foot { padding:0 16px 22px; } }
@media (max-width:760px){ .app-foot .af-row { grid-template-columns:1fr; gap:14px; padding-top:18px; } }

/* ── header action button (Quick send): the standard primary button ───── */
.hdr .hdr-act { margin-left:12px; flex:none; display:inline-flex; align-items:center; justify-content:center; gap:7px;
                height:34px; padding:0 16px; box-sizing:border-box; border-radius:var(--radius);
                font-family:var(--sans); font-size:13px; font-weight:600; line-height:1; white-space:nowrap;
                text-decoration:none; color:#fff; background:var(--accent); border:1px solid var(--accent-ink);
                box-shadow:0 1px 0 var(--accent-ink), inset 0 1px 0 rgba(255,255,255,.15); transition:background .12s; }
body.app-ui .hdr .hdr-act { color:#fff; }
.hdr .hdr-act:hover { background:var(--accent-ink); }
.hdr .hdr-act:active { transform:translateY(1px); box-shadow:none; }
.hdr .hdr-act.active { background:var(--accent-ink); }
.hdr .hdr-act svg { width:16px; height:16px; display:block; flex:none; }
@media (max-width:640px){ .hdr .hdr-act { margin-left:8px; padding:0 12px; } }

/* v3.34.0: while a page is loading, a thin bar runs under the header and the footer waits, so nothing jumps */
#busyBar { position:absolute; left:0; right:0; bottom:-3px; height:3px; overflow:hidden; pointer-events:none; opacity:0; transition:opacity .15s .12s; }
#busyBar i { position:absolute; top:0; bottom:0; width:32%; border-radius:3px; background:linear-gradient(90deg,transparent,#6E5BD6,transparent); animation:busyrun 1s linear infinite; }
body.busy #busyBar { opacity:1; }
body.busy .app-foot { visibility:hidden; }
@keyframes busyrun { from { left:-32%; } to { left:100%; } }
