:root {
  color-scheme: light;
  --ink: #20251f;
  --muted: #5f6b60;
  --line: #dfe3db;
  --paper: #fff;
  --canvas: #f6f7f4;
  --lime: #c4ef68;
  --forest: #233729;
  --sage: #e7f2d3;
  --pine: #17634f;
  --radius: 13px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--canvas); }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #558a22; outline-offset: 3px; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
svg { flex: none; }
.icon { width: 16px; height: 16px; vertical-align: middle; color: currentColor; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 730; letter-spacing: -1.35px; }
.brand > svg { width: 30px; height: 30px; }
.owner-topbar {
  min-height: 64px; padding: 12px clamp(18px, 4vw, 52px); border-bottom: 1px solid var(--line);
  background: #fafbf8; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.login-screen { padding: 38px clamp(16px, 4.5vw, 64px) 55px; }
.login-shell {
  max-width: 984px; margin: min(7vh, 70px) auto 0; border: 1px solid var(--line);
  background: var(--paper); display: grid; grid-template-columns: 1.04fr .96fr;
  min-height: 520px; overflow: hidden; border-radius: 18px; box-shadow: 0 16px 62px #2532270d;
}
.login-main { padding: clamp(32px, 4.7vw, 67px); align-self: center; }
.login-main .status { margin-bottom: 17px; }
.status {
  display: inline-flex; align-items: center; gap: 6px; min-height: 25px; padding: 4px 8px;
  border: 1px solid #dce4d4; border-radius: 6px; background: #f1f4eb;
  color: #3c542d; font-size: 11px; font-weight: 650; white-space: nowrap;
}
.status.neutral { color: #5c665a; background: #f2f4f0; border-color: #e2e5df; }
.status.on { color: #235643; background: #e6f4eb; border-color: #cfe5d8; }
.status .icon { width: 13px; height: 13px; }
.login-main h1, .settings-head h1 {
  font-size: clamp(31px, 3.6vw, 47px); line-height: 1.04; letter-spacing: -.061em; font-weight: 625;
}
.login-summary, .settings-head p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 11px; }
.login-form { display: grid; gap: 14px; margin-top: 27px; }
.field { display: grid; gap: 6px; min-width: 0; color: #394637; font-size: 12px; font-weight: 630; }
.input-box { position: relative; display: flex; align-items: center; }
.field input {
  width: 100%; min-height: 43px; padding: 9px 11px; border-radius: 8px; border: 1px solid #d8dfd4;
  background: #fbfcfa; color: #252e25; font-size: 14px; font-weight: 450;
}
.field input::placeholder { color: #788278; opacity: 1; }
.input-box input { padding-right: 46px; }
.icon-button {
  display: grid; place-items: center; border: 0; background: transparent; border-radius: 6px; width: 34px; height: 34px;
  color: #586656;
}
.icon-button:hover { background: #eff3eb; }
.input-box .icon-button { position: absolute; right: 4px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #d8ded3;
  border-radius: 7px; background: var(--paper); color: #333e32; min-height: 36px; padding: 7px 12px;
  font-size: 12px; font-weight: 650; text-decoration: none;
}
.button:hover { background: #f2f5ed; border-color: #cbd4c6; }
.button.primary { background: var(--lime); color: #24341d; border-color: #afd553; }
.button.primary:hover { background: #d0f583; border-color: #95bb39; }
.button.danger { color: #8e382e; }
.login-submit { justify-content: space-between; min-height: 44px; padding-inline: 13px; font-size: 13px; }
.text-button { background: transparent; border: 0; padding: 3px 0; font-size: 12px; color: #365b45; font-weight: 640; text-align: left; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.login-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.login-error { font-size: 12px; line-height: 1.45; color: #8f352c; }
.login-art {
  position: relative; display: grid; grid-template-rows: 1fr auto; align-items: center; color: #edf5eb; overflow: hidden;
  background: radial-gradient(ellipse at 64% 38%, #3e5938 0%, #2c4530 37%, #223529 78%);
}
.login-grid {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle, #d9efba37 1px, transparent 1.4px) 7px 7px / 14px 14px;
  mask-image: linear-gradient(145deg, transparent, #000 25%, #000 58%, transparent 83%);
}
.lock-figure {
  width: min(71%, 284px); aspect-ratio: 1; margin: 19px auto 2px; position: relative;
  display: grid; place-items: center; align-self: center;
}
.orbit {
  position: absolute; inset: var(--inset); border: 1px solid #d1edaa33; border-radius: 50%;
}
.orbit.dashed { border-style: dashed; border-color: #cde7a550; }
.orbit::after {
  content: ""; position: absolute; width: 7px; height: 7px; border: 2px solid #40593b; border-radius: 50%; background: var(--lime);
  top: var(--dot-top, 15%); right: var(--dot-right, 12%);
}
.orbit.faint::after { width: 5px; height: 5px; background: #b1c6a4; }
.lock-core {
  width: 39%; aspect-ratio: 1; display: grid; place-items: center; color: #253829; z-index: 1;
  background: var(--lime); border: 1px solid #d6f58f; border-radius: 27%; box-shadow: 0 6px 32px #18291b57;
}
.lock-core svg { width: 42%; height: 42%; }
.login-art-note {
  z-index: 1; display: flex; align-items: center; gap: 11px; margin: 0 24px 25px; padding: 13px;
  background: #e2f3d012; border: 1px solid #d9f6c330; border-radius: 10px;
}
.login-art-note .icon-wrap { background: #dbf5a61c; color: #d9f3ae; }
.login-art-note strong { display: block; color: #f5faef; font-size: 13px; }
.login-art-note p { margin-top: 3px; color: #d0dfcc; font-size: 12px; line-height: 1.4; }
.workspace-shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100svh - 64px); }
.workspace-side {
  padding: 26px 15px 17px; display: flex; flex-direction: column; gap: 15px; background: #fbfcf9;
  border-right: 1px solid var(--line);
}
.workspace-side .group { margin: 0 10px 7px; color: #647063; font-size: 10px; font-weight: 710; letter-spacing: .075em; text-transform: uppercase; }
.workspace-nav { display: grid; gap: 4px; }
.nav-button {
  display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent;
  border-radius: 7px; min-height: 38px; font-size: 13px; padding: 8px 10px; color: #465643;
}
.nav-button:hover { background: #eff2e9; }
.nav-button[aria-current="page"] { color: #25351f; background: var(--sage); font-weight: 680; }
.owner-chip { margin: auto 2px 0; border-top: 1px solid var(--line); padding: 13px 0 0; display: flex; align-items: center; gap: 8px; }
.owner-chip strong, .owner-chip small { display: block; }
.owner-chip strong { font-size: 12px; }
.owner-chip small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.owner-chip button { margin-left: auto; }
.icon-wrap {
  width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; flex: none;
  background: #edf1e9; color: #42633e;
}
.workspace-main { min-width: 0; }
.breadcrumb { border-bottom: 1px solid var(--line); padding: 12px 29px; font-size: 12px; color: var(--muted); background: #fafbf8; }
.breadcrumb span { color: #a4aaa1; margin: 0 7px; }
.breadcrumb strong { color: #334332; }
.settings-body { max-width: 1110px; margin: 0 auto; padding: 36px clamp(17px, 4.1vw, 56px) 48px; }
.settings-head { padding-bottom: 23px; }
.settings-head h1 { font-size: clamp(33px, 3.25vw, 44px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-head h2 { font-size: 18px; letter-spacing: -.035em; font-weight: 660; }
.section-head p { color: var(--muted); font-size: 12px; }
.providers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.provider {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 15px; min-width: 0;
  display: flex; flex-direction: column; min-height: 227px;
}
.provider-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.provider-name { display: flex; align-items: center; gap: 9px; }
.provider-name h3 { font-size: 16px; letter-spacing: -.024em; font-weight: 690; }
.provider-name .icon-wrap { width: 35px; height: 35px; }
.provider[data-provider="appkittie"] .icon-wrap { background: #e5f2d0; color: #34551f; }
.provider[data-provider="openai"] .icon-wrap { background: #e2efe9; color: #226148; }
.provider-summary { min-height: 51px; padding: 11px 0 10px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.key-row {
  margin: 3px 0 14px; min-height: 49px; padding: 8px 11px; border: 1px solid #e3e7de; background: #f7f9f5;
  border-radius: 7px; display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.key-row span { font-size: 12px; color: var(--muted); }
.key-row code { font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: .07em; color: #435542; white-space: nowrap; }
.provider-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.hint { display: flex; align-items: center; gap: 9px; border: 1px solid #dfe7db; border-radius: 8px; margin-top: 13px; padding: 11px 12px; color: #536352; background: #f1f5ef; font-size: 12px; line-height: 1.5; }
.hint .icon { color: #577451; }
.access-card { max-width: 660px; padding: 17px; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); }
.access-card .owner-chip { margin: 0 0 15px; border-top: 0; padding-top: 0; }
.access-text { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.dialog {
  color: var(--ink); width: min(calc(100vw - 28px),455px); max-height: calc(100svh - 32px); padding: 0; overflow: auto;
  background: var(--paper); border: 1px solid #d0d8c9; border-radius: 13px; box-shadow: 0 22px 80px #19251b4d;
}
.dialog::backdrop { background: #1724198c; backdrop-filter: blur(2px); }
.dialog-head { padding: 12px 16px 12px 19px; display: flex; justify-content: space-between; align-items: center; gap: 9px; border-bottom: 1px solid var(--line); }
.dialog h2 { font-size: 18px; letter-spacing: -.038em; }
.dialog-body { padding: 17px 19px 19px; }
.dialog-copy { color: var(--muted); font-size: 13px; line-height: 1.5; margin-bottom: 13px; }
.dialog-actions { margin-top: 16px; display: flex; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 8; max-width: calc(100vw - 30px); width: max-content; background: #273b2b; color: white; padding: 9px 12px; border-radius: 8px; font-size: 12px; }
@media (max-width: 870px) {
  .workspace-shell { grid-template-columns: 177px minmax(0, 1fr); }
  .workspace-side { padding-inline: 11px; }
  .settings-body { padding-top: 26px; }
}
@media (max-width: 680px) {
  .login-screen { padding-top: 18px; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; margin-top: 0; }
  .login-main { padding: 27px 23px 25px; }
  .login-form { margin-top: 20px; }
  .login-art { grid-template-columns: 84px minmax(0,1fr); grid-template-rows: auto; padding: 10px; gap: 5px; }
  .lock-figure { width: 70px; margin: 0; }
  .orbit::after { display: none; }
  .login-art-note { margin: 0; padding: 8px; border: 0; background: transparent; }
  .login-art-note .icon-wrap { display: none; }
  .workspace-shell { grid-template-columns: minmax(0,1fr); }
  .workspace-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 7px 12px; display: block; }
  .workspace-side .group, .workspace-side > .owner-chip { display: none; }
  .workspace-nav { display: flex; gap: 6px; }
  .workspace-nav .nav-button { min-height: 37px; }
  .breadcrumb { display: none; }
  .settings-body { padding: 22px 14px 30px; }
  .settings-head { padding-bottom: 17px; }
}
@media (max-width: 525px) {
  .providers { grid-template-columns: 1fr; }
  .provider { min-height: 0; padding: 13px; }
  .provider-summary { min-height: 0; padding-block: 8px; }
  .owner-topbar { min-height: 55px; padding: 9px 13px; }
  .brand { font-size: 20px; gap: 7px; }
  .brand > svg { width: 26px; height: 26px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
.brand { text-decoration: none; }
.owner-topbar .button { margin-inline-start: auto; }
.orbit.outer { --inset: 0%; --dot-top: 77%; --dot-right: 11%; }
.orbit.middle { --inset: 11%; --dot-top: 11%; --dot-right: 14%; }
.orbit.inner { --inset: 24%; --dot-top: 23%; --dot-right: 93%; }
.nav-button { text-decoration: none; }
.button:disabled, .icon-button:disabled { cursor: wait; opacity: .64; }
.connection-state {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 14px; border: 1px solid var(--line); border-radius: 8px;
  margin-bottom: 12px; background: var(--paper); color: var(--muted); font-size: 13px;
}
.sidebar-name { overflow-wrap: anywhere; }
.dialog-copy { margin-top: 0; }
.dialog-error { margin-top: 10px; }
@media (max-width: 335px) {
  .owner-topbar .button { min-height: 33px; padding-inline: 7px; }
  .login-main { padding-inline: 16px; }
}
