/* =========================================================
   PANEL_THEME_V1 — "Pine"
   Loaded after style.css. Only visual overrides; no layout
   logic depends on this file. Remove the <link> to roll back.
   ========================================================= */

/* SELF_HOSTED_FONT_V1: variable font (weights 200-800), SIL Open Font
   License, from Google Fonts v12; latin + latin-ext subsets. */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Surfaces */
  --bg: #f2f5f3;
  --panel: #ffffff;
  --panel-2: #f7f9f8;
  --border: #dfe6e2;
  --border-strong: #c9d4cf;

  /* Ink */
  --text: #13211e;
  --muted: #5d6e69;

  /* Sidebar */
  --sidebar: #0e2622;
  --sidebar-2: #163631;
  --sidebar-text: #a6bfb8;
  --mint: #7ddfb6;

  /* Action */
  --primary: #13695c;
  --primary-hover: #0e5449;
  --primary-soft: #e3f1ed;
  --ring: rgba(19, 105, 92, .28);

  /* Status */
  --live: #12804f;
  --live-bg: #e2f5ea;
  --run: #1f5fd1;
  --run-bg: #e6eeff;
  --wait: #9a5b00;
  --wait-bg: #fff1d6;
  --fail: #c2392f;
  --fail-bg: #fde8e6;
  --idle: #5d6e69;
  --idle-bg: #edf1ef;

  /* Legacy aliases used by style.css */
  --good: var(--live);
  --good-bg: var(--live-bg);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-pop: 0 24px 64px rgba(10, 30, 26, .22);
}

body.dark {
  --bg: #0c1614;
  --panel: #12201d;
  --panel-2: #172824;
  --border: #233632;
  --border-strong: #2f4741;

  --text: #e3ece9;
  --muted: #92a7a0;

  --sidebar: #08120f;
  --sidebar-2: #12241f;

  --primary: #3cae93;
  --primary-hover: #52c2a6;
  --primary-soft: #16332c;
  --ring: rgba(82, 194, 166, .32);

  --live: #6fd6a0;
  --live-bg: #12321f;
  --run: #8fb3ff;
  --run-bg: #172647;
  --wait: #f2c46b;
  --wait-bg: #3a2c0f;
  --fail: #f19a92;
  --fail-bg: #3d1915;
  --idle: #92a7a0;
  --idle-bg: #1c2d29;

  --shadow-pop: 0 24px 64px rgba(0, 0, 0, .5);
}

/* ---------- Base ---------- */

body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: light;
}

body.dark {
  color-scheme: dark;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

.card strong,
.pm-metric strong,
#rangeText,
#pageText {
  font-variant-numeric: tabular-nums;
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Sidebar ---------- */

.sidebar {
  width: 240px;
  padding: 22px 14px;
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
}

.main {
  margin-left: 240px;
  padding: 32px 36px 48px;
}

.brand {
  gap: 12px;
  padding: 0 8px;
  margin-bottom: 30px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--sidebar-2);
  color: var(--mint);
  box-shadow: inset 0 0 0 1px rgba(125, 223, 182, .22);
}

.brand-icon .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.brand strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: #f1f7f5;
}

.brand small {
  color: var(--sidebar-text);
  font-size: 12px;
}

nav {
  gap: 2px;
}

nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sidebar-text);
  transition: background-color .15s ease, color .15s ease;
}

nav a .icon {
  width: 19px;
  height: 19px;
  opacity: .9;
}

nav a:not(.disabled):hover {
  background: var(--sidebar-2);
  color: #f1f7f5;
}

nav a.active,
nav a[aria-current="page"] {
  background: var(--sidebar-2);
  color: #ffffff;
  font-weight: 600;
}

nav a.active::before,
nav a[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--mint);
}

nav a.active .icon,
nav a[aria-current="page"] .icon {
  color: var(--mint);
  opacity: 1;
}

nav a.disabled {
  opacity: .42;
}

/* ---------- Page header ---------- */

header {
  margin-bottom: 26px;
  gap: 16px;
}

h1,
.pm-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.2;
}

header p,
.pm-subtitle {
  color: var(--muted);
  font-size: 14px;
}

.pm-eyebrow {
  display: none;
}

/* ---------- Buttons ---------- */

/* Only generic buttons; Projects/Deployments widgets keep their own classes */
button:where(:not([class*="pm-"]):not([class*="dm-"])) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 16px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}

button:where(:not([class*="pm-"]):not([class*="dm-"])):hover {
  background: var(--primary-hover);
}

button .icon {
  width: 17px;
  height: 17px;
}

button.secondary {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

button.secondary:hover {
  background: var(--panel-2);
  border-color: var(--primary);
  color: var(--primary);
}

body.dark button:where(:not(.secondary):not(.modal-close):not([class*="pm-"]):not([class*="dm-"])) {
  color: #06201a;
}

.pm-btn {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.pm-btn:hover {
  background: var(--panel-2);
  border-color: var(--primary);
  color: var(--primary);
}

.pm-btn.pm-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.pm-btn.pm-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}

body.dark .pm-btn.pm-primary,
body.dark .pm-btn.pm-primary:hover {
  color: #06201a;
}

/* ---------- Registrar sync ---------- */

.sync-info {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 72ch;
}

.sync-info:empty {
  display: none;
}

.sync-info.is-ok {
  color: var(--live);
}

.sync-info.is-error {
  color: var(--fail);
}







/* ---------- Expiry warning ---------- */

.expiry-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: -6px 0 22px;
  padding: 12px 14px 12px 16px;
  border-radius: var(--radius);
  background: var(--wait-bg);
  color: var(--wait);
  border: 1px solid color-mix(in srgb, var(--wait) 25%, transparent);
}

.expiry-banner[hidden] {
  display: none;
}

.expiry-banner.is-danger {
  background: var(--fail-bg);
  color: var(--fail);
  border-color: color-mix(in srgb, var(--fail) 25%, transparent);
}

.expiry-banner p {
  flex: 1;
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.expiry-banner button.secondary {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
}







/* ---------- Auto renew switch (GoDaddy) ---------- */

.renew-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 4px 6px 4px 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.renew-switch:hover,
body.dark .renew-switch {
  background: transparent;
  color: var(--text);
}

.renew-track {
  position: relative;
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background-color .15s ease;
}

.renew-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  transition: transform .15s ease;
}

.renew-switch[aria-checked="true"] .renew-track {
  background: var(--primary);
}

.renew-switch[aria-checked="true"] .renew-track::after {
  transform: translateX(16px);
}

.renew-switch[aria-checked="false"] .renew-text {
  color: var(--muted);
}

.renew-switch:disabled {
  opacity: .55;
  cursor: progress;
}

.renew-switch:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.renew {
  cursor: help;
}

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1100;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--sidebar);
  color: #eef6f3;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-pop);
}

.toast[hidden] {
  display: none;
}

.toast.is-error {
  background: #b3342b;
  color: #fff;
}

@media (max-width: 520px) {
  .toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }

  .expiry-banner {
    flex-wrap: wrap;
  }
}



.q-panel {
  margin: 0 0 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.q-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}

.q-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.q-panel h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.q-panel h3 {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.q-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.q-state::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.q-state.is-on {
  background: var(--live-bg);
  color: var(--live);
}

.q-state.is-paused {
  background: var(--wait-bg);
  color: var(--wait);
}

.q-body {
  padding: 8px 20px 14px;
}

.q-empty {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14px;
}

.q-error {
  color: var(--fail);
}

.q-running {
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--border);
}

.q-running:last-child {
  border-bottom: 0;
}

.q-row-main {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
  flex: 1;
}

.q-row-main strong {
  font-size: 14px;
  font-weight: 600;
}

.q-meta {
  font-size: 13px;
  color: var(--muted);
}

.q-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--run);
  box-shadow: 0 0 0 4px var(--run-bg);
  align-self: center;
}

.q-progress {
  height: 6px;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--idle-bg);
  overflow: hidden;
}

.q-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--run);
  transition: width .4s ease;
}

.q-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.q-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}

.q-item:last-child {
  border-bottom: 0;
}

.q-num {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.q-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.q-panel .q-btn,
.q-panel .q-icon-btn {
  min-height: 32px;
  padding: 5px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.q-panel .q-icon-btn {
  width: 32px;
  padding: 0;
  font-size: 15px;
}

.q-panel .q-btn:hover,
.q-panel .q-icon-btn:hover {
  background: var(--panel-2);
  border-color: var(--primary);
  color: var(--primary);
}

.q-panel .q-btn.q-danger:hover {
  border-color: var(--fail);
  color: var(--fail);
}

.q-panel button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.q-meta.q-error {
  color: var(--fail);
}

.q-dot-wait {
  background: var(--wait);
  box-shadow: 0 0 0 4px var(--wait-bg);
  flex: none;
}

.q-failed {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-strong);
}

@media (max-width: 640px) {
  .q-head {
    flex-wrap: wrap;
  }

  .q-item {
    flex-wrap: wrap;
  }

  .q-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* ---------- Bulk deploy (BULK_DEPLOY_V1) ---------- */

.bulk-modal {
  width: min(860px, 100%);
}

.bulk-section {
  margin-bottom: 18px;
}

.bulk-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.bulk-section-head > label {
  font-size: 13px;
  font-weight: 600;
}

.bulk-count {
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
}

.bulk-quick {
  display: flex;
  gap: 6px;
}

.bulk-quick button.secondary {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 12px;
}

.bulk-list {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 4px;
}

.bulk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.bulk-item:hover {
  background: var(--panel-2);
}

.bulk-item:has(.bulk-check:checked) {
  background: var(--primary-soft);
}

.bulk-item.is-busy {
  opacity: .55;
  cursor: not-allowed;
}

.bulk-domain {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
}

.bulk-tag {
  font-size: 12px;
  color: var(--muted);
}

.bulk-muted {
  margin: 10px;
  color: var(--muted);
  font-size: 14px;
}

.bulk-note {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 72ch;
}

/* TEMPLATE_AUTODETECT_V1 */
.tpl-detect {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 4px 0 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.tpl-detect-line.is-ok {
  color: var(--live);
}

.tpl-detect-line.is-warn {
  color: var(--wait);
}

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

.tpl-detect-choices {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-left: 4px;
}

.tpl-detect-choice {
  min-height: 0;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-2);
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

.tpl-detect-choice:hover {
  border-color: var(--primary);
}





.bulk-per-domain {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.bulk-card {
  margin: 0;
  padding: 12px 14px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  min-width: 0;
}

.bulk-card legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--primary);
}

.bulk-card-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 13px;
}

/* NO_AMP_V1: the slash rows hidden by the dialog (no AMP, no folder) */
.bulk-card-toggle[hidden] {
  display: none;
}

.bulk-result {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.bulk-result[hidden] {
  display: none;
}

.bulk-summary {
  margin: 0 0 10px;
  font-weight: 600;
}

.bulk-error {
  color: var(--fail);
}

.bulk-table {
  min-width: 0;
  font-size: 13px;
}

.bulk-table th,
.bulk-table td {
  padding: 8px 10px;
  white-space: normal;
  vertical-align: top;
}

.bulk-note-cell {
  color: var(--muted);
  word-break: break-word;
}

.bulk-pill {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.bulk-pill.ok { background: var(--live-bg); color: var(--live); }
.bulk-pill.warn { background: var(--wait-bg); color: var(--wait); }
.bulk-pill.fail { background: var(--fail-bg); color: var(--fail); }
.bulk-pill.idle { background: var(--idle-bg); color: var(--idle); }

/* ---------- Stats: one strip instead of four boxes ---------- */

.stats {
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
}

.stats .card {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 20px 24px;
}

.stats .card + .card {
  border-left: 1px solid var(--border);
}

.card span {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.card strong {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.03em;
  margin-top: 4px;
}

.stats .card:first-child strong {
  color: var(--primary);
}

.pm-metrics {
  gap: 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.pm-metric {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 18px 22px;
}

.pm-metric + .pm-metric {
  border-left: 1px solid var(--border);
}

.pm-metric strong {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.pm-metric span {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.pm-metric small {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Panels ---------- */

.panel,
.pm-panel {
  border-color: var(--border);
  border-radius: var(--radius-lg);
}

.toolbar {
  padding: 14px 16px;
  gap: 10px;
  background: var(--panel);
}

.search-box {
  position: relative;
}

.search-box .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: var(--muted);
  pointer-events: none;
}

.search-box input[type="search"] {
  padding-left: 40px;
}

input[type="search"],
select,
.form-group input,
.form-group select,
.form-group textarea,
#pm-root input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#pm-root select {
  min-height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 14px;
  transition: border-color .15s ease, box-shadow .15s ease;
}

input[type="search"]:focus,
select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
#pm-root input:focus,
#pm-root select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

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

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--primary);
}

.selected-bar,
body.dark .selected-bar {
  background: var(--primary-soft);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  color: var(--text);
}

/* ---------- Table ---------- */

th,
td {
  padding: 12px 16px;
  border-bottom-color: var(--border);
}

th {
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

tbody tr {
  transition: background-color .12s ease;
}

tbody tr:hover {
  background: var(--panel-2);
}

tbody tr:has(.domain-check:checked) {
  background: var(--primary-soft);
}

.domain-name {
  font-weight: 600;
  letter-spacing: -.005em;
}

td {
  font-size: 14px;
}

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

.pagination {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 13px;
}

.pagination button {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 13px;
}



















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

/* Status pills on Projects & Deployments: filled, not outlined */
.pm-badge {
  gap: 5px;
  border: 0;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  background: var(--idle-bg);
}

.pm-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

#pm-root {
  --pm-blue: var(--run);
  --pm-green: var(--live);
  --pm-red: var(--fail);
  --pm-amber: var(--wait);
  --pm-muted: var(--muted);
}



.pm-live { background: var(--live-bg); color: var(--live); }
.pm-running { background: var(--run-bg); color: var(--run); }
.pm-queued { background: var(--wait-bg); color: var(--wait); }
.pm-failed { background: var(--fail-bg); color: var(--fail); }
.pm-idle { background: var(--idle-bg); color: var(--idle); }

.pm-project-item.active {
  background: var(--primary-soft);
  border-color: var(--primary);
}

.pm-connection {
  color: var(--live);
}

/* ---------- Modal ---------- */

.modal-backdrop {
  background: rgba(8, 24, 21, .55);
  backdrop-filter: blur(3px);
}

.modal {
  border-radius: 18px;
  border-color: var(--border);
  box-shadow: var(--shadow-pop);
}

.modal-header {
  padding: 20px 24px;
}

.modal-header h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.modal-header small {
  color: var(--muted);
}

.modal-close {
  min-height: 36px;
  width: 36px;
  padding: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.modal-close:hover {
  background: var(--panel-2);
  color: var(--text);
}

.modal-body {
  padding: 22px 24px;
}

.modal-footer {
  padding: 16px 24px;
}

.wizard-note {
  background: var(--primary-soft);
  border: 0;
  border-radius: 10px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
}

.toggle-row {
  gap: 10px;
  flex-wrap: wrap;
}

.toggle-row label {
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.toggle-row label:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.result-box.success {
  background: var(--live-bg);
  color: var(--live);
}

.result-box.error {
  background: var(--fail-bg);
  color: var(--fail);
}

/* ---------- Responsive: sidebar becomes a top bar ---------- */

@media (max-width: 900px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    display: flex;
    position: sticky;
    top: 0;
    bottom: auto;
    width: 100%;
    z-index: 50;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
  }

  .brand {
    margin: 0;
    padding: 0;
  }

  .brand > div:last-child {
    display: none;
  }

  .brand-icon {
    width: 36px;
    height: 36px;
  }

  nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    scrollbar-width: none;
  }

  nav a {
    padding: 8px 12px;
    white-space: nowrap;
  }

  nav a.disabled {
    display: none;
  }

  nav a.active::before,
  nav a[aria-current="page"]::before {
    left: 12px;
    right: 12px;
    top: auto;
    bottom: -10px;
    width: auto;
    height: 3px;
    border-radius: 3px 3px 0 0;
  }

  

  .main {
    margin-left: 0;
    padding: 20px 16px 40px;
  }

  header {
    flex-wrap: wrap;
  }

  .stats,
.pm-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats .card:nth-child(3),
.pm-metric:nth-child(3) {
    border-left: 0;
  }

  .stats .card:nth-child(n + 3),
.pm-metric:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }

  select {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .sidebar {
    padding: 8px 12px;
  }

  .brand {
    display: none;
  }

  nav {
    gap: 2px;
  }

  nav a {
    gap: 7px;
    padding: 8px 10px;
    font-size: 13px;
  }

  nav a .icon {
    width: 17px;
    height: 17px;
  }

  nav a.active::before,
  nav a[aria-current="page"]::before {
    bottom: -8px;
  }

  .header-actions button span {
    display: none;
  }

  .header-actions button {
    width: 40px;
    padding: 0;
  }

  .card strong {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* SIMPLE_PROJECTS_V1: collapsible upload form on the Projects page */


.pm-detail .pm-control-center {
  margin: 18px 20px 0;
  border-radius: 10px;
  box-shadow: none;
}

.tpl-detect[hidden] {
  display: none;
}

/* AMP_SITES_V1 */
[data-amp-hidden="true"],
#amp-root[hidden] {
  display: none !important;
}



.amp-panel {
  margin-top: 18px;
}

.amp-status {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border, #e2e8f0);
}

.amp-status.amp-error {
  color: var(--fail, #b91c1c);
}

.amp-table td {
  vertical-align: top;
}

.amp-table .pm-badge + .pm-small {
  margin-top: 4px;
}

/* Segmented filter (AMP page: Semua / Live / Tidak live) */
.seg {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel-2);
  box-shadow: inset 0 1px 2px rgba(10, 30, 26, .05);
}

.seg .seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.seg .seg-btn:hover {
  background: transparent;
  color: var(--text);
}

.seg .seg-btn[aria-pressed="true"] {
  border-color: var(--border);
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(10, 30, 26, .08), 0 4px 12px rgba(10, 30, 26, .06);
}

.seg .seg-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.seg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--idle);
}

.seg-live .seg-dot {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-bg);
}

.seg-down .seg-dot {
  background: var(--fail);
  box-shadow: 0 0 0 3px var(--fail-bg);
}

.seg-count {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--idle-bg);
  color: var(--idle);
  font-size: 11.5px;
  font-weight: 700;
  text-align: center;
}

.seg-live[aria-pressed="true"] .seg-count {
  background: var(--live-bg);
  color: var(--live);
}

.seg-down[aria-pressed="true"] .seg-count {
  background: var(--fail-bg);
  color: var(--fail);
}

.seg-btn[data-filter="all"][aria-pressed="true"] .seg-count {
  background: var(--primary-soft);
  color: var(--primary);
}

@media (max-width: 900px) {
  .seg {
    width: 100%;
  }

  .seg .seg-btn {
    flex: 1;
    justify-content: center;
    padding: 6px 8px;
  }
}

.amp-domain {
  font-size: 14px;
  font-weight: 600;
}

.amp-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted, #64748b);
}

/* CONFIRM_DIALOG_V1: delete confirmation popup */
.cd-dialog {
  width: min(440px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font);
  box-shadow: var(--shadow-pop);
  overflow: auto;
  animation: cd-in .18s cubic-bezier(.2, .9, .3, 1.1);
}

.cd-dialog::backdrop {
  background: rgba(8, 24, 21, .5);
  backdrop-filter: blur(6px);
  animation: cd-fade .18s ease;
}

.cd-dialog.cd-closing {
  animation: cd-out .12s ease forwards;
}

.cd-dialog.cd-closing::backdrop {
  animation: cd-fade .12s ease reverse forwards;
}

@keyframes cd-in {
  from { opacity: 0; transform: translateY(8px) scale(.96); }
  to { opacity: 1; transform: none; }
}

@keyframes cd-out {
  to { opacity: 0; transform: translateY(4px) scale(.98); }
}

@keyframes cd-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cd-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px 28px 24px;
}

.cd-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--fail-bg);
  color: var(--fail);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--fail-bg) 45%, transparent);
}

.cd-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cd-title {
  margin: 6px 0 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cd-message {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.cd-box {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--panel-2);
}

.cd-box-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.cd-list,
.cd-notes {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.cd-list li {
  padding: 3px 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.cd-notes li {
  position: relative;
  padding: 2px 0 2px 22px;
  color: var(--muted);
}

.cd-notes li::before {
  content: "✓";
  position: absolute;
  left: 2px;
  color: var(--live);
  font-weight: 700;
}

.cd-type {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}

.cd-type code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--fail-bg);
  color: var(--fail);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  font-weight: 600;
}

.cd-input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.cd-input:focus {
  outline: none;
  border-color: var(--fail);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fail) 22%, transparent);
}

.cd-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}

.cd-check input {
  margin-top: 2px;
  accent-color: var(--fail);
}

.cd-check span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
}

.cd-check small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.cd-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.cd-dialog .cd-btn {
  flex: 1;
  height: 44px;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, opacity .15s ease, transform .1s ease;
}

.cd-dialog .cd-btn:active:not(:disabled) {
  transform: scale(.98);
}

.cd-dialog .cd-cancel {
  border: 1px solid var(--border-strong);
  background: var(--panel);
  color: var(--text);
}

.cd-dialog .cd-cancel:hover {
  background: var(--panel-2);
}

.cd-dialog .cd-danger {
  border: 1px solid var(--fail);
  background: var(--fail);
  color: #fff;
}

.cd-dialog .cd-danger:hover:not(:disabled) {
  background: color-mix(in srgb, var(--fail) 85%, #000);
}

.cd-dialog .cd-danger:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.cd-dialog .cd-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

@media (prefers-reduced-motion: reduce) {
  .cd-dialog,
  .cd-dialog::backdrop {
    animation: none !important;
  }
}

body.dark .cd-dialog .cd-danger {
  border-color: #c2392f;
  background: #c2392f;
}

body.dark .cd-dialog .cd-danger:hover:not(:disabled) {
  background: #a82f26;
}

/* Warning tone (e.g. turning auto renew off) */
.cd-warning-tone .cd-icon {
  background: var(--wait-bg);
  color: var(--wait);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--wait-bg) 45%, transparent);
}

.cd-warning-tone .cd-btn.cd-danger,
body.dark .cd-warning-tone .cd-btn.cd-danger {
  border-color: #b86e00;
  background: #b86e00;
}

.cd-warning-tone .cd-btn.cd-danger:hover:not(:disabled),
body.dark .cd-warning-tone .cd-btn.cd-danger:hover:not(:disabled) {
  background: #9a5b00;
}

/* TEAM_AUTH_V1: login screen */
body.auth-locked {
  overflow: hidden;
}

.auth-screen {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background:
    radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 60%),
    radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--mint) 18%, transparent), transparent 60%),
    var(--sidebar);
  overflow: auto;
}

.auth-card {
  width: min(400px, 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px 30px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow-pop);
  animation: cd-in .22s cubic-bezier(.2, .9, .3, 1.1);
}

.auth-brand {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--sidebar);
  color: var(--mint);
}

.auth-brand .icon {
  width: 26px;
  height: 26px;
}

.auth-title {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.auth-sub {
  margin: -8px 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.auth-field,
.fd-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}

.auth-field input {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 500;
  font-size: 15px;
}

.auth-field input:focus,
.fd-dialog .cd-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.auth-error,
.fd-error {
  min-height: 18px;
  margin: 0;
  color: var(--fail);
  font-size: 13px;
}

.auth-card .auth-submit {
  height: 48px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
}

/* Form dialogs (password change, add member, reset) */
.fd-dialog .cd-card {
  gap: 12px;
}

.fd-dialog .cd-title {
  margin-top: 0;
}

.fd-row {
  display: flex;
  gap: 8px;
}

.fd-row .cd-input {
  flex: 1;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.fd-dialog .fd-gen {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.fd-help {
  color: var(--muted);
  font-weight: 400;
  font-size: 12px;
}

.fd-dialog select.cd-input {
  padding: 0 10px;
}

.cd-dialog .cd-btn.cd-primary,
body.dark .cd-dialog .cd-btn.cd-primary {
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
}

.cd-dialog .cd-btn.cd-primary:hover:not(:disabled) {
  background: var(--primary-hover);
}

.cd-dialog .cd-btn.cd-primary:disabled {
  opacity: .5;
}

/* Account box at the bottom of the sidebar */
.account-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 10px;
  align-items: center;
  margin-top: auto;
  padding: 14px 10px 4px;
  border-top: 1px solid color-mix(in srgb, var(--sidebar-text) 18%, transparent);
  color: var(--sidebar-text);
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sidebar-2);
  color: var(--mint);
  font-weight: 700;
}

.account-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-who strong {
  color: #fff;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-who small {
  font-size: 11.5px;
}

.account-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
}

.sidebar .account-btn {
  flex: 1;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--sidebar-text) 25%, transparent);
  border-radius: 8px;
  background: transparent;
  color: var(--sidebar-text);
  font-size: 12px;
  font-weight: 600;
}

.sidebar .account-btn:hover {
  background: var(--sidebar-2);
  color: #fff;
}

/* Tim page */
[data-team-hidden="true"],
#team-root[hidden] {
  display: none !important;
}

.team-panel {
  margin-top: 18px;
}

.team-table td {
  vertical-align: middle;
}

.team-you {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
}

.team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.team-actions .team-danger {
  color: var(--fail);
}

@media (max-width: 900px) {
  .account-box {
    display: flex;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }

  .account-who,
  .account-avatar {
    display: none;
  }

  .sidebar .account-btn {
    flex: none;
  }

  .team-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .team-table thead {
    display: none;
  }

  .team-table,
  .team-table tbody,
  .team-table tr,
  .team-table td {
    display: block;
    width: 100%;
  }

  .team-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
  }

  .team-table td {
    padding: 3px 0 !important;
    border: 0 !important;
  }

  .team-table .team-actions {
    margin-top: 8px;
    flex-wrap: wrap;
  }

  .pm-table-wrap .team-table {
    min-width: 0;
  }
}

.amp-domain a {
  color: var(--text);
  text-decoration: none;
}

.amp-domain a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  #amp-root .pm-header-actions {
    width: 100%;
  }
}

/* ACTIVITY_LOG_V1: team activity timeline */
.act-panel {
  margin-top: 18px;
}

.act-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.act-head h3 {
  margin: 0;
  font-size: 15px;
}

.act-head .pm-small {
  margin: 2px 0 0;
}

.act-filter {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.act-list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.act-day {
  padding: 14px 18px 6px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.act-item {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 10px 18px;
}

.act-item + .act-item::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 33px;
  width: 2px;
  height: 20px;
  background: var(--border);
}

.act-item:hover {
  background: var(--panel-2);
}

.act-avatar {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.act-item.is-failed .act-avatar {
  background: var(--fail-bg);
  color: var(--fail);
}

.act-body {
  min-width: 0;
}

.act-line {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.act-target {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 12.5px;
}

.act-meta {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.act-badge {
  align-self: center;
}

.act-empty {
  padding: 24px 18px;
  color: var(--muted);
  text-align: center;
}

.act-more-wrap {
  display: flex;
  justify-content: center;
  padding: 0 0 14px;
}

.team-table .team-name {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-weight: 700;
  min-height: 0;
  cursor: pointer;
}

.team-table .team-name:hover {
  background: none;
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .act-item {
    grid-template-columns: auto 1fr;
    padding: 10px 14px;
  }

  .act-badge {
    grid-column: 2;
    justify-self: start;
  }

  .act-item + .act-item::before {
    left: 29px;
  }
}

/* PROJECT_GROUPS_V1: group picker in Create Project */
#projectGroup,
.group-new-input {
  width: 100%;
}

.group-new-input {
  margin-top: 8px;
}

.group-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* PROJECT_GROUP_FILTER_V1 */
.pm-group-filter {
  max-width: min(640px, 100%);
  overflow-x: auto;
  scrollbar-width: none;
}

.pm-group-filter::-webkit-scrollbar {
  display: none;
}

@media (max-width: 900px) {
  #pm-root .pm-header-actions {
    width: 100%;
  }

  .pm-group-filter .seg-btn {
    flex: none;
  }
}

/* PROJECT_GROUP_MANAGE_V1 */
#pm-root .pm-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.gm-dialog {
  width: min(520px, calc(100vw - 32px));
}

.gm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gm-head .cd-title {
  margin: 0;
}

.gm-dialog .gm-close {
  min-height: 34px;
  width: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.gm-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.gm-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
}

.gm-row + .gm-row {
  border-top: 1px solid var(--border);
}

.gm-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gm-info strong {
  overflow-wrap: anywhere;
}

.gm-info small {
  color: var(--muted);
  font-size: 12px;
}

.gm-actions {
  display: flex;
  gap: 6px;
  flex: none;
}

.gm-actions .gm-danger {
  color: var(--fail);
}

.gm-empty {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.gm-dialog .gm-add {
  align-self: flex-start;
  flex: none;
  height: 40px;
  padding: 0 16px;
}

/* ICON_DELETE_V1: trash icon buttons with a hover tooltip */
.pm-btn.icon-del {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.pm-btn.icon-del svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pm-btn.icon-del:hover:not(:disabled),
.pm-btn.icon-del:focus-visible {
  border-color: color-mix(in srgb, var(--fail) 35%, var(--border));
  background: var(--fail-bg);
  color: var(--fail);
}

.pm-btn.icon-del:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.pm-btn.icon-del.is-busy svg {
  animation: icon-del-pulse 1s ease-in-out infinite;
}

@keyframes icon-del-pulse {
  50% { opacity: .35; }
}

/* Tooltip: to the left by default (rows end with the icon). */
.icon-del[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  top: 50%;
  right: calc(100% + 8px);
  z-index: 20;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--sidebar);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(10, 30, 26, .18);
  opacity: 0;
  pointer-events: none;
  transform: translate(4px, -50%);
  transition: opacity .15s ease, transform .15s ease;
}

.icon-del[data-tip]:hover::after,
.icon-del[data-tip]:focus-visible::after,
.icon-del.is-busy[data-tip]::after {
  opacity: 1;
  transform: translate(0, -50%);
}

/* In the project action row the tooltip sits above the icon. */
.pm-actions .icon-del[data-tip]::after {
  top: auto;
  right: 50%;
  bottom: calc(100% + 8px);
  transform: translate(50%, 4px);
}

.pm-actions .icon-del[data-tip]:hover::after,
.pm-actions .icon-del[data-tip]:focus-visible::after,
.pm-actions .icon-del.is-busy[data-tip]::after {
  transform: translate(50%, 0);
}

.amp-del-cell {
  text-align: right;
}

body.dark .icon-del[data-tip]::after {
  background: #e3ece9;
  color: #0c1614;
}

/* ICON_BUTTONS_V1: icon-only action buttons with a tooltip */
button.icon-btn.icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}

button.icon-btn.icon-btn:hover:not(:disabled),
button.icon-btn.icon-btn:focus-visible {
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: var(--primary-soft);
  color: var(--primary);
}

button.icon-btn.icon-btn:active:not(:disabled) {
  transform: scale(.94);
}

button.icon-btn.icon-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.icon-btn .ib-svg,
.icon-btn > svg.icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-btn-labelled > span {
  display: none;
}

/* Primary: filled */
button.icon-btn.icon-btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

button.icon-btn.icon-btn-primary:hover:not(:disabled),
button.icon-btn.icon-btn-primary:focus-visible {
  border-color: var(--primary-hover);
  background: var(--primary-hover);
  color: #fff;
}

/* Danger: red on hover */
button.icon-btn.icon-btn-danger:hover:not(:disabled),
button.icon-btn.icon-btn-danger:focus-visible {
  border-color: color-mix(in srgb, var(--fail) 35%, var(--border));
  background: var(--fail-bg);
  color: var(--fail);
}

/* Sidebar (dark background) */
.sidebar button.icon-btn.icon-btn {
  border-color: color-mix(in srgb, var(--sidebar-text) 25%, transparent);
  background: transparent;
  color: var(--sidebar-text);
}

.sidebar button.icon-btn.icon-btn:hover {
  background: var(--sidebar-2);
  color: #fff;
}

.account-actions {
  justify-content: flex-start;
}

.account-actions .account-btn {
  flex: none !important;
}

/* Tooltip: above by default */
.icon-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  z-index: 30;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--sidebar);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(10, 30, 26, .18);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 4px);
  transition: opacity .15s ease, transform .15s ease;
}

