:root {
  font-family: "Geist", system-ui, sans-serif;
  color: #172e2b;
  background: #f4f6f2;
  line-height: 1.55;
  --muted: #53665f;
  --accent: #174f41;
  --border: #ccd7cd;
}
* { box-sizing: border-box; }
body { margin: 0; }
.topbar {
  min-height: 74px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px clamp(16px, 5vw, 76px); background: #15362e; color: white;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: white; text-decoration: none; font-size: 1.18rem; font-weight: 750; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #d1e9af; color: #17382e; }
#session { display: flex; align-items: center; gap: 12px; font-size: .88rem; overflow-wrap: anywhere; }
#session button { flex: none; }
main { max-width: 1220px; margin: auto; padding: 30px clamp(16px, 5vw, 62px) 96px; }
h1, h2, p { margin: 0 0 12px; }
h1 { font-size: clamp(1.8rem, 4vw, 2.65rem); line-height: 1.15; letter-spacing: -.045em; }
h2 { font-size: 1.18rem; letter-spacing: -.02em; }
.muted { color: var(--muted); }
.card { background: white; border: 1px solid var(--border); border-radius: 15px; padding: clamp(16px, 3vw, 28px); margin-bottom: 18px; }
.auth { max-width: 460px; margin: 35px auto; }
.workspace { display: grid; grid-template-columns: minmax(180px, 220px) minmax(0, 1fr); gap: 24px; }
aside { align-self: start; }
aside nav { display: grid; gap: 5px; margin: 15px 0; }
aside nav button { text-align: left; }
aside nav button[aria-current="page"] { background: #def0e6; color: #143c30; border-color: #aecabb; }
form { display: grid; gap: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; gap: 12px; }
label { display: grid; gap: 4px; font-size: .88rem; font-weight: 650; }
label.inline { display: flex; align-items: center; min-height: 42px; }
input, select, button { font: inherit; }
input:not([type="checkbox"]), select { min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid #9eb3a5; border-radius: 8px; background: white; color: inherit; }
button { min-height: 42px; border: 1px solid var(--accent); border-radius: 8px; background: var(--accent); color: white; font-weight: 670; padding: 7px 14px; cursor: pointer; }
button.secondary { border-color: var(--border); background: white; color: var(--accent); }
button:disabled { opacity: .55; cursor: wait; }
:focus-visible { outline: 3px solid #427958; outline-offset: 2px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-wrap { overflow: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 9px; border-bottom: 1px solid #e1e8e2; }
th { color: var(--muted); white-space: nowrap; }
td.number { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
fieldset { min-width: 0; padding: 12px; margin: 0; border: 1px solid var(--border); border-radius: 10px; }
legend { font-weight: 650; padding: 0 5px; }
#notice:not(:empty) { position: fixed; z-index: 1; right: 16px; bottom: 16px; max-width: min(550px, calc(100vw - 32px)); padding: 12px 16px; background: #15362e; color: white; border-radius: 8px; overflow-wrap: anywhere; }
#notice.error { background: #8b3027; }
@media (max-width: 700px) {
  .workspace { grid-template-columns: 1fr; gap: 8px; }
  aside nav { display: flex; flex-wrap: wrap; }
  #session .email { display: none; }
}
