:root {
  --bg:#10151d;
  --sidebar:#131b24;
  --surface:#18212c;
  --surface-alt:#202d3a;
  --line:#2e3c4b;
  --line-soft:#273440;
  --text:#eef3f7;
  --muted:#a7b4c2;
  --faint:#8e9eaf;
  --teal:#45d3b0;
  --teal-soft:rgba(69,211,176,.13);
  --amber:#f2be79;
  --amber-soft:rgba(242,190,121,.13);
  --red:#ee9393;
  --red-soft:rgba(238,147,147,.13);
  --radius:10px;
  --hover:rgba(167,180,194,.045);
  --selected:rgba(69,211,176,.07);
  font:14px/1.55 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:var(--bg);
  color-scheme:dark;
  font-synthesis:none;
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
  min-width:320px;
  background:var(--bg);
}
h1,h2,h3,p {
  margin:0;
}
h1 {
  font-size:26px;
  line-height:1.3;
  letter-spacing:-.02em;
}
h2 {
  font-size:18px;
}
h3 {
  font-size:15px;
}
button,input,textarea,select {
  font:inherit;
}
button {
  cursor:pointer;
}
button:disabled {
  opacity:.48;
  cursor:not-allowed;
}
[hidden] {
  display:none!important;
}
button:focus-visible,summary:focus-visible {
  outline:2px solid var(--teal);
  outline-offset:3px;
}
button svg,.search-field svg,.nav-item svg {
  width:18px;
  height:18px;
  flex:none;
}
input[type=checkbox] {
  accent-color:var(--teal);
  width:18px;
  height:18px;
  cursor:pointer;
  flex:none;
}
input:disabled {
  cursor:not-allowed;
}
input,textarea,select {
  border:1px solid var(--line);
  background:#121b25;
  color:var(--text);
  border-radius:7px;
  padding:10px 12px;
  min-height:42px;
  min-width:0;
}
input:focus,textarea:focus,select:focus {
  outline:2px solid var(--teal-soft);
  border-color:var(--teal);
}
textarea {
  resize:vertical;
  line-height:1.6;
}
summary {
  cursor:pointer;
}
a {
  color:var(--teal);
}
.app-shell {
  display:flex;
  min-height:100dvh;
}
.sidebar {
  width:212px;
  flex:0 0 212px;
  position:sticky;
  top:0;
  height:100dvh;
  background:var(--sidebar);
  border-right:1px solid var(--line);
  display:flex;
  flex-direction:column;
  padding:26px 16px 20px;
}
.brand-lockup {
  display:flex;
  align-items:center;
  gap:10px;
  padding:0 8px 24px;
}
.brand-mark {
  width:36px;
  height:36px;
  border-radius:9px;
  display:grid;
  place-items:center;
  background:var(--teal);
  color:#08231c;
  font-weight:800;
  font-size:13px;
}
.brand-name {
  font-weight:700;
  font-size:16px;
}
.brand-caption {
  font-size:11px;
  color:var(--faint);
  margin-top:2px;
}
.side-nav {
  display:grid;
  gap:4px;
}
.nav-group {
  color:var(--faint);
  font-size:11px;
  margin:17px 12px 4px;
}
.nav-item {
  display:flex;
  align-items:center;
  gap:10px;
  background:transparent;
  border:0;
  color:var(--muted);
  text-align:left;
  border-radius:7px;
  padding:12px;
  font-size:14px;
}
.nav-item:hover {
  color:var(--text);
  background:var(--surface-alt);
}
.nav-item.is-active {
  color:var(--teal);
  background:var(--teal-soft);
}
.sidebar-footer {
  margin-top:auto;
  padding:18px 8px 0;
  border-top:1px solid var(--line);
}
.main-content {
  min-width:0;
  flex:1;
  width:calc(100% - 212px);
  max-width:1600px;
  margin:0 auto;
  padding:26px clamp(20px,2.5vw,40px) 48px;
}
.topbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  margin-bottom:22px;
}
.topbar-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:12px;
}
.connection-dot {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:12px;
  color:var(--muted);
}
#connection-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--amber);
}
.connection-dot.connected #connection-dot {
  background:var(--teal);
}
.connection-dot.error #connection-dot {
  background:var(--red);
}
.attention-link {
  border:1px solid #6b5637;
  border-radius:6px;
  background:var(--amber-soft);
  color:var(--amber);
  padding:6px 9px;
  font-size:12px;
}
.muted-small,.form-hint,.metric-note {
  font-size:12px;
  color:var(--faint);
  line-height:1.65;
}
.view-panel {
  display:none;
}
.view-panel.is-visible {
  display:block;
}
.surface {
  background:var(--surface);
  border:1px solid var(--line-soft);
  border-radius:var(--radius);
  padding:22px;
  min-width:0;
}
.section-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}
.section-status {
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:12px;
}
.status-dot {
  display:inline-block;
  width:7px;
  height:7px;
  background:var(--faint);
  border-radius:50%;
}
.status-dot.teal {
  background:var(--teal);
}
.status-dot.amber {
  background:var(--amber);
}
.status-dot.red {
  background:var(--red);
}
.status-dot.gray {
  background:var(--muted);
}
.task-form {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:17px;
  align-items:end;
}
.field {
  display:flex;
  flex-direction:column;
  gap:7px;
  color:var(--muted);
  font-size:13px;
  min-width:0;
}
.field input,.field textarea,.field select {
  width:100%;
}
.wide,.task-form .form-actions {
  grid-column:1/-1;
}
.form-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:5px;
}
.primary-button,.secondary-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  border-radius:7px;
  min-height:42px;
  padding:8px 14px;
  font-size:13px;
  font-weight:600;
  max-width:100%;
  border:1px solid transparent;
}
.primary-button {
  background:var(--teal);
  color:#08231c;
}
.primary-button:hover {
  background:#64e2c2;
}
.secondary-button {
  color:var(--muted);
  background:transparent;
  border-color:var(--line);
}
.secondary-button:hover {
  border-color:var(--teal);
  color:var(--text);
}
.icon-button {
  display:inline-grid;
  place-items:center;
  width:36px;
  height:36px;
  border:1px solid var(--line);
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:20px;
  flex:none;
}
.icon-button:hover {
  color:var(--text);
  border-color:var(--teal);
}
.text-button {
  border:0;
  background:transparent;
  color:var(--teal);
  padding:8px 0;
  font-size:13px;
  text-align:left;
}
.danger-button,.danger-outline {
  color:var(--red);
}
.danger-outline {
  border-color:#764d53;
}
.danger-fill {
  background:var(--red);
  color:#2a1317;
}
.pill {
  display:inline-flex;
  padding:3px 8px;
  font-size:12px;
  border:1px solid var(--line);
  border-radius:5px;
  color:var(--muted);
  white-space:nowrap;
  line-height:1.6;
}
.pill.success {
  background:var(--teal-soft);
  color:var(--teal);
  border-color:#31594f;
}
.pill.warning {
  background:var(--amber-soft);
  color:var(--amber);
  border-color:#65523c;
}
.pill.error {
  background:var(--red-soft);
  color:var(--red);
  border-color:#704b53;
}
.inline-alert {
  padding:11px 14px;
  border-radius:7px;
  border:1px solid #704b53;
  background:var(--red-soft);
  color:var(--red);
  font-size:13px;
  line-height:1.7;
  overflow-wrap:anywhere;
  margin:14px 0;
}
.good-alert {
  color:var(--teal);
  background:var(--teal-soft);
  border-color:#31594f;
}
.empty-state {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:9px;
  text-align:center;
  min-height:120px;
  font-size:14px;
  color:var(--muted);
}
.empty-state span {
  font-size:12px;
  color:var(--faint);
}
.empty-icon {
  font-size:24px;
  color:var(--teal);
}
.batch-preview {
  display:grid;
  gap:7px;
  color:var(--muted);
  font-size:13px;
}
.batch-preview details {
  border-top:1px solid var(--line);
  padding-top:10px;
}
.batch-preview ol {
  max-height:140px;
  overflow:auto;
  white-space:pre-wrap;
  overflow-wrap:anywhere;
  padding-left:24px;
  font-size:12px;
  line-height:1.8;
}
.task-selection {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-width:0;
}
.task-selection strong {
  font-size:13px;
}
.task-selection span {
  display:block;
  color:var(--faint);
  font-size:12px;
  margin-top:5px;
  overflow-wrap:anywhere;
}
.task-selection button {
  flex:none;
}
.progress-head,.balance-job-progress {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
  color:var(--muted);
  margin:12px 0;
}
.progress-head strong {
  color:var(--text);
}
.progress-track {
  height:7px;
  background:#101821;
  border-radius:8px;
  overflow:hidden;
}
.progress-fill {
  height:100%;
  background:var(--teal);
  transition:width .2s;
}
.status-counts {
  display:flex;
  flex-wrap:wrap;
  gap:10px 18px;
  margin:15px 0;
  color:var(--muted);
  font-size:13px;
}
.status-counts span {
  display:flex;
  align-items:center;
  gap:6px;
}
.status-counts b {
  color:var(--text);
}
.batch-account-progress {
  color:var(--muted);
  font-size:13px;
  margin-top:12px;
}
.batch-controls {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:16px 0;
}
.execution-details,.advanced-settings {
  margin-top:17px;
  border-top:1px solid var(--line);
  padding-top:14px;
}
.execution-details summary,.advanced-settings summary {
  color:var(--muted);
  font-size:13px;
}
.execution-details .batch-live-accounts {
  margin-top:12px;
}
.batch-live-row,.balance-job-row {
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:7px 12px;
  padding:12px 0;
  border-bottom:1px solid var(--line-soft);
  font-size:13px;
  color:var(--muted);
}
.batch-account-ip,.balance-job-note,.balance-job-amount {
  grid-column:1/-1;
  color:var(--faint);
  font-size:12px;
  overflow-wrap:anywhere;
}
.batch-live-row span,.balance-job-row span {
  overflow-wrap:anywhere;
}
.task-detail {
  scroll-margin-top:22px;
  margin-top:20px;
}
.task-detail .live-status {
  margin-bottom:18px;
}
.results-toolbar {
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);
  gap:14px;
  margin-bottom:18px;
}
.table-wrap {
  overflow-x:auto;
  max-width:100%;
  border-radius:5px;
}
.table-wrap table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.table-wrap .pill {
  max-width:100%;
  white-space:normal;
}
.table-wrap th {
  text-align:left;
  color:var(--muted);
  font-size:12px;
  font-weight:600;
  padding:10px;
  background:var(--surface-alt);
  border-bottom:1px solid var(--line);
  vertical-align:middle;
  position:sticky;
  top:0;
  z-index:1;
}
.table-wrap td {
  padding:13px 10px;
  border-bottom:1px solid var(--line-soft);
  color:var(--muted);
  vertical-align:middle;
  overflow-wrap:anywhere;
}
.table-wrap tbody tr:hover {
  background:var(--hover);
}
.accounts-table tr.is-selected,.accounts-table tr.is-selected:hover {
  background:var(--selected);
}
.table-wrap td.status-text-success {
  color:var(--teal);
  font-variant-numeric:tabular-nums;
}
.table-wrap td.balance-amount { color:var(--text); }
.table-wrap td:first-child,.table-wrap th:first-child {
  padding-left:0;
}
.table-wrap td:last-child,.table-wrap th:last-child {
  padding-right:0;
}
.table-empty {
  text-align:center;
  padding:28px 0!important;
  grid-column:1/-1;
  color:var(--faint)!important;
}
.column-note {
  display:block;
  margin-top:3px;
  font-weight:400;
  font-size:11px;
}
.result-time,.balance-amount,.ip-cell-button {
  font-variant-numeric:tabular-nums;
}
.result-message {
  line-height:1.7;
}
.platform-message {
  margin-top:5px;
  font-size:12px;
  color:var(--faint);
}
.results-surface table {
  table-layout:fixed;
}
.results-surface th:nth-child(1) {
  width:17%;
}
.results-surface th:nth-child(2) {
  width:13%;
}
.results-surface th:nth-child(3) {
  width:10%;
}
.results-surface th:nth-child(4) {
  width:10%;
}
.results-surface th:nth-child(5) {
  width:16%;
}
.results-surface th:nth-child(6) {
  width:8%;
}
.results-surface th:nth-child(7) {
  width:26%;
}
.status-text-success {
  color:var(--teal)!important;
}