.icon-btn[data-tip]:hover::after,
.icon-btn[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Below, for buttons at the top of the page */
.pm-header-actions .icon-btn[data-tip]::after,
header .icon-btn[data-tip]::after,
.gm-head .icon-btn[data-tip]::after {
  top: calc(100% + 8px);
  bottom: auto;
  transform: translate(-50%, -4px);
}

.pm-header-actions .icon-btn[data-tip]:hover::after,
header .icon-btn[data-tip]:hover::after,
.gm-head .icon-btn[data-tip]:hover::after {
  transform: translate(-50%, 0);
}

/* Left, for row actions inside tables and lists (no clipping) */
.pm-table-wrap .icon-btn[data-tip]::after,
.team-actions .icon-btn[data-tip]::after,
.gm-actions .icon-btn[data-tip]::after,
.q-actions .icon-btn[data-tip]::after,
table .icon-btn[data-tip]::after {
  left: auto;
  right: calc(100% + 8px);
  top: 50%;
  bottom: auto;
  transform: translate(4px, -50%);
}

.pm-table-wrap .icon-btn[data-tip]:hover::after,
.team-actions .icon-btn[data-tip]:hover::after,
.gm-actions .icon-btn[data-tip]:hover::after,
.q-actions .icon-btn[data-tip]:hover::after,
table .icon-btn[data-tip]:hover::after,
.pm-table-wrap .icon-btn[data-tip]:focus-visible::after,
table .icon-btn[data-tip]:focus-visible::after {
  transform: translate(0, -50%);
}

body.dark .icon-btn[data-tip]::after {
  background: #e3ece9;
  color: #0c1614;
}

.team-actions,
.gm-actions,
.q-actions {
  gap: 6px;
}

/* The queue panel clips its content (overflow: hidden), so the
 * pause/resume tooltip goes to the left of the button, inside the panel. */
.q-head .icon-btn[data-tip]::after {
  left: auto;
  right: calc(100% + 8px);
  top: 50%;
  bottom: auto;
  transform: translate(4px, -50%);
}

.q-head .icon-btn[data-tip]:hover::after,
.q-head .icon-btn[data-tip]:focus-visible::after {
  transform: translate(0, -50%);
}

/* Sidebar account buttons sit at the left edge: anchor their tooltips to
 * the button's left side so they grow to the right instead of off-screen. */
.account-actions .icon-btn[data-tip]::after {
  left: 0;
  transform: translate(0, 4px);
}

.account-actions .icon-btn[data-tip]:hover::after,
.account-actions .icon-btn[data-tip]:focus-visible::after {
  transform: translate(0, 0);
}

@media (max-width: 900px) {
  /* Mobile: the account buttons are at the top-right of the bar. */
  .account-actions .icon-btn[data-tip]::after {
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    bottom: auto;
    transform: translate(0, -4px);
  }
}

/* On the dark sidebar a light tooltip reads better. */
.sidebar .icon-btn[data-tip]::after {
  background: #f2f5f3;
  color: #13211e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

/* Expiry banner button sits at the right edge of a clipped banner: the
 * tooltip opens to its left, inside the banner. */
.expiry-banner .icon-btn[data-tip]::after {
  left: auto;
  right: calc(100% + 8px);
  top: 50%;
  bottom: auto;
  transform: translate(4px, -50%);
}

.expiry-banner .icon-btn[data-tip]:hover::after,
.expiry-banner .icon-btn[data-tip]:focus-visible::after {
  transform: translate(0, -50%);
}

/* SMART_TOOLTIP_V1: the CSS ::after tooltips are replaced by one fixed
 * element managed in app.js (never clipped, stays on screen). */
.icon-btn[data-tip]::after,
.icon-del[data-tip]::after {
  content: none !important;
  display: none !important;
}

.smart-tip {
  position: fixed;
  z-index: 3000;
  max-width: min(320px, calc(100vw - 16px));
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--sidebar);
  color: #fff;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 8px 22px rgba(10, 30, 26, .2);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .14s ease, transform .14s ease;
}

.smart-tip[data-placement="below"] {
  transform: translateY(-4px);
}

.smart-tip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.smart-tip.is-measuring {
  transition: none;
  visibility: hidden;
}

body.dark .smart-tip,
.smart-tip.on-dark {
  background: #f2f5f3;
  color: #13211e;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
}

@media (prefers-reduced-motion: reduce) {
  .smart-tip {
    transition: none;
  }
}

/* FANCY_SELECT_V1: Domains filters */
.toolbar {
  align-items: center;
  flex-wrap: wrap;
}

select.fs-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.toolbar .fs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(10, 30, 26, .04);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.toolbar .fs-trigger:hover {
  border-color: var(--border-strong);
  background: var(--panel-2);
  color: var(--text);
}

.toolbar .fs-trigger:focus-visible,
.toolbar .fs-trigger.is-open {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
  background: var(--panel);
}

.toolbar .fs-trigger.is-active {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: var(--primary-soft);
}

.fs-icon,
.fs-chevron,
.fs-check {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.fs-trigger.is-active .fs-icon {
  color: var(--primary);
}

.fs-prefix {
  color: var(--muted);
  font-weight: 500;
}

.fs-prefix::after {
  content: "·";
  margin-left: 8px;
  color: var(--border-strong);
}

.fs-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 650;
}

.fs-trigger.has-dot .fs-value::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fs-dot);
}

.fs-chevron {
  margin-left: 2px;
  color: var(--muted);
  transition: transform .18s ease;
}

.fs-trigger.is-open .fs-chevron {
  transform: rotate(180deg);
}

.fs-menu {
  position: fixed;
  z-index: 2500;
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  color: var(--text);
  font-family: var(--font);
  box-shadow: 0 18px 40px rgba(10, 30, 26, .16), 0 2px 6px rgba(10, 30, 26, .06);
  animation: fs-in .14s cubic-bezier(.2, .9, .3, 1.1);
}

@keyframes fs-in {
  from { opacity: 0; transform: translateY(-4px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.fs-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.fs-option:hover,
.fs-option:focus {
  background: var(--panel-2);
}

.fs-option[aria-selected="true"] {
  color: var(--primary);
  font-weight: 650;
}

.fs-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--fs-dot);
}

.fs-text {
  flex: 1;
}

.fs-check {
  color: var(--primary);
  visibility: hidden;
}

.fs-option[aria-selected="true"] .fs-check {
  visibility: visible;
}

body.dark .toolbar .fs-trigger.is-active {
  background: color-mix(in srgb, var(--primary) 22%, var(--panel));
}

@media (max-width: 900px) {
  .toolbar .search-box {
    flex: 1 1 100%;
  }

  .toolbar .fs-trigger {
    flex: 1 1 auto;
    justify-content: flex-start;
  }

  .toolbar .fs-chevron {
    margin-left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fs-menu { animation: none; }
  .fs-chevron { transition: none; }
}

/* FANCY_SELECT_V1 in forms and dialogs: full width, like the inputs */
.fs-trigger.fs-form {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 12px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.fs-trigger.fs-form:hover {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border-strong));
  background: var(--panel);
  color: var(--text);
}

.fs-trigger.fs-form:focus-visible,
.fs-trigger.fs-form.is-open {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.fs-trigger.fs-form .fs-value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}

.fs-trigger.fs-form.is-placeholder .fs-value {
  color: var(--muted);
  font-weight: 500;
}

.fs-trigger.fs-form .fs-chevron {
  display: grid;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--muted);
}

.fs-trigger.fs-form.is-open .fs-chevron {
  color: var(--primary);
}

/* Menus opened from a dialog sit above its content. */
dialog .fs-menu {
  z-index: 10;
}

/* SMART_SEARCH_V1 */
.ss-field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

:is(#pm-root, #rd-root, #sl-root, #pt-root, .toolbar) .ss-field.ss-field input[type="search"].ss-input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  padding: 0 72px 0 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(10, 30, 26, .04);
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

:is(#pm-root, #rd-root, #sl-root, #pt-root, .toolbar) .ss-field.ss-field input[type="search"].ss-input::placeholder {
  color: var(--muted);
  opacity: .85;
}

:is(#pm-root, #rd-root, #sl-root, #pt-root, .toolbar) .ss-field.ss-field input[type="search"].ss-input:hover {
  border-color: var(--border-strong);
}

:is(#pm-root, #rd-root, #sl-root, #pt-root, .toolbar) .ss-field.ss-field input[type="search"].ss-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

:is(#pm-root, #rd-root, #sl-root, #pt-root, .toolbar) .ss-field.ss-field input[type="search"].ss-input::-webkit-search-cancel-button,
:is(#pm-root, #rd-root, #sl-root, #pt-root, .toolbar) .ss-field.ss-field input[type="search"].ss-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.ss-icon {
  position: absolute;
  left: 14px;
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
  transition: stroke .15s ease;
}

.ss-field.is-focused .ss-icon {
  stroke: var(--primary);
}

.ss-field .ss-clear {
  position: absolute;
  right: 10px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--muted);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.ss-field .ss-clear:hover {
  background: var(--fail-bg);
  color: var(--fail);
}

.ss-field .ss-clear svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.ss-kbd {
  position: absolute;
  right: 12px;
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--panel-2);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
  transition: opacity .15s ease;
}

.ss-field.is-focused .ss-kbd,
.ss-field.is-filled .ss-kbd {
  opacity: 0;
}

/* The Projects list search sits in a narrow panel */
#pm-root .pm-search-wrap .ss-field input.ss-input {
  height: 40px !important;
  min-height: 40px !important;
}

@media (hover: none) {
  .ss-kbd { display: none; }
}

.ss-field .ss-clear[hidden] {
  display: none;
}

/* DOMAIN_TABLE_V2 */
.domain-table {
  border-collapse: separate;
  border-spacing: 0;
}

.domain-table thead th {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.domain-table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  transition: background-color .12s ease;
}

.domain-table tbody tr:last-child td {
  border-bottom: 0;
}

.domain-table tbody tr:not(.dt-skeleton):not(.dt-empty-row) {
  cursor: pointer;
}

.domain-table tbody tr:not(.dt-skeleton):not(.dt-empty-row):hover td {
  background: var(--panel-2);
}

.domain-table tbody tr:has(.domain-check:checked) td {
  background: color-mix(in srgb, var(--primary) 7%, var(--panel));
}

.domain-table tbody tr:has(.domain-check:checked) td:first-child {
  box-shadow: inset 3px 0 0 var(--primary);
}

.domain-table .checkbox-col {
  width: 52px;
  padding-right: 0;
}

/* Checkboxes */
.domain-table input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}

.domain-table input[type="checkbox"]::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #fff;
  clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 70%);
  transform: scale(0);
  transition: transform .12s ease;
}

.domain-table input[type="checkbox"]:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.domain-table input[type="checkbox"]:checked::after {
  transform: scale(1);
}

.domain-table input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

.domain-table input[type="checkbox"]:hover:not(:checked) {
  border-color: var(--primary);
}

/* Domain */
.dt-domain {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.dt-avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: hsl(var(--dt-h) 55% 93%);
  color: hsl(var(--dt-h) 45% 32%);
  font-size: 14px;
  font-weight: 700;
}

body.dark .dt-avatar {
  background: hsl(var(--dt-h) 30% 20%);
  color: hsl(var(--dt-h) 60% 78%);
}

.dt-name {
  font-size: 14.5px;
  font-weight: 650;
  color: var(--text);
  overflow-wrap: anywhere;
}



/* Registrar */
.dt-reg {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 550;
}

.dt-reg i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--idle);
}

.dt-reg.reg-namecheap i { background: #e8590c; }
.dt-reg.reg-godaddy i { background: #1b8a7a; }
.dt-reg.reg-gname i { background: #7048e8; }

/* Status */
.dt-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.dt-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.dt-status.st-active { background: var(--live-bg); color: var(--live); }
.dt-status.st-expired { background: var(--fail-bg); color: var(--fail); }
.dt-status.st-missing,
.dt-status.st-other { background: var(--idle-bg); color: var(--idle); }

/* Expiry */
.dt-exp {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  font-weight: 550;
}

.dt-rel {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.dt-rel.lvl-soon { color: var(--wait); font-weight: 650; }
.dt-rel.lvl-urgent { color: var(--fail); font-weight: 700; }

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

/* Namecheap auto renew (read-only) */
.domain-table .renew {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.domain-table .renew::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.domain-table .renew-on { background: var(--live-bg); color: var(--live); }
.domain-table .renew-off { background: var(--idle-bg); color: var(--idle); }

/* Loading skeleton */
.dt-skeleton td {
  cursor: default;
}

.sk {
  display: inline-block;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--panel-2) 0%, var(--border) 50%, var(--panel-2) 100%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.2s ease-in-out infinite;
}

.sk-box { width: 18px; height: 18px; }
.sk-avatar { width: 34px; height: 34px; border-radius: 10px; }
.sk-line { height: 12px; width: 120px; }
.sk-line.w-60 { width: 150px; }
.sk-line.w-40 { width: 90px; }
.sk-line.w-50 { width: 110px; }
.sk-pill { width: 70px; height: 22px; border-radius: 999px; }

@keyframes sk-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

/* Empty / error */
.dt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 44px 16px;
  color: var(--muted);
  text-align: center;
}

.dt-empty svg {
  width: 34px;
  height: 34px;
  margin-bottom: 6px;
  padding: 10px;
  border-radius: 14px;
  background: var(--panel-2);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  box-sizing: content-box;
}

.dt-empty strong {
  color: var(--text);
  font-size: 15px;
}

.dt-empty.is-error svg {
  background: var(--fail-bg);
  color: var(--fail);
}

/* Mobile: one card per domain */
@media (max-width: 700px) {
  .domain-table thead {
    display: none;
  }

  .domain-table,
  .domain-table tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }

  .domain-table tbody tr:not(.dt-empty-row) {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    padding: 14px 14px 14px 50px;
    border-bottom: 1px solid var(--border);
  }

  .domain-table tbody tr:not(.dt-empty-row) td {
    padding: 0;
    border: 0;
    background: transparent !important;
    box-shadow: none !important;
  }

  .domain-table tbody tr:has(.domain-check:checked) {
    background: color-mix(in srgb, var(--primary) 7%, var(--panel));
    box-shadow: inset 3px 0 0 var(--primary);
  }

  .domain-table tbody td.checkbox-col {
    position: absolute;
    top: 22px;
    left: 16px;
    width: auto;
  }

  .domain-table tbody td.domain-name {
    grid-column: 1 / -1;
  }

  .domain-table tbody td[data-label]:not(.domain-name)::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .domain-table tbody tr.dt-empty-row,
  .domain-table tbody tr.dt-empty-row td {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}

/* =====================================================================
   DESIGN_UNIFY_V1: one visual language across Domains, Projects,
   Deployments, AMP and Tim.
   ===================================================================== */

/* --- Sidebar: hide placeholders, global theme toggle --- */
.sidebar nav a.disabled {
  display: none;
}

#themeBtn.icon-btn-labelled .icon {
  width: 17px;
  height: 17px;
}

/* --- Page headers --- */
header h1,
.pm-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.025em;
}

header p:not(.sync-info),
.pm-subtitle {
  color: var(--muted);
  font-size: 14.5px;
}

/* --- Metric cards (Domains, Projects, Deployments) --- */
.stats .card span,
.pm-metric > span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .01em;
}

.stats .card strong,
.pm-metric > strong {
  display: block;
  margin-top: 6px;
  color: var(--text) !important;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.pm-metric > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

/* --- Panel / section titles --- */
.pm-panel-head h3,
.pm-latest .pm-panel-head h3,
#pm-control-title,
.pm-history h3,
.q-head h2,
.act-head h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}

/* --- "Updated automatically" indicators --- */
#pm-connection,
#amp-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

#pm-connection::before,
#amp-status::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent);
  animation: live-pulse 2.4s ease-in-out infinite;
  will-change: opacity;
}

#amp-status.amp-error::before {
  background: var(--fail);
  animation: none;
}

#amp-status.amp-error {
  color: var(--fail);
}

/* PERF_V2: opacity only, so the browser animates it on the GPU without
 * recalculating styles 60 times a second (was a box-shadow pulse). */
@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* --- Tables: same look as the Domains table --- */
:is(.pm-table-wrap) table {
  border-collapse: separate;
  border-spacing: 0;
}

:is(.pm-table-wrap) table thead th {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: left;
}

:is(.pm-table-wrap) table tbody td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-size: 13.5px;
  vertical-align: middle;
  transition: background-color .12s ease;
}

:is(.pm-table-wrap) table tbody tr:last-child td {
  border-bottom: 0;
}

:is(.pm-table-wrap) table tbody tr:hover td {
  background: var(--panel-2);
}

:is(.pm-table-wrap) table tbody td a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

:is(.pm-table-wrap) table tbody td a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Team usernames and AMP domains read like the Domains names */
.team-table .team-name,
.amp-domain {
  font-size: 14.5px !important;
  font-weight: 650 !important;
}

/* --- Small labelled tiles (project infrastructure details) --- */
.pm-cc-detail-item {
  border-radius: 12px !important;
}

.pm-cc-detail-label {
  color: var(--muted);
  font-size: 11.5px !important;
  font-weight: 600;
}

.pm-cc-detail-value {
  font-size: 14px !important;
}

/* --- Modals: sticky header/footer, scrolling body --- */
.modal {
  display: flex;
  flex-direction: column;
  overflow: hidden !important;
}

.modal > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1;
}

.modal .modal-body {
  min-height: 0;
  overflow-y: auto;
}

.modal .modal-footer {
  flex: none;
  border-top: 1px solid var(--border);
  background: var(--panel);
}

/* File pickers */
.modal input[type="file"] {
  width: 100%;
  padding: 6px;
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  background: var(--panel-2);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.modal input[type="file"]:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.modal input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 1px solid var(--primary);
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}













@media (prefers-reduced-motion: reduce) {
  #pm-connection::before,
#amp-status::before { animation: none; }
}

#amp-status {
  display: flex;
  padding: 12px 16px;
}



/* GROUP_ICON_V1 */
.gicon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  object-fit: cover;
  vertical-align: -3px;
}

.gicon-fallback {
  background: hsl(var(--dt-h) 55% 90%);
  color: hsl(var(--dt-h) 45% 30%);
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

body.dark .gicon-fallback {
  background: hsl(var(--dt-h) 30% 22%);
  color: hsl(var(--dt-h) 60% 80%);
}

.gicon-sm {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  font-size: 9px;
  vertical-align: -2px;
}

.gicon-lg {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 14px;
}

.seg-btn > .gicon {
  margin-right: 1px;
}

.gm-row {
  justify-content: flex-start;
}

.gm-row .gm-info {
  flex: 1;
}



















/* DOMAIN_NAME_UNIFY_V1: one size for domain names in every list/table,
 * and identical list panels on Proyek and Deploy. */
.domain-table .dt-name,
.amp-domain,
.team-table .team-name,
#pm-project-list .pm-project-item-top strong {
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 20px !important;
  letter-spacing: normal !important;
}

#pm-title {
  font-size: 21px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em !important;
}










/* PROJECT_GROUP_FILTER_V1: wrapping chip row under the page title */
#pm-root .pm-group-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: none;
  margin: 2px 0 16px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

#pm-root .pm-group-filter .seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 34px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

#pm-root .pm-group-filter .seg-btn:hover {
  border-color: var(--border-strong);
  background: var(--panel-2);
}

#pm-root .pm-group-filter .seg-btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

#pm-root .pm-group-filter .seg-btn[aria-pressed="true"] .seg-count {
  background: var(--primary);
  color: #fff;
}

#pm-root .pm-group-filter .seg-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--ring);
}

body.dark #pm-root .pm-group-filter .seg-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--primary) 22%, var(--panel));
}

@media (max-width: 900px) {
  #pm-root .pm-group-filter .seg-btn {
    flex: none;
  }
}













/* METRICS_UNIFY_V1: identical stat cards on Domain, Proyek and Deploy */
.stats .card strong,
.pm-metric > strong {
  font-family: var(--font) !important;
  font-variant-numeric: normal !important;
}

.pm-metric > small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-metric {
  min-height: 120px;
}

/* =====================================================================
   UI_TOKENS_V1: one value per component on every page.
   ===================================================================== */

/* Vertical rhythm: the visible page root stacks its blocks 18px apart */
main.main,
#pm-root,
#amp-root,
#team-root,
#buy-root,
#rd-root,
#sl-root,
#pt-root,
#ic-root {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

main.main > *,
#pm-root > *,
#amp-root > *,
#team-root > *,
#buy-root > *,
#rd-root > *,
#sl-root > *,
#pt-root > *,
#ic-root > * {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

main.main > [hidden],
main.main > [data-pm-hidden="true"],
main.main > [data-amp-hidden="true"],
main.main > [data-team-hidden="true"],
main.main > [data-buy-hidden="true"],
main.main > [data-rd-hidden="true"],
main.main > [data-gsc-hidden="true"],
main.main > [data-pt-hidden="true"],
main.main > [data-ic-hidden="true"] {
  display: none !important;
}

#pm-root[hidden],
#amp-root[hidden],
#team-root[hidden],
#buy-root[hidden],
#rd-root[hidden],
#sl-root[hidden],
#pt-root[hidden],
#ic-root[hidden] {
  display: none !important;
}

/* Page header */
main h1,
.pm-header h1 {
  margin: 0 !important;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

header p:not(.sync-info),
.pm-subtitle {
  margin: 6px 0 0 !important;
  max-width: 80ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}

/* Panels: 16px outside, 12px for panels nested in a panel */
.panel,
.pm-panel,
.q-panel {
  border-radius: 16px;
}

.pm-detail .pm-panel,
.pm-detail .pm-latest,
.pm-detail .pm-history {
  border-radius: 12px;
}

/* Panel heads and titles */
.pm-panel-head,
.q-head,
.act-head {
  padding: 15px 18px !important;
}

.pm-panel-head h3,
.q-head h2,
.act-head h3,
#pm-control-title,
#q-title,
.pm-history h3 {
  margin: 0;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  letter-spacing: -.01em;
}

/* Status badges: one pill everywhere */
.pm-badge,
.dt-status,
.q-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 9px !important;
  border-radius: 999px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 16.5px !important;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Search fields: one height (matches the dropdown triggers) */
:is(#pm-root, #rd-root, #sl-root, #pt-root, .toolbar) .ss-field.ss-field input[type="search"].ss-input,
#pm-root .pm-search-wrap .ss-field input.ss-input {
  height: 42px !important;
  min-height: 42px !important;
}

.toolbar .fs-trigger {
  height: 42px;
  min-height: 42px;
}

/* Tables */
table thead th {
  padding: 12px 16px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: .05em;
  text-transform: uppercase;
}

table tbody td {
  padding: 13px 16px !important;
  font-size: 13.5px !important;
}

table tbody td .pm-small,
table tbody td small {
  font-size: 12px !important;
}

/* "Updated" indicators: same line with a live dot */
.sync-info,
#pm-connection,
#amp-status {
  display: flex !important;
  align-items: center;
  gap: 8px;
  color: var(--muted) !important;
  font-size: 12.5px !important;
  font-weight: 500;
}

.sync-info:not(:empty)::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--live) 18%, transparent);
  animation: live-pulse 2.4s ease-in-out infinite;
  will-change: opacity;
}

.sync-info {
  margin-top: 8px !important;
}

/* FILTER_CHIPS_V1: AMP status and team people filters use the same chip
 * row as the Proyek group filter. */
#amp-filter,
#act-filter {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  max-width: none !important;
}

#amp-filter .seg-btn,
#act-filter .seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  min-height: 34px;
  padding: 5px 12px 5px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}

#amp-filter .seg-btn:hover,
#act-filter .seg-btn:hover {
  border-color: var(--border-strong);
  background: var(--panel-2);
}

#amp-filter .seg-btn[aria-pressed="true"],
#act-filter .seg-btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: none;
}

#amp-filter .seg-btn[aria-pressed="true"] .seg-count {
  background: var(--primary);
  color: #fff;
}

body.dark #amp-filter .seg-btn[aria-pressed="true"],
body.dark #act-filter .seg-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--primary) 22%, var(--panel));
}

#amp-root .amp-status {
  padding: 0 !important;
  border: 0 !important;
}

/* RENEW_OFF_PINK_V1: auto renew "Mati" stands out in pink/red */
.domain-table .renew-off {
  background: var(--fail-bg) !important;
  color: var(--fail) !important;
}

.renew-switch[aria-checked="false"] .renew-track {
  background: color-mix(in srgb, var(--fail) 38%, var(--fail-bg));
}

.renew-switch[aria-checked="false"] .renew-text {
  color: var(--fail) !important;
  font-weight: 650;
}

.renew-switch[aria-checked="true"] .renew-text {
  color: var(--live);
  font-weight: 650;
}

/* TABLE_UNIFY_V1: AMP and Tim tables in the Domain table style */
.dt-reg.role-admin i { background: var(--primary); }
.dt-reg.role-member i { background: var(--idle); }
.dt-reg.role-redirect { margin-left: 6px; }
.dt-reg.role-redirect i { background: var(--run); }
.dt-reg.zone-active i { background: var(--live); }
.dt-reg.zone-moved i,
.dt-reg.zone-deleted i { background: var(--fail); }
.dt-reg.zone-pending i,
.dt-reg.zone-initializing i { background: var(--wait); }

.amp-table .dt-domain,
.team-table .dt-domain {
  align-items: center;
}

.team-table .team-you {
  margin-left: 2px;
}

.amp-table td,
.team-table td {
  vertical-align: middle;
}

/* DOMAIN_PURCHASE_V1 */
[data-buy-hidden="true"] {
  display: none !important;
}

.buy-balance {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
}

.buy-balance strong {
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.buy-search {
  padding: 18px 20px;
}

.buy-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 13px;
}

.buy-search-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.buy-search-row textarea {
  flex: 1;
  min-height: 84px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.buy-search-row textarea:hover {
  border-color: var(--border-strong);
}

.buy-search-row textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.buy-search-row textarea::placeholder {
  color: var(--muted);
  opacity: .85;
}

.buy-search .pm-small {
  margin: 8px 0 0;
}



.buy-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.buy-table tr.is-picked td {
  background: var(--primary-soft);
}

.buy-money {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  white-space: nowrap;
}

.buy-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  white-space: normal;
}

.buy-warn {
  color: var(--wait);
}

.buy-summary {
  color: var(--muted);
  font-size: 13px;
}

.buy-summary strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

/* BUY_CART_CARD_V1: purchase summary card, same frame as the table card.
   Both lists share one fixed grid (name | price | action) so prices and
   buttons line up; the footer sticks to the bottom of the screen. */
.buy-cart-card { overflow: clip; }
.buy-cart > summary { list-style: none; }
.buy-cart > summary::-webkit-details-marker,
.buy-cart-skipped > summary::-webkit-details-marker { display: none; }
.buy-cart-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  cursor: pointer;
  user-select: none;
}
.buy-cart-head::before,
.buy-cart-skipped > summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .15s ease;
}
.buy-cart[open] > .buy-cart-head::before,
.buy-cart-skipped[open] > summary::before { transform: rotate(45deg); }
.buy-cart-title { font-size: 15px; font-weight: 700; color: var(--text); }
.buy-cart-count {
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.buy-cart-sec {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px 6px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.buy-cart-skipped > summary { list-style: none; cursor: pointer; user-select: none; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: 13px; padding-bottom: 10px; }
.buy-cart-skipped > summary:hover { color: var(--text); }
.buy-cart-skipped[hidden] { display: none; }
.buy-cart-list { margin: 0; padding: 0 18px; list-style: none; font-size: 13px; }
.buy-cart-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px 88px;
  align-items: center;
  column-gap: 14px;
  min-height: 42px;
  padding: 6px 0;
  border-top: 1px solid var(--border);
}
.buy-cart-list li:first-child { border-top: 0; }
.buy-cart-skipped .buy-cart-list { padding-bottom: 8px; }
.buy-cart-skipped .buy-cart-list li:first-child { border-top: 1px solid var(--border); }
.buy-cart-list li.buy-cart-empty { display: block; color: var(--muted); }
.buy-cart-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.buy-cart-list .dt-name { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.buy-cart-list .buy-money { text-align: right; }
.buy-cart-skipped li { color: var(--muted); }
.buy-cart-skipped li :is(.dt-name, .buy-money) { color: var(--muted); text-decoration: line-through; }
.buy-cart-btn {
  box-sizing: border-box;
  width: 100%;
  height: 28px;
  min-height: 0;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 26px;
  white-space: nowrap;
  cursor: pointer;
}
#buy-root .buy-cart-btn { background: transparent; color: var(--muted); border-color: var(--border); box-shadow: none; }
#buy-root .buy-cart-btn:hover { color: var(--danger, #c0392b); border-color: currentColor; }
#buy-root .buy-cart-btn.is-add { color: var(--primary); }
#buy-root .buy-cart-btn.is-add:hover { color: var(--primary); background: var(--primary-soft); }
/* BUY_TABLE_LAYOUT_V1: the footer is a page-level bar (a child of #buy-root),
   so it sticks to the bottom of the screen for the whole page, not only
   while the summary card is on screen; same width as the cards. */
#buy-root .buy-cart-foot {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .3);
}
#buy-root .buy-cart-foot[hidden] { display: none; }
.buy-cart-foot .buy-summary { font-size: 14px; color: var(--muted); }
.buy-cart-foot .buy-summary strong { font-size: 16px; }
.buy-cart-foot #buy-go { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Fixed columns: [badge + domain, ellipsis] | status 180 | price 120 right | action.
   20px inside the card on both sides; the trash button is the badge's size. */
#buy-root .buy-table { table-layout: fixed; width: 100%; min-width: 0; }
#buy-root .buy-table :is(th, td) { box-sizing: border-box; }
#buy-root .buy-table :is(th, td):first-child { padding-left: 20px; }
#buy-root .buy-table th:nth-child(2) { width: 180px; }
#buy-root .buy-table th:nth-child(3) { width: 120px; }
#buy-root .buy-table :is(th, td):nth-child(3) { text-align: right; padding-right: 16px; }
#buy-root .buy-table th:last-child { width: 76px; }
#buy-root .buy-table :is(th, td):last-child { padding-left: 0; padding-right: 20px; text-align: right; }
#buy-root .buy-table td:last-child button { width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; }
#buy-root .buy-table .dt-domain { display: flex; align-items: center; min-width: 0; }
#buy-root .buy-table .dt-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 900px) {
  #buy-root .buy-cart-foot { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .buy-cart-list { padding: 0 14px; }
  .buy-cart-list li { grid-template-columns: minmax(0, 1fr) 70px 78px; column-gap: 10px; }
  .buy-cart-head, .buy-cart-sec { padding-left: 14px; padding-right: 14px; }
  #buy-root .buy-cart-foot { padding: 10px 14px; }
  #buy-root .buy-table { min-width: 560px; }
}

/* BUY_SYNC_V1: "Baru dibeli" card, same frame and columns as the table */
.buy-bought-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.buy-bought-note { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.buy-bought-note a { color: var(--primary); font-weight: 600; text-decoration: none; }
.buy-bought-note a:hover { text-decoration: underline; }
/* the hide button is not a delete: neutral, not red */
#buy-root .pm-btn.buy-hide:hover:not(:disabled),
#buy-root .pm-btn.buy-hide:focus-visible { border-color: var(--muted); background: var(--panel-2); color: var(--text); }
/* the one-cell empty row is centred, not pushed right like the action column */
#buy-root .buy-table td.pm-empty { padding: 18px 20px; text-align: center; color: var(--muted); }

body.dark .buy-table tr.is-picked td {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

@media (max-width: 640px) {
  .buy-search-row { flex-direction: column; align-items: stretch; }
}

/* DOMAIN_SUGGEST_V1 */
.buy-suggest {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel-2);
}

.buy-suggest-head {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12.5px;
}

.buy-suggest-head:last-child {
  margin-bottom: 0;
}

.buy-suggest-head strong {
  color: var(--text);
}

.buy-suggest-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 8px;
}

.buy-chip {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.buy-chip i {
  grid-row: span 2;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-bg);
}

.buy-chip-name {
  min-width: 0;
  overflow: hidden;
  font-size: 13.5px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.buy-chip-name span {
  color: var(--muted);
}

.buy-chip-name b {
  font-weight: 700;
}

.buy-chip small {
  grid-column: 2;
  color: var(--live);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

#buy-root .buy-chip,
#buy-root .buy-chip:hover,
#buy-root .buy-chip:focus,
#buy-root .buy-chip:active {
  background: var(--panel) !important;
  color: var(--text) !important;
}

#buy-root .buy-chip.is-picked {
  background: var(--primary-soft) !important;
}

