@font-face {
  font-family: system;
  src: local("Inter"), local("SF Pro Text"), local("Segoe UI");
}
:root {
  font-family:
    system,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #222d29;
  background: #f7f8f5;
  font-synthesis: none;
  --surface: #fff;
  --surface-2: #f2f5f0;
  --text: #222d29;
  --muted: #69746d;
  --line: #dde4dc;
  --accent: #286c52;
  --accent-hover: #1b523d;
  --accent-soft: #e9f3ea;
  --danger: #a5302e;
  --danger-bg: #fff0ef;
  --shadow: 0 10px 36px #273d2910;
  font-size: 15px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #78a98a;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.045em;
  margin-bottom: 0.6rem;
  font-weight: 650;
}
h2 {
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
p {
  margin-bottom: 1rem;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 0.84rem;
}
strong {
  font-weight: 600;
}
ul {
  padding-left: 1.3rem;
}
code {
  font: inherit;
}
svg {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.5rem 0;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  padding: 0.6rem 1rem;
  background: var(--surface);
  z-index: 10;
}
.skip-link:focus {
  top: 1rem;
}
.initial-state {
  padding: 4rem;
  text-align: center;
  color: var(--muted);
}
.content:focus,
.auth-main:focus {
  outline: none;
}
.shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 2rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.45rem;
  letter-spacing: -0.055em;
  font-weight: 650;
  color: var(--text);
  text-decoration: none;
  padding: 0 0.65rem;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: var(--accent);
  color: white;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.08em;
}
.brand-note {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-left: 0.2rem;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 500;
}
.nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav-link[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.nav-caption {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: 0.68rem;
  padding: 0.7rem 0.85rem 0.2rem;
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 1.2rem;
}
.sidebar-note {
  font-size: 0.81rem;
  line-height: 1.6;
  color: var(--muted);
  padding: 0 0.85rem;
}
.identity {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 1.15rem 0.6rem 0;
  min-width: 0;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: var(--surface-2);
  color: var(--accent);
  font-weight: 600;
  flex: none;
}
.identity-copy {
  overflow: hidden;
  flex: 1;
}
.identity-copy p {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  margin: 0;
  font-size: 0.84rem;
}
.identity-copy small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.73rem;
}
.content {
  max-width: 1280px;
  width: 100%;
  padding: 3rem 3.5rem 5rem;
  margin: 0 auto;
  min-width: 0;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}
.page-head p {
  color: var(--muted);
  max-width: 650px;
  margin-bottom: 0;
}
.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.page-actions {
  display: flex;
  gap: 0.5rem;
  flex: none;
  align-items: center;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  min-height: 41px;
  padding: 0.55rem 1rem;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.87rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: var(--accent-hover);
  text-decoration: none;
}
.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.button.secondary:hover {
  background: var(--surface-2);
}
.button.danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: transparent;
}
.button.danger:hover {
  border-color: var(--danger);
}
.button.small {
  min-height: 33px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
}
.button.text {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding: 0.35rem 0.5rem;
  min-height: 32px;
}
.button.text:hover {
  background: var(--surface-2);
  color: var(--text);
}
.button.icon-button {
  padding: 0.4rem;
  min-height: 32px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  min-width: 0;
}
.card.clickable {
  color: var(--text);
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.card.clickable:hover {
  border-color: #9cb59e;
  box-shadow: var(--shadow);
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.tile-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--accent);
}
.tile-icon svg {
  width: 23px;
  height: 23px;
}
.card-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.card h3 {
  overflow-wrap: anywhere;
}
.card p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.85rem;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  margin-top: 1.2rem;
  font-size: 0.79rem;
  color: var(--muted);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 550;
  white-space: nowrap;
  line-height: 1.6;
}
.badge.online {
  color: var(--accent);
  background: var(--accent-soft);
}
.badge.online::before,
.badge.offline::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.badge.owner {
  color: var(--accent);
  background: var(--accent-soft);
}
.badge.danger {
  color: var(--danger);
  background: var(--danger-bg);
}
.section {
  margin-top: 2rem;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}
