:root { --ink: #0b2623; --teal: #087f73; --teal-dark: #075d56; --mint: #68e0c1; --lime: #d8ee71; --paper: #f3f5ee; --white: #fff; --muted: #667670; --line: rgba(11,38,35,.13); --danger: #a1382f; color-scheme: light; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--paper); }
* { box-sizing: border-box; }
html { min-width: 320px; }
body { min-height: 100vh; margin: 0; overflow-x: hidden; background: radial-gradient(circle at 90% 5%, rgba(104,224,193,.15), transparent 30rem), var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.ambient-one { top: 18rem; right: -12rem; width: 27rem; height: 27rem; border: 1px solid rgba(8,127,115,.14); }
.ambient-two { bottom: -16rem; left: -12rem; width: 34rem; height: 34rem; border: 1px solid rgba(8,127,115,.1); }
.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.brand-bar { display: flex; min-height: 5.5rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.admin-brand-logo { display: block; width: 8.8rem; height: auto; }
.brand-mark { display: grid; width: 2.25rem; height: 2.25rem; place-items: center; border-radius: .7rem; color: white; background: var(--teal); font-size: 1rem; letter-spacing: 0; box-shadow: 0 .6rem 1.8rem rgba(8,127,115,.18); }
.back-link { color: var(--muted); font-size: .76rem; font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--teal); }
.login-layout { display: grid; min-height: calc(100vh - 5.5rem); align-items: center; gap: 3rem; padding: 4rem 0 6rem; }
.login-copy { max-width: 39rem; }
.eyebrow { margin: 0 0 .85rem; color: var(--teal); font-family: Manrope, sans-serif; font-size: .66rem; font-weight: 800; letter-spacing: .17em; }
.login-copy h1, .dashboard-head h1 { margin: 0; font-family: Manrope, sans-serif; font-size: clamp(3.2rem, 9vw, 6.5rem); line-height: .91; letter-spacing: -.07em; }
.login-copy h1 em { color: var(--teal); font-style: normal; }
.login-copy > p:not(.eyebrow) { max-width: 35rem; margin: 1.6rem 0; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.trust-row { display: flex; align-items: center; gap: .65rem; color: var(--ink); font-size: .72rem; font-weight: 700; }
.trust-row span { width: .55rem; height: .55rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 .3rem rgba(104,224,193,.16); }
.panel { border: 1px solid rgba(11,38,35,.1); border-radius: 1.25rem; padding: 1.4rem; background: rgba(255,255,255,.84); box-shadow: 0 2rem 5rem rgba(11,38,35,.09); backdrop-filter: blur(14px); }
.panel-kicker { display: flex; align-items: center; justify-content: space-between; color: var(--teal); font-family: Manrope, sans-serif; font-size: .62rem; font-weight: 800; letter-spacing: .13em; }
.secure-dot { display: flex; align-items: center; gap: .35rem; color: var(--muted); font-size: .55rem; }
.secure-dot::before { width: .38rem; height: .38rem; border-radius: 50%; background: var(--mint); content: ""; }
.panel h2, .users-heading h2, .modal h2 { margin: 1.5rem 0 .5rem; font-family: Manrope, sans-serif; font-size: 2rem; letter-spacing: -.05em; }
.panel > p { margin: 0 0 1.4rem; color: var(--muted); font-size: .78rem; line-height: 1.6; }
label { display: block; margin: 1rem 0 .4rem; color: var(--ink); font-size: .68rem; font-weight: 800; }
input { width: 100%; min-height: 3.2rem; border: 1px solid rgba(11,38,35,.15); border-radius: .72rem; padding: .75rem .9rem; outline: none; color: var(--ink); background: white; font-size: .82rem; }
input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8,127,115,.12); }
.primary-button { display: flex; width: 100%; min-height: 3.25rem; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.2rem; border: 0; border-radius: .75rem; padding: .8rem 1rem; color: white; background: var(--teal); font-family: Manrope, sans-serif; font-size: .75rem; font-weight: 800; }
.primary-button:hover { background: var(--teal-dark); }
.primary-button:disabled { opacity: .55; cursor: wait; }
.form-error { margin: .8rem 0 0 !important; color: var(--danger) !important; font-size: .7rem !important; }
.dashboard { padding: 4rem 0 6rem; }
.dashboard-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; }
.dashboard-head h1 { font-size: clamp(3rem, 7vw, 5.6rem); }
.dashboard-head > div:first-child > p:last-child { margin: 1rem 0 0; color: var(--muted); }
.admin-actions { display: flex; align-items: center; gap: .8rem; }
.identity { color: var(--muted); font-size: .72rem; }
.quiet-button, .icon-button, .label-row button, .password-wrap button, .pagination button { border: 1px solid var(--line); border-radius: .6rem; padding: .65rem .8rem; color: var(--ink); background: rgba(255,255,255,.55); font-size: .68rem; font-weight: 700; }
.quiet-button:hover, .icon-button:hover, .label-row button:hover, .password-wrap button:hover, .pagination button:hover { border-color: var(--teal); color: var(--teal); }
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 3rem 0 1.2rem; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: var(--line); }
.summary-grid article { display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 1.2rem; background: rgba(255,255,255,.72); }
.summary-grid span { color: var(--muted); font-size: .66rem; font-weight: 700; }
.summary-grid strong { grid-row: 1 / 3; grid-column: 2; font-family: Manrope, sans-serif; font-size: 2.4rem; line-height: 1; }
.summary-grid small { margin-top: .35rem; color: var(--muted); font-size: .6rem; }
.workspace-grid { display: grid; gap: 1.2rem; }
.create-card { align-self: start; box-shadow: none; }
.label-row { display: flex; align-items: flex-end; justify-content: space-between; }
.label-row button { border: 0; padding: .2rem; color: var(--teal); background: transparent; }
.password-wrap { display: flex; }
.password-wrap input { border-radius: .72rem 0 0 .72rem; }
.password-wrap button { min-width: 4.5rem; border-left: 0; border-radius: 0 .72rem .72rem 0; background: #eef4ef; }
.users-panel { min-width: 0; border: 1px solid var(--line); border-radius: 1.2rem; padding: 1.2rem; background: rgba(255,255,255,.6); }
.users-heading { display: flex; align-items: center; justify-content: space-between; padding: .2rem .2rem 1rem; }
.users-heading .eyebrow { margin-bottom: .25rem; }
.users-heading h2 { margin: 0; font-size: 1.6rem; }
.icon-button { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; padding: 0; font-size: 1rem; }
.users-list { display: grid; gap: .65rem; }
.user-row { display: grid; grid-template-columns: minmax(0, 1.2fr) .7fr auto; align-items: center; gap: 1rem; border: 1px solid var(--line); border-radius: .85rem; padding: .9rem; background: white; }
.user-primary { display: flex; min-width: 0; align-items: center; gap: .75rem; }
.user-avatar { display: grid; width: 2.55rem; height: 2.55rem; flex: 0 0 auto; place-items: center; border-radius: .7rem; color: var(--teal); background: #e6f4ee; font-family: Manrope, sans-serif; font-size: .85rem; font-weight: 800; }
.user-name { min-width: 0; }
.user-name strong { display: block; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.user-name small, .user-meta small { display: block; margin-top: .18rem; color: var(--muted); font-size: .57rem; }
.status-pill { display: inline-flex; align-items: center; gap: .38rem; width: fit-content; border-radius: 99px; padding: .35rem .55rem; color: #176a54; background: #e5f6ee; font-size: .58rem; font-weight: 800; }
.status-pill::before { width: .35rem; height: .35rem; border-radius: 50%; background: #38aa80; content: ""; }
.status-pill.paused { color: #8b4e29; background: #fbefe4; }
.status-pill.paused::before { background: #ce7b45; }
.row-actions { display: flex; gap: .35rem; }
.row-actions button { border: 1px solid var(--line); border-radius: .55rem; padding: .5rem .62rem; color: var(--ink); background: transparent; font-size: .6rem; font-weight: 700; }
.row-actions button:hover { border-color: var(--teal); color: var(--teal); }
.row-actions .delete:hover { border-color: #e3b7b2; color: var(--danger); background: #fff4f3; }
.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-state > span { display: grid; width: 3rem; height: 3rem; margin: auto; place-items: center; border-radius: .8rem; color: white; background: var(--teal); font-family: Manrope, sans-serif; font-weight: 800; }
.empty-state h3 { margin: 1rem 0 .3rem; font-family: Manrope, sans-serif; }
.empty-state p { margin: 0; color: var(--muted); font-size: .72rem; }
.pagination { display: flex; align-items: center; justify-content: center; gap: .8rem; margin-top: 1rem; }
.pagination span { color: var(--muted); font-size: .65rem; }
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 20; max-width: min(24rem, calc(100% - 2rem)); border-radius: .75rem; padding: .8rem 1rem; color: white; background: var(--ink); box-shadow: 0 1rem 3rem rgba(11,38,35,.24); font-size: .72rem; }
.modal { width: min(28rem, calc(100% - 2rem)); border: 0; border-radius: 1.1rem; padding: 0; color: var(--ink); background: white; box-shadow: 0 2rem 7rem rgba(11,38,35,.3); }
.modal::backdrop { background: rgba(5,28,26,.62); backdrop-filter: blur(4px); }
.modal form { padding: 1.4rem; }
.modal .panel-kicker button { border: 0; padding: .2rem; color: var(--muted); background: transparent; font-size: 1.2rem; }
.modal h2 { margin-top: 1.2rem; }
.modal p { color: var(--muted); font-size: .72rem; line-height: 1.55; }
.modal .modal-note { margin-bottom: 0; font-size: .62rem; }
.modal-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: .6rem; margin-top: 1rem; }
.modal-actions button { width: 100%; margin: 0; justify-content: center; }

@media (min-width: 760px) {
  .shell { width: min(1180px, calc(100% - 4rem)); }
  .login-layout { grid-template-columns: 1.1fr minmax(22rem, .72fr); }
  .panel { padding: 2rem; }
  .workspace-grid { grid-template-columns: minmax(18rem, .65fr) minmax(0, 1.35fr); }
}
@media (max-width: 759px) {
  .login-layout { padding-top: 2.5rem; }
  .login-copy h1 { font-size: clamp(3.4rem, 18vw, 5.5rem); }
  .dashboard { padding-top: 2.5rem; }
  .dashboard-head { align-items: flex-start; flex-direction: column; }
  .admin-actions { width: 100%; justify-content: space-between; }
  .summary-grid { grid-template-columns: 1fr; }
  .user-row { grid-template-columns: 1fr auto; }
  .user-meta { grid-row: 2; }
  .row-actions { grid-row: 2; grid-column: 2; }
}
@media (max-width: 470px) {
  .shell { width: min(100% - 1.2rem, 1180px); }
  .brand-bar { min-height: 4.6rem; }
  .back-link { font-size: .64rem; }
  .dashboard-head h1 { font-size: 3.1rem; }
  .user-row { grid-template-columns: 1fr; gap: .7rem; }
  .user-meta, .row-actions { grid-row: auto; grid-column: auto; }
  .row-actions { flex-wrap: wrap; }
  .row-actions button { flex: 1; }
}
