:root {
  color-scheme: dark;
  --bg: #0c111b;
  --bg-2: #101722;
  --surface: #131c28;
  --surface-2: #192432;
  --input: #101924;
  --line: #25303f;
  --line-soft: #202a37;
  --text: #e6edf5;
  --muted: #8c9caf;
  --faint: #8292a7;
  --accent: #65ddba;
  --accent-bg: #173c35;
  --danger: #f18c91;
  --danger-bg: #36232d;
  --warn: #e6b671;
  --warn-bg: #362f24;
  --ok: #65ddba;
  --ok-bg: #193b34;
  --info: #8db6e8;
  --sans:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: #a5f0d9;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
::selection {
  background: #2b6054;
  color: #fff;
}
.app {
  display: flex;
  min-height: 100vh;
}
.side {
  width: 224px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  padding: 30px 16px 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
  overflow-y: auto;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 0 10px;
  color: var(--text);
}
.brand:hover {
  color: var(--text);
}
.brand-symbol {
  width: 39px;
  height: 39px;
  border-radius: 11px;
  background: var(--accent);
  color: #112d26;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 14px #65ddba13;
}
.brand strong {
  display: block;
  font-size: 21px;
  letter-spacing: 2px;
  line-height: 1.3;
}
.brand small {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}
.workspace-label {
  display: flex;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  margin: 30px 2px 25px;
  font-size: 11px;
  color: #b2c0d1;
}
.workspace-tag {
  margin-left: auto;
  color: var(--faint);
  font-size: 10px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.nav-heading {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 1.5px;
  margin: 0 13px 10px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 26px;
}
.nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 7px;
  font-size: 13px;
  color: #99aabd;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav a:hover {
  background: var(--surface-2);
  color: var(--text);
}
.nav a.active {
  background: #1a3532;
  color: var(--accent);
}
.nav a.active svg {
  stroke-width: 1.9;
}
.nav .badge {
  margin-left: auto;
}
.badge,
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 21px;
  height: 19px;
  padding: 0 6px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
  background: var(--danger-bg);
  color: var(--danger);
  font-weight: 600;
}
.count-pill {
  background: var(--surface-2);
  color: var(--muted);
}
.side-foot {
  margin-top: auto;
}
.side-tip {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 15px 9px 23px;
  color: var(--muted);
  font-size: 10px;
}
.side-tip svg {
  color: var(--faint);
}
.side-tip small {
  display: block;
  font-size: 10px;
  color: var(--faint);
  margin-top: 5px;
}
.side-foot .nav {
  margin-bottom: 14px;
}
.user-row {
  border-top: 1px solid var(--line);
  padding: 19px 9px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.user-row strong {
  font-size: 12px;
  font-weight: 500;
}
.user-row small {
  display: block;
  font-size: 10px;
  color: var(--faint);
}
.user-row form {
  margin-left: auto;
}
.avatar {
  width: 24px;
  height: 24px;
  background: #243446;
  border: 1px solid #304357;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  border-radius: 50%;
  color: #b7cee6;
  flex-shrink: 0;
}
.avatar.admin {
  width: 31px;
  height: 31px;
  background: #263749;
  border-color: #35475b;
  font-size: 12px;
}
.workspace {
  margin-left: 224px;
  width: calc(100% - 224px);
  min-width: 0;
}
.app-header {
  height: 66px;
  border-bottom: 1px solid var(--line);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #0e1520;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: var(--faint);
}
.breadcrumb strong {
  font-weight: 400;
  color: #b5c1d0;
}
.header-right {
  display: flex;
  gap: 24px;
  align-items: center;
}
.header-date {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
}
.global-search {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
}
.global-search input {
  background: transparent;
  border: 0;
  padding: 6px 0;
  width: 150px;
  font-size: 11px;
  box-shadow: none;
}
.global-search kbd {
  border: 1px solid var(--line);
  border-radius: 3px;
  line-height: 17px;
  text-align: center;
  width: 17px;
  font-size: 10px;
}
.main {
  padding: 31px 32px 0;
  max-width: 1620px;
  margin: 0 auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--faint);
  font-weight: 600;
  margin-bottom: 8px;
}
h1 {
  font-size: 26px;
  line-height: 1.3;
  letter-spacing: 0.4px;
  margin: 0;
  font-weight: 600;
}
.top p {
  color: var(--muted);
  font-size: 12px;
  margin: 9px 0 0;
}
.actions {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
}
.actions form {
  margin: 0;
}
.btn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  background: #172230;
  color: #bac8d8;
  border: 1px solid #2e3c4e;
  border-radius: 6px;
  padding: 9px 14px;
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s;
  min-height: 36px;
  font-weight: 500;
}
.btn:hover {
  background: #203043;
  color: var(--text);
  border-color: #46596e;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #102b24;
  font-weight: 600;
}
.btn.primary:hover {
  background: #8aebcf;
  border-color: #8aebcf;
}
.btn.small {
  padding: 5px 10px;
  min-height: 28px;
  font-size: 11px;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
}
.btn.danger {
  color: var(--danger);
  border-color: #65343f;
  background: var(--danger-bg);
}
.btn.ghost.danger {
  background: transparent;
  border-color: transparent;
}
.icon-btn {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}
.icon-btn:hover {
  background: var(--surface-2);
  color: var(--text);
}
.flash,
.warn-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid;
  border-radius: 7px;
  padding: 12px 14px;
  margin-bottom: 22px;
  font-size: 12px;
}
.flash.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #285448;
}
.flash.err {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #593741;
}
.flash .dismiss-flash {
  margin-left: auto;
}
.warn-banner {
  background: #302b20;
  color: var(--warn);
  border-color: #463e2b;
  font-size: 11px;
  padding: 9px 12px;
}
.warn-banner a {
  margin-left: auto;
  white-space: nowrap;
  display: flex;
  gap: 5px;
  color: var(--warn);
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}
.card {
  display: block;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 20px 15px;
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}
.card[href]:hover {
  background: #172331;
  border-color: #3b4a5c;
  color: var(--text);
}
.card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a5b3c5;
  font-size: 12px;
}
.metric-icon {
  height: 32px;
  width: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mint {
  background: #1a3833;
  color: var(--accent);
}
.red {
  background: #372732;
  color: var(--danger);
}
.amber {
  background: #343026;
  color: var(--warn);
}
.blue {
  background: #223148;
  color: var(--info);
}
.metric {
  font-size: 35px;
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.25;
  margin: 10px 0 16px;
  font-variant-numeric: tabular-nums;
}
.metric small {
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0;
  color: var(--faint);
  margin-left: 8px;
}
.metric.cost {
  font-size: 30px;
  margin-top: 15px;
}
.metric.cost small {
  font-size: 21px;
  margin: 0 5px 0 0;
  color: var(--text);
}
.card-foot {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding-top: 12px;
  font-size: 10px;
  color: var(--muted);
}
.card-foot .status-dot {
  width: 5px;
  height: 5px;
}
.card:first-child .card-foot {
  justify-content: flex-start;
}
.danger {
  color: var(--danger);
}
.warn {
  color: var(--warn);
}
.ok {
  color: var(--ok);
}
.muted {
  color: var(--muted);
}
.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.05fr) minmax(260px, 1fr);
  gap: 20px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 22px;
  min-width: 0;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 19px 21px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-heading h2 {
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  line-height: 1.4;
}
.panel-heading h2 > svg {
  color: var(--muted);
}
.panel-heading p {
  margin: 7px 0 0;
  font-size: 10px;
  color: var(--faint);
}
.panel-heading .subtle-label,
.subtle-label {
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  white-space: nowrap;
}
.timeline-panel .panel-heading,
.automation-panel .panel-heading {
  border-bottom: 0;
  padding-bottom: 5px;
}
.timeline-chart {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 23px 0;
  height: 139px;
  align-items: end;
}
.chart-day {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: var(--faint);
  position: relative;
  padding: 0 2px;
  border-radius: 5px;
}
.chart-day:hover {
  background: #22322f;
  color: var(--accent);
}
.chart-count {
  font-size: 10px;
  color: var(--muted);
  height: 15px;
  line-height: 15px;
  font-family: var(--mono);
}
.bar-area {
  height: 67px;
  display: flex;
  align-items: flex-end;
  width: 100%;
  justify-content: center;
}
.bar {
  width: 100%;
  max-width: 26px;
  height: var(--bar-height);
  background: #273444;
  border-radius: 3px 3px 0 0;
  min-height: 3px;
}
.bar.has-items {
  background: #429b86;
  border-top: 2px solid #7cd6bc;
}
.is-today .bar.has-items {
  background: var(--accent);
}
.chart-label {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 19px;
  white-space: nowrap;
}
.is-today .chart-label {
  font-family: var(--sans);
  color: var(--accent);
  font-size: 10px;
}
.chart-legend {
  border-top: 1px solid var(--line-soft);
  margin: 16px 21px 0;
  padding: 10px 0 12px;
  display: flex;
  justify-content: space-between;
  color: var(--faint);
  font-size: 9px;
}
.chart-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.chart-legend i {
  width: 6px;
  height: 6px;
  background: #429b86;
  border-radius: 2px;
}
.schedule-time {
  font-size: 35px;
  line-height: 1.2;
  font-family: var(--mono);
  letter-spacing: -1px;
  padding: 14px 21px 0;
}
.schedule-time span {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 0;
}
.schedule-zone {
  font-size: 10px;
  margin: 3px 21px 15px;
}
.automation-meta {
  display: flex;
  justify-content: space-between;
  padding: 0 21px 16px;
  font-size: 9px;
  color: var(--faint);
}
.automation-meta strong {
  display: block;
  font-size: 12px;
  color: #b6c6d7;
  font-weight: 500;
  margin-top: 4px;
}
.automation-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line-soft);
  padding: 11px 21px;
  font-size: 10px;
}
.amber-dot {
  background: var(--warn);
}
.table-scroll {
  overflow-x: auto;
  width: 100%;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  padding: 12px 20px;
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  background: #111a26;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #182331;
}
td strong {
  font-weight: 500;
}
table a:not(.btn) {
  color: #d6e2ed;
}
table a:not(.btn):hover {
  color: var(--accent);
}
.item-table td {
  height: 77px;
}
.item-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
  max-width: 395px;
}
.type-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid #2b394b;
  background: #1b2939;
  color: #92aac3;
  border-radius: 7px;
  flex-shrink: 0;
}
.item-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 500;
}
.item-title a {
  overflow-wrap: anywhere;
}
.item-sub {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
  flex-wrap: wrap;
}
.item-sub .mono {
  font-size: 10px;
}
.priority {
  font-size: 8px;
  line-height: 15px;
  padding: 0 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--faint);
  font-weight: 500;
  flex-shrink: 0;
}
.priority.p0 {
  color: #e99891;
  border-color: #604247;
  background: #392931;
}
.priority.p1 {
  color: #c8b185;
  border-color: #514b3d;
  background: #302d27;
}
.priority.p2 {
  color: #8799af;
  border-color: #354253;
  background: #202a37;
}
.auto-mark {
  font-size: 8px;
  color: var(--accent);
  border: 1px solid #2e4b45;
  border-radius: 3px;
  padding: 0 3px;
}
.tag {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid #354150;
  border-radius: 4px;
  font-size: 9px;
  white-space: nowrap;
  color: var(--muted);
  line-height: 1.4;
}
.tag i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.tag.overdue,
.tag.today {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #50323e;
}
.tag.soon {
  background: var(--warn-bg);
  color: var(--warn);
  border-color: #4c4130;
}
.tag.week {
  background: #313024;
  color: #c4ba87;
  border-color: #454333;
}
.tag.ok {
  background: var(--ok-bg);
  color: var(--ok);
  border-color: #285046;
}
.cell-sub {
  font-size: 10px;
  color: var(--faint);
  margin-top: 5px;
  line-height: 1.4;
}
.mono {
  font-family: var(--mono);
  font-size: 11px;
}
.money {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #cdd9e6;
}
.owner {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  white-space: nowrap;
}
.nowrap {
  white-space: nowrap;
}
.align-right {
  text-align: right;
}
.activity-list {
  padding: 0 21px;
}
.activity {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.activity:last-child {
  border-bottom: 0;
}
.activity-icon {
  width: 29px;
  height: 29px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.activity strong {
  font-size: 11px;
  font-weight: 400;
}
.activity p {
  font-size: 9px;
  color: var(--faint);
  margin: 3px 0 0;
}
.activity time {
  color: var(--faint);
  font-size: 10px;
  margin-left: auto;
  white-space: nowrap;
  font-family: var(--mono);
}
.data-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 21px;
  padding: 12px 0;
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line-soft);
}
.data-row a {
  display: flex;
  align-items: center;
  gap: 3px;
}
.data-note {
  font-size: 10px;
  color: var(--faint);
  line-height: 1.8;
  padding: 0 21px;
  margin: 12px 0 17px;
}
.empty {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  color: var(--faint);
  min-height: 200px;
}
.empty > svg {
  margin-bottom: 15px;
  stroke-width: 1.3;
  color: #5c758e;
}
.empty h3 {
  font-weight: 500;
  font-size: 14px;
  color: #c0cfdf;
  margin: 0 0 8px;
}
.empty p {
  font-size: 11px;
  max-width: 450px;
  margin: 0 0 18px;
  line-height: 1.8;
}
.empty.compact {
  padding: 22px;
  min-height: 196px;
}
.empty.compact h3 {
  font-size: 12px;
}
.empty.compact p {
  margin-bottom: 12px;
  font-size: 10px;
}
.empty.compact > svg {
  margin-bottom: 11px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: var(--faint);
  border-top: 1px solid var(--line-soft);
  margin-top: 10px;
  padding: 20px 0 24px;
}
.filter-tabs {
  display: flex;
  align-items: center;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
  overflow-x: auto;
}
.filter-tabs a {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2px 13px;
  font-size: 12px;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.filter-tabs a.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.filter-form {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.secondary-filters {
  margin-top: 12px;
}
.filters select {
  font-size: 11px;
  min-width: 120px;
  min-height: 35px;
  padding: 7px 30px 7px 11px;
}
.filters .search-field {
  flex: 1;
  min-width: 210px;
}
.filter-actions {
  margin-left: auto;
  display: flex;
  gap: 5px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--input);
  color: var(--faint);
}
.search-field input {
  border: 0;
  background: transparent;
  box-shadow: none;
  width: 100%;
  font-size: 11px;
  padding-left: 0;
}
.search-field:focus-within {
  border-color: var(--accent);
}
input,
select,
textarea {
  background: var(--input);
  border: 1px solid #2d3b4c;
  border-radius: 6px;
  color: var(--text);
  padding: 10px 12px;
  font-size: 12px;
  min-width: 0;
  max-width: 100%;
  transition: border-color 0.15s;
  line-height: 1.5;
}
input::placeholder,
textarea::placeholder {
  color: #63758b;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px #65ddba13;
}
input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}
input[type="date"] {
  min-height: 40px;
}
textarea {
  resize: vertical;
  min-height: 100px;
  width: 100%;
}
select {
  padding-right: 24px;
}
input:disabled {
  opacity: 0.4;
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 10px;
  color: var(--muted);
}
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: start;
}
.form-aside {
  position: sticky;
  top: 24px;
}
.grid-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 20px;
  padding: 24px;
}
.span2 {
  grid-column: span 2;
}
.span-all {
  grid-column: 1 / -1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #a7b8ca;
}
.field input,
.field select {
  width: 100%;
}
.field small {
  font-size: 10px;
  line-height: 1.7;
  color: var(--faint);
}
.check {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: #b8c8d8;
}
.check small {
  display: block;
  font-size: 10px;
  line-height: 1.7;
  color: var(--faint);
  margin-top: 4px;
}
.check-card {
  padding: 15px;
  background: #111b27;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.check-card input {
  margin-top: 3px;
  align-self: flex-start;
}
.form-actions {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 4px 24px 24px;
  flex-wrap: wrap;
}
.push-right {
  margin-left: auto;
}
.section-number {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 11px;
  background: #1c332f;
  border: 1px solid #2a4941;
  border-radius: 4px;
  padding: 3px 5px;
  margin-right: 3px;
}
.back-link {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 15px;
}
.aside-content {
  padding: 24px;
}
.aside-symbol {
  color: var(--accent);
  display: inline-flex;
  margin-bottom: 17px;
}
.aside-content h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 11px;
}
.aside-content p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 0 0 20px;
}
.tip-step {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 20px;
  font-size: 11px;
  color: #bbcada;
}
.tip-step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--faint);
  flex-shrink: 0;
}
.tip-step small {
  display: block;
  margin-top: 5px;
  color: var(--faint);
  font-size: 10px;
}
.aside-note {
  padding: 0 10px;
  color: var(--faint);
  font-size: 10px;
  line-height: 2;
}
.info-box {
  background: #132529;
  border: 1px solid #294347;
  border-radius: 7px;
  padding: 16px 18px;
  color: #8fb5b4;
  font-size: 11px;
  line-height: 1.9;
  margin-bottom: 22px;
}
.info-box p:last-child {
  margin: 5px 0 0;
}
.aside-content .info-box {
  margin: 0;
  font-size: 10px;
}
.renew-summary {
  padding: 24px;
  display: flex;
  gap: 14px;
  align-items: center;
}
.renew-summary h2 {
  font-size: 17px;
  margin: 0;
  font-weight: 500;
}
.renew-summary p {
  color: var(--muted);
  font-size: 11px;
  margin: 5px 0 0;
}
.renew-summary .priority {
  margin-left: auto;
}
.renew-current {
  display: flex;
  gap: 22px;
  align-items: center;
  margin: 0 24px;
  padding: 18px;
  background: #101925;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--faint);
  font-size: 10px;
}
.renew-current strong {
  display: block;
  margin-top: 5px;
  color: #bdcad9;
  font-size: 12px;
  font-weight: 400;
}
.rule-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding: 24px;
}
fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 11px;
}
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.chips label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
  color: var(--muted);
}
.chips label:has(input:checked) {
  border-color: #3b7063;
  background: #183930;
  color: var(--accent);
}
.chips input {
  width: 12px;
  height: 12px;
}
.row-actions {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 5px;
}
.channel-guide {
  display: flex;
  gap: 15px;
  align-items: center;
}
.channel-guide strong {
  font-weight: 500;
  font-size: 12px;
  color: #b7dad5;
}
.disclosure summary {
  padding: 20px 23px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  cursor: pointer;
}
.disclosure summary .muted {
  font-size: 10px;
  margin-left: auto;
}
.disclosure[open] summary {
  border-bottom: 1px solid var(--line);
}
.log-details {
  font-size: 11px;
  max-width: 400px;
  min-width: 90px;
}
.log-details summary {
  color: var(--accent);
  cursor: pointer;
}
.log-details p {
  font-size: 11px;
  overflow-wrap: anywhere;
}
pre.log {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin: 12px 0 0;
  max-width: 380px;
}
.ledger-summary {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 21px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 12px;
}
.ledger-summary strong {
  font-family: var(--mono);
  font-size: 22px;
  color: var(--text);
  font-weight: 500;
}
.ledger-summary .divider {
  height: 24px;
  width: 1px;
  background: var(--line);
}
.ledger-summary > span:last-child {
  margin-left: auto;
  font-size: 10px;
}
.panel-note {
  border-top: 1px solid var(--line);
  padding: 15px 24px;
  font-size: 11px;
  color: var(--muted);
}
.helper {
  font-size: 11px;
  line-height: 1.8;
}
.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background:
    radial-gradient(ellipse at 50% 0%, #20352f66, transparent 55%), var(--bg);
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 30px;
}
.login-brand > span:last-child {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--faint);
  align-self: flex-end;
  padding-bottom: 7px;
  margin-left: 0;
}
.login-box {
  background: var(--surface);
  border: 1px solid #2d3d4c;
  border-radius: 14px;
  padding: 36px;
  width: 440px;
  max-width: 100%;
  box-shadow: 0 30px 80px #0003;
}
.login-box h1 {
  font-size: 23px;
  letter-spacing: 0;
}
.login-box > p {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 30px;
}
.login-box .btn {
  width: 100%;
  justify-content: space-between;
  margin-top: 22px;
  padding: 12px 14px;
}
.login-box input {
  padding: 12px;
}
.login-foot {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding-top: 24px;
  margin-top: 25px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 10px;
}
.login-caption {
  font-size: 10px;
  color: var(--faint);
  letter-spacing: 1px;
  margin-top: 25px;
}
.mobile-menu,
.sidebar-backdrop {
  display: none;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 100;
  background: var(--accent);
  color: #102b24;
  padding: 10px 20px;
}
.skip-link:focus {
  top: 10px;
}
[hidden] {
  display: none !important;
}
code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
@media (min-width: 1600px) {
  .main {
    padding-top: 38px;
  }
  .card {
    padding: 22px 25px;
  }
  .metric {
    font-size: 40px;
  }
  .timeline-chart {
    height: 153px;
  }
  .bar-area {
    height: 82px;
  }
  .schedule-time {
    padding-top: 21px;
    font-size: 39px;
  }
  .schedule-zone {
    margin-bottom: 18px;
  }
  .item-table td {
    height: 85px;
  }
}
@media (max-width: 1200px) {
  .side {
    width: 200px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  .main {
    padding: 26px 23px 0;
  }
  .app-header {
    padding: 0 23px;
  }
  .cards {
    gap: 12px;
  }
  .card {
    padding: 16px 15px 13px;
  }
  .card-foot {
    font-size: 9px;
  }
  .metric {
    font-size: 31px;
  }
  .metric.cost {
    font-size: 26px;
  }
  .overview-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
    gap: 16px;
  }
  .timeline-chart {
    gap: 5px;
  }
  .item-table {
    min-width: 770px;
  }
  th,
  td {
    padding-left: 16px;
    padding-right: 16px;
  }
  .form-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
    gap: 18px;
  }
  .aside-content {
    padding: 20px;
  }
  .grid-form {
    padding: 20px;
    gap: 20px 15px;
  }
  .rule-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-actions {
    padding: 4px 20px 20px;
  }
}
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .top {
    align-items: flex-start;
  }
  .top .actions {
    justify-content: flex-end;
  }
  .card-foot {
    font-size: 10px;
  }
  .metric.cost {
    font-size: 30px;
  }
  .header-date {
    display: none;
  }
  .main {
    padding: 25px 21px 0;
  }
  .top h1 {
    font-size: 24px;
  }
  .top .btn {
    font-size: 11px;
    padding: 8px 11px;
  }
  .form-layout {
    grid-template-columns: 1fr;
  }
  .form-aside {
    position: static;
  }
  .form-aside .panel {
    display: none;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
  }
  .ledger-summary {
    gap: 15px;
    flex-wrap: wrap;
  }
  .ledger-summary strong {
    font-size: 20px;
  }
  .side-tip {
    font-size: 9px;
  }
  .panel-heading {
    padding-left: 18px;
    padding-right: 18px;
  }
}
@media (max-width: 700px) {
  .side {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 224px;
    box-shadow: 12px 0 45px #0005;
  }
  .side.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu {
    display: inline-flex;
    margin-right: 0;
  }
  .sidebar-backdrop:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0 0 0 224px;
    background: #0008;
    border: 0;
    z-index: 35;
  }
  .app-header {
    height: 57px;
    padding: 0 15px;
  }
  .breadcrumb {
    gap: 9px;
  }
  .global-search input {
    width: 103px;
  }
  .global-search kbd {
    display: none;
  }
  .header-right {
    gap: 0;
  }
  .main {
    padding: 24px 16px 0;
  }
  .top {
    gap: 15px;
    flex-direction: column;
    margin-bottom: 23px;
  }
  .top h1 {
    font-size: 25px;
  }
  .top p {
    font-size: 11px;
    line-height: 1.8;
  }
  .top .actions {
    justify-content: flex-start;
    gap: 8px;
  }
  .top .btn {
    padding: 9px 13px;
    font-size: 11px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .cards {
    gap: 10px;
    margin-bottom: 18px;
  }
  .card {
    padding: 14px 13px 12px;
    border-radius: 8px;
  }
  .card-head {
    font-size: 10px;
  }
  .metric-icon {
    width: 26px;
    height: 26px;
    border-radius: 6px;
  }
  .metric-icon svg {
    width: 15px;
  }
  .metric {
    font-size: 31px;
    margin-top: 11px;
    margin-bottom: 13px;
  }
  .metric.cost {
    font-size: 24px;
    letter-spacing: -0.8px;
    margin-top: 17px;
  }
  .metric.cost small {
    font-size: 16px;
  }
  .card-foot {
    font-size: 8px;
    min-height: 28px;
  }
  .card-foot svg {
    width: 12px;
  }
  .overview-grid {
    gap: 0;
  }
  .panel {
    margin-bottom: 18px;
  }
  .panel-heading {
    padding: 16px;
  }
  .panel-heading h2 {
    font-size: 12px;
    gap: 7px;
  }
  .panel-heading p {
    font-size: 9px;
    line-height: 1.7;
  }
  .panel-heading .text-link {
    font-size: 10px;
  }
  .timeline-panel .subtle-label {
    font-size: 9px;
  }
  .timeline-chart {
    gap: 5px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .chart-label {
    font-size: 8px;
  }
  .chart-legend {
    margin-left: 16px;
    margin-right: 16px;
  }
  .automation-meta {
    font-size: 10px;
    justify-content: flex-start;
    gap: 45px;
  }
  .schedule-time {
    font-size: 32px;
  }
  .schedule-zone {
    margin-bottom: 15px;
  }
  .activity-list {
    padding: 0 16px;
  }
  .activity strong {
    font-size: 10px;
  }
  .activity time {
    font-size: 9px;
  }
  .page-footer {
    font-size: 8px;
    padding-top: 18px;
    gap: 10px;
  }
  .page-footer span:last-child {
    display: none;
  }
  .warn-banner {
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 10px;
  }
  .warn-banner > span {
    flex: 1;
    min-width: 180px;
  }
  .warn-banner a {
    font-size: 10px;
    margin-left: 27px;
  }
  .flash {
    font-size: 11px;
  }
  .filter-tabs {
    gap: 23px;
    margin-bottom: 18px;
  }
  .filter-tabs a {
    font-size: 11px;
  }
  .filter-form {
    padding: 15px;
  }
  .filters {
    gap: 9px;
  }
  .filters select {
    flex: 1;
    min-width: calc(50% - 10px);
    max-width: 100%;
  }
  .filters .search-field {
    min-width: 100%;
  }
  .filters .filter-actions {
    width: 100%;
    justify-content: flex-end;
    margin-top: 4px;
  }
  .grid-form {
    grid-template-columns: 1fr;
    padding: 20px 17px;
    gap: 19px;
  }
  .span2 {
    grid-column: span 1;
  }
  .form-actions {
    padding: 0 17px 20px;
    gap: 7px;
  }
  .form-actions .btn {
    font-size: 11px;
  }
  .rule-form {
    grid-template-columns: 1fr;
    padding: 20px 17px;
    gap: 20px;
  }
  .renew-summary {
    padding: 20px 17px;
  }
  .renew-summary h2 {
    font-size: 15px;
  }
  .renew-current {
    margin: 0 17px;
    gap: 16px;
    flex-wrap: wrap;
    padding: 15px;
  }
  .renew-current strong {
    font-size: 11px;
  }
  .info-box {
    font-size: 10px;
    padding: 13px 15px;
  }
  .disclosure summary {
    padding: 17px;
    font-size: 12px;
  }
  .disclosure summary .muted {
    display: none;
  }
  .ledger-summary {
    padding: 17px;
    gap: 12px;
  }
  .ledger-summary > span:first-child {
    width: 100%;
    font-size: 10px;
  }
  .ledger-summary strong {
    font-size: 20px;
  }
  .ledger-summary > span:last-child {
    width: 100%;
    margin-left: 0;
  }
  .pagination {
    padding: 14px 15px;
  }
  .login-wrap {
    padding: 20px;
  }
  .login-box {
    padding: 27px 24px;
  }
  .login-box h1 {
    font-size: 21px;
  }
  .login-brand {
    font-size: 23px;
  }
  .login-caption {
    font-size: 8px;
  }
  .back-link {
    margin-bottom: 12px;
  }
  .form-aside .aside-note {
    margin-top: -15px;
    margin-bottom: 18px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* Keep secondary information legible, including on high-density mobile screens. */
.card-foot,
.panel-heading p,
.subtle-label,
.automation-meta,
.data-note,
.cell-sub,
.item-sub,
.chart-legend,
.schedule-zone {
  font-size: 11px;
}
.card-head,
.field,
.helper {
  font-size: 12px;
}
.tag {
  font-size: 10px;
}
.priority {
  font-size: 9px;
}
.item-title {
  font-size: 13px;
}
.automation-panel {
  display: flex;
  flex-direction: column;
}
.automation-link {
  margin-top: auto;
}
.timeline-chart {
  height: 141px;
}
.activity p,
.activity time {
  font-size: 11px;
}
.activity strong {
  font-size: 12px;
}
@media (max-width: 700px) {
  .card-foot {
    font-size: 10px;
  }
  .card-head {
    font-size: 11px;
  }
  .card-foot > svg {
    display: none;
  }
  .panel-heading p {
    font-size: 10px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .global-search input {
    font-size: 12px;
  }
  .filters select {
    font-size: 13px;
    min-height: 42px;
  }
  .search-field input {
    font-size: 14px;
    min-height: 42px;
  }
  .btn {
    min-height: 40px;
  }
  .btn.small {
    min-height: 36px;
    padding: 8px 13px;
  }
  .field small,
  .check small {
    font-size: 11px;
  }
  .check {
    font-size: 13px;
  }
  .item-table {
    min-width: 0;
  }
  .item-table thead {
    display: none;
  }
  .item-table tbody {
    display: block;
  }
  .item-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    padding: 18px 16px;
    border-bottom: 1px solid var(--line);
  }
  .item-table tr:last-child {
    border-bottom: 0;
  }
  .item-table td {
    height: auto;
    padding: 0;
    border: 0;
  }
  .item-table td:first-child {
    grid-column: 1 / -1;
  }
  .item-table .item-cell {
    min-width: 0;
    max-width: none;
    align-items: flex-start;
  }
  .item-table .item-title {
    font-size: 13px;
  }
  .item-table .item-sub {
    font-size: 10px;
  }
  .item-table .item-sub .mono {
    font-size: 11px;
  }
  .item-table .vendor-cell {
    display: block;
    grid-column: 1 / -1;
    padding-left: 46px;
    padding-top: 0;
    font-size: 11px;
    overflow-wrap: anywhere;
  }
  .item-table .vendor-label {
    display: inline;
  }
  .item-table .due-cell,
  .item-table .owner-cell {
    padding-left: 46px;
  }
  .item-table .cost-cell,
  .item-table .action-cell {
    text-align: right;
  }
  .item-table .owner-cell {
    display: flex;
    align-items: center;
  }
  .item-table .money {
    font-size: 13px;
  }
  .item-table .cell-sub {
    font-size: 11px;
  }
  .item-table .tag {
    font-size: 10px;
  }
  .item-table .owner {
    font-size: 12px;
  }
  .item-table .action-cell .btn {
    min-width: 80px;
  }
  .item-table .type-icon {
    width: 35px;
    height: 35px;
  }
  .chart-legend {
    font-size: 10px;
  }
  .chart-day {
    padding: 0;
  }
  .timeline-chart {
    gap: 5px;
  }
  .activity time {
    font-size: 9px;
  }
  .activity strong {
    font-size: 11px;
  }
  .activity p {
    font-size: 10px;
  }
  .data-note {
    font-size: 11px;
  }
  .data-row {
    font-size: 12px;
  }
}
.detail-value {
  font-size: 22px;
  font-weight: 500;
  margin: 15px 0 10px;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.detail-cards .muted {
  font-size: 11px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  margin: 0;
  font-size: 13px;
}
.detail-grid dt {
  color: var(--muted);
}
.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.preserve-lines {
  white-space: pre-wrap;
}
.snooze-form {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin: 20px 0;
}
.snooze-form .field {
  flex: 1;
}
.bulk-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  padding: 13px 20px;
}
.bulk-toolbar > span {
  font-size: 11px;
  color: var(--muted);
  margin-right: auto;
}
.bulk-toolbar input:not([type="hidden"]) {
  width: 150px;
}
.bulk-toolbar select {
  font-size: 12px;
}
.item-select {
  margin-right: 1px !important;
}
.advanced-filters summary {
  display: none;
}
.filter-form > .filter-actions {
  margin-top: 12px;
  justify-content: flex-end;
}
.log-details dd {
  margin: 5px 0 12px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#session-warning {
  position: sticky;
  top: 8px;
  z-index: 30;
}
#session-warning a {
  margin-left: auto;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .advanced-filters summary {
    display: flex;
    gap: 10px;
    align-items: center;
    font-size: 12px;
    padding: 14px 0 0;
    cursor: pointer;
    color: var(--accent);
  }
  .advanced-filters summary .muted {
    font-size: 10px;
  }
  .bulk-toolbar {
    padding: 12px 15px;
    gap: 9px;
  }
  .bulk-toolbar > span {
    width: 100%;
  }
  .bulk-toolbar input:not([type="hidden"]) {
    width: 120px;
    font-size: 14px;
  }
  .bulk-toolbar select {
    flex: 1;
    min-width: 130px;
  }
  .bulk-toolbar button {
    width: 100%;
  }
  .item-cell:has(.item-select) {
    gap: 8px;
  }
  .item-select {
    align-self: center;
  }
  .detail-grid {
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 16px;
    padding: 18px;
  }
  .detail-value {
    font-size: 18px;
  }
  .panel-heading:has(form) {
    flex-wrap: wrap;
  }
  .detail-cards .card-head {
    font-size: 11px;
  }
  .item-table .item-cell {
    max-width: 100%;
  }
}

#confirm-dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px;
  width: min(430px, calc(100vw - 32px));
  box-shadow: 0 25px 100px #0008;
}
#confirm-dialog::backdrop {
  background: #050911b8;
  backdrop-filter: blur(3px);
}
#confirm-dialog h2 {
  margin: 0 0 14px;
  font-size: 18px;
}
#confirm-dialog p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 24px;
  overflow-wrap: anywhere;
}
#confirm-dialog .actions {
  justify-content: flex-end;
}