.section-title h2 {
  margin: 0;
}
.section-title p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.stack {
  display: grid;
  gap: 1rem;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.row.wrap {
  flex-wrap: wrap;
}
.row.start {
  align-items: flex-start;
}
.row-copy {
  min-width: 0;
  flex: 1;
}
.row-copy p {
  margin: 0;
  overflow-wrap: anywhere;
}
.row-copy small {
  display: block;
}
.row-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.list > li {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}
.list > li:first-child {
  padding-top: 0;
}
.list > li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.empty {
  border: 1px dashed var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 3.5rem 2rem;
  text-align: center;
}
.empty .tile-icon {
  margin: 0 auto 1rem;
  width: 50px;
  height: 50px;
}
.empty h2 {
  margin-bottom: 0.5rem;
}
.empty p {
  color: var(--muted);
  max-width: 440px;
  margin: 0 auto 1.2rem;
  font-size: 0.93rem;
}
.empty p:last-child {
  margin-bottom: 0;
}
.notice {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.notice p:last-child {
  margin-bottom: 0;
}
.notice.success {
  background: var(--accent-soft);
  border-color: #bbd7c2;
  color: var(--accent);
}
.notice.error {
  background: var(--danger-bg);
  border-color: #e8bfbb;
  color: var(--danger);
}
.notice.info {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}
.notice.info svg {
  margin-top: 2px;
  width: 17px;
  height: 17px;
}
.form {
  display: grid;
  gap: 1rem;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}
.field label {
  font-size: 0.85rem;
  font-weight: 550;
}
.field small {
  font-size: 0.79rem;
}
.input {
  width: 100%;
  min-height: 41px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
}
.input:hover {
  border-color: #aab8ac;
}
.input::placeholder {
  color: #88948b;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.inline-form .field {
  flex: 1;
  min-width: 145px;
}
.inline-form .form-status {
  flex-basis: 100%;
}
.form-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--danger);
  overflow-wrap: anywhere;
}
.form-status:empty {
  display: none;
}
.form-status.success {
  color: var(--accent);
}
.form-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
  align-items: center;
}
.details summary {
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 550;
  padding: 0.3rem 0;
}
.details[open] summary {
  margin-bottom: 1rem;
}
.help-text {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0;
}
.metadata {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 1.5rem;
  font-size: 0.87rem;
  margin: 0;
}
.metadata dt {
  color: var(--muted);
}
.metadata dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.8rem;
  letter-spacing: 0.18em;
  background: var(--surface-2);
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  margin: 1rem 0;
}
.tabs {
  display: flex;
  gap: 0.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
  padding-bottom: 0.7rem;
  overflow-x: auto;
}
.tabs .button[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.table-wrap {
  overflow-x: auto;
}
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}
.table th {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.table td {
  padding: 1rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.table tr:last-child td {
  border-bottom: 0;
}
.table td small {
  display: block;
}
.table .row-actions {
  justify-content: flex-end;
}
.table-caption {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.8rem;
}
.pagination {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}
.notification {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(540px, calc(100vw - 2rem));
  padding: 0.85rem 1.3rem;
  background: var(--text);
  color: var(--surface);
  border-radius: 9px;
  box-shadow: 0 5px 30px #0002;
  z-index: 20;
  font-size: 0.9rem;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(400px, 1.1fr);
}
.auth-aside {
  background: var(--accent);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 3rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.auth-aside .brand {
  color: #fff;
  padding: 0;
}
.auth-aside .brand-mark {
  background: #ffffff25;
  color: #fff;
}
.auth-aside .brand-note {
  color: #ffffffa8;
}
.auth-story {
  margin: auto 0;
  position: relative;
  padding: 4rem 0;
}
.auth-story h1 {
  font-size: clamp(2.6rem, 4.2vw, 4.3rem);
  letter-spacing: -0.055em;
  line-height: 1.06;
  font-weight: 550;
  max-width: 500px;
}
.auth-story > p {
  color: #d2e5d8;
  max-width: 360px;
  font-size: 1rem;
  margin-top: 1.4rem;
  line-height: 1.7;
}
.auth-illustration {
  display: grid;
  gap: 0.65rem;
  max-width: 320px;
  margin-top: 3rem;
  transform: rotate(-3deg);
}
.auth-illustration-row {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  border: 1px solid #ffffff25;
  background: #ffffff0b;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  font-size: 0.83rem;
}
.auth-illustration-row:nth-child(2) {
  margin-left: 1.5rem;
}
.auth-illustration-row .badge {
  margin-left: auto;
  background: #ffffff20;
  color: #e2f5e7;
}
.auth-aside-footer {
  font-size: 0.77rem;
  color: #c3deca;
}
.auth-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--surface);
}
.auth-box {
  width: 100%;
  max-width: 390px;
}
.auth-box h1 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}
.auth-box > p {
  color: var(--muted);
  font-size: 0.93rem;
  margin-bottom: 1.8rem;
}
.auth-box .form > .button {
  width: 100%;
}
.auth-box .notice {
  margin: 1.2rem 0;
}
.auth-footer {
  font-size: 0.79rem;
  color: var(--muted);
  text-align: center;
  margin: 2rem 0 0;
}
.auth-footer a {
  color: var(--muted);
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: var(--muted);
  font-size: 0.77rem;
  margin: 1.3rem 0;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}