body.dark #buy-root .buy-chip.is-picked {
  background: color-mix(in srgb, var(--primary) 18%, transparent) !important;
}

.buy-chip.is-free:hover {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
  transform: translateY(-1px);
}

.buy-chip.is-picked {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.buy-chip.is-taken {
  cursor: default;
}

.buy-chip.is-taken .buy-chip-name,
.buy-chip.is-taken .buy-chip-name b {
  color: var(--muted);
}

/* Not available: pink dot, like auto renew "Mati". */
.buy-chip.is-taken i {
  background: var(--fail);
  box-shadow: 0 0 0 3px var(--fail-bg);
}

.buy-chip.is-taken small {
  color: var(--muted);
  font-weight: 500;
}

.buy-chip.is-taken .buy-chip-name {
  text-decoration: line-through;
  text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent);
}

body.dark .buy-chip.is-picked {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.buy-spin {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid var(--border-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: buy-spin .8s linear infinite;
}

@keyframes buy-spin {
  to { transform: rotate(360deg); }
}

.buy-table th:last-child,
.buy-table td.buy-del {
  width: 52px;
  text-align: right;
}

#buy-root .buy-chip:disabled {
  opacity: 1 !important;
}

/* GNAME_V1: the Gname card appears once Gname has domains. */
.stats .card[hidden] { display: none !important; }
.stats:has(#gnameDomains) { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* FORM_DIALOG_FIELDS_V1 */
.fd-field[hidden] { display: none !important; }

.fd-dialog textarea.cd-input {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
  line-height: 1.5;
  font-weight: 500;
  resize: vertical;
}

.fd-check {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.fd-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  accent-color: var(--primary);
  flex: none;
}

.fd-check > span {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fd-check strong {
  font-size: 13px;
  font-weight: 600;
}

.fd-dialog .cd-card {
  max-height: calc(100vh - 48px);
  overflow-y: auto;
}

/* FIT_SCREEN_V1: long forms in two columns on wide screens; the buttons stick
   to the bottom of the popup so they are always visible, also on a phone */
@media (min-width: 760px) {
  .fd-dialog.fd-wide { width: min(760px, calc(100vw - 32px)); }
  .fd-dialog.fd-wide .cd-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    align-content: start;
  }
  .fd-dialog.fd-wide .cd-card > :not(.fd-field),
  .fd-dialog.fd-wide .fd-span { grid-column: 1 / -1; }
}
.fd-dialog .cd-actions {
  position: sticky;
  bottom: -24px;
  z-index: 1;
  margin: 2px -28px -24px;
  padding: 14px 28px 24px;
  border-top: 1px solid var(--border);
  background: var(--panel);
}
.cd-message, .fd-help { overflow-wrap: anywhere; }   /* long URLs wrap instead of scrolling sideways */
@media (max-width: 640px) {
  .fd-dialog { max-height: calc(100dvh - 16px); }
  .fd-dialog .cd-card { gap: 8px; padding: 20px 18px 18px; max-height: calc(100dvh - 16px); }
  .fd-dialog .cd-actions { bottom: -18px; margin: 2px -18px -18px; padding: 10px 18px 18px; }
  .fd-dialog .cd-title { font-size: 18px; }
  .fd-dialog .fd-field { gap: 4px; font-size: 12.5px; }
  .fd-dialog .cd-input { height: 38px; }
  .fd-dialog textarea.cd-input { min-height: 68px; }
  .fd-dialog .fd-check { padding: 7px 10px; }
  .fd-dialog .fd-help { font-size: 11.5px; line-height: 1.35; }
  .fd-dialog .cd-btn { height: 42px; }
}

/* REDIRECTS_V1 */
[data-rd-hidden="true"] { display: none !important; }

.rd-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.rd-search-wrap {
  flex: 1 1 320px;
  max-width: 460px;
}

:is(#rd-root, #gsc-root, #sl-root, #pt-root) .rd-chips {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  max-width: none !important;
}

:is(#rd-root, #gsc-root, #sl-root, #pt-root) .rd-chips .seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 5px 12px 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
}

:is(#rd-root, #gsc-root, #sl-root, #pt-root) .rd-chips .seg-btn:hover {
  border-color: var(--border-strong);
  background: var(--panel-2);
}

:is(#rd-root, #gsc-root, #sl-root, #pt-root) .rd-chips .seg-btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary);
}

:is(#rd-root, #gsc-root, #sl-root, #pt-root) .rd-chips .seg-btn[aria-pressed="true"] .seg-count {
  background: var(--primary);
  color: #fff;
}

body.dark :is(#rd-root, #gsc-root, #sl-root, #pt-root) .rd-chips .seg-btn[aria-pressed="true"] {
  background: color-mix(in srgb, var(--primary) 22%, var(--panel));
}

.rd-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.rd-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  font-size: 13.5px;
}

.rd-note > div { flex: 1; }
.rd-note .pm-btn { margin-left: auto; }
.rd-warn { border-color: color-mix(in srgb, var(--wait) 40%, var(--border)); background: var(--wait-bg); color: var(--wait); }
.rd-bad { border-color: color-mix(in srgb, var(--fail) 40%, var(--border)); background: var(--fail-bg); color: var(--fail); }
.rd-wait { color: var(--muted); }
.rd-ok { color: var(--muted); }

.rd-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-bg);
}

.rd-table td { vertical-align: middle; }
.rd-table td.rd-actions { white-space: nowrap; text-align: right; overflow: visible; text-overflow: clip; }
.rd-actions { display: table-cell; }
.rd-actions .pm-btn + .pm-btn { margin-left: 4px; }
.rd-table { table-layout: fixed; width: 100%; }
.rd-table th:nth-child(1) { width: 24%; }
.rd-table th:nth-child(2) { width: 14%; }
.rd-table th:nth-child(3) { width: 21%; }
.rd-table th:nth-child(4) { width: 13%; }
.rd-table th:nth-child(5) { width: 12%; }
.rd-table th:nth-child(6) { width: 200px; }
.rd-table td { overflow: hidden; text-overflow: ellipsis; }
.rd-table .dt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.rd-target {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
}

.rd-target:hover { color: var(--primary); text-decoration: underline; }
.rd-parking { color: var(--run); font-weight: 600; }
.rd-sub { margin: 2px 0 0 42px; }
.rd-msg { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-reg.rd-group i { background: var(--primary); }

@media (max-width: 900px) {
  .rd-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* PERF: Redirect list loads 100 rows at a time */
.rd-more { padding: 10px 18px; text-align: center; }
.rd-more:empty { display: none; }

/* TRAILING_SLASH_TOGGLE_V1: AMP trailing slash switch in the package dialog
 * (replaces the STAGE6J3/J4/J5 patches). */

/* AMP_URL_PREVIEW_V1 */
.amp-preview {
  white-space: pre-line;
  margin: 6px 0 0;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--panel-2);
  color: var(--muted);
  font-size: 12.5px;
  word-break: break-all;
}
.amp-preview:empty { display: none; }

/* CANONICAL_INFO_V1 */
.pm-canon-line {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.pm-canon-line a {
  color: var(--primary);
  font-weight: 600;
  word-break: break-all;
}

/* JOB_LOG_V1 */
.cd-dialog.job-log-dialog { width: min(760px, calc(100vw - 32px)); }
.job-log-dialog .cd-card { gap: 12px; }
.job-log-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.job-log-head .cd-title { margin: 0; }
.job-log-list { display: flex; flex-direction: column; gap: 10px; }
.job-log-item { padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.job-log-item p { margin: 6px 0 0; font-size: 13px; }
.job-log-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.job-log-error { color: var(--fail); word-break: break-word; }
.job-log-item pre { max-height: 240px; overflow: auto; font-size: 11.5px; background: var(--panel-2); padding: 8px; border-radius: 8px; }
.pm-log-cell { width: 1%; text-align: right; }

/* PROJECT_CONTENTS_V1 (design v2) */
.pm-contents { margin-top: 16px; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel-2); }
.pm-contents-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.pc-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pc-title strong { font-size: 15px; letter-spacing: -.01em; }
.pc-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pc-flag, .pc-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; }
.pc-flag { padding: 3px 9px; border-radius: 999px; }
.pc-flag i, .pc-state i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.pc-flag.is-busy, .pc-state.is-busy { color: var(--wait); }
.pc-flag.is-busy { background: var(--wait-bg); }
.pc-flag.is-fail { color: var(--fail); background: var(--fail-bg); }
.pc-state.is-live { color: var(--live); }
.pc-state.is-busy i, .pc-flag.is-busy i { animation: pc-pulse 1.2s ease-in-out infinite; }
@keyframes pc-pulse { 50% { opacity: .3; } }
.pc-tools { display: flex; align-items: center; gap: 8px; }
.pc-add { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--primary); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, transform .15s; }
.pc-add:hover { background: var(--primary-hover); }
.pc-add:active { transform: translateY(1px); }
.pc-add svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pc-more { position: relative; }
.pc-more > .icon-btn svg circle { fill: currentColor; stroke: none; }
.pc-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 250px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow-pop); }
.pc-menu button { display: flex; align-items: flex-start; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pc-menu button:hover { background: var(--fail-bg); }
.pc-menu button span { display: flex; flex-direction: column; gap: 2px; }
.pc-menu small { color: var(--muted); font-size: 12px; }
.pc-menu-danger { color: var(--fail) !important; }
.pc-menu svg { width: 17px; height: 17px; margin-top: 1px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-list { display: grid; gap: 10px; }
.pc-card { padding: 14px 14px 10px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); box-shadow: 0 1px 2px rgba(10, 30, 26, .04); transition: border-color .15s, box-shadow .15s; }
.pc-card:hover { border-color: var(--border-strong); box-shadow: 0 6px 18px rgba(10, 30, 26, .07); }
.pc-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.pc-path { padding: 4px 10px; border-radius: 8px; background: var(--primary-soft); color: var(--primary); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; font-weight: 700; }
.pc-state { color: var(--muted); font-weight: 500; }
.pc-state.is-live { font-weight: 600; }
.pc-deploy { margin-left: auto; }
.pc-link { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 2px 0; border-top: 1px dashed var(--border); }
.pc-kind { width: 46px; flex: none; padding: 2px 0; border-radius: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-align: center; }
.pc-kind-main { background: var(--run-bg); color: var(--run); }
.pc-kind-amp { background: var(--wait-bg); color: var(--wait); }
.pc-url { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.pc-url:hover { color: var(--primary); text-decoration: underline; }
.pc-noamp { color: var(--muted); font-size: 13px; }   /* NO_AMP_V1 */
.pc-amp-type { flex: none; padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 11px; }
.pc-link-tools { display: flex; gap: 2px; margin-left: auto; flex: none; }
.pc-mini { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.pc-mini:hover { background: var(--primary-soft); color: var(--primary); }
.pc-mini svg, .pc-mini .ib-svg { flex: none; width: 15px !important; height: 15px !important; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pc-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px 16px; border: 1.5px dashed var(--border-strong); border-radius: 14px; background: var(--panel); text-align: center; }
.pc-empty-icon { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; }
.pc-empty-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc-empty strong { font-size: 14.5px; }
.pc-empty p { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
@media (max-width: 640px) {
  .pm-contents { padding: 12px; }
  .pc-card-head { flex-wrap: wrap; }
  .pc-state { order: 3; width: 100%; }
  .pc-amp-type { display: none; }
  .pc-mini { width: 36px; height: 36px; }
  .pm-contents-head { gap: 10px; }
  .pc-tools { width: 100%; }
  .pc-add { flex: 1; justify-content: center; }
}
.pm-detail-head > div:has(> #pm-contents) { min-width: 0; flex: 1 1 auto; }
.pm-contents, .pc-list, .pc-card, .pc-link { min-width: 0; max-width: 100%; }
@media (max-width: 640px) {
  .pm-detail-head:has(#pm-contents) { flex-wrap: wrap; }
  .pm-detail-head > div:has(> #pm-contents) { flex-basis: 100%; }
}

/* PROJECT_ACTIONS_MENU_V1 */
.pc-menu-sep { height: 1px; margin: 4px 6px; background: var(--border); }
.pc-menu button:not(.pc-menu-danger):hover { background: var(--primary-soft); }
.pc-menu button svg { width: 17px !important; height: 17px !important; }
.modal-backdrop.as-page { align-items: flex-start; padding: 24px 24px 40px; overflow-y: auto; }
.modal-backdrop.as-page .bulk-modal { width: min(980px, 100%); max-height: none; overflow: visible; animation: pc-drop .18s ease-out; }
@keyframes pc-drop { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .modal-backdrop.as-page { padding: 0; } .modal-backdrop.as-page .bulk-modal { border-radius: 0; min-height: 100%; } }
#q-toggle[hidden], #pm-root .pm-actions[hidden] { display: none !important; }

.dt-reg.role-shortlink { margin-left: 6px; }
.dt-reg.role-shortlink i { background: var(--live); }
/* PAGE_ACCESS_V1 */
.dt-reg.role-projects, .dt-reg.role-amp, .dt-reg.role-gsc, .dt-reg.role-pemantau, .dt-reg.role-buy { margin-left: 6px; }
.dt-reg.role-buy i { background: var(--pm-amber); }   /* AUDIT_F01_V1 */
.dt-reg.role-pemantau i { background: var(--muted); }
.dt-reg.role-projects i { background: var(--run); }
.dt-reg.role-amp i { background: var(--wait); }
.dt-reg.role-gsc i { background: var(--live); }
.sidebar nav [data-nav="projects"][hidden], #createProjectBtn[hidden] { display: none !important; }

/* CONFIRM_COPY_V1 */
.cd-type-hint .cd-copy-code { cursor: pointer; border-radius: 6px; transition: background .15s, color .15s, box-shadow .15s; }
.cd-type-hint .cd-copy-code:hover, .cd-type-hint .cd-copy-code:focus-visible { box-shadow: 0 0 0 2px var(--ring); outline: none; }
.cd-type-hint .cd-copy-code.is-done { background: var(--live-bg) !important; color: var(--live) !important; }
.cd-type-hint .cd-copy-code.is-done::after { content: " ✓ disalin"; font-family: var(--font); font-weight: 600; }

/* ===================== UI_POLISH_V1 =====================
 * One consistent look across pages: full-width project detail, equal card
 * titles, a bottom tab bar on phones, tidy stat grids and filter chips. */

/* Project detail: status badge in the corner, content spans the card. */
.pm-detail-head { position: relative; display: block; }
.pm-detail-head > #pm-status { position: absolute; top: 20px; right: 20px; }
.pm-detail-head #pm-title { padding-right: 110px; }
.pm-detail-head > div:has(> #pm-contents) { min-width: 0; }

/* Same title size for every card heading. */
.pm-latest h3, .pm-panel h3, .pm-history h3, #q-title, .pc-title strong {
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
}

@media (max-width: 900px) {
  /* Top bar: brand left, account buttons right. */
  .sidebar { justify-content: space-between; padding: 10px 16px; }
  .sidebar .brand { display: flex !important; align-items: center; gap: 10px; margin: 0; padding: 0; }
  .sidebar .brand > div:last-child { display: block !important; }
  .sidebar .brand small { display: none; }
  .sidebar .brand-icon { width: 34px; height: 34px; }

  /* Bottom tab bar with every page, always visible. */
  .sidebar nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    gap: 2px; overflow: visible;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--sidebar);
    border-top: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 -10px 30px rgba(5, 20, 17, .22);
  }
  .sidebar nav a {
    flex-direction: column; justify-content: center; align-items: center;
    gap: 4px; min-width: 0; padding: 7px 2px; border-radius: 10px;
    font-size: 10.5px; line-height: 1.15; text-align: center; white-space: nowrap;
  }
  .sidebar nav a .icon { width: 21px; height: 21px; margin: 0; }
  .sidebar nav a.active::before,
  .sidebar nav a[aria-current="page"]::before {
    top: -6px; bottom: auto; left: 28%; right: 28%; width: auto; height: 3px;
    border-radius: 0 0 3px 3px;
  }
  .main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom)) !important; }

  /* An odd last stat card fills the row instead of hanging alone. */
  .stats .card:last-child:nth-child(odd),
  .pm-metric:last-child:nth-child(odd) { grid-column: 1 / -1; border-left: 0; }

  /* Filter chips: one swipeable row, every chip its natural width. */
  .rd-chips { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
    margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .rd-chips::-webkit-scrollbar { display: none; }
  .rd-chips > * { flex: none !important; }

  .pm-detail-head > #pm-status { top: 16px; right: 16px; }
}

/* AMP_TABLE_FIT_V1: the AMP list always fits the page (no sideways
   scrolling): columns share the width and long names wrap; below 900px
   the rows become cards below 1180px. */
#amp-root .pm-table-wrap { overflow-x: visible; }
#amp-root .amp-table { min-width: 0 !important; width: 100%; table-layout: fixed; }
#amp-root .amp-table th:nth-child(1) { width: 31%; }
#amp-root .amp-table th:nth-child(2) { width: 12%; }
#amp-root .amp-table th:nth-child(3) { width: 14%; }
#amp-root .amp-table th:nth-child(4) { width: 22%; }
#amp-root .amp-table th:nth-child(5) { width: 12%; }
#amp-root .amp-table th:nth-child(6) { width: 104px; }
#amp-root .amp-table td { white-space: normal !important; overflow-wrap: break-word; }
#amp-root .amp-table :is(.amp-domain, .amp-domain a, .amp-sub, .dt-domain) { white-space: normal !important; overflow-wrap: anywhere; min-width: 0; }
#amp-root .amp-table .amp-del-cell { text-align: right; }

@media (max-width: 1180px) {
  #amp-root .amp-table thead { display: none; }
  #amp-root .amp-table { table-layout: auto; }
  #amp-root .amp-table td:has(> .dt-muted:only-child) { display: none !important; }
  #amp-root .amp-table, #amp-root .amp-table tbody, #amp-root .amp-table tr, #amp-root .amp-table td { display: block; width: 100%; }
  #amp-root .amp-table tr { position: relative; padding: 14px 16px; border-top: 1px solid var(--border); }
  #amp-root .amp-table tr:first-child { border-top: 0; }
  #amp-root .amp-table td { padding: 3px 0 3px 46px !important; border: 0 !important; }
  #amp-root .amp-table td:first-child { padding: 0 96px 6px 0 !important; }
  #amp-root .amp-table td:last-child { position: absolute; top: 14px; right: 14px; width: auto; padding: 0 !important; }
}

@media (max-width: 640px) {
  /* AMP sites as cards on phones (no sideways scrolling). */
  .amp-table thead { display: none; }
  .amp-table { min-width: 0 !important; table-layout: auto; }
  .amp-table td:has(> .dt-muted:only-child) { display: none !important; }
  .amp-table, .amp-table tbody, .amp-table tr, .amp-table td { display: block; width: 100%; }
  .amp-table tr { position: relative; padding: 14px 16px; border-top: 1px solid var(--border); }
  .amp-table tr:first-child { border-top: 0; }
  .amp-table td { padding: 3px 0 3px 46px !important; border: 0 !important; white-space: normal; }
  .amp-table td:first-child { padding: 0 52px 6px 0 !important; }
  .amp-table td:last-child { position: absolute; top: 14px; right: 14px; width: auto; padding: 0 !important; }

  /* Domain search: a full-width button under the box. */
  #buy-check { width: 100%; }
}

/* ===================== REDIRECT_DESIGN_V2 ===================== */
.rd-add-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
  border: 0; border-radius: 11px; background: var(--primary); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--primary) 28%, transparent);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.rd-add-btn:hover { background: var(--primary-hover); box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 34%, transparent); }
.rd-add-btn:active { transform: translateY(1px); }
.rd-add-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }

/* Sync state: a quiet line under the title; problems stay banners. */
#rd-root .rd-engine { margin: -6px 0 18px; }
#rd-root .rd-note.rd-ok, #rd-root .rd-note.rd-wait { padding: 0; border: 0; background: none; font-size: 13px; }

/* Stats with meaning-coloured numbers and a hint line. */
#rd-root .rd-metrics .pm-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
#rd-root .rd-m-live strong { color: var(--live); }
#rd-root .rd-m-park strong { color: var(--run); }
#rd-root .rd-m-bad strong { color: var(--muted); }
#rd-root .rd-m-bad.has-problem strong { color: var(--fail); }

/* Search and filters in one panel. */
.rd-filters {
  display: grid; gap: 14px; margin-bottom: 18px; padding: 16px;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--panel);
}
.rd-filters .rd-toolbar { margin: 0; }
#rd-root .rd-search-wrap .ss-field { width: 100%; }
.rd-filter-row { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--border); }
.rd-filter-label { flex: none; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
:is(#rd-root, #gsc-root, #sl-root, #pt-root) .rd-chips .seg-btn { min-height: 32px; padding: 4px 11px; font-size: 12.5px; }
.rd-vdot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.rd-vdot-live { background: var(--live); } .rd-vdot-park { background: var(--run); } .rd-vdot-off { background: var(--idle); }
.rd-vdot-wait { background: var(--wait); } .rd-vdot-warn { background: #e8890c; } .rd-vdot-bad { background: var(--fail); }

/* Group icons. */
.rd-gicon { width: 22px; height: 22px; flex: none; border-radius: 6px; object-fit: cover; }
.rd-gicon-sm { width: 18px; height: 18px; border-radius: 5px; }
.rd-gicon-letter {
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800;
  background: hsl(var(--dt-h) 70% 92%); color: hsl(var(--dt-h) 45% 32%);
}
body.dark .rd-gicon-letter { background: hsl(var(--dt-h) 30% 22%); color: hsl(var(--dt-h) 60% 78%); }

/* Table: calmer, denser rows. */
#rd-root .rd-panel { overflow: hidden; }
#rd-root .rd-table td { padding-top: 11px; padding-bottom: 11px; }
#rd-root .rd-table tbody tr { transition: background .12s; }
#rd-root .rd-table tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
#rd-root .rd-row-off .rd-c-domain, #rd-root .rd-row-off .rd-c-target { opacity: .55; }
.rd-domain-text { display: flex; flex-direction: column; min-width: 0; }
#rd-root .rd-sub { margin: 1px 0 0; }
.rd-group { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-width: 0; }
.rd-group > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-target-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rd-target-line .rd-target { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.rd-code {
  flex: none; min-width: 34px; padding: 2px 6px; border-radius: 6px; text-align: center;
  background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 800; letter-spacing: .02em;
}
.rd-code-park { min-width: 22px; background: var(--run-bg); color: var(--run); }
.rd-flags { display: flex; gap: 4px; margin-top: 5px; }
.rd-flag { padding: 1px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 11px; }

/* Row actions: quiet icons that light up on hover. */
#rd-root .rd-actions .pm-btn {
  width: 34px; height: 34px; border-color: transparent; background: transparent; color: var(--muted);
  box-shadow: none;
}
#rd-root .rd-actions .pm-btn:hover { background: var(--primary-soft); color: var(--primary); }
#rd-root .rd-actions .pm-btn.icon-del:hover { background: var(--fail-bg); color: var(--fail); }
#rd-root .rd-table th:nth-child(6) { width: 160px; }
#rd-root .rd-more { padding: 12px 16px; text-align: center; }

@media (max-width: 900px) {
  .rd-filters { padding: 12px; }
  .rd-filter-row { flex-direction: column; align-items: stretch; gap: 8px; }
  .rd-filters .rd-chips { margin-left: -12px !important; margin-right: -12px !important; padding: 2px 12px !important; }
  #rd-root .rd-search-wrap { flex: 1 1 100%; max-width: none; min-width: 0; }
  #rd-root .rd-toolbar { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  #rd-root .rd-filters, #rd-root .rd-filters > *, #rd-root .rd-filters .rd-chips { min-width: 0; }
}

/* Phones: every redirect as a card. */
@media (max-width: 640px) {
  #rd-root .rd-table thead { display: none; }
  #rd-root .rd-table, #rd-root .rd-table tbody { display: block; width: 100%; min-width: 0 !important; }
  #rd-root .rd-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px;
    padding: 14px 14px 10px; border-top: 1px solid var(--border);
  }
  #rd-root .rd-table tr:first-child { border-top: 0; }
  #rd-root .rd-table td { display: block; padding: 0 !important; border: 0 !important; width: auto; min-width: 0; }
  #rd-root .rd-c-domain { grid-column: 1; grid-row: 1; }
  #rd-root .rd-c-state { grid-column: 2; grid-row: 1; text-align: right; }
  #rd-root .rd-c-state .pm-small { display: none; }
  #rd-root .rd-c-target { grid-column: 1 / -1; grid-row: 2; padding-left: 42px !important; }
  #rd-root .rd-c-group { grid-column: 1; grid-row: 3; align-self: center; padding-left: 42px !important; }
  #rd-root .rd-c-exp { grid-column: 2; grid-row: 3; text-align: right; }
  #rd-root .rd-c-exp .dt-exp { align-items: flex-end; }
  #rd-root .rd-table td.rd-actions {
    grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 2px;
    margin-top: 4px; padding-top: 6px !important; border-top: 1px dashed var(--border) !important;
  }
  #rd-root .rd-table td[colspan] { grid-column: 1 / -1; }
}

/* ACTIVITY_KINDS_V1: second filter row (kind of action) under the header. */
.act-kinds {
  display: flex !important; flex-wrap: nowrap; gap: 6px; padding: 10px 18px !important;
  border: 0 !important; border-bottom: 1px solid var(--border) !important; border-radius: 0 !important;
  background: var(--panel-2) !important; box-shadow: none !important;
}
.act-kinds .seg-btn {
  flex: none; min-height: 30px; padding: 4px 11px; border: 1px solid var(--border); border-radius: 999px;
  background: var(--panel); color: var(--text); font-size: 12.5px; font-weight: 600; box-shadow: none;
}
.act-kinds .seg-btn[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }
.act-kinds .act-kind-failed[aria-pressed="true"] { border-color: var(--fail); background: var(--fail-bg); color: var(--fail); }

/* ===================== DOMAIN_DESIGN_V2 ===================== */
.stats .card small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.stats .card:nth-child(2) strong { color: var(--live); }

.domain-table tbody td { padding-top: 11px; padding-bottom: 11px; }
.domain-table tbody tr { transition: background .12s; }
.domain-table tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }

/* Phones: compact cards — domain + status, registrar + expiry, auto renew. */
@media (max-width: 640px) {
  .domain-table tbody tr {
    display: grid !important; grid-template-columns: 20px minmax(0, 1fr) auto !important; gap: 8px 12px;
    align-items: center; padding: 14px 14px 12px !important;
  }
  .domain-table tbody td { display: block !important; padding: 0 !important; border: 0 !important; min-width: 0; }
  .domain-table tbody td::before { display: none !important; content: none !important; }
  .domain-table, .domain-table tbody { display: block; width: 100%; min-width: 0 !important; }
  .domain-table tbody td.checkbox-col { position: static !important; grid-column: 1; grid-row: 1; width: auto !important; display: flex !important; align-items: center; align-self: center; }
  .domain-table tbody td.checkbox-col input { margin: 0 !important; position: static !important; top: auto !important; transform: none !important; }
  .domain-table tbody td.domain-name .dt-domain { min-width: 0; max-width: 100%; }
  .domain-table tbody td.domain-name .dt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .domain-table tbody td.domain-name { grid-column: 2; grid-row: 1; }
  .domain-table tbody td[data-label="Status"] { grid-column: 3; grid-row: 1; }
  .domain-table tbody td[data-label="Registrar"] { grid-column: 2; grid-row: 2; }
  .domain-table tbody td[data-label="Kedaluwarsa"] { grid-column: 3; grid-row: 2; text-align: right; }
  .domain-table tbody td[data-label="Kedaluwarsa"] .dt-exp { align-items: flex-end; }
  .domain-table tbody td[data-label="Perpanjangan otomatis"] {
    grid-column: 2 / -1; grid-row: 3; display: flex !important; align-items: center; gap: 8px;
    padding-top: 8px !important; border-top: 1px dashed var(--border) !important;
  }
  .domain-table tbody td[data-label="Perpanjangan otomatis"]::after { content: "Perpanjangan otomatis"; order: -1; flex: 1; color: var(--muted); font-size: 12px; }
  .domain-table tbody td[colspan] { grid-column: 1 / -1; }
}

