:root {
  --canvas:#EFEBE3;
  --surface:#fff;
  --ink:#00102D;
  --support:#0B1E42;
  --muted:#5c6573;
  --blue:#008FE1;
  --active:#E5DDCD;
  --line:#e3e6eb;
  --danger:#9f2639;
  --radius:16px;
  color-scheme:light
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--canvas);
  color:var(--ink);
  font:400 16px/1.5 Outfit,system-ui,sans-serif
}
button,input,select {
  font:inherit;
  color:inherit
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent
}
button,a {
  touch-action:manipulation
}
a {
  color:var(--ink);
  text-decoration:none
}
a:hover {
  text-decoration:none
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.55;
  cursor:wait
}
::selection {
  background:var(--active);
  color:var(--ink)
}
input {
  caret-color:var(--blue)
}
:focus-visible {
  outline:3px solid var(--blue);
  outline-offset:3px
}
h1,h2,h3,p {
  margin:0
}
h1 {
  font-size:clamp(26px,3vw,34px);
  line-height:1.2;
  font-weight:600;
  letter-spacing:-.6px
}
h2 {
  font-size:20px;
  line-height:1.3;
  font-weight:600
}
p+p {
  margin-top:12px
}
small {
  font-size:13px
}
.icon {
  width:21px;
  height:21px;
  flex:none
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}
.skip {
  position:fixed;
  left:16px;
  top:-80px;
  background:var(--ink);
  color:white;
  padding:12px;
  z-index:9
}
.skip:focus {
  top:8px
}
.topbar {
  height:60px;
  background:white;
  display:flex;
  align-items:center;
  gap:24px;
  padding:0 24px;
  position:sticky;
  top:0;
  z-index:5
}
.brand {
  width:176px;
  flex:none;
  display:flex;
  align-items:center
}
.logo {
  width:112px;
  max-height:36px;
  object-fit:contain;
  object-position:left center
}
.wordmark {
  font-weight:600;
  font-size:32px;
  letter-spacing:-1.7px;
  line-height:1
}
.wordmark span {
  color:var(--blue)
}
.environment {
  font-size:13px;
  color:var(--muted)
}
.top-user {
  margin-left:auto;
  display:flex;
  gap:16px;
  align-items:center;
  font-size:14px
}
.top-user form {
  display:flex
}
.icon-button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  border:0;
  background:transparent;
  border-radius:10px;
  width:40px;
  height:40px
}
.icon-button:hover {
  background:var(--canvas)
}
.app-shell {
  display:grid;
  grid-template-columns:224px minmax(0,1fr);
  min-height:calc(100dvh - 60px)
}
.sidebar {
  background:white;
  display:flex;
  flex-direction:column;
  padding:26px 0 20px;
  position:sticky;
  top:60px;
  height:calc(100dvh - 60px)
}
.nav-label {
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.07em;
  padding:0 24px 18px;
  overflow-wrap:anywhere
}
.nav-item {
  display:flex;
  gap:12px;
  align-items:center;
  min-height:48px;
  margin-left:12px;
  padding:10px 16px;
  border-radius:10px 0 0 10px;
  font-size:14px;
  border-right:4px solid transparent
}
.nav-item:hover {
  background:var(--canvas)
}
.nav-item.active {
  background:var(--active);
  border-right-color:var(--ink);
  font-weight:600
}
.sidebar-foot {
  margin-top:auto;
  padding:32px 24px 0;
  color:var(--muted);
  font-size:13px
}
.workspace {
  padding:32px;
  max-width:1600px;
  width:100%;
  min-width:0
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:26px
}
.intro {
  color:var(--support);
  margin-top:10px;
  max-width:720px
}
.page-heading .intro {
  color:var(--muted);
  font-size:15px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-height:44px;
  padding:10px 18px;
  border:0;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  line-height:1.4;
  white-space:nowrap
}
.primary {
  background:var(--ink);
  color:white
}
.primary:hover {
  background:#183257
}
.secondary {
  background:var(--blue);
  color:var(--ink)
}
.secondary:hover {
  background:#2aa6ed
}
.subtle {
  background:#f5f5f5;
  color:var(--ink)
}
.subtle:hover {
  background:var(--canvas)
}
.full {
  width:100%
}
.surface {
  background:var(--surface);
  border-radius:var(--radius);
  margin-bottom:24px;
  overflow:hidden
}
.tabs {
  display:flex;
  gap:4px;
  padding:16px 24px 0;
  overflow-x:auto
}
.tab {
  padding:14px 16px;
  font-size:14px;
  font-weight:600;
  color:var(--muted);
  white-space:nowrap;
  border-bottom:3px solid transparent
}
.tab:hover {
  background:var(--canvas)
}
.tab.active {
  color:var(--ink);
  background:var(--active);
  border-bottom-color:var(--ink)
}
.table-wrap {
  overflow-x:auto;
  max-width:100%;
  padding:0 24px
}
table {
  width:100%;
  border-collapse:collapse;
  text-align:left;
  font-size:14px
}
th {
  font-weight:500;
  color:var(--muted);
  font-size:13px
}
th,td {
  padding:18px 12px;
  border-bottom:1px solid #edf0f2
}
th:first-child,td:first-child {
  padding-left:0
}
th:last-child,td:last-child {
  padding-right:0
}
tbody tr:last-child>* {
  border-bottom:0
}
td strong {
  font-weight:500
}
td small {
  display:block;
  margin-top:3px;
  color:var(--muted)
}
td:last-child {
  text-align:right
}
td form {
  display:inline-block
}
td .button {
  min-height:36px;
  padding:8px 12px;
  font-size:13px
}
tbody tr:hover {
  background:#faf9f6
}
.badge {
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  background:#f1f3f5;
  border-radius:7px;
  color:var(--support);
  font-size:12px;
  font-weight:500;
  white-space:nowrap
}
.badge.setup {
  background:#f5eedf;
  color:#644b12
}
.badge.active {
  background:#e6f4ed;
  color:#1e5e3f
}
.badge.suspended {
  background:#fce9ed;
  color:var(--danger)
}
.notice {
  background:#f5f5f5;
  color:var(--support);
  border-radius:12px;
  padding:16px 20px;
  font-size:14px;
  margin:16px 0
}
.notice.error {
  background:#fce9ed;
  color:#8c2435
}
.notice.success {
  background:#e5f3ec;
  color:#1e5e3f
}
.notice .field {
  margin-bottom:12px
}
.copy-status {
  font-size:13px;
  margin-left:12px
}
.empty {
  padding:64px 28px;
  text-align:center
}
.empty-icon {
  width:58px;
  height:58px;
  border-radius:15px;
  background:var(--canvas);
  display:grid;
  place-items:center;
  margin:0 auto 20px
}
.empty-icon .icon {
  width:28px;
  height:28px
}
.empty p {
  max-width:460px;
  margin:12px auto 24px;
  color:var(--muted)
}
.empty-inline {
  padding:24px;
  background:#f5f5f5;
  border-radius:10px;
  color:var(--muted)
}
.section-body {
  padding:26px 24px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:20px
}
.section-heading>span {
  color:var(--muted);
  font-size:14px;
  font-variant-numeric:tabular-nums
}
.limits {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:16px;
  background:#f5f5f5;
  border-radius:12px;
  padding:20px;
  margin:22px 0 12px
}
.limits dt {
  font-size:12px;
  color:var(--muted);
  min-height:36px
}
.limits dd {
  font-size:22px;
  font-weight:500;
  margin:6px 0 0;
  font-variant-numeric:tabular-nums
}
.hint {
  color:var(--muted);
  font-size:13px;
  line-height:1.5;
  margin:12px 0 24px
}
.field {
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0;
  font-size:14px;
  margin-bottom:20px
}
.field>span {
  font-weight:500
}
input,select {
  width:100%;
  min-height:46px;
  border:1px solid #7d8795;
  border-radius:9px;
  background:white;
  padding:10px 12px;
  font-size:15px;
  min-width:0
}
input::placeholder {
  color:#687383
}
input[readonly] {
  background:#f7f8fa
}
input[type=checkbox] {
  width:18px;
  min-height:18px;
  height:18px;
  accent-color:var(--ink);
  margin:0;
  flex:none
}
.form-surface {
  max-width:980px;
  padding:28px
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 24px
}
.form-grid.three {
  grid-template-columns:repeat(3,minmax(0,1fr));
  margin-top:26px
}
.form-actions {
  display:flex;
  justify-content:flex-end;
  margin-top:24px
}
.section-title {
  margin:30px 0 18px
}
.module-checks {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px 20px
}
.check-row {
  display:flex;
  align-items:center;
  gap:10px;
  background:#f5f5f5;
  min-height:56px;
  padding:14px;
  border-radius:10px;
  font-size:14px
}
.check-row small {
  margin-left:auto;
  color:var(--muted);
  font-size:11px
}
.audit {
  padding:24px
}
.audit ul {
  list-style:none;
  margin:18px 0 0;
  padding:0
}
.audit li {
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
  font-size:14px
}
.audit time {
  color:var(--muted);
  font-size:12px;
  font-variant-numeric:tabular-nums
}
.invite-form {
  display:grid;
  grid-template-columns:2fr 1.4fr auto;
  gap:16px;
  align-items:end
}
.invite-form .field {
  margin:0
}
.invite-form .button {
  min-height:46px
}
.spaces {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:20px
}
.space-card {
  display:flex;
  align-items:center;
  gap:18px;
  padding:26px;
  background:white;
  border-radius:var(--radius)
}
.space-card:hover {
  background:#f8f7f4
}
.space-card>span:nth-child(2) {
  flex:1;
  min-width:0;
  overflow-wrap:anywhere
}
.space-card strong {
  font-size:18px;
  font-weight:500
}
.space-card small {
  display:block;
  color:var(--muted);
  margin-top:4px
}
.space-initial {
  width:48px;
  height:48px;
  background:var(--canvas);
  border-radius:12px;
  display:grid;
  place-items:center;
  font-size:24px;
  flex:none
}
.module-list {
  margin-top:24px
}
.module-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 0;
  border-bottom:1px solid #edf0f2;
  font-size:15px
}
.module-row:last-child {
  border:0
}
.plans {
  min-width:480px
}
.plans td,.plans td:last-child {
  text-align:center;
  font-variant-numeric:tabular-nums;
  font-size:20px;
  font-weight:500
}
.plans th:not(:first-child) {
  text-align:center;
  font-size:18px;
  color:var(--ink)
}
.auth-main {
  max-width:500px;
  margin:0 auto;
  padding:56px 16px
}
.auth-card {
  background:white;
  border-radius:20px;
  padding:36px
}
.auth-card h1 {
  font-size:28px
}
.auth-card .intro {
  margin-bottom:28px;
  color:var(--muted);
  font-size:15px
}
.auth-card .hint {
  margin-bottom:0
}
.auth-card>p {
  margin-bottom:20px
}
@media(min-width:1700px) {
  .workspace {
    padding:40px
  }
}
@media(max-width:1150px) {
  .workspace {
    padding:24px
  }
  .app-shell {
    grid-template-columns:196px minmax(0,1fr)
  }
  .brand {
    width:148px
  }
  .limits {
    grid-template-columns:repeat(3,1fr)
  }
  .limits dt {
    min-height:0
  }
  .module-checks {
    grid-template-columns:1fr
  }
  .invite-form {
    grid-template-columns:1fr 1fr
  }
  .invite-form>.button {
    grid-column:1/-1;
    justify-self:start
  }
}
@media(max-width:760px) {
  .topbar {
    padding:0 16px;
    gap:12px
  }
  .brand {
    width:auto
  }
  .logo {
    width:84px
  }
  .wordmark {
    font-size:27px
  }
  .environment {
    font-size:11px
  }
  .top-user {
    gap:4px
  }
  .top-user>span {
    max-width:100px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    font-size:12px
  }
  .app-shell {
    display:block
  }
  .sidebar {
    position:static;
    height:auto;
    padding:8px 12px
  }
  .sidebar nav {
    display:flex;
    overflow-x:auto;
    gap:4px
  }
  .sidebar .nav-label,.sidebar-foot {
    display:none
  }
  .nav-item {
    margin:0;
    border-right:0;
    border-bottom:3px solid transparent;
    border-radius:8px 8px 0 0;
    min-height:44px;
    padding:8px 12px;
    white-space:nowrap;
    font-size:13px
  }
  .nav-item.active {
    border-bottom-color:var(--ink)
  }
  .nav-item .icon {
    width:18px
  }
  .workspace {
    padding:22px 16px
  }
  .page-heading {
    align-items:flex-start;
    flex-wrap:wrap;
    gap:18px;
    margin-bottom:22px
  }
  .page-heading>.button {
    min-height:42px
  }
  .surface {
    margin-bottom:18px
  }
  .tabs {
    padding:12px 16px 0
  }
  .tab {
    padding:12px;
    font-size:13px
  }
  .table-wrap {
    padding:0 16px
  }
  table {
    min-width:580px
  }
  .section-body {
    padding:22px 18px
  }
  .limits {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    padding:18px
  }
  .limits dd {
    font-size:21px
  }
  .form-grid,.form-grid.three,.invite-form,.spaces {
    grid-template-columns:1fr
  }
  .invite-form .button {
    grid-column:auto;
    width:100%
  }
  .form-surface {
    padding:22px 18px
  }
  .check-row {
    flex-wrap:wrap
  }
  .check-row small {
    margin-left:28px;
    width:100%
  }
  .form-actions .button {
    width:100%
  }
  .audit {
    padding:22px 18px
  }
  .audit li {
    flex-direction:column;
    gap:2px
  }
  .auth-main {
    padding:32px 16px
  }
  .auth-card {
    padding:28px 24px
  }
  .auth-card h1 {
    font-size:26px
  }
  .section-heading {
    flex-wrap:wrap
  }
  .module-row {
    align-items:flex-start;
    font-size:14px
  }
  .badge {
    white-space:normal
  }
  .environment {
    max-width:96px;
    line-height:1.2
  }
  .top-user {
    margin-left:auto
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important
  }
}
