/* Hallmark · shape: app screen · genre: modern-minimal · theme: Wayfind (deal 3/3, seed admin-keeps-cloud-accounts-79c0·645cfcfe·2026-11-09·r0) · redesign: full
 * nav: ink bar, wordmark and the routes, a menu under 60rem · signature: server board, remaining days in amber · states: empty, error, full · wayfind: platform
 * axes: light/mono/cool · posture: committed · contrast: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, accounts and sync stay ordinary ledgers; the server board is the screen that could only be this product */
/* Hallmark · answered F4 · 删除 is an ink plate so it is not the same outline as 立即同步, and cobalt stays the one accent */
@import url("./tokens.css");
@import url("./base.css");

body { font-variant-numeric: tabular-nums; }

.topbar {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  min-height: 64px;
  padding: var(--space-xs) var(--gutter);
  background: var(--color-ink);
  color: var(--color-paper);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky-nav);
}

.brand {
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.topnav {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-right: auto;
}

.topnav a,
.topbar-actions a {
  text-decoration: none;
  white-space: nowrap;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.topbar a[aria-current="page"] {
  box-shadow: inset 0 calc(var(--rule-bar) * -1) 0 var(--color-accent);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.topbar-actions form { margin: 0; }

.who { white-space: nowrap; }

.topbar button {
  background: transparent;
  color: var(--color-paper);
  border-color: var(--color-paper);
}

.topbar :focus-visible { outline-color: var(--color-paper); }

.topmenu { display: none; }

.topmenu summary {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 var(--space-sm);
  border: var(--rule-bar) solid var(--color-paper);
  cursor: pointer;
  white-space: nowrap;
  list-style: none;
}

.topmenu summary::-webkit-details-marker { display: none; }

.topmenu-panel {
  position: absolute;
  right: var(--gutter);
  top: 64px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: var(--space-xs);
  min-width: 14rem;
  padding: var(--space-sm);
  background: var(--color-ink);
  color: var(--color-paper);
  border: var(--rule-bar) solid var(--color-paper);
  z-index: var(--z-dropdown);
}

.topmenu-panel a,
.topmenu-panel .who {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

main {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: var(--space-lg) var(--gutter) var(--space-2xl);
}

section > h1 { margin-bottom: var(--space-lg); }

.plate > h1 { margin-bottom: 0; }

.screen-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.screen-head h1 { margin-bottom: 0; }

.plate {
  max-width: 32rem;
  margin-inline: auto;
  border: var(--rule-bar) solid var(--color-ink);
  background: var(--color-paper-3);
  padding: var(--space-lg);
}

.plate-wide { max-width: 60rem; }

.plate > * + * { margin-top: var(--space-md); }

.muted { color: var(--color-muted); }

.error,
.notice {
  padding: var(--space-xs) var(--space-sm);
  border: var(--rule-hair) solid var(--color-error);
  color: var(--color-ink);
  background: color-mix(in oklch, var(--color-error) 14%, var(--color-paper));
}

.notice {
  border-color: var(--color-success);
  background: color-mix(in oklch, var(--color-success) 16%, var(--color-paper));
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 500;
}

.filters,
.inline-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.filters label,
.inline-edit label {
  margin: 0;
  min-width: 9rem;
  flex: 1 1 9rem;
}

.inline-edit { margin-bottom: 0; }

input,
select {
  display: block;
  width: 100%;
  min-height: 40px;
  margin-top: var(--space-2xs);
  padding: 0 var(--space-sm);
  border: var(--rule-bar) solid var(--color-ink);
  border-radius: 0;
  background: var(--color-paper-3);
  color: var(--color-ink);
  outline: 2px solid transparent;
  outline-offset: -3px;
}

input::placeholder { color: var(--color-muted); }

@media (hover: hover) {
  input:hover,
  select:hover { background: var(--color-paper-2); }
}

input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: -3px;
}

input:active,
select:active { background: var(--color-paper-2); }

input:disabled,
select:disabled,
button:disabled,
.button[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 var(--space-md);
  border: var(--rule-bar) solid var(--color-ink);
  border-radius: 0;
  background: transparent;
  color: var(--color-ink);
  font: 800 var(--text-sm)/1 var(--font-body);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur-micro) steps(1), color var(--dur-micro) steps(1);
}

@media (hover: hover) {
  button:hover,
  .button:hover { background: var(--color-paper-2); }
  .button.primary:hover,
  button.primary:hover { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-paper); }
  .topbar button:hover,
  button.danger:hover { background: var(--color-ink-2); color: var(--color-paper); }
}

button:active,
.button:active { transform: translateY(1px); }

button:focus-visible,
.button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

button[aria-busy="true"],
.button[aria-busy="true"] { cursor: progress; }

.button.primary,
button.primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-accent-ink);
}

