:root {
  color-scheme: light;
  --ink: #202e2a;
  --muted: #66756e;
  --green: #16704e;
  --green-dark: #10593e;
  --green-light: #eaf4ee;
  --line: #e4e9e6;
  --canvas: #f6f8f7;
  --red: #ad4438;
  --amber: #89601d;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: var(--green-dark); text-underline-offset: 4px; }
button { cursor: pointer; }
button, .button { min-height: 42px; border: 1px solid #d8e0da; border-radius: 7px; padding: 10px 16px; background: #fff; color: #42574a; font-weight: 550; line-height: 1.4; text-align: center; }
.button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button.primary, .button.primary { background: var(--green); color: #fff; border-color: var(--green); box-shadow: 0 1px 2px #10593e20; }
button:disabled { opacity: .55; cursor: wait; }
button.quiet { border-color: transparent; background: transparent; padding-inline: 8px; color: var(--muted); }
button.danger { color: var(--red); }
:focus-visible { outline: 3px solid #2d795d; outline-offset: 3px; }
input, select { min-height: 44px; width: 100%; padding: 10px 12px; border: 1px solid #d8e0da; border-radius: 8px; background: #fff; color: var(--ink); font-size: 16px; }
input[aria-invalid=true] { border-color: var(--red); }
input[readonly] { background: var(--canvas); }
label { display: block; font-size: 13px; font-weight: 550; margin-bottom: 8px; }
.field { margin-block: 19px; }
.field small { display: block; margin-top: 7px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.4; letter-spacing: -.7px; font-weight: 650; }
h2 { font-size: 18px; line-height: 1.5; font-weight: 630; }
h3 { font-size: 15px; font-weight: 600; }
p { line-height: 1.8; }
small, .small { font-size: 12px; line-height: 1.7; }
.muted { color: var(--muted); }
.eyebrow { color: var(--muted); font-size: 11px; letter-spacing: 1.6px; margin-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 670; font-size: 17px; color: var(--ink); text-decoration: none; letter-spacing: -.4px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 19px; flex: 0 0 auto; }
.skip-link { position: fixed; top: -90px; left: 12px; z-index: 20; padding: 12px 20px; background: #fff; border-radius: 6px; }
.skip-link:focus { top: 10px; }
.initial { padding: 10vh 24px; max-width: 800px; margin: auto; }
.initial p { margin-top: 20px; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .9fr) minmax(420px, 1.1fr); }
.auth-intro { display: flex; flex-direction: column; padding: 46px clamp(30px, 5vw, 86px); background: #edf4ef; border-right: 1px solid #dce7df; }
.auth-story { margin-block: auto; padding-block: 70px; max-width: 450px; }
.auth-story h1 { font-size: clamp(30px, 3.3vw, 46px); line-height: 1.5; letter-spacing: -1.2px; }
.auth-story > p { color: #51695c; margin-top: 22px; font-size: 15px; }
.auth-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; }
.auth-steps li { display: flex; align-items: center; gap: 13px; color: #425e4d; }
.step-number { border: 1px solid #cadbd0; background: #ffffff70; border-radius: 50%; width: 28px; height: 28px; display: inline-grid; place-items: center; font-size: 12px; flex: 0 0 auto; }
.auth-content { display: grid; place-items: center; padding: 50px 28px; background: #fff; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card > p { margin-top: 10px; color: var(--muted); }
.auth-card form { margin-top: 28px; }
.auth-card .primary { width: 100%; }
.auth-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 236px; padding: 28px 18px 18px; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.sidebar .brand { padding-inline: 8px; }
.workspace-switch { margin-block: 34px 24px; }
.workspace-switch label { color: var(--muted); font-size: 11px; margin-left: 8px; }
.workspace-switch select { font-size: 13px; }
.nav { display: grid; gap: 5px; }
.nav a { padding: 12px; border-radius: 7px; text-decoration: none; color: #596960; min-height: 44px; }
.nav a[aria-current=page] { color: var(--green-dark); background: var(--green-light); font-weight: 600; }
.profile { margin-top: auto; padding: 18px 8px 0; border-top: 1px solid var(--line); }
.profile p { overflow-wrap: anywhere; font-size: 12px; }
.session-label { display: flex; align-items: center; gap: 6px; color: var(--green); font-size: 11px; margin-bottom: 5px; }
.session-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.app-body { margin-left: 236px; }
.topbar { min-height: 68px; padding: 17px 36px; background: #ffffffd9; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.breadcrumb { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.pill { display: inline-flex; align-items: center; width: fit-content; padding: 4px 9px; border-radius: 5px; font-size: 11px; font-weight: 550; background: var(--green-light); color: var(--green-dark); }
.pill.warning { background: #fbf2df; color: var(--amber); }
.pill.error { background: #fbeeea; color: var(--red); }
.main { max-width: 1160px; margin: auto; padding: 34px 36px 80px; }
.page-heading { margin-bottom: 28px; }
.page-heading p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 26px; }
.card + .card { margin-top: 20px; }
.card-head { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 22px; }
.card-head p { margin-top: 6px; font-size: 12px; color: var(--muted); }
.grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(230px, 1fr); gap: 22px; align-items: start; }
.grid > .card + .card { margin: 0; }
.form-narrow { max-width: 450px; }
.inline-form { display: flex; gap: 10px; align-items: flex-end; }
.inline-form .field { flex: 1; min-width: 0; margin: 0; }
.workspace-list { display: grid; gap: 12px; margin-bottom: 26px; }
.workspace-link { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 19px 22px; background: #fff; border: 1px solid var(--line); border-radius: 9px; text-decoration: none; }
.workspace-link strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.workspace-link small { display: block; color: var(--muted); margin-top: 5px; }
.empty { padding: 25px 0; }
.empty h2 { margin-bottom: 10px; }
.note { background: #f7f9f7; padding: 15px 16px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.note.warning { background: #fffaf0; border-color: #efdfbf; color: #79561c; }
.note.error { background: #fff6f3; border-color: #efd6cf; color: var(--red); }
.spaced { margin-top: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.qr-panel { padding: 30px 12px; display: grid; justify-items: center; gap: 18px; text-align: center; background: #f9fbf9; border: 1px solid var(--line); border-radius: 8px; }
.qr-frame { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 12px; width: min(242px, 100%); aspect-ratio: 1; display: grid; place-items: center; }
.qr-frame img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; outline: 1px solid oklch(0 0 0 / .1); }
.qr-placeholder { color: #789083; font-size: 35px; border: 2px dashed #c6d8cc; width: 110px; height: 110px; display: grid; place-items: center; border-radius: 10px; }
.qr-panel p { max-width: 390px; font-size: 13px; color: var(--muted); }
.instructions { padding-left: 20px; margin: 17px 0 0; color: var(--muted); line-height: 2; font-size: 13px; }
.instructions li + li { margin-top: 8px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; font-weight: 550; background: #f8faf8; }
th, td { padding: 13px 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
td small { display: block; color: var(--muted); }
.invite-result { margin-top: 20px; padding: 18px; border-radius: 8px; background: var(--green-light); }
.invite-result p { font-size: 12px; margin-bottom: 14px; }
.invite-card { max-width: 620px; }
.account-name { font-size: 25px; font-weight: 630; margin-top: 13px; overflow-wrap: anywhere; }
.announcements { position: fixed; bottom: 20px; right: 24px; z-index: 10; max-width: min(440px, calc(100vw - 32px)); padding: 13px 18px; border: 1px solid #c8ded0; border-radius: 8px; background: #edf7f0; box-shadow: 0 4px 20px #203b2a12; color: var(--green-dark); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.announcements:empty { display: none; }
.announcements.error { bottom: 82px; border-color: #e9c7be; background: #fff4ef; color: var(--red); }
@media (hover: hover) {
  button:not(:disabled):hover, .button:hover { border-color: #9ab6a4; background: #f6f9f6; }
  button.primary:not(:disabled):hover, .button.primary:hover { background: var(--green-dark); }
  .nav a:hover, .workspace-link:hover { background: #f0f6f1; }
}
@media (prefers-reduced-motion: no-preference) {
  button, .button { transition-property: transform, background-color, border-color; transition-duration: 120ms; transition-timing-function: cubic-bezier(.2, 0, 0, 1); }
  button:not(:disabled):active, .button:active { transform: scale(.96); }
}
@media (max-width: 960px) { .grid { grid-template-columns: 1fr; } .sidebar { width: 216px; } .app-body { margin-left: 216px; } .main, .topbar { padding-inline: 24px; } }
@media (max-width: 760px) {
  .auth-page { display: block; }
  .auth-intro { padding: 24px; border-right: 0; border-bottom: 1px solid #dce7df; }
  .auth-story { padding: 32px 0 4px; }
  .auth-story h1 { font-size: 28px; }
  .auth-story > p { margin-top: 12px; font-size: 13px; }
  .auth-steps, .auth-intro > small { display: none; }
  .auth-content { padding: 34px 24px 70px; }
  .sidebar { position: static; width: auto; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { padding: 0; }
  .workspace-switch { margin-block: 20px 12px; }
  .nav { display: flex; flex-wrap: wrap; }
  .nav a { padding: 10px 12px; }
  .profile { margin-top: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0 0; }
  .app-body { margin-left: 0; }
  .topbar { padding: 13px 20px; min-height: 50px; }
  .main { padding: 26px 20px 100px; }
  h1 { font-size: 25px; }
  .card { padding: 20px; }
  .inline-form { flex-direction: column; align-items: stretch; }
  .card-head { flex-wrap: wrap; }
  .announcements { right: 16px; bottom: 16px; }
  th, td { padding-inline: 8px; }
}
@media (forced-colors: active) { :focus-visible { outline: 3px solid Highlight; } }

.fixture-ribbon { padding: 10px 20px; background: #fff3d8; color: #79561c; font-size: 12px; text-align: center; border-bottom: 1px solid #efdfbf; }
.auth-card .fixture-ribbon { margin-bottom: 24px; border-radius: 7px; }

button[aria-busy=true]::after, form[aria-busy=true] button[type=submit]::after { content: ""; display: inline-block; width: 12px; height: 12px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; margin-left: 9px; vertical-align: -1px; }
@media (prefers-reduced-motion: no-preference) {
  button[aria-busy=true]::after, form[aria-busy=true] button[type=submit]::after { animation: busy-spin 800ms linear infinite; }
  @keyframes busy-spin { to { transform: rotate(360deg); } }
}
