:root {
  --bg: #f5f7f9;
  --surface: #fff;
  --text: #182b35;
  --muted: #687b86;
  --line: #e5ebee;
  --primary: #087f73;
  --primary-dark: #06695f;
  --soft: #eaf6f3;
  --danger: #c43e4f;
  --radius: 14px;
  --shadow: 0 4px 24px #183b4a06;
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p {
  margin: 0;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
svg {
  flex-shrink: 0;
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid #d8e2e6;
  border-radius: 8px;
  background: white;
  color: var(--text);
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px #087f7315;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
label {
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
label small {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #30a491;
  outline-offset: 3px;
}
button {
  border: 0;
}
h1 {
  font-size: 2.15rem;
  line-height: 1.25;
  letter-spacing: -1.1px;
  font-weight: 700;
}
h2 {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 1rem;
}
small {
  font-size: 0.8rem;
}
.muted {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
}
.hidden {
  display: none !important;
}
.mono,
code {
  font-family: Consolas, "SFMono-Regular", monospace;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  padding: 10px 16px;
  background: white;
  z-index: 1000;
}
.skip-link:focus {
  top: 12px;
}
.required {
  color: var(--danger);
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 245px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px 0;
  display: flex;
  flex-direction: column;
  z-index: 40;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 750;
  font-size: 1.1rem;
  letter-spacing: -0.5px;
}
.brand:hover {
  text-decoration: none;
}
.brand-mark {
  width: 38px;
  height: 40px;
  border-radius: 11px;
  background: var(--primary);
  color: white;
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1;
}
.brand-dot {
  color: var(--primary);
}
.brand small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.2px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.sidebar nav {
  padding-top: 42px;
}
.nav-label {
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  color: #788994;
  font-weight: 600;
  padding: 0 13px;
  margin-bottom: 12px;
}
.nav-label--second {
  margin-top: 32px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 13px;
  border-radius: 8px;
  color: #62747e;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 5px;
  white-space: nowrap;
}
.nav-link:hover {
  background: #f5f8f8;
  color: var(--primary);
  text-decoration: none;
}
.nav-link.active {
  background: var(--soft);
  color: var(--primary);
  font-weight: 650;
}
.nav-icon {
  font-size: 1.2rem;
  width: 21px;
  text-align: center;
  line-height: 1;
}
.nav-count {
  margin-left: auto;
  font-size: 0.73rem;
  padding: 0 7px;
  background: #dceee9;
  color: var(--primary);
  border-radius: 5px;
}
.sidebar-note {
  margin-top: auto;
  padding: 22px 15px 24px;
}
.small-label {
  font-size: 0.65rem;
  font-weight: 650;
  letter-spacing: 1.3px;
  color: var(--primary);
}
.sidebar-note p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.5;
  margin: 12px 0;
  color: #39535a;
  letter-spacing: -0.5px;
}
.sidebar-note > span:last-child {
  font-size: 0.78rem;
  color: #73868f;
  display: block;
  line-height: 1.8;
}
.sidebar-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  background: #e6f1ed;
  color: #307266;
  border: 1px solid #d6e5df;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  font-weight: 600;
  flex-shrink: 0;
}
.sidebar-footer strong {
  display: block;
  font-size: 0.8rem;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-footer small {
  color: var(--muted);
  font-size: 0.7rem;
}
.sidebar-footer .icon-btn {
  margin-left: auto;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  display: inline-grid;
  place-items: center;
  font-size: 1.4rem;
}
.icon-btn:hover {
  background: var(--soft);
  color: var(--primary);
}
.main-content {
  margin-left: 245px;
  padding: 0 38px;
  max-width: 1900px;
  min-height: 100vh;
}
.workspace-bar {
  height: 72px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--muted);
}
.workspace-bar strong {
  font-weight: 500;
  color: #425d69;
}
.divider {
  color: #b4c1c7;
  padding: 0 13px;
}
.page-header {
  padding: 33px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.eyebrow {
  font-size: 0.65rem;
  letter-spacing: 1.8px;
  font-weight: 650;
  color: var(--primary);
  margin-bottom: 9px;
}
.page-header .muted {
  margin-top: 9px;
}
.timezone-label {
  font-size: 0.75rem;
  color: #81929a;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
}
.section-heading h2 {
  color: #415a65;
  font-size: 0.85rem;
}
.btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  font-size: 0.875rem;
  font-weight: 550;
  border: 1px solid transparent;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
}
.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.primary:hover {
  background: var(--primary-dark);
}
.ghost {
  background: white;
  border-color: #dce5e8;
  color: #506671;
}
.ghost:hover {
  background: #f1f7f6;
  border-color: #b3d4cb;
}
.danger {
  background: #c84150;
  color: white;
}
.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 0.8rem;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  text-align: left;
  padding: 22px 23px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  min-width: 0;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.stat-card:hover {
  border-color: #bad9d2;
  transform: translateY(-2px);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem;
  color: #667d88;
  font-weight: 500;
}
.stat-symbol {
  height: 30px;
  width: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.blue {
  background: #edf3fd;
  color: #527bc7;
}
.green {
  background: #e9f5ef;
  color: #258463;
}
.amber {
  background: #fff5e4;
  color: #bd811f;
}
.red {
  background: #fff0f1;
  color: #c95866;
}
.stat-card strong {
  display: block;
  font-size: 2.2rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -1px;
  margin: 12px 0 7px;
  font-variant-numeric: tabular-nums;
}
.stat-card small {
  color: #86969e;
  font-size: 0.75rem;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}
.card-header {
  padding: 22px 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid #eef2f4;
}
.card-header .muted {
  font-size: 0.75rem;
  margin-top: 4px;
}
.card-body {
  padding: 24px;
}
.chart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.chart-body {
  height: 265px;
  padding: 23px;
  position: relative;
}
.chart-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted);
  font-size: 0.875rem;
  text-align: center;
}
.revenue-total {
  font-size: 1.15rem;
  font-weight: 650;
  white-space: nowrap;
}
.count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  background: #f0f4f5;
  color: #70848f;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 2px 7px;
  margin-left: 5px;
  vertical-align: middle;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.search-box {
  position: relative;
  width: 100%;
  max-width: 410px;
}
.search-box > span {
  position: absolute;
  left: 14px;
  top: 4px;
  color: #92a4ad;
  font-size: 1.7rem;
  line-height: 1.4;
  pointer-events: none;
}
.search-box input {
  padding-left: 42px;
  background: #fff;
  min-height: 44px;
}
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 20px;
}
.filters label {
  font-size: 0.75rem;
  color: #70818a;
  flex: 1;
  min-width: 140px;
}
.filters select,
.filters input {
  font-size: 0.8rem;
  padding: 9px 10px;
  height: 40px;
}
.filters .btn {
  height: 40px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
th {
  background: #fafcfc;
  padding: 13px 22px;
  color: #7c8e97;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 17px 22px;
  border-bottom: 1px solid #edf2f3;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfefe;
}
.cell-name {
  font-weight: 600;
  color: #37545f;
  background: none;
  padding: 0;
  font-size: 0.875rem;
  text-align: left;
}
.cell-name:hover {
  color: var(--primary);
  text-decoration: underline;
}
.ip {
  font-family: Consolas, monospace;
  color: #607985;
  font-size: 0.82rem;
  white-space: nowrap;
}
.ip-wrap {
  display: flex;
  gap: 6px;
  align-items: center;
}
.copy-btn {
  background: none;
  color: #a0b1b9;
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px 6px;
  border-radius: 5px;
}
.copy-btn:hover {
  background: var(--soft);
  color: var(--primary);
}
.config-cell {
  font-size: 0.78rem;
  white-space: nowrap;
  color: #738791;
}
.date-cell {
  white-space: nowrap;
  font-size: 0.82rem;
}
.remaining {
  display: block;
  font-size: 0.73rem;
  margin-top: 3px;
  color: #7d8f98;
}
.remaining.warn {
  color: #b07a1f;
}
.remaining.overdue {
  color: #c55562;
}
.price-cell {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 500;
}
.badge {
  padding: 4px 9px;
  display: inline-flex;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 550;
  white-space: nowrap;
  align-items: center;
  gap: 6px;
}
.badge.active {
  color: #278161;
  background: #edf8f1;
}
.badge.expiring_soon {
  color: #a87820;
  background: #fff6e3;
}
.badge.expired {
  color: #bf5261;
  background: #fff0f1;
}
.badge.neutral {
  background: #edf2f5;
  color: #67808d;
}
.actions {
  display: flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.table-empty {
  text-align: center;
  padding: 46px 20px;
  color: var(--muted);
  font-size: 0.875rem;
}
.table-empty .btn {
  margin-top: 12px;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--muted);
}
.pagination:empty {
  display: none;
}
.back-btn {
  margin-bottom: 18px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #8c9ba3;
  font-size: 0.72rem;
  padding: 28px 0;
  margin-top: 10px;
}
.notice {
  background: #edf6f4;
  border: 1px solid #d8ebe5;
  border-radius: 9px;
  color: #4f776c;
  font-size: 0.875rem;
  padding: 14px 16px;
  line-height: 1.65;
  margin-bottom: 18px;
}
.notice.error {
  background: #fff3f4;
  border-color: #f0d7dc;
  color: #b94356;
}
.notice .btn {
  margin-left: 10px;
}
.form-error {
  color: var(--danger);
  font-size: 0.875rem;
}
.form-error:empty {
  display: none;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 24px;
  align-items: start;
}
.guide-card ol {
  padding-left: 20px;
  font-size: 0.875rem;
  color: #647d86;
}
.guide-card li {
  margin-bottom: 18px;
  padding-left: 6px;
}
.guide-card .notice {
  font-size: 0.8rem;
}
.check-row {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.form-stack > .notice,
.form-stack .notice {
  margin-bottom: 0;
}
.task-list {
  display: grid;
  gap: 14px;
}
.task-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: white;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.task-card.is-complete {
  opacity: 0.7;
}
.task-card.is-complete h3 {
  text-decoration: line-through;
}
.task-check {
  width: 24px;
  height: 24px;
  border: 1px solid #bbcec7;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  font-size: 1rem;
  flex-shrink: 0;
}
.task-card.is-complete .task-check {
  background: var(--soft);
}
.task-content {
  flex: 1;
  min-width: 0;
}
.task-content h3 {
  overflow-wrap: anywhere;
}
.task-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.8rem;
}
.task-notes {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #6c818c;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.task-actions {
  display: flex;
  gap: 5px;
}
dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 690px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 40px);
  background: white;
  color: var(--text);
  box-shadow: 0 24px 100px #14372c30;
  overflow: auto;
}
dialog::backdrop {
  background: #132e3b55;
  backdrop-filter: blur(4px);
}
dialog.dialog-small {
  max-width: 470px;
}
.modal-header {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.modal-header h2 {
  font-size: 1.15rem;
}
.modal-header .eyebrow {
  margin-bottom: 4px;
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
}
.input-action {
  display: flex;
  gap: 9px;
  margin-top: -10px;
}
.input-action select {
  flex: 1;
}
.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.field-heading label {
  display: block;
}
.ip-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.ip-row:first-child {
  margin-top: 0;
}
.ip-number {
  font-size: 0.75rem;
  color: #8da0a9;
  min-width: 16px;
}
.ip-row input {
  font-family: Consolas, monospace;
}
.ip-field {
  flex: 1;
  min-width: 0;
}
.ip-feedback {
  display: block;
  color: #b42318;
  font-size: 0.75rem;
  line-height: 1.5;
}
.ip-feedback:empty {
  display: none;
}
.ip-input[aria-invalid="true"] {
  border-color: #d92d20;
}
.bulk-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0;
}
.bulk-preview-table {
  max-height: 300px;
  overflow: auto;
  border: 1px solid #e2e8e9;
  border-radius: 10px;
}
.bulk-preview-table th,
.bulk-preview-table td {
  white-space: normal;
  overflow-wrap: anywhere;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-grid.thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
/* Keep captions separate from controls so required marks do not add a row. */
#vpsForm .form-field {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}
#vpsForm label {
  display: block;
  line-height: 1.5;
}
#vpsForm .form-grid {
  align-items: start;
}
#vpsForm input:not([type="hidden"]),
#vpsForm select {
  height: 2.75rem;
  padding: 0.625rem 0.75rem;
}
#vpsForm .input-action {
  margin-top: 0;
  align-items: stretch;
}
#vpsForm .input-action > button {
  flex: 0 0 2.75rem;
  min-height: 2.75rem;
  padding: 0;
}
#vpsForm .form-field > small {
  color: var(--muted);
  line-height: 1.5;
}
#vpsForm .ip-row {
  align-items: flex-start;
}
#vpsForm .ip-number,
#vpsForm .ip-row > .icon-btn {
  display: inline-grid;
  place-items: center;
  height: 2.75rem;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  #vpsForm .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.date-presets {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.date-presets button {
  font-size: 0.75rem;
  padding: 5px 9px;
  color: var(--primary);
  background: #f0f7f4;
  border: 1px solid #dcece5;
  border-radius: 6px;
}
.date-presets button:hover {
  background: #dfeee8;
}
details {
  font-size: 0.8rem;
  color: var(--muted);
}
summary {
  cursor: pointer;
  padding: 6px 0;
  color: var(--primary);
}
details textarea {
  margin: 8px 0;
}
details p {
  padding: 8px 0;
}
.renew-preview {
  padding: 18px;
  background: #eaf6f1;
  color: #187c64;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}
.history-row {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.8rem;
}
.toast-container {
  position: fixed;
  right: 20px;
  top: 20px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  background: #173d33;
  color: white;
  box-shadow: 0 8px 30px #193a2b25;
  max-width: min(420px, calc(100vw - 40px));
  font-size: 0.875rem;
  border-radius: 10px;
  padding: 14px 20px;
  pointer-events: auto;
}
.toast.error {
  background: #a9374a;
}
.mobile-menu,
.sidebar-overlay {
  display: none;
}
.login-page {
  background: #fff;
}
.login-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.login-brand {
  background: #103e37;
  color: #e9f5ef;
  padding: 44px 54px;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  position: relative;
}
.login-brand .brand {
  color: #f2faf5;
  letter-spacing: -0.5px;
}
.login-brand .brand-mark {
  background: #c1eed9;
  color: #154e3e;
}
.login-brand .brand-dot {
  color: #a9d6c4;
}
.login-intro {
  margin: auto 0;
  padding: 70px 0;
  max-width: 490px;
}
.login-intro .eyebrow {
  color: #99c5b4;
  letter-spacing: 2px;
}
.login-intro h1 {
  font-size: clamp(2.3rem, 3.2vw, 3.7rem);
  line-height: 1.2;
  letter-spacing: -2px;
  font-weight: 600;
  margin: 20px 0;
}
.login-intro > p {
  color: #a4c5b8;
  font-size: 1rem;
  line-height: 1.9;
  max-width: 360px;
}
.login-features {
  display: flex;
  flex-direction: column;
  margin-top: 40px;
  border-top: 1px solid #ffffff20;
}
.login-features span {
  padding: 15px 0;
  border-bottom: 1px solid #ffffff18;
  color: #74ac94;
  font-size: 0.75rem;
  letter-spacing: 1px;
}
.login-features strong {
  font-weight: 400;
  color: #d6e9e0;
  font-size: 0.9rem;
  letter-spacing: 0;
  margin-left: 25px;
}
.login-brand-footer {
  color: #8fb6a8;
  font-size: 0.75rem;
}
.login-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  position: relative;
}
.login-card {
  width: 100%;
  max-width: 380px;
}
.login-card h2 {
  font-size: 1.85rem;
  line-height: 1.3;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.login-card > .muted {
  margin-bottom: 30px;
  font-size: 0.9rem;
}
.login-card .form-stack {
  gap: 12px;
}
.login-lock {
  width: 46px;
  height: 46px;
  background: #edf7f1;
  color: var(--primary);
  border: 1px solid #dceae1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  margin-bottom: 26px;
}
.login-card input {
  min-height: 47px;
}
.login-card .form-stack > label {
  margin-top: 6px;
}
.password-wrap {
  position: relative;
}
.password-wrap input {
  padding-right: 65px;
}
.password-wrap button {
  position: absolute;
  right: 6px;
  top: 5px;
  height: 37px;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  padding: 0 12px;
}
.login-submit {
  width: 100%;
  margin-top: 12px;
  min-height: 48px;
  justify-content: space-between;
  padding-left: 18px;
  padding-right: 18px;
}
.login-note {
  font-size: 0.75rem;
  line-height: 1.7;
  color: #84969e;
  text-align: center;
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 23px;
}
.login-copyright {
  position: absolute;
  bottom: 30px;
  font-size: 0.75rem;
  color: #9dabb2;
}
@media (min-width: 1700px) {
  .main-content {
    padding-left: 56px;
    padding-right: 56px;
  }
  .chart-body {
    height: 300px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 215px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 1rem;
  }
  .main-content {
    margin-left: 215px;
    padding: 0 24px;
  }
  .stat-card {
    padding: 18px;
  }
  .stats-grid {
    gap: 12px;
  }
  .chart-grid {
    grid-template-columns: 1.3fr 1fr;
  }
  .revenue-total {
    font-size: 0.95rem;
  }
  .card-header {
    padding: 19px;
  }
  .timezone-label {
    display: none;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .login-brand {
    padding: 36px;
  }
}
@media (max-width: 960px) {
  .sidebar {
    transform: translateX(-100%);
    width: 245px;
    transition: transform 0.2s;
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .main-content {
    margin: 0;
    padding: 0 24px;
  }
  .mobile-menu {
    display: grid;
    position: fixed;
    top: 17px;
    left: 18px;
    z-index: 45;
    background: #fff;
    border: 1px solid var(--line);
  }
  .workspace-bar {
    padding-left: 43px;
  }
  .workspace-bar > span:last-child {
    display: none;
  }
  .sidebar-overlay:not(.hidden) {
    display: block;
    position: fixed;
    inset: 0;
    background: #173b4855;
    z-index: 35;
    border: 0;
  }
  .sidebar.is-open .brand {
    margin-left: 42px;
    font-size: 0.85rem;
  }
  .sidebar.is-open .brand-mark {
    display: none;
  }
  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .login-brand {
    padding: 30px;
  }
  .login-intro h1 {
    font-size: 2.5rem;
  }
}
@media (max-width: 700px) {
  .main-content {
    padding: 0 16px;
  }
  .page-header {
    padding: 25px 0;
  }
  h1 {
    font-size: 1.8rem;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .stat-card {
    padding: 17px;
  }
  .stat-card strong {
    font-size: 1.9rem;
  }
  .stat-top {
    font-size: 0.8rem;
  }
  .stat-card small {
    font-size: 0.7rem;
  }
  .chart-grid,
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .chart-body {
    height: 240px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .search-box {
    max-width: none;
  }
  .toolbar > .button-row,
  .toolbar > .btn {
    margin-left: auto;
  }
  .filters {
    gap: 10px;
    padding: 14px;
  }
  .filters label {
    min-width: calc(50% - 10px);
  }
  .card-header {
    padding: 17px;
    align-items: flex-start;
  }
  .card-header .btn {
    font-size: 0.7rem;
    padding: 6px 9px;
  }
  .card-header .muted {
    max-width: 230px;
  }
  .task-card {
    gap: 10px;
    padding: 17px;
    flex-wrap: wrap;
  }
  .task-actions {
    margin-left: 34px;
  }
  .task-content {
    min-width: calc(100% - 45px);
  }
  .page-footer {
    gap: 15px;
    font-size: 0.65rem;
  }
  .modal-body {
    padding: 19px;
  }
  .modal-header {
    padding: 18px 19px;
  }
  .form-grid {
    gap: 12px;
  }
  .form-grid.thirds {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .form-grid.thirds input {
    padding: 10px 8px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-brand {
    min-height: auto;
    padding: 24px 25px;
    background: #103e37;
  }
  .login-intro,
  .login-brand-footer {
    display: none;
  }
  .login-form-panel {
    min-height: calc(100dvh - 88px);
    padding: 42px 26px 90px;
  }
  .login-card h2 {
    font-size: 1.6rem;
  }
  .login-lock {
    margin-bottom: 20px;
  }
  .login-card .eyebrow {
    font-size: 0.6rem;
  }
  .login-copyright {
    bottom: 23px;
  }
}
@media (max-width: 420px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid.thirds {
    grid-template-columns: 1fr;
  }
  .stat-top {
    gap: 4px;
  }
  .stat-symbol {
    width: 25px;
    height: 25px;
  }
  .stat-card {
    padding: 14px;
  }
  .stat-card small {
    font-size: 0.68rem;
  }
  .workspace-bar {
    font-size: 0.65rem;
  }
  .divider {
    padding: 0 5px;
  }
  .section-heading h2 {
    font-size: 0.75rem;
  }
  .btn {
    font-size: 0.8rem;
    padding: 9px 12px;
  }
  .revenue-total {
    font-size: 0.85rem;
  }
  .card-header h2 {
    font-size: 0.9rem;
  }
}
.history-card {
  margin-top: 22px;
}
.nav-label,
.small-label,
.eyebrow,
.brand small,
.sidebar-footer small,
.workspace-bar,
.timezone-label,
.card-header .muted,
.stat-card small,
.count,
th,
.badge,
.remaining,
.page-footer,
.login-brand-footer,
.login-note,
.login-copyright,
.date-presets button {
  font-size: 0.75rem;
}
.filters label,
.config-cell,
.date-cell,
.ip,
.price-cell,
.small,
.task-meta,
.form-grid label {
  font-size: 0.875rem;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
