:root {
  font-family: 'DM Sans', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #25362f;
  background: #fbfcfa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  --ink: #25362f;
  --muted: #7a8780;
  --line: #e7ebe6;
  --green: #286649;
  --green-dark: #20563d;
  --mint: #eff5ef;
  --orange: #d17c4c;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #fbfcfa; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.page-shell { width: min(1120px, calc(100% - 64px)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.site-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; display: grid; place-content: center; position: relative; border-radius: 12px; background: #eaf2e9; color: var(--green); font-family: 'DM Mono', monospace; font-size: 17px; font-weight: 500; letter-spacing: 0; }
.brand-mark > span { width: 6px; height: 6px; position: absolute; top: 8px; right: 8px; border-radius: 50%; background: var(--orange); }
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 15px; font-weight: 600; letter-spacing: 0; }
.brand-copy small { color: var(--muted); font-size: 11px; }
.session-actions { display: flex; align-items: center; gap: 12px; }
.header-username { font-size: 13px; font-weight: 600; }
main { flex: 1; padding: 36px 0 60px; }
.login-layout { min-height: 560px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .78fr); align-items: center; gap: clamp(38px, 8vw, 106px); padding: 34px 0; }
.welcome-copy { max-width: 520px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #718078; font-family: 'DM Mono', monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5b9c6f; box-shadow: 0 0 0 3px #e6f0e7; }
h1, h2, h3, h4, p { margin-top: 0; }
.welcome-copy h1 { margin: 23px 0 16px; color: var(--ink); font-size: clamp(34px, 4vw, 48px); font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.accent { color: var(--orange); }
.intro { max-width: 440px; margin-bottom: 30px; color: #6f7c74; font-size: 14px; line-height: 1.9; }
.workspace-illustration { width: min(100%, 440px); overflow: hidden; border: 1px solid #e4eae3; border-radius: 8px; background: #fff; box-shadow: 0 8px 30px #263f3210; transform: rotate(-1deg); }
.illustration-top { height: 34px; display: flex; align-items: center; gap: 5px; padding: 0 12px; border-bottom: 1px solid #edf0ec; background: #fbfcfa; }
.illustration-top > span { width: 6px; height: 6px; border-radius: 50%; background: #dce4dc; }
.illustration-top i { margin-left: auto; color: #9aa59d; font-family: 'DM Mono', monospace; font-size: 9px; font-style: normal; }
.illustration-body { min-height: 188px; display: grid; grid-template-columns: 62px 1fr; }
.illustration-sidebar { display: flex; flex-direction: column; gap: 11px; padding: 20px 14px; border-right: 1px solid #edf0ec; }
.illustration-sidebar b { height: 5px; border-radius: 4px; background: #e7ede7; }
.illustration-sidebar b:first-child { width: 24px; background: #a8c6ae; }
.illustration-content { padding: 20px 23px 16px; }
.illustration-label { margin-bottom: 13px; font-size: 12px; font-weight: 600; }
.illustration-line { width: 54%; height: 5px; margin-bottom: 7px; border-radius: 4px; background: #edf0ed; }
.illustration-line.long { width: 78%; }
.illustration-tiles { display: flex; gap: 7px; margin: 14px 0; }
.illustration-tiles span { padding: 5px 8px; border: 1px solid #e9eee8; border-radius: 4px; color: #758178; font-size: 9px; }
.illustration-input { height: 29px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; border: 1px solid #e7ebe6; border-radius: 5px; color: #a0aaa3; font-size: 9px; }
.illustration-input span { color: var(--green); font-size: 14px; }
.welcome-note { display: flex; align-items: center; gap: 9px; margin-top: 22px; color: #8b968e; font-size: 11px; }
.tiny-mark { width: 17px; height: 17px; display: inline-block; border: 1px solid #dfe8dd; border-radius: 5px; background: linear-gradient(135deg, #eaf2e9 50%, #fff 50%); }
.card { min-width: 0; padding: 27px; border: 1px solid var(--line); border-radius: 7px; background: #fff; box-shadow: 0 2px 9px #203b2a08; }
.login-card { width: 100%; max-width: 390px; justify-self: end; padding: 33px; }
.login-card h2, .card h2 { margin: 9px 0 8px; font-size: 20px; font-weight: 600; letter-spacing: 0; }
.muted { color: var(--muted); font-size: 12px; line-height: 1.75; }
.login-card > .muted { margin-bottom: 25px; }
form { display: flex; flex-direction: column; align-items: stretch; }
label { margin: 17px 0 7px; color: #43534a; font-size: 12px; font-weight: 600; }
input { width: 100%; min-width: 0; height: 42px; padding: 0 12px; border: 1px solid #dfe5df; border-radius: 5px; outline: none; background: #fff; color: var(--ink); font-size: 13px; transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder { color: #abb4ad; }
input:focus { border-color: #6e9c7e; box-shadow: 0 0 0 3px #e7f0e8; }
input:disabled, button:disabled { cursor: not-allowed; opacity: .58; }
.button { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; padding: 0 16px; border: 1px solid transparent; border-radius: 5px; text-decoration: none; cursor: pointer; font-size: 12px; font-weight: 600; transition: background .15s, border-color .15s, transform .15s; }
.button:focus-visible, .text-button:focus-visible, .icon-button:focus-visible, .nav-button:focus-visible, a:focus-visible { outline: 3px solid #b2d0b7; outline-offset: 2px; }
.button-primary { background: var(--green); color: #fff; }
.button-primary:hover:not(:disabled) { background: var(--green-dark); }
.button-primary span { font-size: 16px; font-weight: 400; }
.button-quiet { border-color: #e4e9e4; background: #fff; color: #536259; }
.button-quiet:hover:not(:disabled) { background: #f5f8f4; }
.button-full { width: 100%; min-height: 44px; margin-top: 22px; }
.login-card form > .button { margin-top: 22px; }
.login-help { margin-top: 23px; padding-top: 18px; border-top: 1px solid #eef0ed; color: #8a958d; font-size: 11px; line-height: 1.8; }
.login-help strong { color: #66756b; font-weight: 500; }
.site-footer { min-height: 53px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); color: #98a29b; font-size: 10px; }
.loading-card, .connection-card { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.loading-card p { margin: 14px 0 0; color: var(--muted); font-size: 12px; }
.spinner { width: 23px; height: 23px; border: 2px solid #e4ece4; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.connection-card { max-width: 480px; min-height: 240px; margin: 50px auto; }
.connection-card h1 { margin: 13px 0 7px; font-size: 22px; }
.connection-card .button { margin-top: 14px; }
.workspace-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0 28px; }
.workspace-hero h1 { margin: 8px 0 5px; font-size: 28px; font-weight: 600; letter-spacing: 0; }
.workspace-hero p { margin-bottom: 0; }
.workspace-entry { display: grid; justify-items: end; gap: 8px; }
.workspace-entry .button { min-height: 42px; }
.small { font-size: 10px; }
.notice { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 18px; padding: 12px 15px; border: 1px solid #dfeae0; border-radius: 5px; background: #f3f8f2; color: #526b58; font-size: 12px; line-height: 1.7; }
.notice-warning { flex-direction: column; border-color: #f0e0ce; background: #fcf7f1; color: #795b43; }
.notice-info { border-color: #dfe9df; background: #f4f8f3; }
.section-nav { display: flex; align-items: center; gap: 23px; min-height: 46px; border-bottom: 1px solid var(--line); }
.nav-button { height: 46px; position: relative; padding: 0 1px; border: 0; background: transparent; color: #87928a; cursor: pointer; font-size: 12px; }
.nav-button.is-active { color: var(--green); font-weight: 600; }
.nav-button.is-active::after { height: 2px; position: absolute; right: 0; bottom: -1px; left: 0; background: var(--green); content: ''; }
.section-panel { padding-top: 20px; }
.overview-grid, .users-grid, .provider-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 16px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.card-heading h2 { margin: 7px 0 0; }
.profile-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #edf4ed; color: var(--green); font-family: 'DM Mono', monospace; font-size: 15px; }
.profile-details { margin: 23px 0 18px; }
.profile-details > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 8px; padding: 11px 0; border-bottom: 1px solid #f0f2ef; font-size: 12px; }
.profile-details dt { color: #89948c; }
.profile-details dd { overflow-wrap: anywhere; margin: 0; color: #46564c; font-weight: 500; }
.subtle-note { margin: 18px 0 0; color: #97a099; font-size: 10px; line-height: 1.75; }
.profile-card { min-height: 290px; }
.overview-grid .card > .muted, .user-list-card > .muted, .provider-grid .card > .muted { margin: 10px 0 14px; }
.overview-grid form .button { align-self: flex-start; margin-top: 19px; }
.form-message { margin: 11px 0 0; padding: 8px 10px; border-radius: 4px; background: #fbf1ed; color: #a44e37; font-size: 11px; line-height: 1.65; }
.form-message.is-success { background: #eff7ef; color: #386749; }
.form-message.is-error { background: #fbf1ed; color: #a44e37; }
.count { margin-left: 6px; color: #9aa49c; font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 400; }
.user-list-card .card-heading { align-items: center; }
.user-list-card .card-heading .button { min-height: 33px; padding: 0 10px; font-size: 11px; }
.table-scroll { width: 100%; overflow-x: auto; margin-top: 17px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 9px 8px; border-bottom: 1px solid #e9ede8; color: #89948c; font-size: 10px; font-weight: 500; }
td { padding: 12px 8px; border-bottom: 1px solid #f0f2ef; color: #536158; font-size: 11px; vertical-align: middle; }
td:first-child { min-width: 120px; }
td:last-child { min-width: 126px; }
.user-name, .user-meta { display: block; }
.user-name { color: #3d4d43; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.user-meta { margin-top: 4px; color: #98a29a; font-size: 9px; }
.badge { display: inline-flex; align-items: center; min-height: 21px; padding: 0 8px; border-radius: 12px; background: #f0f3ef; color: #68766c; font-size: 10px; white-space: nowrap; }
.badge-active { background: #edf5ee; color: #4a7855; }
.badge-disabled { background: #f4efeb; color: #927360; }
.row-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.text-button { padding: 2px 0; border: 0; background: transparent; color: #4a795a; cursor: pointer; font-size: 10px; white-space: nowrap; }
.text-button:hover:not(:disabled) { text-decoration: underline; }
.text-button:disabled { color: #aab2ac; cursor: not-allowed; }
.text-danger { color: #aa634c; }
.empty-state { padding: 24px; color: #98a29a; text-align: center; }
.field-help { margin: 6px 0 2px; color: #919b94; font-size: 10px; line-height: 1.7; }
.label-secondary { margin-left: 5px; color: #9aa49c; font-size: 10px; font-weight: 400; }
.label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.label-row .text-button { margin-top: 13px; }
.provider-grid { grid-template-columns: minmax(0, 1.25fr) minmax(220px, .65fr); }
.provider-grid .card-heading { align-items: center; }
.provider-grid .card-heading h2 { font-size: 18px; }
.provider-grid .card > form > .button { align-self: flex-start; margin-top: 18px; }
.provider-aside { padding: 18px 8px 18px 17px; }
.aside-mark { width: 31px; height: 31px; display: grid; place-items: center; margin-bottom: 17px; border: 1px solid #e1e9df; border-radius: 8px; color: var(--green); font-size: 15px; }
.provider-aside h3 { margin-bottom: 8px; font-size: 16px; font-weight: 600; }
.provider-aside h4 { margin: 18px 0 5px; color: #536258; font-size: 11px; font-weight: 600; }
.provider-aside p { margin-bottom: 0; color: #8a958d; font-size: 10px; line-height: 1.8; }
.aside-divider { height: 1px; margin: 17px 0; background: var(--line); }
.reset-dialog { width: min(440px, calc(100% - 32px)); max-height: min(90vh, 700px); overflow: auto; padding: 25px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px #20382c33; }
.reset-dialog::backdrop { background: #24372d66; }
.reset-dialog .card-heading { align-items: center; }
.reset-dialog .card-heading h2 { margin: 0; font-size: 18px; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid #e7ebe6; border-radius: 5px; background: #fff; color: #69766e; cursor: pointer; font-size: 19px; }
.reset-dialog > .muted { margin: 12px 0 4px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 18px; }
.visually-hidden { width: 1px; height: 1px; position: absolute; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }

@media (max-width: 760px) {
  .page-shell { width: min(100% - 36px, 560px); }
  .site-header { min-height: 76px; }
  main { padding: 23px 0 40px; }
  .login-layout { min-height: 0; grid-template-columns: 1fr; gap: 29px; padding: 20px 0; }
  .welcome-copy { max-width: 100%; }
  .welcome-copy h1 { margin-top: 16px; font-size: 34px; }
  .intro { margin-bottom: 18px; font-size: 13px; }
  .workspace-illustration { width: min(100%, 420px); }
  .illustration-body { min-height: 154px; }
  .illustration-content { padding: 14px 17px; }
  .welcome-note { margin-top: 13px; }
  .login-card { max-width: 100%; justify-self: stretch; padding: 25px; }
  .workspace-hero { align-items: flex-start; flex-direction: column; gap: 16px; padding: 10px 0 20px; }
  .workspace-hero h1 { overflow-wrap: anywhere; font-size: 24px; }
  .workspace-entry { justify-items: start; }
  .section-nav { gap: 19px; }
  .overview-grid, .users-grid, .provider-grid { grid-template-columns: 1fr; }
  .provider-aside { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; padding: 6px 4px 14px; }
  .provider-aside .aside-mark, .provider-aside h3, .provider-aside > p:first-of-type, .provider-aside .aside-divider { grid-column: 1 / -1; }
  .provider-aside h4 { margin-top: 13px; }
  .session-actions { gap: 7px; }
  .header-username { max-width: 100px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .session-actions .button { min-height: 33px; padding: 0 9px; font-size: 10px; }
}

@media (max-width: 420px) {
  .page-shell { width: calc(100% - 28px); }
  .brand { gap: 8px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand-copy strong { font-size: 13px; }
  .brand-copy small { font-size: 9px; }
  .session-actions { gap: 5px; }
  .header-username { max-width: 65px; font-size: 11px; }
  .session-actions .badge { display: none; }
  .card { padding: 21px; }
  .login-card { padding: 24px 21px; }
  .section-nav { gap: 15px; }
  .nav-button { font-size: 11px; }
  .profile-details > div { grid-template-columns: 76px minmax(0, 1fr); }
  .site-footer { font-size: 9px; }
}

/* Login-only theme, based on the supplied Figma AuthForm. */
.login-page .page-shell { width: 100%; }
.login-page .site-header, .login-page .site-footer { display: none; }
.login-page main { padding: 0; }
.login-page #global-notice:not([hidden]) { position: relative; z-index: 2; width: min(448px, calc(100% - 32px)); margin: 12px auto 0; }
#login-view { position: relative; isolation: isolate; display: flex; align-items: center; justify-content: center; min-height: 100vh; min-height: 100svh; padding: 48px 20px; color: #111827; background: linear-gradient(135deg, #f9fafb, #f4f8ff 50%, #faf6ff); }
.login-scene { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.login-scene i { position: absolute; display: block; }
.login-scene i:nth-child(1) { top: -128px; left: -128px; width: 384px; height: 384px; border-radius: 50%; background: linear-gradient(135deg, #bfdbfe66, #d8b4fe66); filter: blur(56px); animation: login-float 12s ease-in-out infinite; }
.login-scene i:nth-child(2) { top: 80px; right: -80px; width: 320px; height: 320px; background: linear-gradient(225deg, #fbcfe84d, #fed7aa4d); border-radius: 35%; filter: blur(36px); animation: login-rotate 25s linear infinite; }
.login-scene i:nth-child(3) { bottom: -80px; left: -80px; width: 0; height: 0; border: solid transparent; border-width: 0 120px 200px; border-bottom-color: #22c55e33; filter: blur(30px); animation: login-float 15s ease-in-out 3s infinite; }
.login-scene i:nth-child(4) { bottom: 40px; right: -64px; width: 288px; height: 288px; border-radius: 50%; background: linear-gradient(45deg, #c7d2fe59, #a5f3fc59); filter: blur(34px); animation: login-float 18s ease-in-out 5s infinite; }
.login-scene i:nth-child(5) { top: 33%; right: 25%; width: 128px; height: 128px; border-radius: 35%; background: linear-gradient(90deg, #fef08a66, #fecaca66); filter: blur(22px); animation: login-rotate 30s linear 2s infinite; }
@keyframes login-float { 50% { transform: translate(16px, -18px); } }
@keyframes login-rotate { to { transform: rotate(360deg); } }
.login-content { width: min(100%, 448px); }
.login-emblem { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 32px; border: 1px solid #ffffffeb; border-radius: 16px; background: #fff; box-shadow: 0 8px 20px #1f293719; }
.login-emblem img { display: block; width: 48px; height: 48px; object-fit: contain; }
#login-title { margin: 0 0 8px; text-align: center; font-size: 30px; font-weight: 650; line-height: 1.2; letter-spacing: -.025em; }
.login-intro { margin: 0 0 32px; text-align: center; font-size: 14px; color: #4b5563; line-height: 1.5; }
#login-view .login-card { width: 100%; max-width: none; padding: 30px 24px; border: 1px solid #ffffffc9; border-radius: 16px; background: #ffffffcc; box-shadow: 0 25px 50px -16px #18254c31; backdrop-filter: blur(24px); }
#login-form { gap: 22px; }
#login-form label { display: block; margin: 0 0 8px; color: #111827; font-size: 14px; font-weight: 500; }
#login-form input { height: 44px; padding: 0 12px; color: #111827; font-size: 14px; border-color: #e2e7ef; border-radius: 8px; background: #ffffffa8; }
#login-form input::placeholder { color: #687387; }
#login-form input:focus { border-color: #666eeb; box-shadow: 0 0 0 3px #dce7ff; }
.login-password-wrap { position: relative; }
#login-form #login-password { padding-right: 44px; }
.login-eye { position: absolute; inset: 0 2px 0 auto; display: grid; place-items: center; width: 40px; border: 0; border-radius: 7px; background: transparent; color: #526177; cursor: pointer; }
.login-eye svg { width: 17px; height: 17px; }
.login-eye[aria-pressed=false] .eye-slash { display: none; }
.login-options { display: flex; justify-content: flex-end; }
.login-link { padding: 0; border: 0; background: transparent; color: #1d52bd; font-size: inherit; font-weight: 500; cursor: pointer; }
.login-link:hover { text-decoration: underline; }
.login-options .login-link { font-size: 14px; }
.login-submit, .login-provider { min-height: 44px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.login-submit { color: #fff; border: 0; background: linear-gradient(90deg, #2563eb, #1d4ed8); box-shadow: 0 6px 15px #1d4ed833; cursor: pointer; transition: transform .18s, box-shadow .18s; }
.login-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 9px 19px #1d4ed849; }
.login-submit:active:not(:disabled) { transform: scale(.985); }
#login-form[aria-busy=true] .login-submit { cursor: progress; }
#login-view button:focus-visible { outline: 3px solid #93b5fb; outline-offset: 2px; }
#login-message { margin: -8px 0 0; font-size: 12px; }
#login-message:not(.is-error):not(.is-success) { color: #244c8a; background: #edf4ff; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 24px 0 20px; color: #596273; font-size: 14px; text-align: center; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: #e2e7ef; }
.login-quick { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.login-provider { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 4px; white-space: nowrap; border: 1px solid #e1e6ef; color: #394557; background: #ffffffa8; box-shadow: 0 2px 4px #1e293b09; cursor: pointer; }
.login-provider:hover { background: #fff; }
.login-provider svg { flex: 0 0 18px; width: 18px; height: 18px; }
.login-quick-status { margin: 11px 0 0; color: #596273; text-align: center; font-size: 12px; line-height: 1.5; }
#login-view .login-help { margin: 24px 0 0; padding: 0; border: 0; color: #4b5563; text-align: center; font-size: 14px; }
@media (max-width: 420px) {
  #login-view { padding: 30px 16px; }
  #login-view .login-card { padding: 24px 18px; }
  #login-title { font-size: 26px; }
  .login-provider { font-size: 12px; }
  #login-form input { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