/* DOMAIN_USAGE_V1 */
.dt-use { display: inline-flex; align-items: center; margin: 2px 4px 2px 0; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.dt-use-project { background: var(--primary-soft); color: var(--primary); }
.dt-use-redirect { background: var(--run-bg); color: var(--run); }
.dt-use-amp { background: var(--wait-bg); color: var(--wait); }
.dt-use-shortlink { background: var(--live-bg); color: var(--live); }
.dt-use-spendwatch { background: #ece5fd; color: #4a2b96; } /* SW_USAGE_V1 */
.dt-use-none { background: transparent; border: 1px dashed var(--border-strong); color: var(--muted); font-weight: 600; }
@media (max-width: 640px) {
  .domain-table tbody td[data-label="Dipakai untuk"] { grid-column: 2 / -1; grid-row: 3; }
  .domain-table tbody td[data-label="Perpanjangan otomatis"], .domain-table tbody td[data-label="Perpanjangan otomatis"] { grid-row: 4 !important; }
}

/* DARK_FIX_V1: the global dark-mode button text colour (#06201a, meant for
 * light-green primary buttons) must not reach icon buttons and menu items. */
body.dark .pc-mini { color: var(--muted); }
body.dark .pc-mini:hover { color: var(--primary); }
body.dark .pc-menu button { color: var(--text); }
body.dark .pc-menu button small { color: var(--muted); }
body.dark .pc-add, body.dark .rd-add-btn { color: #06201a; }

/* GSC_V1 */
.pm-gsc { margin-top: 12px; }
.gsc-run { min-height: 32px; padding: 5px 12px; font-size: 12.5px; }
body.dark .gsc-run { color: var(--text); }

/* GSC_MULTI_V1 */
.gsc-move { height: 30px; padding: 0 8px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--panel); color: var(--text); font: inherit; font-size: 12.5px; }

/* GSC_PAGE_V1 */
[data-gsc-hidden="true"] { display: none !important; }
#gsc-root .gsc-move { max-width: 100%; }
@media (max-width: 900px) {
  /* GSC_PAGE_V1: seven tabs on phones. */
  .sidebar nav a { font-size: 10px; letter-spacing: -.01em; }
}

/* GSC_MANUAL_V1 */
#gsc-root .pm-header-actions { display: flex; gap: 8px; align-items: center; }

/* GSC_EXCLUDE_V1 */

/* GSC_INSPECT_LINK_V1 */
.gsc-inspect { display: inline-flex; align-items: center; gap: 5px; flex: none; margin-left: auto; padding: 3px 10px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--primary); font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gsc-inspect:hover { background: var(--primary-soft); border-color: var(--primary); }
.gsc-inspect svg { width: 13px !important; height: 13px !important; fill: none; stroke: currentColor; stroke-width: 2.2; }
.gsc-inspect b { color: var(--muted); font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; }
#gsc-root .pm-header-actions { flex-direction: row !important; flex-wrap: nowrap; }
#gsc-root .pm-header-actions > * { flex: none; white-space: nowrap; }
#gsc-root .pm-header { gap: 16px; }

/* INDEX_QUEUE_V1 */

/* GSC_OAUTH_V1 */
/* GSC_AUTHUSER_V1 */
/* GSC_SELF_SERVICE_V1: step-by-step guide */
.gsc-guide > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.gsc-guide > summary::-webkit-details-marker { display: none; }
.gsc-guide > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; }
.gsc-guide[open] > summary::before { transform: rotate(90deg); }
.gsc-guide > summary h3 { margin: 0; }
.gsc-guide > .pm-small { display: block; margin: 10px 0 0; }
.gsc-guide-steps { margin: 12px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 12px; }
.gsc-guide-steps li { line-height: 1.55; }
.gsc-guide-steps li > b:first-child { margin-right: 8px; }
.gsc-guide-steps li > span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.gsc-guide-steps code { padding: 1px 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--border); font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.gsc-guide-link { display: inline-flex; height: 28px; margin: 2px 6px 2px 0; font-size: 12.5px; text-decoration: none; }
.gsc-guide-copy { display: flex !important; align-items: center; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
body.dark #gsc-oauth-sync { color: var(--text); }

/* GSC_PIN_V1: worker dropdown on every domain; long subtitles stay in their column */
#gsc-rows .rd-domain-text { max-width: 150px; overflow: hidden; }
#gsc-rows .rd-domain-text .pm-small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gsc-worker-row .gsc-move { flex: 1 1 220px; max-width: 100%; min-width: 0; }
.gsc-worker-row small { flex-basis: 100%; }
.gsc-worker-row small { color: var(--muted); font-size: 12px; margin-top: -4px; }

/* GSC_WORKER_ONLY_V1: no "Akses tim" column; five columns */
/* GSC_SITE_URL_V1 */

/* DELETE_INLINE_V1: a project being deleted, then fading out of the list */
.pm-badge.pm-deleting { background: color-mix(in srgb, #dc2626 14%, transparent); color: #b91c1c; border-color: color-mix(in srgb, #dc2626 35%, transparent); }
body.dark .pm-badge.pm-deleting { color: #fca5a5; }
/* REINSTALL_STATUS_V1 */
.pm-badge.pm-reinstalling { background: color-mix(in srgb, #d97706 14%, transparent); color: #b45309; border-color: color-mix(in srgb, #d97706 35%, transparent); }
body.dark .pm-badge.pm-reinstalling { color: #fcd34d; }
.pm-badge.pm-reinstalling::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: pm-del-spin .8s linear infinite; }
.pm-badge.pm-deleting::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -1px; animation: pm-del-spin .8s linear infinite; }
@keyframes pm-del-spin { to { transform: rotate(360deg); } }
#pm-project-list .pm-project-item.is-deleting { opacity: .6; pointer-events: none; }
#pm-project-list .pm-project-item.is-removed { overflow: hidden; opacity: 0; transform: translateX(-12px); padding-top: 0; padding-bottom: 0; margin-top: 0; margin-bottom: 0; border-width: 0; transition: height .32s ease, opacity .25s ease, transform .25s ease, padding .32s ease, margin .32s ease; }
@media (prefers-reduced-motion: reduce) { #pm-project-list .pm-project-item.is-removed { transition: none; } .pm-badge.pm-deleting::before, .pm-badge.pm-reinstalling::before { animation: none; } }
#pm-project-list .pm-badge.pm-deleting, .pm-badge.pm-deleting { max-width: none; flex-shrink: 0; overflow: visible; text-overflow: clip; white-space: nowrap; }

/* AMP_DELETE_PARALLEL_V1: rows being deleted, then fading out */
#amp-rows tr.is-deleting { opacity: .65; }
#amp-rows tr.is-removed { opacity: 0; transform: translateX(-12px); transition: opacity .3s ease, transform .3s ease; }
@media (prefers-reduced-motion: reduce) { #amp-rows tr.is-removed { transition: none; } }

/* NAV_NO_HREF_V1: nav links without href still look and feel like links */
.sidebar nav a[data-href] { cursor: pointer; }

/* ===== GSC_PAGE_V2: modern GSC page ===== */
#gsc-root { display: flex; flex-direction: column; gap: 18px; }

#gsc-root .gsc2-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
#gsc-root .gsc2-stat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); transition: border-color .2s, transform .2s, box-shadow .2s; }
#gsc-root .gsc2-stat:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -18px rgba(10, 30, 26, .45); }
#gsc-root .gsc2-stat-ico { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--tone-bg); color: var(--tone); }
#gsc-root .gsc2-stat-ico svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#gsc-root .gsc2-stat > div { display: flex; flex-direction: column; min-width: 0; }
#gsc-root .gsc2-stat span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
#gsc-root .gsc2-stat strong { font-size: 26px; line-height: 1.15; font-weight: 750; color: var(--text); letter-spacing: -.02em; }
#gsc-root .gsc2-stat small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gsc-root .gsc2-brand { --tone: var(--primary); --tone-bg: var(--primary-soft); }
#gsc-root .gsc2-good { --tone: var(--live); --tone-bg: var(--live-bg); }
#gsc-root .gsc2-info { --tone: var(--run); --tone-bg: var(--run-bg); }
#gsc-root .gsc2-bad { --tone: var(--idle); --tone-bg: var(--idle-bg); }
#gsc-root .gsc2-bad.has-problem { --tone: var(--fail); --tone-bg: var(--fail-bg); border-color: color-mix(in srgb, var(--fail) 35%, var(--border)); }

#gsc-root .gsc2-groups { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
#gsc-root .gsc2-groups > span { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

#gsc-root .gsc2-section { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; }
#gsc-root .gsc2-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
#gsc-root .gsc2-section-head h3 { margin: 0 0 4px; font-size: 17px; letter-spacing: -.01em; color: var(--text); }
#gsc-root .gsc2-section-head p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }

#gsc-root .gsc2-accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
#gsc-root .gsc2-acc { display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 35%, var(--panel)), var(--panel) 60%); transition: border-color .2s, box-shadow .2s, transform .2s; }
#gsc-root .gsc2-acc:hover { border-color: var(--border-strong); box-shadow: 0 14px 30px -22px rgba(10, 30, 26, .5); transform: translateY(-1px); }
#gsc-root .gsc2-acc.is-bad { background: linear-gradient(180deg, color-mix(in srgb, var(--fail-bg) 60%, var(--panel)), var(--panel) 60%); border-color: color-mix(in srgb, var(--fail) 30%, var(--border)); }
#gsc-root .gsc2-acc-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
#gsc-root .gsc2-avatar { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; font-weight: 750; font-size: 17px; color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 55% 48%), hsl(calc(var(--h) + 35) 60% 40%)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
#gsc-root .gsc2-acc-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#gsc-root .gsc2-acc-id strong { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gsc-root .gsc2-acc-id code { font-size: 11px; color: var(--muted); background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
#gsc-root .gsc2-pill { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
#gsc-root .gsc2-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#gsc-root .gsc2-pill.is-ok { color: var(--live); background: var(--live-bg); }
#gsc-root .gsc2-pill.is-wait { color: var(--wait); background: var(--wait-bg); }
#gsc-root .gsc2-pill.is-bad { color: var(--fail); background: var(--fail-bg); }
#gsc-root .gsc2-acc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin: 0; padding: 12px 0 0; border-top: 1px dashed var(--border); }
#gsc-root .gsc2-acc-facts div { min-width: 0; }
#gsc-root .gsc2-acc-facts dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
#gsc-root .gsc2-acc-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#gsc-root .gsc2-acc-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; }
#gsc-root .gsc2-reconnect { display: inline-flex; align-items: center; gap: 7px; flex: 1; justify-content: center; }
#gsc-root .gsc2-reconnect .ib-svg { width: 15px; height: 15px; }

#gsc-root .gsc2-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 34px 16px; border: 1px dashed var(--border-strong); border-radius: 14px; color: var(--muted); }
#gsc-root .gsc2-empty strong { color: var(--text); font-size: 15px; }
#gsc-root .gsc2-empty p { margin: 0; font-size: 13px; }
#gsc-root .gsc2-empty-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: 4px; }
#gsc-root .gsc2-empty-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

#gsc-root .gsc2-guides { display: grid; gap: 10px; }
#gsc-root .gsc2-guide { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color .2s; }
#gsc-root .gsc2-guide[open] { border-color: var(--border-strong); }
#gsc-root .gsc2-guide summary { display: flex; align-items: center; gap: 14px; padding: 16px 20px; cursor: pointer; list-style: none; }
#gsc-root .gsc2-guide summary::-webkit-details-marker { display: none; }
#gsc-root .gsc2-guide summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
#gsc-root .gsc2-guide[open] summary::after { transform: rotate(-135deg); }
#gsc-root .gsc2-guide summary > span:not(.gsc2-guide-ico) { display: flex; flex-direction: column; }
#gsc-root .gsc2-guide summary b { font-size: 14.5px; color: var(--text); }
#gsc-root .gsc2-guide summary small { font-size: 12px; color: var(--muted); }
#gsc-root .gsc2-guide-ico { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-weight: 750; font-size: 13px; }
#gsc-root .gsc2-guide-body { padding: 0 20px 18px; border-top: 1px solid var(--border); }
#gsc-root .gsc2-guide-body > .pm-small:first-child { margin-top: 14px; }

@media (max-width: 980px) { #gsc-root .gsc2-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  #gsc-root .gsc2-stat { padding: 13px 14px; gap: 10px; }
  #gsc-root .gsc2-stat-ico { width: 36px; height: 36px; border-radius: 10px; }
  #gsc-root .gsc2-stat strong { font-size: 22px; }
  #gsc-root .gsc2-section { padding: 16px; }
  #gsc-root .gsc2-accounts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { #gsc-root .gsc2-stat, #gsc-root .gsc2-acc { transition: none; } #gsc-root .gsc2-stat:hover, #gsc-root .gsc2-acc:hover { transform: none; } }
/* GSC_PAGE_V2 fixes: the hero is a <header> (global header margins), cards
   must shrink on phones, stroke icon in the reconnect button */
#gsc-root .gsc2-accounts > *, #gsc-root .gsc2-acc, #gsc-root .gsc2-acc-top { min-width: 0; }
#gsc-root .gsc2-reconnect .ib-svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 640px) { #gsc-root .gsc2-acc-top { flex-wrap: wrap; } #gsc-root .gsc2-acc-id { flex-basis: calc(100% - 120px); } }
#gsc-root .gsc2-groups .seg { margin: 0; padding-left: 0; }

/* INSTANT_FEEDBACK_V1: a busy button shows a spinner at once; busy rows dim */
.cd-btn.is-busy, #rd-rows button.is-busy, .account-actions button.is-busy { position: relative; cursor: progress; opacity: .85; }
.cd-btn.is-busy::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: pm-del-spin .7s linear infinite; }
#rd-rows button.is-busy svg, .account-actions button.is-busy svg { animation: pm-del-spin .8s linear infinite; }
#rd-rows tr.is-busy { opacity: .6; transition: opacity .15s; }
#rd-rows tr.is-removed, #gsc-root .gsc2-acc.is-removed { opacity: 0; transform: translateX(-12px); transition: opacity .28s ease, transform .28s ease; }
#gsc-root .gsc2-acc.is-deleting { opacity: .6; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .cd-btn.is-busy::before, #rd-rows button.is-busy svg, .account-actions button.is-busy svg { animation: none; } }

/* ===== TABLE_TYPE_V1: one typography for every table in the panel =====
   header 11.5px caps · body 13.5px · primary name 14px/650 · sub-line 12px
   muted · chips 11-12px/700 · digits tabular so columns line up. */
:is(.domain-table, .amp-table, .rd-table, .team-table, .pm-cc-table, .buy-table, .bulk-table, .pm-detail table) {
  font-family: var(--font); font-feature-settings: "tnum" 1, "cv11" 1; font-variant-numeric: tabular-nums;
}
:is(.domain-table, .amp-table, .rd-table, .team-table, .pm-cc-table, .buy-table, .bulk-table, .pm-detail table) thead th {
  font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.5;
}
:is(.domain-table, .amp-table, .rd-table, .team-table, .pm-cc-table, .buy-table, .bulk-table, .pm-detail table) tbody td {
  font-size: 13.5px; font-weight: 400; color: var(--text); line-height: 1.5;
}
/* primary name of a row */
:is(.domain-table, .amp-table, .rd-table, .team-table) :is(.dt-name, .amp-domain, .amp-domain a, .team-name),
#rd-root .rd-table .dt-name { font-size: 14px; font-weight: 650; letter-spacing: -.005em; color: var(--text); }
:is(.amp-table) .amp-domain a { text-decoration: none; }
:is(.amp-table) .amp-domain a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
/* line under the name, small notes, relative dates */
:is(.domain-table, .amp-table, .rd-table, .team-table, .pm-cc-table, .buy-table) :is(.amp-sub, .rd-sub, .pm-small, small.dt-rel) {
  font-size: 12px; font-weight: 500; color: var(--muted); line-height: 1.45;
}
:is(.domain-table, .amp-table, .rd-table, .team-table) small.dt-rel.lvl-soon { color: var(--wait); font-weight: 650; }
/* secondary values: registrar, role, dates, renew, group */
:is(.domain-table, .amp-table, .rd-table, .team-table) :is(.dt-reg, .renew-text) { font-size: 13.5px; font-weight: 550; }
/* links inside cells */
:is(.rd-table, .pm-cc-table, .amp-table) :is(a.rd-target, td > a) { font-size: 13.5px; font-weight: 600; }
/* chips and tiny labels */
:is(.domain-table, .rd-table, .team-table) :is(.dt-use, .rd-code, .team-you, .renew) { font-size: 11.5px; font-weight: 700; letter-spacing: .01em; }
:is(.domain-table, .amp-table, .rd-table, .team-table, .pm-cc-table, .pm-detail table) :is(.pm-badge, .dt-status) { font-size: 11px; font-weight: 700; letter-spacing: .04em; }
:is(.domain-table, .amp-table, .rd-table, .team-table) .dt-muted { color: var(--muted); font-weight: 400; }
/* group name with its icon: same weight as other secondary values */
:is(.rd-table, .domain-table, .amp-table) .rd-group { font-size: 13.5px; font-weight: 550; }
:is(.rd-table, .domain-table, .amp-table) .rd-gicon-letter { font-weight: 700; }
.amp-table tbody td:nth-child(4) { font-weight: 550; }
.amp-table tbody td:nth-child(4) .pm-small { font-weight: 500; }

/* ===== GSC_BOX_V2: Google Search Console card on the project page ===== */
#pm-gsc.gsc3 { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary-soft) 45%, var(--panel)) 0%, var(--panel) 120px); border: 1px solid var(--border); }
#pm-gsc .gsc3-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#pm-gsc .gsc3-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
#pm-gsc .gsc3-title > div { display: flex; flex-direction: column; min-width: 0; }
#pm-gsc .gsc3-title strong { font-size: 15.5px; letter-spacing: -.01em; color: var(--text); }
#pm-gsc .gsc3-title small { font-size: 12.5px; color: var(--muted); }
#pm-gsc .gsc3-logo { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, #3b82f6, #22c55e 55%, #f59e0b); box-shadow: 0 6px 16px -8px rgba(30, 64, 175, .6); }
#pm-gsc .gsc3-logo svg, #pm-gsc .gsc3-card-ico svg, #pm-gsc .gsc3-dot svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#pm-gsc .gsc3-logo svg { width: 19px; height: 19px; }
#pm-gsc .gsc3-run { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; }
#pm-gsc .gsc3-run .ib-svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
#pm-gsc .gsc3-run.is-busy .ib-svg { animation: pm-del-spin .8s linear infinite; }

#pm-gsc .gsc3-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
#pm-gsc .gsc3-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--panel); border: 1px solid var(--border); min-width: 0; }
#pm-gsc .gsc3-card-ico { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; background: var(--primary-soft); color: var(--primary); }
#pm-gsc .gsc3-card-ico svg { width: 17px; height: 17px; }
#pm-gsc .gsc3-card-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
#pm-gsc .gsc3-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#pm-gsc .gsc3-prop { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: var(--text); background: none; padding: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pm-gsc .gsc3-val { font-size: 13.5px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pm-gsc .gsc3-val.is-muted { color: var(--muted); font-weight: 600; }
#pm-gsc .gsc3-card small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pm-gsc .gsc3-select { width: 100%; max-width: 100%; height: 32px; margin: 1px 0 0; font-size: 13px; }

#pm-gsc .gsc3-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; position: relative; }
#pm-gsc .gsc3-step { position: relative; display: flex; align-items: flex-start; gap: 10px; padding: 0 10px 0 0; min-width: 0; }
#pm-gsc .gsc3-step:not(:last-child)::after { content: ""; position: absolute; left: 34px; right: 8px; top: 13px; height: 2px; border-radius: 2px; background: var(--border); }
#pm-gsc .gsc3-step.is-done:not(:last-child)::after { background: color-mix(in srgb, var(--live) 55%, var(--border)); }
#pm-gsc .gsc3-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  border: 2px solid var(--border-strong); background: var(--panel); color: #fff; }
#pm-gsc .gsc3-step.is-done .gsc3-dot { background: var(--live); border-color: var(--live); box-shadow: 0 0 0 4px var(--live-bg); }
#pm-gsc .gsc3-dot svg { width: 14px; height: 14px; stroke-width: 2.6; }
#pm-gsc .gsc3-step-text { display: flex; flex-direction: column; min-width: 0; padding-top: 2px; }
#pm-gsc .gsc3-step-text b { font-size: 13px; color: var(--text); position: relative; z-index: 1; background: transparent; }
#pm-gsc .gsc3-step:not(.is-done) .gsc3-step-text b { color: var(--muted); }
#pm-gsc .gsc3-step-text small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pm-gsc .gsc3-step:not(:last-child) .gsc3-step-text { padding-top: 22px; margin-left: -36px; padding-left: 0; }
#pm-gsc .gsc3-step { flex-direction: column; gap: 6px; }
#pm-gsc .gsc3-step:not(:last-child) .gsc3-step-text, #pm-gsc .gsc3-step .gsc3-step-text { margin-left: 0; padding-top: 0; }

#pm-gsc .gsc3-note { padding: 10px 14px; border-radius: 10px; font-size: 13px; line-height: 1.5; }
#pm-gsc .gsc3-note.is-info { background: var(--idle-bg); color: var(--muted); }
#pm-gsc .gsc3-note.is-error { background: var(--fail-bg); color: var(--fail); }
#pm-gsc .gsc3-note a { color: var(--primary); }

#pm-gsc .gsc3-urls { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--panel); }
#pm-gsc .gsc3-urls-head { display: flex; justify-content: space-between; align-items: center; padding: 9px 14px; background: color-mix(in srgb, var(--idle-bg) 70%, var(--panel)); border-bottom: 1px solid var(--border); }
#pm-gsc .gsc3-urls-head span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
#pm-gsc .gsc3-urls-head small { font-size: 11.5px; color: var(--muted); }
#pm-gsc .gsc3-urls > .gsc3-note { margin: 10px; }
#pm-gsc .gsc3-url { display: flex; align-items: center; gap: 12px; padding: 11px 14px; min-width: 0; }
#pm-gsc .gsc3-url + .gsc3-url { border-top: 1px solid var(--border); }
#pm-gsc .gsc3-url-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
#pm-gsc .gsc3-url-text b { font-size: 13.5px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#pm-gsc .gsc3-url-text small { font-size: 12px; color: var(--muted); }
#pm-gsc .gsc3-pill { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
#pm-gsc .gsc3-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
#pm-gsc .gsc3-pill.is-ok { color: var(--live); background: var(--live-bg); }
#pm-gsc .gsc3-pill.is-wait { color: var(--wait); background: var(--wait-bg); }
#pm-gsc .gsc3-pill.is-bad { color: var(--fail); background: var(--fail-bg); }
#pm-gsc .gsc3-pill.is-none { color: var(--idle); background: var(--idle-bg); }
#pm-gsc .gsc3-inspect { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 650;
  color: var(--primary); background: var(--primary-soft); border: 1px solid color-mix(in srgb, var(--primary) 25%, transparent); text-decoration: none; transition: background .15s, color .15s; }
#pm-gsc .gsc3-inspect:hover { background: var(--primary); color: #fff; }
#pm-gsc .gsc3-inspect .ib-svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

@media (max-width: 640px) {
  #pm-gsc.gsc3 { padding: 14px; }
  #pm-gsc .gsc3-head { flex-wrap: wrap; }
  #pm-gsc .gsc3-run { width: 100%; justify-content: center; }
  #pm-gsc .gsc3-steps { gap: 6px; }
  #pm-gsc .gsc3-url { flex-wrap: wrap; }
  #pm-gsc .gsc3-url-text { flex-basis: 100%; order: 2; }
  #pm-gsc .gsc3-inspect { order: 3; }
}
/* GSC_BOX_V2: the old horizontal worker row rules must not stretch the select */
#pm-gsc .gsc-worker-row .gsc3-select { flex: none; height: 32px; min-height: 0; }
#pm-gsc .gsc-worker-row small { flex-basis: auto; margin-top: 0; }
#pm-gsc .gsc3-card.gsc-worker-row { margin: 0; }
@media (max-width: 640px) {
  #pm-gsc .gsc3-steps { grid-template-columns: 1fr; gap: 10px; }
  #pm-gsc .gsc3-step { flex-direction: row; align-items: center; gap: 10px; padding: 0; }
  #pm-gsc .gsc3-step:not(:last-child)::after { left: 12px; right: auto; top: 28px; width: 2px; height: 12px; }
  #pm-gsc .gsc3-step-text { flex-direction: row; align-items: baseline; gap: 8px; }
}

/* DOMAIN_COPY_V2: the domain name is the copy button */
:is(.domain-table, #sl-root) .dt-copy { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; margin: 0; padding: 2px 6px; margin-left: -6px; border: 0; border-radius: 7px;
  background: transparent; color: var(--text); font: inherit; font-size: 14px; font-weight: 650; text-align: left; cursor: copy; transition: background .15s, color .15s; }
:is(.domain-table, #sl-root) .dt-copy-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
:is(.domain-table, #sl-root) .dt-copy-ico { display: inline-grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; opacity: 0; transition: opacity .15s; }
:is(.domain-table, #sl-root) .dt-copy-ico svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:is(.domain-table, #sl-root) .dt-copy:hover, :is(.domain-table, #sl-root) .dt-copy:focus-visible { color: var(--primary); background: var(--primary-soft); }
:is(.domain-table, #sl-root) .dt-copy:hover .dt-copy-ico, :is(.domain-table, #sl-root) .dt-copy:focus-visible .dt-copy-ico { opacity: 1; }
:is(.domain-table, #sl-root) .dt-copy.is-done { color: var(--live); background: var(--live-bg); }
:is(.domain-table, #sl-root) .dt-copy.is-done .dt-copy-ico { opacity: 1; }

/* AMP_SUBDOMAIN_DIR_V2: the subdomain AMP folder field */
.bulk-card [data-amp-dir-group] { margin-top: 12px; }

/* IMAGE_CONVERT_V1 */
.ic-panel { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.ic-options { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: flex-end; }
.ic-opt { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ic-opt[hidden] { display: none; }
.ic-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.ic-label strong { color: var(--text); }
#ic-quality { width: 200px; max-width: 100%; accent-color: var(--primary); }
#ic-width { width: 200px; max-width: 100%; min-height: 40px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 14px; }
#ic-width:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--ring); }
.ic-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--panel-2, var(--bg)); color: var(--text); text-align: center; cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.ic-drop:hover, .ic-drop:focus-visible, .ic-drop.is-over { border-color: var(--primary); background: var(--primary-soft); outline: none; }
.ic-drop svg { width: 32px; height: 32px; fill: none; stroke: var(--primary); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-listbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.ic-listbtns { display: flex; gap: 8px; }
#ic-root .ic-table { width: 100%; min-width: 0; border-collapse: collapse; }
#ic-root .ic-table td { padding: 10px 8px; border-top: 1px solid var(--border); border-bottom: 0; font-size: 13px; vertical-align: middle; }
.ic-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg); display: block; }
.ic-name { word-break: break-all; }
.ic-actions { text-align: right; white-space: nowrap; }
.ic-actions .pm-btn + .pm-btn { margin-left: 6px; }
.ic-x { font-size: 18px; line-height: 1; padding: 6px 10px; }
.ic-diff { font-size: 12px; font-weight: 700; margin-left: 4px; }
.ic-diff.is-good { color: var(--good); }
.ic-diff.is-bad { color: var(--fail); }
.ic-error { color: var(--fail); font-size: 13px; }
@media (max-width: 640px) {
  .ic-panel { padding: 14px; }
  .ic-options { flex-direction: column; align-items: stretch; }
  #ic-quality, #ic-width { width: 100%; }
  #ic-root .ic-table tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-content: start; gap: 6px 12px; padding: 12px 0; border-top: 1px solid var(--border); }
  #ic-root .ic-table td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.4; }
  #ic-root .ic-table td:first-child { grid-row: span 2; }
  .ic-thumb { width: 44px; height: 44px; }
  .ic-actions { grid-column: 1 / -1; text-align: left; white-space: normal; }
}
.sidebar nav .ic-nav-short { display: none; }
@media (max-width: 900px) { .sidebar nav .ic-nav-long { display: none; } .sidebar nav .ic-nav-short { display: inline; } }

/* AMP_ONLY_V1 */
.ao-tag { display: flex; gap: 8px; align-items: center; margin: 4px 0 8px; }
.ao-tag code { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--panel-2); font-size: 12px; overflow-wrap: anywhere; }
.pc-amp-only { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 12px; font-weight: 600; cursor: pointer; }
.pc-amp-only:hover { border-color: var(--primary); color: var(--primary); }
.pc-amp-only svg { width: 14px; height: 14px; }
#amp-root .amp-del-cell { white-space: nowrap; }
#amp-root .amp-del-cell .icon-btn + * { margin-left: 6px; }
.ao-tag .cd-btn { flex: 0 0 auto; width: auto; min-width: 0; padding-inline: 16px; }
.cd-message a { color: var(--primary); overflow-wrap: anywhere; }

/* AMP_INVENTORY_V1 */
.pm-badge.pm-unused { background: var(--wait-bg); color: var(--wait); }
.pm-badge.pm-unused::before { background: var(--wait); }

/* AMP_DIALOG_V2: Deploy AMP baru / Update AMP, same look as the Deploy form */
.ao-modal .ao-dialog { width: min(720px, 100%); }
.ao-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.ao-modal .bulk-card { display: flex; flex-direction: column; gap: 10px; }
.ao-modal .bulk-card .form-group { margin: 0; }
.ao-modal [hidden] { display: none !important; }
.ao-now { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.ao-now > div { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; }
.ao-now a { color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.ao-now a:hover { color: var(--primary); text-decoration: underline; }
.ao-hint { margin: 0; }
.ao-error:empty { display: none; }
.ao-result { display: flex; flex-direction: column; gap: 12px; }
.ao-result-head { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ao-result-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-weight: 800; }
.ao-result-head.is-ok .ao-result-icon { background: var(--live-bg); color: var(--live); }
.ao-result-head.is-wait .ao-result-icon { background: var(--wait-bg); color: var(--wait); }
.ao-result .ao-tag button { flex: 0 0 auto; }
@media (max-width: 640px) {
  .ao-modal .form-grid { grid-template-columns: 1fr; }
}

/* AMP_HEADER_V2 */
#amp-root .amp-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
#amp-root .amp-toolbar #amp-status { margin: 0; padding: 0; border: 0; }
#amp-root .amp-toolbar #amp-filter { margin: 0; }
#amp-root .pm-header-actions { align-self: flex-start; }
@media (max-width: 640px) {
  #amp-root .amp-toolbar { flex-direction: column-reverse; align-items: stretch; }
  #amp-root .amp-toolbar #amp-filter { width: 100%; justify-content: space-between; }
  #amp-root .amp-toolbar #amp-filter .seg-btn { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  #amp-root .pm-header-actions { width: 100%; }
  #amp-root #amp-new { width: 100%; justify-content: center; }
  #amp-root #amp-new span { display: inline !important; }
}
#amp-root #amp-new { white-space: nowrap; flex-shrink: 0; }
#amp-root .pm-header > div:first-child { min-width: 0; }
/* THEME_CONTRAST_V1: the dark theme gives plain buttons dark text (for the
   green ones); the outlined "Update AMP" button keeps the theme's text. */
body.dark .pc-card .pc-amp-only { color: var(--text); background: var(--panel); border-color: var(--border-strong); }
body.dark .pc-card .pc-amp-only:hover { color: var(--primary); border-color: var(--primary); }
/* DOMAIN_NO_FLICKER_V1: rows stay while the next page of domains loads; they
   dim only if the answer takes longer than 150 ms and come back at once. */
#domainRows { transition: opacity .12s ease; }
#domainRows.is-refreshing { opacity: .55; transition-delay: .15s; }
@media (prefers-reduced-motion: reduce) { #domainRows, #domainRows.is-refreshing { transition: none; } }

/* NO_TEXT_SELECT_V1: menu items, buttons, tabs, chips/badges and table
   headers are clicked, not read, so a double or fast repeated click must not
   select their text (that showed a white box behind "Domain" in the
   sidebar). Data people copy stays selectable: domain names, URLs, e-mails,
   codes and logs, plus every input. */
.sidebar,
.sidebar *,
button,
[role="button"],
[role="tab"],
[role="link"],
summary,
label,
select,
th,
.seg,
.seg-btn,
.fs-trigger,
.icon-btn,
.pm-btn,
.q-btn,
.pm-badge,
.gsc2-pill,
.gsc3-pill,
.bulk-pill,
.buy-chip,
.dt-reg,
.dt-status,
.dt-use,
.renew-switch {
  -webkit-user-select: none;
  user-select: none;
}

input,
textarea,
[contenteditable="true"],
code,
pre,
kbd,
.dt-copy,
.dt-name,
.domain-name,
.amp-domain,
.amp-sub,
.rd-target,
.rd-code,
.ao-domain,
.ao-path,
.pm-canonical,
.pc-url,
.pc-path,
.gsc3-url,
.gsc3-urls,
.gm-info strong,
.account-who strong,
.team-name,
.act-line,
#pm-identity,
#pm-title,
[data-copy],
a[href^="http"] {
  -webkit-user-select: text;
  user-select: text;
}

/* Selection colors per theme: readable text on a tinted green, never a
   near-white box on a dark background. The sidebar is dark in both themes. */
:root {
  --selection-bg: #b9e0d5;
  --selection-text: #0b1f1b;
}

body.dark {
  --selection-bg: #2c6f60;
  --selection-text: #f2fbf8;
}

::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

.sidebar ::selection {
  background: #2c6f60;
  color: #ffffff;
}

/* Keyboard focus stays visible; on the dark sidebar the default primary
   outline is too dark, so it uses the light green there. */
.sidebar :focus-visible {
  outline: 2px solid #52c2a6;
  outline-offset: 2px;
}

/* UNIFORM_ACTIONS_V1: every page's main action is the same labelled green
   button at the top right; on phones it spans the width under the title. */
@media (max-width: 640px) {
  :is(#amp-root, #rd-root, #sl-root, #pt-root, #gsc-root, #team-root) .pm-header-actions { width: 100%; }
  .pm-header .rd-add-btn { width: 100%; justify-content: center; }
}

/* AMP_EXTERNAL_STANDALONE_V1: a long "waiting" reason stays two lines in
   the status column; the full text is in the tooltip. */
#amp-root .amp-why { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 240px; }

/* =========================================================
   ELEGANT_V1 — calmer, more consistent surfaces.
   Colour only where something needs attention; one card
   style for every page's numbers; neutral avatars.
   ========================================================= */

/* Numbers and dates line up in columns. */
.domain-table td, .stats .card strong, .pm-metric strong, #gsc-root .gsc2-stat strong,
#amp-root td, #rd-rows td, .dt-exp { font-variant-numeric: tabular-nums; }

/* 1. Domain table: "Aktif" is the normal state, so it is quiet text with a
   dot; only other states keep a coloured pill. */
.dt-status.st-active {
  background: transparent !important;
  color: var(--muted);
  padding-left: 0 !important;
  font-size: 13px;
  font-weight: 550;
  text-transform: none;
  letter-spacing: 0;
}
.dt-status.st-active::before { background: var(--live); }

/* Auto renew read-only: text with a dot, no filled pill. "Off" stays red
   (RENEW_OFF_PINK_V1: it must stand out) but without the pink block. */
.domain-table .renew,
.domain-table .renew-on,
.domain-table .renew-off {
  background: transparent !important;
  padding-left: 0;
  font-size: 13px;
  font-weight: 600;
}
.domain-table .renew-on { color: var(--live) !important; }
.domain-table .renew-off { color: var(--fail) !important; }
.renew-switch[aria-checked="false"] .renew-track {
  background: color-mix(in srgb, var(--fail) 26%, var(--idle-bg));
}

/* 2. Avatars: one neutral style instead of a random colour per row. */
.dt-avatar,
body.dark .dt-avatar {
  background: var(--panel-2);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--border);
  font-weight: 650;
}
#gsc-root .gsc2-avatar {
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent);
}

/* 3. Number cards: separate cards with an icon chip on every page (the GSC
   style), instead of one strip on Domain and Proyek. */
.stats,
.pm-metrics {
  gap: 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.stats .card,
.pm-metric,
.stats .card + .card,
.pm-metric + .pm-metric {
  position: relative;
  padding: 16px 64px 16px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform .2s, box-shadow .2s;
}
.stats .card:hover,
.pm-metric:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -18px rgba(10, 30, 26, .45);
}
.stats .card strong,
.pm-metric strong { font-size: 28px; color: var(--text); }
.stats .card:first-child strong { color: var(--text); }
.stats .card:nth-child(2) strong { color: var(--live); }

.stats .card::after,
.pm-metric::after {
  content: "";
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--tone-bg, var(--primary-soft));
}
.stats .card::before,
.pm-metric::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 25px;
  right: 25px;
  width: 20px;
  height: 20px;
  background: var(--tone, var(--primary));
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.stats .card,
.pm-metric:nth-child(1) {
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='4' width='18' height='7' rx='2'/><rect x='3' y='13' width='18' height='7' rx='2'/><path d='M7 7.5h.01M7 16.5h.01'/></svg>");
}
.stats .card:nth-child(1) {
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/></svg>");
}
.stats .card:nth-child(2),
.pm-metric:nth-child(2) {
  --tone: var(--live);
  --tone-bg: var(--live-bg);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m8 12 3 3 5-6'/></svg>");
}
.pm-metric:nth-child(1) {
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='m12 3 9 5-9 5-9-5 9-5z'/><path d='m3 13 9 5 9-5'/></svg>");
}
.pm-metric:nth-child(3) {
  --tone: var(--run);
  --tone-bg: var(--run-bg);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 7v5l3 2'/></svg>");
}
.pm-metric:nth-child(4) {
  --tone: var(--fail);
  --tone-bg: var(--fail-bg);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 2 20h20L12 3z'/><path d='M12 10v4M12 17h.01'/></svg>");
}

/* 4. Expiry warning: a slim amber note with a text button, not a red
   block (red is kept for real failures). */
.expiry-banner,
.expiry-banner.is-danger {
  padding: 10px 10px 10px 14px;
  background: var(--wait-bg);
  color: var(--wait);
  border: 1px solid color-mix(in srgb, var(--wait) 22%, transparent);
}
.expiry-banner p { font-weight: 550; font-size: 13.5px; }
.expiry-banner #expiryShowBtn {
  min-height: 32px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  color: var(--wait);
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--wait) 30%, transparent);
}
.expiry-banner #expiryShowBtn:hover { background: color-mix(in srgb, var(--wait) 10%, var(--panel)); }

/* 6. Proyek: an empty deploy queue is one slim line, not an empty card. */
.q-panel:has(#q-body > .q-empty:only-child) #q-body { display: none; }
.q-panel:has(#q-body > .q-empty:only-child) .q-head { border-bottom: 0; padding-top: 10px; padding-bottom: 10px; }
.q-panel:has(#q-body > .q-empty:only-child) .q-title-wrap::after {
  content: "Tidak ada tugas";
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

/* AMP: host in bold, path muted and cut with "…"; empty zone column and
   locked delete buttons are hidden (the delete shows on row hover). */
#amp-root .amp-url { display: inline-flex; max-width: 280px; min-width: 0; white-space: nowrap; vertical-align: bottom; }
#amp-root .amp-url b { font-weight: 600; flex: none; }
#amp-root .amp-url span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#amp-root a .amp-url b { color: inherit; }
#amp-root .amp-no-zone th:nth-child(3),
#amp-root .amp-no-zone td:nth-child(3) { display: none; }
#amp-root .amp-del-cell button:disabled { visibility: hidden; }
#amp-root tr:hover .amp-del-cell button:disabled { visibility: visible; }

/* 5. Phone: the number cards are one swipeable row, so the list starts on
   the first screen; the bottom bar keeps 4 pages + "Lainnya". */
.sidebar nav .nav-more { display: none; }
@media (max-width: 900px) {
  .stats,
  .pm-metrics,
  #gsc-root .gsc2-stats {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    margin-left: -16px;
    margin-right: -16px;
    padding: 2px 16px 4px !important;
    scroll-padding-inline: 16px;
  }
  .stats::-webkit-scrollbar,
  .pm-metrics::-webkit-scrollbar,
  #gsc-root .gsc2-stats::-webkit-scrollbar { display: none; }
  .stats .card,
  .pm-metric,
  .stats .card + .card,
  .pm-metric + .pm-metric,
  .stats .card:last-child:nth-child(odd),
  .pm-metric:last-child:nth-child(odd) {
    flex: 0 0 auto;
    min-width: 128px;
    min-height: 0;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-top: 1px solid var(--border);
    grid-column: auto;
    scroll-snap-align: start;
  }
  #gsc-root .gsc2-stat { flex: 0 0 auto; min-width: 200px; scroll-snap-align: start; }
  .stats .card small,
  .pm-metric small { display: none; }
  /* the warning text gets the full width, the button goes under it */
  .expiry-banner { flex-wrap: wrap; row-gap: 8px; }
  .expiry-banner p { flex: 1 1 calc(100% - 40px); }
  .expiry-banner #expiryShowBtn { flex: 1 1 100%; }
  .stats .card strong,
  .pm-metric strong { font-size: 22px; }
  .stats .card::before,
  .stats .card::after,
  .pm-metric::before,
  .pm-metric::after { display: none; }

  .sidebar nav a:is([data-href="#buy"], [href="#buy"], [data-href="#gsc"], [href="#gsc"],
    [data-href="#convert"], [href="#convert"], [data-href="#team"], [href="#team"], [data-href="#pemantau"], [href="#pemantau"]) { display: none; }
  .sidebar nav .nav-more { display: flex; cursor: pointer; }
  .sidebar nav .nav-more .icon { width: 21px; height: 21px; }
  .sidebar nav .nav-more.is-current { color: #fff; }
  /* Open: the other pages form a row above the main bar. */
  .sidebar nav.more-open { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); row-gap: 6px; }
  .sidebar nav.more-open a:is([data-href="#buy"], [href="#buy"], [data-href="#gsc"], [href="#gsc"],
    [data-href="#convert"], [href="#convert"], [data-href="#team"], [href="#team"], [data-href="#pemantau"], [href="#pemantau"]) {
    display: flex;
    grid-row: 1;
    background: var(--sidebar-2);
  }
  .sidebar nav.more-open > :not(:is([data-href="#buy"], [href="#buy"], [data-href="#gsc"], [href="#gsc"],
    [data-href="#convert"], [href="#convert"], [data-href="#team"], [href="#team"], [data-href="#pemantau"], [href="#pemantau"])) { grid-row: 2; }
  .sidebar nav.more-open .nav-more { color: #fff; }
}

/* LONG_DOMAIN_V1: one very long domain (46 characters) used to widen the
   Domain column of its page and push the last column out of view. */
@media (min-width: 901px) {
  /* the column takes a fixed share of the table; a name that does not fit
     is cut with "…" instead of making the column wider (max-width: 0 stops
     the name from setting the column's minimum width) */
  .domain-table td.domain-name { width: 28%; max-width: 0; }
  .domain-table td.domain-name .dt-domain { min-width: 0; max-width: 100%; }
  /* every column keeps the same share on every page */
  .domain-table thead th:nth-child(1) { width: 52px; }
  .domain-table thead th:nth-child(2) { width: 28%; }
  .domain-table thead th:nth-child(3) { width: 11%; }
  .domain-table thead th:nth-child(4) { width: 14%; }
  .domain-table thead th:nth-child(5) { width: 13%; }
  .domain-table thead th:nth-child(6) { width: 13%; }
  .domain-table thead th:nth-child(7) { width: 17%; }
  /* the rare long status ("Tidak di registrar") wraps inside its badge
     instead of widening the Status column of its page */
  .domain-table .dt-status:not(.st-active) { white-space: normal; line-height: 1.25; border-radius: 9px !important; }
}

/* ELEGANT_V1 fix: the 13px "Aktif" lost to an older !important size */
.domain-table .dt-status.st-active,
.domain-table .renew { font-size: 13px !important; }

/* =========================================================
   ELEGANT_V2 — the same quiet language on every page.
   ========================================================= */

/* "Aktif" / "Live" is the normal state everywhere (AMP, Redirect, Tim,
   Proyek, GSC): dot + text like the Domain table, not a green pill.
   Warning and failure badges keep their coloured pill. */
.pm-badge.pm-live,
#gsc-root .gsc2-pill.is-ok {
  display: inline-block !important;
  padding: 0 0 0 13px !important;
  border-radius: 0 !important;
  background: radial-gradient(circle, var(--live) 3px, transparent 3.5px) 0 50% / 7px 7px no-repeat transparent !important;
  color: var(--muted) !important;
  font-size: 13px !important;
  font-weight: 550 !important;
  letter-spacing: 0 !important;
  text-transform: lowercase;
  white-space: nowrap;
}
.pm-badge.pm-live::first-letter,
#gsc-root .gsc2-pill.is-ok::first-letter { text-transform: uppercase; }
.pm-badge.pm-live::before,
#gsc-root .gsc2-pill.is-ok::before { display: none !important; }

/* Konversi Gambar: the result card stays hidden until there is a file
   (.ic-panel's display:flex overrode the hidden attribute). */
#ic-list[hidden] { display: none !important; }

/* Beli Domain: a labelled button the height of one input line. */
.buy-search-row { align-items: flex-start; }
#buy-check { min-height: 42px; padding: 0 18px; white-space: nowrap; font-weight: 650; }

/* Phone: every page's number cards look the same (label + number). */
@media (max-width: 900px) {
  #rd-root .rd-metrics .pm-metric small { display: none; }
  #gsc-root .gsc2-stat { min-width: 128px; padding: 12px 14px; gap: 0; }
  #gsc-root .gsc2-stat-ico,
  #gsc-root .gsc2-stat small { display: none; }
  #gsc-root .gsc2-stat strong { font-size: 22px; }
}
/* GSC account avatars: the same neutral avatar as every other list. */
#gsc-root .gsc2-avatar {
  background: var(--panel-2);
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--border);
}

/* SHORTLINK_UI_V2: Shortlink page (#sl-root), laid out like the Redirect page
 * (sync line, metric cards, filter panel with group chips, quiet icon
 * actions, phone cards). Only Shortlink-specific bits are new here. */
main.main > [data-sl-hidden="true"] { display: none !important; }
#sl-tab-links, #sl-tab-domains { display: flex; flex-direction: column; gap: 18px; }
#sl-tab-links[hidden], #sl-tab-domains[hidden], #sl-root .sl-bulk[hidden], #sl-root .sl-selhint[hidden] { display: none !important; }

/* tabs + sync line under the title */
#sl-root .sl-subbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: -6px; }
#sl-root .sl-tabs .seg-btn { min-width: 84px; justify-content: center; }
#sl-root .sl-status:empty { display: none; }
#sl-root .sl-status { flex: 1 1 320px; min-width: 0; }
#sl-root .rd-note.rd-ok, #sl-root .rd-note.rd-wait { padding: 0; border: 0; background: none; font-size: 13px; }

/* metric cards: own icons for "Grup" and "Domain" */
#sl-root .rd-metrics .pm-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
#sl-root .rd-m-bad strong { color: var(--muted); }
#sl-root .rd-m-bad.has-problem strong { color: var(--fail); }
#sl-root .pm-metric.sl-m-groups {
  --tone: var(--run); --tone-bg: var(--run-bg);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/></svg>");
}
#sl-root .pm-metric.sl-m-domains {
  --tone: var(--primary); --tone-bg: var(--primary-soft);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/></svg>");
}

/* filter panel */
#sl-root .rd-filters { margin-bottom: 0; }
#sl-root .rd-search-wrap .ss-field { width: 100%; }
#sl-root .rd-filter-row { align-items: flex-start; }
#sl-root .rd-filter-row .rd-filter-label { padding-top: 8px; }
#sl-root .sl-gdot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--border-strong); }
#sl-root .sl-gdot.has-domain { background: var(--live); }
#sl-root .sl-gbtn { border-style: dashed !important; color: var(--primary) !important; }
#sl-root .sl-gbtn svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#sl-root .sl-linkbtn { border: 0; background: none; padding: 0; color: var(--primary); font: inherit; font-weight: 700; cursor: pointer; }
#sl-root .sl-warn-t { color: var(--wait); font-weight: 650; }

/* tables (same look as Redirect) */
#sl-root .rd-panel { overflow: hidden; }
#sl-root .rd-table td { padding-top: 11px; padding-bottom: 11px; }
#sl-root .rd-table tbody tr { transition: background .12s; }
#sl-root .rd-table tbody tr:hover { background: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
#sl-root .rd-table tr.is-selected { background: color-mix(in srgb, var(--primary-soft) 70%, transparent); }
#sl-root .rd-row-off :is(.rd-c-domain, .rd-c-target) { opacity: .55; }
#sl-root .rd-table .dt-name { font-size: 14px; font-weight: 650; letter-spacing: -.005em; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sl-root .rd-sub { margin: 1px 0 0; }
#sl-root .rd-actions .pm-btn { width: 34px; height: 34px; border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
#sl-root .rd-actions .pm-btn:hover { background: var(--primary-soft); color: var(--primary); }
#sl-root .rd-actions .pm-btn.icon-del:hover { background: var(--fail-bg); color: var(--fail); }
#sl-root .sl-table th.sl-c-pick, #sl-root .sl-table td.sl-c-pick { width: 44px; }
#sl-root .sl-table th:nth-child(2) { width: 27%; }
#sl-root .sl-table th:nth-child(4) { width: 16%; }
#sl-root .sl-table th:nth-child(5) { width: 96px; }
#sl-root .sl-table th:nth-child(6) { width: 170px; }
#sl-root .sl-dtable th:nth-child(1) { width: 26%; }
#sl-root .sl-dtable th:nth-child(2) { width: 130px; }
#sl-root .sl-dtable th:nth-child(4) { width: 16%; }
#sl-root .sl-dtable th:nth-child(5) { width: 100px; }
#sl-root .sl-dtable td.sl-c-note { white-space: normal; }
#sl-root a.sl-dest { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#sl-root .sl-geo { display: flex; align-items: center; gap: 6px; min-width: 0; margin-top: 4px; }
#sl-root .sl-geo a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px !important; font-weight: 550 !important; color: var(--muted); }
#sl-root .sl-chip { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 6px; background: var(--fail-bg); color: var(--fail); font-size: 10.5px; font-weight: 800; letter-spacing: .02em; }
#sl-root .sl-chip svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.2; }
#sl-root .sl-tagchip { display: inline-block; max-width: 100%; padding: 2px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
#sl-root .sl-selhint { padding: 10px 16px; background: var(--run-bg); color: var(--run); font-size: 13px; border-bottom: 1px solid var(--border); }
#sl-root .sl-selhint a { color: inherit; font-weight: 700; }
#sl-root .sl-pager { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 16px 14px; border-top: 1px solid var(--border); }
#sl-root .sl-pager .pm-small { margin-right: auto; }
#sl-root .sl-pager:has(.pm-small:empty) { display: none; }
#sl-root .sl-ns { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; word-break: break-all; }
#sl-root .sl-reg { margin: 3px 0; font-size: 12.5px; color: var(--muted); }
#sl-root .sl-reg.sl-ok { color: var(--live); }
#sl-root .sl-reg.sl-warn { color: var(--wait); }
#sl-root .sl-reg.sl-bad { color: var(--fail); }

/* settings panel (default redirects + AWS connection) */
#sl-root .sl-settings { padding: 18px; display: grid; gap: 14px; }
#sl-root .sl-set-head h2 { margin: 0 0 4px; font-size: 15px; font-weight: 750; }
#sl-root .sl-set-head .pm-small { margin: 0; }
#sl-root .sl-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
#sl-root .sl-grid2 .fd-field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
#sl-root .sl-set-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#sl-root .sl-aws-adv { padding-top: 12px; border-top: 1px dashed var(--border); }
#sl-root .sl-aws-adv summary { cursor: pointer; font-weight: 650; font-size: 13.5px; color: var(--primary); margin-bottom: 10px; }
#sl-root .sl-aws-adv code { word-break: break-all; }
#sl-root .sl-inline { display: flex; gap: 8px; min-width: 0; }
#sl-root .sl-inline .cd-input { flex: 1 1 auto; min-width: 0; }
#sl-root .sl-inline > button { flex: 0 0 auto; white-space: nowrap; }

/* bulk bar */
#sl-root .sl-bulk { position: sticky; bottom: 12px; z-index: 20; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-pop); }
#sl-root .sl-bulk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
#sl-root .sl-sp { flex: 1 1 auto; }
#sl-root .sl-bulk-more > summary { cursor: pointer; list-style: none; font-size: 13px; font-weight: 650; color: var(--primary); }
#sl-root .sl-bulk-more > summary::-webkit-details-marker { display: none; }
#sl-root .sl-bulk-more > summary::before { content: "▸ "; }
#sl-root .sl-bulk-more[open] > summary::before { content: "▾ "; }
#sl-root .sl-bulk-more[open] > summary { margin-bottom: 10px; }
#sl-root .sl-bulk-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; }
#sl-root .sl-danger { color: var(--fail); }

/* SHORTLINK_GROUPS_TAB_V1: "Grup & Domain" tab */
#sl-root .pm-header-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
#sl-root .sl-add2 { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; font-weight: 650; }
#sl-root .sl-add2[hidden] { display: none; }
#sl-root .sl-add2 svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
#sl-root .sl-panel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--border); }
#sl-root .sl-panel-head h2 { margin: 0 0 3px; font-size: 15px; font-weight: 750; }
#sl-root .sl-panel-head .pm-small { margin: 0; }
#sl-root .sl-select { width: 100%; max-width: 260px; min-height: 34px; padding: 4px 10px; font-size: 13px; font-weight: 600; }
#sl-root .sl-select.is-free { color: var(--muted); font-weight: 500; }
#sl-root .sl-dlinks { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); } /* SL_DOMAIN_LOCK_V1 */
#sl-root .sl-select:disabled { opacity: .75; cursor: not-allowed; }
#sl-root .sl-hst { color: var(--muted); font-weight: 550; } /* SL_LINK_DOMAIN_V1: the link's domain before its slug */
#sl-root .sl-c-gname .sl-linkbtn { font-size: 14px; font-weight: 650; color: var(--text); text-align: left; }
#sl-root .sl-c-gname .sl-linkbtn:hover { color: var(--primary); text-decoration: underline; }
#sl-root .sl-gtable th:nth-child(1) { width: 24%; }
#sl-root .sl-gtable th:nth-child(3) { width: 130px; }
#sl-root .sl-gtable th:nth-child(4) { width: 130px; }
#sl-root .sl-gtable th:nth-child(5) { width: 96px; }
#sl-root .sl-gtable td.sl-c-gcount { font-variant-numeric: tabular-nums; font-weight: 650; }
#sl-root .sl-dtable th:nth-child(4) { width: 22%; }

@media (max-width: 900px) {
  #sl-root .rd-search-wrap { flex: 1 1 100%; max-width: none; min-width: 0; }
  #sl-root .rd-toolbar { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 12px; }
  #sl-root .rd-filters, #sl-root .rd-filters > *, #sl-root .rd-filters .rd-chips { min-width: 0; }
  #sl-root .rd-filter-row { flex-direction: column; align-items: stretch; gap: 8px; }
  #sl-root .rd-filter-row .rd-filter-label { padding-top: 0; }
  #sl-root .sl-bulk-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  #sl-root .rd-metrics .pm-metric small { display: none; }
  #sl-root .sl-grid2 { grid-template-columns: minmax(0, 1fr); }
  #sl-root .sl-inline { flex-wrap: wrap; }
  #sl-root .sl-inline > button { flex: 1 1 auto; }
  #sl-root :is(.sl-table, .sl-dtable) thead { display: none; }
  #sl-root :is(.sl-table, .sl-dtable), #sl-root :is(.sl-table, .sl-dtable) tbody { display: block; width: 100%; min-width: 0 !important; }
  #sl-root :is(.sl-table, .sl-dtable) tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px 14px 10px; border-top: 1px solid var(--border); }
  #sl-root :is(.sl-table, .sl-dtable) tr:first-child { border-top: 0; }
  #sl-root :is(.sl-table, .sl-dtable) td { display: block; padding: 0 !important; border: 0 !important; width: auto; min-width: 0; }
  #sl-root :is(.sl-table, .sl-dtable) td[colspan] { grid-column: 1 / -1; }
  #sl-root .sl-table { position: relative; }
  #sl-root .sl-table tr { grid-template-columns: 26px minmax(0, 1fr) auto; }
  #sl-root .sl-table .sl-c-pick { grid-column: 1; grid-row: 1; padding-top: 6px !important; }
  #sl-root .sl-table .rd-c-domain { grid-column: 2; grid-row: 1; }
  #sl-root .sl-table .rd-c-state { grid-column: 3; grid-row: 1; text-align: right; }
  #sl-root .sl-table .rd-c-target { grid-column: 2 / -1; grid-row: 2; padding-left: 42px !important; }
  #sl-root .sl-table .rd-c-group { grid-column: 2; grid-row: 3; align-self: center; padding-left: 42px !important; }
  #sl-root .sl-table td.rd-actions { grid-column: 1 / -1; grid-row: 4; display: flex; justify-content: flex-end; gap: 2px; margin-top: 4px; padding-top: 6px !important; border-top: 1px dashed var(--border) !important; }
  #sl-root .sl-dtable .rd-c-domain { grid-column: 1; grid-row: 1; }
  #sl-root .sl-dtable .rd-c-state { grid-column: 2; grid-row: 1; text-align: right; }
  #sl-root .sl-dtable .sl-c-note { grid-column: 1 / -1; grid-row: 2; padding-left: 42px !important; }
  #sl-root .sl-dtable .rd-c-group { grid-column: 1; grid-row: 3; align-self: center; padding-left: 42px !important; }
  #sl-root .sl-dtable td.rd-actions { grid-column: 2; grid-row: 3; display: flex; justify-content: flex-end; gap: 2px; }
  #sl-root .sl-gtable thead { display: none; }
  #sl-root .sl-gtable, #sl-root .sl-gtable tbody { display: block; width: 100%; min-width: 0 !important; }
  #sl-root .sl-gtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 10px; padding: 12px 14px; border-top: 1px solid var(--border); }
  #sl-root .sl-gtable tr:first-child { border-top: 0; }
  #sl-root .sl-gtable td { display: block; padding: 0 !important; border: 0 !important; width: auto; min-width: 0; }
  #sl-root .sl-gtable td[colspan] { grid-column: 1 / -1; }
  #sl-root .sl-gtable .sl-c-gname { grid-column: 1; grid-row: 1; }
  #sl-root .sl-gtable .rd-c-state { grid-column: 2; grid-row: 1; text-align: right; }
  #sl-root .sl-gtable .sl-c-gdomain { grid-column: 1 / -1; grid-row: 2; }
  #sl-root .sl-gtable .sl-c-gcount { grid-column: 1; grid-row: 3; align-self: center; color: var(--muted); font-weight: 500; }
  #sl-root .sl-gtable .sl-c-gcount::before { content: "Ads · AMP: "; }
  #sl-root .sl-gtable td.rd-actions { grid-column: 2; grid-row: 3; display: flex; justify-content: flex-end; gap: 2px; }
  #sl-root .sl-select { max-width: none; }
  #sl-root .sl-panel-head { padding: 14px; }
  #sl-root .pm-header-actions { display: grid; grid-template-columns: 1fr 1fr; }
  #sl-root .pm-header-actions:has(> .sl-add2[hidden]) { grid-template-columns: 1fr; }
  #sl-root .sl-bulk { bottom: 76px; padding: 10px; }
  #sl-root .sl-bulk-head { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  #sl-root .sl-bulk-head > strong { grid-column: 1 / 3; }
  #sl-root .sl-bulk-head > #sl-bulkprog { grid-column: 3 / -1; text-align: right; }
  #sl-root .sl-bulk-head > .sl-sp { display: none; }
  #sl-root .sl-bulk-head > button { min-height: 34px; padding: 4px 6px; font-size: 12.5px; }
}

/* FIT_SCREEN_V1: the deploy popups fit a 1366x768 laptop without scrolling.
   "Tambah konten": the folder / pages.dev / slash fields side by side.
   "Deploy AMP baru": main page + file on the left, AMP address on the right. */
@media (min-width: 900px) {
  .bulk-modal:not(.ao-dialog) .bulk-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 10px;
    align-items: end;
  }
  .bulk-modal:not(.ao-dialog) .bulk-card > :is(.form-grid, .tpl-detect, .amp-preview, .bulk-note) { grid-column: 1 / -1; }
  .bulk-modal:not(.ao-dialog) .bulk-card > .form-group { margin: 0; }
  .bulk-modal:not(.ao-dialog) .bulk-card > .bulk-card-toggle { align-self: center; }
  .bulk-modal:not(.ao-dialog) .bulk-card > .form-grid { row-gap: 10px; }
  .bulk-modal:not(.ao-dialog) .bulk-card > .form-grid > .form-group { margin: 0; }
}
@media (min-width: 1000px) {
  .ao-modal .ao-dialog { width: min(980px, 100%); }
  .ao-modal .modal-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    grid-template-areas: "now now" "main addr" "file addr" "prev addr" "err err";
  }
  .ao-modal .modal-body:not(:has(.ao-main)) { grid-template-areas: "now now" "file addr" "prev addr" "err err"; }
  .ao-modal .ao-now { grid-area: now; }
  .ao-modal .ao-main { grid-area: main; }
  .ao-modal .ao-addr { grid-area: addr; }
  .ao-modal .ao-file { grid-area: file; }
  .ao-modal .amp-preview { grid-area: prev; }
  .ao-modal .ao-error { grid-area: err; }
}
/* as-page popups: the buttons stay at the bottom of the screen (.modal has
   overflow: hidden !important, which would switch sticky off) */
.modal-backdrop.as-page .bulk-modal { overflow: visible !important; }
.modal-backdrop.as-page .modal-footer { position: sticky; bottom: 0; z-index: 2; background: var(--panel); border-radius: 0 0 inherit inherit; }
@media (max-height: 820px) and (min-width: 641px) { .modal-backdrop.as-page { padding-top: 10px; padding-bottom: 10px; } }
@media (max-width: 640px) {
  .modal-backdrop.as-page .modal-header { padding: 14px 16px; }
  .modal-backdrop.as-page .modal-header small { display: none; }
  .modal-backdrop.as-page .modal-body { padding: 12px 14px; gap: 10px; }
  .modal-backdrop.as-page .bulk-card { padding: 10px 12px; gap: 8px; }
  .modal-backdrop.as-page .bulk-card .form-grid { gap: 8px; }
  .modal-backdrop.as-page .form-group { gap: 4px; margin: 0; }
  .modal-backdrop.as-page .form-group input:not([type=checkbox]),
  .modal-backdrop.as-page .form-group select { min-height: 38px; height: 38px; }
  .modal-backdrop.as-page .form-group input[type=file] { height: auto; min-height: 0; padding: 6px; }
  .modal-backdrop.as-page .modal-body > .bulk-note { display: none; }
  .modal-backdrop.as-page .modal-footer { padding: 10px 14px; }
}
@media (max-width: 640px) {
  .ao-modal .ao-dialog { max-height: calc(100dvh - 16px); }
  .ao-modal .modal-header { padding: 14px 16px; }
  .ao-modal .modal-header small, .ao-modal .modal-header p { display: none; }
  .ao-modal .modal-body { padding: 12px 14px; gap: 8px; }
  .ao-modal .bulk-card { padding: 10px 12px; gap: 6px; }
  .ao-modal .form-group { gap: 4px; }
  .ao-modal .form-group input:not([type=checkbox]):not([type=file]), .ao-modal .form-group select { min-height: 38px; height: 38px; }
  .ao-modal .form-group input[type=file] { padding: 6px; }
  .ao-modal .ao-hint { font-size: 11.5px; }
  .ao-modal .modal-footer { padding: 10px 14px; }
}
/* FIT_SCREEN_V1: on a phone nothing scrolls sideways — the number cards and
   the filter chips wrap onto the next line instead of being a swipe row */
@media (max-width: 900px) {
  .stats,
  .pm-metrics,
  #gsc-root .gsc2-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding: 0 !important;
  }
  .stats,
  .pm-metrics,
  #gsc-root .gsc2-stats { grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)) !important; gap: 6px !important; }
  .stats .card,
  .pm-metric,
  #gsc-root .gsc2-stat { min-width: 0 !important; min-height: 0 !important; padding: 8px 10px !important; }
  .stats .card :is(span, h3, p:first-child),
  .pm-metric > span { font-size: 11px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stats .card strong,
  .pm-metric strong { font-size: 19px !important; line-height: 1.2 !important; }
  .stats .card :is(svg, .card-icon, i),
  .pm-metric :is(svg, i) { display: none !important; }
  .rd-chips,
  .act-filter,
  .pm-group-filter,
  #pm-root .pm-group-filter {
    flex-wrap: wrap !important;
    overflow: visible !important;
    max-width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
  }
}
/* FIT_SCREEN_V1: Redirect actions column fits its four icons (it overflowed
   a 1366 px laptop by 11 px) */
#rd-root .rd-table th:nth-child(6) { width: 186px; }
/* FIT_SCREEN_V1: the two Proyek tables (PBN sites, deploy history) become
   label/value cards on a phone instead of scrolling sideways */
@media (max-width: 640px) {
  #pm-root :is(.pm-cc-table, .pm-history table) { min-width: 0 !important; width: 100%; }
  #pm-root :is(.pm-cc-table, .pm-history table) thead { display: none; }
  #pm-root :is(.pm-cc-table, .pm-history table),
  #pm-root :is(.pm-cc-table, .pm-history table) tbody { display: block; }
  #pm-root :is(.pm-cc-table, .pm-history table) tbody tr {
    display: grid;
    gap: 4px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
  }
  #pm-root :is(.pm-cc-table, .pm-history table) tbody td {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    padding: 0 !important;
    border: 0 !important;
    overflow-wrap: anywhere;
    text-align: right;
  }
  #pm-root :is(.pm-cc-table, .pm-history table) tbody td[colspan] { justify-content: center; text-align: center; }
  #pm-root :is(.pm-cc-table, .pm-history table) tbody td:not([colspan])::before {
    flex: none;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
  }
  #pm-root .pm-cc-table td:nth-child(1)::before { content: "Peran"; }
  #pm-root .pm-cc-table td:nth-child(2)::before { content: "Nama host"; }
  #pm-root .pm-cc-table td:nth-child(3)::before { content: "ID situs PBN"; }
  #pm-root .pm-cc-table td:nth-child(4)::before { content: "Status PBN"; }
  #pm-root .pm-cc-table td:nth-child(5)::before { content: "Deploy"; }
  #pm-root .pm-history td:nth-child(1)::before { content: "Job"; }
  #pm-root .pm-history td:nth-child(2)::before { content: "Status"; }
  #pm-root .pm-history td:nth-child(3)::before { content: "Tahap"; }
  #pm-root .pm-history td:nth-child(4)::before { content: "Progress"; }
  #pm-root .pm-history td:nth-child(5)::before { content: "Percobaan"; }
  #pm-root .pm-history td:nth-child(6)::before { content: "Dibuat"; }
  #pm-root .pm-history td:nth-child(7)::before { content: "Log"; }
}
/* SL_CLICK_COPY_V1: the short link stays whole (it wraps instead of "…") */
#sl-root .rd-c-domain .dt-copy { width: auto; max-width: none; overflow: visible; white-space: normal; font-size: 14px; }
#sl-root .rd-c-domain .dt-copy-text { overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: break-word; }
#sl-root .rd-c-domain .dt-domain { display: flex; width: 100%; }
#sl-root .rd-c-domain .rd-domain-text { flex: 1 1 auto; align-items: flex-start; }

/* AMP_VALIDATE_V1: why a package is not valid for Google, one line each */
.bulk-issues { margin: 6px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--fail); }
.bulk-issues li { margin: 2px 0; overflow-wrap: anywhere; }
.ao-error { white-space: pre-line; overflow-wrap: anywhere; }