.google-button {
  width: 100%;
}
.dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.8rem;
  max-width: min(460px, calc(100vw - 2rem));
  box-shadow: var(--shadow);
}
.dialog::backdrop {
  background: #16281d60;
  backdrop-filter: blur(3px);
}
.dialog h2 {
  font-size: 1.25rem;
}
.dialog p {
  color: var(--muted);
  font-size: 0.9rem;
}
.dialog .form-foot {
  margin-top: 1.5rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  text-decoration: none;
  margin-bottom: 1.3rem;
}
.desktop-notice {
  margin-top: 1.5rem;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.77rem;
  word-break: break-all;
}
.admin-marker {
  display: inline-flex;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 5px;
  padding: 0.2rem 0.45rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pill-count {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 0.4rem;
}
.screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 4rem;
  }
}
@media (max-width: 1100px) {
  .content {
    padding: 2.5rem 2rem;
  }
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 2.5rem;
  }
  .auth-story h1 {
    font-size: 3rem;
  }
}
@media (max-width: 760px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 1rem 1.2rem;
    gap: 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    padding: 0;
  }
  .sidebar .brand-note {
    margin-left: auto;
  }
  .nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.3rem;
  }
  .nav-link {
    padding: 0.5rem 0.65rem;
    font-size: 0.81rem;
    gap: 0.45rem;
  }
  .nav-link svg {
    width: 17px;
    height: 17px;
  }
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  .content {
    padding: 2rem 1.2rem 4rem;
  }
  .page-head {
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
  }
  h1 {
    font-size: 1.7rem;
  }
  .page-head p {
    font-size: 0.9rem;
  }
  .card {
    padding: 1.2rem;
  }
  .row.start {
    flex-wrap: wrap;
  }
  .row-actions {
    gap: 0.4rem;
  }
  .auth-page {
    grid-template-columns: 1fr;
  }
  .auth-aside {
    padding: 1.5rem;
    min-height: auto;
  }
  .auth-story {
    padding: 2rem 0 0;
  }
  .auth-story h1 {
    font-size: 2.1rem;
    max-width: 420px;
  }
  .auth-story > p {
    margin: 0.8rem 0 0;
    font-size: 0.9rem;
    max-width: 100%;
  }
  .auth-illustration,
  .auth-aside-footer {
    display: none;
  }
  .auth-main {
    padding: 2.5rem 1.4rem;
    justify-content: flex-start;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .table th,
  .table td {
    padding: 0.7rem 0.5rem;
  }
  .card-footer {
    flex-wrap: wrap;
  }
  .auth-box h1 {
    font-size: 1.5rem;
  }
  .metadata {
    gap: 0.6rem 1rem;
  }
  .form-foot {
    flex-wrap: wrap;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    color: #e2e9e2;
    background: #171e19;
    --surface: #1e2721;
    --surface-2: #273229;
    --text: #e2e9e2;
    --muted: #a0afa3;
    --line: #354337;
    --accent: #97cfa9;
    --accent-hover: #b3dfbf;
    --accent-soft: #2b4332;
    --danger: #efaaa2;
    --danger-bg: #482c2a;
    --shadow: 0 10px 36px #0002;
  }
  .button {
    color: #163121;
  }
  .button.secondary,
  .button.text {
    color: var(--text);
  }
  .brand-mark {
    background: #87b695;
    color: #163121;
  }
  .auth-aside {
    background: #1e4b36;
  }
  .auth-aside .brand-mark {
    color: white;
  }
  .notice.success {
    border-color: #496e50;
  }
  .notice.error {
    border-color: #76504a;
  }
  .input:hover {
    border-color: #6a836f;
  }
  .button.danger {
    color: var(--danger);
  }
  .notification {
    background: #dbe8dd;
    color: #183321;
  }
  .card.clickable:hover {
    border-color: #6a8c70;
  }
  .input::placeholder {
    color: #85968a;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
