/* Dazr Identity: sign-in page (/signin) and account portal (/account). Builds on
   /assets/compliance-site.css (tokens, buttons, base) and adds the portal's own pieces.
   Light only. Markup and behaviour: /assets/dazr-account.js. */

:root {
  --id-bg: #f5f7fb;
  --id-card: #ffffff;
  --id-ring: 0 0 0 1px rgba(24,32,58,.06);
  --id-shadow: 0 1px 2px rgba(24,32,58,.04), 0 12px 32px -16px rgba(24,32,58,.14);
  --id-shadow-hover: 0 1px 2px rgba(24,32,58,.05), 0 20px 44px -18px rgba(24,32,58,.22);
  --id-r: 22px;
  --id-docs: #3b5bdb; --id-docs-bg: #edf1ff;
  --id-sheets: #1f9a62; --id-sheets-bg: #eaf7f0;
  --id-slides: #e0731a; --id-slides-bg: #fdf1e6;
  --id-other: #7a8399; --id-other-bg: #f1f3f8;
  --id-folder: #4b5c8f;
  --id-versions: #a9b5f5; --id-trash: #cfd5e2;
  --id-glow: linear-gradient(120deg, #dfe7ff 0%, #ece2ff 40%, #dcf5e8 100%);
}

/* ============================================================ shared bits */
.id-page { background: var(--id-bg); min-height: 100vh; }
.id-page :focus-visible { outline: none; box-shadow: var(--cs-focus); }
.id-ic { width: 18px; height: 18px; flex: none; display: inline-block; vertical-align: -3px; }
.id-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.id-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 0; border-radius: 22px; font: 700 14.5px/1 var(--cs-font);
  cursor: pointer; white-space: nowrap; text-decoration: none; transition: transform .15s var(--cs-ease), box-shadow .15s, background .15s, color .15s, opacity .15s; }