.status-text-running {
  color:var(--amber)!important;
}
.pagination {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  color:var(--faint);
  font-size:12px;
  margin-top:16px;
}
.pagination:empty {
  display:none;
}
.pager-actions {
  display:flex;
  align-items:center;
  gap:9px;
}
.pager-actions label {
  display:flex;
  align-items:center;
  gap:6px;
}
.pager-actions select {
  min-height:32px;
  padding:4px 8px;
  font-size:12px;
}
.pager-actions .icon-button {
  width:32px;
  height:32px;
}
.view-intro {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:16px;
}
.view-intro p {
  color:var(--muted);
  font-size:13px;
}
.page-tabs {
  display:flex;
  gap:24px;
  border-bottom:1px solid var(--line);
  margin-bottom:18px;
}
.page-tabs button {
  padding:11px 0;
  border:0;
  border-bottom:2px solid transparent;
  background:transparent;
  color:var(--muted);
  white-space:nowrap;
  font-size:14px;
}
.page-tabs button.is-active {
  color:var(--teal);
  border-bottom-color:var(--teal);
}
.compact-metrics {
  display:flex;
  flex-wrap:wrap;
  gap:10px 26px;
  border:1px solid var(--line);
  border-radius:8px;
  padding:12px 16px;
  margin-bottom:18px;
  background:#151e28;
  font-size:13px;
  color:var(--muted);
}
.compact-metrics b {
  color:var(--text);
  font-size:19px;
  margin-left:6px;
}
.filter-toolbar,.account-toolbar,.balance-toolbar {
  display:flex;
  align-items:end;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:18px;
}
.filter-toolbar>.field {
  min-width:125px;
}
.account-toolbar>.filter-field {
  margin-left:auto;
  min-width:165px;
}
.search-field {
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  border:1px solid var(--line);
  border-radius:7px;
  padding:0 11px;
  background:#121b25;
  width:min(100%,310px);
  height:43px;
}
.search-field input {
  border:0;
  outline:0;
  background:transparent;
  padding:0;
  width:100%;
  min-height:40px;
  font-size:13px;
}
.search-field:focus-within {
  border-color:var(--teal);
  outline:2px solid var(--teal-soft);
  outline-offset:2px;
}
.balance-concurrency {
  width:100px;
}
.balance-toolbar .muted-small {
  margin-left:auto;
  align-self:center;
}
.balance-toolbar,.resource-actions {
  padding-bottom:16px;
  border-bottom:1px solid var(--line-soft);
}
.resource-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-bottom:17px;
}
.accounts-table table {
  table-layout:fixed;
  min-width:0;
}
.accounts-table th:first-child {
  width:36px;
}
.accounts-table th:nth-child(2) {
  width:25%;
}
.accounts-table th:nth-child(3) {
  width:12%;
}
.accounts-table th:nth-child(4) {
  width:22%;
}
.accounts-table th:nth-child(5) {
  width:23%;
}
.accounts-table th:last-child {
  width:95px;
}
.accounts-table .account-name {
  color:var(--text);
}
.account-identity {
  display:inline-flex;
  flex-direction:column;
  min-width:0;
  max-width:100%;
  overflow-wrap:anywhere;
  line-height:1.5;
}
.account-identity-name {
  color:var(--text);
}
.account-identity-email {
  display:block;
  color:var(--faint);
  font-size:12px;
  margin-top:3px;
  font-weight:400;
}
.username-sync-launcher {
  margin-bottom:20px;
}
.username-sync-launcher>.checkin-section-toggle {
  cursor:pointer;
}
.balance-amount {
  color:var(--text);
}
.balance-query-note,.balance-query-error {
  display:block;
  font-size:12px;
  margin-top:4px;
  line-height:1.6;
}
.balance-query-error {
  color:var(--red);
}
.balance-amount small {
  display:block;
  color:var(--faint);
  font-size:12px;
}
.account-row-detail {
  font-size:12px;
}
.ip-cell-button {
  overflow-wrap:anywhere;
  padding:0;
  font-size:13px;
}
.selection-toolbar {
  position:sticky;
  bottom:16px;
  z-index:6;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
  background:#1a302e;
  border:1px solid #467d6f;
  box-shadow:0 6px 24px #0005;
  border-radius:8px;
  padding:13px 16px;
  font-size:13px;
}
.selection-actions {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:9px;
  margin-left:auto;
}
.action-menu {
  position:relative;
}
.action-menu summary {
  border:1px solid var(--line);
  padding:8px 12px;
  border-radius:7px;
  color:var(--muted);
  list-style:none;
  font-size:13px;
}
.action-menu>div {
  position:absolute;
  right:0;
  bottom:calc(100% + 7px);
  z-index:8;
  min-width:155px;
  padding:9px 14px;
  display:grid;
  gap:3px;
  background:var(--surface-alt);
  border:1px solid var(--line);
  border-radius:7px;
  box-shadow:0 5px 25px #0006;
}
.task-strip {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
  color:var(--muted);
  padding:12px 16px;
  border:1px solid var(--line);
  border-radius:7px;
  margin-bottom:18px;
}
.balance-job-heading {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}
.balance-job-heading .field {
  min-width:0;
  flex:1;
}
.balance-job-heading h3 {
  font-size:18px;
}
.balance-job-heading select {
  width:100%;
}
.balance-job-items {
  margin-top:16px;
}
.draw-grid {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));
  gap:16px;
  margin:18px 0;
}
.draw-card {
  min-width:0;
  transition:border-color .15s,background .15s;
}
.draw-card.selected {
  border-color:var(--teal);
  background:#1b302f;
}
.draw-card-head {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:14px;
}
.draw-card-head h3 {
  flex:1;
  overflow-wrap:anywhere;
  min-width:0;
}
.draw-card-head input {
  margin-top:4px;
}
.draw-card p {
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
  overflow-wrap:anywhere;
  white-space:pre-line;
}
.draw-card dl {
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:8px 12px;
  font-size:13px;
}
.draw-card dt {
  color:var(--faint);
}
.draw-card dd {
  margin:0;
  text-align:right;
  overflow-wrap:anywhere;
}
.draw-prizes {
  color:var(--amber);
  line-height:1.8;
  font-size:14px;
  padding-left:20px;
}
.draw-card details {
  margin:15px 0;
  font-size:12px;
  color:var(--muted);
}
.draw-empty {
  grid-column:1/-1;
  padding:30px;
  text-align:center;
  color:var(--faint);
  border:1px dashed var(--line);
  border-radius:7px;
}
.draw-results .results-toolbar {
  grid-template-columns:1fr 1fr;
}
.draw-results th {
  width:auto!important;
}
.draw-results .pill {
  white-space:normal;
}
.draw-progress {
  font-size:13px;
  color:var(--muted);
  line-height:1.8;
  margin:14px 0;
}
.draw-winner {
  padding:14px 0;
  border-bottom:1px solid var(--line);
  overflow-wrap:anywhere;
}
.node-group {
  border:1px solid var(--line);
  border-radius:8px;
  margin-bottom:12px;
}
.node-group>summary {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.4fr) minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:14px 16px;
  list-style:none;
  font-size:13px;
}
.node-group>summary>* {
  min-width:0;
  overflow-wrap:anywhere;
}
.node-group>summary strong {
  color:var(--text);
  font-size:15px;
  font-variant-numeric:tabular-nums;
}
.node-group[open]>summary {
  border-bottom:1px solid var(--line);
}
.node-group-body {
  padding:14px 16px;
}
.node-group-body .form-hint {
  margin-bottom:10px;
}
.node-line {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  border-bottom:1px solid var(--line-soft);
  padding:9px 0;
  font-size:13px;
  color:var(--muted);
}
.node-line>strong {
  flex:1;
  min-width:130px;
  overflow-wrap:anywhere;
}
.nodes-table table {
  table-layout:fixed;
}
.nodes-table th:nth-child(1) {
  width:27%;
}
.nodes-table th:nth-child(2) {
  width:17%;
}
.nodes-table th:nth-child(3) {
  width:10%;
}
.nodes-table th:nth-child(4) {
  width:20%;
}
.nodes-table th:nth-child(5) {
  width:26%;
}
.subscription-list {
  padding:0;
  list-style:none;
  display:grid;
  gap:13px;
}
.subscription-list li {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:14px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:8px;
}
.subscription-list li>div:first-child {
  flex:1;
  min-width:160px;
  overflow-wrap:anywhere;
}
.subscription-list strong {
  font-size:14px;
}
.subscription-list .form-hint {
  display:block;
  margin-top:4px;
}
.subscription-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.settings-layout {
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(270px,.8fr);
  gap:20px;
}
.settings-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.settings-save {
  display:flex;
  align-items:center;
  gap:12px;
}
.advanced-settings .settings-grid {
  margin-top:16px;
}
.runtime-surface>h2 {
  margin-bottom:18px;
}
.notice-panel {
  border:1px solid #65523c;
  background:var(--amber-soft);
  border-radius:7px;
  padding:14px;
  color:var(--amber);
  font-size:13px;
  margin:14px 0;
}
.notice-panel p {
  margin-top:7px;
  color:var(--muted);
  line-height:1.7;
  overflow-wrap:anywhere;
}
.runtime-ready {
  border-color:#31594f;
  color:var(--teal);
  background:var(--teal-soft);
}
.runtime-blocked {
  border-color:#704b53;
  color:var(--red);
  background:var(--red-soft);
}
.account-dialog {
  color:var(--text);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:10px;
  padding:24px;
  width:min(720px,calc(100% - 24px));
  max-height:calc(100dvh - 32px);
  overflow-y:auto;
  overscroll-behavior:contain;
}
.account-dialog::backdrop {
  background:#000a;
}
.compact-dialog {
  width:min(480px,calc(100% - 24px));
}
.result-review-dialog {
  width:min(580px,calc(100% - 24px));
  border-radius:8px;
}
.result-review-evidence {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 16px;
  margin:16px 0;
}
.result-review-evidence dt,.result-review-note span {
  color:var(--muted);
  font-size:12px;
}
.result-review-evidence dd {
  margin:4px 0 0;
  overflow-wrap:anywhere;
  font-size:13px;
}
#result-review-evidence p,.result-review-current,.result-review-history p {
  overflow-wrap:anywhere;
  line-height:1.6;
  font-size:13px;
  margin:10px 0;
}
.result-review-current {
  padding:12px 0;
  border-block:1px solid var(--line);
}
.result-review-dialog .field {
  margin-top:16px;
}
.result-review-dialog h2 {
  font-size:18px;
}
.result-review-history {
  margin-top:20px;
  border-top:1px solid var(--line);
  padding-top:16px;
  font-size:13px;
}
.result-review-history summary {
  cursor:pointer;
}
.result-review-history ol {
  list-style:none;
  padding:0;
  margin:0;
}
.result-review-history li {
  border-bottom:1px solid var(--line);
  padding:12px 0;
}
.result-review-history li>div {
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:6px 12px;
}
.result-review-history time {
  color:var(--muted);
  font-size:12px;
}
.result-review-note {
  padding-top:8px;
  overflow-wrap:anywhere;
}
.result-review-note span {
  display:block;
  margin-top:3px;
}
.result-review-button {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:6px;
  font-size:12px;
}
.result-review-button svg,#result-review-undo svg {
  width:15px;
  height:15px;
  flex-shrink:0;
}
#result-review-undo {
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-right:auto;
}
.result-review-counts {
  display:flex;
  flex-wrap:wrap;
  gap:8px 18px;
  color:var(--muted);
  font-size:12px;
}
.drawer-dialog {
  position:fixed;
  inset:0 0 0 auto;
  margin:0;
  width:min(620px,100%);
  height:100dvh;
  max-height:100dvh;
  border-radius:0;
  border:0;
  border-left:1px solid var(--line);
  padding:24px;
  box-shadow:-12px 0 40px #0005;
}
.dialog-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  margin-bottom:20px;
}
.dialog-header h2 {
  overflow-wrap:anywhere;
}
.dialog-actions {
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:10px;
  margin-top:22px;
}
.sticky-dialog-actions {
  position:sticky;
  bottom:-24px;
  background:var(--surface);
  border-top:1px solid var(--line);
  padding:16px 0;
  margin-top:16px;
}
.dialog-actions .muted-small {
  margin-right:auto;
}
.picker-list {
  min-height:140px;
}
.picker-row {
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:13px 0;
  border-bottom:1px solid var(--line);
  font-size:14px;
}
.picker-row>span {
  overflow-wrap:anywhere;
  min-width:0;
}
.picker-row small {
  display:block;
  color:var(--faint);
  font-size:12px;
  margin-top:4px;
}
.picker-row input {
  margin-top:4px;
}
.drawer-dialog .filter-toolbar .search-field {
  flex:1;
  min-width:150px;
}
.segmented-control {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  border-bottom:1px solid var(--line);
  margin-bottom:20px;
  padding-bottom:6px;
}
.segmented-control button {
  border:0;
  background:transparent;
  border-radius:6px;
  padding:10px;
  color:var(--muted);
}
.segmented-control button.is-active {
  color:var(--teal);
  background:var(--teal-soft);
}
.single-import-fields,#edit-form,#subscription-form {
  display:grid;
  gap:18px;
}
.password-field {
  display:block;
  position:relative;
}
.password-field input {
  padding-right:46px;
}
.password-toggle {
  position:absolute;
  top:3px;
  right:4px;
  border:0;
}
.batch-tools {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}
.batch-rows {
  display:grid;
  gap:14px;
}
.batch-row {
  display:grid;
  grid-template-columns:22px minmax(0,1fr) minmax(0,1fr) 36px;
  gap:10px;
  align-items:end;
  padding-bottom:14px;
  border-bottom:1px solid var(--line);
}
.batch-row-number {
  font-size:12px;
  color:var(--faint);
  align-self:center;
  margin-top:22px;
}
.batch-row-error {
  grid-column:2/-1;
  color:var(--red);
  font-size:12px;
}
.import-preview {
  border-top:1px solid var(--line);
  margin-top:18px;
  padding-top:14px;
  font-size:13px;
}
.import-preview ul {
  max-height:160px;
  overflow:auto;
  padding-left:20px;
  line-height:1.8;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.existing-policy {
  margin-top:16px;
}
#paste-panel {
  border-bottom:1px solid var(--line);
  padding-bottom:16px;
  margin-bottom:20px;
}
#paste-panel button {
  margin-top:10px;
}
.dialog-account-name {
  font-size:14px;
  color:var(--muted);
  overflow-wrap:anywhere;
}
.delete-account-list {
  padding-left:18px;
  max-height:190px;
  overflow:auto;
  line-height:1.8;
  overflow-wrap:anywhere;
}
.delete-note,#delete-summary,.confirm-message {
  font-size:13px;
  color:var(--muted);
  line-height:1.7;
  margin-top:12px;
}
.ip-summary {
  overflow-wrap:anywhere;
  font-size:14px;
}
.ip-summary p {
  margin:10px 0;
}
#account-ip-form {
  margin-top:22px;
}
.ip-confirm {
  display:flex;
  gap:10px;
  font-size:13px;
  line-height:1.7;
  margin:15px 0;
}
.ip-confirm input {
  margin-top:4px;
}
.ip-history {
  margin-top:22px;
  font-size:13px;
  color:var(--muted);
}
.ip-history ul {
  max-height:260px;
  overflow:auto;
  padding-left:20px;
}
.ip-history li {
  margin:9px 0;
  overflow-wrap:anywhere;
}
.balance-detail-summary {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
  margin:20px 0;
}
.balance-detail-summary dt {
  color:var(--muted);
  font-size:13px;
}
.balance-detail-summary dd {
  margin:6px 0 0;
  font-size:20px;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
.balance-gifts-title {
  margin:24px 0 14px;
}
.account-detail-section {
  margin-top:22px;
  padding-top:16px;
  border-top:1px solid var(--line);
}
.account-detail-section h3 {
  margin-bottom:10px;
}
.account-detail-section p {
  font-size:13px;
  color:var(--muted);
  margin:8px 0;
  overflow-wrap:anywhere;
}
.account-detail-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:15px 0;
}
.center-table th:nth-child(1) {
  width:24%;
}
.center-table th:nth-child(2) {
  width:26%;
}
.center-table th:nth-child(3) {
  width:17%;
}
.center-table th:nth-child(4) {
  width:23%;
}
.center-table th:last-child {
  width:10%;
}
@media(min-width:761px) {
  .table-wrap {
    max-height:650px;
    border-radius:8px;
  }
  .table-wrap :is(td,th):first-child { padding-inline-start:10px; }
  .table-wrap :is(td,th):last-child { padding-inline-end:10px; }
  .task-form .field.wide {
    min-width:0;
  }
}
@media(max-width:1100px) {
  .sidebar {
    width:180px;
    flex-basis:180px;
    padding-left:12px;
    padding-right:12px;
  }
  .main-content {
    width:calc(100% - 180px);
    padding:24px 22px 40px;
  }
  .topbar {
    align-items:flex-start;
  }
  .settings-layout {
    grid-template-columns:1fr;
  }
  .account-toolbar>.filter-field {
    margin-left:0;
  }
  .account-count-label {
    margin-left:auto;
  }
}
@media(max-width:760px) {
  .app-shell {
    display:block;
  }
  .sidebar {
    position:fixed;
    inset:auto 0 0;
    width:100%;
    height:68px;
    z-index:15;
    border-right:0;
    border-top:1px solid var(--line);
    background:#131b24f5;
    padding:6px 8px calc(6px + env(safe-area-inset-bottom));
    height:calc(68px + env(safe-area-inset-bottom));
  }
  .brand-lockup,.sidebar-footer,.nav-group {
    display:none;
  }
  .side-nav {
    display:grid;
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:2px;
  }
  .nav-item {
    flex-direction:column;
    gap:4px;
    padding:7px 0;
    text-align:center;
    font-size:11px;
    white-space:nowrap;
    min-height:52px;
  }
  .nav-item svg {
    width:20px;
    height:20px;
  }
  .main-content {
    width:100%;
    padding:20px 16px calc(96px + env(safe-area-inset-bottom));
  }
  .topbar {
    gap:12px;
    margin-bottom:18px;
    flex-wrap:wrap;
  }
  .topbar>div:first-child {
    flex:1;
    min-width:170px;
  }
  .topbar-actions {
    gap:9px;
    flex-wrap:wrap;
  }
  .topbar-actions #last-updated {
    display:none;
  }
  .connection-dot {
    font-size:11px;
  }
  .attention-link {
    font-size:11px;
  }
  .topbar-actions .icon-button {
    width:34px;
    height:34px;
  }
  .surface {
    padding:17px;
  }
  .section-heading {
    gap:10px;
  }
  .section-status {
    font-size:11px;
  }
  h1 {
    font-size:23px;
  }
  h2 {
    font-size:17px;
  }
  .view-intro {
    align-items:flex-start;
    gap:12px;
  }
  .view-intro p {
    font-size:12px;
  }
  .view-intro>.primary-button,.view-intro>.secondary-button {
    font-size:12px;
    min-height:38px;
    padding:7px 10px;
    flex:none;
  }
  .page-tabs {
    gap:20px;
  }
  .page-tabs button {
    font-size:13px;
  }
  .compact-metrics {
    gap:7px 18px;
    padding:10px 12px;
    font-size:12px;
  }
  .compact-metrics b {
    font-size:17px;
  }
  .account-toolbar,.filter-toolbar {
    gap:12px;
  }
  .account-toolbar .search-field,.filter-toolbar .search-field {
    width:100%;
  }
  .account-toolbar>.filter-field {
    flex:1;
    min-width:0;
  }
  .account-toolbar>.muted-small {
    align-self:center;
  }
  .balance-toolbar {
    align-items:stretch;
  }
  .balance-toolbar .muted-small {
    width:100%;
    margin:0;
  }
  .balance-concurrency {
    width:90px;
  }
  .balance-toolbar .secondary-button {
    font-size:12px;
  }
  .task-selection {
    align-items:flex-start;
    flex-direction:column;
  }
  .task-selection button {
    align-self:flex-end;
  }
  .results-toolbar {
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .results-toolbar .field:first-child {
    grid-column:1/-1;
  }
  .draw-results .results-toolbar .field:first-child {
    grid-column:auto;
  }
  .table-wrap.results-surface {
    overflow:visible;
  }
  .accounts-table table,.accounts-table tbody,.results-surface table,.results-surface tbody,.nodes-table table,.nodes-table tbody,.center-table table,.center-table tbody,.balance-gifts-table table,.balance-gifts-table tbody {
    display:block;
    min-width:0;
  }
  .accounts-table thead,.results-surface thead,.nodes-table thead,.center-table thead,.balance-gifts-table thead {
    display:none;
  }
  .accounts-table tr,.results-surface tr,.nodes-table tr,.center-table tr,.balance-gifts-table tr {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px 16px;
    padding:16px 0;
    border-bottom:1px solid var(--line);
  }
  .accounts-table td,.results-surface td,.nodes-table td,.center-table td,.balance-gifts-table td {
    display:block;
    border:0;
    padding:0!important;
    min-width:0;
  }
  .table-wrap td::before {
    content:attr(data-label);
    display:block;
    color:var(--faint);
    font-size:11px;
    margin-bottom:5px;
  }
  .accounts-table td:first-child {
    grid-column:1;
    grid-row:1;
    align-self:center;
    z-index:1;
    width:18px;
  }
  .accounts-table td.account-name {
    grid-column:1/-1;
    grid-row:1;
    margin-left:30px;
    color:var(--text);
  }
  .accounts-table td.account-name::before,.accounts-table td:first-child::before {
    display:none;
  }
  .accounts-table td:last-child {
    grid-column:1/-1;
    display:flex;
    justify-content:flex-end;
  }
  .accounts-table td:last-child::before {
    display:none;
  }
  .results-surface td:first-child,.results-surface td:nth-child(7),.nodes-table td:first-child,.nodes-table td:last-child,.center-table td:first-child,.balance-gifts-table td:last-child {
    grid-column:1/-1;
  }
  .draw-results td:nth-child(2) {
    grid-column:1/-1;
  }
  .results-surface .pill {
    white-space:normal;
  }
  .table-empty {
    display:block!important;
    grid-column:1/-1;
  }
  .selection-toolbar {
    bottom:calc(80px + env(safe-area-inset-bottom));
    padding:12px;
    gap:10px;
  }
  .selection-actions {
    margin-left:0;
    width:100%;
    gap:8px;
  }
  .selection-actions>.primary-button,.selection-actions>.secondary-button {
    flex:1;
    font-size:12px;
    padding:7px 9px;
  }
  .selection-actions .action-menu {
    margin-left:auto;
  }
  .pagination {
    gap:8px;
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .pager-actions {
    gap:6px;
  }
  .pager-actions label {
    font-size:11px;
  }
  .pager-actions select {
    padding:4px;
    min-height:32px;
  }
  .pagination>span {
    align-self:center;
  }
  .settings-grid {
    grid-template-columns:1fr;
  }
  .settings-save {
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }
  .settings-save .primary-button {
    font-size:12px;
  }
  .task-strip {
    gap:8px;
    font-size:12px;
  }
  .balance-job-heading .field {
    order:3;
    flex-basis:100%;
  }
  .balance-job-heading h3 {
    font-size:17px;
  }
  .node-group>summary {
    grid-template-columns:1fr auto;
    gap:9px;
    padding:13px;
  }
  .node-group>summary .group-owner {
    grid-column:1/-1;
    grid-row:2;
    overflow-wrap:anywhere;
  }
  .node-group>summary .group-lines {
    grid-column:1;
    grid-row:3;
    font-size:12px;
    color:var(--faint);
  }
  .node-group>summary .group-state {
    grid-column:2;
    grid-row:1;
  }
  .node-group-body {
    padding:13px;
  }
  .subscription-list li {
    padding:13px;
  }
  .subscription-actions {
    width:100%;
  }
  .subscription-actions button {
    font-size:12px;
  }
  .account-dialog {
    padding:18px;
  }
  .drawer-dialog {
    padding:20px;
  }
  .drawer-dialog .sticky-dialog-actions {
    bottom:-20px;
  }
  .sticky-dialog-actions .muted-small {
    width:100%;
    margin:0;
  }
  .dialog-actions .primary-button,.dialog-actions .secondary-button {
    flex:1;
  }
  .dialog-header h2 {
    font-size:18px;
  }
  .batch-row {
    grid-template-columns:18px minmax(0,1fr) 36px;
  }
  .batch-row .field:nth-of-type(2) {
    grid-column:2;
    grid-row:2;
  }
  .batch-row .remove-batch-row {
    grid-column:3;
    grid-row:1;
  }
  .batch-row-number {
    align-self:start;
    margin-top:31px;
  }
  .batch-tools .secondary-button {
    width:auto;
    flex:1;
    font-size:12px;
    padding:8px;
    white-space:nowrap;
  }
  .balance-detail-summary dd {
    font-size:18px;
  }
  .draw-card-head .pill {
    font-size:11px;
  }
  .draw-card dl {
    font-size:12px;
  }
  .draw-card-head {
    gap:8px;
  }
  .filter-toolbar>.field {
    flex:1;
    min-width:0;
  }
  .results-surface .table-wrap {
    overflow:visible;
  }
}
@media(max-width:390px) {
  .task-form {
    grid-template-columns:1fr;
  }
  .task-form>.field,.task-form>.task-selection {
    grid-column:1/-1;
  }
  .section-heading {
    align-items:flex-start;
  }
  .section-status {
    max-width:110px;
  }
  .settings-save .pill {
    font-size:11px;
  }
  .pagination>span {
    font-size:11px;
  }
  .pager-actions>span {
    font-size:11px;
  }
  .page-tabs {
    gap:18px;
  }
  .drawer-dialog .filter-toolbar>select {
    width:100%;
  }
  .form-actions .primary-button {
    width:100%;
  }
  .task-form .form-hint {
    width:100%;
  }
  .selection-actions .primary-button {
    flex-basis:100%;
  }
}

/* Daily check-in shares the account table and task center. */
.checkin-launcher,.checkin-schedule,.checkin-history { margin-bottom:20px; }
.session-cleanup-launcher,.session-cleanup-history { margin-bottom:20px; }
.session-cleanup-launcher .task-selection { margin-top:18px; }
.session-cleanup-launcher .balance-toolbar { flex-wrap:wrap; margin-top:18px; }
.session-cleanup-history .task-strip { border-radius:0; border-bottom:1px solid var(--line); margin:0; padding:14px 0; }
.session-cleanup-history .task-strip:last-child { border-bottom:0; }
.session-cleanup-history[open]>.checkin-section-toggle { margin-bottom:20px; }
.session-cleanup-history[open]>.checkin-section-toggle::after { content:"−"; }
.checkin-launcher .balance-toolbar { flex-wrap:wrap; margin-top:18px; }
.checkin-toggle { display:flex; align-items:center; gap:10px; font-size:14px; padding:4px 0; }
.checkin-toggle input { width:16px; height:16px; accent-color:var(--teal); }
.checkin-schedule .task-form { max-width:740px; }
.checkin-history .task-strip { border-radius:0; border-bottom:1px solid var(--line); margin:0; padding:14px 0; }
.checkin-history .task-strip:last-child { border-bottom:0; }
@media(max-width:760px) {
  #view-accounts .page-tabs { flex-wrap:wrap; row-gap:0; }
  #checkin-panel .balance-toolbar>.primary-button,#checkin-panel .balance-toolbar>.secondary-button { flex:1; }
  #checkin-panel .balance-toolbar>.muted-small { width:100%; }
  #checkin-task-detail .batch-controls { flex-wrap:wrap; }
  #checkin-task-detail .batch-controls button { flex:1; }
  #session-cleanup-panel .balance-toolbar>.primary-button,#session-cleanup-panel .balance-toolbar>.secondary-button { flex:1 1 100%; }
  #session-cleanup-panel .balance-toolbar>.muted-small { width:100%; }
  #session_cleanup-task-detail .batch-controls { flex-wrap:wrap; }
  #session_cleanup-task-detail .batch-controls button { flex:1; }
}

.checkin-section-toggle { cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:16px; font-weight:600; list-style:none; }
.checkin-section-toggle::after { content:"＋"; color:var(--muted); }
.checkin-section-toggle>span:first-child { margin-right:auto; }
.checkin-section-toggle::-webkit-details-marker { display:none; }
.checkin-schedule[open]>.checkin-section-toggle,.checkin-history[open]>.checkin-section-toggle { margin-bottom:20px; }
.checkin-schedule[open]>.checkin-section-toggle::after,.checkin-history[open]>.checkin-section-toggle::after { content:"−"; }

#view-accounts.checkin-tab #balance-last-job { display:none; }

#view-accounts.api-key-tab>.account-surface,
#view-accounts.api-key-tab>#account-selection-toolbar,
#view-accounts.api-key-tab>#balance-last-job,
#view-accounts.api-key-tab>.username-sync-launcher { display:none; }
.api-key-launcher,.api-key-inventory { margin-bottom:24px; min-width:0; }
.api-key-query-toolbar { flex-wrap:wrap; margin-top:18px; }
.api-key-switch-toolbar { display:flex; flex-wrap:wrap; align-items:end; gap:12px; margin:20px 0 12px; padding-top:20px; border-top:1px solid var(--line); }
.api-key-switch-toolbar>.field { min-width:180px; flex:1 1 200px; }
.api-key-switch-toolbar button { min-height:42px; }
.api-key-selection { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:16px 0; font-size:13px; }
.api-key-table td { overflow-wrap:anywhere; }
.api-key-table th:first-child { width:40px; }
.api-key-table input[type="checkbox"] { width:16px; height:16px; accent-color:var(--teal); }
#api_keys-task-detail .batch-controls { flex-wrap:wrap; }
#api-key-query-summaries { margin-top:20px; }
#api-key-query-summaries>.pagination { margin-bottom:0; }
@media(max-width:760px) {
  .api-key-query-toolbar>button,.api-key-switch-toolbar>button { flex:1 1 100%; }
  .api-key-query-toolbar>.muted-small { width:100%; }
  #api-key-panel .task-selection { align-items:flex-start; }
  #api-key-panel .filter-toolbar { align-items:stretch; }
  #api-key-panel .filter-toolbar>.checkin-toggle { width:100%; }
  .api-key-table td:first-child { min-height:34px; }
  #api-key-panel .api-key-table td:first-child::before { content:none; }
  #api_keys-task-detail .batch-controls button { flex:1; }
}

.operation-logs-panel { margin-top:24px; min-width:0; }
.operation-logs-panel[open]>.checkin-section-toggle { margin-bottom:16px; }
.operation-logs-panel[open]>.checkin-section-toggle::after { content:"−"; }
.operation-log-filter { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:18px 0; }
.operation-log-actions { display:flex; flex-wrap:wrap; align-items:end; gap:8px; }
.operation-log-table table { table-layout:fixed; width:100%; }
.operation-log-table td { overflow-wrap:anywhere; }
.operation-log-fields { margin:12px 0 20px; }
.operation-log-fields>div { display:grid; grid-template-columns:140px minmax(0,1fr); gap:12px; padding:8px 0; border-bottom:1px solid var(--line-soft); }
.operation-log-fields dt { color:var(--muted); }
.operation-log-fields dd { margin:0; min-width:0; overflow-wrap:anywhere; }
.operation-log-fields .operation-log-fields { margin:0; }
.operation-log-fields .operation-log-fields>div { display:block; }
.operation-log-fields ol { margin:0; padding-left:20px; }
.operation-log-fields li { margin-bottom:8px; }
.operation-log-dialog pre { white-space:pre-wrap; overflow-wrap:anywhere; max-height:360px; overflow:auto; font-size:12px; }
@media(max-width:760px) {
  .operation-log-filter { grid-template-columns:minmax(0,1fr); }
  .operation-log-actions>button { flex:1; }
  .operation-log-table thead { display:none; }
  .operation-log-table tr { display:block; border-bottom:1px solid var(--line); padding:12px 0; }
  .operation-log-table td { display:grid; grid-template-columns:104px minmax(0,1fr); padding:6px 0; border:0; }
  .operation-log-table td::before { content:attr(data-label); color:var(--muted); font-size:12px; }
  .operation-log-table td .balance-query-note { grid-column:2; }
  .operation-log-table .table-empty { display:block; }
  .operation-log-table .table-empty::before { content:none; }
  .operation-log-fields>div { grid-template-columns:minmax(0,1fr); gap:4px; }
}

/* Task lists and selected task details share one workspace, with explicit navigation. */
.detail-toolbar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:18px;
}