.bulk-toolbar .bulk-select {
  font-size: 12px;
  white-space: nowrap;
}
.bulk-toolbar input[type="checkbox"] {
  width: 16px;
}
.empty.compact:has(> p:only-child) {
  min-height: 110px;
}
.empty.compact:has(> p:only-child) p {
  margin: 0;
  font-size: 12px;
}
@media (max-width: 700px) {
  .table-scroll > table:not(.item-table) {
    min-width: 600px;
  }
  .bulk-toolbar > span {
    width: auto;
    margin-left: auto;
    margin-right: 0;
  }
  .bulk-toolbar .bulk-select {
    flex: 1;
  }
}

.vendor-label {
  display: none;
}
@media (max-width: 700px) {
  .item-table .vendor-label {
    display: inline;
  }
}

/* Approximate native Feishu card layout without depending on external assets. */
.feishu-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 8px 22px 24px;
  align-items: flex-start;
}
.feishu-preview {
  width: 100%;
  max-width: 520px;
  background: #fff;
  color: #1f2329;
  border: 1px solid #dfe1e5;
  border-radius: 12px;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 8px 24px #0002;
}
.feishu-card-header {
  padding: 16px 20px;
  background: #e1eaff;
}
.feishu-card-header.red {
  background: #fce4e4;
  color: #9e2931;
}
.feishu-card-header.orange {
  background: #fff0dc;
  color: #945414;
}
.feishu-card-header.yellow {
  background: #fff6cf;
  color: #755b07;
}
.feishu-card-header.blue {
  background: #e1eaff;
  color: #244ca3;
}
.feishu-card-header h3 {
  font-size: 17px;
  margin: 0;
  font-weight: 600;
}
.feishu-card-body {
  padding: 16px 20px;
}
.feishu-card-body hr {
  border: 0;
  border-top: 1px solid #e8e9ed;
  margin: 18px 0;
}
.feishu-card-summary {
  margin: 0 0 4px;
  font-weight: 500;
}
.feishu-card-note {
  color: #646a73;
  font-size: 12px;
  margin: 5px 0;
  overflow-wrap: anywhere;
}
.feishu-card-title {
  margin-top: 15px;
  overflow-wrap: anywhere;
}
.feishu-card-title strong {
  font-size: 15px;
  font-weight: 600;
}
.feishu-card-title p {
  color: #646a73;
  font-size: 12px;
  margin: 4px 0;
}
.feishu-card-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px 20px;
  margin: 12px 0 18px;
}
.feishu-card-fields dt {
  color: #646a73;
  font-size: 12px;
}
.feishu-card-fields dd {
  color: #1f2329;
  margin: 2px 0 0;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .feishu-preview-list {
    padding: 8px 12px 16px;
  }
  .feishu-card-header,
  .feishu-card-body {
    padding: 14px 16px;
  }
  .feishu-card-fields {
    gap: 8px 12px;
  }
}
