/* v12.1 — one semantic palette for the full workspace, forms and public pages. */
:root{
  color-scheme:light;
  --ui-bg:#f5f6fb;--ui-surface:#ffffff;--ui-raised:#ffffff;--ui-soft:#f2f4fa;--ui-hover:#eef0fa;
  --ui-text:#253049;--ui-heading:#19253c;--ui-muted:#65728a;--ui-line:#e3e7f0;
  --ui-selection-bg:#6546d7;--ui-selection-text:#ffffff;
  --ui-accent:#6058cc;--ui-accent-hover:#5148ba;--ui-accent-soft:#eeecfc;--ui-accent-text:#5b50bf;
  --ui-good:#1f7967;--ui-good-soft:#e7f5ef;--ui-good-line:#c5e6d9;
  --ui-warn:#916522;--ui-warn-soft:#fcf3e3;--ui-warn-line:#ecd8b7;
  --ui-danger:#b54c65;--ui-danger-soft:#faedf1;--ui-danger-line:#f0ccd8;
  --ui-info:#426fab;--ui-info-soft:#ebf2fb;--ui-info-line:#ccdff6;
  --ui-shadow:0 4px 20px #26335606,0 1px 3px #26335603;--ui-header:#fcfdffe8;
  --ui-sidebar:#202c43;--ui-sidebar-text:#b6c2d7;--ui-sidebar-active:#eeedff;--ui-sidebar-active-text:#494390;
  --ui-hero:linear-gradient(115deg,#eeedff 0%,#f0f1fd 55%,#e9f5f3 100%);--ui-hero-text:#323659;--ui-hero-muted:#686f91;
  --ui-orbit:#807ac02e;--ui-orbit-fill:#ffffffb3;--ui-focus:#8c82e5;
}
:root[data-theme=dark]{
  color-scheme:dark;
  --ui-bg:#0e1420;--ui-surface:#171f2f;--ui-raised:#1d273a;--ui-soft:#1c2638;--ui-hover:#242e44;
  --ui-text:#dbe2f0;--ui-heading:#f0f3fa;--ui-muted:#a3aec5;--ui-line:#2a354b;
  --ui-selection-bg:#b9a7ff;--ui-selection-text:#17112e;
  --ui-accent:#a299f1;--ui-accent-hover:#b6adfa;--ui-accent-soft:#2d2b4e;--ui-accent-text:#b4abfb;
  --ui-good:#85d6ba;--ui-good-soft:#1a3733;--ui-good-line:#2e5249;
  --ui-warn:#e9c28c;--ui-warn-soft:#3c3225;--ui-warn-line:#58482f;
  --ui-danger:#ef9bb2;--ui-danger-soft:#3e2837;--ui-danger-line:#60394d;
  --ui-info:#9ac0f2;--ui-info-soft:#22334e;--ui-info-line:#365075;
  --ui-shadow:0 6px 26px #00000018,0 1px 0 #ffffff03 inset;--ui-header:#111a29e8;
  --ui-sidebar:#101928;--ui-sidebar-text:#b4bfd3;--ui-sidebar-active:#323250;--ui-sidebar-active-text:#ded9ff;
  --ui-hero:linear-gradient(115deg,#292b4b 0%,#232a43 55%,#1c363c 100%);--ui-hero-text:#eeecff;--ui-hero-muted:#b0b7d5;
  --ui-orbit:#a6a0e03d;--ui-orbit-fill:#313851d9;--ui-focus:#b3a7ff;
}
html[data-theme] body{--text:var(--ui-text);--muted:var(--ui-muted);--line:var(--ui-line);--card:var(--ui-surface);--bg:var(--ui-bg);--blue:var(--ui-accent);--blue2:var(--ui-accent-hover);--blue-soft:var(--ui-accent-soft);--green:var(--ui-good);--green-soft:var(--ui-good-soft);--red:var(--ui-danger);--red-soft:var(--ui-danger-soft);--amber-soft:var(--ui-warn-soft);--shadow:var(--ui-shadow);color:var(--ui-text);background:var(--ui-bg);font-family:'Segoe UI',Arial,sans-serif}
html[data-theme] :is(button,input,select,textarea){font-family:inherit}
html[data-theme] :is(h1,h2,h3,h4){color:var(--ui-heading)}
html[data-theme] :focus-visible{outline:3px solid var(--ui-focus);outline-offset:3px}
/* Strong text selection, including domain inputs and rotator textareas. */
html[data-theme] ::selection{background:var(--ui-selection-bg);color:var(--ui-selection-text);text-shadow:none}
html[data-theme] input::placeholder,html[data-theme] textarea::placeholder{color:var(--ui-muted);opacity:.85}
html.theme-ready :is(body,.app-header,.sidebar,.panel,.metric,.stat-card,.btn,.theme-switch button,dialog,input,select,textarea){transition:background-color .18s ease,border-color .18s ease,color .18s ease,box-shadow .18s ease,transform .18s ease}
/* Shell: deeper navigation, quiet surfaces, room to breathe. */
html[data-theme] .workspace-ui .sidebar{background:var(--ui-sidebar);color:var(--ui-sidebar-text);border-right:1px solid #ffffff09}
html[data-theme] .workspace-ui .brand-icon{background:#b9b3f1;color:#302c5c;border-radius:13px;font-size:31px;font-weight:400}
html[data-theme] .workspace-ui .brand b{color:#f0f3fb;letter-spacing:-.5px}
html[data-theme] .workspace-ui .brand small{color:#a0adc6;letter-spacing:1.4px}
html[data-theme] .nav-caption{color:#a0adc6;border-color:#ffffff18}
html[data-theme] .workspace-ui .sidebar nav a{color:var(--ui-sidebar-text);font-size:12.5px;border-radius:11px;min-height:46px}
html[data-theme] .workspace-ui .sidebar nav a:hover{background:#ffffff08;color:#fff;transform:translateX(2px)}
html[data-theme] .workspace-ui .sidebar nav a.active{background:var(--ui-sidebar-active);border-color:transparent;color:var(--ui-sidebar-active-text);box-shadow:none}
html[data-theme] .workspace-ui .sidebar-bottom>a{color:var(--ui-sidebar-text)}
html[data-theme] .workspace-ui .side-status{background:#ffffff04;border-color:#ffffff0b;color:#e4ebf7}
html[data-theme] .workspace-ui .side-status small,html[data-theme] .workspace-ui .side-role-badge small{color:#b1bdd1}
html[data-theme] .workspace-ui .side-role-badge span{color:#bcb5f6}
html[data-theme] .workspace-ui .app-header{background:var(--ui-header);border-color:var(--ui-line);backdrop-filter:blur(18px);height:78px;gap:18px}
html[data-theme] .workspace-ui .header-actions{gap:12px}
html[data-theme] .workspace-ui .command-trigger{color:var(--ui-muted);font-size:12px!important;min-width:25px}
html[data-theme] .workspace-ui .command-trigger>span:first-child{color:var(--ui-accent)}
html[data-theme] .workspace-ui .command-trigger kbd{background:var(--ui-soft);border-color:var(--ui-line);color:var(--ui-muted);margin-left:10px}
html[data-theme] .workspace-ui .profile-chip{border-color:var(--ui-line);border-radius:0}
html[data-theme] .workspace-ui .profile-chip:hover{background:var(--ui-soft)}
html[data-theme] .workspace-ui .avatar{background:var(--ui-accent-soft);color:var(--ui-accent-text);border-color:var(--ui-line);border-radius:12px}
html[data-theme] .workspace-ui .profile-chip b{color:var(--ui-text)}
html[data-theme] .workspace-ui .profile-chip small,html[data-theme] .workspace-ui .header-domain-summary small{color:var(--ui-muted)}
html[data-theme] .workspace-ui .header-domain-summary .mini-chart{color:var(--ui-accent)}
html[data-theme] .workspace-ui .icon-button{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-muted);border-radius:10px}
html[data-theme] .workspace-ui .topbar{margin-bottom:27px}
html[data-theme] .workspace-ui .topbar h1{font-size:30px;font-weight:650;letter-spacing:-1px;line-height:1.2}
html[data-theme] .workspace-ui .topbar p{font-size:13px;color:var(--ui-muted)}
html[data-theme] .workspace-ui .eyebrow{color:var(--ui-muted);letter-spacing:1.55px;font-size:10px;font-weight:600}
html[data-theme] .accent{color:var(--ui-accent)}
/* Three explicit preferences; never confuse system preference with active color. */
.theme-switch{display:inline-flex;gap:3px;align-items:center;border:1px solid var(--ui-line);background:var(--ui-soft);padding:4px;border-radius:13px;flex-shrink:0}
.theme-switch button{display:flex;align-items:center;justify-content:center;gap:6px;min-width:31px;height:31px;padding:0 8px;background:transparent;border:1px solid transparent;color:var(--ui-muted);border-radius:9px;cursor:pointer;font:500 11px 'Segoe UI',sans-serif}
.theme-switch button:hover{background:var(--ui-hover);color:var(--ui-heading)}
.theme-switch button[aria-pressed=true]{background:var(--ui-raised);border-color:var(--ui-line);color:var(--ui-accent-text);box-shadow:0 2px 5px #00000008}
.theme-switch svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.theme-switch button[data-theme-choice=system] span{display:none}
.public-theme-switch{position:absolute;top:23px;right:28px;z-index:5}
/* Cards and type: consistent geometry without flat, rigid boxes. */
html[data-theme] .workspace-ui :is(.panel,.metric,.stat-card,.quick-card,.create-disclosure){background:var(--ui-surface);border-color:var(--ui-line);box-shadow:var(--ui-shadow);border-radius:18px}
html[data-theme] .workspace-ui .panel{padding:25px}
html[data-theme] .workspace-ui .panel-head h2{font-size:17px;letter-spacing:-.35px;font-weight:600}
html[data-theme] .workspace-ui .panel-head p{font-size:12px;color:var(--ui-muted)}
html[data-theme] .workspace-kpis{gap:18px}
html[data-theme] .workspace-ui .metric{padding:23px;min-height:149px}
html[data-theme] .workspace-ui .metric:hover{transform:translateY(-3px);box-shadow:0 9px 27px #2933580c;border-color:var(--ui-accent)}
html[data-theme] .metric>span:not(.metric-icon){font-size:12px;color:var(--ui-muted)}
html[data-theme] .metric>b{color:var(--ui-heading);font-size:35px;font-weight:550;margin:3px 0}
html[data-theme] .metric>small{color:var(--ui-muted);font-size:11px;line-height:1.5}
html[data-theme] .metric-icon{width:34px;height:34px;background:var(--ui-accent-soft);color:var(--ui-accent-text);border-radius:11px}
html[data-theme] .metric-icon.good{background:var(--ui-good-soft);color:var(--ui-good)}
html[data-theme] .metric-icon.amber{background:var(--ui-warn-soft);color:var(--ui-warn)}
html[data-theme] .workspace-ui :is(.stat-card .icon,.section-title-icon,.link-tile,.activity-type i,.user-mini-avatar){background:var(--ui-accent-soft);color:var(--ui-accent-text);border-radius:11px}
html[data-theme] .workspace-ui .stat-card :is(.label,.sub){color:var(--ui-muted)}
html[data-theme] .workspace-ui .stat-card .value{color:var(--ui-heading);font-weight:600}
html[data-theme] .workspace-ui .shortlink-stat{background:var(--ui-surface)}
html[data-theme] :is(.period-label,.count-pill){background:var(--ui-soft);color:var(--ui-muted);border-color:var(--ui-line);border-radius:8px;font-size:11px}
html[data-theme] .panel-bottom{color:var(--ui-muted);border-color:var(--ui-line);font-size:11px}
html[data-theme] :is(.panel-bottom a,.text-link,.copy-button,.domain-inspect){color:var(--ui-accent-text)}
html[data-theme] .workspace-footer{color:var(--ui-muted);font-size:10px;letter-spacing:.5px}
/* Hero uses restrained color, not a flat green block. */
html[data-theme] .workspace-hero{background:var(--ui-hero);border:1px solid var(--ui-line);color:var(--ui-hero-text);border-radius:22px;padding:30px 38px;min-height:240px;box-shadow:0 1px 1px #ffffff05 inset}
html[data-theme] .workspace-hero:after{background:radial-gradient(circle,#9b9ae514,transparent 70%);width:470px;height:470px;right:-80px;top:-230px}
html[data-theme] .workspace-hero h2{color:var(--ui-hero-text);font-weight:550;letter-spacing:-1px;font-size:31px}
html[data-theme] .workspace-hero p{color:var(--ui-hero-muted);font-size:13px}
html[data-theme] .hero-kicker{color:var(--ui-hero-muted);letter-spacing:1.8px;font-size:10px}
html[data-theme] .signal-dot{background:#7d79ce;box-shadow:0 0 0 4px #918ade15}
html[data-theme] .hero-command{color:var(--ui-accent-text);font-size:12px!important}
html[data-theme] .hero-command kbd{background:var(--ui-orbit-fill);color:var(--ui-hero-muted);border:1px solid var(--ui-orbit)}
html[data-theme] .orbit{border-color:var(--ui-orbit)}
html[data-theme] .orbit-core{background:var(--ui-orbit-fill);border-color:var(--ui-orbit);box-shadow:0 18px 38px #34306414;backdrop-filter:blur(8px)}
html[data-theme] .orbit-core b{color:var(--ui-accent-text)}
html[data-theme] .orbit-core :is(span,small){color:var(--ui-hero-muted)}
html[data-theme] .orbit-node{background:var(--ui-orbit-fill);border-color:var(--ui-orbit);color:var(--ui-accent-text);box-shadow:0 8px 20px #3430640a}
html[data-theme] .node-b{background:var(--ui-good-soft);color:var(--ui-good)}
/* Data visualizations and attention states. */
html[data-theme] .traffic-total{color:var(--ui-heading);font-weight:550}
html[data-theme] :is(.traffic-total span,.traffic-day,.bar-value,.health-summary>span,.health-summary small,.health-legend>div){color:var(--ui-muted)}
html[data-theme] .traffic-chart{background:repeating-linear-gradient(to top,transparent 0,transparent 43px,var(--ui-line) 44px,transparent 45px);height:166px}
html[data-theme] .bar-track i{background:#aea8eb;border-radius:7px 7px 3px 3px}
html[data-theme] .traffic-day:last-child .bar-track i{background:#786fd4}
html[data-theme] .bar-value{font-size:10px}
html[data-theme] .health-summary>b{color:var(--ui-heading);font-weight:550}
html[data-theme] .health-legend b{color:var(--ui-text)}
html[data-theme] .health-legend>div{font-size:11px}
html[data-theme] .health-segments{background:var(--ui-soft);height:10px;gap:4px}
html[data-theme] .segment-healthy{background:#55a891}html[data-theme] .segment-critical{background:#cc7f9a}html[data-theme] .segment-issue{background:#cfab71}html[data-theme] .segment-unknown{background:#8794b2}html[data-theme] .segment-stale{background:#afa1ce}html[data-theme] .segment-paused{background:#627186}
html[data-theme] .priority-item{color:var(--ui-text);border-color:var(--ui-line);padding:16px 8px;border-radius:10px;background:transparent}
html[data-theme] .priority-item:hover{background:var(--ui-soft)}
html[data-theme] .priority-item b{font-size:13px;font-weight:600}
html[data-theme] .priority-item small{color:var(--ui-muted);font-size:11px;line-height:1.55}
html[data-theme] .priority-arrow{color:var(--ui-muted)}
html[data-theme] :is(.state-critical,.badge.danger,.notice.error,.btn-danger){color:var(--ui-danger);background:var(--ui-danger-soft);border-color:var(--ui-danger-line)}
html[data-theme] :is(.state-issue,.state-stale,.badge.warn,.notice.warn){color:var(--ui-warn);background:var(--ui-warn-soft);border-color:var(--ui-warn-line)}
html[data-theme] :is(.state-healthy,.badge.safe,.badge.online,.notice.success,.btn-success){color:var(--ui-good);background:var(--ui-good-soft);border-color:var(--ui-good-line)}
html[data-theme] :is(.state-unknown,.state-paused,.badge.muted){color:var(--ui-muted);background:var(--ui-soft);border-color:var(--ui-line)}
html[data-theme] :is(.notice.info,.badge.info){color:var(--ui-info);background:var(--ui-info-soft);border-color:var(--ui-info-line)}
html[data-theme] .workspace-ui .text-green{color:var(--ui-good)}html[data-theme] .workspace-ui .text-red{color:var(--ui-danger)}
html[data-theme] .workspace-ui .badge{font-size:11px;font-weight:500;border-radius:7px;padding:5px 9px}
html[data-theme] .recent-link{border-color:var(--ui-line);padding:14px 0}
html[data-theme] .recent-link b,html[data-theme] .activity-feed b{font-size:13px}
html[data-theme] :is(.recent-link small,.activity-feed small,.activity-feed time){color:var(--ui-muted);font-size:11px}
html[data-theme] .feed-dot{background:#8a80d0;box-shadow:0 0 0 4px var(--ui-accent-soft)}
/* Forms, tables and every secondary settings surface use the same palette. */
html[data-theme] .workspace-ui :is(.shortlink-detail-card,.rotator-settings-box,.rotator-add-box,.health-item,.check-card,.cron-status-item,.interval-chip,.cron-steps>div,.role-guide-item,.history-cleanup-status>div,.history-preset-btn,.user-access-table tr){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] .workspace-ui :is(.shortlink-settings-card,.cron-switch-row,.cron-estimate,.owner-account-box,.history-cleanup-toggle-card,.history-interval-field,.shortlink-info-box,.nawala-guard-card,.link-preview,.message-preview,.cron-countdown-box){background:var(--ui-soft);color:var(--ui-text);border-color:var(--ui-line)}
html[data-theme] .workspace-ui :is(.rotator-manager-panel,.shortlink-create-shell){background:var(--ui-surface);border-color:var(--ui-line)}
html[data-theme] .workspace-ui .shortlink-create-shell{box-shadow:none;border-radius:0;padding:0}
html[data-theme] .workspace-ui .shortlink-detail-card{border-color:var(--ui-line)}
html[data-theme] .workspace-ui :is(.shortlink-type-badge,.redirect-badge,.shortlink-chip,.role-icon,.telegram-icon,.cron-icon){background:var(--ui-accent-soft);color:var(--ui-accent-text)!important;border-color:var(--ui-line)}
html[data-theme] .workspace-ui .create-disclosure summary{padding:22px 26px}
html[data-theme] .workspace-ui .create-disclosure summary:hover{background:var(--ui-soft)}
html[data-theme] .workspace-ui .create-disclosure summary b{font-size:15px;font-weight:600}
html[data-theme] .workspace-ui :is(.create-disclosure summary small,.shortlink-card-title-row p,.form-hint,.health-meta,.cron-switch-row span,.cron-status-item span,.cron-countdown-box span,.cron-countdown-box small,.nawala-guard-card small,.check-card span,.shortlink-main-cell small,.date-stack small,.link-preview small){color:var(--ui-muted);font-size:12px;line-height:1.6}
html[data-theme] .workspace-ui :is(.link-preview b,.cron-countdown-box b,.cron-estimate b){color:var(--ui-accent-text)}
html[data-theme] .workspace-ui :is(input.input,select,textarea,.slug-input-wrap,.redirect-lock-row,.shortlink-search){background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text);border-radius:11px}
html[data-theme] .workspace-ui :is(.slug-input-wrap input,.shortlink-search input){background:transparent;color:var(--ui-text)}
html[data-theme] .workspace-ui .slug-input-wrap span{border-color:var(--ui-line);color:var(--ui-muted)}
html[data-theme] .workspace-ui .field label{font-size:12px;color:var(--ui-text);font-weight:600}
html[data-theme] .workspace-ui :is(input.input,textarea,select):focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-accent-soft);outline:none}
html[data-theme] .workspace-ui input[type=checkbox]{accent-color:var(--ui-accent)}
html[data-theme] .workspace-ui .btn{border-radius:10px;font-size:12px;font-weight:600;min-height:40px}
html[data-theme] .workspace-ui .btn-primary,html[data-theme] .btn-primary{background:var(--ui-accent);border-color:var(--ui-accent);color:#fff;box-shadow:0 4px 10px #5c54b515}
html[data-theme=dark] .btn-primary,html[data-theme=dark] .workspace-ui .btn-primary{color:#19172f}
html[data-theme] .btn-primary:hover{background:var(--ui-accent-hover);border-color:var(--ui-accent-hover);box-shadow:0 5px 15px #5c54b520}
html[data-theme] .workspace-ui .btn-soft,html[data-theme] .btn-soft{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text)}
html[data-theme] .workspace-ui .btn-soft:hover{background:var(--ui-hover);border-color:var(--ui-accent)}
html[data-theme] .workspace-ui .btn-sm{min-height:34px;font-size:11px}
html[data-theme] .workspace-ui :is(.interval-chip.active,.history-preset-btn.active){background:var(--ui-accent-soft);color:var(--ui-accent-text);border-color:var(--ui-accent)}
html[data-theme] .workspace-ui .switch-modern span{background:var(--ui-line)}
html[data-theme] .workspace-ui .switch-modern input:checked+span{background:var(--ui-accent)}
html[data-theme] .workspace-ui .switch-modern input:focus-visible+span{outline:3px solid var(--ui-focus);outline-offset:3px}
html[data-theme] .workspace-ui .table{font-size:12px;color:var(--ui-text)}
html[data-theme] .workspace-ui .table th{background:var(--ui-soft);color:var(--ui-muted);border-color:var(--ui-line);font-size:10px;letter-spacing:.6px}
html[data-theme] .workspace-ui .table td{border-color:var(--ui-line)}
html[data-theme] .workspace-ui .table tbody tr:hover{background:var(--ui-soft)}
html[data-theme] .workspace-ui .table :is(a.link,.destination-link){color:var(--ui-accent-text)}
html[data-theme] .workspace-ui tr:has(.row-select:checked){background:var(--ui-accent-soft)}
html[data-theme] .workspace-ui :is(.icon-action,.action-toolbar .icon-action){background:var(--ui-soft);color:var(--ui-accent-text);border-color:var(--ui-line);border-radius:10px;box-shadow:none}
html[data-theme] .workspace-ui :is(.icon-action:hover,.action-toolbar .icon-action:hover){background:var(--ui-accent-soft);border-color:var(--ui-accent)}
html[data-theme] .workspace-ui :is(.icon-action.danger,.action-toolbar .action-delete){color:var(--ui-danger);background:var(--ui-danger-soft);border-color:var(--ui-danger-line)}
html[data-theme] .workspace-ui .copy-mini{color:var(--ui-accent-text)}
html[data-theme] .workspace-ui .monitor-tabs{border-color:var(--ui-line)}
html[data-theme] .workspace-ui .monitor-tabs a{color:var(--ui-muted)}
html[data-theme] .workspace-ui .monitor-tabs a.active{color:var(--ui-accent-text);border-color:var(--ui-accent)}
html[data-theme] .workspace-ui .empty{color:var(--ui-muted);border-color:var(--ui-line);background:var(--ui-soft);font-size:13px;border-radius:12px}
html[data-theme] .workspace-ui .codebox{background:#101a2a;color:#d8e1f4;border:1px solid #293952;border-radius:12px}
html[data-theme] .workspace-ui .form-hint code{background:var(--ui-accent-soft);color:var(--ui-accent-text)}
html[data-theme] .workspace-ui .progress{background:var(--ui-soft)}
html[data-theme] .workspace-ui .progress>i{background:linear-gradient(90deg,#8176d0,#b9b0ec)}
html[data-theme] .workspace-ui .quick-action{background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text)}
html[data-theme] .workspace-ui .quick-action :is(i,em){color:var(--ui-accent-text);background:var(--ui-accent-soft)}
/* Dialogs and live feedback remain readable in both modes. */
html[data-theme] .workspace-ui dialog{background:var(--ui-raised);color:var(--ui-text);border-color:var(--ui-line);border-radius:22px;box-shadow:0 30px 100px #03091c55}
html[data-theme] .workspace-ui dialog::backdrop{background:#090f2470;backdrop-filter:blur(7px)}
html[data-theme] .workspace-ui :is(.dialog-close,.command-input,.command-foot){background:var(--ui-soft);color:var(--ui-muted);border-color:var(--ui-line)}
html[data-theme] .workspace-ui .command-input{color:var(--ui-text);border-radius:12px;font-size:14px}
html[data-theme] .workspace-ui .command-result{background:transparent;color:var(--ui-text);padding:14px;border-radius:12px}
html[data-theme] .workspace-ui .command-result[aria-selected=true]{background:var(--ui-accent-soft)}
html[data-theme] .workspace-ui :is(.command-result small,.command-result>span,.command-status,.inspector-reason,.inspector-meta,.inspector-grid span,.inspector-history th){color:var(--ui-muted)}
html[data-theme] .workspace-ui :is(.inspector-grid>div,.inspector-history td,.inspector-history th){border-color:var(--ui-line)}
html[data-theme] .workspace-ui .inspector-grid>div{background:var(--ui-soft);border-radius:12px}
html[data-theme] .workspace-ui .workspace-toast{background:var(--ui-heading);color:var(--ui-surface);box-shadow:0 12px 36px #0002;border-radius:13px}
/* Public pages, including the installer, share the same saved preference. */
html[data-theme] :is(.setup-page,.marketing-page,.not-found-page){background:radial-gradient(ellipse at 15% 12%,var(--ui-accent-soft),transparent 55%),var(--ui-bg);padding-top:90px;color:var(--ui-text)}
html[data-theme] :is(.login-card,.setup-hero-card,.marketing-card,.not-found-card,.hero-preview-card,.marketing-hero){background:var(--ui-surface);color:var(--ui-text);border-color:var(--ui-line);box-shadow:var(--ui-shadow);border-radius:24px}
html[data-theme] .setup-hero-card,html[data-theme] .marketing-hero{background:var(--ui-hero)}
html[data-theme] .setup-hero-card:before{background:none}
html[data-theme] :is(.setup-hero-head h1,.setup-hero-card h1,.marketing-hero h1){color:var(--ui-hero-text)}
html[data-theme] :is(.setup-hero-head p,.setup-hero-card p,.marketing-hero p){color:var(--ui-hero-muted)}
html[data-theme] :is(.setup-mini-item,.hero-preview-stat,.setup-note-box){background:var(--ui-orbit-fill);border-color:var(--ui-line);color:var(--ui-text)}
html[data-theme] .setup-mini-item b{color:var(--ui-heading)}
html[data-theme] :is(.setup-mini-item small,.auth-card-head p,.auth-foot-note,.marketing-card p,.marketing-footer,.marketing-brand small,.not-found-help,.not-found-card p,.setup-page .form-hint,.install-section-head p,.setup-note-box small,.hero-preview-stat small){color:var(--ui-muted)}
html[data-theme] :is(.auth-foot-note a,.marketing-footer a){color:var(--ui-accent-text)}
html[data-theme] .setup-badge{background:var(--ui-accent-soft);border-color:var(--ui-line);color:var(--ui-accent-text)}
html[data-theme] :is(.setup-page .input,.login-screen-page input){background:var(--ui-surface);border-color:var(--ui-line);color:var(--ui-text);border-radius:12px}
html[data-theme] .setup-page .field label{color:var(--ui-text)}
html[data-theme] :is(.setup-page .input,.login-screen-page input):focus{border-color:var(--ui-accent);box-shadow:0 0 0 3px var(--ui-accent-soft)}
html[data-theme] :is(.setup-page .brand-icon,.marketing-brand .brand-icon,.not-found-icon){background:var(--ui-accent-soft);color:var(--ui-accent-text);box-shadow:none}
html[data-theme] .hero-preview-top{background:var(--ui-soft);border-color:var(--ui-line)}
html[data-theme] .marketing-header{border-color:var(--ui-line)}
@keyframes workspace-arrive{from{opacity:.7;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.workspace-dashboard{animation:workspace-arrive .28s ease-out both}
@media(max-width:1350px){html[data-theme] .workspace-ui .header-domain-summary{display:none}.theme-switch button span{display:none}.theme-switch button{padding:0;width:32px}.workspace-ui .command-trigger kbd{margin-left:5px}}
@media(max-width:1100px){html[data-theme] .workspace-ui .topbar h1{font-size:27px}.workspace-ui .command-trigger>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-ui .command-trigger kbd{display:none}html[data-theme] .workspace-ui .metric{padding:20px}html[data-theme] .workspace-ui .metric>small{font-size:10px}html[data-theme] .workspace-ui .panel{padding:21px}}
@media(max-width:767px){
 html[data-theme] .workspace-ui .app-header{height:66px;padding:0 14px;gap:10px}html[data-theme] .workspace-ui .header-actions{gap:8px}
 html[data-theme] .workspace-ui .mobile-menu-toggle{background:var(--ui-soft);border-color:var(--ui-line);color:var(--ui-text);width:34px;min-width:34px;height:36px}
 html[data-theme] .workspace-ui .sidebar-close{color:var(--ui-sidebar-text);background:#ffffff08;border-color:#ffffff12}
 html[data-theme] .workspace-ui .command-trigger>span:nth-child(2){font-size:10px}html[data-theme] .workspace-ui .command-trigger{gap:6px}
 .theme-switch{padding:3px;gap:1px;border-radius:11px}.theme-switch button{width:29px;min-width:29px;height:30px}.theme-switch button span{display:none}.theme-switch svg{width:15px;height:15px}
 html[data-theme] .workspace-ui .profile-chip .avatar{width:29px;height:29px;font-size:11px;border-radius:10px}
 html[data-theme] .workspace-ui .topbar h1{font-size:27px}html[data-theme] .workspace-ui .topbar p{font-size:12px}
 html[data-theme] .workspace-hero{padding:25px;min-height:255px;border-radius:19px}html[data-theme] .workspace-hero h2{font-size:27px}html[data-theme] .workspace-hero p{font-size:12px}
 html[data-theme] .workspace-kpis{gap:12px}html[data-theme] .workspace-ui .metric{padding:17px 14px;min-height:158px;border-radius:15px}html[data-theme] .metric>span:not(.metric-icon){font-size:11px}html[data-theme] .metric>b{font-size:30px}html[data-theme] .metric>small{font-size:10px}
 html[data-theme] .workspace-ui .panel{padding:20px 16px;border-radius:17px}html[data-theme] .workspace-ui .shortlink-create-shell{padding:0;border-radius:0}
 html[data-theme] .health-legend>div{font-size:10px}html[data-theme] .panel-bottom{font-size:10px}html[data-theme] .recent-link b{font-size:12px}html[data-theme] .recent-link small{font-size:10px}html[data-theme] .activity-feed time{font-size:9px}
 html[data-theme] .workspace-ui :is(.shortlink-table tr,.rotator-table tr,.user-access-table tr){background:var(--ui-surface);border-color:var(--ui-line);box-shadow:none}
 html[data-theme] .workspace-ui .table td:before{color:var(--ui-muted)}html[data-theme] .workspace-ui .table td{border-color:var(--ui-line)!important}
 .public-theme-switch{position:absolute;top:18px;right:18px}html[data-theme] :is(.setup-page,.marketing-page,.not-found-page){padding-top:79px}
 html[data-theme] .workspace-ui .create-disclosure summary{padding:20px}html[data-theme] .workspace-ui .create-disclosure summary small{font-size:11px}
}
@media(max-width:359px){.workspace-ui .command-trigger>span:nth-child(2){display:none}html[data-theme] .workspace-ui .priority-item b{font-size:12px}}
@media(prefers-reduced-motion:reduce){html.theme-ready *, .workspace-dashboard{animation:none!important;transition:none!important;scroll-behavior:auto!important}.workspace-ui .metric:hover{transform:none!important}}

/* Lavender UI — reference-inspired presentation; application behavior stays intact. */
:root:not([data-theme=dark]) {
  --ui-bg:#f8f5fa;--ui-surface:#fffcfd;--ui-raised:#fff;--ui-soft:#f4edf9;--ui-hover:#eee4f8;
  --ui-text:#403650;--ui-heading:#2d223e;--ui-muted:#766b85;--ui-line:#e9dff1;
  --ui-accent:#8554cc;--ui-accent-hover:#7042b7;--ui-accent-soft:#efe4fb;--ui-accent-text:#7447b4;
  --ui-sidebar:#a386d4;--ui-sidebar-text:#fff;--ui-sidebar-active:#fffcfa;--ui-sidebar-active-text:#654195;
  --ui-hero:linear-gradient(115deg,#d6c0ed,#b798df);--ui-hero-text:#352348;--ui-hero-muted:#57416f;
  --ui-shadow:8px 10px 24px #80609f10,-5px -5px 16px #ffffffd9;--ui-header:#f8f5faeb;--ui-focus:#955ed9;
}
html[data-theme] .workspace-ui .sidebar{left:16px;top:16px;bottom:16px;width:224px;border-radius:28px;padding:24px 15px 18px;overflow-y:auto;box-shadow:6px 8px 20px #69439d30,inset 2px 2px 5px #ffffff60;border:1px solid #ffffff55}
html[data-theme=light] .workspace-ui .sidebar{background:linear-gradient(155deg,#ad93dc,#9674cf)}
html[data-theme] .workspace-ui .brand{height:auto;min-height:0;justify-content:center;padding:0 0 16px;gap:8px;border:0}
html[data-theme] .workspace-ui .brand b{font-size:12px;max-width:140px;overflow-wrap:anywhere}
html[data-theme] .workspace-ui .brand small{font-size:7px;color:#f0e8fb;letter-spacing:1px}
html[data-theme] .workspace-ui .brand-icon{width:27px;height:27px;flex-shrink:0;font-size:24px;background:#ffffff30;color:#fff;border-radius:9px}
.sidebar-profile{text-align:center;padding:6px 0 23px;color:#fff}
.sidebar-profile .profile-portrait{display:grid;place-items:center;position:relative;width:76px;height:76px;margin:0 auto 15px;border:6px solid #ffffff40;border-radius:50%;background:linear-gradient(140deg,#eee1ff,#c5a6ed);box-shadow:0 5px 12px #66409530;font-size:29px;font-weight:700;color:#69449d}
.profile-portrait:after{content:'';position:absolute;right:-3px;bottom:0;width:15px;height:15px;background:#70d5a5;border:3px solid #dccaee;border-radius:50%}
.sidebar-profile strong{display:block;font-size:15px;overflow-wrap:anywhere}.sidebar-profile small{display:inline-block;margin-top:7px;background:#ffffff27;border-radius:20px;padding:3px 13px;font-size:9px;font-weight:700;text-transform:uppercase;letter-spacing:.6px}
html[data-theme] .workspace-ui .nav-caption{display:none}
html[data-theme] .workspace-ui .sidebar nav{margin-top:0;gap:5px}
html[data-theme] .workspace-ui .sidebar nav a{min-height:40px;padding:10px 12px;font-size:12px;border-radius:15px;font-weight:600}
html[data-theme] .workspace-ui .sidebar nav a.active{box-shadow:0 5px 9px #62439425,inset 2px 2px 4px #fff}
html[data-theme] .workspace-ui .sidebar nav a:hover{background:#ffffff24;transform:none}
html[data-theme] .workspace-ui .sidebar nav a.active:hover{background:var(--ui-sidebar-active)}
html[data-theme] .workspace-ui .sidebar-bottom{margin-top:auto;padding-top:20px;border:0}
html[data-theme] .workspace-ui .side-status{background:#fcebdc;color:#614374;border:1px solid #fff8;border-radius:18px;padding:15px 12px;box-shadow:inset 2px 2px 5px #fff9,0 4px 12px #63408a14}
html[data-theme] .workspace-ui .side-status small{color:#7b6385}
html[data-theme] .workspace-ui .side-role-badge{display:none}
html[data-theme] .workspace-ui .sidebar-bottom>a{justify-content:center;background:#ffffff24;margin:8px 5px 0;border-radius:20px;color:#fff}
html[data-theme] .workspace-ui .app-main{margin-left:256px}
html[data-theme] .workspace-ui .app-header{border:0;height:86px;padding:16px 30px;box-shadow:none}
html[data-theme] .workspace-ui .command-trigger{background:var(--ui-surface);border-radius:30px;padding:0 18px;min-height:43px;max-width:460px;box-shadow:var(--ui-shadow)}
html[data-theme] .workspace-ui .command-trigger kbd{margin-left:auto}
html[data-theme] .workspace-ui .content{padding:18px 30px 28px}
html[data-theme] .workspace-ui .topbar{margin-bottom:24px}
html[data-theme] .workspace-ui .topbar h1{font-size:28px;font-weight:750;letter-spacing:-.8px}
html[data-theme] .workspace-ui .topbar p{font-size:12px}
html[data-theme] .workspace-ui :is(.panel,.metric,.stat-card,.create-disclosure){border-radius:23px;border:1px solid var(--ui-line);box-shadow:var(--ui-shadow)}
html[data-theme] .workspace-ui .panel-head h2{font-weight:700}
html[data-theme] .workspace-hero{min-height:200px;padding:28px 32px;border-radius:24px;box-shadow:inset 2px 2px 7px #ffffff60,0 9px 22px #8f68b92a}
html[data-theme] .workspace-hero h2{font-size:30px;font-weight:750;margin:12px 0 8px}
html[data-theme] .hero-kicker{letter-spacing:1px;color:var(--ui-hero-muted)}
html[data-theme] .hero-command{display:inline-flex;margin-top:17px;padding:9px 16px;background:#ffffffad;border-radius:22px;color:#68469a;gap:12px;box-shadow:0 4px 8px #7954a521}
html[data-theme] .hero-command kbd{color:#68469a;background:#eadbf7}
html[data-theme] .hero-orbit{height:160px;width:210px;margin-right:5px}
html[data-theme] .orbit-core{background:linear-gradient(140deg,#f5e9ff,#c8a7eb);border-color:#fff8;box-shadow:0 12px 24px #7954a533}
html[data-theme] .orbit-core :is(b,span,small){color:#714ba2}
html[data-theme] .orbit-node{background:#e9d9fb;color:#7646b0;border-color:#fff8;box-shadow:0 5px 10px #7954a520}
html[data-theme] .workspace-ui .metric{min-height:158px;padding:20px}
html[data-theme=light] .workspace-ui .metric:nth-child(4n+1){background:linear-gradient(125deg,#f8f1ff,#eee0fa)}
html[data-theme=light] .workspace-ui .metric:nth-child(4n+2){background:linear-gradient(125deg,#fff3f5,#fbe4eb)}
html[data-theme=light] .workspace-ui .metric:nth-child(4n+3){background:linear-gradient(125deg,#fffbea,#faefd2)}
html[data-theme=light] .workspace-ui .metric:nth-child(4n+4){background:linear-gradient(125deg,#f0f8ff,#e0edfa)}
html[data-theme] .metric>.metric-icon{position:static;margin-bottom:4px;color:#fff;background:linear-gradient(135deg,#b68ee7,#8957cc);box-shadow:0 4px 8px #9462cb40;border-radius:11px}
html[data-theme] .metric:nth-child(2)>.metric-icon{background:linear-gradient(135deg,#f1a2b3,#db6886)}
html[data-theme] .metric:nth-child(3)>.metric-icon{background:linear-gradient(135deg,#e9cf6f,#c4a432)}
html[data-theme] .metric:nth-child(4)>.metric-icon{background:linear-gradient(135deg,#9ec5ef,#639bd7)}
html[data-theme] .metric>b{font-weight:750;font-size:31px;margin:0}
html[data-theme] .metric>span:not(.metric-icon){padding-top:0}
html[data-theme] .workspace-ui .btn{border-radius:16px}
html[data-theme] .workspace-ui .btn-primary{background:linear-gradient(135deg,#a178db,#7c48c5);color:#fff;border-color:#a580d9;box-shadow:inset 1px 2px 3px #ffffff40,0 5px 12px #8e5ecb30}
html[data-theme] .workspace-ui .btn-primary:hover{background:linear-gradient(135deg,#9463d2,#6e3ab7)}
html[data-theme] .workspace-ui :is(input.input,select,textarea,.slug-input-wrap,.redirect-lock-row,.shortlink-search){border-radius:16px;box-shadow:inset 2px 2px 5px #8d6ca510;border-color:var(--ui-line)}
html[data-theme] .workspace-ui :is(input.input,select,textarea):focus{border-color:var(--ui-accent);outline:2px solid var(--ui-accent-soft);outline-offset:1px}
html[data-theme] .workspace-ui :is(.shortlink-detail-card,.shortlink-settings-card){background:transparent}
html[data-theme] .workspace-ui .shortlink-settings-card{background:var(--ui-soft)}
html[data-theme] .workspace-ui .table th{background:var(--ui-soft);font-size:10px;padding:14px 12px}
html[data-theme] .workspace-ui .table td{padding:16px 12px}
html[data-theme] .workspace-ui .table tbody tr:hover{background:var(--ui-hover)}
html[data-theme] .workspace-ui :is(.priority-item,.recent-link,.activity-feed>div){border-radius:14px;padding:13px;margin-bottom:7px;background:var(--ui-soft);border-bottom:0}
html[data-theme] .bar-track i{background:#c5a4e6;border-radius:8px 8px 3px 3px}
html[data-theme] .traffic-day:last-child .bar-track i{background:#9365d0}
html[data-theme=dark] .sidebar-profile .profile-portrait{background:#594376;color:#fff}
html[data-theme=dark] .workspace-ui .side-status{background:#372c43;color:#ede1fb}
html[data-theme=dark] .workspace-ui .side-status small{color:#ccb9dc}
@media(min-width:768px) and (max-width:1100px){
 html[data-theme] .workspace-ui .sidebar{width:198px;left:12px;padding:20px 12px}
 html[data-theme] .workspace-ui .app-main{margin-left:222px}
 html[data-theme] .workspace-ui .app-header{padding:14px 20px}
 html[data-theme] .workspace-ui .content{padding:18px 20px}
 html[data-theme] .workspace-ui .profile-chip>span:nth-child(2){display:none}
 html[data-theme] .hero-orbit{display:none}
}
@media(max-width:767px){
 html[data-theme] .workspace-ui .sidebar{left:0;top:0;bottom:0;width:260px;border-radius:0 26px 26px 0;padding:24px 16px}
 html[data-theme] .workspace-ui .app-main{margin-left:0}
 html[data-theme] .workspace-ui .app-header{height:72px;padding:10px 14px;gap:9px}
 html[data-theme] .workspace-ui .header-actions{gap:6px}
 html[data-theme] .workspace-ui .command-trigger{padding:0 12px;min-height:40px}
 html[data-theme] .workspace-ui .content{padding:18px 14px}
 html[data-theme] .workspace-ui .topbar h1{font-size:25px}
 html[data-theme] .workspace-hero{padding:24px;min-height:220px}
 html[data-theme] .workspace-hero h2{font-size:26px}
 html[data-theme] .workspace-ui .metric{padding:16px 13px;min-height:167px}
 html[data-theme] .workspace-ui .panel{padding:19px 16px}
 html[data-theme] .workspace-ui .sidebar-close{position:absolute;right:12px;top:12px}
}

/* Lavender 12.2.1: stronger light-mode contrast and contained navigation scrolling. */
:root:not([data-theme=dark]){
  --ui-text:#382c47;--ui-heading:#261b35;--ui-muted:#5e506f;
  --ui-accent-text:#643497;--ui-sidebar-text:#fff;
  --ui-hero-muted:#4e365f;
}
html[data-theme=light] .workspace-ui{font-weight:450}
html[data-theme=light] .workspace-ui .sidebar{background:linear-gradient(155deg,#8662b5,#7851ab)}
html[data-theme=light] .workspace-ui :is(.topbar p,.panel-head p,.form-hint,.field label,.table th,.command-trigger,.period-label){color:var(--ui-muted);font-weight:500}
html[data-theme=light] .workspace-ui :is(.metric>small,.metric>span:not(.metric-icon),.recent-link small,.activity-feed small,.panel-bottom,.health-legend,.traffic-day,.bar-value){color:var(--ui-muted);font-weight:500}
html[data-theme=light] .workspace-ui :is(input,textarea)::placeholder{color:#70637f;opacity:1}
html[data-theme=light] .workspace-ui .sidebar :is(nav a,.sidebar-bottom>a){font-weight:650}
html[data-theme=light] .sidebar-profile small{background:#ffffffeb;color:#624086}
html[data-theme=light] .workspace-ui .brand small{color:#fff}
html[data-theme=light] .workspace-ui .table{font-size:12.5px}
html[data-theme=light] .workspace-ui .table th{font-size:11px}
html[data-theme=light] .theme-switch button{color:#5e506f;font-weight:600}
html[data-theme=light] .theme-switch button[aria-pressed=true]{color:#643497}

/* Keep the rounded outer edge intact; only the menu list scrolls. */
html[data-theme] .workspace-ui .sidebar{overflow:hidden}
html[data-theme] .workspace-ui .sidebar :is(.brand,.sidebar-profile,.sidebar-bottom){flex-shrink:0}
html[data-theme] .workspace-ui .sidebar nav{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;align-content:start;grid-auto-rows:max-content;padding-right:5px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#e0ccee transparent}
html[data-theme] .workspace-ui .sidebar-bottom{margin-top:0;padding-top:12px}
html{scrollbar-width:thin;scrollbar-color:#aa8ac6 #f4edf9}
html[data-theme=dark]{scrollbar-color:#78668e #171f2f}
html[data-theme] .workspace-ui :is(.table-wrap,dialog,textarea){scrollbar-width:thin;scrollbar-color:#aa8ac6 transparent}
/* Chromium versions that use WebKit scrollbar styling. */
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:#aa8ac6;border:2px solid transparent;background-clip:padding-box;border-radius:99px}
::-webkit-scrollbar-thumb:hover{background-color:#8663a7}
::-webkit-scrollbar-button{display:none;width:0;height:0}
html[data-theme] .sidebar nav::-webkit-scrollbar{width:6px}
html[data-theme] .sidebar nav::-webkit-scrollbar-thumb{background-color:#e0ccee}
@media(max-height:760px){
 html[data-theme] .workspace-ui .sidebar{padding-top:18px;padding-bottom:12px}
 html[data-theme] .workspace-ui .brand{padding-bottom:10px}
 .sidebar-profile{padding:0 0 14px}
 .sidebar-profile .profile-portrait{width:58px;height:58px;margin-bottom:9px;font-size:23px;border-width:4px}
 html[data-theme] .workspace-ui .sidebar nav a{min-height:38px;padding-top:8px;padding-bottom:8px}
}
@media(max-height:500px){
 .sidebar-profile .profile-portrait{display:none}
 .sidebar-profile{padding-bottom:9px}
 html[data-theme] .workspace-ui .sidebar-bottom .side-status{display:none}
}


/* Readability update: firm outlines, stronger type and explicit section dividers. */
:root:not([data-theme=dark]){
  --ui-line:#b5a0cc;--ui-text:#30223f;--ui-heading:#21132f;--ui-muted:#554363;
  --ui-table-head:#e4d5f2;--ui-table-stripe:#f6f0fb;
}
:root[data-theme=dark]{
  --ui-line:#6f6088;--ui-text:#eee8f7;--ui-heading:#ffffff;--ui-muted:#c8bdd8;
  --ui-table-head:#3c2e50;--ui-table-stripe:#231d30;
}
html[data-theme] .workspace-ui{font-weight:500}
html[data-theme] .workspace-ui :is(.panel,.metric,.stat-card,.quick-card,.create-disclosure){border:2px solid var(--ui-line)}
html[data-theme] .workspace-ui .app-header{border-bottom:2px solid var(--ui-line)}
html[data-theme] .workspace-ui :is(.panel-head,.shortlink-card-title-row){border-bottom:2px solid var(--ui-line);padding-bottom:16px;margin-bottom:20px}
html[data-theme] .workspace-ui :is(.panel-head h2,.shortlink-card-title-row h2){font-weight:750;font-size:18px}
html[data-theme] .workspace-ui :is(.field label,.table th,.btn,.history-preset-btn){font-weight:700}
html[data-theme] .workspace-ui :is(.topbar p,.panel-head p,.form-hint,.shortlink-card-title-row p){font-size:13px;line-height:1.6;color:var(--ui-muted);font-weight:600}
html[data-theme] .workspace-ui :is(input.input,select,textarea,.slug-input-wrap,.redirect-lock-row,.shortlink-search){border-width:2px;border-color:var(--ui-line);font-weight:600}
html[data-theme] .workspace-ui :is(.slug-input-wrap input,.shortlink-search input){font-weight:600}
html[data-theme] .workspace-ui .slug-input-wrap span{border-right-width:2px}
html[data-theme] .workspace-ui :is(.history-cleanup-toggle-card,.history-interval-field,.history-cleanup-status>div,.shortlink-settings-card,.rotator-settings-box,.rotator-add-box,.cron-status-item,.role-guide-item){border:2px solid var(--ui-line)}
html[data-theme] .workspace-ui :is(.history-cleanup-actions,.shortlink-form-actions){border-top:2px solid var(--ui-line);padding-top:16px;margin-top:18px}
html[data-theme] .workspace-ui :is(.history-cleanup-toggle-card b,.history-cleanup-status b){font-size:13px;font-weight:700}
html[data-theme] .workspace-ui :is(.history-cleanup-toggle-card small,.history-cleanup-status span,.history-cleanup-actions .tiny){font-size:12px;color:var(--ui-muted);font-weight:600;line-height:1.6}
html[data-theme] .workspace-ui .history-preset-btn{border-width:2px}
html[data-theme] .workspace-ui .table{border:2px solid var(--ui-line);border-collapse:collapse;font-size:13px}
html[data-theme] .workspace-ui .table th{background:var(--ui-table-head);color:var(--ui-heading);font-size:12px;font-weight:750;border-bottom:2px solid var(--ui-line)}
html[data-theme] .workspace-ui .table :is(th,td){border-right:1px solid var(--ui-line)}
html[data-theme] .workspace-ui .table :is(th,td):last-child{border-right:0}
html[data-theme] .workspace-ui .table td{border-bottom:2px solid var(--ui-line);font-weight:600;line-height:1.6}
html[data-theme] .workspace-ui .table tbody tr:nth-child(even){background:var(--ui-table-stripe)}
html[data-theme] .workspace-ui .table tbody tr:hover{background:var(--ui-hover)}
html[data-theme] .workspace-ui .table :is(a,b,strong){font-weight:750}
html[data-theme] .workspace-ui .table .tiny{font-size:11px;font-weight:600;color:var(--ui-muted)}
html[data-theme] .workspace-ui .sidebar-bottom{border-top:2px solid #ffffff70;margin-top:12px}
@media(max-width:767px){
  html[data-theme] .workspace-ui :is(.responsive-dashboard,.responsive-analytics) .mobile-card-table{border:0}
  html[data-theme] .workspace-ui :is(.responsive-dashboard,.responsive-analytics) .mobile-card-table tr{border:2px solid var(--ui-line)!important;background:var(--ui-surface)!important}
  html[data-theme] .workspace-ui :is(.responsive-dashboard,.responsive-analytics) .mobile-card-table td{border-bottom:1px solid var(--ui-line)!important}
  html[data-theme] .workspace-ui :is(.responsive-dashboard,.responsive-analytics) .mobile-card-table td:last-child{border-bottom:0!important}
  html[data-theme] .workspace-ui :is(.responsive-dashboard,.responsive-analytics) .mobile-card-table td::before{color:var(--ui-muted);font-size:10px}
}