/* 1Mail Business — ui/business/01–07 (1440 × 1000: nav 232, top 88, gutter 32, step 8) */
.btn:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--teal); }
.btn { border-radius: 10px; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 232px 1fr; }

/* ---------- Sidebar ---------- */
.bside { background: #fff; display: flex; flex-direction: column; padding: 22px 16px 20px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.bside .brand { padding-left: 8px; gap: 3px; } .bside .brand img { width: 32px; height: 32px; } .bside .brand b { font-size: 30px; }
.bside .tag { font-size: 10px; font-weight: 700; color: var(--muted); padding-left: 9px; margin-top: 6px; letter-spacing: .02em; }
.org-switch { margin-top: 18px; display: grid; grid-template-columns: 40px 1fr 20px; align-items: center; gap: 11px; height: 70px; padding: 0 12px;
  border-radius: 12px; background: var(--paper); border: 0; text-align: left; cursor: pointer; width: 100%; }
.org-tile { width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 20px; font-weight: 700; }
.org-switch b { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-switch span { font-size: 11px; color: var(--muted); }
.bnav { display: grid; gap: 8px; margin-top: 27px; }
.bnav a { position: relative; display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 10px; font-size: 13px; text-decoration: none; color: var(--ink); }
.bnav a:hover { background: var(--hover); }
.bnav a.active { background: var(--teal-soft); color: var(--teal); font-weight: 700; }
.bnav a.active::before { content: ""; position: absolute; left: 0; top: 12px; height: 22px; width: 3px; border-radius: 1.5px; background: var(--teal); }
.bicon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.promo { margin-top: auto; background: var(--ink); color: #fff; border-radius: 14px; padding: 18px 16px 16px; text-decoration: none; display: grid; gap: 0; }
.promo b { font-size: 14px; line-height: 22px; }
.promo hr { border: 0; border-top: 1px solid #31424A; margin: 18px 0 12px; }
.promo span { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--on-ink-muted); }
.promo .icon { color: var(--coral); width: 18px; height: 18px; }
.side-link { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; margin-top: 22px; font-size: 13px; text-decoration: none; color: var(--ink); border-radius: 10px; }
.side-link:hover { background: var(--hover); }
.user-chip { display: grid; grid-template-columns: 30px 1fr 20px; gap: 10px; align-items: center; margin-top: 18px; padding: 16px 4px 0; border-top: 1px solid var(--border);
  background: transparent; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; cursor: pointer; width: 100%; }
.user-chip .avatar { width: 30px; height: 30px; font-size: 11px; }
.user-chip b { font-size: 12px; display: block; } .user-chip span { font-size: 11px; color: var(--muted); }
.popover { position: absolute; z-index: 50; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 16px 40px rgba(24,37,43,.14); padding: 6px; min-width: 220px; display: grid; }
.popover button, .popover a { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border: 0; background: transparent; border-radius: 8px; font-size: 13px; text-align: left; cursor: pointer; text-decoration: none; color: var(--ink); }
.popover button:hover, .popover a:hover { background: var(--hover); }
.popover .danger { color: var(--action); }
.popover hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

/* ---------- Top & page ---------- */
.bmain { min-width: 0; display: flex; flex-direction: column; }
.btop { height: 88px; background: #fff; display: flex; align-items: center; padding: 0 32px; gap: 16px; position: sticky; top: 0; z-index: 5; }
.btop .crumb { display: grid; gap: 7px; }
.btop .crumb b { font-size: 14px; }
.btop .right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.btop .ident { height: 28px; padding: 0 12px; border-radius: 14px; background: var(--chip); font-size: 12px; font-weight: 700; color: var(--muted); display: grid; place-items: center; }
.page { padding: 28px 32px 24px; flex: 1; display: grid; gap: 24px; align-content: start; }
.page-head { display: flex; align-items: flex-start; gap: 24px; }
.page-head h1 { font-size: 32px; line-height: 1.25; margin-top: 10px; }
.page-head .sub { font-size: 14px; color: var(--muted); margin-top: 8px; }
.page-head .btn { margin-left: auto; margin-top: 14px; min-width: 220px; }
.foot { display: flex; justify-content: space-between; gap: 16px; padding: 0 32px 18px; font-size: 11px; color: var(--muted); }

/* ---------- Cards & tables ---------- */
.card { padding: 24px; }
.card h2 { font-size: 22px; }
.card .csub { font-size: 13px; color: var(--muted); margin-top: 8px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.stat { display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; align-items: center; padding: 26px 24px 22px; min-height: 145px; text-decoration: none; color: inherit; }
.stat:hover { border-color: #C9D1D0; }
.stat .head { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; }
.stat .head .bicon { color: var(--teal); }
.stat .num { font-size: 40px; font-weight: 700; line-height: 1; }
.stat .note { font-size: 12px; color: var(--muted); line-height: 1.6; }
.stat .note.warn { color: var(--warn-text); }
.banner { display: grid; grid-template-columns: 24px 1fr auto; gap: 18px; align-items: center; border-radius: 14px; padding: 22px 22px 22px 34px; background: var(--warn-bg); }
.banner .icon { color: var(--warn-text); }
.banner b { font-size: 16px; display: block; }
.banner p { font-size: 13px; color: var(--warn-text); margin-top: 6px; }
.banner .btn { min-width: 230px; }
.banner.err { background: var(--danger-bg); }
.banner.err b { color: var(--action); } .banner.err .icon { color: var(--action); }
.banner.err p { color: var(--ink); } .banner.err small { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.banner.ok { background: var(--teal-soft); } .banner.ok .icon, .banner.ok b { color: var(--teal); } .banner.ok p { color: var(--ink); }
.two { display: grid; grid-template-columns: 716fr 404fr; gap: 24px; align-items: start; }
.two-even { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }

.steps { display: grid; gap: 8px; margin-top: 26px; }
.step { display: grid; grid-template-columns: 40px 1fr 24px; gap: 16px; align-items: center; min-height: 76px; padding: 0 16px; border-radius: 12px; text-decoration: none; color: inherit; }
.step:hover { background: var(--hover); }
.step.current { background: var(--paper); }
.step .n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--chip); color: var(--muted); border: 1px solid var(--border); justify-self: center; }
.step.done .n { background: var(--teal); color: #fff; border: 0; }
.step.current .n { background: var(--ink); color: #fff; border: 0; }
.step b { font-size: 15px; display: block; } .step span { font-size: 12px; color: var(--muted); }
.step > .icon { color: var(--muted); }
.card .fine { font-size: 12px; color: var(--muted); margin-top: 18px; }
.events { display: grid; gap: 22px; margin-top: 30px; }
.ev { display: grid; grid-template-columns: 34px 1fr; gap: 13px; }
.ev .tile { width: 34px; height: 34px; border-radius: 8px; background: var(--paper); display: grid; place-items: center; color: var(--muted); }
.ev .tile .icon { width: 18px; height: 18px; }
.ev b { font-size: 13px; display: block; } .ev span { font-size: 12px; color: var(--muted); display: block; margin-top: 2px; } .ev small { font-size: 10px; color: var(--muted); }

.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.searchbox { position: relative; width: 360px; max-width: 100%; }
.searchbox .icon { position: absolute; left: 12px; top: 10px; color: var(--muted); }
.searchbox input { padding-left: 44px; background: var(--paper); border-color: var(--paper); }
.searchbox input:focus { background: #fff; }
.toolbar .select { width: 186px; }
.toolbar .count { margin-left: auto; height: 28px; padding: 0 12px; border-radius: 14px; background: var(--chip); border: 1px solid var(--border); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); }

.tbl { width: 100%; border-collapse: collapse; }
.tbl th { font-size: 10px; font-weight: 700; color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .04em; padding: 14px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--paper); }
.tbl tr.sel td { background: var(--row-selected); }
.tbl tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--teal); }
.tbl tr.warn td { background: #FFF7F3; }
.tbl .strong { font-weight: 700; }
.tbl .muted { color: var(--muted); font-size: 12px; }
.tbl .hint { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.tbl .value { font-weight: 700; word-break: break-all; max-width: 520px; font-size: 13px; }
.tbl .num { text-align: center; font-weight: 700; }
.tbl .person { display: flex; align-items: center; gap: 10px; }
.tbl .person .avatar { width: 28px; height: 28px; font-size: 9px; }
.tbl .cb { width: 44px; }
.tbl input[type=checkbox], .selbar input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }
.table-wrap { overflow-x: auto; }
.domain-cell { display: flex; gap: 14px; align-items: center; }
.domain-cell .icon { color: var(--ink); }
.domain-cell b { font-size: 15px; display: block; } .domain-cell span { font-size: 12px; color: var(--muted); }

.selbar { display: flex; align-items: center; gap: 22px; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--teal-soft); font-size: 13px; }
.selbar b { color: var(--teal); }
.selbar button { border: 0; background: transparent; font-size: 13px; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; color: var(--ink); height: 36px; padding: 0 8px; border-radius: 8px; font-weight: 700; }
.selbar button.plain { font-weight: 400; color: var(--muted); }
.selbar button:hover { background: rgba(8,127,118,.1); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 12px; color: var(--muted); }
.pager .pages { display: flex; gap: 10px; }
.pager .pages button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: #fff; font-weight: 700; cursor: pointer; }
.pager .pages button[aria-current="page"] { border-color: var(--ink); }

.tabs { display: flex; gap: 40px; border-bottom: 1px solid var(--border); }
.tabs button { height: 44px; border: 0; background: transparent; font-size: 14px; color: var(--muted); cursor: pointer; position: relative; padding: 0; }
.tabs button[aria-selected="true"] { color: var(--teal); font-weight: 700; }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--teal); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-decoration: none; height: 28px; }
.back:hover { color: var(--ink); }
.title-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.title-row h1 { font-size: 34px; margin: 0; }
.copy { width: 36px; height: 36px; }

.tips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin-top: 18px; font-size: 12px; }
.dark-card { background: var(--ink); color: #fff; border-radius: 16px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.dark-card h3 { font-size: 18px; } .dark-card p { font-size: 12px; color: #D1DADD; line-height: 1.7; } .dark-card small { font-size: 10px; color: var(--on-ink-muted); }
.dark-card hr { border: 0; border-top: 1px solid #31424A; margin: 4px 0; width: 100%; }

.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role { padding: 22px 24px; display: grid; gap: 6px; }
.role .rh { display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.role .rt { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; }
.role .rt .icon { width: 20px; height: 20px; }
.role p { font-size: 12px; } .role small { font-size: 11px; color: var(--muted); }
.you { height: 22px; padding: 0 10px; border-radius: 11px; background: var(--chip); border: 1px solid var(--border); font-size: 11px; color: var(--muted); display: inline-grid; place-items: center; margin-left: 16px; }
.role-select { height: 36px; border: 0; background-color: transparent; font-weight: 700; font-size: 12px; padding-left: 0; width: 170px; cursor: pointer; }
.pending { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--border); }
.pending:first-of-type { border-top: 0; }
.pending b { font-size: 14px; } .pending span { font-size: 11px; color: var(--muted); } .pending em { font-style: normal; font-size: 12px; color: var(--warn-text); }
.pending .row-actions { display: flex; gap: 10px; align-items: center; margin-top: 14px; }

.org-profile { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; margin: 22px 0 26px; }
.org-profile .org-tile { width: 56px; height: 56px; font-size: 24px; border-radius: 12px; }
.form-grid { display: grid; gap: 22px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.with-copy { position: relative; } .with-copy .icon-btn { position: absolute; right: 2px; top: 0; color: var(--muted); }
.saved-line { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--teal); }
.settings-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 20px; margin-top: 8px; }
.side-cards { display: grid; gap: 20px; }
.link-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; color: var(--teal); text-decoration: none; margin-top: 16px; border: 0; background: transparent; cursor: pointer; padding: 0; width: 100%; }
.warn-card { background: var(--warn-bg); border-radius: 16px; padding: 22px 24px; display: grid; gap: 10px; }
.warn-card .h { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 700; } .warn-card .icon { color: var(--warn-text); }
.warn-card p { font-size: 11px; color: var(--warn-text); line-height: 1.7; }

.empty-b { display: grid; justify-items: center; text-align: center; padding: 72px 24px 32px; gap: 12px; }
.empty-b .art { width: 96px; height: 96px; border-radius: 50%; background: var(--paper); display: grid; place-items: center; position: relative; margin-bottom: 14px; }
.empty-b .art .mailtile { width: 34px; height: 30px; border-radius: 8px; background: var(--lime); display: grid; place-items: center; }
.empty-b .art .lens { position: absolute; right: -2px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; border: 4px solid #fff; }
.empty-b h2 { font-size: 26px; } .empty-b p { font-size: 13px; color: var(--muted); max-width: 420px; line-height: 1.6; }
.empty-b .btn { margin-top: 16px; }
.empty-b .note { border-top: 1px solid var(--border); margin-top: 40px; padding-top: 18px; width: min(560px, 100%); font-size: 11px; color: var(--muted); }

/* Onboarding / auth */
.center { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; }
.ob-card { width: min(480px, 100%); background: #fff; border-radius: var(--r-card); padding: 40px 36px 34px; display: grid; gap: 20px; }
.ob-card h1 { font-size: 32px; line-height: 1.15; }
.ob-card .lead { color: var(--muted); margin-top: -6px; }
.ob-card form { display: grid; gap: 16px; }
.ob-card .btn-primary { width: 100%; }
.ob-card .alt { font-size: 13px; color: var(--muted); text-align: center; } .ob-card .alt a { color: var(--action); font-weight: 700; text-decoration: none; }
.invite-card { border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.invite-card b { display: block; font-size: 14px; } .invite-card span { font-size: 12px; color: var(--muted); }
.gen { display: flex; gap: 8px; } .gen .input { flex: 1; }
.dns-table-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

@media (max-width: 1200px) {
  .grid3, .roles { grid-template-columns: 1fr; }
  .two, .two-even { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .bside { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform var(--t-panel) var(--ease); box-shadow: 20px 0 60px rgba(24,37,43,.18); }
  .bside.open { transform: none; }
  .btop { padding: 0 16px; height: 72px; }
  .page { padding: 20px 16px; } .foot { padding: 0 16px 16px; flex-direction: column; }
  .page-head { flex-direction: column; gap: 12px; } .page-head .btn { margin: 0; width: 100%; }
  .page-head h1, .title-row h1 { font-size: 26px; }
  .banner { grid-template-columns: 24px 1fr; padding: 18px; } .banner .btn { grid-column: 1 / -1; min-width: 0; }
  .searchbox, .toolbar .select { width: 100%; }
  .form-2, .tips { grid-template-columns: 1fr; }
  .tabs { gap: 22px; overflow-x: auto; }
}
@media (min-width: 901px) { .burger-b { display: none !important; } }
.org-switch .org-tile { font-size: 20px; color: #fff; }
.org-switch { gap: 10px; padding: 0 10px 0 12px; }

/* ---------- UX upgrade ---------- */
.head-btns { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.page-head .head-btns { margin-left: auto; margin-top: 14px; }
.page-head .head-btns .btn { margin: 0; min-width: 0; }
.page-head .head-btns .btn-primary { min-width: 200px; }
.linklike { border: 0; background: transparent; padding: 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; text-align: left; }
.linklike:hover { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.field .linklike { font-weight: 700; font-size: 12px; color: var(--teal); }
.mb-head { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; }
.mb-head .avatar.lg { width: 48px; height: 48px; font-size: 14px; background: var(--lime); }
.mb-head b { display: block; font-size: 16px; margin-bottom: 6px; }
.meter { height: 8px; border-radius: 4px; background: var(--paper); overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--teal); border-radius: 4px; transition: width var(--t-panel) var(--ease); }
.drawer-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cred { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding: 16px; border-radius: 12px; background: var(--paper); font-size: 14px; }
.cred span { color: var(--muted); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .02em; }
.csv-prev .tbl td { padding: 8px 10px; font-size: 12px; }
.tbl .om-check { vertical-align: middle; }
.card-head .head-btns { justify-content: flex-end; }
@media (max-width: 900px) { .page-head .head-btns { margin: 0; width: 100%; } .page-head .head-btns .btn { flex: 1; } }

/* ===== Direction C: soft cards on paper, pill navigation (matches the webmail) ===== */
body { background: var(--paper); }
.layout { grid-template-columns: 248px 1fr; }
.bside { background: transparent; padding: 22px 16px 18px 20px; }
.bside .brand b { font-size: 26px; } .bside .brand img { width: 30px; height: 30px; }
.org-switch { background: #fff; border-radius: 16px; box-shadow: 0 1px 0 #E6E9E7; }
.org-switch:hover { box-shadow: 0 6px 20px rgba(24,37,43,.07); }
.org-tile { border-radius: 11px; }
.bnav { gap: 2px; margin-top: 22px; }
.bnav a { height: 44px; border-radius: 22px; font-size: 14px; padding: 0 16px; }
.bnav a:hover { background: rgba(255,255,255,.6); }
.bnav a.active { background: #fff; color: var(--ink); box-shadow: 0 1px 0 #E6E9E7; }
.bnav a.active::before { display: none; }
.bnav a.active .bicon { color: var(--action); }
.bnav a .bicon { color: var(--muted); }
.promo { border-radius: 18px; }
.side-link { border-radius: 14px; }
.user-chip { border-top-color: rgba(24,37,43,.08); }
.btop { background: transparent; height: 76px; position: static; }
.btop .ident { background: #fff; box-shadow: 0 1px 0 #E6E9E7; }
.page { padding: 8px 32px 24px; }
.page-head h1 { font-size: 30px; letter-spacing: -.015em; }
.btn { border-radius: 12px; }
.page-head .btn, .head-btns .btn-primary { height: 48px; border-radius: 14px; box-shadow: 0 8px 20px rgba(194,62,44,.18); }
.head-btns .btn-secondary { height: 48px; border-radius: 14px; border: 0; box-shadow: 0 1px 0 #E6E9E7; }
.card { border: 0; border-radius: 20px; box-shadow: 0 1px 0 #E6E9E7; }
a.card.stat:hover, .card.stat:hover { box-shadow: 0 8px 24px rgba(24,37,43,.08); border: 0; }
.stat .head .bicon { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--teal-soft); }
.banner { border-radius: 18px; }
.banner .btn { border: 0; }
.step { border-radius: 14px; }
.ev .tile { border-radius: 10px; }
.searchbox input { border-radius: 22px; height: 44px; background: var(--paper); border-color: transparent; }
.toolbar .select { border-radius: 22px; height: 44px; }
.toolbar .count { background: var(--paper); border: 0; }
.tbl th { border-bottom-color: #EEF0EE; }
.tbl td { border-bottom-color: #F1F3F1; }
.tbl tr.sel td { background: var(--teal-soft); }
.tbl tr.sel td:first-child { box-shadow: none; }
.tbl .person .avatar { width: 30px; height: 30px; color: #fff; }
.selbar { border-radius: 14px; }
.pill { border-radius: 8px; height: 26px; }
.pager .pages button { border-radius: 12px; border: 0; background: var(--paper); }
.pager .pages button[aria-current="page"] { background: var(--ink); color: #fff; }
.tabs { border-bottom: 0; gap: 8px; }
.tabs button { height: 38px; padding: 0 16px; border-radius: 19px; background: #fff; box-shadow: 0 1px 0 #E6E9E7; color: var(--ink); font-size: 13px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabs button[aria-selected="true"]::after { display: none; }
.dark-card, .warn-card, .om-banner { border-radius: 20px; }
.input, .select { border-radius: 12px; }
.empty-b .art { background: #fff; }
.om-drawer { border-radius: 24px 0 0 24px; }
.ob-card { border-radius: 26px; box-shadow: 0 30px 80px rgba(24,37,43,.08); }
.ob-card .input { height: 48px; border-radius: 14px; } .ob-card .btn-primary { height: 50px; border-radius: 14px; font-size: 15px; }
.foot { padding-top: 8px; }

/* ===================== Shell v3 — same frame as the webmail ===================== */
html, body { height: 100%; }
body { overflow: hidden; background: var(--paper); }
.bshell { height: 100vh; height: 100dvh; display: grid; grid-template-rows: 76px 1fr; grid-template-columns: 248px 1fr; }
.btopbar { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 0 20px 0 0; }
.btopbar .brand { width: 248px; flex: none; padding-left: 26px; display: flex; align-items: center; gap: 4px; text-decoration: none; color: var(--ink); }
.btopbar .brand img { width: 30px; height: 30px; } .btopbar .brand b { font-size: 25px; letter-spacing: -.04em; }
.biz-pill { margin-left: 8px; font-size: 11px; font-weight: 700; background: var(--lime); border-radius: 8px; padding: 3px 8px; }
.bsearch { position: relative; flex: 1; max-width: 640px; }
.bsearch > .icon { position: absolute; left: 18px; top: 13px; color: var(--muted); pointer-events: none; }
.bsearch input { width: 100%; height: 48px; border-radius: 24px; border: 1px solid transparent; background: #fff; box-shadow: 0 1px 0 #E6E9E7; padding: 0 20px 0 52px; font: 14.5px var(--font); color: var(--ink); }
.bsearch input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(8,127,118,.12); }
.org-pill { margin-left: auto; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 12px 0 6px; border: 0; border-radius: 24px; background: #fff; box-shadow: 0 1px 0 #E6E9E7; cursor: pointer; max-width: 300px; color: var(--ink); }
.org-pill:hover { box-shadow: 0 6px 20px rgba(24,37,43,.08); }
.org-pill .org-tile { width: 36px; height: 36px; border-radius: 50%; font-size: 15px; flex: none; }
.org-pill .on { display: grid; text-align: left; min-width: 0; line-height: 1.2; }
.org-pill .on b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .org-pill .on small { font-size: 11px; color: var(--muted); }
.btopbar .me-btn { border: 0; background: transparent; padding: 0; cursor: pointer; border-radius: 50%; }
.btopbar .me-btn .avatar { width: 40px; height: 40px; font-size: 14px; }
.burger-b { display: none; }

.bshell .bside { position: static; height: auto; background: transparent; padding: 2px 16px 18px 20px; display: flex; flex-direction: column; overflow-y: auto; scrollbar-width: none; }
.bshell .bside::-webkit-scrollbar { display: none; }
.bside .new-btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 16px; background: var(--action); color: #fff; border: 0;
  font: 700 15px var(--font); cursor: pointer; box-shadow: 0 8px 20px rgba(194,62,44,.22); margin-bottom: 18px; }
.bside .new-btn:hover { background: #AD3626; }
.bshell .bnav { display: grid; gap: 2px; margin: 0; }
.bshell .bnav a { height: 44px; border-radius: 22px; padding: 0 16px; gap: 13px; font-size: 14px; color: var(--ink); }
.bshell .bnav a:hover { background: rgba(255,255,255,.6); }
.bshell .bnav a.active { background: #fff; box-shadow: 0 1px 0 #E6E9E7; font-weight: 700; color: var(--ink); }
.bshell .bnav a.active::before { display: none; }
.bshell .bnav a .bicon { color: var(--muted); width: 21px; height: 21px; }
.bshell .bnav a.active .bicon { color: var(--action); }
.bside-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 20px; }
.side-card { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 14px; background: rgba(255,255,255,.6); text-decoration: none; color: var(--ink); }
.side-card:hover { background: #fff; box-shadow: 0 1px 0 #E6E9E7; }
.side-card .sc-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--coral-soft); color: var(--action); flex: none; }
.side-card .sc-ico.teal { background: var(--teal-soft); color: var(--teal); }
.side-card b { display: block; font-size: 13px; } .side-card small { font-size: 11px; color: var(--muted); }
.side-card > .icon:last-child { margin-left: auto; color: var(--muted); }

.bshell .bmain { min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; }
.bshell .bmain::-webkit-scrollbar { display: none; }
.bshell .page { padding: 0 32px 24px 8px; max-width: 1560px; width: 100%; }
.bshell .page-head { align-items: center; }
.bshell .page-head h1 { font-size: 28px; margin-top: 6px; }
.bshell .page-head .overline { font-size: 10.5px; }
.bshell .foot { padding: 4px 32px 18px 8px; }

/* Quick actions */
.quick-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.qa { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 14px; border: 0; border-radius: 18px; background: #fff; box-shadow: 0 1px 0 #E6E9E7; cursor: pointer; text-align: left; color: var(--ink);
  transition: transform var(--t-quick) var(--ease), box-shadow var(--t-quick) var(--ease); }
.qa:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(24,37,43,.09); }
.qa-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.qa.coral .qa-ico { background: var(--coral-soft); color: var(--action); } .qa.teal .qa-ico { background: var(--teal-soft); color: var(--teal); }
.qa.olive .qa-ico { background: #EEF0DD; color: #6E7546; } .qa.ink .qa-ico { background: var(--ink); color: #fff; }
.qa-t { min-width: 0; } .qa-t b { display: block; font-size: 14px; } .qa-t small { font-size: 12px; color: var(--muted); }
.qa > .icon:last-child { margin-left: auto; color: var(--muted); flex: none; }

/* Stat cards refresh */
.stat { border-radius: 20px !important; }
.stat .head { font-size: 13.5px; }
.stat .num { font-size: 44px; letter-spacing: -.02em; }
.banner { box-shadow: none; }

@media (max-width: 1200px) { .quick-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .bshell { grid-template-columns: 1fr; grid-template-rows: 64px 1fr; }
  .burger-b { display: inline-grid; margin-left: 8px; }
  .btopbar { gap: 10px; padding-right: 12px; }
  .btopbar .brand { width: auto; padding-left: 0; } .btopbar .brand b { font-size: 21px; } .biz-pill { display: none; }
  .bsearch { display: none; }
  .org-pill .on { display: none; } .org-pill { padding: 0 8px 0 6px; height: 44px; }
  .bshell .bside { display: none; }
  .bshell .bside.open { display: flex; position: fixed; inset: 64px auto 0 0; width: 290px; background: var(--paper); z-index: 60; box-shadow: 20px 0 60px rgba(24,37,43,.18); padding-top: 14px; transform: none; }
  .bshell .page { padding: 0 14px 20px; }
  .bshell .foot { padding: 0 14px 16px; }
  .quick-row { grid-template-columns: minmax(0, 1fr); }
}