.id-btn:hover { text-decoration: none; transform: translateY(-1px); }
.id-btn:active { transform: translateY(0) scale(.985); }
.id-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.id-btn-dark { background: var(--cs-ink); color: #fff; }
.id-btn-dark:hover { background: #222c4b; color: #fff; }
.id-btn-light { background: #fff; color: var(--cs-ink); box-shadow: 0 0 0 1px var(--cs-line2); }
.id-btn-light:hover { color: var(--cs-ink); box-shadow: 0 0 0 1px var(--cs-line3), 0 6px 16px -10px rgba(24,32,58,.25); }
.id-btn-ghost { background: transparent; color: var(--cs-ink2); }
.id-btn-ghost:hover { background: var(--cs-bg); color: var(--cs-ink); }
.id-btn-danger { background: var(--cs-rose-strong); color: #fff; }
.id-btn-danger:hover { background: #bb3a2d; color: #fff; }
.id-btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; border-radius: 18px; }
.id-btn-block { width: 100%; height: 52px; border-radius: 26px; font-size: 15.5px; }
.id-btn .id-ic { width: 16px; height: 16px; }
.id-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 0; border-radius: 12px; background: transparent; color: var(--cs-ink2); cursor: pointer; transition: background .15s, color .15s; flex: none; }
.id-iconbtn:hover { background: var(--cs-bg); color: var(--cs-ink); }
.id-iconbtn[aria-pressed="true"] { background: #fff; color: var(--cs-ink); box-shadow: var(--id-ring), 0 2px 6px -2px rgba(24,32,58,.12); }
.id-iconbtn .id-ic { width: 18px; height: 18px; }

/* spinner (inside buttons) */
.id-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: id-rot .7s linear infinite; flex: none; }
.id-btn-light .id-spin, .id-spin.dk { border-color: rgba(24,32,58,.15); border-top-color: var(--cs-ink); }
@keyframes id-rot { to { transform: rotate(360deg); } }

/* fields */
.id-field { display: grid; gap: 7px; }
.id-field > label, .id-label { font-size: 13.5px; font-weight: 700; color: var(--cs-ink); }
.id-hint { font-size: 13px; color: var(--cs-mute); line-height: 1.45; }
.id-input, .id-select { width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--cs-line3); border-radius: 14px; background: #fff; color: var(--cs-ink); font-size: 15.5px;
  transition: border-color .15s, box-shadow .15s; -webkit-appearance: none; appearance: none; }
.id-input::placeholder { color: #a3abbd; }
.id-input:hover, .id-select:hover { border-color: #b9c1d3; }
.id-input:focus, .id-select:focus { outline: none; border-color: var(--cs-accent); box-shadow: 0 0 0 4px rgba(29,50,112,.12); }
.id-input[readonly] { background: var(--cs-soft); color: var(--cs-ink2); }
.id-input.is-bad { border-color: var(--cs-rose-strong); box-shadow: 0 0 0 4px rgba(210,72,58,.10); }
.id-select { padding-right: 42px; background: #fff var(--cs-chev) right 16px center / 13px no-repeat; cursor: pointer; }
.id-err { color: var(--cs-rose); font-size: 13.5px; font-weight: 600; display: flex; gap: 7px; align-items: flex-start; line-height: 1.45; }
.id-err:empty { display: none; }
.id-err .id-ic { width: 16px; height: 16px; margin-top: 1px; }

/* avatars */
.id-av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; letter-spacing: .02em; flex: none; user-select: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); width: 40px; height: 40px; font-size: 15px; transition: background .25s; }
.id-av.xl { width: 76px; height: 76px; font-size: 27px; box-shadow: 0 0 0 4px #fff, 0 12px 28px -12px rgba(24,32,58,.4); }
.id-av.lg { width: 56px; height: 56px; font-size: 20px; }

/* skeleton shimmer */
.id-sk { position: relative; overflow: hidden; background: #eceff5; border-radius: 10px; }
.id-sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent); animation: id-shimmer 1.4s infinite; }
@keyframes id-shimmer { to { transform: translateX(100%); } }
.id-sk-line { height: 12px; margin: 8px 0; }

/* toasts */
.id-toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); display: grid; gap: 10px; z-index: 500; width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.id-toast { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--cs-ink); color: #fff; font-size: 14.5px; box-shadow: 0 18px 40px -16px rgba(24,32,58,.55);
  pointer-events: auto; animation: id-toast-in .32s var(--cs-ease); }
.id-toast.out { animation: id-toast-out .22s ease forwards; }
.id-toast > span { flex: 1; }
.id-toast .id-ic { width: 18px; height: 18px; color: #9fe0bf; }
.id-toast.err .id-ic { color: #ffb3a8; }
.id-toast button { border: 0; background: rgba(255,255,255,.12); color: #fff; font: 700 13.5px/1 var(--cs-font); padding: 8px 12px; border-radius: 10px; cursor: pointer; margin-left: 4px; }
.id-toast button:hover { background: rgba(255,255,255,.2); }
@keyframes id-toast-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes id-toast-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }

/* ============================================================ /signin
   Same look as the compliance portal login (CompliancePortal/portal/compliance: index.html auth
   styles + ds.css "Inloggen" block), values copied 1:1 so both screens match. */
html:has(> body.si2-body) { font-size: 112.5%; }
@media (max-width: 600px) { html:has(> body.si2-body) { font-size: 100%; } }
body.si2-body { margin: 0; background: #f1f3f8; color: #18203a; font: 400 0.875rem/1.45 var(--cs-font); -webkit-font-smoothing: antialiased; }
.si2 { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 0.875rem; padding: 32px 20px; box-sizing: border-box; animation: si2-up .4s cubic-bezier(.16,1,.3,1); }
@keyframes si2-up { from { opacity: 0; transform: translateY(8px); } }
.si2-card { width: 100%; max-width: 500px; box-sizing: border-box; background: #fff; border-radius: 28px; padding: 44px 44px 36px;
  box-shadow: 0 1px 2px rgba(24,32,58,.04), 0 10px 30px -12px rgba(24,32,58,.08); }
.si2-card[hidden] { display: none; }
.si2-logo { display: flex; align-items: center; gap: 12px; margin: 0 0 28px; }
.si2-logo img { width: 34px; height: 34px; display: block; }
.si2-logo span { font-weight: 700; font-size: 17px; line-height: 1.45; }
.si2-card h1 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -0.025em; margin: 0 0 10px; color: #18203a; }
.si2-card p { font-size: 16px; line-height: 1.55; color: #687186; margin: 0 0 26px; }
.si2-card p strong { color: #687186; font-weight: 700; overflow-wrap: anywhere; }
.si2-sso { display: grid; gap: 0.625rem; margin-bottom: 1.125rem; }
.si2-sso[hidden], .si2-sso [hidden] { display: none !important; }
.si2-sso-btn { display: flex; align-items: center; justify-content: center; gap: 0.625rem; min-height: 48px; margin-top: 14px; padding: 0.75rem 0.625rem; box-sizing: border-box;
  border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #e3e7f0; color: #18203a; font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; white-space: nowrap;
  transition: transform .15s, background .15s; }
.si2-sso-btn:hover { background: #f1f3f8; transform: translateY(-1px); text-decoration: none; color: #18203a; }
.si2-sso-btn svg { flex: 0 0 auto; width: 15px; height: 15px; }
.si2-or { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; color: #687186; font-size: 0.8rem; line-height: 1.45; }
.si2-or::before, .si2-or::after { content: ''; flex: 1; height: 1px; background: #e3e7f0; }
.si2-card input { display: block; width: 100%; box-sizing: border-box; min-height: 48px; padding: 12px 16px; border: 0; border-radius: 14px; background: #fff; color: #18203a;
  box-shadow: inset 0 0 0 1px #e3e7f0; font: 400 16px/1.4 var(--cs-font); transition: box-shadow .18s; }
.si2-card input::placeholder { color: #7a8399; }
.si2-card input:focus { outline: none; box-shadow: inset 0 0 0 1.5px #1d3270, 0 0 0 3px rgba(29,50,112,.28); }
.si2-card form button { display: block; width: 100%; min-height: 48px; margin-top: 14px; padding: 0.8125rem; border: 0; border-radius: 999px; background: #18203a; color: #fff;
  font: 700 16px/normal var(--cs-font); cursor: pointer; transition: transform .15s, background .15s; }
.si2-card form button:hover:not(:disabled) { background: #2a3557; transform: translateY(-1px); }
.si2-card form button:active:not(:disabled) { transform: none; }
.si2-card form button:disabled { opacity: .5; cursor: not-allowed; }
.si2-btn-light { display: block; width: 100%; box-sizing: border-box; min-height: 48px; margin-top: 14px; padding: 13.5px; border: 0; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #e3e7f0;
  color: #18203a; font: 700 16px/1.3 var(--cs-font); text-align: center; cursor: pointer; text-decoration: none; }
.si2-btn-light:hover { background: #f1f3f8; text-decoration: none; color: #18203a; }
a.si2-btn-dark { display: block; box-sizing: border-box; min-height: 48px; margin-top: 14px; padding: 0.8125rem; border-radius: 999px; background: #18203a; color: #fff; font: 700 16px/1.3 var(--cs-font); text-align: center; text-decoration: none; }
a.si2-btn-dark:hover { background: #2a3557; color: #fff; text-decoration: none; }
.si2-err, .si2-ok { display: none; margin-top: 0.75rem; font-size: 15px; line-height: 1.45; }
.si2-err { color: #b8382c; }
.si2-ok { color: #1a7f51; line-height: 1.5; }
.si2-err.show, .si2-ok.show { display: block; }
.si2-err.show { animation: si2-shake .35s cubic-bezier(.16,1,.3,1); }
@keyframes si2-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.si2-sso .si2-err { margin: 0 0 4px; }
.si2-alt { display: block; text-align: center; margin-top: 0.875rem; color: #687186; font-size: 15px; line-height: 1.45; text-decoration: none; }
a.si2-alt:hover { color: #18203a; text-decoration: none; }
.si2-alt a { color: #687186; }
.si2-alt a:hover { color: #18203a; }
.si2-resend { margin-top: 1rem; font-size: 15px; line-height: 1.6; color: #687186; text-align: center; }
.si2-link { width: auto; margin: 0; padding: 0 2px; border: 0; border-radius: 4px; background: none; color: #1d3270; font: 700 15px/1.6 var(--cs-font); cursor: pointer; }
.si2-link:hover:not(:disabled) { text-decoration: underline; }
.si2-link:disabled { color: #687186; cursor: default; }
#resendCountdown { display: block; font-size: 0.76rem; }
.si2-who { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px #e3e7f0; margin: 0 0 6px; }
.si2-who div { min-width: 0; display: grid; }
.si2-who strong { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si2-who span.m { color: #687186; font-size: 14.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.si2-lang { display: flex; align-items: center; justify-content: center; justify-self: center; gap: 2px; background: #fff; border: 1px solid #e3e7f0; border-radius: 999px; padding: 3px 4px 3px 10px;
  box-shadow: 0 1px 2px rgba(24,32,58,.04); }
.si2-lang > .ic { width: 15px; height: 15px; color: #687186; margin-right: 4px; flex-shrink: 0; }
.si2-lang button { min-height: 36px; padding: 0.3rem 0.7rem; border: 0; border-radius: 11px; background: none; color: #687186; font: 400 14px/1.45 var(--cs-font); cursor: pointer; }
.si2-lang button:hover { color: #18203a; }
.si2-lang button[aria-pressed="true"] { background: #18203a; color: #fff; font-weight: 700; }
.si2 :focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(29,50,112,.28); }
@media (max-width: 640px) {
  .si2-lang { flex-wrap: wrap; max-width: calc(100vw - 32px); border-radius: 18px; padding: 4px 6px; row-gap: 2px; }
  .si2-lang button { padding: 0.3rem 0.55rem; }
}
@media (max-width: 600px) {
  .si2 { padding: 20px 16px; place-items: start center; }
  .si2-card { padding: 32px 22px 28px; border-radius: 24px; }
  .si2-card h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .si2 { animation: none; } }

/* ============================================================ /account shell */
.ac { min-height: 100vh; background: var(--id-bg); }
.ac::before { content: ''; position: fixed; left: 0; right: 0; top: 0; height: 480px; background: var(--cs-hero); z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 0%, rgba(0,0,0,.55) 45%, transparent 100%); mask-image: linear-gradient(#000 0%, rgba(0,0,0,.55) 45%, transparent 100%); }
.ac-top { position: sticky; top: 0; z-index: 200; height: 72px; display: flex; align-items: center; gap: 16px; padding: 0 28px; background: rgba(245,247,251,.55);
  -webkit-backdrop-filter: saturate(1.6) blur(16px); backdrop-filter: saturate(1.6) blur(16px); transition: box-shadow .2s, background .2s; }
.ac-top.is-scrolled { background: rgba(255,255,255,.86); box-shadow: 0 1px 0 var(--cs-line), 0 8px 24px -20px rgba(24,32,58,.3); }
.ac-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cs-ink); font-weight: 700; font-size: 16px; white-space: nowrap; }
.ac-brand:hover { text-decoration: none; }
.ac-brand em { font-style: normal; color: var(--cs-mute); font-weight: 400; }
.ac-top-sp { flex: 1; }
.ac-top-links { display: flex; gap: 22px; font-size: 14.5px; }
.ac-top-links a { color: var(--cs-ink2); }
.ac-top-links a:hover { color: var(--cs-ink); }
.ac-shell { position: relative; z-index: 1; display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 36px; max-width: 1320px; margin: 0 auto; padding: 18px 28px 80px; }
.ac-nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 4px; }
.ac-nav a { display: flex; align-items: center; gap: 13px; height: 46px; padding: 0 16px; border-radius: 15px; color: var(--cs-ink2); font-size: 15px; font-weight: 600; transition: background .15s, color .15s, box-shadow .15s; }
.ac-nav a:hover { text-decoration: none; color: var(--cs-ink); background: rgba(255,255,255,.6); }
.ac-nav a[aria-current="page"] { background: #fff; color: var(--cs-ink); box-shadow: var(--id-ring), 0 6px 18px -12px rgba(24,32,58,.25); }
.ac-nav a .id-ic { width: 19px; height: 19px; color: var(--cs-mute); transition: color .15s; }
.ac-nav a[aria-current="page"] .id-ic { color: var(--cs-accent); }
.ac-quota { margin-top: 22px; padding: 18px 16px 4px; border-top: 1px solid rgba(24,32,58,.07); font-size: 13px; color: var(--cs-ink2); }
.ac-quota .id-meter { margin: 10px 0 8px; height: 6px; }
.ac-quota a { font-weight: 700; font-size: 13px; }
.ac-main { min-width: 0; }
.ac-sec { animation: ac-in .32s var(--cs-ease); }
@keyframes ac-in { from { opacity: 0; transform: translateY(8px); } }
.ac-h1 { font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.03em; }
.ac-sub { color: var(--cs-ink2); margin-top: 6px; font-size: 15.5px; }
.ac-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 6px 0 24px; }
.ac-card { background: var(--id-card); border-radius: var(--id-r); box-shadow: var(--id-ring), var(--id-shadow); padding: 26px; }
.ac-card + .ac-card { margin-top: 18px; }
.ac-card h2 { font-size: 18px; letter-spacing: -0.015em; }
.ac-card h2 + p, .ac-card .ac-desc { color: var(--cs-ink2); font-size: 14.5px; margin-top: 6px; line-height: 1.55; }
.ac-card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.ac-card-hd a.more { font-size: 14px; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.ac-card-hd a.more .id-ic { width: 14px; height: 14px; transition: transform .2s var(--cs-ease); }
.ac-card-hd a.more:hover .id-ic { transform: translateX(3px); }
.ac-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.ac-grid2 > .ac-card { margin: 0; }

/* meter */
.id-meter { position: relative; height: 10px; border-radius: 6px; background: #edf0f6; overflow: hidden; display: flex; }
.id-meter i { display: block; height: 100%; flex: none; width: 0; transition: width .9s var(--cs-ease); }
.id-meter i + i { box-shadow: -2px 0 0 #fff; }
.id-meter.mono i { background: linear-gradient(90deg, #1d3270, #5468c4); border-radius: 6px; }
.id-meter.warn i { background: linear-gradient(90deg, #b8640a, #e0a33a); }
.id-meter.full i { background: linear-gradient(90deg, #b8382c, #e06a5c); }
.id-meter.lg { height: 18px; border-radius: 10px; }

/* overview */
.ov-hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; padding: 34px 34px; border-radius: 28px; background: rgba(255,255,255,.55);
  box-shadow: 0 0 0 1px rgba(255,255,255,.7) inset, var(--id-ring), 0 20px 50px -30px rgba(24,32,58,.25); }
.ov-hero::before { content: ''; position: absolute; inset: 0; background: var(--id-glow); opacity: .55; z-index: -1; }
.ov-hero::after { content: ''; position: absolute; right: -60px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.85), transparent 65%); z-index: -1; }
.ov-hero h1 { font-size: clamp(26px, 3vw, 36px); letter-spacing: -0.035em; }
.ov-hero p { color: var(--cs-ink2); margin-top: 6px; font-size: 15.5px; overflow-wrap: anywhere; }
.ov-hero .ov-hero-tx { min-width: 0; flex: 1; }
.ov-hero .ov-hero-act { display: flex; gap: 10px; flex-wrap: wrap; }
.ov-stat { display: flex; align-items: baseline; gap: 8px; margin: 2px 0 14px; }
.ov-stat b { font-size: 30px; letter-spacing: -0.03em; line-height: 1; }
.ov-stat span { color: var(--cs-mute); font-size: 14px; }
.ov-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: var(--cs-ink2); }
.ov-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ov-legend b { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.ov-sec-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--cs-line); font-size: 14.5px; }
.ov-sec-line:first-of-type { border-top: 0; padding-top: 2px; }
.ov-sec-line .id-ic { color: var(--cs-mute); }
.ov-sec-line span { flex: 1; min-width: 0; }
.ov-sec-line em { font-style: normal; color: var(--cs-mute); font-size: 13.5px; white-space: nowrap; }
.ov-h2 { font-size: 19px; letter-spacing: -0.02em; margin: 36px 0 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ov-h2 a { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.ov-apps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.ov-app { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 20px; border-radius: 20px; background: #fff; box-shadow: var(--id-ring), var(--id-shadow); color: var(--cs-ink);
  transition: transform .2s var(--cs-ease), box-shadow .2s; min-height: 168px; }
.ov-app:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--id-ring), var(--id-shadow-hover); }
.ov-app strong { font-size: 15.5px; display: block; }
.ov-app span.d { color: var(--cs-mute); font-size: 13.5px; line-height: 1.45; display: block; margin-top: 3px; }
.ov-app .go { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--cs-accent); display: inline-flex; align-items: center; gap: 5px; }
.ov-app .go .id-ic { width: 13px; height: 13px; transition: transform .2s var(--cs-ease); }
.ov-app:hover .go .id-ic { transform: translate(2px, -2px); }
.pm { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; flex: none; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), 0 8px 18px -10px rgba(24,32,58,.5); }
.pm .id-ic { width: 22px; height: 22px; }
.pm.compliance, .pm.plan { background: linear-gradient(140deg, #26357a, #18203a); }
.pm.docs { background: linear-gradient(140deg, #5577f0, #3049c4); }
.pm.sheets { background: linear-gradient(140deg, #37b77a, #1b8452); }
.pm.slides { background: linear-gradient(140deg, #f29a45, #d4620f); }
.pm.browser { background: linear-gradient(140deg, #8a7cf0, #5a46cf); }

/* quick create */
.ov-new { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ov-new-it { display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: var(--id-ring), var(--id-shadow); color: var(--cs-ink); overflow: hidden; transition: transform .2s var(--cs-ease), box-shadow .2s; }
.ov-new-it:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--id-ring), var(--id-shadow-hover); }
.ov-new-it .fx-thumb { height: 150px; }
.ov-new-it .fx-thumb svg.pg { margin-top: 44px; }
.ov-new-it:hover .fx-thumb svg.pg { transform: translateY(-4px); }
.ov-new-it .plus { position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 20px; background: var(--cs-ink); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 22px -10px rgba(24,32,58,.6); transition: transform .2s var(--cs-ease); }
.ov-new-it:hover .plus { transform: scale(1.08) rotate(90deg); }
.ov-new-it .plus .id-ic { width: 18px; height: 18px; }
.ov-new-tx { display: flex; align-items: center; gap: 12px; padding: 14px 16px 16px; }
.ov-new-tx strong { display: block; font-size: 15.5px; }
.ov-new-tx .d { display: block; color: var(--cs-mute); font-size: 13px; }
@media (max-width: 720px) {
  .ov-new { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ov-new-it { flex-direction: row; align-items: center; }
  .ov-new-it .fx-thumb { width: 104px; height: 76px; flex: none; margin: 8px; }
  .ov-new-it .fx-thumb svg.pg { width: 46px; height: 52px; margin-top: 26px; }
  .ov-new-it .fx-thumb.slides svg.pg { width: 70px; height: 42px; margin-top: 18px; }
  .ov-new-it .plus { width: 28px; height: 28px; right: 8px; bottom: 8px; }
  .ov-new-it .plus .id-ic { width: 14px; height: 14px; }
  .ov-new-tx { padding: 0 12px 0 6px; }
  .ov-new-tx .ki { display: none; }
}

/* file rows (overview recent + list view) */
.fr-list { display: grid; }
.fr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 10px 10px; margin: 0 -10px; border-radius: 14px; color: var(--cs-ink); transition: background .15s; }
.fr:hover { background: var(--cs-soft); text-decoration: none; }
.fr + .fr { box-shadow: 0 -1px 0 var(--cs-line); }
.fr:hover + .fr, .fr:hover { box-shadow: none; }
.fr .nm { min-width: 0; }
.fr .nm b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fr .nm span { color: var(--cs-mute); font-size: 13px; }
.fr .when { color: var(--cs-mute); font-size: 13px; white-space: nowrap; }
.ki { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.ki .id-ic { width: 20px; height: 20px; }
.ki.docs { background: var(--id-docs-bg); color: var(--id-docs); }
.ki.sheets { background: var(--id-sheets-bg); color: var(--id-sheets); }
.ki.slides { background: var(--id-slides-bg); color: var(--id-slides); }
.ki.other { background: var(--id-other-bg); color: var(--id-other); }
.ki.folder { background: #eef1f8; color: var(--id-folder); }
.ki.sm { width: 32px; height: 32px; border-radius: 10px; }
.ki.sm .id-ic { width: 17px; height: 17px; }

/* empty states */
.id-empty { text-align: center; padding: 44px 20px 40px; display: grid; justify-items: center; }
.id-empty svg.ill { width: 180px; height: 128px; margin-bottom: 18px; }
.id-empty h3 { font-size: 17px; letter-spacing: -0.015em; }
.id-empty p { color: var(--cs-mute); font-size: 14.5px; margin-top: 6px; max-width: 360px; line-height: 1.55; }
.id-empty .id-btn { margin-top: 18px; }
.ill .fl { animation: id-float 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.ill .fl2 { animation: id-float 7s 1s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes id-float { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .ill .fl, .ill .fl2 { animation: none; } }

/* ============================================================ files */
.fx-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.fx-tabs { display: flex; gap: 26px; margin-right: auto; }
.fx-tabs button { border: 0; background: none; padding: 10px 0; font: 600 15px/1.2 var(--cs-font); color: var(--cs-ink2); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color .15s, box-shadow .2s; white-space: nowrap; }
.fx-tabs button:hover { color: var(--cs-ink); }
.fx-tabs button[aria-selected="true"] { color: var(--cs-ink); box-shadow: inset 0 -2px 0 var(--cs-ink); }
.fx-search { position: relative; width: 280px; }
.fx-search .id-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cs-mute); width: 17px; height: 17px; pointer-events: none; }
.fx-search input { height: 42px; padding-left: 40px; border-radius: 21px; font-size: 14.5px; background: #fff; border-color: var(--cs-line2); }
.fx-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.fx-search .x { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; border-radius: 16px; }
.fx-tools { display: flex; align-items: center; gap: 4px; padding: 3px; border-radius: 14px; background: #eceff5; }
.fx-sort { position: relative; }
.fx-sort > button { border: 0; background: transparent; height: 36px; padding: 0 12px; border-radius: 11px; font: 600 13.5px/1 var(--cs-font); color: var(--cs-ink2); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.fx-sort > button:hover { color: var(--cs-ink); background: rgba(255,255,255,.6); }
.fx-sort > button .id-ic { width: 15px; height: 15px; }
.fx-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin: -4px 0 18px; font-size: 15px; min-height: 36px; }
.fx-crumbs button { border: 0; background: none; font: 600 15px/1.2 var(--cs-font); color: var(--cs-ink2); padding: 7px 10px; border-radius: 10px; cursor: pointer; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: background .15s, color .15s; }
.fx-crumbs button:hover { background: rgba(255,255,255,.8); color: var(--cs-ink); }
.fx-crumbs button[aria-current="page"] { color: var(--cs-ink); font-weight: 700; cursor: default; background: none; }
.fx-crumbs button.drop-ok { background: #e6ebfb; color: var(--cs-accent); }
.fx-crumbs .sep { color: var(--cs-line3); width: 14px; height: 14px; }
.fx-results { margin: -6px 0 16px; color: var(--cs-ink2); font-size: 14.5px; }
.fx-h3 { font-size: 14px; color: var(--cs-ink2); font-weight: 700; margin: 4px 0 12px; letter-spacing: 0; }
.fx-zone { position: relative; min-height: 360px; }
.fx-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 26px; }
.fx-folder { position: relative; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 8px 0 12px; border-radius: 16px; background: #fff; box-shadow: var(--id-ring), 0 4px 14px -10px rgba(24,32,58,.18);
  cursor: pointer; transition: box-shadow .18s, transform .18s var(--cs-ease), background .15s; user-select: none; }
.fx-folder:hover { box-shadow: var(--id-ring), var(--id-shadow-hover); transform: translateY(-1px); }
.fx-folder b { flex: 1; min-width: 0; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-folder.drop-ok, .fx-row.drop-ok { background: #e9eefc; box-shadow: 0 0 0 2px var(--cs-accent); }
.fx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.fx-file { position: relative; display: flex; flex-direction: column; border-radius: 18px; background: #fff; box-shadow: var(--id-ring), 0 4px 14px -10px rgba(24,32,58,.18); cursor: pointer;
  transition: box-shadow .2s, transform .2s var(--cs-ease); user-select: none; overflow: hidden; }
.fx-file:hover { box-shadow: var(--id-ring), var(--id-shadow-hover); transform: translateY(-2px); }
.fx-file.is-new { animation: fx-pop .5s var(--cs-ease); }
@keyframes fx-pop { 0% { box-shadow: 0 0 0 3px rgba(29,50,112,.35); transform: scale(.97); } 100% { transform: none; } }
.fx-file.is-sel, .fx-folder.is-sel, .fx-row.is-sel { box-shadow: 0 0 0 2px var(--cs-accent), 0 10px 24px -14px rgba(29,50,112,.4); }
.fx-thumb { position: relative; height: 128px; margin: 8px 8px 0; border-radius: 12px; display: grid; place-items: center; overflow: hidden; }
.fx-thumb.docs { background: linear-gradient(160deg, #f3f6ff, #e6ecff); }
.fx-thumb.sheets { background: linear-gradient(160deg, #f1faf5, #e1f3e9); }
.fx-thumb.slides { background: linear-gradient(160deg, #fff7ef, #fbe9d8); }
.fx-thumb.other { background: linear-gradient(160deg, #f7f8fb, #eceff5); }
.fx-thumb svg.pg { width: 92px; height: 104px; margin-top: 30px; filter: drop-shadow(0 6px 10px rgba(24,32,58,.10)); transition: transform .3s var(--cs-ease); }
.fx-thumb.slides svg.pg { width: 132px; height: 80px; margin-top: 22px; }
.fx-file:hover .fx-thumb svg.pg { transform: translateY(-4px); }
.fx-meta { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 12px 6px 12px 12px; }
.fx-meta .nm { min-width: 0; }
.fx-meta b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-meta span { display: block; color: var(--cs-mute); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-star { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 16px; border: 0; background: rgba(255,255,255,.9); color: var(--cs-mute); display: grid; place-items: center;
  cursor: pointer; opacity: 0; transform: scale(.85); transition: opacity .15s, transform .2s var(--cs-ease), color .15s; box-shadow: 0 2px 8px -2px rgba(24,32,58,.18); }
.fx-file:hover .fx-star, .fx-star:focus-visible, .fx-star.on { opacity: 1; transform: none; }
.fx-star.on { color: #e3a008; }
.fx-star .id-ic { width: 16px; height: 16px; }
.fx-star.pop .id-ic { animation: fx-star .45s var(--cs-ease); }
@keyframes fx-star { 40% { transform: scale(1.35) rotate(-12deg); } }
.fx-starmark { color: #e3a008; width: 14px !important; height: 14px !important; vertical-align: -2px; margin-left: 4px; }

/* list view */
.fx-table { background: #fff; border-radius: 20px; box-shadow: var(--id-ring), var(--id-shadow); padding: 6px 10px; }
.fx-thead, .fx-row { display: grid; grid-template-columns: minmax(0, 1fr) 160px 100px 40px 40px; align-items: center; gap: 12px; padding: 0 10px; }
.fx-thead { height: 44px; color: var(--cs-mute); font-size: 13px; font-weight: 700; box-shadow: inset 0 -1px 0 var(--cs-line); }
.fx-thead button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; justify-self: start; }
.fx-thead button:hover, .fx-thead button.on { color: var(--cs-ink); }
.fx-thead button .id-ic { width: 13px; height: 13px; }
.fx-row { height: 58px; border-radius: 12px; cursor: pointer; transition: background .12s; user-select: none; }
.fx-row + .fx-row { box-shadow: 0 -1px 0 var(--cs-line); }
.fx-row:hover { background: var(--cs-soft); box-shadow: none; }
.fx-row:hover + .fx-row { box-shadow: none; }
.fx-row .nm { display: flex; align-items: center; gap: 12px; min-width: 0; }
.fx-row .nm b { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-row .c { color: var(--cs-ink2); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-row .fx-star { position: static; opacity: 0; box-shadow: none; background: transparent; width: 34px; height: 34px; }
.fx-row:hover .fx-star, .fx-row .fx-star.on { opacity: 1; transform: none; }
.fx-row .fx-star:hover { background: #fff; }

/* drop overlay */
.fx-drop { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(238,242,252,.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; pointer-events: none; }
.fx-drop.on { opacity: 1; visibility: visible; }
.fx-drop-in { display: grid; justify-items: center; gap: 10px; padding: 46px 64px; border-radius: 32px; background: rgba(255,255,255,.9); border: 2px dashed #9eabd6; text-align: center;
  box-shadow: 0 40px 90px -36px rgba(24,32,58,.45); transform: scale(.96); transition: transform .25s var(--cs-ease); }
.fx-drop.on .fx-drop-in { transform: none; }
.fx-drop-in svg.ill { width: 120px; height: 96px; }
.fx-drop-in svg .arrow { animation: fx-bob 1.2s ease-in-out infinite; }
@keyframes fx-bob { 50% { transform: translateY(-6px); } }
.fx-drop-in h3 { font-size: 20px; letter-spacing: -0.02em; }
.fx-drop-in p { color: var(--cs-ink2); font-size: 14.5px; }

/* uploads panel */
.up { position: fixed; right: 24px; bottom: 24px; width: 360px; max-width: calc(100vw - 32px); z-index: 450; background: #fff; border-radius: 20px; box-shadow: 0 30px 70px -24px rgba(24,32,58,.42), 0 0 0 1px rgba(24,32,58,.05);
  overflow: hidden; animation: id-toast-in .3s var(--cs-ease); }
.up-hd { display: flex; align-items: center; gap: 10px; padding: 14px 10px 14px 18px; background: var(--cs-ink); color: #fff; }
.up-hd b { flex: 1; font-size: 14.5px; }
.up-hd .id-iconbtn { color: rgba(255,255,255,.8); width: 32px; height: 32px; border-radius: 10px; }
.up-hd .id-iconbtn:hover { background: rgba(255,255,255,.12); color: #fff; }
.up-hd .id-iconbtn .id-ic { transition: transform .2s; }
.up.min .up-hd .tog .id-ic { transform: rotate(180deg); }
.up-list { max-height: 260px; overflow-y: auto; padding: 6px 0; }
.up.min .up-list { display: none; }
.up-it { display: grid; grid-template-columns: 32px minmax(0, 1fr) 24px; gap: 12px; align-items: center; padding: 10px 16px; }
.up-it .nm b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up-it .nm span { display: block; font-size: 12.5px; color: var(--cs-mute); margin-top: 2px; }
.up-it .nm span.bad { color: var(--cs-rose); font-weight: 600; }
.up-bar { height: 4px; border-radius: 2px; background: #edf0f6; margin-top: 7px; overflow: hidden; }
.up-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #1d3270, #5f74cf); border-radius: 2px; transition: width .25s; }
.up-it.done .up-bar, .up-it.bad .up-bar { display: none; }
.up-st { width: 24px; height: 24px; display: grid; place-items: center; }
.up-st .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--cs-mint-strong); color: #fff; display: grid; place-items: center; animation: fx-pop .4s var(--cs-ease); }
.up-st .ok .id-ic { width: 13px; height: 13px; }
.up-st .bad { color: var(--cs-rose-strong); }
.up-st svg.ring { width: 22px; height: 22px; transform: rotate(-90deg); }

/* popover menu */
.id-menu { position: fixed; z-index: 470; min-width: 220px; background: #fff; border-radius: 16px; padding: 7px; box-shadow: 0 30px 70px -22px rgba(24,32,58,.36), 0 0 0 1px rgba(24,32,58,.06);
  animation: id-menu-in .14s var(--cs-ease); transform-origin: top left; }
@keyframes id-menu-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.id-menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--cs-ink); font: 500 14.5px/1.3 var(--cs-font); text-align: left; cursor: pointer; white-space: nowrap; }
.id-menu button:hover, .id-menu button:focus-visible { background: #f3f5fa; outline: none; box-shadow: none; }
.id-menu button .id-ic { width: 18px; height: 18px; color: var(--cs-ink2); }
.id-menu button.danger, .id-menu button.danger .id-ic { color: var(--cs-rose); }
.id-menu button .k { margin-left: auto; color: var(--cs-mute); font-size: 12.5px; }
.id-menu hr { border: 0; height: 1px; background: var(--cs-line); margin: 6px 4px; }
.id-menu .ki { width: 30px; height: 30px; border-radius: 9px; }
.id-menu .ki .id-ic { width: 16px; height: 16px; color: inherit; }
.id-menu button.on { font-weight: 700; }
.id-menu button.on::after { content: ''; margin-left: auto; width: 16px; height: 16px; background: var(--cs-accent); -webkit-mask: var(--ph-check) center / contain no-repeat; mask: var(--ph-check) center / contain no-repeat; }

/* dialogs */
.id-dlg { position: fixed; inset: 0; z-index: 480; display: grid; place-items: center; padding: 16px; background: rgba(24,32,58,.32); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: id-fade .18s; }
.id-dlg.out { animation: id-fade-out .16s forwards; }
@keyframes id-fade { from { opacity: 0; } }
@keyframes id-fade-out { to { opacity: 0; } }
.id-dlg-box { width: 100%; max-width: 440px; background: #fff; border-radius: 26px; padding: 28px; box-shadow: var(--cs-shadow-modal); animation: id-dlg-in .26s var(--cs-ease); max-height: calc(100vh - 32px); overflow-y: auto; }
.id-dlg-box.wide { max-width: 520px; }
@keyframes id-dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.id-dlg-box h2 { font-size: 21px; letter-spacing: -0.02em; }
.id-dlg-box > p { color: var(--cs-ink2); font-size: 14.5px; margin-top: 8px; line-height: 1.55; }
.id-dlg-body { margin-top: 20px; display: grid; gap: 14px; }
.id-dlg-act { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.mv-list { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--cs-line2); max-height: 280px; overflow-y: auto; padding: 6px; min-height: 120px; }
.mv-crumb { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--cs-ink2); min-height: 36px; }
.mv-crumb button.back { width: 32px; height: 32px; }
.mv-crumb b { color: var(--cs-ink); }
.mv-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 11px; background: none; font: 600 14.5px/1.3 var(--cs-font); color: var(--cs-ink); cursor: pointer; text-align: left; }
.mv-it:hover { background: var(--cs-soft); }
.mv-it[disabled] { opacity: .45; cursor: not-allowed; }
.mv-it .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-it .id-ic.c { color: var(--cs-mute); width: 15px; height: 15px; }
.mv-empty { padding: 30px 10px; text-align: center; color: var(--cs-mute); font-size: 14px; }

/* drawer */
.id-drawer-bg { position: fixed; inset: 0; z-index: 460; background: rgba(24,32,58,.22); animation: id-fade .2s; }
.id-drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 461; width: 420px; max-width: calc(100vw - 24px); background: #fff; border-radius: 26px; box-shadow: var(--cs-shadow-modal);
  display: flex; flex-direction: column; animation: id-drawer-in .32s var(--cs-ease); }
.id-drawer.out { animation: id-drawer-out .22s ease forwards; }
@keyframes id-drawer-in { from { transform: translateX(40px); opacity: 0; } }
@keyframes id-drawer-out { to { transform: translateX(40px); opacity: 0; } }
.id-drawer-hd { display: flex; align-items: flex-start; gap: 14px; padding: 24px 18px 18px 24px; border-bottom: 1px solid var(--cs-line); }
.id-drawer-hd .t { flex: 1; min-width: 0; }
.id-drawer-hd h2 { font-size: 19px; letter-spacing: -0.02em; }
.id-drawer-hd p { color: var(--cs-mute); font-size: 13.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.id-drawer-body { flex: 1; overflow-y: auto; padding: 14px 24px 24px; }
.id-drawer-ft { padding: 16px 24px 22px; border-top: 1px solid var(--cs-line); color: var(--cs-mute); font-size: 13px; line-height: 1.5; }
.vh { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 0 16px; }
.vh::before { content: ''; position: absolute; left: 10px; top: 0; bottom: 0; width: 2px; background: var(--cs-line); }
.vh:first-child::before { top: 22px; }
.vh:last-child::before { bottom: calc(100% - 22px); }
.vh .dot { position: relative; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--cs-line3); margin: 7px 0 0 5px; }
.vh.cur .dot { background: var(--cs-accent); box-shadow: 0 0 0 4px rgba(29,50,112,.16); }
.vh b { font-size: 15px; }
.vh .m { display: block; color: var(--cs-mute); font-size: 13px; margin-top: 2px; }
.vh .a { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* ============================================================ storage */
.st-big { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 34px; align-items: center; }
.st-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.st-num b { font-size: clamp(36px, 4.2vw, 50px); letter-spacing: -0.04em; line-height: 1; }
.st-num span { color: var(--cs-mute); font-size: 16px; }
.st-left { color: var(--cs-ink2); font-size: 14.5px; margin: 10px 0 20px; }
.st-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.st-k { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 14px; border-radius: 16px; background: var(--cs-soft); }
.st-k i { width: 10px; height: 10px; border-radius: 3px; }
.st-k b { font-size: 14px; }
.st-k span { grid-column: 2; color: var(--cs-mute); font-size: 13px; }
.st-ring { position: relative; width: 220px; height: 220px; justify-self: center; }
.st-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.st-ring circle { fill: none; stroke-width: 16; }
.st-ring .bg { stroke: #edf0f6; }
.st-ring .seg { stroke-linecap: butt; transition: stroke-dasharray .9s var(--cs-ease), stroke-dashoffset .9s var(--cs-ease); }
.st-ring .c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.st-ring .c b { font-size: 34px; letter-spacing: -0.03em; line-height: 1; }
.st-ring .c span { color: var(--cs-mute); font-size: 13px; margin-top: 6px; }
.st-plan { display: flex; align-items: center; gap: 18px; }
.st-plan .pm { width: 52px; height: 52px; border-radius: 16px; }
.st-plan h2 { font-size: 18px; }
.st-plan p { color: var(--cs-ink2); font-size: 14.5px; margin-top: 4px; line-height: 1.55; }
.st-tip { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--cs-line); }
.st-tip:first-of-type { border-top: 0; }
.st-tip .tx { flex: 1; min-width: 0; font-size: 14.5px; }
.st-tip .tx span { display: block; color: var(--cs-mute); font-size: 13px; }

/* ============================================================ profile + security */
.pf { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 34px; }
.pf-av { align-self: start; display: grid; justify-items: center; align-content: start; gap: 14px; padding: 22px 12px; border-radius: 20px; background: var(--cs-soft); text-align: center; }
.pf-av b { font-size: 16px; overflow-wrap: anywhere; }
.pf-av > span:not(.id-av) { color: var(--cs-mute); font-size: 13px; margin-top: -10px; overflow-wrap: anywhere; }
.pf-form { display: grid; gap: 20px; }
.sw { display: flex; flex-wrap: wrap; gap: 10px; }
.sw label { position: relative; cursor: pointer; }
.sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw span { display: block; width: 34px; height: 34px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .18s var(--cs-ease), box-shadow .18s; }
.sw label:hover span { transform: scale(1.08); }
.sw input:checked + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cs-ink); }
.sw input:focus-visible + span { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--cs-accent), 0 0 0 9px rgba(29,50,112,.15); }
.pf-act { display: flex; align-items: center; gap: 14px; padding-top: 4px; }
.pf-saved { color: var(--cs-mint); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; }
.pf-saved.on { opacity: 1; transform: none; }
.pf-saved .id-ic { width: 16px; height: 16px; }
.ss { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--cs-line); }
.ss:first-child { border-top: 0; padding-top: 4px; }
.ss .dv { width: 44px; height: 44px; border-radius: 14px; background: var(--cs-bg); color: var(--cs-ink2); display: grid; place-items: center; }
.ss .dv .id-ic { width: 21px; height: 21px; }
.ss b { font-size: 15px; display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ss .here { display: inline-flex; align-items: center; gap: 6px; color: var(--cs-mint); font-size: 13px; font-weight: 700; }
.ss .here::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cs-dot-ok); box-shadow: 0 0 0 3px rgba(31,154,98,.15); }
.ss .m { display: block; color: var(--cs-mute); font-size: 13px; margin-top: 2px; }
.ss.gone { animation: ss-out .3s forwards; }
@keyframes ss-out { to { opacity: 0; transform: translateX(16px); } }
.ac-danger { box-shadow: 0 0 0 1px #f6d7d2, var(--id-shadow); }
.ac-danger h2 { color: var(--cs-rose); }
.ac-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ac-row > div { min-width: 0; flex: 1 1 320px; }
.del-box { display: grid; gap: 12px; margin-top: 18px; max-width: 460px; }
.del-box .act { display: flex; gap: 10px; flex-wrap: wrap; }

/* full-page states (loading / error / goodbye) */
.ac-state { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.ac-state > div { display: grid; justify-items: center; max-width: 420px; }
.ac-state h1 { font-size: 26px; letter-spacing: -0.03em; margin-top: 10px; }
.ac-state p { color: var(--cs-ink2); margin-top: 8px; }
.ac-state .id-btn { margin-top: 20px; }
.ac-state svg.ill { width: 180px; height: 128px; margin-bottom: 8px; }
.ac-shell.is-state { grid-template-columns: minmax(0, 1fr); }
.ac-shell.is-state .ac-nav { display: none; }

/* skeleton layouts */
.sk-hero { height: 146px; border-radius: 28px; }
.sk-card { height: 190px; border-radius: 22px; }
.sk-tile { height: 168px; border-radius: 20px; }
.sk-file { height: 186px; border-radius: 18px; }
.sk-row { height: 58px; border-radius: 12px; margin-bottom: 6px; }

/* ============================================================ responsive */
@media (max-width: 1180px) {
  .ov-apps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-big { grid-template-columns: minmax(0, 1fr); }
  .st-ring { display: none; }
}
@media (max-width: 960px) {
  .ac-top { padding: 0 16px; height: 64px; }
  .ac-top-links { display: none; }
  .ac-shell { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 16px 90px; }
  .ac-nav { position: sticky; top: 64px; z-index: 150; display: flex; gap: 4px; overflow-x: auto; margin: 0 -16px 18px; padding: 8px 16px; scrollbar-width: none;
    background: rgba(245,247,251,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .ac-nav::-webkit-scrollbar { display: none; }
  .ac-nav a { height: 40px; padding: 0 14px; font-size: 14.5px; gap: 8px; flex: none; border-radius: 13px; }
  .ac-nav a .id-ic { width: 17px; height: 17px; }
  .ac-quota { display: none; }
  .fx-search { width: 100%; order: 3; }
  .fx-tabs { width: 100%; overflow-x: auto; scrollbar-width: none; gap: 22px; }
  .pf { grid-template-columns: minmax(0, 1fr); gap: 22px; }
}
@media (max-width: 720px) {
  .ac-grid2 { grid-template-columns: minmax(0, 1fr); }
  .ov-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ov-app { min-height: 150px; padding: 16px; }
  .ov-app:last-child:nth-child(odd) { grid-column: 1 / -1; min-height: 0; }
  .ov-hero { flex-direction: column; align-items: flex-start; padding: 26px 22px; gap: 16px; border-radius: 24px; }
  .ac-card { padding: 20px; border-radius: 20px; }
  .fx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .fx-folders { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .fx-thumb { height: 104px; }
  .fx-thumb svg.pg { width: 74px; height: 86px; margin-top: 26px; }
  .fx-thumb.slides svg.pg { width: 106px; height: 64px; }
  .fx-star { opacity: 1; transform: none; }
  .fx-star:not(.on) { display: none; }
  .fx-thead { display: none; }
  .fx-table { padding: 4px 8px; }
  .fx-row { grid-template-columns: minmax(0, 1fr) 36px 36px; height: auto; min-height: 62px; padding: 8px 6px; gap: 6px; }
  .fx-row .c { display: none; }
  .fx-row .nm .sub { display: block !important; }
  .fx-row .fx-star:not(.on) { visibility: hidden; }
  .st-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .up { right: 16px; bottom: 16px; left: 16px; width: auto; }
  .id-toasts { bottom: 20px; width: calc(100vw - 32px); }
  .st-plan { align-items: flex-start; }
  .id-dlg { align-items: end; padding: 0; }
  .id-dlg-box { border-radius: 26px 26px 0 0; max-width: none; padding: 26px 20px 24px; animation: id-sheet-in .3s var(--cs-ease); }
  @keyframes id-sheet-in { from { transform: translateY(40px); opacity: 0; } }
  .id-dlg-act { flex-direction: column-reverse; }
  .id-dlg-act .id-btn { width: 100%; height: 48px; }
  .id-drawer { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; height: 82vh; border-radius: 26px 26px 0 0; animation: id-sheet-in .3s var(--cs-ease); }
  .ss { grid-template-columns: 40px minmax(0, 1fr); }
  .ss .dv { width: 40px; height: 40px; }
  .ss > .id-btn { grid-column: 2; justify-self: start; }
  .fx-folder { height: 56px; }

  /* Phone: sections become a bottom tab bar, like the Suite apps' fixed chrome. */
  .ac-shell { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .ac-nav { position: fixed; top: auto; left: 0; right: 0; bottom: 0; margin: 0; z-index: 300; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    gap: 2px; overflow: visible; padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(250,251,253,.92); box-shadow: 0 -1px 0 rgba(24,32,58,.08); }
  .ac-nav a { flex-direction: column; justify-content: center; gap: 3px; height: 54px; padding: 0 2px; border-radius: 14px; font-size: 11.5px; font-weight: 600; letter-spacing: -.1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .ac-nav a .id-ic { width: 21px; height: 21px; flex: none; }
  .ac-nav a[aria-current="page"] { background: transparent; box-shadow: none; color: var(--cs-accent); }
  .up { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .id-toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
.fx-row .nm .sub { display: none; color: var(--cs-mute); font-size: 12.5px; font-weight: 400; }
.fx-row .nm .t { min-width: 0; display: block; }
.fx-row .nm .t b { display: block; }

/* ---- shared portal: link to the other portal under the nav */
.ac-nav .ac-nav-id { margin-top: 10px; height: auto; min-height: 46px; padding: 10px 16px; font-size: 14px; color: var(--cs-ink2); border: 1px dashed rgba(24,32,58,.14); }
.ac-nav .ac-nav-id span { flex: 1; line-height: 1.3; }
.ac-nav .ac-nav-id .ext { width: 14px; height: 14px; }
.ac-foot { margin-top: 14px; }
.id-badge { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 9px; background: var(--cs-bg); color: var(--cs-ink2); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.id-badge .id-ic { width: 14px; height: 14px; }
.id-badge.ok { background: #e9f6ef; color: #17784b; }
.id-badge.wait { background: #fdf3e2; color: #8a5300; }
.id-badge.bad { background: #fdecea; color: #b0352a; }
.id-badge.role { background: #eef1fb; color: var(--cs-accent); }
.brandmark { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 18px; color: #fff; }
.brandmark.g { background: linear-gradient(140deg, #4285f4, #34a853); }
.brandmark.ms { background: linear-gradient(140deg, #f25022, #7fba00 55%, #00a4ef); }
.ss .brandmark { width: 44px; height: 44px; }

/* identity overview */
.ov-apps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ov-app-meter { display: grid; gap: 7px; }
.ov-app-meter .id-meter { height: 6px; }
.ov-lines { padding: 10px 26px; }
.ov-lines .ov-sec-line { color: var(--cs-ink); padding: 15px 0; }
.ov-lines .ov-sec-line:hover { text-decoration: none; }
.ov-lines .ov-sec-line:hover span { color: var(--cs-accent); }

/* profile address */
.pf-addr { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; min-width: 0; }
.pf-addr legend { padding: 0; margin-bottom: 4px; }
.pf-addr legend em { font-style: normal; color: var(--cs-mute); font-weight: 400; }
.of-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.of-grid > .full, .of-grid > .of-street { grid-column: 1 / -1; }
.of-street { display: grid; grid-template-columns: minmax(0, 1fr) 110px; gap: 14px; }
.of-sub { font-size: 13.5px; font-weight: 700; color: var(--cs-ink2); margin-top: 6px; }
.id-ta { height: auto; padding: 12px 16px; resize: vertical; font: inherit; }
.id-select-sm { height: 36px; width: auto; padding: 0 34px 0 12px; font-size: 13.5px; border-radius: 11px; background-position: right 12px center; }

/* organisations */
.org-list { display: grid; gap: 14px; }
.org-it { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto 18px; gap: 16px; align-items: center; padding: 20px 22px; border-radius: var(--id-r); background: #fff; box-shadow: var(--id-ring), var(--id-shadow); color: var(--cs-ink); transition: transform .2s var(--cs-ease), box-shadow .2s; }
.org-it:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--id-ring), var(--id-shadow-hover); }
.org-tx { min-width: 0; display: grid; gap: 4px; }
.org-tx b { font-size: 16.5px; overflow-wrap: anywhere; }
.org-tx .m { color: var(--cs-mute); font-size: 13.5px; overflow-wrap: anywhere; }
.org-badges { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.org-n { color: var(--cs-mute); font-size: 13.5px; white-space: nowrap; }
.org-it .chev { width: 16px; height: 16px; color: var(--cs-mute); }
.org-back { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 700; margin: 4px 0 10px; }
.org-back .id-ic { width: 15px; height: 15px; }
.org-head .ac-sub { margin-top: 10px; }
.org-rows { display: grid; }
.org-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-top: 1px solid var(--cs-line); font-size: 14.5px; }
.org-row:first-child { border-top: 0; padding-top: 0; }
.org-row span { color: var(--cs-mute); }
.org-row b { font-weight: 600; overflow-wrap: anywhere; }
.org-doc { display: flex; gap: 8px; align-items: flex-start; }
.org-doc .id-ic { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--cs-mute); }
.org-up { flex: none; cursor: pointer; }
.org-prog { margin-top: 16px; display: grid; gap: 8px; font-size: 13.5px; color: var(--cs-ink2); }
.org-h3 { margin-top: 18px; }
.ss.mem > .id-av { width: 44px; height: 44px; font-size: 15px; }
.mem-ctl { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.iv-card { max-width: 560px; margin: 24px auto 0; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 36px 28px; }
.iv-card .org-badges { justify-content: center; color: var(--cs-mute); font-size: 14px; }
.iv-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.vd-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.vd-card { width: 100%; max-width: 520px; display: grid; gap: 14px; }
.vd-form { display: grid; gap: 14px; justify-items: start; }
.vd-form .id-field { width: 100%; }
.vd-form textarea { height: auto; padding: 12px 16px; font: inherit; }

@media (max-width: 720px) {
  .ac-nav .ac-nav-id, .ac-nav .ac-quota { display: none; }
  .ov-apps.three { grid-template-columns: minmax(0, 1fr); }
  .ov-lines { padding: 6px 18px; }
  .ac-row { flex-direction: column; align-items: stretch; }
  .ac-row > .id-btn, .ac-row > .org-up { align-self: flex-start; }
  .of-grid { grid-template-columns: minmax(0, 1fr); }
  .of-street { grid-template-columns: minmax(0, 1fr) 96px; }
  .org-it { grid-template-columns: 44px minmax(0, 1fr) 16px; padding: 16px; gap: 12px; }
  .org-n { display: none; }
  .org-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ss.mem { grid-template-columns: 40px minmax(0, 1fr); }
  .ss.mem > .id-av { width: 40px; height: 40px; }
  .mem-ctl { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; }
}
.ac-nav a .sh { display: none; }
@media (max-width: 720px) {
  .ac-row > div { flex: none; }
  .ac-nav a .lg { display: none; }
  .ac-nav a .sh { display: inline; }
  body[data-app="identity"] .ac-nav a { font-size: 11px; }
}
@media (max-width: 720px) {
  .ss > .id-badge { grid-column: 2; justify-self: start; }
  .ov-lines .ov-sec-line em { display: none; }
}