.detail-toolbar { padding-bottom:18px; border-bottom:1px solid var(--line); }
.detail-toolbar>div { flex:1; min-width:0; }
.detail-toolbar h2 { font-size:18px; }
.batch-controls:not(:has(button:not([hidden]))) { display:none; }
#center-detail-title:focus { outline:none; }
#center-detail>.task-detail { margin-top:0; }
#center-alert { margin-bottom:16px; }
.task-type-dialog { width:min(720px,calc(100vw - 32px)); }
.task-type-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.task-type-grid>button {
  display:flex; align-items:center; gap:13px; min-width:0;
  padding:18px; min-height:94px; text-align:left;
  border:1px solid var(--line); border-radius:9px;
  color:var(--text); background:var(--bg);
}
.task-type-grid>button:hover { border-color:var(--teal); background:var(--teal-soft); }
.task-type-grid>button>svg { width:23px; height:23px; color:var(--teal); }
.task-type-grid>button>span:first-of-type { flex:1; min-width:0; }
.task-type-grid strong { display:block; font-size:14px; font-weight:600; }
.task-type-grid small { display:block; margin-top:4px; font-size:12px; color:var(--muted); line-height:1.6; }
.task-type-grid>button>span:last-child { color:var(--faint); }

/* Keep account maintenance next to the list instead of separate introductory cards. */
.account-surface .account-toolbar { margin-bottom:10px; }
.account-utilities { display:flex; align-items:center; flex-wrap:wrap; gap:8px 18px; margin-bottom:10px; }
.account-utility-menu.username-sync-launcher { margin:0; min-width:0; }
.account-utility-menu>summary {
  display:flex; align-items:center; gap:7px; width:fit-content;
  list-style:none; color:var(--muted); font-size:12px; min-height:36px;
  border:1px solid var(--line); border-radius:6px; padding:5px 10px;
}
.account-utility-menu>summary::-webkit-details-marker { display:none; }
.account-utility-menu>summary svg { width:15px; height:15px; }
.account-utility-menu>summary:hover { color:var(--text); border-color:var(--teal); }
.account-utility-menu[open] { flex:1 1 100%; }
.account-utility-menu[open]>summary { color:var(--teal); }
.account-utility-menu[open]>summary svg:last-child { transform:rotate(180deg); }
.account-utility-content { margin-top:12px; padding:16px; border:1px solid var(--line); border-radius:8px; background:var(--bg); }
.account-utility-content .task-selection { margin-top:14px; }
.account-utility-content .balance-toolbar { margin:14px 0 10px; }
.account-recent-task.task-strip { flex:1; min-width:0; margin:0; padding:5px 0; border:0; background:none; font-size:12px; }
.account-recent-task .text-button { font-size:12px; }
.account-selection-hint { font-size:12px; color:var(--faint); margin:8px 0 12px; line-height:1.6; }
.account-selection-scope { display:flex; align-items:center; justify-content:space-between; gap:8px 14px; flex-wrap:wrap; }
.account-selection-scope .account-selection-hint { flex:1; min-width:180px; }
.account-selection-hint.has-selection { color:var(--teal); }
.account-select-filtered { display:none; }
@media(max-width:760px) {
  .main-content { position:relative; padding-top:18px; }
  .topbar { gap:10px; margin-bottom:16px; }

  .detail-toolbar { gap:12px; flex-wrap:wrap; padding-bottom:14px; }
  .detail-toolbar>div { flex:1; }
  .detail-toolbar>div>.muted-small { display:none; }
  .detail-toolbar>button:first-child { min-height:38px; font-size:12px; padding:6px 10px; }
  .detail-toolbar>button:last-child { margin-left:auto; min-width:36px; min-height:36px; font-size:0; gap:0; padding:0; border:1px solid var(--line); border-radius:7px; }
  .detail-toolbar h2 { font-size:16px; }
  .task-type-grid { grid-template-columns:1fr; gap:9px; }
  .task-type-grid>button { min-height:76px; padding:13px 15px; }
  #view-accounts>.view-intro { position:absolute; top:18px; right:16px; margin:0; }
  #view-accounts>.view-intro>p { display:none; }
  #view-accounts>.view-intro { justify-content:flex-end; }
  #view-accounts>.page-tabs { flex-wrap:nowrap; overflow-x:auto; gap:20px; margin-bottom:12px; scrollbar-width:thin; }
  #view-accounts>.page-tabs>button { min-height:44px; padding:9px 0; }
  #account-summary { gap:6px 16px; padding:9px 12px; margin-bottom:12px; }
  #account-summary b { font-size:16px; }
  .account-surface { padding:14px; }
  .account-surface .account-toolbar { gap:9px; }
  .account-surface .account-toolbar>.filter-field { flex-direction:row; align-items:center; gap:9px; }
  .account-surface .account-toolbar>.filter-field>span { white-space:nowrap; font-size:12px; }
  .account-surface .account-toolbar>.filter-field>select { width:100%; min-height:38px; padding:6px 10px; font-size:12px; }
  .account-utilities { gap:4px 12px; }
  .account-recent-task.task-strip { flex-basis:100%; flex-wrap:wrap; gap:4px 8px; }
  .account-utility-content { padding:12px; }
  .account-utility-content .balance-toolbar { align-items:end; }
  .account-select-filtered { display:inline-flex; }
  .account-selection-hint { margin:5px 0 8px; }
  .table-wrap td::before { font-size:12px; }
  .pager-actions label,.pager-actions>span { font-size:12px; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; }
}
