@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  color-scheme: light;
  --ink: #171717;
  --ink-soft: #333438;
  --muted: #777b83;
  --paper: #f5f5f4;
  --surface: #fff;
  --line: #e8e8e5;
  --line-strong: #d9d9d4;
  --dark: #0a0a0a;
  --dark-surface: #141414;
  --dark-line: #262626;
  --white: #fafafa;
  --live: #22c55e;
  --accent: #ff5a1f;
  --accent-soft: #fff0e9;
  --danger: #c24132;
  --radius: 10px;
  font-family: "DM Sans", "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--paper); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
a { color: inherit; }
.boot { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--muted); font-size: 13px; }
.loader { width: 22px; height: 22px; border: 2px solid #ddd; border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes enter { from { opacity: 0; transform: scale(.985) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.animate-rise { animation: rise .42s cubic-bezier(.2,.7,.2,1) both; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; display: flex; width: 246px; flex-direction: column; background: var(--dark); color: var(--white); padding: 21px 14px 16px; transition: transform .24s ease; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px 25px; }
.brand img { height: 34px; width: 34px; object-fit: cover; border-radius: 9px; }
.brand-copy { display: grid; line-height: 1.12; }
.brand-copy strong { font-family: "Space Grotesk", sans-serif; font-size: 15px; letter-spacing: -.02em; }
.brand-copy small { color: #939397; font-size: 10px; margin-top: 4px; letter-spacing: .045em; }
.nav-label { color: #66666a; font-size: 9px; font-weight: 700; letter-spacing: .14em; padding: 12px 12px 8px; }
.nav-list { display: grid; gap: 4px; }
.nav-item { position: relative; display: flex; width: 100%; align-items: center; gap: 11px; min-height: 42px; border: 0; border-radius: 8px; padding: 0 12px; color: #aaa; background: transparent; text-align: left; font-size: 13px; font-weight: 500; transition: color .16s, background .16s, transform .16s; }
.nav-item:hover { color: #fff; background: #1b1b1c; transform: translateX(2px); }
.nav-item.active { color: #fff; background: #202021; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 2px; border-radius: 3px; background: var(--accent); }
.nav-item svg { width: 16px; height: 16px; color: #8d8d90; }
.nav-item.active svg { color: #fff; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--dark-line); padding: 14px 5px 0; }
.sidebar-note { color: #727276; font-size: 10px; line-height: 1.55; padding: 0 8px 12px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 10px 8px 3px; }
.avatar { display: grid; height: 31px; width: 31px; place-items: center; border-radius: 50%; color: var(--white); background: #333; font-size: 11px; font-weight: 700; }
.profile-copy { display: grid; min-width: 0; flex: 1; }
.profile-copy strong { overflow: hidden; color: #eaeaea; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy small { overflow: hidden; color: #777; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.logout { border: 0; background: transparent; color: #89898d; padding: 7px; border-radius: 6px; }
.logout:hover { color: white; background: #262626; }
.main { min-height: 100vh; margin-left: 246px; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); padding: 0 34px; backdrop-filter: blur(12px); }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 14px; }
.crumb { color: var(--muted); font-size: 12px; }
.crumb b { color: var(--ink); font-weight: 600; }
.online { display: flex; align-items: center; gap: 7px; color: #5d665e; font-size: 11px; }
.online i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px #22c55e1c; }
.top-divider { height: 22px; width: 1px; background: var(--line); }
.top-user { display: grid; text-align: right; line-height: 1.3; }
.top-user strong { font-size: 11px; font-weight: 600; }
.top-user small { color: var(--muted); font-size: 10px; }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); padding: 7px; }
.content { max-width: 1320px; margin: 0 auto; padding: 34px 36px 58px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.eyebrow { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
h1, h2, p { margin-top: 0; }
h1 { margin: 7px 0 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(25px, 3vw, 34px); font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
.page-subtitle { margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 7px; padding: 0 14px; font-size: 12px; font-weight: 600; transition: transform .15s, background .15s, box-shadow .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--dark); box-shadow: 0 2px 5px #00000015; }
.button-primary:hover { background: #292929; box-shadow: 0 5px 14px #00000018; }
.button-accent { color: #fff; background: var(--accent); }
.button-accent:hover { background: #eb4e17; }
.button-quiet { color: var(--ink-soft); border-color: var(--line); background: #fff; }
.button-quiet:hover { background: #fafaf9; border-color: var(--line-strong); }
.button-danger { color: var(--danger); border-color: #efd7d2; background: #fff; }
.button svg { height: 15px; width: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin: 0 0 25px; }
.stat-card { position: relative; overflow: hidden; min-height: 113px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 17px 18px; animation: rise .45s both; }
.stat-card:nth-child(2) { animation-delay: 45ms; }.stat-card:nth-child(3) { animation-delay: 90ms; }.stat-card:nth-child(4) { animation-delay: 135ms; }
.stat-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.stat-icon { display: grid; height: 28px; width: 28px; place-items: center; border: 1px solid var(--line); border-radius: 7px; color: #5b5b5f; }
.stat-icon svg { height: 14px; width: 14px; }
.stat-value { margin-top: 12px; font-family: "Space Grotesk", sans-serif; font-size: 27px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat-meta { margin-top: 6px; color: #96969a; font-size: 10px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding: 15px 18px; }
.panel-head h2 { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.panel-head small { color: var(--muted); font-size: 10px; }
.panel-body { padding: 0 18px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; white-space: nowrap; }
th { height: 39px; color: #85858a; font-size: 9px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
td { height: 61px; border-top: 1px solid #efefed; color: #444448; font-size: 11px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: #fafaf9; }
.business-cell { display: flex; align-items: center; gap: 10px; }
.business-mark { display: grid; height: 30px; width: 30px; place-items: center; border-radius: 8px; color: #323235; background: #f0f0ee; font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 700; }
.business-name { display: grid; gap: 3px; }
.business-name b { color: var(--ink); font-size: 11px; font-weight: 600; }
.business-name small { color: #929297; font-size: 10px; }
.domain-link { color: #535358; text-decoration: none; }
.domain-link:hover { color: var(--accent); text-decoration: underline; }
.status { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 5px 8px; color: #35804b; background: #edf8ef; font-size: 9px; font-weight: 600; }
.status i { height: 5px; width: 5px; border-radius: 50%; background: #38a552; }
.status.off { color: #777; background: #f1f1f0; }.status.off i { background: #9c9c9c; }
.owner-email { color: #66666a; }
.table-action { border: 0; background: transparent; color: #7d7d82; padding: 7px; border-radius: 6px; }
.table-action:hover { background: #efefed; color: var(--ink); }
.empty { display: grid; justify-items: center; padding: 47px 14px; text-align: center; }
.empty-icon { display: grid; height: 45px; width: 45px; place-items: center; border: 1px solid var(--line); border-radius: 13px; color: #67676b; background: #fafaf9; }
.empty-icon svg { width: 20px; height: 20px; }
.empty h3 { margin: 13px 0 4px; font-size: 13px; }
.empty p { max-width: 340px; margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.search { position: relative; width: min(100%, 330px); }
.search svg { position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; color: #8c8c91; transform: translateY(-50%); }
.search input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 7px; outline: 0; background: #fff; padding: 0 12px 0 34px; font-size: 11px; transition: border .15s, box-shadow .15s; }
.search input:focus, .field input:focus { border-color: #a4a4a0; box-shadow: 0 0 0 3px #1717170a; }
.results { color: var(--muted); font-size: 10px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: #09090bb8; padding: 18px; backdrop-filter: blur(5px); animation: enter .18s both; }
.modal { width: min(100%, 570px); max-height: min(92vh, 780px); overflow-y: auto; border: 1px solid #e7e7e4; border-radius: 13px; background: var(--surface); box-shadow: 0 28px 90px #0004; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding: 20px 23px 16px; }
.modal-head h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 19px; letter-spacing: -.035em; }
.modal-head p { margin: 5px 0 0; color: var(--muted); font-size: 11px; }
.modal-close { display: grid; height: 30px; width: 30px; place-items: center; border: 0; border-radius: 7px; background: transparent; color: #777; }
.modal-close:hover { background: #f1f1ef; color: var(--ink); }
.modal-form { padding: 19px 23px 22px; }
.form-section { margin-bottom: 19px; }
.form-section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 11px; color: #626267; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.form-section-title span { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 6px; color: #4e4e52; background: #f0f0ee; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { display: grid; gap: 6px; }
.field.full { grid-column: 1/-1; }
.field label { color: #606065; font-size: 10px; font-weight: 600; }
.field input { height: 38px; min-width: 0; border: 1px solid var(--line-strong); border-radius: 7px; outline: none; background: #fff; padding: 0 11px; color: var(--ink); font-size: 11px; transition: border .15s, box-shadow .15s; }
.field input:disabled { color: #777; background: #f6f6f4; }
.field-hint { color: #929297; font-size: 9px; line-height: 1.45; }
.domain-input { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 7px; background: #fff; padding-right: 10px; }
.domain-input:focus-within { border-color: #a4a4a0; box-shadow: 0 0 0 3px #1717170a; }
.domain-input input { flex: 1; border: 0; box-shadow: none !important; }
.domain-input span { color: #96969a; font-size: 10px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); margin-top: 19px; padding-top: 16px; }
.error-box { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 14px; border: 1px solid #efd4ce; border-radius: 7px; background: #fff7f5; color: #a13b2d; padding: 10px 11px; font-size: 10px; line-height: 1.45; }
.success-panel { padding: 20px 23px 22px; }
.success-mark { display: grid; height: 38px; width: 38px; place-items: center; border-radius: 12px; color: #228041; background: #e9f7ed; }
.success-panel h3 { margin: 11px 0 4px; font-family: "Space Grotesk", sans-serif; font-size: 19px; letter-spacing: -.035em; }
.success-panel > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.credential-box { display: grid; gap: 10px; margin-top: 17px; border: 1px solid var(--line); border-radius: 9px; background: #fafaf9; padding: 13px; }
.credential-row { display: grid; grid-template-columns: 95px 1fr auto; align-items: center; gap: 8px; font-size: 10px; }
.credential-row label { color: var(--muted); }
.credential-row code { overflow: hidden; color: var(--ink); font-family: ui-monospace, SFMono-Regular, monospace; text-overflow: ellipsis; }
.copy { border: 0; border-radius: 5px; background: transparent; color: #777; padding: 6px; }
.copy:hover { background: #e9e9e6; color: var(--ink); }
.password-warning { margin-top: 10px !important; color: #9b5b1e !important; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; padding: 20px 23px; }
.detail-item { display: grid; gap: 5px; }
.detail-item small { color: var(--muted); font-size: 9px; }
.detail-item strong, .detail-item a { overflow-wrap: anywhere; color: var(--ink); font-size: 11px; font-weight: 600; text-decoration: none; }
.detail-item a:hover { color: var(--accent); }
.toast { display: flex; align-items: center; gap: 8px; min-width: 220px; max-width: min(390px, calc(100vw - 30px)); border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 8px 30px #00000014; padding: 11px 13px; color: var(--ink); font-size: 11px; animation: rise .2s both; }
.toast.error { border-color: #efd4ce; color: #a13b2d; }.toast.success svg { color: #228041; }
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: grid; gap: 8px; }
.login-page { display: grid; min-height: 100vh; grid-template-columns: minmax(0,1.06fr) minmax(390px,.94fr); background: var(--dark); }
.login-story { position: relative; display: flex; flex-direction: column; overflow: hidden; padding: clamp(30px,6vw,75px); color: var(--white); }
.login-story::before, .login-story::after { position: absolute; content: ""; pointer-events: none; }
.login-story::before { inset: 0; opacity: .19; background-image: linear-gradient(#ffffff0c 1px,transparent 1px),linear-gradient(90deg,#ffffff0c 1px,transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom right,#000,transparent 80%); }
.login-story::after { width: 440px; height: 440px; right: -145px; bottom: -235px; border: 1px solid #ffffff16; border-radius: 50%; box-shadow: 0 0 0 42px #ffffff06,0 0 0 84px #ffffff04; }
.login-brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; }
.login-brand img { height: 39px; width: 39px; border-radius: 10px; }
.login-brand-copy { display: grid; line-height: 1.15; }.login-brand-copy strong { font-family: "Space Grotesk",sans-serif; font-size: 16px; }.login-brand-copy small { color: #9b9b9f; font-size: 10px; margin-top: 4px; }
.login-copy { position: relative; z-index: 1; max-width: 560px; margin: auto 0; padding: 66px 0; }
.login-copy .eyebrow { color: #9b9b9f; }
.login-copy h1 { max-width: 520px; margin-top: 18px; font-size: clamp(38px,5.4vw,68px); font-weight: 500; line-height: .99; letter-spacing: -.065em; }
.login-copy h1 em { color: #b6b6b8; font-style: normal; }
.login-copy p { max-width: 390px; margin: 20px 0 0; color: #a4a4a7; font-size: 13px; line-height: 1.75; }
.login-footer { position: relative; z-index: 1; color: #757579; font-size: 10px; }
.login-box-wrap { display: grid; place-items: center; background: #f4f4f2; padding: 27px; }
.login-box { width: min(100%, 370px); animation: enter .45s both; }
.login-box .desk-mobile { display: none; }
.login-box h2 { margin: 0; font-family: "Space Grotesk",sans-serif; font-size: 27px; letter-spacing: -.05em; }
.login-box > p { margin: 7px 0 23px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.login-box .field { margin-bottom: 13px; }.login-box .field input { height: 43px; }
.login-box .button { width: 100%; height: 43px; margin-top: 4px; }
.login-footnote { margin-top: 17px; color: #8a8a8f; text-align: center; font-size: 10px; }
.backdrop { position: fixed; inset: 0; z-index: 19; display: none; background: #0007; }
.mobile-only { display: none; }
@media (max-width: 1000px) { .stats { grid-template-columns: repeat(2,minmax(0,1fr)); } .content { padding-inline: 25px; } }
@media (max-width: 760px) {
  .sidebar { transform: translateX(-102%); box-shadow: 12px 0 35px #0002; }.sidebar.open { transform: translateX(0); }
  .backdrop.show { display: block; }.main { margin-left: 0; }.topbar { min-height: 58px; padding: 0 15px; }.menu-toggle,.mobile-only { display: inline-flex; }.content { padding: 25px 16px 40px; }
  .topbar-right .online,.top-divider { display: none; }.top-user strong { font-size: 10px; }
  .page-head { align-items: flex-start; }.page-head .button { min-width: 39px; padding-inline: 10px; }.page-head .button .button-label { display: none; }
  .login-page { grid-template-columns: 1fr; background: #f4f4f2; }.login-story { display: none; }.login-box-wrap { min-height: 100vh; padding: 23px; }.login-box { max-width: 420px; }.login-box .desk-mobile { display: flex; margin-bottom: 37px; }
}
@media (max-width: 520px) {
  .stats { gap: 8px; }.stat-card { min-height: 100px; padding: 13px; }.stat-value { font-size: 23px; }
  .page-head { gap: 10px; }.page-subtitle { max-width: 260px; }
  .form-grid,.detail-grid { grid-template-columns: 1fr; }.field.full { grid-column: auto; }.modal-head { padding: 17px 17px 14px; }.modal-form,.success-panel { padding: 17px; }
  .credential-row { grid-template-columns: 72px minmax(0,1fr) auto; }.content .panel-head,.panel-body { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