.button.secondary,
button.secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-ink);
}

button.danger {
  background: var(--color-ink);
  color: var(--color-paper);
  border-color: var(--color-ink);
}

form + form { margin-top: var(--space-sm); }

.table-scroll { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: var(--space-xs) var(--space-sm);
  vertical-align: middle;
}

th {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted);
  white-space: nowrap;
  border-bottom: var(--rule-bar) solid var(--color-ink);
}

td { border-bottom: var(--rule-hair) solid var(--color-rule); }

.cell-label { display: none; }

.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs);
}

.row-actions form { margin: 0; }

.row-actions a { white-space: nowrap; }

.board {
  background: var(--color-paper-3);
  color: var(--color-ink);
  border: var(--rule-bar) solid var(--color-ink);
}

.board th {
  color: var(--color-muted);
  border-bottom-color: var(--color-ink);
}

.board td {
  color: var(--color-ink);
  border-bottom-color: var(--color-rule);
}

.board a { color: var(--color-ink); white-space: nowrap; }

td.col-region,
th.col-region,
.stack-rows td.col-region { display: none; }

.vendor-icon {
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.vendor-icon-aliyun { color: var(--color-vendor-aliyun); }
.vendor-icon-tencent { color: var(--color-vendor-tencent); }

.board input {
  width: 9rem;
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 60.01rem) {
  .board td,
  .board th { white-space: nowrap; }
  .board table { width: max-content; min-width: 100%; }
  .board th:last-child,
  .board td:last-child {
    position: sticky;
    right: 0;
    background: var(--color-paper-3);
    z-index: 1;
  }
  .board tr.expiring td:last-child { background: var(--color-accent-2); }
}

.board .dest { font-weight: 500; }

.board .remaining-days {
  font-weight: 800;
  font-size: var(--text-lg);
  color: var(--color-ink);
  white-space: nowrap;
}

.board tr.expiring { background: var(--color-accent-2); color: var(--color-ink); }

.board tr.expiring td,
.board tr.expiring a,
.board tr.expiring .remaining-days,
.board tr.expiring .cell-label { color: var(--color-ink); }

.expiring-marker,
.expired-marker { font-weight: 800; }

.board .inline-edit label { color: var(--color-ink); }

@media (max-width: 60rem) {
  .topnav,
  .topbar-actions { display: none; }

  .topmenu { display: block; margin-left: auto; }

  .table-scroll { overflow-x: visible; }

  .stack-rows thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .stack-rows,
  .stack-rows tbody,
  .stack-rows tr,
  .stack-rows td { display: block; }

  .stack-rows tr {
    padding: var(--space-sm) var(--space-md);
  }

  .stack-rows td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: var(--space-sm);
    min-width: 0;
    padding: var(--space-3xs) 0;
    border-bottom: 0;
    overflow-wrap: anywhere;
  }

  .remaining-days .cell-label { order: -1; }

  .stack-rows td[colspan] { display: block; }

  .stack-rows td.row-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .cell-label {
    display: block;
    flex: 0 0 auto;
    font-size: var(--text-sm);
    font-weight: 500;
  }

  .board .cell-label { color: var(--color-muted); }
}

@media (prefers-reduced-motion: reduce) {
  button,
  .button { transition: none; }
  button:active,
  .button:active { transform: none; }
}
