
:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #e8edf3;
  background: #09131f;
  line-height: 1.45;
}

* { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(circle at 15% 0, #12304a 0, #09131f 38rem); }
button, input, select { font: inherit; }
button { border: 0; border-radius: .55rem; background: #19a7a8; color: #031a20; padding: .68rem .9rem; font-weight: 750; cursor: pointer; }
button:hover { background: #42c4bd; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #d4ab54; outline-offset: 2px; }
.quiet { background: transparent; color: #a9e8e3; border: 1px solid #2b5264; }
.shell { max-width: 1380px; margin: auto; padding: 2rem 1.25rem; }
.login-card, .card { background: #101e2d; border: 1px solid #264356; border-radius: 1rem; box-shadow: 0 1rem 2.5rem #0005; }
.login-card { max-width: 31rem; padding: 2rem; margin: 8vh auto; }
.eyebrow { margin: 0; color: #67d9d2; font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.15; margin: .25rem 0 1rem; }
h1 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h2 { font-size: 1.35rem; }
.muted { color: #aab8c5; }
.error { min-height: 1.4rem; color: #ffaaa5; }
.success { color: #80ece1; }
.auth-switch { margin: 1.2rem 0 0; color: #aab8c5; }
.text-button { padding: 0; border: 0; border-radius: 0; background: transparent; color: #80ece1; text-decoration: underline; font-weight: 750; }
.text-button:hover { background: transparent; color: #d4ab54; }
.topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; border-bottom: 1px solid #264356; padding-bottom: 1.1rem; }
.session { display: flex; gap: .75rem; align-items: center; color: #b9cbd7; font-size: .9rem; }
.workspace { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.sidebar { border-right: 1px solid #264356; padding-right: 1rem; }
.sidebar h2 { font-size: 1rem; }
.sidebar button { display: block; width: 100%; text-align: left; background: transparent; color: #c6d3dc; margin: .25rem 0; }
.sidebar button[aria-current="page"] { background: #173a4b; color: #80ece1; }
.content { min-width: 0; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.metrics, .grid-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.metric, .card { padding: 1.1rem; }
.metric { background: #102536; border: 1px solid #264356; border-radius: .75rem; }
.metric strong { display: block; font-size: 1.35rem; color: #77e0d9; }
.table-wrap { overflow: auto; border: 1px solid #264356; border-radius: .7rem; }
table { border-collapse: collapse; width: 100%; min-width: 38rem; }
th, td { text-align: left; padding: .75rem; border-bottom: 1px solid #213b4a; font-size: .9rem; }
th { color: #9fb5c3; }
.inline-form, form, fieldset { display: grid; gap: .8rem; }
.inline-form { grid-template-columns: 1fr 1fr auto auto; align-items: end; }
.invite-form { grid-template-columns: minmax(12rem, 2fr) repeat(3, minmax(8rem, 1fr)); align-items: end; }
.invite-form .consent { grid-column: 1 / -1; display: flex; align-items: start; gap: .5rem; color: #c6d3dc; }
.invite-form .consent input { width: auto; margin-top: .2rem; }
.role-select { min-width: 10rem; }
.card label, fieldset { display: grid; gap: .35rem; }
input, select { background: #091824; color: #e8edf3; border: 1px solid #3a5c6e; border-radius: .45rem; padding: .6rem; }
fieldset { border: 1px solid #315264; border-radius: .55rem; }
.permission-list, .list { display: grid; gap: .45rem; margin-top: .8rem; }
.permission { display: flex !important; justify-content: space-between; align-items: center; padding: .55rem; border-bottom: 1px solid #213b4a; }
.notice { padding: .7rem .9rem; background: #173a4b; border-left: 3px solid #d4ab54; }
.empty { padding: 2rem; border: 1px dashed #3a5c6e; color: #aab8c5; border-radius: .7rem; }

@media (max-width: 760px) {
  .shell { padding: 1rem; }
  .topbar, .workspace { display: block; }
  .sidebar { border-right: 0; border-bottom: 1px solid #264356; padding: 0 0 1rem; margin-bottom: 1rem; }
  .sidebar nav { display: flex; gap: .35rem; overflow: auto; }
  .sidebar button { white-space: nowrap; width: auto; }
  .metrics, .grid-two, .inline-form, .invite-form { grid-template-columns: 1fr; }
  .session { align-items: flex-end; flex-direction: column; }
}