/* ERROR_HELP_V1: cause and fix under an error */
.err-help { margin: 6px 0 0; padding: 8px 10px; border-radius: 8px; background: var(--fail-bg); color: var(--text, inherit); font-size: 13px; line-height: 1.45; text-align: left; white-space: normal; }
.err-help p { margin: 0; }
.err-help p + p { margin-top: 3px; }
.err-help b { color: var(--fail); }
.err-fix { display: block; margin-top: 2px; color: var(--text, inherit); opacity: .85; }
.q-error-text { display: block; margin-top: 4px; font-size: 12px; color: var(--fail); overflow-wrap: anywhere; }
#toast { white-space: pre-line; }

/* =========================================================
   NEUTRAL_THEME_V1 — "Clean neutral" (2026-10-22).
   Light sidebar with hairline borders, neutral surfaces, one
   green accent, Inter. Only overrides; delete this block to
   go back to Pine.
   ========================================================= */

/* Inter variable (weights 100-900), SIL Open Font License, from
   @fontsource-variable/inter 5.1.0; latin + latin-ext subsets. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --bg: #f7f8f9;
  --panel: #ffffff;
  --panel-2: #f5f6f7;
  --border: #e8e9ec;
  --border-strong: #d8dadf;
  --text: #111318;
  --muted: #676c78;

  /* --sidebar stays a dark ink: tooltips, toast and the login backdrop use it */
  --sidebar: #17191d;
  --sidebar-2: #24272c;
  --mint: #6ee0b9;

  --nav-bg: #fbfbfc;
  --nav-hover: #f0f1f3;
  --nav-active: #eceef1;

  --primary: #0f7660;
  --primary-hover: #0b6352;
  --primary-soft: #e8f4f0;
  --ring: rgba(15, 118, 96, .22);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow-xs: 0 1px 2px rgba(16, 19, 24, .04);
  --shadow-sm: 0 1px 2px rgba(16, 19, 24, .05), 0 1px 3px rgba(16, 19, 24, .04);
  --shadow-pop: 0 16px 48px rgba(16, 19, 24, .16), 0 2px 6px rgba(16, 19, 24, .06);

  --selection-bg: #c8e8dd;
  --selection-text: #0b1f1b;
}

