/* AccountiVerse: Knewmer0's "Future" look (copied from TaxCodex PH), logo colours swapped in; loaded after style.css and
   overriding it: 18px rounded corners on cards, inputs and buttons; soft wide shadows; generous spacing; frosted-glass
   panels (85%, light blur); main buttons in a diagonal gradient from the primary blue into a touch of green; system
   sans-serif with monospace numbers; light and dark from the Knewmer0 palette with WCAG AA text; mobile first with
   44px targets on touch / narrow screens; a visible focus ring; no motion when reduced motion is on; plain on paper. */
:root{
  --bg:#e9f0f8; --panel:#fff; --glass:rgba(255,255,255,.85); --surface2:#f3f7fb; --hover:#eef4fb;
  --ink:#0d2340; --ink2:#34506f; --line:rgba(18,48,90,.13); --line2:rgba(18,48,90,.07);
  --field:#fff; --field-line:rgba(18,48,90,.22); --navy:#0d2340;
  --blue:#2f6db5; --primary:#2f6db5; --primary-ink:#fff; --accent:#1f7a37; --accent-soft:#e3eef9; --chip:#e3eef9;
  --grad:linear-gradient(135deg,#2f6db5 0%,#2f6db5 55%,color-mix(in srgb,#2f6db5 72%,#2eaa4a) 100%);
  --r:18px; --r-sm:12px;
  --shadow:0 18px 48px -14px rgba(13,35,64,.20),0 2px 8px rgba(13,35,64,.06);
  --shadow-pop:0 24px 60px -12px rgba(13,35,64,.32),0 4px 14px rgba(13,35,64,.10);
  --ring:#f9b92b;
}
:root[data-theme="dark"]{
  --bg:#071224; --panel:#10223c; --glass:rgba(16,34,60,.85); --surface2:#132944; --hover:#16304f;
  --ink:#eaf2fc; --ink2:#b6c7dc; --line:rgba(160,190,230,.16); --line2:rgba(160,190,230,.08);
  --field:#0c1b31; --field-line:rgba(160,190,230,.24); --navy:#eaf2fc;
  --blue:#79a9e6; --primary:#2f6db5; --primary-ink:#fff; --accent:#4cc867; --accent-soft:#17314d; --chip:#17314d;
  --grad:linear-gradient(135deg,#2f6db5 0%,#2f6db5 55%,color-mix(in srgb,#2f6db5 75%,#2eaa4a) 100%);
  --shadow:0 22px 56px -14px rgba(0,0,0,.6),0 2px 8px rgba(0,0,0,.3);
  --shadow-pop:0 28px 64px -12px rgba(0,0,0,.7),0 4px 14px rgba(0,0,0,.35);
}
body{background:var(--bg);color:var(--ink);
  background-image:radial-gradient(900px 480px at 88% -12%,rgba(46,170,74,.12),transparent 65%),radial-gradient(800px 560px at -12% 108%,rgba(47,109,181,.16),transparent 65%);background-attachment:fixed}
a{color:var(--blue)}
.wrap{padding:20px 16px 56px}

/* ---- focus: one visible ring everywhere */
:focus-visible{outline:3px solid var(--ring)!important;outline-offset:2px!important}
input:focus,select:focus{outline:2px solid color-mix(in srgb,var(--blue) 55%,transparent);outline-offset:1px}

/* ---- numbers line up */
table.list td.mono,.mono,.hitem .who b,
input[inputmode="decimal"],input[inputmode="numeric"]{font-family:var(--f-mono);font-variant-numeric:tabular-nums}

/* ---- top bar: frosted glass */
.topbar{background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--shadow);padding:12px 18px;margin-bottom:22px;position:sticky;top:10px;z-index:20}
.topbar nav a{border-radius:var(--r-sm);padding:8px 12px}
.themesw{border-radius:var(--r-sm);border-color:var(--line);background:var(--panel);height:34px}

/* ---- surfaces: frosted glass, rounded, soft wide shadow, generous spacing */
.panel{background:var(--glass);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border:1px solid var(--line);
  border-radius:var(--r);box-shadow:var(--shadow);padding:20px 22px}
.grid{gap:22px}
.stack{gap:22px}
.tablewrap{border-radius:var(--r-sm);border:1px solid var(--line);background:var(--panel)}
.panel>.tablewrap[style*="border:0"]{border-radius:var(--r)}
table.g th{background:var(--surface2);color:var(--ink2)}
table.g td{border-top:1px solid var(--line2)}
table.g td input{border-radius:10px}
table.list th{background:var(--surface2);border-bottom:1px solid var(--line)}
table.list td{border-bottom:1px solid var(--line2);padding:10px 12px}
table.list tr.click:hover td{background:var(--hover)}
.hitem{border-radius:var(--r-sm);border-color:var(--line);padding:8px 10px}
.drop,.notice,.problems,fieldset.ticks{border-radius:var(--r-sm)}
pre.dat{border-radius:var(--r-sm)}
.chip{background:var(--chip);color:var(--ink2)}
.menu-list{border-radius:var(--r-sm);box-shadow:var(--shadow-pop);border-color:var(--line)}
.menu-list button{border-radius:10px}
#modal{background:rgba(7,18,36,.45);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}
.dialog{background:var(--panel);border-radius:var(--r);box-shadow:var(--shadow-pop);border:1px solid var(--line);padding:22px}
.toast{border-radius:var(--r-sm);box-shadow:var(--shadow-pop);background:var(--navy);color:var(--bg)}
.auth .panel{padding:26px}
.segs{border-radius:var(--r-sm);border-color:var(--line)}
.segs button.on{background:var(--grad);color:#fff}

/* ---- buttons: rounded; the main ones in the brand gradient */
.btn{border-radius:var(--r);border:1px solid var(--line);background:var(--panel);color:var(--ink);padding:8px 16px;min-height:36px}
.btn:hover{background:var(--hover);border-color:var(--field-line)}
.btn.sm{min-height:30px;padding:4px 12px}
.btn.primary{background:var(--grad);border:0;color:#fff;box-shadow:0 10px 24px -10px rgba(47,109,181,.7)}
.btn.primary:hover{background:var(--grad);filter:brightness(1.08)}
.btn.ghost{background:none;border-color:transparent;box-shadow:none}
.btn.ghost:hover{background:var(--hover)}
.btn.danger{background:var(--panel)}
.tab[aria-pressed="true"]{border-bottom-color:#2eaa4a}

/* ---- inputs */
input,select{border-radius:var(--r-sm);border:1px solid var(--field-line);background:var(--field);color:var(--ink);min-height:38px;padding:8px 11px}
input[type=checkbox]{min-height:0}
table.g td input{min-height:32px}

/* ---- touch screens and narrow windows: 44px targets */
@media (pointer:coarse),(max-width:640px){
  .btn,.btn.sm,input,select,.segs button,.topbar nav a,.tab,.menu-list button{min-height:44px}
  .themesw{height:auto} .themesw button{min-width:44px;min-height:44px;justify-content:center}
  #main>p>a:only-child{display:inline-flex;align-items:center;min-height:44px}
  .pw button{min-width:44px;min-height:44px}
  input[type=checkbox]{width:22px;height:22px}
  .topbar{position:static}
}
@media (max-width:640px){
  .wrap{padding:12px 16px 40px}
  .panel{padding:16px}
  .topbar{padding:10px 14px}
  .topbar nav{margin-left:0}
}

/* ---- no motion when reduced motion is on */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* ---- on paper: plain */
@media print{
  body{background:#fff;background-image:none;color:#000}
  .panel,.tablewrap{background:#fff;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none;border-color:#ccc}
}

/* ---- "+ Add" / "Invite" buttons: green, like Knewmer0's New entry (white text AA on the whole gradient) */
.btn.cta,.btn.cta:hover{background:linear-gradient(135deg,#1f7a37 0%,#1f7a37 55%,color-mix(in srgb,#1f7a37 75%,#2f6db5) 100%);
  color:#fff;border:0;box-shadow:0 10px 24px -10px rgba(46,170,74,.75)}
.btn.cta:hover{filter:brightness(1.1)}

/* ---- the firm's name under "TaxDAT PH": bold, in the "Know your numbers" yellow (dark gold in light mode, AA) */
.ws{color:var(--k-tag);font-weight:700;font-size:14px;letter-spacing:.02em}

/* ---- My profile: cards the same height in each row, every button on one line at the bottom; Trusted devices full width */
.pgrid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));align-items:stretch}
.pgrid>.panel{display:flex;flex-direction:column}
.pgrid>.panel>form{flex:1}
.pgrid>.panel>form>.bar{margin-top:auto}
.pgrid>.pwide{grid-column:1/-1}
.pgrid>.pwide .history{max-height:none}
.pgrid>.pwide .hitem .who b{white-space:normal;overflow:visible}
/* the empty error line and its paragraph margins made the tall gap above the buttons */
.pgrid .err{margin:0;min-height:0}
.pgrid .err:empty{display:none}

/* ---- a second, lighter green for the less-used choice beside a green button (+ Add user with password) */
.btn.cta-soft{background:color-mix(in srgb,#2eaa4a 10%,var(--panel));color:#1f7a37;border:1.5px solid #1f7a37;box-shadow:none}
.btn.cta-soft:hover{background:color-mix(in srgb,#2eaa4a 18%,var(--panel));border-color:#1f7a37}
:root[data-theme="dark"] .btn.cta-soft{color:#4cc867;border-color:#4cc867;background:color-mix(in srgb,#2eaa4a 12%,var(--panel))}
:root[data-theme="dark"] .btn.cta-soft:hover{background:color-mix(in srgb,#2eaa4a 22%,var(--panel))}

/* ---- the button Ctrl+S moved to: always ringed (yellow, as the keyboard focus ring) */
.btn.kbd-target{outline:3px solid var(--ring)!important;outline-offset:3px!important}

/* ---- profile box in the top bar (as Knewmer0's sidebar one): initials, username, role; a link to My profile */
.topbar nav a.mebox{display:inline-flex;align-items:center;gap:9px;padding:4px 10px 4px 4px;margin-left:6px;border-radius:999px}
.mebox .avatar{width:32px;height:32px;border-radius:50%;flex:none;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#0d2c4c;background:#f9b92b}
.mebox .who{display:flex;flex-direction:column;line-height:1.25;min-width:0}
.mebox .who b{color:var(--ink);font-size:13px;max-width:140px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mebox .role{align-self:flex-start;margin-top:2px;background:var(--chip);color:var(--ink2);font-size:10.5px;font-weight:600;padding:0 7px;border-radius:9px}
@media (max-width:640px){.mebox .who{display:none}.topbar nav a.mebox{padding:4px}}

/* ---- Sign out under the theme buttons, in the tagline's yellow (owner 11/10/2026) */
.topbar .tcol{display:inline-flex;flex-direction:column;align-items:center;gap:2px;margin-left:6px}
.topbar nav .tcol a#signout{color:var(--k-tag);font-size:12.5px;font-weight:700;letter-spacing:.03em;padding:1px 6px;min-height:0;background:none}
.topbar nav .tcol a#signout:hover{background:none;text-decoration:underline}

/* ---- anything hidden stays hidden, whatever its own display rule (.tabs, .btn: the 1604C sub-tabs and BIR 2316 button) */
[hidden]{display:none!important}
