@font-face {
  font-family: Inter;
  src: url('/inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #17201d;
  --muted: #57645d;
  --faint: #e4e9e5;
  --line: #d5dcd7;
  --frame: #f2f5f2;
  --hover: #e9efea;
  --sheet: #fff;
  --green: #235843;
  --soft-green: #e5f1e8;
  --warn: #794b07;
  --soft-warn: #fbefda;
  --red: #943a39;
  --soft-red: #f8e9e7;
  --gap: 20px;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--frame);
  font-size: 14px;
  font-synthesis: none;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.16s ease,
    color 0.16s ease,
    border-color 0.16s ease,
    transform 0.12s ease;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:active:not(:disabled),
a.btn:active {
  transform: translateY(1px);
}
button:disabled,
select:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #47755d;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  letter-spacing: -0.04em;
  line-height: 1.17;
}
h1 {
  font-size: clamp(24px, 2.1vw, 32px);
  font-weight: 620;
}
h2 {
  font-size: 19px;
  font-weight: 620;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
svg.icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  vertical-align: middle;
  flex: 0 0 auto;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
[hidden] {
  display: none !important;
}
.muted,
.sub {
  color: var(--muted);
}
.sub {
  display: block;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.boot {
  min-height: 100dvh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
}
.btn,
.icon-btn,
.nav-item,
.text-btn,
.mini {
  border: none;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 540;
  line-height: 1.3;
}
.btn {
  padding: 10px 16px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  white-space: normal;
  text-align: center;
}
.btn:hover,
.icon-btn:hover,
.mini:hover,
.text-btn:hover {
  background: var(--hover);
}
.btn.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.btn.primary:hover {
  background: #30483a;
}
.btn.danger,
.mini.danger {
  color: var(--red);
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
}
.text-btn,
.mini {
  color: var(--green);
  padding: 7px 9px;
  border-radius: 6px;
}
.mini {
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.auth-shell {
  display: grid;
  grid-template-columns: 1fr minmax(0, 0.97fr);
  min-height: 100dvh;
  background: var(--sheet);
  padding: 14px;
}
.auth-pane {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 36px) clamp(18px, 3vw, 48px);
}
.auth-brand {
  display: inline-flex;
  align-items: center;
}
.auth-brand img {
  width: 92px;
  height: auto;
}
.auth-main {
  flex: 1;
  display: grid;
  align-content: center;
  width: min(365px, 100%);
  align-self: center;
  padding: 40px 0;
}
.auth-main h1 {
  font-size: clamp(28px, 2.7vw, 40px);
  font-weight: 600;
  letter-spacing: -0.055em;
}
.auth-main > p {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 37ch;
  overflow-wrap: anywhere;
}
.auth-main form {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}
.auth-main form .btn {
  width: 100%;
  justify-content: space-between;
  min-height: 48px;
  padding-inline: 16px;
}
.auth-main .btn-linkline {
  margin: 10px 0 0;
  justify-content: space-between;
  display: flex;
  flex-wrap: wrap;
}
.auth-footer {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.auth-footer .icon {
  width: 16px;
  height: 16px;
}
.auth-art {
  background: #12362f url('/press.webp') center / cover no-repeat;
  color: #fff;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: clamp(25px, 3.8vw, 60px);
  min-height: 440px;
}
.auth-art p {
  margin: 0 0 3px;
  color: #dbeae3;
  font-size: 15px;
  letter-spacing: -0.015em;
}
.auth-art strong {
  font-size: clamp(48px, 6.1vw, 100px);
  font-weight: 540;
  line-height: 1;
  letter-spacing: -0.08em;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 14px;
  font-weight: 540;
  min-width: 0;
}
.field small,
.hint {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
input:not([type='checkbox']),
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 7px;
  padding: 10px 12px;
  line-height: 1.4;
  min-height: 42px;
}
input::placeholder,
textarea::placeholder {
  color: #69736c;
}
input[autocomplete='one-time-code'] {
  letter-spacing: 0.28em;
  font-size: 20px;
  font-weight: 580;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}
.check input {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
  flex-shrink: 0;
}
.error {
  color: var(--red);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.notice-line {
  padding: 14px 0;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  grid-template-rows: 55px 1fr;
}
.sidebar {
  grid-column: 1;
  grid-row: 1/3;
  position: sticky;
  top: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 22px 14px 16px;
  min-width: 0;
}
.side-brand {
  margin: 0 12px 30px;
}
.side-brand img {
  width: 85px;
  height: auto;
}
.nav-group {
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
}
.nav-label {
  margin: 5px 12px 6px;
  font-size: 12px;
  font-weight: 530;
  color: var(--muted);
}
.nav-item {
  justify-content: flex-start;
  min-height: 38px;
  padding: 9px 11px;
  color: #46534a;
  border-radius: 7px;
  font-weight: 460;
}
.nav-item[aria-current='page'] {
  background: #e2e8e2;
  color: #13271a;
  font-weight: 610;
}
.nav-item:hover {
  background: var(--hover);
}
.nav-item .icon {
  height: 17px;
  width: 17px;
}
.user-block {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  gap: 8px;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 14px 3px 0;
}
.user-block strong,
.user-block .sub {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-block strong {
  font-size: 13px;
  font-weight: 600;
}
.user-block .icon-btn {
  width: 32px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dce7dc;
  color: #2d4d34;
  font-size: 14px;
  font-weight: 640;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px 0 12px;
  gap: 12px;
}
.crumb,
.domain {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.crumb strong {
  font-weight: 560;
  color: var(--ink);
}
.crumb .icon,
.domain .icon {
  width: 14px;
  height: 14px;
}
.mobile-menu,
.drawer-close {
  display: none;
}
.sheet {
  grid-column: 2;
  min-width: 0;
  margin: 0 10px 10px 0;
  padding: clamp(23px, 3vw, 48px);
  background: #fff;
  border: 1px solid var(--faint);
  border-radius: 15px;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}
.page-head p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
}
.page-head > div:first-child {
  min-width: 0;
}
.tools,
.actions,
.inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.scope {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.scope .field {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.scope select {
  min-width: 155px;
  max-width: 240px;
  font-size: 13px;
  min-height: 36px;
  padding: 7px;
}
.metrics {
  border: 1px solid var(--faint);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 var(--gap);
  overflow: hidden;
}
.metric {
  padding: 16px 21px;
  border-left: 1px solid var(--faint);
}
.metric:first-child {
  border: 0;
}
.metric span {
  color: var(--muted);
  font-size: 13px;
}
.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 570;
  letter-spacing: -0.05em;
  margin-top: 5px;
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.85fr);
  gap: var(--gap);
  align-items: start;
}
.column {
  display: grid;
  gap: var(--gap);
  min-width: 0;
}
.panel,
.box {
  border: 1px solid var(--faint);
  border-radius: 10px;
  overflow: hidden;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--faint);
}
.panel-head h2 {
  font-size: 16px;
  letter-spacing: -0.03em;
}
.panel-head a,
.panel-head button {
  font-size: 13px;
}
.panel-body {
  padding: 0 19px;
}
.empty {
  padding: 22px 0;
  color: var(--muted);
  font-size: 14px;
}
.panel .empty p + p {
  margin-top: 5px;
}
.panel .empty .text-btn {
  margin: 7px 0 -3px -9px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--faint);
  padding: 13px 0;
}
.row:first-child {
  border: 0;
}
.row > div:first-child {
  min-width: 0;
}
.row strong,
.cell-name {
  font-weight: 560;
  overflow-wrap: anywhere;
}
.tone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 530;
  white-space: nowrap;
}
.tone::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #919d96;
  flex-shrink: 0;
}
.tone.good {
  color: var(--green);
}
.tone.good::before {
  background: #408266;
}
.tone.wait {
  color: var(--warn);
}
.tone.wait::before {
  background: #ae7626;
}
.tone.bad {
  color: var(--red);
}
.tone.bad::before {
  background: #bf6762;
}
.table-wrap {
  min-width: 0;
  border: 1px solid var(--faint);
  border-radius: 10px;
  overflow: hidden;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th,
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--faint);
  vertical-align: middle;
  overflow-wrap: anywhere;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
}
tbody tr:last-child td {
  border-bottom: 0;
}
td:last-child:has(.actions) {
  width: 1%;
  white-space: nowrap;
}
td .actions {
  flex-wrap: nowrap;
}
.table-empty {
  padding: 24px;
  color: var(--muted);
}
.message {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.draft {
  padding: 18px 19px;
  border-top: 1px solid var(--faint);
}
.draft:first-child {
  border-top: 0;
}
.draft header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}
.draft p {
  margin: 10px 0;
}
.tabs {
  display: flex;
  gap: 15px;
  align-items: center;
  border-bottom: 1px solid var(--faint);
  margin: 0 0 20px;
  overflow: auto;
}
.tab {
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  padding: 8px 0;
  color: var(--muted);
  white-space: nowrap;
}
.tab[aria-pressed='true'] {
  color: var(--ink);
  border-color: var(--green);
  font-weight: 600;
}
.settings {
  display: grid;
  gap: 22px;
}
.setting-section {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1.45fr);
  gap: 26px;
  border-top: 1px solid var(--faint);
  padding-top: 23px;
}
.setting-section h2 {
  font-size: 16px;
  margin: 6px 0;
}
.setting-section p {
  color: var(--muted);
  font-size: 13px;
}
.settings .panel-body {
  background: #f7f9f7;
  border-radius: 8px;
  padding: 4px 15px;
}
.settings .row {
  align-items: flex-start;
}
.control-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 12px;
}
.control-status ~ .mini {
  margin-bottom: 12px;
}
.settings .actions {
  justify-content: flex-end;
}
.dialog-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 19px;
}
.dialog-title h2 {
  font-size: 22px;
}
dialog {
  width: min(470px, calc(100% - 24px));
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  padding: 24px;
  box-shadow: 0 18px 70px #10231c33;
}
dialog::backdrop {
  background: #0d211988;
}
dialog form,
.dialog-body {
  display: grid;
  gap: 16px;
}
dialog .actions {
  justify-content: flex-end;
  border-top: 1px solid var(--faint);
  padding-top: 16px;
  margin-top: 3px;
}
dialog .form-text {
  font-size: 14px;
  color: var(--muted);
}
dialog code {
  display: block;
  background: var(--frame);
  border-radius: 7px;
  padding: 14px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  max-width: calc(100vw - 24px);
  width: max-content;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  padding: 12px 18px;
  box-shadow: 0 4px 18px #12261c26;
}
@media (min-width: 1500px) {
  .sheet {
    padding-right: clamp(48px, 5vw, 110px);
    padding-left: clamp(48px, 5vw, 110px);
  }
}
@media (max-width: 1050px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 52px 1fr;
  }
  .sidebar {
    display: none;
  }
  .mobile-menu,
  .drawer-close {
    display: inline-flex;
  }
  .drawer-close {
    margin-left: auto;
  }
  .sidebar.open {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: min(315px, 100%);
    z-index: 4;
    background: var(--frame);
    box-shadow: 0 0 0 100vmax #10231c66;
  }
  .side-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .topbar,
  .sheet {
    grid-column: 1;
  }
  .topbar {
    padding: 0 16px 0 8px;
  }
  .sheet {
    margin: 0 8px 8px;
    padding: 24px;
  }
}
@media (max-width: 700px) {
  .auth-shell {
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  .auth-pane {
    order: 2;
    flex: 1;
    padding: 22px 24px;
    min-height: calc(100dvh - 120px);
  }
  .auth-art {
    order: 1;
    border-radius: 0;
    min-height: 120px;
    padding: 15px 24px;
    background-position: 50% 46%;
    justify-content: center;
  }
  .auth-art p {
    font-size: 12px;
  }
  .auth-art strong {
    font-size: 38px;
  }
  .auth-brand img {
    width: 76px;
  }
  .auth-main {
    padding: 30px 0;
    align-content: center;
  }
  .auth-main form {
    margin-top: 22px;
  }
  .sheet {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 22px 16px;
    min-height: calc(100dvh - 52px);
  }
  .page-head {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
  }
  .scope {
    align-items: flex-start;
    flex-wrap: wrap;
    margin-bottom: 14px;
  }
  .scope .field {
    flex-wrap: wrap;
  }
  .scope select {
    max-width: 100%;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 12px 14px;
  }
  .metric:nth-child(3) {
    border-left: 0;
  }
  .metric:nth-child(n + 3) {
    border-top: 1px solid var(--faint);
  }
  .overview-grid,
  .setting-section {
    grid-template-columns: 1fr;
  }
  .setting-section {
    gap: 10px;
  }
  .setting-section h2 {
    margin-top: 0;
  }
  .btn,
  .icon-btn,
  .mini,
  .text-btn,
  .nav-item,
  .tab {
    min-height: 44px;
  }
  .panel-head {
    padding: 11px 14px;
  }
  .panel-body {
    padding: 0 14px;
  }
  .table-wrap table,
  tbody,
  tr,
  td {
    display: block;
  }
  .table-wrap thead {
    position: absolute;
    height: 1px;
    width: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-wrap tbody tr {
    padding: 10px 14px;
    border-bottom: 1px solid var(--faint);
  }
  .table-wrap tbody tr:last-child {
    border: 0;
  }
  .table-wrap td {
    border: 0;
    padding: 4px 0;
    white-space: normal;
  }
  .table-wrap td[data-label]::before {
    content: attr(data-label) ' · ';
    font-size: 12px;
    color: var(--muted);
  }
  .table-wrap td:has(.actions) {
    width: 100%;
  }
  .table-wrap td .actions {
    white-space: normal;
    flex-wrap: wrap;
  }
  .tabs {
    gap: 14px;
  }
  dialog {
    padding: 18px;
  }
}
@media (max-width: 390px) {
  .crumb .scope-label {
    display: none;
  }
  .auth-pane {
    padding: 20px;
  }
  .domain {
    gap: 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