body.dark {
  --bg: #0c0d0f;
  --panel: #131417;
  --panel-2: #1a1c1f;
  --border: #25272b;
  --border-strong: #33363b;
  --text: #ececee;
  --muted: #8f939d;

  --sidebar: #2a2d32;
  --sidebar-2: #34373d;

  --nav-bg: #0f1012;
  --nav-hover: #1a1c1f;
  --nav-active: #1f2124;

  --primary: #3fbf9a;
  --primary-hover: #5acdab;
  --primary-soft: #14302a;
  --ring: rgba(63, 191, 154, .3);

  --shadow-xs: none;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-pop: 0 20px 56px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .05);

  --selection-bg: #24584c;
  --selection-text: #f2fbf8;
}

body {
  font-size: 14px;
  letter-spacing: -.003em;
  font-feature-settings: "cv11", "ss01";
  background: var(--bg);
}

/* ---------- Sidebar: light, hairline border ---------- */

.sidebar {
  width: 248px;
  padding: 18px 12px 14px;
  background: var(--nav-bg);
  border-right: 1px solid var(--border);
  color: var(--text);
}

.main {
  margin-left: 248px;
}

.sidebar .brand {
  gap: 10px;
  padding: 2px 8px 0;
  margin-bottom: 22px;
}

.sidebar .brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(16, 19, 24, .12);
}

body.dark .sidebar .brand-icon { color: #06201a; }

.sidebar .brand-icon .icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
}

.sidebar .brand strong {
  color: var(--text);
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.sidebar .brand small {
  color: var(--muted);
  font-size: 12px;
}

.sidebar nav {
  gap: 1px;
}

.sidebar nav a {
  gap: 10px;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 520;
}

.sidebar nav a .icon {
  width: 17px;
  height: 17px;
  opacity: 1;
}

.sidebar nav a:not(.disabled):hover {
  background: var(--nav-hover);
  color: var(--text);
}

.sidebar nav a.active,
.sidebar nav a[aria-current="page"] {
  background: var(--nav-active);
  color: var(--text);
  font-weight: 600;
}

.sidebar nav a.active::before,
.sidebar nav a[aria-current="page"]::before {
  display: none;
}

.sidebar nav a.active .icon,
.sidebar nav a[aria-current="page"] .icon {
  color: var(--primary);
}

/* Account box */
.sidebar .account-box {
  border-top: 1px solid var(--border);
  color: var(--muted);
  padding: 12px 8px 0;
}

.sidebar .account-avatar {
  width: 32px;
  height: 32px;
  background: var(--primary-soft);
  color: var(--primary);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 16%, transparent);
  font-size: 13px;
}

.sidebar .account-who strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.sidebar .account-who small,
.sidebar .account-who span {
  color: var(--muted);
}

.sidebar .account-btn,
.sidebar button.icon-btn.icon-btn {
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  box-shadow: var(--shadow-xs);
}

.sidebar .account-btn:hover,
.sidebar button.icon-btn.icon-btn:hover {
  background: var(--panel-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.sidebar ::selection {
  background: var(--selection-bg);
  color: var(--selection-text);
}

.sidebar :focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

/* ---------- Page header ---------- */

main h1,
.pm-header h1 {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.25;
}

header p:not(.sync-info),
.pm-subtitle {
  font-size: 13.5px;
  color: var(--muted);
}

/* ---------- Buttons: flatter, crisp edges ---------- */

button:where(:not([class*="pm-"]):not([class*="dm-"])) {
  min-height: 36px;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: -.005em;
}

button.secondary {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

button.secondary:hover {
  background: var(--panel-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.pm-btn {
  min-height: 34px;
  border-radius: 8px;
  font-weight: 560;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}

.pm-btn:hover {
  background: var(--panel-2);
  border-color: var(--border-strong);
  color: var(--text);
}

.pm-btn.pm-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(16, 19, 24, .1);
}

/* Header call-to-action buttons lose the coloured glow */
header button:not(.secondary):not(.icon-btn),
.pm-header-actions button:not(.secondary):not(.icon-btn),
.rd-add-btn,
.rd-add-btn:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 1px 2px rgba(16, 19, 24, .1) !important;
}

/* ---------- Inputs ---------- */

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  border-radius: 8px;
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, box-shadow .15s ease;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):focus,
select:focus,
textarea:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--ring) !important;
  outline: none;
}

/* ---------- Surfaces: one card language ---------- */

.panel,
.pm-panel,
.q-panel,
.stats .card,
.pm-metric,
.stats .card + .card,
.pm-metric + .pm-metric,
#gsc-root .gsc2-stat {
  border-color: var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.stats .card:hover,
.pm-metric:hover {
  transform: none;
  box-shadow: var(--shadow-sm);
  border-color: var(--border-strong);
}

.stats .card strong,
.pm-metric strong,
#gsc-root .gsc2-stat strong {
  font-weight: 650;
  letter-spacing: -.03em;
}

.stats .card span,
.pm-metric span,
.pm-metric > span:first-child {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 550;
}

.stats .card small,
.pm-metric small {
  color: var(--muted);
  font-size: 12px;
}

.pm-detail .pm-panel,
.pm-detail .pm-latest,
.pm-detail .pm-history {
  border-radius: 10px;
  box-shadow: none;
}

/* ---------- Tables ---------- */

table th {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
}

table thead th {
  background: var(--panel-2);
  border-bottom: 1px solid var(--border);
}

table tbody td {
  border-color: var(--border);
}

table tbody tr {
  transition: background-color .12s ease;
}

table tbody tr:hover > td {
  background: color-mix(in srgb, var(--panel-2) 70%, transparent);
}

/* TEAM_ACTIONS_WRAP_V1: a member row has up to 10 icon actions; forced onto
   one line they ran past the table's right edge on desktop (hidden behind
   the table's own scroll), so they wrap in a bounded column instead */
@media (min-width: 901px) {
  .team-actions { flex-wrap: wrap; width: 206px; margin-left: auto; }
  /* the role labels (Anggota · Redirect · Shortlink · Proyek · GSC …) wrap
     too: kept on one line they made the table wider than its panel */
  .team-table td:nth-child(2) { white-space: normal; }
}

/* ---------- Login: light backdrop, same brand mark as the sidebar ---------- */

.auth-screen {
  background:
    radial-gradient(900px 520px at 50% -10%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 65%),
    var(--bg);
}

.auth-card {
  border-radius: 16px;
  box-shadow: var(--shadow-pop);
}

.auth-brand {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 1px 2px rgba(16, 19, 24, .12);
}

body.dark .auth-brand { color: #06201a; }

.auth-brand .icon {
  width: 22px;
  height: 22px;
}

.auth-title {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -.025em;
}

/* ---------- Modal ---------- */

.modal-backdrop,
.modal-overlay {
  background: rgba(12, 13, 16, .42);
  backdrop-filter: blur(3px);
}

/* ---------- Phone: white top bar + bottom tab bar ---------- */

@media (max-width: 900px) {
  .sidebar {
    width: auto;
    padding: 10px 16px;
    background: var(--panel);
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .main {
    margin-left: 0;
  }

  .sidebar .brand {
    margin: 0;
    padding: 0;
  }

  .sidebar .account-box {
    border-top: 0;
    padding: 0;
  }

  .sidebar nav {
    background: color-mix(in srgb, var(--panel) 94%, transparent);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(16, 19, 24, .06);
    backdrop-filter: saturate(1.4) blur(12px);
  }

  .sidebar nav a {
    font-size: 10.5px;
    font-weight: 560;
  }

  .sidebar nav a .icon {
    width: 21px;
    height: 21px;
  }

  .sidebar nav a.active,
  .sidebar nav a[aria-current="page"] {
    background: transparent;
    color: var(--primary);
  }

  .sidebar nav a.active::before,
  .sidebar nav a[aria-current="page"]::before {
    display: block;
    background: var(--primary);
  }

  .sidebar nav .nav-more.is-current,
  .sidebar nav.more-open .nav-more {
    color: var(--primary);
  }

  .sidebar nav.more-open a:is([data-href="#buy"], [href="#buy"], [data-href="#gsc"], [href="#gsc"],
    [data-href="#convert"], [href="#convert"], [data-href="#team"], [href="#team"], [data-href="#pemantau"], [href="#pemantau"]) {
    background: var(--panel-2);
  }
}

/* PEMANTAU_V1: Pemantau page (#pt-root), laid out like the Shortlink page. */
#pt-root #pt-filters[hidden], #pt-root #pt-banner[hidden] { display: none !important; }
#pt-root .pt-tabs .seg-btn { min-width: 84px; justify-content: center; }
#pt-root .pt-out { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
#pt-root .pt-out svg { width: 15px; height: 15px; flex: none; }
#pt-root .pt-when { font-size: 12.5px; opacity: .9; }
#pt-root #pt-body { display: flex; flex-direction: column; gap: 18px; transition: opacity .2s; }
#pt-root #pt-body.pt-stale { opacity: .5; filter: grayscale(.6); }
#pt-root .pt-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
/* tabs left, service health + freshness right (like #sl-root .sl-subbar) */
#pt-root .pt-subbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: -6px; }
#pt-root .pt-status { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
#pt-root .pt-status:empty { display: none; }
#pt-root .pt-sep { opacity: .5; }
#pt-root .pt-dot { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--wait); vertical-align: 1px; }
#pt-root .pt-dot.is-ok { background: var(--live); box-shadow: 0 0 0 3px var(--live-bg); }
#pt-root .pt-dot.is-bad { background: var(--fail); box-shadow: 0 0 0 3px var(--fail-bg); }
#pt-root .pt-count { padding: 1px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 650; }
#pt-root .pt-count.is-warn { background: var(--wait-bg); color: var(--wait); }
#pt-root .pt-metrics { margin: 0; }
#pt-root .pt-metrics .pm-metric small { display: block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
#pt-root .pt-m-bad strong { color: var(--fail); }
/* icons by meaning, not by position (the .pm-metric:nth-child icons) */
#pt-root .pm-metric.pt-m-total { --tone: var(--primary); --tone-bg: var(--primary-soft);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/></svg>"); }
#pt-root .pm-metric.pt-m-ok { --tone: var(--live); --tone-bg: var(--live-bg);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='m8 12 3 3 5-6'/></svg>"); }
#pt-root .pm-metric.pt-m-bad { --tone: var(--fail); --tone-bg: var(--fail-bg);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M12 3 2 20h20L12 3z'/><path d='M12 10v4M12 17h.01'/></svg>"); }
#pt-root .pm-metric.pt-m-wait { --tone: var(--wait); --tone-bg: var(--wait-bg);
  --ico: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='9'/><path d='M12 8v4M12 16h.01'/></svg>"); }
@media (min-width: 641px) {
  #pt-root .pt-dom-table th:nth-child(1) { width: 27%; }
  #pt-root .pt-dom-table th:nth-child(2) { width: 17%; }
  #pt-root .pt-dom-table th:nth-child(3) { width: 9%; }
  #pt-root .pt-dom-table th:nth-child(4) { width: 25%; }
  #pt-root .pt-link-table th:nth-child(5) { width: 26%; }
}
#pt-root .pt-warns .pt-warn-t { font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
#pt-root .rd-panel { overflow: hidden; }
#pt-root .pt-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
#pt-root .pt-panel-head h2 { margin: 0; font-size: 15px; font-weight: 700; }
#pt-root .pt-panel-head .pt-out { margin-left: auto; }
#pt-root .pt-foot { margin: 0; padding: 10px 16px 14px; border-top: 1px solid var(--border); }
#pt-root .rd-table { table-layout: auto; }
#pt-root .rd-table td { padding-top: 11px; padding-bottom: 11px; vertical-align: top; white-space: normal; }
#pt-root .rd-table .dt-name { font-size: 14px; font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
#pt-root .rd-sub { margin: 2px 0 0; overflow-wrap: anywhere; }
#pt-root .pt-num { font-variant-numeric: tabular-nums; }
#pt-root .pt-url { color: var(--primary); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
#pt-root .pt-url:hover { text-decoration: underline; }
#pt-root .pt-used, #pt-root .pt-rec, #pt-root .pt-tag { display: inline-block; margin-top: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
#pt-root .pt-used { background: var(--run-bg); color: var(--run); }
#pt-root .pt-rec { background: var(--live-bg); color: var(--live); }
#pt-root .pt-tag { margin-top: 0; background: var(--primary-soft); color: var(--primary); }
#pt-root .pt-reach.is-ok { color: var(--live); }
#pt-root .pt-reach.is-bad { color: var(--fail); font-weight: 650; }
#pt-root .pt-warn-t { margin: 0; color: var(--wait); font-weight: 650; }
#pt-root .pt-warns p + p { margin-top: 4px; }
#pt-root .pt-ready { font-size: 16px; font-weight: 750; font-variant-numeric: tabular-nums; }
#pt-root .pt-ready.is-low { color: var(--fail); }
#pt-root .rd-actions { white-space: nowrap; text-align: right; }
.pt-events { list-style: none; margin: 0; padding: 4px 16px 12px; }
.pt-event { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.pt-event:first-child { border-top: 0; }
.pt-event time { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.pt-history .cd-card { width: min(560px, calc(100vw - 32px)); }
.pt-history .pt-hist-body { max-height: 60vh; overflow: auto; margin: 8px 0 16px; }
.pt-history .pt-events { padding: 0; }
@media (max-width: 640px) {
  #pt-root .rd-table thead { display: none; }
  #pt-root .rd-table, #pt-root .rd-table tbody { display: block; width: 100%; min-width: 0 !important; }
  #pt-root .rd-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px 12px; padding: 14px; border-top: 1px solid var(--border); }
  #pt-root .rd-table tr:first-child { border-top: 0; }
  #pt-root .rd-table td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
  #pt-root .rd-table td:first-child, #pt-root .rd-table td[colspan], #pt-root .rd-table td.pt-warns { grid-column: 1 / -1; }
  #pt-root .rd-table td[data-label]:not(:first-child)::before { content: attr(data-label); display: block; margin-bottom: 2px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
  #pt-root .rd-table td.rd-actions { grid-column: 1 / -1; text-align: left; }
  #pt-root .pt-panel-head .pt-out { margin-left: 0; }
  .pt-event { grid-template-columns: 1fr; }
  /* three cards side by side; the global auto-fit row cut their labels */
  #pt-root .pt-metrics.pt-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  #pt-root .pt-status { margin-left: 0; }
}
/* PEMANTAU_V1 phase 2: admin actions */
#pt-root .pm-header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#pt-root .pm-header-actions .pm-btn { display: inline-flex; align-items: center; gap: 6px; }
#pt-root .pm-header-actions .pm-btn svg { width: 15px; height: 15px; flex: none; }
#pt-root .rd-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
#pt-root .rd-toolbar .rd-search-wrap { flex: 1 1 260px; }
#pt-root .rd-add-btn svg, #pt-root .pt-panel-head .pm-btn svg { width: 15px; height: 15px; flex: none; }
#pt-root .rd-actions .pm-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); box-shadow: none; }
#pt-root .rd-actions .pm-btn svg { width: 17px; height: 17px; }
#pt-root .rd-actions .pm-btn:hover { background: var(--primary-soft); color: var(--primary); }
#pt-root .rd-actions .pm-btn.icon-del:hover { background: var(--fail-bg); color: var(--fail); }
#pt-root .rd-actions .pm-btn:disabled { opacity: .45; cursor: progress; }
@media (max-width: 640px) {
  #pt-root .rd-table td.rd-actions { display: flex !important; gap: 4px; justify-content: flex-end; padding-top: 6px !important; border-top: 1px dashed var(--border) !important; }
  #pt-root .rd-toolbar > * { flex: 1 1 100%; }
}
#pt-root .rd-table td.rd-actions { white-space: nowrap; text-align: right; }
#pt-root :is(.pm-header-actions, .pt-panel-head, .rd-toolbar) svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 641px) {
  #pt-root .pt-dom-table th:nth-child(1) { width: 25%; }
  #pt-root .pt-dom-table th:nth-child(4) { width: 22%; }
  #pt-root .pt-dom-table th:nth-child(6) { width: 164px; }
  #pt-root .pt-link-table th:nth-child(6) { width: 128px; }
  #pt-root .pt-acc-table th:nth-child(5) { width: 164px; }
}

/* =========================================================
   IVORY_ANDROID_V1 — "Ivory Android" (2026-10-29).
   Ceramic ivory surfaces with real 3D (light from top-left:
   bevels, a lip under raised parts, recessed fields), gold
   primary actions, Manrope + Syncopate (page titles), robot-eye
   metric icons, graphite dark mode. Overrides only: layout and
   button placement stay exactly as before. Delete this block to
   go back to Clean neutral.
   ========================================================= */

/* Manrope variable (400-800) + Syncopate 400/700, SIL Open Font
   License, from Google Fonts; latin + latin-ext subsets. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("/fonts/manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Syncopate"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/syncopate-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Syncopate"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/fonts/syncopate-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Syncopate"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/syncopate-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Syncopate"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/fonts/syncopate-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C4, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Syncopate", "Manrope", ui-sans-serif, system-ui, sans-serif;

  --bg: #e6e3dd;
  --panel: #fbfaf7;
  --panel-2: #f1eee8;
  --border: #dedad2;
  --border-strong: #cdc7bc;
  --text: #14172b;
  --muted: #555a6e;

  --nav-bg: #f6f4f0;
  --nav-hover: #ffffff;
  --nav-active: #14172b;

  --primary: #8a6a2c;
  --primary-hover: #74581f;
  --primary-soft: #f3ead6;
  --ring: rgba(154, 119, 51, .28);

  --gold-grad: linear-gradient(180deg, #fbf0d2 0%, #e3c47e 28%, #c69c4e 62%, #a07a33 100%);
  --gold-grad-hover: linear-gradient(180deg, #fdf5de 0%, #e9cd8c 28%, #cea65a 62%, #a9823a 100%);
  --gold-ink: #241906;
  --gold-lip: #7a5a1f;
  --ink-grad: linear-gradient(180deg, #3a4058 0%, #1a1e33 55%, #0a0c14 100%);
  --ceramic: linear-gradient(165deg, #ffffff 0%, #f8f6f2 55%, #eeebe5 100%);
  --ceramic-btn: linear-gradient(180deg, #ffffff 0%, #f1eee8 60%, #e4e0d8 100%);
  --lip: #c9c3b8;
  --lip-deep: #d0cabf;
  --bevel: inset 0 2px 0 #ffffff, inset 0 -3px 6px rgba(0, 0, 0, .04);
  --raise: 0 2px 0 #dcd7ce, 0 4px 0 var(--lip-deep), 0 8px 14px -6px rgba(20, 23, 43, .22), 0 26px 44px -30px rgba(20, 23, 43, .45);
  --raise-btn: inset 0 1px 0 #ffffff, inset 0 -2px 3px rgba(0, 0, 0, .06), 0 0 0 1px rgba(20, 23, 43, .1), 0 3px 0 var(--lip), 0 6px 10px -4px rgba(20, 23, 43, .3);
  --press-btn: inset 0 2px 4px rgba(0, 0, 0, .1), 0 0 0 1px rgba(20, 23, 43, .1), 0 1px 0 var(--lip);
  --recess: inset 0 3px 6px rgba(0, 0, 0, .1), inset 0 -1px 0 rgba(255, 255, 255, .8), 0 1px 0 #ffffff;
  --emboss: 0 1px 0 #ffffff;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-xs: 0 1px 0 #ffffff;
  --shadow-sm: var(--bevel), var(--raise);
  --shadow-pop: inset 0 2px 0 #ffffff, 0 3px 0 #d8d3ca, 0 6px 0 #c9c3b8, 0 40px 80px -30px rgba(10, 12, 20, .6);

  --live: #05603a;
  --live-bg: #e3f4ea;
  --run: #1f4fb8;
  --run-bg: #e5edfd;
  --wait: #7a4a00;
  --wait-bg: #fbefd6;
  --fail: #a3261a;
  --fail-bg: #fbe5e2;

  --selection-bg: #ecdcb5;
  --selection-text: #241906;
}

body.dark {
  --bg: #16181e;
  --panel: #24272f;
  --panel-2: #1c1e25;
  --border: #31343d;
  --border-strong: #3d414c;
  --text: #ecebe6;
  --muted: #a9acb8;

  --nav-bg: #1d2027;
  --nav-hover: #2c2f38;
  --nav-active: #ecebe6;

  --primary: #e3c47e;
  --primary-hover: #f0d698;
  --primary-soft: #3a3121;
  --ring: rgba(227, 196, 126, .3);

  --ink-grad: linear-gradient(180deg, #f4f1eb 0%, #e2ddd4 100%);
  --ceramic: linear-gradient(165deg, #2e313b 0%, #24272f 55%, #1c1e25 100%);
  --ceramic-btn: linear-gradient(180deg, #3b3f4b 0%, #30333d 60%, #272a32 100%);
  --lip: #0e0f13;
  --lip-deep: #0c0d10;
  --gold-lip: #5e4416;
  --bevel: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -3px 6px rgba(0, 0, 0, .25);
  --raise: 0 2px 0 #121318, 0 4px 0 var(--lip-deep), 0 8px 14px -6px rgba(0, 0, 0, .6), 0 26px 44px -30px rgba(0, 0, 0, .8);
  --raise-btn: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .45), 0 3px 0 var(--lip), 0 6px 10px -4px rgba(0, 0, 0, .65);
  --press-btn: inset 0 2px 5px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .45), 0 1px 0 var(--lip);
  --recess: inset 0 3px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .06);
  --emboss: 0 1px 0 rgba(0, 0, 0, .55);

  --shadow-xs: none;
  --shadow-sm: var(--bevel), var(--raise);
  --shadow-pop: inset 0 1px 0 rgba(255, 255, 255, .1), 0 3px 0 #121318, 0 6px 0 #0c0d10, 0 40px 80px -30px rgba(0, 0, 0, .85);

  --live: #7decb8;
  --live-bg: #173828;
  --run: #a9c8ff;
  --run-bg: #1b2a4a;
  --wait: #f7cb7a;
  --wait-bg: #3b2d12;
  --fail: #ffa79e;
  --fail-bg: #43201b;

  --selection-bg: #5a4a24;
  --selection-text: #fff8e6;
}

body { background: radial-gradient(1200px 700px at 78% -18%, #ffffff 0%, rgba(255, 255, 255, 0) 62%), var(--bg); background-attachment: fixed; }
body.dark { background: radial-gradient(1200px 700px at 78% -18%, #2c303b 0%, rgba(44, 48, 59, 0) 62%), var(--bg); background-attachment: fixed; }

/* ---------- Sidebar (desktop): ceramic shell ---------- */
@media (min-width: 901px) {
  .sidebar {
    background: var(--ceramic);
    border-right: 0;
    box-shadow: inset -1px 0 0 rgba(20, 23, 43, .06), inset 2px 0 0 rgba(255, 255, 255, .6), 6px 0 18px -10px rgba(20, 23, 43, .3);
  }
  body.dark .sidebar { box-shadow: inset -1px 0 0 rgba(0, 0, 0, .5), inset 1px 0 0 rgba(255, 255, 255, .04), 6px 0 18px -10px rgba(0, 0, 0, .7); }
  .sidebar nav a:not(.disabled):hover {
    background: var(--ceramic-btn);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 var(--lip), 0 4px 8px -4px rgba(20, 23, 43, .25);
  }
  body.dark .sidebar nav a:not(.disabled):hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 2px 0 var(--lip), 0 4px 8px -4px rgba(0, 0, 0, .6); }
  .sidebar nav a.active,
  .sidebar nav a[aria-current="page"] {
    background: var(--ink-grad);
    color: #ffffff;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26), inset 0 -2px 4px rgba(0, 0, 0, .45), 0 3px 0 #05060a, 0 10px 18px -8px rgba(10, 12, 20, .7);
  }
  .sidebar nav a.active,
  .sidebar nav a.active .icon,
  .sidebar nav a[aria-current="page"] .icon { color: #ffffff; }
  body.dark .sidebar nav a.active,
  body.dark .sidebar nav a.active .icon,
  body.dark .sidebar nav a[aria-current="page"],
  body.dark .sidebar nav a[aria-current="page"] .icon { color: #14172b; }
  body.dark .sidebar nav a.active,
  body.dark .sidebar nav a[aria-current="page"] { box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 3px rgba(0, 0, 0, .12), 0 3px 0 #8e887d, 0 10px 18px -8px rgba(0, 0, 0, .8); }
  .sidebar nav a.active::before,
  .sidebar nav a[aria-current="page"]::before {
    background: radial-gradient(circle at 35% 30%, #e6f0ff, #4f93ff);
    box-shadow: 0 0 8px rgba(47, 123, 255, .8);
  }
  .sidebar .account-box {
    border-top: 0;
    border-radius: 18px;
    background: var(--panel-2);
    box-shadow: var(--recess);
  }
}

/* Brand mark: robot eye (gold ring, blue LED) */
.sidebar .brand-icon,
.auth-brand {
  position: relative;
  background: radial-gradient(circle at 35% 28%, #3a4058, #0a0c14 72%);
  border-radius: 50%;
  color: transparent;
  box-shadow: inset 0 3px 5px rgba(255, 255, 255, .22), inset 0 -4px 8px rgba(0, 0, 0, .7), 0 0 0 3px #f3f0ea, 0 0 0 4px rgba(20, 23, 43, .1), 0 8px 14px -6px rgba(10, 12, 20, .55);
}
body.dark .sidebar .brand-icon,
body.dark .auth-brand { box-shadow: inset 0 3px 5px rgba(255, 255, 255, .2), inset 0 -4px 8px rgba(0, 0, 0, .7), 0 0 0 3px #30333d, 0 0 0 4px rgba(0, 0, 0, .4), 0 8px 14px -6px rgba(0, 0, 0, .7); color: transparent; }
.sidebar .brand-icon .icon,
.auth-brand .icon { opacity: 0; }
.sidebar .brand-icon::before,
.auth-brand::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: conic-gradient(#f7eac6, #d4b26a, #9a7733, #eedaa4, #f7eac6);
  -webkit-mask: radial-gradient(circle, transparent 52%, #000 54%);
  mask: radial-gradient(circle, transparent 52%, #000 54%);
}
.sidebar .brand-icon::after,
.auth-brand::after {
  content: "";
  position: absolute;
  inset: 36%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e6f0ff, #5b9bff 45%, #1f5bd6);
  box-shadow: 0 0 10px 2px rgba(47, 123, 255, .6);
}
.sidebar .brand strong { letter-spacing: .02em; }
.sidebar .account-avatar {
  background: radial-gradient(circle at 34% 28%, #fff6dd 0%, #e2c47e 35%, #a9843d 75%, #7e5f23 100%);
  color: var(--gold-ink);
  box-shadow: inset 0 -3px 5px rgba(0, 0, 0, .2), 0 2px 0 #6e521a, 0 5px 9px -4px rgba(20, 23, 43, .4);
}

/* ---------- Page titles ---------- */
.pm-header h1,
.main > header h1,
.auth-title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  text-shadow: var(--emboss), 0 3px 6px rgba(20, 23, 43, .14);
}
body.dark .pm-header h1,
body.dark .main > header h1,
body.dark .auth-title { text-shadow: var(--emboss), 0 3px 6px rgba(0, 0, 0, .35); }

/* ---------- Surfaces: ceramic slabs with thickness ---------- */
.panel,
.pm-panel,
.q-panel,
.stats .card,
.pm-metric,
#gsc-root .gsc2-stat {
  background: var(--ceramic);
  border-color: transparent;
  box-shadow: var(--bevel), var(--raise);
}
.stats .card:hover,
.pm-metric:hover {
  border-color: transparent;
  box-shadow: var(--bevel), var(--raise);
}
.pm-detail .pm-panel,
.pm-detail .pm-latest,
.pm-detail .pm-history {
  background: var(--panel-2);
  box-shadow: var(--recess);
}
.stats .card strong,
.pm-metric strong,
#gsc-root .gsc2-stat strong {
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums lining-nums;
  text-shadow: var(--emboss);
}

/* Metric icon becomes a robot eye: ceramic socket + LED that looks around */
@keyframes ivoryLook {
  0%, 14% { transform: translate(0, 0) scaleY(1); }
  20%, 34% { transform: translate(-4px, -1px) scaleY(1); }
  40%, 54% { transform: translate(4px, 1px) scaleY(1); }
  60%, 72% { transform: translate(0, -3px) scaleY(1); }
  78%, 88% { transform: translate(0, 0) scaleY(1); }
  91% { transform: translate(0, 0) scaleY(.12); }
  94%, 100% { transform: translate(0, 0) scaleY(1); }
}
.stats .card::after,
.pm-metric::after {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle closest-side at 50% 50%, #2b3045 0%, #0a0c14 50%, rgba(10, 12, 20, .5) 54%, transparent 57%), radial-gradient(circle at 34% 28%, #ffffff 0%, #eeeae3 45%, #cfc9be 100%);
  box-shadow: inset 0 2px 3px #ffffff, inset 0 -3px 6px rgba(0, 0, 0, .14), 0 3px 0 #c6c0b4, 0 7px 12px -6px rgba(20, 23, 43, .4);
}
body.dark .stats .card::after,
body.dark .pm-metric::after {
  background: radial-gradient(circle closest-side at 50% 50%, #2b3045 0%, #0a0c14 50%, rgba(10, 12, 20, .5) 54%, transparent 57%), radial-gradient(circle at 34% 28%, #5a5f6e 0%, #3a3e4a 45%, #1f2128 100%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .12), inset 0 -3px 6px rgba(0, 0, 0, .45), 0 3px 0 #0c0d10, 0 7px 12px -6px rgba(0, 0, 0, .7);
}
.stats .card::before,
.pm-metric::before {
  top: 30px;
  right: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  -webkit-mask: none;
  mask: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), var(--tone, var(--primary)) 55%);
  box-shadow: 0 0 9px 1px var(--tone, var(--primary));
  animation: ivoryLook 6s ease-in-out infinite;
}
.stats .card:nth-child(2)::before, .pm-metric:nth-child(2)::before { animation-delay: -1.4s; }
.stats .card:nth-child(3)::before, .pm-metric:nth-child(3)::before { animation-delay: -2.8s; }
.stats .card:nth-child(4)::before, .pm-metric:nth-child(4)::before { animation-delay: -4.1s; }
.stats .card:nth-child(5)::before, .pm-metric:nth-child(5)::before { animation-delay: -5.2s; }
/* GSC page has its own icon element: same eye */
#gsc-root .gsc2-stat-ico {
  position: relative;
  border-radius: 50%;
  background: radial-gradient(circle closest-side at 50% 50%, #2b3045 0%, #0a0c14 50%, rgba(10, 12, 20, .5) 54%, transparent 57%), radial-gradient(circle at 34% 28%, #ffffff 0%, #eeeae3 45%, #cfc9be 100%);
  box-shadow: inset 0 2px 3px #ffffff, inset 0 -3px 6px rgba(0, 0, 0, .14), 0 3px 0 #c6c0b4, 0 7px 12px -6px rgba(20, 23, 43, .4);
}
body.dark #gsc-root .gsc2-stat-ico {
  background: radial-gradient(circle closest-side at 50% 50%, #2b3045 0%, #0a0c14 50%, rgba(10, 12, 20, .5) 54%, transparent 57%), radial-gradient(circle at 34% 28%, #5a5f6e 0%, #3a3e4a 45%, #1f2128 100%);
  box-shadow: inset 0 2px 3px rgba(255, 255, 255, .12), inset 0 -3px 6px rgba(0, 0, 0, .45), 0 3px 0 #0c0d10, 0 7px 12px -6px rgba(0, 0, 0, .7);
}
#gsc-root .gsc2-stat-ico svg { opacity: 0; }
#gsc-root .gsc2-stat-ico::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), var(--tone, var(--primary)) 55%);
  box-shadow: 0 0 9px 1px var(--tone, var(--primary));
  animation: ivoryLook 6s ease-in-out infinite;
}
#gsc-root .gsc2-stat:nth-child(2) .gsc2-stat-ico::after { animation-delay: -1.4s; }
#gsc-root .gsc2-stat:nth-child(3) .gsc2-stat-ico::after { animation-delay: -2.8s; }
#gsc-root .gsc2-stat:nth-child(4) .gsc2-stat-ico::after { animation-delay: -4.1s; }

/* ---------- Buttons: physical, with a lip; pressed on click ---------- */
button.secondary,
.pm-btn:not(.pm-primary) {
  background: var(--ceramic-btn);
  border-color: transparent;
  color: var(--text);
  box-shadow: var(--raise-btn);
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
button.secondary:hover,
.pm-btn:not(.pm-primary):hover {
  background: var(--panel);
  border-color: transparent;
  color: var(--text);
}
button.secondary:active,
.pm-btn:not(.pm-primary):not(:disabled):active {
  transform: translateY(2px);
  box-shadow: var(--press-btn);
}
/* Primary calls to action: gold */
.pm-btn.pm-primary,
.rd-add-btn,
header button:not(.secondary):not(.icon-btn):not(.modal-close),
.pm-header-actions button:not(.secondary):not(.icon-btn):not(.pm-btn) {
  background: var(--gold-grad) !important;
  border-color: transparent !important;
  color: var(--gold-ink) !important;
  font-weight: 750;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), inset 0 -2px 3px rgba(80, 55, 10, .25), 0 0 0 1px rgba(110, 82, 26, .45), 0 3px 0 var(--gold-lip), 0 7px 12px -5px rgba(122, 90, 31, .5) !important;
  transition: transform .08s ease, box-shadow .08s ease;
  /* GOLD_EDGE_V1 (owner 2026-10-30): .pm-btn keeps a 1px transparent
     border; with the default padding-box origin the gold gradient repeated
     under it as a dark line on top and a light line at the bottom (Beli
     Domain "Cek harga"/"Beli"), so start it at the border edge like the
     borderless Tambah redirect button. */
  background-origin: border-box !important;
}
.pm-btn.pm-primary:hover,
.rd-add-btn:hover,
header button:not(.secondary):not(.icon-btn):not(.modal-close):hover,
.pm-header-actions button:not(.secondary):not(.icon-btn):not(.pm-btn):hover { background: var(--gold-grad-hover) !important;  background-origin: border-box !important; } /* GOLD_EDGE_V1: the shorthand above resets the origin */
.pm-btn.pm-primary:not(:disabled):active,
.rd-add-btn:active,
header button:not(.secondary):not(.icon-btn):not(.modal-close):active,
.pm-header-actions button:not(.secondary):not(.icon-btn):not(.pm-btn):active {
  transform: translateY(2px);
  box-shadow: inset 0 2px 4px rgba(80, 55, 10, .3), 0 0 0 1px rgba(110, 82, 26, .45), 0 1px 0 var(--gold-lip) !important;
}
.rd-add-btn svg, .pm-btn.pm-primary svg { stroke: currentColor; }
/* generic filled buttons: bronze with white text (text-safe contrast) */
body:not(.dark) button:where(:not(.secondary):not(.modal-close):not([class*="pm-"]):not([class*="dm-"])) { color: #ffffff; }
/* Confirm/form dialog buttons */
.cd-dialog .cd-btn:not(.cd-danger):not(.cd-primary),
.fd-dialog button.secondary { background: var(--ceramic-btn); color: var(--text); box-shadow: var(--raise-btn); border-color: transparent; }
.cd-dialog .cd-primary { background: var(--gold-grad); color: var(--gold-ink); border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(110, 82, 26, .45), 0 3px 0 var(--gold-lip), 0 7px 12px -5px rgba(122, 90, 31, .5); }
.cd-dialog .cd-danger { background: linear-gradient(180deg, #f27d71 0%, #dc4438 55%, #ae2620 100%); color: #ffffff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 3px 0 #7c1914, 0 7px 12px -5px rgba(174, 38, 32, .5); }
body.dark .cd-dialog .cd-danger,
body.dark .cd-dialog .cd-danger:hover:not(:disabled) { background: linear-gradient(180deg, #f27d71 0%, #dc4438 55%, #ae2620 100%); color: #ffffff; }

/* ---------- Segmented chips: raised; the selected one pressed in ---------- */
.seg-btn {
  background: var(--ceramic-btn);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px rgba(20, 23, 43, .08), 0 2px 0 var(--lip);
}
.seg-btn[aria-pressed="true"],
.seg-btn.is-active,
.seg-btn.active {
  background: linear-gradient(180deg, #0a0c14, #1a1e33);
  color: #ffffff;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .7), 0 0 0 1px #05060a;
}
body.dark .seg-btn[aria-pressed="true"],
body.dark .seg-btn.is-active,
body.dark .seg-btn.active {
  background: linear-gradient(180deg, #d9d4ca, #f1eee8);
  color: #14172b;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .5);
}
.seg-btn[aria-pressed="true"] .seg-count { background: var(--gold-grad); color: var(--gold-ink); }

/* ---------- Fields: recessed ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea {
  background-color: var(--panel-2);
  border-color: transparent;
  box-shadow: var(--recess);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--text); }
body.dark input[type="checkbox"], body.dark input[type="radio"] { accent-color: var(--primary); }

/* ---------- Tables ---------- */
table thead th {
  background: linear-gradient(180deg, var(--panel-2), color-mix(in srgb, var(--panel-2) 85%, var(--border)));
  text-shadow: var(--emboss);
}

/* ---------- Status badges: small raised lozenges ---------- */
.pm-badge,
.dt-status,
.bulk-pill,
.amp-status {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 0 rgba(20, 23, 43, .1);
}
body.dark :is(.pm-badge, .dt-status, .bulk-pill, .amp-status) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 1px 0 rgba(0, 0, 0, .4); }

/* ---------- Dialogs ---------- */
.cd-card,
.fd-dialog .cd-card,
.modal {
  background: var(--ceramic);
  box-shadow: var(--shadow-pop);
}
.cd-title,
.modal-header h2,
.modal-header h3 { text-shadow: var(--emboss); }

/* ---------- Login ---------- */
.auth-card {
  background: var(--ceramic);
  border-color: transparent;
  box-shadow: var(--shadow-pop);
}

/* No initial tile in front of domain / user / link names (owner request) */
.dt-avatar,
#gsc-root .gsc2-avatar { display: none !important; }
/* without the tile the name gets the whole cell, so it is only cut with "…"
   when it really does not fit (no shrink-to-fit guess on the first layout) */
td .dt-domain { display: flex; width: 100%; max-width: 100%; }
td .dt-domain > :is(.dt-copy, .dt-name, .rd-domain-text, span:not(.dt-avatar)) { flex: 1 1 auto; min-width: 0; }
td .dt-domain > .dt-copy { justify-content: flex-start; text-align: left; }

@media (prefers-reduced-motion: reduce) {
  .stats .card::before, .pm-metric::before, #gsc-root .gsc2-stat-ico::after { animation: none; }
}

/* =========================================================
   IVORY_ANDROID_V2 — closer to the approved mockup (2026-10-29):
   floating ceramic sidebar, pill buttons/chips/nav, thicker and
   smoother 3D (two-step lip + soft drop), metrics joined into one
   ceramic slab with dividers, (no background ornament). Overrides V1 only; button order and placement stay.
   ========================================================= */
:root {
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --raise: 0 2px 0 #dcd7ce, 0 5px 0 #d0cabf, 0 9px 16px -6px rgba(20, 23, 43, .24), 0 34px 54px -30px rgba(20, 23, 43, .5);
  --raise-btn: inset 0 1px 0 #ffffff, inset 0 -2px 3px rgba(0, 0, 0, .06), 0 0 0 1px rgba(20, 23, 43, .1), 0 3px 0 #c9c3b8, 0 7px 12px -5px rgba(20, 23, 43, .32);
  --press-btn: inset 0 1px 0 #ffffff, inset 0 2px 4px rgba(0, 0, 0, .08), 0 0 0 1px rgba(20, 23, 43, .1), 0 1px 0 #c9c3b8, 0 2px 4px -2px rgba(20, 23, 43, .3);
  --recess: inset 0 3px 6px rgba(0, 0, 0, .12), inset 0 -1px 0 rgba(255, 255, 255, .8), 0 1px 0 #ffffff;
  --ease-press: transform .09s ease, box-shadow .09s ease, background .2s ease, color .2s ease;
}
body.dark {
  --raise: 0 2px 0 #121318, 0 5px 0 #0c0d10, 0 9px 16px -6px rgba(0, 0, 0, .6), 0 34px 54px -30px rgba(0, 0, 0, .85);
  --raise-btn: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .45), 0 3px 0 #0e0f13, 0 7px 12px -5px rgba(0, 0, 0, .7);
  --press-btn: inset 0 2px 5px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .45), 0 1px 0 #0e0f13;
  --recess: inset 0 3px 6px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .06);
}

@media (min-width: 901px) {
  /* floating ceramic sidebar */
  .sidebar {
    top: 14px;
    bottom: 14px;
    left: 14px;
    width: 240px;
    padding: 20px 12px 14px;
    border-radius: 30px;
    background: linear-gradient(160deg, #ffffff 0%, #f6f4f0 45%, #e6e2da 100%);
    box-shadow: inset 0 2px 0 #ffffff, inset 2px 0 0 rgba(255, 255, 255, .7), inset 0 -6px 12px rgba(0, 0, 0, .05), 0 2px 0 #d8d3ca, 0 5px 0 #ccc6bb, 0 10px 16px -6px rgba(20, 23, 43, .28), 0 40px 60px -30px rgba(20, 23, 43, .5);
  }
  body.dark .sidebar {
    background: linear-gradient(160deg, #30333d 0%, #262931 50%, #1c1e25 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), inset 1px 0 0 rgba(255, 255, 255, .04), inset 0 -6px 12px rgba(0, 0, 0, .3), 0 2px 0 #121318, 0 5px 0 #0c0d10, 0 10px 16px -6px rgba(0, 0, 0, .65), 0 40px 60px -30px rgba(0, 0, 0, .85);
  }
  .main { margin-left: 268px; }
  .sidebar nav a { border-radius: 999px; transition: var(--ease-press); }
  .sidebar .account-box { border-radius: 22px; padding: 12px; }
}

/* ---------- pills: buttons, chips, segmented controls ---------- */
button.secondary,
.pm-btn:not(.icon-btn),
.rd-add-btn,
.pm-header-actions button:not(.icon-btn),
header button:not(.icon-btn):not(.modal-close),
.cd-dialog .cd-btn,
.fd-dialog button,
.seg-btn,
.buy-chip {
  border-radius: 999px !important;
  transition: var(--ease-press);
}
.icon-btn,
.pm-btn.icon-btn { border-radius: 14px !important; }
.seg { gap: 6px; }
button:where(:not(.secondary):not(.modal-close):not([class*="pm-"]):not([class*="dm-"])) { border-radius: 999px; }

/* ---------- fields ---------- */
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea { border-radius: 14px; background-image: linear-gradient(180deg, rgba(0, 0, 0, .025), rgba(255, 255, 255, .25)); }
body.dark :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { background-image: linear-gradient(180deg, rgba(0, 0, 0, .25), rgba(255, 255, 255, .02)); }

/* ---------- surfaces: rounder, thicker ---------- */
.panel,
.pm-panel,
.q-panel,
.cd-card,
.modal,
.auth-card { border-radius: 26px; }

/* ---------- metrics: one ceramic slab with dividers ---------- */
.stats,
.pm-metrics,
#gsc-root .gsc2-stats {
  gap: 0;
  border: 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--ceramic);
  box-shadow: var(--bevel), var(--raise);
}
.stats .card,
.stats .card + .card,
.pm-metric,
.pm-metric + .pm-metric,
#gsc-root .gsc2-stat {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: inset 1px 0 0 rgba(20, 23, 43, .08), inset 2px 0 0 rgba(255, 255, 255, .8);
}
.stats .card:hover,
.pm-metric:hover { box-shadow: inset 1px 0 0 rgba(20, 23, 43, .08), inset 2px 0 0 rgba(255, 255, 255, .8); background: rgba(255, 255, 255, .35); }
.stats .card:first-child,
.pm-metric:first-child,
#gsc-root .gsc2-stat:first-child { box-shadow: none; }
body.dark :is(.stats .card, .pm-metric, #gsc-root .gsc2-stat) { box-shadow: inset 1px 0 0 rgba(0, 0, 0, .45), inset 2px 0 0 rgba(255, 255, 255, .04); }
body.dark :is(.stats .card, .pm-metric):hover { background: rgba(255, 255, 255, .03); }
body.dark :is(.stats .card:first-child, .pm-metric:first-child, #gsc-root .gsc2-stat:first-child) { box-shadow: none; }
.stats .card::after,
.pm-metric::after { width: 46px; height: 46px; top: 16px; right: 16px; }
.stats .card::before,
.pm-metric::before { top: 32px; right: 32px; width: 14px; height: 14px; }
#gsc-root .gsc2-stat-ico { width: 46px; height: 46px; }

/* ---------- tables: softer header band, gentle hover ---------- */
table thead th { box-shadow: inset 0 -1px 0 rgba(20, 23, 43, .08), inset 0 1px 0 rgba(255, 255, 255, .8); }
body.dark table thead th { box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04); }
table tbody tr:hover > td { background: rgba(255, 255, 255, .55); }
body.dark table tbody tr:hover > td { background: rgba(255, 255, 255, .035); }

/* ---------- smooth hover on raised parts ---------- */
.pm-btn:not(.pm-primary):not(:disabled):hover,
button.secondary:not(:disabled):hover { box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 3px rgba(0, 0, 0, .05), 0 0 0 1px rgba(20, 23, 43, .14), 0 3px 0 #c9c3b8, 0 9px 14px -6px rgba(20, 23, 43, .36); }
body.dark :is(.pm-btn:not(.pm-primary), button.secondary):not(:disabled):hover { box-shadow: var(--raise-btn); background: #3c404c; }

/* =========================================================
   IVORY_ANDROID_V3 — navigation and status in 3D like the
   approved mockup (2026-10-29): sidebar items as raised keycaps,
   active item an ink pill with a blue LED, selected chips/tabs
   pressed in; every status badge a raised lozenge with a lit LED
   in the mockup colours (green ok, amber wait, red fail, blue
   running, grey idle). Overrides only.
   ========================================================= */
:root {
  --st-ok-bg: linear-gradient(180deg, #f2fbf6 0%, #d6f1e1 100%);  --st-ok-fg: #04603a;  --st-ok-led: #12b76a;
  --st-wait-bg: linear-gradient(180deg, #fff8e9 0%, #f9e3b8 100%); --st-wait-fg: #7a4a00; --st-wait-led: #f0a020;
  --st-bad-bg: linear-gradient(180deg, #fff2f0 0%, #f9d5cf 100%);  --st-bad-fg: #a3261a;  --st-bad-led: #e5483a;
  --st-info-bg: linear-gradient(180deg, #f2f6ff 0%, #d5e3fd 100%); --st-info-fg: #1f4fb8; --st-info-led: #2f7bff;
  --st-idle-bg: linear-gradient(180deg, #f7f5f1 0%, #e3dfd7 100%); --st-idle-fg: #3f4357; --st-idle-led: #8d92a3;
  --st-bevel: inset 0 1px 0 rgba(255, 255, 255, .85), inset 0 -1px 2px rgba(0, 0, 0, .07), 0 0 0 1px rgba(20, 23, 43, .07), 0 2px 0 rgba(20, 23, 43, .12), 0 3px 6px -3px rgba(20, 23, 43, .3);
}
body.dark {
  --st-ok-bg: linear-gradient(180deg, rgba(18, 183, 106, .32), rgba(18, 183, 106, .16));  --st-ok-fg: #8ff2c4;  --st-ok-led: #3fe39a;
  --st-wait-bg: linear-gradient(180deg, rgba(240, 160, 32, .32), rgba(240, 160, 32, .16)); --st-wait-fg: #ffd68c; --st-wait-led: #ffb238;
  --st-bad-bg: linear-gradient(180deg, rgba(229, 72, 58, .34), rgba(229, 72, 58, .17));   --st-bad-fg: #ffb2aa;  --st-bad-led: #ff6a5c;
  --st-info-bg: linear-gradient(180deg, rgba(79, 147, 255, .34), rgba(79, 147, 255, .17)); --st-info-fg: #b8d3ff; --st-info-led: #6aa8ff;
  --st-idle-bg: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .06)); --st-idle-fg: #d0d2db; --st-idle-led: #a3a7b6;
  --st-bevel: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -1px 2px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 0 rgba(0, 0, 0, .5), 0 3px 6px -3px rgba(0, 0, 0, .7);
}

/* ---------- status lozenges ---------- */
:is(.pm-badge, .dt-status, .q-state, #gsc-root .gsc2-pill, #pm-gsc .gsc3-pill, .bulk-pill, .domain-table .renew, .pc-flag) {
  --st-bg: var(--st-idle-bg); --st-fg: var(--st-idle-fg); --st-led: var(--st-idle-led);
  display: inline-flex !important;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--st-bg) !important;
  color: var(--st-fg) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  line-height: 16px !important;
  letter-spacing: .04em !important;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--st-bevel) !important;
}
:is(.pm-badge, .dt-status, .q-state, #gsc-root .gsc2-pill, #pm-gsc .gsc3-pill, .bulk-pill, .domain-table .renew):not(.pm-deleting):not(.pm-reinstalling)::before {
  content: "" !important;
  display: inline-block !important;
  flex: none;
  width: 7px !important;
  height: 7px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), var(--st-led) 58%) !important;
  box-shadow: 0 0 6px 1px var(--st-led) !important;
  animation: none !important;
}
.pm-badge.pm-live::first-letter, #gsc-root .gsc2-pill.is-ok::first-letter { text-transform: none; }
/* ok */
:is(.pm-badge.pm-live, .q-state.is-on, .dt-status.st-active, #gsc-root .gsc2-pill.is-ok, #pm-gsc .gsc3-pill.is-ok, .bulk-pill.ok, .domain-table .renew-on) { --st-bg: var(--st-ok-bg); --st-fg: var(--st-ok-fg); --st-led: var(--st-ok-led); }
/* waiting */
:is(.pm-badge.pm-queued, .q-state.is-paused, .pm-badge.pm-unused, .pm-badge.pm-reinstalling, #gsc-root .gsc2-pill.is-wait, #pm-gsc .gsc3-pill.is-wait, .bulk-pill.warn) { --st-bg: var(--st-wait-bg); --st-fg: var(--st-wait-fg); --st-led: var(--st-wait-led); }
/* failure */
:is(.pm-badge.pm-failed, .pm-badge.pm-deleting, .dt-status.st-expired, #gsc-root .gsc2-pill.is-bad, #pm-gsc .gsc3-pill.is-bad, .bulk-pill.fail, .pc-flag.is-fail) { --st-bg: var(--st-bad-bg); --st-fg: var(--st-bad-fg); --st-led: var(--st-bad-led); }
/* running */
:is(.pm-badge.pm-running, .pc-flag.is-busy) { --st-bg: var(--st-info-bg); --st-fg: var(--st-info-fg); --st-led: var(--st-info-led); }
/* idle / off */
:is(.pm-badge.pm-idle, .dt-status.st-missing, .dt-status.st-other, .domain-table .renew-off) { --st-bg: var(--st-idle-bg); --st-fg: var(--st-idle-fg); --st-led: var(--st-idle-led); }
.pc-flag i { box-shadow: 0 0 6px currentColor; }
/* content card state ("Aktif · tanggal"): lit LED, sharper text */
.pc-state.is-live { color: var(--st-ok-fg) !important; font-weight: 700; }
.pc-state i { box-shadow: 0 0 6px currentColor; }

/* usage chips (Proyek / Redirect / AMP / Shortlink / Belum dipakai): small raised tags */
:is(.dt-use-project, .dt-use-redirect, .dt-use-amp, .dt-use-shortlink, .dt-use-spendwatch, .dt-use-none) {
  border-radius: 8px !important;
  font-weight: 800 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(20, 23, 43, .07), 0 2px 0 rgba(20, 23, 43, .1);
}
.dt-use-project { background: linear-gradient(180deg, #fbf3df, #f0e0b8) !important; color: #6e521a !important; }
.dt-use-redirect { background: var(--st-info-bg) !important; color: var(--st-info-fg) !important; }
.dt-use-amp { background: var(--st-wait-bg) !important; color: var(--st-wait-fg) !important; }
.dt-use-shortlink { background: var(--st-ok-bg) !important; color: var(--st-ok-fg) !important; }
.dt-use-spendwatch { background: linear-gradient(180deg, #f4effe, #ddd1fa) !important; color: #4a2b96 !important; } /* SW_USAGE_V1 */
.dt-use-none { background: var(--st-idle-bg) !important; color: var(--st-idle-fg) !important; border: 0 !important; }
body.dark .dt-use-project { background: linear-gradient(180deg, rgba(227, 196, 126, .3), rgba(227, 196, 126, .15)) !important; color: #f3dca4 !important; }
body.dark .dt-use-spendwatch { background: linear-gradient(180deg, rgba(160, 130, 245, .32), rgba(160, 130, 245, .16)) !important; color: #d6c8ff !important; }
body.dark :is(.dt-use-project, .dt-use-redirect, .dt-use-amp, .dt-use-shortlink, .dt-use-spendwatch, .dt-use-none) { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 0 rgba(0, 0, 0, .45); }

/* small status dots elsewhere get a lit LED */
:is(#pt-root .pt-dot, .dt-reg-dot, .rd-dot, .seg-dot) { box-shadow: 0 0 5px currentColor; }

/* ---------- sidebar navigation: keycaps ---------- */
@media (min-width: 901px) {
  .sidebar nav { gap: 6px; }
  .sidebar nav a {
    position: relative;
    min-height: 42px;
    padding: 9px 14px;
    color: #2c3045;
    font-weight: 650;
    background: linear-gradient(180deg, rgba(255, 255, 255, .9) 0%, rgba(241, 238, 232, .9) 100%);
    box-shadow: inset 0 1px 0 #ffffff, inset 0 -1px 2px rgba(0, 0, 0, .05), 0 0 0 1px rgba(20, 23, 43, .06), 0 2px 0 #d3cdc2, 0 4px 7px -4px rgba(20, 23, 43, .28);
  }
  .sidebar nav a .icon { color: #6e521a; stroke-width: 2.1; }
  .sidebar nav a:not(.disabled):hover {
    background: linear-gradient(180deg, #ffffff 0%, #f5f3ef 100%);
    color: #14172b;
    box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgba(20, 23, 43, .1), 0 3px 0 #c9c3b8, 0 7px 12px -5px rgba(20, 23, 43, .35);
  }
  .sidebar nav a:not(.disabled):active { transform: translateY(2px); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .1), 0 0 0 1px rgba(20, 23, 43, .1), 0 1px 0 #c9c3b8; }
  .sidebar nav a.active,
  .sidebar nav a[aria-current="page"] {
    padding-right: 30px;
    background: linear-gradient(180deg, #3a4058 0%, #1a1e33 55%, #0a0c14 100%) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -2px 4px rgba(0, 0, 0, .5), 0 3px 0 #05060a, 0 10px 16px -7px rgba(10, 12, 20, .75) !important;
  }
  .sidebar nav a.active .icon,
  .sidebar nav a[aria-current="page"] .icon { color: #f3dca4 !important; }
  .sidebar nav a.active::after,
  .sidebar nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #e6f0ff, #4f93ff 60%);
    box-shadow: 0 0 9px 2px rgba(47, 123, 255, .75);
  }
  body.dark .sidebar nav a {
    color: #d6d8e0;
    background: linear-gradient(180deg, #353945 0%, #2a2d36 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), inset 0 -1px 2px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .4), 0 2px 0 #0e0f13, 0 4px 7px -4px rgba(0, 0, 0, .6);
  }
  body.dark .sidebar nav a .icon { color: #e3c47e; }
  body.dark .sidebar nav a:not(.disabled):hover { background: linear-gradient(180deg, #3e4250 0%, #30333d 100%); color: #ffffff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .45), 0 3px 0 #0e0f13, 0 7px 12px -5px rgba(0, 0, 0, .7); }
  body.dark .sidebar nav a.active,
  body.dark .sidebar nav a[aria-current="page"] {
    background: linear-gradient(180deg, #ffffff 0%, #efece6 55%, #dcd7ce 100%) !important;
    color: #14172b !important;
    box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 3px rgba(0, 0, 0, .12), 0 3px 0 #8e887d, 0 10px 16px -7px rgba(0, 0, 0, .8) !important;
  }
  body.dark .sidebar nav a.active .icon,
  body.dark .sidebar nav a[aria-current="page"] .icon { color: #6e521a !important; }
}

/* ---------- chips, tabs, filters: selected = pressed in ---------- */
body .seg-btn {
  background: linear-gradient(180deg, #ffffff, #ece9e3);
  color: #2c3045;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgba(20, 23, 43, .08), 0 2px 0 #cfc9be, 0 4px 7px -4px rgba(20, 23, 43, .28);
}
body .seg-btn:not([aria-pressed="true"]):hover { background: #ffffff; }
body .seg-btn[aria-pressed="true"],
body :is(#rd-root, #gsc-root, #sl-root, #pt-root, #pm-root, #amp-filter, #act-filter, .seg) .seg-btn[aria-pressed="true"] {
  transform: translateY(1px);
  background: linear-gradient(180deg, #0a0c14, #1f2338) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .7), inset 0 -1px 0 rgba(255, 255, 255, .14), 0 0 0 1px #05060a !important;
}
body .seg-btn[aria-pressed="true"] .seg-count,
body :is(#rd-root, #gsc-root, #sl-root, #pt-root, #pm-root, #amp-filter, #act-filter) .seg-btn[aria-pressed="true"] .seg-count {
  background: linear-gradient(180deg, #f7e6b8, #c69c4e) !important;
  color: #241906 !important;
}
body.dark .seg-btn {
  background: linear-gradient(180deg, #3b3f4b, #2d3039);
  color: #e2e3ea;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .45), 0 2px 0 #0e0f13, 0 4px 7px -4px rgba(0, 0, 0, .6);
}
body.dark .seg-btn:not([aria-pressed="true"]):hover { background: #424656; }
body.dark .seg-btn[aria-pressed="true"],
body.dark :is(#rd-root, #gsc-root, #sl-root, #pt-root, #pm-root, #amp-filter, #act-filter, .seg) .seg-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #d9d4ca, #f4f1eb) !important;
  color: #14172b !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .28), 0 0 0 1px rgba(0, 0, 0, .55) !important;
}
@media (prefers-reduced-motion: reduce) { body .seg-btn[aria-pressed="true"], .sidebar nav a:active { transform: none; } }
/* the older "Aktif = dot + text" rule (ELEGANT_V2) is more specific: beat it here */
body .pm-badge.pm-live,
body #gsc-root .gsc2-pill.is-ok {
  display: inline-flex !important;
  padding: 4px 11px 4px 9px !important;
  border-radius: 999px !important;
  background: var(--st-ok-bg) !important;
  color: var(--st-ok-fg) !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
  text-transform: uppercase !important;
}
body .pm-badge.pm-live::before,
body #gsc-root .gsc2-pill.is-ok::before { display: inline-block !important; }
@media (max-width: 900px) {
  .stats .card, .stats .card + .card, .pm-metric, .pm-metric + .pm-metric, #gsc-root .gsc2-stat { border: 0 !important; }
}

/* ===== IVORY_ANDROID_V4 (owner 2026-10-29): AMP "update" cues readable in
   light mode (status line, Update AMP buttons in blue), and robot-eye LEDs
   in sharp bright colours, a different colour for each card on a page. */
body:not(.dark) #amp-status { color: #2a2f40 !important; font-weight: 600; }
body:not(.dark) #amp-status::before { background: #10c45c; box-shadow: 0 0 0 2px rgba(16, 196, 92, .2), 0 0 7px #10c45c; }
body:not(.dark) #amp-status.amp-error { color: #c4261b !important; }
body:not(.dark) #amp-status.amp-error::before { background: #e5281c; box-shadow: 0 0 0 2px rgba(229, 40, 28, .2), 0 0 7px #e5281c; }
body:not(.dark) #amp-root button.icon-btn.icon-btn[data-amp-update],
body:not(.dark) .pc-card .pc-amp-only,
body:not(.dark) .pc-amp-only {
  color: #1748d6;
  background: linear-gradient(180deg, #f3f7ff 0%, #dfe8ff 100%);
  border-color: #9fb6f5;
}
body:not(.dark) #amp-root button.icon-btn.icon-btn[data-amp-update] .ib-svg,
body:not(.dark) #amp-root button.icon-btn.icon-btn[data-amp-update] > svg { stroke-width: 2.2; }
body:not(.dark) #amp-root button.icon-btn.icon-btn[data-amp-update]:hover:not(:disabled),
body:not(.dark) .pc-amp-only:hover { color: #ffffff; background: linear-gradient(180deg, #3d73ff 0%, #1748d6 100%); border-color: #1748d6; }

/* eye LED palette by card position */
body .stats .card, body .pm-metric, body #gsc-root .gsc2-stat { --eye: #1f6bff; }
body .stats .card:nth-child(5n+2), body .pm-metric:nth-child(5n+2), body #gsc-root .gsc2-stat:nth-child(5n+2) { --eye: #00d26a; }
body .stats .card:nth-child(5n+3), body .pm-metric:nth-child(5n+3), body #gsc-root .gsc2-stat:nth-child(5n+3) { --eye: #ff8a00; }
body .stats .card:nth-child(5n+4), body .pm-metric:nth-child(5n+4), body #gsc-root .gsc2-stat:nth-child(5n+4) { --eye: #ff2e7e; }
body .stats .card:nth-child(5n+5), body .pm-metric:nth-child(5n+5), body #gsc-root .gsc2-stat:nth-child(5n+5) { --eye: #00c8f0; }
body .stats .card::before,
body .pm-metric::before,
body #gsc-root .gsc2-stat-ico::after {
  background: radial-gradient(circle at 36% 30%, #ffffff 0%, #ffffff 18%, var(--eye) 46%, var(--eye) 100%);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--eye) 55%, #000), 0 0 8px 2px var(--eye), 0 0 16px 3px color-mix(in srgb, var(--eye) 45%, transparent);
}

/* ===== BUY_LAYOUT_V2 (owner 2026-10-29): Beli Domain like the mockup —
   left column: search, check results, recently bought; right column: a
   sticky "Ringkasan pembelian" card holding the cart, total and the buy
   button. Phones: one column, the summary right after the results. */
#buy-root .buy-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}
#buy-root .buy-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
#buy-root .buy-col > .pm-panel { margin: 0; }
#buy-root .buy-layout > .buy-cart-card {
  position: sticky;
  top: 16px;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow: clip;
}
#buy-root .buy-cart-head { cursor: default; padding: 18px 20px 12px; justify-content: space-between; }
#buy-root .buy-cart-head::before { content: none; }
#buy-root .buy-cart-card .buy-cart-sec { padding: 10px 20px 6px; text-transform: none; letter-spacing: 0; font-size: 13px; }
#buy-root .buy-cart-card .buy-cart-list { padding: 0 20px; }
#buy-root .buy-cart-card .buy-cart-list li { grid-template-columns: minmax(0, 1fr) auto 64px; column-gap: 10px; }
#buy-root .buy-cart-card .buy-cart-list li.buy-cart-empty { padding: 10px 0 14px; }
#buy-root .buy-cart-card .buy-cart-skipped > summary { padding-bottom: 10px; }
#buy-root .buy-cart-count {
  background: var(--gold-grad, var(--primary-soft));
  color: var(--gold-ink, var(--primary));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 2px 0 var(--gold-lip, transparent);
}
/* total + buy button: bottom of the summary card, not a page bar */
#buy-root .buy-cart-card .buy-cart-foot {
  position: static;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  min-height: 0;
  margin-top: 6px;
  padding: 16px 20px 20px;
  border: 0;
  border-top: 2px solid rgba(20, 23, 43, .06);
  border-radius: 0;
  background: transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
body.dark #buy-root .buy-cart-card .buy-cart-foot { border-top-color: rgba(0, 0, 0, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
#buy-root .buy-summary { display: flex; flex-direction: column; gap: 6px; }
#buy-root .buy-total-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; }
/* BUY_TOTAL_FONT_V1: Syncopate draws wide, squat figures beside the Manrope label */
#buy-root .buy-total-row strong { font-family: var(--font); font-size: 22px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; color: var(--text); }
#buy-root .buy-summary .buy-warn { font-size: 12.5px; font-weight: 600; }
#buy-root .buy-cart-foot #buy-go { width: 100%; min-height: 52px; justify-content: center; }
/* search: help text and "Cek harga" share one row under the field */
#buy-root .buy-search-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
#buy-root .buy-search-foot .pm-small { margin: 0; }
#buy-root .buy-search-foot #buy-check { flex: none; }
#buy-root .buy-search-row textarea { width: 100%; }
/* results card head, like "Baru dibeli" */
#buy-root .buy-res-head { display: flex; align-items: center; gap: 8px 10px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
/* saldo: dark ink pill with a gold amount */
#buy-root .buy-balance { background: var(--ink-grad); border-color: transparent; color: #e6e3dc; font-weight: 600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 3px 0 #05060a, 0 7px 12px -5px rgba(20, 23, 43, .45); }
#buy-root .buy-balance strong { color: #f7eac6; }
body.dark #buy-root .buy-balance { color: #3a3e4a; box-shadow: inset 0 1px 0 #ffffff, 0 3px 0 #9a958b, 0 7px 12px -5px rgba(0, 0, 0, .7); }
body.dark #buy-root .buy-balance strong { color: #7a5a1f; }
@media (max-width: 1100px) {
  #buy-root .buy-layout { grid-template-columns: minmax(0, 1fr); }
  #buy-root .buy-col { display: contents; }
  #buy-root .buy-search { order: 1; }
  #buy-root .buy-panel { order: 2; }
  #buy-root .buy-layout > .buy-cart-card { order: 3; position: static; }
  #buy-root .buy-bought { order: 4; }
}
@media (max-width: 640px) {
  #buy-root .buy-search-foot { flex-direction: column; align-items: stretch; }
  #buy-root .buy-cart-head, #buy-root .buy-cart-card .buy-cart-sec, #buy-root .buy-cart-card .buy-cart-list, #buy-root .buy-cart-card .buy-cart-foot { padding-left: 14px; padding-right: 14px; }
}

/* ===== NAV_3D_UNIFORM_V1 (owner 2026-10-29): every tab, filter and group
   chip (.seg-btn: Proyek/GSC/Redirect/Shortlink groups, AMP and status
   filters, Shortlink/Trust Positif tabs, Tim activity filters) is the same
   raised 3D pill as the GSC group chips: one height, padding, type, lip
   and count badge; the selected one is the pressed ink pill. */
html body .seg { gap: 8px !important; }
html body .seg-btn,
html body :is(#rd-root, #gsc-root, #sl-root, #pt-root, #pm-root, #amp-filter, #act-filter, .act-kinds, .pm-group-filter, .rd-chips, .sl-tabs, .pt-tabs) .seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #ffffff 0%, #f3f0ea 55%, #e6e2da 100%) !important;
  color: #23273a !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 #ffffff, inset 0 -2px 3px rgba(0, 0, 0, .05), 0 0 0 1px rgba(20, 23, 43, .1), 0 3px 0 #c9c3b8, 0 6px 10px -4px rgba(20, 23, 43, .3) !important;
  transform: none;
  transition: transform .08s ease, box-shadow .08s ease, background .15s ease;
}
html body :is(.seg-btn, .seg .seg-btn):not([aria-pressed="true"]):hover {
  background: linear-gradient(180deg, #ffffff 0%, #f8f6f1 100%) !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgba(20, 23, 43, .14), 0 3px 0 #c3bdb1, 0 9px 14px -6px rgba(20, 23, 43, .36) !important;
}
html body .seg-btn:not([aria-pressed="true"]):active { transform: translateY(2px); box-shadow: inset 0 1px 0 #ffffff, 0 0 0 1px rgba(20, 23, 43, .12), 0 1px 0 #c9c3b8 !important; }
html body .seg-btn[aria-pressed="true"],
html body :is(#rd-root, #gsc-root, #sl-root, #pt-root, #pm-root, #amp-filter, #act-filter, .act-kinds, .pm-group-filter, .rd-chips, .sl-tabs, .pt-tabs, .seg) .seg-btn[aria-pressed="true"] {
  transform: translateY(2px);
  background: linear-gradient(180deg, #0a0c14 0%, #1f2338 100%) !important;
  color: #ffffff !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .7), inset 0 -1px 0 rgba(255, 255, 255, .14), 0 0 0 1px #05060a, 0 1px 0 #c9c3b8 !important;
}
/* count badge: recessed in raised chips, gold in the pressed one */
html body .seg-btn .seg-count {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(20, 23, 43, .07) !important;
  color: #4a4f63 !important;
  font-size: 11.5px;
  font-weight: 700;
  box-shadow: inset 0 1px 2px rgba(20, 23, 43, .18);
}
html body .seg-btn[aria-pressed="true"] .seg-count {
  background: linear-gradient(180deg, #f7e6b8, #c69c4e) !important;
  color: #241906 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 1px 0 rgba(0, 0, 0, .4);
}
/* dark mode */
html body.dark .seg-btn,
html body.dark :is(#rd-root, #gsc-root, #sl-root, #pt-root, #pm-root, #amp-filter, #act-filter, .act-kinds, .pm-group-filter, .rd-chips, .sl-tabs, .pt-tabs) .seg-btn {
  background: linear-gradient(180deg, #424654 0%, #343743 55%, #2a2d36 100%) !important;
  color: #e8e9ef !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), inset 0 -2px 3px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .5), 0 3px 0 #0e0f13, 0 6px 10px -4px rgba(0, 0, 0, .7) !important;
}
html body.dark :is(.seg-btn, .seg .seg-btn):not([aria-pressed="true"]):hover {
  background: linear-gradient(180deg, #4b4f5e 0%, #3a3d4a 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(0, 0, 0, .5), 0 3px 0 #0b0c0f, 0 9px 14px -6px rgba(0, 0, 0, .75) !important;
}
html body.dark .seg-btn:not([aria-pressed="true"]):active { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .5), 0 1px 0 #0e0f13 !important; }
html body.dark .seg-btn[aria-pressed="true"],
html body.dark :is(#rd-root, #gsc-root, #sl-root, #pt-root, #pm-root, #amp-filter, #act-filter, .act-kinds, .pm-group-filter, .rd-chips, .sl-tabs, .pt-tabs, .seg) .seg-btn[aria-pressed="true"] {
  background: linear-gradient(180deg, #d9d4ca 0%, #f4f1eb 100%) !important;
  color: #14172b !important;
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, .3), 0 0 0 1px rgba(0, 0, 0, .55), 0 1px 0 #0e0f13 !important;
}
html body.dark .seg-btn .seg-count { background: rgba(0, 0, 0, .3) !important; color: #c9cbd6 !important; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
@media (max-width: 640px) {
  html body .seg-btn { height: 34px !important; min-height: 34px !important; padding: 0 12px !important; }
}
@media (prefers-reduced-motion: reduce) { html body .seg-btn { transition: none; } }

/* ===== GREEN_BEAT_V2 (owner 2026-10-29): the green dot of the sync status
   lines (Domain sync, Proyek "Data diperbarui", AMP "Diperbarui otomatis",
   Redirect/Shortlink "Tersinkron", Trust Positif "Layanan sehat") is a small LED sunk in a hole. Every
   other green dot keeps the still lit LED of IVORY_ANDROID_V3 (SYNC_ONLY). The hole (the old dot) stays still; the LED is
   a second layer (::after) on top of it that comes up out of the hole on
   each heart beat (double beat), bright and glowing, and sinks back in.
   Only transform and opacity are animated, so the GPU does it (animating
   the LED size with @property made pages with many rows stall).
   Red/amber/grey dots and category squares stay still. */
@keyframes greenPop {
  0%, 100% { transform: scale(.42); opacity: .7; }
  12% { transform: scale(1); opacity: 1; }
  24% { transform: scale(.5); opacity: .75; }
  36% { transform: scale(.9); opacity: 1; }
  52% { transform: scale(.42); opacity: .7; }
}
:root {
  --beat: #00c853; --beat-glow: rgba(0, 200, 83, .75);
  --hole: radial-gradient(circle at 50% 38%, #07090f 0%, #1c2030 62%, #3a3f52 100%);
  --hole-lip: 0 1px 0 rgba(255, 255, 255, .95);
}
body.dark {
  --beat: #2bff88; --beat-glow: rgba(43, 255, 136, .8);
  --hole: radial-gradient(circle at 50% 38%, #000000 0%, #0b0d12 62%, #1d2029 100%);
  --hole-lip: 0 1px 0 rgba(255, 255, 255, .1);
}
/* the hole */
html body :is(.sync-info.is-ok, #pm-connection, #amp-status:not(.amp-error))::before,
html body :is(.rd-ok .rd-dot, #pt-root .pt-dot.is-ok) {
  width: 8px !important;
  height: 8px !important;
  min-width: 8px;
  border: 0 !important;
  border-radius: 50% !important;
  background: var(--hole) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .75), var(--hole-lip) !important;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}
html body :is(.sync-info.is-ok, #pm-connection, #amp-status:not(.amp-error)),
html body :is(.rd-ok .rd-dot, #pt-root .pt-dot.is-ok) { position: relative !important; }
/* the LED, over the hole */
html body :is(.sync-info.is-ok, #pm-connection, #amp-status:not(.amp-error))::after,
html body :is(.rd-ok .rd-dot, #pt-root .pt-dot.is-ok)::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: radial-gradient(circle at 42% 38%, #ffffff 0%, #ffffff 20%, var(--beat) 58%, var(--beat) 100%);
  box-shadow: 0 0 5px 1px var(--beat-glow);
  pointer-events: none;
  transform: scale(.42);
  opacity: .7;
  animation: greenPop 1.4s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  html body :is(.sync-info.is-ok, #pm-connection, #amp-status:not(.amp-error))::after,
  html body :is(.rd-ok .rd-dot, #pt-root .pt-dot.is-ok)::after { animation: none; transform: scale(.75); opacity: 1; }
}

/* ===== TIDY_V1 (owner 2026-10-29) =====
   1. Page titles: Syncopate draws capitals and small letters at the same
      low height, so "Domain" looked squat. Titles use Manrope ExtraBold
      (tall capitals, normal proportions), embossed as before. */
html body :is(.pm-header h1, .main > header h1, .auth-title) {
  font-family: var(--font) !important;
  font-weight: 800 !important;
  font-size: 30px !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em !important;
  font-synthesis: none;
}
@media (max-width: 640px) {
  html body :is(.pm-header h1, .main > header h1) { font-size: 26px !important; }
}
/* 2. Beli Domain: "Cek harga" and "Beli" are the same gold button as every
      page's main action (Tambah redirect, Deploy AMP baru): 40px, 14px. */
html body #buy-root :is(#buy-check, #buy-go) {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 16px !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  line-height: 21px !important;
  letter-spacing: -.005em;
}
html body #buy-root .buy-cart-foot #buy-go { min-height: 40px !important; }
/* 3. AMP: Update AMP (rocket) and Hapus side by side with a gap, never
      stacked on top of each other. */
html body #amp-root .amp-table th:last-child { width: 128px !important; }
html body #amp-root .amp-table td.amp-del-cell { white-space: nowrap !important; }
html body #amp-root .amp-del-cell > button { vertical-align: middle; }
html body #amp-root .amp-del-cell > button + button { margin-left: 10px !important; }

/* ===== BRAND_MARK_V1 (owner 2026-10-29): the mark beside "BIG GROUP" is a
   luxury gold coin: a polished, bevelled gold rim with real thickness and
   a cast shadow, a recessed ink centre under a domed glass highlight, and
   a raised gold Cinzel "B" with depth. A band of light sweeps across it
   every few seconds (transform only). Cinzel is self-hosted, "B" only. */
@font-face { font-family: "Cinzel Mark"; font-style: normal; font-weight: 700; font-display: block;
  src: url("/fonts/cinzel-700-b.woff2") format("woff2"); unicode-range: U+0042; }
@keyframes brandShine {
  0%, 62% { transform: translateX(-140%) skewX(-20deg); }
  86%, 100% { transform: translateX(140%) skewX(-20deg); }
}
html body :is(.sidebar .brand-icon, .auth-brand) {
  overflow: hidden;
  isolation: isolate;
  container-type: size;
  border-radius: 50% !important;
  background:
    radial-gradient(ellipse 58% 34% at 50% 27%, rgba(255, 255, 255, .26), rgba(255, 255, 255, .06) 60%, transparent 72%),
    radial-gradient(circle closest-side, #2c3148 0%, #141725 52%, #07080e 70%, #000000 74%, transparent 75.5%),
    radial-gradient(circle closest-side, transparent 74.5%, rgba(255, 246, 214, .95) 76%, transparent 79%),
    radial-gradient(circle closest-side, transparent 92%, rgba(60, 40, 8, .55) 97%, rgba(30, 20, 4, .8) 100%),
    conic-gradient(from 210deg, #fff4d2, #d6b062 12%, #7d5c1e 24%, #e8cd8a 38%, #fff9e6 47%, #b48a3c 60%, #6a4c16 72%, #d9b768 86%, #fff4d2) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .85),
    inset 0 -1.5px 2px rgba(40, 26, 4, .6),
    0 1px 0 #9a7731, 0 2px 0 #7a5a1f, 0 3px 0 #5a4113,
    0 9px 14px -5px rgba(10, 12, 20, .6), 0 3px 6px -2px rgba(10, 12, 20, .35) !important;
}
html body.dark :is(.sidebar .brand-icon, .auth-brand) {
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .85),
    inset 0 -1.5px 2px rgba(40, 26, 4, .6),
    0 1px 0 #9a7731, 0 2px 0 #7a5a1f, 0 3px 0 #5a4113,
    0 9px 16px -5px rgba(0, 0, 0, .85), 0 0 14px -2px rgba(226, 196, 126, .25) !important;
}
html body .sidebar .brand-icon { width: 36px !important; height: 36px !important; min-width: 36px; }
html body :is(.sidebar .brand-icon, .auth-brand)::before {
  content: "B" !important;
  position: absolute;
  inset: 0 !important;
  display: grid;
  place-items: center;
  padding-top: 2cqmin;
  border-radius: 50%;
  -webkit-mask: none !important;
  mask: none !important;
  font-family: "Cinzel Mark", "Cinzel", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: 19px;
  font-size: 50cqmin;
  line-height: 1;
  letter-spacing: 0;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  background: none !important;
  background-image: linear-gradient(180deg, #fffbee 0%, #f8e7b4 28%, #e0bd6c 48%, #a47a2c 66%, #e9cf8a 84%, #b98f3e 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  filter: drop-shadow(0 .6px 0 #7a5a1f) drop-shadow(0 .6px 0 #4a3510) drop-shadow(0 1.5px 1.5px rgba(0, 0, 0, .75)) drop-shadow(0 0 3px rgba(247, 222, 160, .3));
  z-index: 1;
}
html body :is(.sidebar .brand-icon, .auth-brand)::after {
  content: "" !important;
  position: absolute;
  inset: -12% auto -12% 0 !important;
  width: 42% !important;
  height: auto !important;
  border-radius: 0 !important;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 250, 232, .7) 50%, transparent 100%) !important;
  box-shadow: none !important;
  mix-blend-mode: soft-light;
  z-index: 2;
  pointer-events: none;
  transform: translateX(-140%) skewX(-20deg);
  animation: brandShine 4.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  html body :is(.sidebar .brand-icon, .auth-brand)::after { animation: none; opacity: 0; }
}

/* ===== ONLINE_V1 (owner 2026-10-30): Team "Terakhir dilihat" shows Online
   with a still, lit green LED while the person has the panel open. */
.team-online { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; color: var(--st-ok-fg, #04603a); }
.team-online i { width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .9), var(--st-ok-led, #12b76a) 58%);
  box-shadow: 0 0 6px 1px var(--st-ok-led, #12b76a); }

/* GODADDY_BUY_V1: registrar switch next to the balance on Beli Domain */
#buy-root .buy-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
/* BUY_NO_SHIFT_V1: both payment labels share one grid cell; the hidden one keeps its width */
#buy-root .buy-balance { display: inline-grid; align-items: center; }
#buy-root .buy-balance .buy-pay { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
#buy-root .buy-balance .buy-pay[aria-hidden="true"] { visibility: hidden; }
@media (max-width: 720px) {
  #buy-root .buy-header-actions { width: 100%; justify-content: space-between; }
}

/* AUDIT_FABLE_CSP_V1: were inline style attributes (blocked by the CSP now) */
.svg-sprite { display: none; }
.form-label-block { display: block; font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.form-help-block { display: block; margin-bottom: 16px; }

/* NS_CHANGE_V1: registrar cell extras (the mark looks like the usage chips) */
.dt-ns-line { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; vertical-align: middle; }
.domain-table .dt-ns-mark { background: var(--st-info-bg) !important; color: var(--st-info-fg) !important; border: 0 !important;
  border-radius: 8px !important; font: inherit; font-size: 11px; font-weight: 800; padding: 2px 8px; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(20, 23, 43, .07), 0 2px 0 rgba(20, 23, 43, .1); }
body.dark .domain-table .dt-ns-mark { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 1px rgba(0, 0, 0, .35), 0 2px 0 rgba(0, 0, 0, .45); }
.domain-table .dt-ns-mark:hover { filter: brightness(.97); }
.dt-ns-btn { width: 26px; height: 26px; }
.dt-ns-btn .ib-svg { width: 14px; height: 14px; }

/* SL_API_V1: Shortlink API keys (admin) */
.sl-api-adv .sl-inline { margin: 8px 0; }
.sl-api-table code { font-size: 12px; }
.sl-api-doc { margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: var(--st-idle-bg, rgba(0,0,0,.04));
  font-size: 12px; line-height: 1.5; white-space: pre-wrap; word-break: break-all; }
.sl-api-key { display: block; margin-top: 6px; font-size: 13px; word-break: break-all; user-select: all; }
.sl-api-copied { min-height: 1.4em; margin: 8px 0 0; }
/* SL_API_LAYOUT_V2: the key table and the curl examples stay inside the panel (phone: the
   table scrolls in its own box instead of widening the section), cells wrap instead of being cut */
#sl-root .sl-api-adv { min-width: 0; max-width: 100%; }
#sl-root .sl-api-adv > * { min-width: 0; max-width: 100%; }
#sl-root .sl-api-adv .pm-table-wrap { overflow-x: auto; }
#sl-root .sl-api-table { min-width: 640px; }
#sl-root .sl-api-table th:nth-child(1) { width: 27%; }
#sl-root .sl-api-table th:nth-child(2) { width: 15%; }
#sl-root .sl-api-table th:nth-child(3) { width: 16%; }
#sl-root .sl-api-table th:nth-child(4) { width: 20%; }
#sl-root .sl-api-table th:nth-child(5) { width: 14%; }
#sl-root .sl-api-table th:nth-child(6) { width: 92px; }
#sl-root .sl-api-table td { white-space: normal; overflow-wrap: anywhere; text-overflow: clip; vertical-align: top; }
#sl-root .sl-api-table td .pm-small { white-space: normal; }
#sl-root .sl-api-table td:last-child { text-align: right; }
#sl-root .sl-api-doc { max-width: 100%; box-sizing: border-box; overflow-x: auto; overflow-wrap: anywhere; }

/* SW_DOMAIN_UI_V2: "Domain SpendWatch" panel (admin): grant form, filter chips and one
   table for grant + stack state; cards on a phone. The Domain table cards drop the
   indent that was meant for the (now hidden) initial tile. */
#sl-root .sl-admin-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; font-weight: 700; vertical-align: 2px; }
#sl-root .sl-sw-grant { display: grid; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
#sl-root .sl-sw-grant-label { font-size: 13px; font-weight: 650; }
#sl-root .sl-sw-grant textarea { width: 100%; min-height: 64px; resize: vertical; box-sizing: border-box; }
#sl-root .sl-sw-grant-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#sl-root .sl-sw-grant-foot .pm-btn { min-width: 120px; }
#sl-root .sl-check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
#sl-root .sl-check input { width: 16px; height: 16px; margin: 0; }
#sl-root .sl-sw-hint { margin: 0; }
#sl-root .sl-sw-filterbar { padding: 12px 18px; border-bottom: 1px solid var(--border); }
#sl-root .sl-sw-filterbar:has(#sl-sw-filter:empty) { display: none; }
#sl-root .sl-swtable th:nth-child(1) { width: 24%; }
#sl-root .sl-swtable th:nth-child(2) { width: 150px; }
#sl-root .sl-swtable th:nth-child(4) { width: 23%; }
#sl-root .sl-swtable th:nth-child(5) { width: 220px; }
#sl-root .sl-swtable td { white-space: normal; vertical-align: middle; }
#sl-root .sl-swtable td .pm-small { margin-top: 2px; white-space: normal; overflow-wrap: anywhere; }
#sl-root .sl-swtable .sl-sw-note { font-size: 13px; color: var(--text); overflow-wrap: anywhere; }
#sl-root .sl-swtable td.sl-c-acts { overflow: visible; text-overflow: clip; }
#sl-root .sl-sw-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
#sl-root .sl-sw-btn { min-height: 30px; padding: 0 12px; font-size: 12.5px; font-weight: 650; white-space: nowrap; }
#sl-root .sl-sw-ok { font-weight: 650; color: var(--live); }
#sl-root .sl-sw-flag { display: inline-block; padding: 1px 7px; border-radius: 6px; background: var(--wait-bg); color: var(--wait); font-size: 11px; font-weight: 700; }
#sl-root tr.sl-sw-off :is(.dt-name, .sl-sw-note) { opacity: .6; }
#sl-root .sl-sw-conn { margin: 0; padding: 12px 18px 14px; border-top: 1px solid var(--border); }
#sl-root .sl-sw-conn .pm-small { margin: 8px 0 0; }
@media (max-width: 640px) {
  #sl-root .sl-dtable .sl-c-note, #sl-root .sl-dtable .rd-c-group { padding-left: 0 !important; }
  #sl-root .sl-sw-grant { padding: 14px; }
  #sl-root .sl-sw-grant-foot .pm-btn { flex: 1 1 100%; }
  #sl-root .sl-sw-filterbar { padding: 12px 14px; }
  #sl-root .sl-sw-conn { padding: 12px 14px; }
  #sl-root .sl-swtable thead { display: none; }
  #sl-root .sl-swtable, #sl-root .sl-swtable tbody { display: block; width: 100%; min-width: 0 !important; }
  #sl-root .sl-swtable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 14px; border-top: 1px solid var(--border); }
  #sl-root .sl-swtable tr:first-child { border-top: 0; }
  #sl-root .sl-swtable td { display: block; padding: 0 !important; border: 0 !important; width: auto; min-width: 0; }
  #sl-root .sl-swtable td[colspan] { grid-column: 1 / -1; }
  #sl-root .sl-swtable .rd-c-domain { grid-column: 1; grid-row: 1; align-self: center; }
  #sl-root .sl-swtable .rd-c-state { grid-column: 2; grid-row: 1; text-align: right; }
  #sl-root .sl-swtable .sl-c-note { grid-column: 1 / -1; grid-row: 2; }
  #sl-root .sl-swtable .sl-c-perm { grid-column: 1 / -1; grid-row: 3; }
  #sl-root .sl-swtable td.sl-c-acts { grid-column: 1 / -1; grid-row: 4; padding-top: 8px !important; border-top: 1px dashed var(--border) !important; }
  #sl-root .sl-swtable td.sl-c-acts:empty { display: none; }
}

/* SL_API_LAYOUT_V3: API key table: fixed column widths, nothing cut, revoked keys folded */
#sl-root .sl-keytable { min-width: 0; table-layout: fixed; width: 100%; }
#sl-root .sl-keytable th:nth-child(1) { width: 27%; }
#sl-root .sl-keytable th:nth-child(2) { width: 15%; }
#sl-root .sl-keytable th:nth-child(3) { width: 17%; }
#sl-root .sl-keytable th:nth-child(4) { width: 21%; }
#sl-root .sl-keytable th:nth-child(5) { width: 120px; }
#sl-root .sl-keytable th:nth-child(6) { width: 96px; }
#sl-root .sl-keytable td { vertical-align: middle; }
#sl-root .sl-keytable td.sl-k-state .pm-small { white-space: nowrap; margin-top: 4px; }
#sl-root .sl-keytable td.sl-k-acts { overflow: visible; text-overflow: clip; white-space: nowrap; }
#sl-root .sl-keytable tr.sl-key-off :is(strong, code, .sl-k-scope) { opacity: .6; }
#sl-root .sl-keytable tr.sl-key-fold td { padding: 10px 16px; text-align: left !important; background: var(--panel-2); }
#sl-root .sl-keytable tr.sl-key-fold .sl-linkbtn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
#sl-root .sl-keytable tr.sl-key-fold .sl-linkbtn:hover { color: var(--primary); }
@media (max-width: 640px) {
  #sl-root .sl-api-adv .pm-table-wrap:has(.sl-keytable) { overflow-x: visible; }
  #sl-root .sl-keytable thead { display: none; }
  #sl-root .sl-keytable, #sl-root .sl-keytable tbody { display: block; width: 100%; }
  #sl-root .sl-keytable tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 12px; border-top: 1px solid var(--border); }
  #sl-root .sl-keytable tr:first-child { border-top: 0; }
  #sl-root .sl-keytable td { display: block; padding: 0 !important; border: 0 !important; width: auto; min-width: 0; text-align: left !important; }
  #sl-root .sl-keytable td[colspan] { grid-column: 1 / -1; }
  #sl-root .sl-keytable .sl-k-name { grid-column: 1; grid-row: 1; }
  #sl-root .sl-keytable .sl-k-state { grid-column: 2; grid-row: 1; text-align: right !important; }
  #sl-root .sl-keytable .sl-k-hint { grid-column: 1 / -1; grid-row: 2; }
  #sl-root .sl-keytable .sl-k-scope { grid-column: 1 / -1; grid-row: 3; }
  #sl-root .sl-keytable .sl-k-scope::before { content: "Izin: "; color: var(--muted); }
  #sl-root .sl-keytable .sl-k-use { grid-column: 1 / -1; grid-row: 4; }
  #sl-root .sl-keytable td.sl-k-acts { grid-column: 1 / -1; grid-row: 5; display: flex; gap: 8px; justify-content: flex-end; padding-top: 8px !important; border-top: 1px dashed var(--border) !important; }
  #sl-root .sl-keytable td.sl-k-acts:empty { display: none; }
  #sl-root .sl-keytable tr.sl-key-fold { padding: 0; }
  #sl-root .sl-keytable tr.sl-key-fold td { padding: 10px 12px !important; }
}

/* PBN_AWS_MIGRATE_V1: status of a move to AWS (admin only) + the bulk picker */
.pm-mig { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin-top: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid transparent; font-size: 11px; font-weight: 600; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.pm-mig::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pm-mig-busy { background: color-mix(in srgb, #2563eb 12%, transparent); color: #1d4ed8; border-color: color-mix(in srgb, #2563eb 30%, transparent); }
.pm-mig-ok { background: color-mix(in srgb, #16a34a 12%, transparent); color: #15803d; border-color: color-mix(in srgb, #16a34a 30%, transparent); }
.pm-mig-fail { background: color-mix(in srgb, #dc2626 12%, transparent); color: #b91c1c; border-color: color-mix(in srgb, #dc2626 30%, transparent); }
.pm-mig-idle { background: color-mix(in srgb, #64748b 12%, transparent); color: #475569; border-color: color-mix(in srgb, #64748b 30%, transparent); }
body.dark .pm-mig-busy { color: #93c5fd; }
body.dark .pm-mig-ok { color: #86efac; }
body.dark .pm-mig-fail { color: #fca5a5; }
body.dark .pm-mig-idle { color: #cbd5e1; }
.pm-project-item .pm-mig { align-self: flex-start; }
.pm-contents-head .pm-mig { margin-top: 0; }
.pm-panel-head .pm-mig-bulk { margin-left: auto; padding: 4px 10px; font-size: 12px; white-space: nowrap; }
.mig-pick .mig-pick-list { display: grid; gap: 6px; max-height: min(50vh, 420px); overflow-y: auto; margin: 4px 0 8px; padding-right: 2px; }
.mig-pick .mig-pick-list .cd-check { margin: 0; }
.mig-pick .mig-pick-count { margin: 0 0 8px; font-size: 12px; opacity: .8; }
.pm-projects > .pm-panel-head:has(.pm-mig-bulk:not([hidden])) { display: flex; align-items: center; gap: 8px; }
.pm-mig-bulk[hidden] { display: none !important; }

/* ===== TEAM_ACTIVITY_TIDY_V1 (owner review 2026-11-19): Tim > Aktivitas tim.
   One grouped "Pengguna" dropdown (same trigger as the Domain filters)
   instead of ~40 chips; the action chips stay one row that scrolls sideways
   on a phone; runs of the same action become one expandable row. */
#team-root .toolbar.act-tools {
  display: flex;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}
#team-root .act-tools .fs-trigger { max-width: min(340px, 100%); min-width: 0; }
#team-root .act-tools .fs-value { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-menu.fs-menu-scroll { overflow-y: auto; overscroll-behavior: contain; }
.fs-group {
  padding: 10px 10px 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: default;
}
.fs-group:first-child { padding-top: 4px; }
.fs-menu .fs-group + .fs-option,
.fs-menu .fs-option + .fs-group { margin-top: 0; }
.fs-menu .fs-option + .fs-group { border-top: 1px solid var(--border); margin-top: 4px; }

#team-root .act-kinds {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  max-width: 100% !important;
  width: auto !important;
  padding: 10px 18px 12px !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
#team-root .act-kinds::-webkit-scrollbar { display: none; }
#team-root .act-kinds .seg-btn { flex: none !important; }

/* a run of the same action: "Ganti NS (Cloudflare lain) · 7 domain" */
.act-count { color: var(--muted); font-weight: 600; }
.act-targets { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: baseline; }
.act-more-n { align-self: center; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
#team-root .act-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 0;
  margin: 4px 0 0;
  padding: 2px 0;
  border: 0;
  border-radius: 6px;
  background: none !important;
  box-shadow: none !important;
  color: var(--primary);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
#team-root .act-toggle:hover { text-decoration: underline; text-underline-offset: 3px; }
#team-root .act-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--ring) !important; }
#team-root .act-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s ease; }
#team-root .act-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
.act-sub { margin: 6px 0 2px; padding: 0 0 0 12px; list-style: none; border-left: 2px solid var(--border); }
.act-sub[hidden] { display: none; }
.act-sub-item { padding: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.act-sub-time { display: inline-block; min-width: 38px; color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.act-sub-item .act-target { font-size: 11.5px; }
.act-sub-item .act-badge { margin-left: 4px; vertical-align: 1px; }

/* emoji from stored details drawn as icons (no emoji font needed) */
.act-glyph { display: inline-block; width: 13px; height: 13px; margin: 0 1px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.act-glyph-ok { color: var(--live); }
.act-glyph-fail { color: var(--fail); }
.act-glyph-warn,
.act-glyph-wait { color: var(--wait); }
.act-glyph-shield,
.act-glyph-info { color: var(--primary); }

@media (max-width: 900px) {
  #team-root .act-head { gap: 10px; }
  #team-root .toolbar.act-tools { flex: 1 1 100%; }
  #team-root .act-tools .fs-trigger { flex: 1 1 auto; max-width: 100%; justify-content: flex-start; }
  #team-root .act-tools .fs-chevron { margin-left: auto; }
  #team-root .act-kinds { padding: 8px 14px 10px !important; }
}
@media (prefers-reduced-motion: reduce) { #team-root .act-toggle svg { transition: none; } }
