/*
 * Signed-in application themes.
 * The login page keeps its immersive city design; these rules only affect
 * the authenticated sidebar application shell.
 */
html[data-app-theme="fresh"] {
  --theme-primary: #0ea5e9;
  --theme-primary-strong: #0284c7;
  --theme-primary-rgb: 14, 165, 233;
  --theme-soft: #e2f6ff;
  --theme-soft-strong: #bcecff;
  --theme-canvas: #f2fbff;
  --theme-canvas-alt: #f7fffc;
  --theme-panel: #ffffff;
  --theme-panel-translucent: rgba(255, 255, 255, 0.9);
  --theme-sidebar-top: #ffffff;
  --theme-sidebar-bottom: #f2fcff;
  --theme-border: #d7edf4;
  --theme-border-strong: #94d9ea;
  --theme-text: #15384b;
  --theme-muted: #668396;
  --theme-ambient-one: rgba(14, 165, 233, 0.22);
  --theme-ambient-two: rgba(45, 212, 191, 0.18);
  --theme-shadow: rgba(18, 112, 151, 0.1);
  --theme-accent: #20b486;
  --theme-accent-soft: #dcfced;
  --theme-warm: #ff8a4c;
  --theme-warm-soft: #fff1e8;
}

html[data-app-theme="mint"] {
  --theme-primary: #2f8573;
  --theme-primary-strong: #236b5d;
  --theme-primary-rgb: 47, 133, 115;
  --theme-soft: #e8f5f0;
  --theme-soft-strong: #d9eee7;
  --theme-canvas: #f3f9f7;
  --theme-canvas-alt: #f8fbfa;
  --theme-panel: #ffffff;
  --theme-panel-translucent: rgba(255, 255, 255, 0.94);
  --theme-sidebar-top: #ffffff;
  --theme-sidebar-bottom: #f6fbf9;
  --theme-border: #dce9e4;
  --theme-border-strong: #bcd9d0;
  --theme-text: #263d37;
  --theme-muted: #71847e;
  --theme-ambient-one: rgba(123, 200, 180, 0.2);
  --theme-ambient-two: rgba(132, 192, 214, 0.15);
  --theme-shadow: rgba(43, 91, 78, 0.09);
}

html[data-app-theme="sky"] {
  --theme-primary: #3978b9;
  --theme-primary-strong: #2b6094;
  --theme-primary-rgb: 57, 120, 185;
  --theme-soft: #eaf3fc;
  --theme-soft-strong: #dbeaf8;
  --theme-canvas: #f2f7fc;
  --theme-canvas-alt: #f8fbfe;
  --theme-panel: #ffffff;
  --theme-panel-translucent: rgba(255, 255, 255, 0.95);
  --theme-sidebar-top: #ffffff;
  --theme-sidebar-bottom: #f4f8fd;
  --theme-border: #dce7f1;
  --theme-border-strong: #bad2e8;
  --theme-text: #263b4e;
  --theme-muted: #718396;
  --theme-ambient-one: rgba(116, 178, 224, 0.21);
  --theme-ambient-two: rgba(117, 210, 207, 0.13);
  --theme-shadow: rgba(45, 85, 124, 0.1);
}

html[data-app-theme="warm"] {
  --theme-primary: #b56b3d;
  --theme-primary-strong: #92512c;
  --theme-primary-rgb: 181, 107, 61;
  --theme-soft: #fff0e5;
  --theme-soft-strong: #fbe1cf;
  --theme-canvas: #fbf7f3;
  --theme-canvas-alt: #fdfaf7;
  --theme-panel: #fffefd;
  --theme-panel-translucent: rgba(255, 254, 252, 0.95);
  --theme-sidebar-top: #fffefd;
  --theme-sidebar-bottom: #fcf6f0;
  --theme-border: #eadfd5;
  --theme-border-strong: #ddc2ad;
  --theme-text: #49382f;
  --theme-muted: #88776d;
  --theme-ambient-one: rgba(233, 170, 115, 0.18);
  --theme-ambient-two: rgba(238, 207, 151, 0.14);
  --theme-shadow: rgba(106, 70, 46, 0.09);
}

html[data-app-theme="mono"] {
  --theme-primary: #46505b;
  --theme-primary-strong: #303841;
  --theme-primary-rgb: 70, 80, 91;
  --theme-soft: #edf0f2;
  --theme-soft-strong: #dfe3e7;
  --theme-canvas: #f4f5f6;
  --theme-canvas-alt: #fafafa;
  --theme-panel: #ffffff;
  --theme-panel-translucent: rgba(255, 255, 255, 0.96);
  --theme-sidebar-top: #ffffff;
  --theme-sidebar-bottom: #f5f6f7;
  --theme-border: #e0e3e6;
  --theme-border-strong: #c8cdd2;
  --theme-text: #292f35;
  --theme-muted: #757d85;
  --theme-ambient-one: rgba(120, 130, 140, 0.12);
  --theme-ambient-two: rgba(170, 176, 182, 0.1);
  --theme-shadow: rgba(40, 47, 54, 0.09);
}

html[data-app-theme="google"] {
  --theme-primary: #1a73e8;
  --theme-primary-strong: #1557b0;
  --theme-primary-rgb: 26, 115, 232;
  --theme-soft: #e8f0fe;
  --theme-soft-strong: #d2e3fc;
  --theme-canvas: #f8fafd;
  --theme-canvas-alt: #f1f3f4;
  --theme-panel: #ffffff;
  --theme-panel-translucent: rgba(255, 255, 255, 0.97);
  --theme-sidebar-top: #ffffff;
  --theme-sidebar-bottom: #f8fafd;
  --theme-border: #dadce0;
  --theme-border-strong: #aecbfa;
  --theme-text: #202124;
  --theme-muted: #5f6368;
  --theme-ambient-one: rgba(66, 133, 244, 0.1);
  --theme-ambient-two: rgba(52, 168, 83, 0.08);
  --theme-shadow: rgba(60, 64, 67, 0.12);
  --theme-accent: #188038;
  --theme-accent-soft: #e6f4ea;
  --theme-warm: #f9ab00;
  --theme-warm-soft: #fef7e0;
}

html[data-app-theme="macos"] {
  --theme-primary: #147ce5;
  --theme-primary-strong: #0868c9;
  --theme-primary-rgb: 20, 124, 229;
  --theme-soft: #eef6ff;
  --theme-soft-strong: #dfedfc;
  --theme-canvas: #f7f8fa;
  --theme-canvas-alt: #fcfcfe;
  --theme-panel: #ffffff;
  --theme-panel-translucent: rgba(255, 255, 255, 0.96);
  --theme-sidebar-top: rgba(255, 255, 255, 0.97);
  --theme-sidebar-bottom: rgba(250, 250, 252, 0.97);
  --theme-border: rgba(29, 29, 31, 0.075);
  --theme-border-strong: rgba(20, 124, 229, 0.3);
  --theme-text: #1d1d1f;
  --theme-muted: #6e6e73;
  --theme-ambient-one: rgba(20, 124, 229, 0.045);
  --theme-ambient-two: rgba(20, 124, 229, 0.02);
  --theme-shadow: rgba(28, 39, 52, 0.055);
  --theme-accent: #248a3d;
  --theme-accent-soft: #eef9f1;
  --theme-warm: #b85d00;
  --theme-warm-soft: #fff6e9;
}

html[data-app-theme="dark"] {
  --theme-primary: #78b9aa;
  --theme-primary-strong: #9ad0c3;
  --theme-primary-rgb: 120, 185, 170;
  --theme-soft: #40554f;
  --theme-soft-strong: #4c655e;
  --theme-canvas: #303840;
  --theme-canvas-alt: #353e46;
  --theme-panel: #3a434b;
  --theme-panel-translucent: rgba(58, 67, 75, 0.96);
  --theme-sidebar-top: #374049;
  --theme-sidebar-bottom: #313940;
  --theme-border: #4b5660;
  --theme-border-strong: #66847c;
  --theme-text: #f1f4f5;
  --theme-muted: #bac3ca;
  --theme-ambient-one: rgba(120, 185, 170, 0.09);
  --theme-ambient-two: rgba(118, 150, 184, 0.08);
  --theme-shadow: rgba(8, 12, 15, 0.2);
  --theme-accent: #7fc99c;
  --theme-accent-soft: #30483a;
  --theme-warm: #e2ae73;
  --theme-warm-soft: #4c4032;
  color-scheme: dark;
}

html[data-app-theme="studio"] {
  --theme-primary: #007aff;
  --theme-primary-strong: #0066d6;
  --theme-primary-rgb: 0, 122, 255;
  --theme-soft: #e9e9ed;
  --theme-soft-strong: #dedee3;
  --theme-canvas: #f2f2f7;
  --theme-canvas-alt: #f7f7fa;
  --theme-panel: #ffffff;
  --theme-panel-translucent: rgba(255, 255, 255, 0.98);
  --theme-sidebar-top: #f7f7fa;
  --theme-sidebar-bottom: #f2f2f7;
  --theme-border: #d1d1d6;
  --theme-border-strong: #b8b8bd;
  --theme-text: #1c1c1e;
  --theme-muted: #8e8e93;
  --theme-ambient-one: transparent;
  --theme-ambient-two: transparent;
  --theme-shadow: transparent;
  --theme-accent: #34c759;
  --theme-accent-soft: #f1f1f3;
  --theme-warm: #8e8e93;
  --theme-warm-soft: #f1f1f3;
}

html[data-app-theme] body.sidebar-layout {
  --ink: var(--theme-text);
  --muted: var(--theme-muted);
  --line: var(--theme-border);
  --surface: var(--theme-panel);
  --canvas: var(--theme-canvas);
  --brand: var(--theme-primary);
  --brand-dark: var(--theme-primary-strong);
  --brand-soft: var(--theme-soft);
  color: var(--theme-text);
  background:
    radial-gradient(circle at 3% 2%, var(--theme-ambient-one), transparent 25rem),
    radial-gradient(circle at 98% 8%, var(--theme-ambient-two), transparent 29rem),
    linear-gradient(145deg, var(--theme-canvas-alt), var(--theme-canvas));
}

/* 晴空青柠：更明亮、更年轻，但保持后台界面的清楚与耐看。 */
html[data-app-theme="fresh"] body.sidebar-layout {
  background:
    radial-gradient(circle at 8% 5%, rgba(56, 189, 248, 0.24), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(52, 211, 153, 0.18), transparent 27rem),
    radial-gradient(circle at 78% 94%, rgba(255, 164, 94, 0.1), transparent 24rem),
    linear-gradient(145deg, #f9fdff 0%, #effbff 48%, #f5fffb 100%);
}

html[data-app-theme="fresh"] .sidebar-layout .app-sidebar {
  border-right-color: rgba(148, 217, 234, 0.72) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 252, 255, 0.97)),
    #ffffff;
  box-shadow: 10px 0 34px rgba(14, 116, 144, 0.09);
}

html[data-app-theme="fresh"] .sidebar-layout .brand-mark {
  background: linear-gradient(145deg, #22d3ee, #0ea5e9 58%, #14b8a6);
  box-shadow:
    0 9px 22px rgba(14, 165, 233, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

html[data-app-theme="fresh"] .sidebar-layout .sidebar-brand strong {
  color: #123c53;
  letter-spacing: 0.02em;
}

html[data-app-theme="fresh"] .sidebar-layout .sidebar-user-card {
  border-color: #ccebf3;
  background:
    radial-gradient(circle at 92% 0, rgba(45, 212, 191, 0.15), transparent 6rem),
    linear-gradient(135deg, #ffffff, #edfaff);
  box-shadow: 0 10px 24px rgba(14, 116, 144, 0.08);
}

html[data-app-theme="fresh"] .sidebar-layout .sidebar-link {
  border-radius: 13px;
}

html[data-app-theme="fresh"] .sidebar-layout .sidebar-link:hover {
  color: #087fab;
  border-color: #c7eaf3;
  background: linear-gradient(90deg, #e8f9ff, #f0fffa);
  transform: translateX(3px);
}

html[data-app-theme="fresh"] .sidebar-layout .sidebar-link.active {
  color: #087da9;
  border-color: #a9e0ed;
  background: linear-gradient(100deg, #dcf5ff, #effff8);
  box-shadow:
    inset 3px 0 0 #0ea5e9,
    0 8px 20px rgba(14, 165, 233, 0.1);
}

html[data-app-theme="fresh"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="fresh"] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme="fresh"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: #0788bc;
  background: linear-gradient(145deg, #e0f5ff, #dcfbef);
}

html[data-app-theme="fresh"] .sidebar-layout :is(
  .content-panel,
  .purchase-room-picker,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-color: rgba(202, 233, 241, 0.96);
  border-radius: 20px;
  background-color: rgba(255, 255, 255, 0.91);
  box-shadow:
    0 14px 36px rgba(18, 112, 151, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(14px);
}

html[data-app-theme="fresh"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .purchase-now-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
) {
  border-color: #08a1df;
  background: linear-gradient(135deg, #20c7ed, #0ea5e9 58%, #0b91d2);
  box-shadow: 0 8px 19px rgba(14, 165, 233, 0.22);
}

html[data-app-theme="fresh"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .purchase-now-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
):hover {
  border-color: #087fb5;
  background: linear-gradient(135deg, #10b8df, #078dca);
  box-shadow: 0 10px 24px rgba(14, 165, 233, 0.27);
  transform: translateY(-1px);
}

html[data-app-theme="fresh"] .sidebar-layout :is(
  .market-available-total.has-stock,
  .purchase-room-total,
  .account-online-pill
) {
  color: #087a5c;
  border-color: #afead3;
  background: var(--theme-accent-soft);
}

html[data-app-theme="fresh"] .sidebar-layout :is(
  .market-recommend,
  .promotion-rate-badge
) {
  color: #c95f25;
  border-color: #ffd5bc;
  background: var(--theme-warm-soft);
}

html[data-app-theme="fresh"] .sidebar-layout .machine-table-rows thead {
  color: #577689;
  background: linear-gradient(90deg, #eaf8fd, #effbf7);
}

html[data-app-theme="fresh"] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme="fresh"] .sidebar-layout .machine-card-row.is-offline {
  border-color: #d9edf3;
  box-shadow: 0 6px 17px rgba(15, 112, 148, 0.065);
}

html[data-app-theme="fresh"] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme="fresh"] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: #9ddbea;
  background: linear-gradient(90deg, #edfaff, #f7fffb);
  box-shadow: 0 12px 27px rgba(14, 165, 233, 0.12);
}

html[data-app-theme="fresh"] .sidebar-layout .machine-card-symbol {
  color: #078abf;
  border-color: #aee0ec;
  background: linear-gradient(145deg, #daf4ff, #e1fbf2);
}

html[data-app-theme="fresh"] .sidebar-layout .purchase-room-picker {
  background:
    radial-gradient(circle at 92% 8%, rgba(45, 212, 191, 0.17), transparent 18rem),
    linear-gradient(135deg, #e9f9ff, #f3fffa);
}

html[data-app-theme="fresh"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active,
html[data-app-theme="fresh"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: #8dd7e8;
  background:
    radial-gradient(circle at 100% 0, rgba(45, 212, 191, 0.14), transparent 9rem),
    linear-gradient(145deg, #ffffff, #eaf9ff);
  box-shadow: 0 15px 34px rgba(14, 165, 233, 0.14);
}

html[data-app-theme="fresh"] .sidebar-layout :is(.account-hero, .patrol-header) {
  background:
    radial-gradient(circle at 92% 4%, rgba(45, 212, 191, 0.2), transparent 19rem),
    radial-gradient(circle at 5% 100%, rgba(56, 189, 248, 0.22), transparent 20rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), #eaf9ff 62%, #f1fff9);
  box-shadow: 0 17px 40px rgba(14, 116, 144, 0.11);
}

html[data-app-theme="fresh"] .sidebar-theme-control {
  background: linear-gradient(180deg, rgba(246, 253, 255, 0.96), rgba(238, 250, 254, 0.98));
}

html[data-app-theme="fresh"] .sidebar-theme-toggle {
  border-color: #c8e8f1;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 7px 18px rgba(14, 116, 144, 0.08);
}

html[data-app-theme] .sidebar-layout .app-sidebar {
  color: var(--theme-text);
  border-right-color: var(--theme-border) !important;
  background:
    linear-gradient(180deg, var(--theme-sidebar-top), var(--theme-sidebar-bottom)),
    var(--theme-panel);
  box-shadow: 8px 0 28px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout :is(
  .sidebar-head,
  .sidebar-section-remote
) {
  border-color: var(--theme-border);
}

html[data-app-theme] .sidebar-layout .brand-mark {
  background: linear-gradient(145deg, color-mix(in srgb, var(--theme-primary) 72%, white), var(--theme-primary));
  box-shadow: 0 8px 20px rgba(var(--theme-primary-rgb), 0.2);
}

html[data-app-theme] .sidebar-layout :is(
  .sidebar-brand strong,
  .sidebar-account strong,
  .sidebar-link
) {
  color: var(--theme-text);
}

html[data-app-theme] .sidebar-layout :is(
  .sidebar-brand small,
  .sidebar-account small,
  .sidebar-label,
  .sidebar-link small
) {
  color: var(--theme-muted);
}

html[data-app-theme] .sidebar-layout .sidebar-user-card {
  border-color: var(--theme-border);
  background: linear-gradient(135deg, var(--theme-panel), var(--theme-soft));
  box-shadow: 0 8px 22px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout .sidebar-link:hover {
  color: var(--theme-primary-strong);
  border-color: var(--theme-border);
  background: color-mix(in srgb, var(--theme-soft) 70%, white);
}

html[data-app-theme] .sidebar-layout .sidebar-link.active {
  color: var(--theme-primary-strong);
  border-color: var(--theme-border-strong);
  background: linear-gradient(90deg, var(--theme-soft), color-mix(in srgb, var(--theme-soft) 35%, white));
  box-shadow:
    inset 3px 0 0 var(--theme-primary),
    0 5px 15px rgba(var(--theme-primary-rgb), 0.08);
}

html[data-app-theme] .sidebar-layout .sidebar-link-icon,
html[data-app-theme] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: var(--theme-primary);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout .sidebar-link.active > i {
  background: var(--theme-primary);
  box-shadow: 0 0 0 4px rgba(var(--theme-primary-rgb), 0.11);
}

html[data-app-theme] .sidebar-layout :is(.mobile-topbar, .mobile-header) {
  border-bottom-color: var(--theme-border);
  background: color-mix(in srgb, var(--theme-panel) 90%, transparent);
  box-shadow: 0 8px 24px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout :is(
  .content-panel,
  .purchase-room-picker,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-color: var(--theme-border);
  background-color: var(--theme-panel-translucent);
  box-shadow: 0 10px 30px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .purchase-now-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
) {
  color: #fff;
  border-color: var(--theme-primary);
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--theme-primary) 80%, white),
    var(--theme-primary-strong));
  box-shadow: 0 7px 17px rgba(var(--theme-primary-rgb), 0.2);
}

html[data-app-theme] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .purchase-now-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
):hover {
  color: #fff;
  border-color: var(--theme-primary-strong);
  background: var(--theme-primary-strong);
}

html[data-app-theme] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button,
  .mobile-menu-button
) {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background: var(--theme-canvas-alt);
}

html[data-app-theme] .sidebar-layout :is(input, select, textarea):focus {
  border-color: color-mix(in srgb, var(--theme-primary) 60%, white);
  box-shadow: 0 0 0 0.22rem rgba(var(--theme-primary-rgb), 0.13);
}

/* Machine list */
html[data-app-theme] .sidebar-layout .content-panel:has(.machine-table-rows) {
  border-color: var(--theme-border);
  background: var(--theme-panel-translucent);
  box-shadow: 0 12px 34px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout .machine-table-rows thead {
  color: var(--theme-muted);
  background: color-mix(in srgb, var(--theme-soft) 48%, white);
}

html[data-app-theme] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme] .sidebar-layout .machine-card-row.is-offline {
  border-color: var(--theme-border);
  background: var(--theme-panel);
  box-shadow: 0 5px 15px color-mix(in srgb, var(--theme-shadow) 65%, transparent);
}

html[data-app-theme] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: var(--theme-border-strong);
  background: linear-gradient(90deg, var(--theme-soft), var(--theme-panel));
  box-shadow: 0 10px 24px rgba(var(--theme-primary-rgb), 0.11);
}

html[data-app-theme] .sidebar-layout .machine-card-symbol,
html[data-app-theme] .sidebar-layout .machine-card-row.is-offline .machine-card-symbol {
  color: var(--theme-primary);
  border-color: var(--theme-border-strong);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout .machine-card-field .local-remark,
html[data-app-theme] .sidebar-layout .machine-card-actions-wrap .machine-more-button {
  border-color: var(--theme-border);
  background: var(--theme-canvas-alt);
}

/* Purchase */
html[data-app-theme] .sidebar-layout .purchase-room-picker {
  background:
    linear-gradient(135deg, var(--theme-soft), var(--theme-canvas-alt)),
    var(--theme-panel);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-room-total,
  .market-available-total.has-stock,
  .purchase-room-selected,
  .purchase-room-picker .server-room-option.active .purchase-room-arrow,
  .market-recommend,
  .duration-option.active,
  .duration-option:has(input:checked)
) {
  color: var(--theme-primary-strong);
  border-color: var(--theme-border-strong);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option,
html[data-app-theme] .sidebar-layout .market-plan-card {
  border-color: var(--theme-border);
  background: var(--theme-panel);
  box-shadow: 0 7px 20px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option:hover,
html[data-app-theme] .sidebar-layout .market-plan-card:hover,
html[data-app-theme] .sidebar-layout .market-plan-card.market-plan-featured,
html[data-app-theme] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  border-color: var(--theme-border-strong);
  background: linear-gradient(145deg, var(--theme-panel), var(--theme-soft));
  box-shadow: 0 13px 30px rgba(var(--theme-primary-rgb), 0.13);
}

html[data-app-theme] .sidebar-layout .purchase-page-intro {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background:
    radial-gradient(circle at 88% -20%, var(--theme-ambient-one), transparent 46%),
    linear-gradient(135deg, var(--theme-panel), var(--theme-soft));
  box-shadow: 0 10px 30px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout .purchase-page-intro::after {
  border-color: rgba(var(--theme-primary-rgb), 0.055);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-intro-eyebrow,
  .purchase-section-title > span,
  .purchase-catalog-title > span,
  .purchase-room-total b,
  .purchase-room-machine-prefix b,
  .market-catalog-heading h2 span,
  .market-plan-count b,
  .purchase-room-picker .server-room-option.active .purchase-room-arrow
) {
  color: var(--theme-primary-strong);
}

html[data-app-theme] .sidebar-layout .purchase-intro-eyebrow i {
  background: var(--theme-primary);
  box-shadow: 0 0 0 5px rgba(var(--theme-primary-rgb), 0.11);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-intro-copy h1,
  .purchase-progress strong,
  .purchase-section-title h2,
  .purchase-catalog-title h2,
  .purchase-room-picker .server-room-option > .purchase-room-card-name,
  .market-catalog-heading h2,
  .market-plan-identity h2,
  .market-spec-grid.hardware-list dd,
  .market-pricing-title strong,
  .duration-option-heading strong,
  .duration-option-amount b
) {
  color: var(--theme-text);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-intro-copy p,
  .purchase-progress small,
  .purchase-section-title p,
  .purchase-catalog-title p,
  .purchase-room-region,
  .purchase-room-card-description,
  .purchase-room-plans,
  .market-catalog-heading p,
  .market-plan-identity > small,
  .market-pricing-title small,
  .duration-option-heading em,
  .duration-option-amount em
) {
  color: var(--theme-muted);
}

html[data-app-theme] .sidebar-layout .purchase-progress li:not(:last-child)::after {
  background: var(--theme-border);
}

html[data-app-theme] .sidebar-layout .purchase-progress li > span {
  color: var(--theme-muted);
  border-color: var(--theme-border);
  background: color-mix(in srgb, var(--theme-panel) 86%, transparent);
  box-shadow: 0 3px 9px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout .purchase-progress li.active > span {
  color: #fff;
  border-color: var(--theme-primary);
  background: var(--theme-primary);
  box-shadow: 0 7px 17px rgba(var(--theme-primary-rgb), 0.23);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  border-color: var(--theme-border);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-room-select,
  .purchase-room-nav button,
  .market-plan-count
) {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background: var(--theme-canvas-alt);
  box-shadow: 0 3px 9px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout .purchase-room-select select {
  color: var(--theme-text);
}

html[data-app-theme] .sidebar-layout .purchase-room-select > span,
html[data-app-theme] .sidebar-layout .purchase-room-nav > span {
  color: var(--theme-muted);
}

html[data-app-theme] .sidebar-layout .purchase-room-nav button {
  color: var(--theme-primary);
}

html[data-app-theme] .sidebar-layout .purchase-room-nav button:hover:not(:disabled) {
  color: #fff;
  border-color: var(--theme-primary);
  background: var(--theme-primary);
}

html[data-app-theme] .sidebar-layout .purchase-room-nav button:disabled {
  color: color-mix(in srgb, var(--theme-muted) 55%, white);
  border-color: var(--theme-border);
  background: var(--theme-canvas-alt);
}

html[data-app-theme] .sidebar-layout .purchase-room-picker .purchase-room-track {
  scrollbar-color: var(--theme-border-strong) var(--theme-canvas-alt);
}

html[data-app-theme] .sidebar-layout .purchase-room-picker .purchase-room-track::-webkit-scrollbar-track {
  background: var(--theme-canvas-alt);
}

html[data-app-theme] .sidebar-layout .purchase-room-picker .purchase-room-track::-webkit-scrollbar-thumb {
  background: var(--theme-border-strong);
}

html[data-app-theme] .sidebar-layout .purchase-room-selected {
  color: #fff;
  background: var(--theme-primary);
}

html[data-app-theme] .sidebar-layout .purchase-room-machine-prefix b {
  border-color: var(--theme-border);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout .purchase-room-card-bottom,
html[data-app-theme] .sidebar-layout .market-plan-footer {
  border-color: var(--theme-border);
}

html[data-app-theme] .sidebar-layout .market-catalog-heading {
  border-color: var(--theme-border);
  background: color-mix(in srgb, var(--theme-panel) 78%, transparent);
}

html[data-app-theme] .sidebar-layout .market-spec-grid.hardware-list {
  border-color: var(--theme-border);
  background: var(--theme-canvas-alt);
}

html[data-app-theme] .sidebar-layout .market-spec-grid.hardware-list > div {
  border-color: var(--theme-border);
}

html[data-app-theme] .sidebar-layout .hardware-mark,
html[data-app-theme] .sidebar-layout .purchase-plan-icon {
  color: var(--theme-primary);
  border-color: var(--theme-border);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout .market-duration-area .duration-option {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background: var(--theme-canvas-alt);
}

html[data-app-theme] .sidebar-layout .market-duration-area .duration-option:hover {
  border-color: var(--theme-border-strong);
  background: color-mix(in srgb, var(--theme-soft) 42%, var(--theme-panel));
}

html[data-app-theme] .sidebar-layout .market-duration-area .duration-option.active {
  border-color: var(--theme-primary);
  background: linear-gradient(145deg, var(--theme-panel), var(--theme-soft));
  box-shadow: 0 5px 14px rgba(var(--theme-primary-rgb), 0.13);
}

html[data-app-theme] .sidebar-layout .market-duration-area .duration-option.active::after {
  background: var(--theme-primary);
}

html[data-app-theme] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading strong {
  color: var(--theme-primary-strong);
}

html[data-app-theme] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  color: var(--theme-primary-strong);
  background: var(--theme-soft-strong);
}

html[data-app-theme] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  color: #fff;
  border-color: var(--theme-primary);
  background: linear-gradient(135deg, var(--theme-primary), var(--theme-primary-strong));
  box-shadow: 0 8px 19px rgba(var(--theme-primary-rgb), 0.2);
}

html[data-app-theme] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):hover {
  color: #fff;
  border-color: var(--theme-primary-strong);
  background: var(--theme-primary-strong);
  box-shadow: 0 10px 24px rgba(var(--theme-primary-rgb), 0.24);
}

html[data-app-theme] .sidebar-layout :is(
  .market-action-stock,
  .purchase-help-strip,
  .confirm-plan-title,
  .purchase-count-field,
  .purchase-choice-summary
) {
  border-color: var(--theme-border);
  background: var(--theme-canvas-alt);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-count-heading > b,
  .purchase-choice-summary-icon
) {
  color: var(--theme-primary);
  border-color: var(--theme-border);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-count-heading strong,
  .purchase-count-result strong,
  .purchase-choice-summary strong
) {
  color: var(--theme-text);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-count-heading small,
  .purchase-count-result span,
  .purchase-choice-summary small
) {
  color: var(--theme-muted);
}

html[data-app-theme] .sidebar-layout :is(
  .purchase-stepper,
  .purchase-stepper input,
  .purchase-count-result
) {
  border-color: var(--theme-border);
  background: var(--theme-panel);
}

html[data-app-theme] .sidebar-layout .purchase-stepper button {
  color: var(--theme-primary);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout .purchase-stepper button:hover {
  background: var(--theme-soft-strong);
}

html[data-app-theme] .sidebar-layout .purchase-stepper-unit {
  color: var(--theme-muted);
  background: var(--theme-canvas-alt);
}

html[data-app-theme] .sidebar-layout .duration-fixed-value {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout .duration-fixed-value strong {
  color: var(--theme-primary-strong);
}

html[data-app-theme] .sidebar-layout .purchase-confirm-modal {
  border: 1px solid var(--theme-border);
  background: var(--theme-panel);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--theme-shadow) 85%, transparent);
}

html[data-app-theme] .sidebar-layout .popup-payment-view h2.payment-scan-title {
  color: var(--theme-primary-strong);
  text-shadow: 0 4px 16px rgba(var(--theme-primary-rgb), 0.12);
}

html[data-app-theme] .sidebar-layout .alipay-payment-qr {
  border-color: var(--theme-border);
  box-shadow: 0 10px 28px rgba(var(--theme-primary-rgb), 0.1);
}

/* Profile, promotion and patrol */
html[data-app-theme] .sidebar-layout :is(.account-hero, .patrol-header) {
  color: var(--theme-text);
  border-color: var(--theme-border);
  background:
    radial-gradient(circle at 92% 5%, var(--theme-ambient-two), transparent 19rem),
    radial-gradient(circle at 8% 100%, var(--theme-ambient-one), transparent 20rem),
    linear-gradient(135deg, var(--theme-panel), var(--theme-soft));
  box-shadow: 0 15px 38px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout :is(
  .account-hero h1,
  .account-hero h2,
  .account-hero strong,
  .account-identity-copy h1,
  .patrol-header h1
) {
  color: var(--theme-text);
}

html[data-app-theme] .sidebar-layout .account-identity-copy p {
  color: var(--theme-muted);
}

html[data-app-theme] .sidebar-layout :is(
  .account-kicker,
  .account-panel-heading span:not(.account-online-pill),
  .account-orders-modal-title > div > span,
  .account-modal-order-top button,
  .profile-order-price,
  .account-modal-order-price
) {
  color: var(--theme-primary) !important;
}

html[data-app-theme] .sidebar-layout :is(
  .account-stat-icon.is-violet,
  .account-profile-group-icon,
  .account-orders-modal-icon,
  .patrol-title-icon
) {
  color: var(--theme-primary);
  background: var(--theme-soft);
}

html[data-app-theme] .sidebar-layout :is(
  .account-profile-group,
  .account-profile-row,
  .promotion-heading-badges > *,
  .promotion-balance-stat,
  .promotion-fee-summary
) {
  border-color: var(--theme-border);
  background: color-mix(in srgb, var(--theme-soft) 45%, white);
}

html[data-app-theme] .sidebar-layout :is(
  .promotion-ledger-table thead,
  .batch-renewal-table thead,
  .batch-refund-table thead
) {
  color: var(--theme-muted);
  background: color-mix(in srgb, var(--theme-soft) 55%, white);
}

html[data-app-theme] .sidebar-layout .patrol-card {
  border-color: var(--theme-border);
  background: var(--theme-panel);
  box-shadow: 0 7px 20px var(--theme-shadow);
}

html[data-app-theme] .sidebar-layout .patrol-card:hover {
  border-color: var(--theme-border-strong);
  box-shadow: 0 12px 28px rgba(var(--theme-primary-rgb), 0.12);
}

/* Support */
html[data-app-theme] .sidebar-layout .support-inbox {
  border-right-color: var(--theme-border);
  background: color-mix(in srgb, var(--theme-canvas-alt) 82%, transparent);
}

html[data-app-theme] .sidebar-layout :is(
  .support-inbox-head,
  .support-chat-head
) {
  border-color: var(--theme-border);
}

html[data-app-theme] .sidebar-layout .support-chat-panel {
  background:
    radial-gradient(circle at 100% 0, var(--theme-ambient-two), transparent 35%),
    radial-gradient(circle at 0 100%, var(--theme-ambient-one), transparent 36%),
    color-mix(in srgb, var(--theme-panel) 55%, transparent);
}

html[data-app-theme] .sidebar-layout .support-conversation:hover,
html[data-app-theme] .sidebar-layout .support-conversation.active {
  border-color: var(--theme-border-strong);
  background: linear-gradient(125deg, var(--theme-soft), var(--theme-canvas-alt));
}

html[data-app-theme] .sidebar-layout .support-conversation.active {
  box-shadow:
    inset 3px 0 0 var(--theme-primary),
    0 5px 16px rgba(var(--theme-primary-rgb), 0.09);
}

html[data-app-theme] .sidebar-layout :is(
  .support-conversation-avatar,
  .support-room-avatar,
  .support-room-card-icon
) {
  color: var(--theme-primary);
  border-color: var(--theme-border);
  background: linear-gradient(145deg, var(--theme-soft), var(--theme-soft-strong));
}

html[data-app-theme] .sidebar-layout .support-room-card:not(.support-room-complaint) {
  border-color: var(--theme-border);
  background: var(--theme-panel-translucent);
}

html[data-app-theme] .sidebar-layout .support-room-card:not(.support-room-complaint):hover {
  border-color: var(--theme-border-strong);
  box-shadow: 0 11px 24px rgba(var(--theme-primary-rgb), 0.12);
}

/* Dialogs */
html[data-app-theme] .sidebar-layout .modal-content {
  border-color: var(--theme-border);
  background: var(--theme-panel);
  box-shadow: 0 24px 70px rgba(var(--theme-primary-rgb), 0.16);
}

html[data-app-theme] .sidebar-layout .modal-header {
  border-bottom-color: var(--theme-border);
  background: var(--theme-canvas-alt);
}

/* Google Material：留白、清晰层级和克制的四色状态。 */
html[data-app-theme="google"] body.sidebar-layout {
  font-family:
    "Google Sans", Roboto, "Noto Sans SC", "Microsoft YaHei",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 90% 4%, rgba(66, 133, 244, 0.08), transparent 25rem),
    radial-gradient(circle at 7% 95%, rgba(52, 168, 83, 0.055), transparent 24rem),
    #f8fafd;
}

html[data-app-theme="google"] .sidebar-layout .app-sidebar {
  border-right-color: #e3e6e8 !important;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 4px 0 18px rgba(60, 64, 67, 0.08);
}

html[data-app-theme="google"] .sidebar-layout .brand-mark {
  background:
    conic-gradient(
      from 218deg,
      #4285f4 0 42%,
      #34a853 42% 61%,
      #fbbc04 61% 78%,
      #ea4335 78% 100%);
  box-shadow: 0 5px 14px rgba(60, 64, 67, 0.2);
}

html[data-app-theme="google"] .sidebar-layout .sidebar-brand strong {
  color: #202124;
  font-weight: 650;
  letter-spacing: -0.01em;
}

html[data-app-theme="google"] .sidebar-layout .sidebar-user-card {
  border-color: #e1e4e7;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.12),
    0 2px 6px rgba(60, 64, 67, 0.08);
}

html[data-app-theme="google"] .sidebar-layout .sidebar-link {
  border-radius: 0 24px 24px 0;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}

html[data-app-theme="google"] .sidebar-layout .sidebar-link:hover {
  color: #174ea6;
  border-color: transparent;
  background: #f1f3f4;
  transform: none;
}

html[data-app-theme="google"] .sidebar-layout .sidebar-link.active {
  color: #174ea6;
  border-color: transparent;
  background: #e8f0fe;
  box-shadow: none;
}

html[data-app-theme="google"] .sidebar-layout .sidebar-link.active > i {
  background: #1a73e8;
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.1);
}

html[data-app-theme="google"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="google"] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme="google"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: #1a73e8;
  border-radius: 50%;
  background: transparent;
}

html[data-app-theme="google"] .sidebar-layout :is(
  .content-panel,
  .purchase-room-picker,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-color: #e0e3e7;
  border-radius: 18px;
  background-color: #fff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.1),
    0 3px 10px rgba(60, 64, 67, 0.07);
  backdrop-filter: none;
}

html[data-app-theme="google"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .purchase-now-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
) {
  color: #fff;
  border-color: #1a73e8;
  border-radius: 999px;
  background: #1a73e8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2);
  font-weight: 650;
}

html[data-app-theme="google"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .purchase-now-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
):hover {
  color: #fff;
  border-color: #1765cc;
  background: #1765cc;
  box-shadow:
    0 1px 3px rgba(60, 64, 67, 0.22),
    0 4px 8px rgba(60, 64, 67, 0.12);
  transform: none;
}

html[data-app-theme="google"] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button,
  .mobile-menu-button
) {
  border-color: #dadce0;
  border-radius: 999px;
  background: #fff;
}

html[data-app-theme="google"] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button
):hover {
  color: #174ea6;
  border-color: #aecbfa;
  background: #f6f9fe;
}

html[data-app-theme="google"] .sidebar-layout .machine-table-rows thead {
  color: #5f6368;
  background: #f8fafd;
}

html[data-app-theme="google"] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme="google"] .sidebar-layout .machine-card-row.is-offline {
  border-color: #e0e3e7;
  border-radius: 16px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.1),
    0 2px 6px rgba(60, 64, 67, 0.06);
}

html[data-app-theme="google"] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme="google"] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: #aecbfa;
  background: #f8fbff;
  box-shadow:
    0 1px 3px rgba(60, 64, 67, 0.14),
    0 5px 12px rgba(60, 64, 67, 0.09);
}

html[data-app-theme="google"] .sidebar-layout .machine-card-symbol,
html[data-app-theme="google"] .sidebar-layout .machine-card-row.is-offline .machine-card-symbol {
  color: #1a73e8;
  border-color: #d2e3fc;
  border-radius: 50%;
  background: #e8f0fe;
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-picker {
  background:
    radial-gradient(circle at 95% 5%, rgba(66, 133, 244, 0.1), transparent 16rem),
    #fff;
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active,
html[data-app-theme="google"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: #aecbfa;
  background: #f8fbff;
  box-shadow:
    0 1px 3px rgba(60, 64, 67, 0.13),
    0 6px 15px rgba(60, 64, 67, 0.09);
}

html[data-app-theme="google"] .sidebar-layout :is(.account-hero, .patrol-header) {
  border-color: #e0e3e7;
  background:
    radial-gradient(circle at 92% 10%, rgba(66, 133, 244, 0.12), transparent 18rem),
    radial-gradient(circle at 8% 100%, rgba(52, 168, 83, 0.08), transparent 17rem),
    #fff;
  box-shadow:
    0 1px 3px rgba(60, 64, 67, 0.1),
    0 6px 16px rgba(60, 64, 67, 0.07);
}

html[data-app-theme="google"] .sidebar-layout :is(
  .market-available-total.has-stock,
  .purchase-room-total,
  .account-online-pill
) {
  color: #137333;
  border-color: #ceead6;
  background: #e6f4ea;
}

html[data-app-theme="google"] .sidebar-layout :is(
  .market-recommend,
  .promotion-rate-badge
) {
  color: #b06000;
  border-color: #fde293;
  background: #fef7e0;
}

html[data-app-theme="google"] .sidebar-theme-control {
  background: #f8fafd;
}

html[data-app-theme="google"] .sidebar-theme-toggle {
  border-color: #dadce0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.12);
}

/* Google Material purchase page: real Material surfaces, chips and elevation. */
html[data-app-theme="google"] .sidebar-layout .purchase-page-intro {
  border-color: #e0e3e7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 0, rgba(66, 133, 244, 0.1), transparent 24rem),
    #fff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.1),
    0 3px 10px rgba(60, 64, 67, 0.07);
}

html[data-app-theme="google"] .sidebar-layout .purchase-progress li > span {
  border-color: #dadce0;
  border-radius: 50%;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="google"] .sidebar-layout .purchase-progress li.active > span {
  border-color: #1a73e8;
  background: #1a73e8;
  box-shadow: 0 2px 6px rgba(26, 115, 232, 0.28);
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-picker {
  border-color: #e0e3e7;
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0, rgba(66, 133, 244, 0.08), transparent 19rem),
    #fff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.1),
    0 3px 10px rgba(60, 64, 67, 0.07);
}

html[data-app-theme="google"] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  color: #174ea6;
  border-color: #d2e3fc;
  border-radius: 50%;
  background: #e8f0fe;
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-total {
  color: #137333;
  border-color: #ceead6;
  background: #e6f4ea;
  box-shadow: none;
}

html[data-app-theme="google"] .sidebar-layout :is(
  .purchase-room-select,
  .purchase-room-nav button,
  .market-plan-count
) {
  border-color: #dadce0;
  border-radius: 999px;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-nav button:hover:not(:disabled) {
  color: #174ea6;
  border-color: #aecbfa;
  background: #f6f9fe;
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option {
  border-color: #e0e3e7;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.1),
    0 2px 6px rgba(60, 64, 67, 0.06);
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option::before {
  border-color: rgba(66, 133, 244, 0.055);
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option:hover {
  border-color: #aecbfa;
  background: #fff;
  box-shadow:
    0 2px 5px rgba(60, 64, 67, 0.13),
    0 7px 16px rgba(60, 64, 67, 0.08);
  transform: translateY(-1px);
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  color: #202124;
  border-color: #aecbfa;
  background: #f8fbff;
  box-shadow:
    inset 0 0 0 1px rgba(26, 115, 232, 0.08),
    0 2px 6px rgba(60, 64, 67, 0.12);
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-selected {
  background: #1a73e8;
}

html[data-app-theme="google"] .sidebar-layout .purchase-room-machine-prefix b {
  color: #174ea6;
  border-color: #d2e3fc;
  border-radius: 999px;
  background: #e8f0fe;
}

html[data-app-theme="google"] .sidebar-layout .market-catalog-heading {
  padding: 0.72rem 0.85rem;
  border: 1px solid #e0e3e7;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.08);
}

html[data-app-theme="google"] .sidebar-layout .market-plan-card {
  border-color: #e0e3e7;
  border-radius: 20px;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(60, 64, 67, 0.1),
    0 2px 6px rgba(60, 64, 67, 0.06);
}

html[data-app-theme="google"] .sidebar-layout .market-plan-card:hover {
  border-color: #aecbfa;
  box-shadow:
    0 2px 5px rgba(60, 64, 67, 0.13),
    0 8px 18px rgba(60, 64, 67, 0.08);
  transform: translateY(-1px);
}

html[data-app-theme="google"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: #aecbfa;
  background: linear-gradient(155deg, #fff 58%, #f8fbff 100%);
}

html[data-app-theme="google"] .sidebar-layout .market-spec-grid.hardware-list {
  border-color: #e8eaed;
  border-radius: 16px;
  background: #f8fafd;
}

html[data-app-theme="google"] .sidebar-layout .market-recommend {
  color: #b06000;
  border: 1px solid #fde293;
  border-radius: 999px;
  background: #fef7e0;
}

html[data-app-theme="google"] .sidebar-layout .market-duration-area .duration-option {
  border-color: #dadce0;
  border-radius: 14px;
  background: #fff;
}

html[data-app-theme="google"] .sidebar-layout .market-duration-area .duration-option:hover {
  border-color: #aecbfa;
  background: #f8fbff;
}

html[data-app-theme="google"] .sidebar-layout .market-duration-area .duration-option.active {
  border-color: #1a73e8;
  background: #e8f0fe;
  box-shadow: none;
}

html[data-app-theme="google"] .sidebar-layout .market-duration-area .duration-option.active::after {
  background: #1a73e8;
}

html[data-app-theme="google"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  border-color: #1a73e8;
  border-radius: 999px;
  background: #1a73e8;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.2);
}

html[data-app-theme="google"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):hover {
  border-color: #1765cc;
  background: #1765cc;
  box-shadow:
    0 1px 3px rgba(60, 64, 67, 0.22),
    0 4px 8px rgba(60, 64, 67, 0.12);
}

html[data-app-theme="google"] .sidebar-layout :is(
  .purchase-help-strip,
  .confirm-plan-title,
  .purchase-count-field,
  .purchase-choice-summary
) {
  border-color: #e0e3e7;
  border-radius: 16px;
  background: #f8fafd;
}

html[data-app-theme="google"] .sidebar-layout .purchase-confirm-modal {
  border: 1px solid #e0e3e7;
  border-radius: 28px;
  box-shadow:
    0 8px 24px rgba(60, 64, 67, 0.2),
    0 24px 60px rgba(60, 64, 67, 0.12);
}

html[data-app-theme="google"] .sidebar-layout .purchase-stepper {
  border-color: #dadce0;
  border-radius: 999px;
}

html[data-app-theme="google"] .sidebar-layout .purchase-stepper button {
  color: #1a73e8;
  background: #e8f0fe;
}

html[data-app-theme="google"] .sidebar-layout .alipay-payment-qr {
  border-color: #d2e3fc;
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(26, 115, 232, 0.12);
}

/* macOS: colourful desktop wallpaper, translucent windows and native controls. */
html[data-app-theme="macos"] body.sidebar-layout {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(ellipse at 86% -8%, rgba(255, 255, 255, 0.9) 0 13%, transparent 43%),
    radial-gradient(ellipse at 102% 18%, rgba(255, 109, 139, 0.32) 0 10%, transparent 37%),
    radial-gradient(ellipse at 68% 108%, rgba(151, 92, 255, 0.28) 0 12%, transparent 42%),
    radial-gradient(ellipse at 25% 96%, rgba(41, 205, 255, 0.34) 0 13%, transparent 43%),
    linear-gradient(145deg, #edf8ff 0%, #dcecff 42%, #f5eafa 73%, #fff3ef 100%);
  background-attachment: fixed;
}

html[data-app-theme="macos"] body.sidebar-layout::before,
html[data-app-theme="macos"] body.sidebar-layout::after {
  position: fixed;
  z-index: -1;
  border-radius: 48% 52% 58% 42%;
  content: "";
  pointer-events: none;
  filter: blur(2px);
}

html[data-app-theme="macos"] body.sidebar-layout::before {
  top: 9vh;
  right: -9rem;
  width: 31rem;
  height: 31rem;
  background: linear-gradient(145deg, rgba(255, 93, 136, 0.2), rgba(255, 188, 84, 0.13));
  transform: rotate(-18deg);
}

html[data-app-theme="macos"] body.sidebar-layout::after {
  bottom: -13rem;
  left: 19vw;
  width: 39rem;
  height: 32rem;
  background: linear-gradient(145deg, rgba(0, 122, 255, 0.16), rgba(175, 82, 222, 0.19));
  transform: rotate(15deg);
}

html[data-app-theme="macos"] .sidebar-layout .app-content {
  min-height: 100vh;
  background: rgba(248, 250, 255, 0.14);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

html[data-app-theme="macos"] .sidebar-layout .app-sidebar {
  border-right-color: rgba(255, 255, 255, 0.62) !important;
  background:
    linear-gradient(180deg, rgba(250, 251, 255, 0.78), rgba(232, 238, 249, 0.68));
  box-shadow:
    1px 0 0 rgba(255, 255, 255, 0.82),
    14px 0 42px rgba(35, 53, 84, 0.13);
  -webkit-backdrop-filter: blur(38px) saturate(165%);
  backdrop-filter: blur(38px) saturate(165%);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-head {
  position: relative;
  min-height: 104px;
  padding-top: 2.4rem;
  border-bottom-color: rgba(60, 60, 67, 0.12);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-head::before {
  position: absolute;
  top: 15px;
  left: 18px;
  width: 50px;
  height: 12px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 6px 6px, #ff5f57 0 5px, transparent 5.5px),
    radial-gradient(circle at 25px 6px, #febc2e 0 5px, transparent 5.5px),
    radial-gradient(circle at 44px 6px, #28c840 0 5px, transparent 5.5px);
  content: "";
}

html[data-app-theme="macos"] .sidebar-layout .brand-mark {
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 12px;
  background: linear-gradient(145deg, #5da9ff 0%, #1677ff 48%, #8257df 100%);
  box-shadow:
    0 8px 19px rgba(0, 102, 204, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-brand strong {
  color: #1d1d1f;
  font-weight: 720;
  letter-spacing: -0.02em;
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-user-card {
  border-color: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow:
    0 10px 28px rgba(31, 45, 74, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link {
  border-radius: 11px;
  transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link:hover {
  color: #1d1d1f;
  border-color: transparent;
  background: rgba(118, 118, 128, 0.1);
  transform: none;
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link.active {
  color: #0058bd;
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.76);
  box-shadow:
    0 7px 19px rgba(31, 49, 78, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="macos"] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme="macos"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: #0a84ff;
  border-radius: 9px;
  background: rgba(10, 132, 255, 0.09);
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .content-panel,
  .purchase-room-picker,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-color: rgba(255, 255, 255, 0.74);
  border-radius: 22px;
  background-color: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 16px 42px rgba(32, 48, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(32px) saturate(155%);
  backdrop-filter: blur(32px) saturate(155%);
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.purchase-now-button:not(:disabled),
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
) {
  color: #fff;
  border-color: #0a84ff;
  border-radius: 12px;
  background: #0a84ff;
  box-shadow:
    0 6px 16px rgba(10, 132, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.purchase-now-button:not(:disabled),
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
):hover {
  color: #fff;
  border-color: #0066cc;
  background: #0071e3;
  box-shadow: 0 8px 20px rgba(10, 132, 255, 0.25);
  transform: translateY(-1px);
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button,
  .mobile-menu-button
) {
  color: #1d1d1f;
  border-color: rgba(60, 60, 67, 0.14);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-app-theme="macos"] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme="macos"] .sidebar-layout .machine-card-row.is-offline {
  border-color: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 10px 26px rgba(31, 45, 72, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

html[data-app-theme="macos"] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme="macos"] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: rgba(0, 122, 255, 0.35);
  background: rgba(245, 250, 255, 0.9);
  box-shadow:
    0 10px 28px rgba(0, 122, 255, 0.1),
    inset 0 1px 0 #fff;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-page-intro {
  border-color: rgba(255, 255, 255, 0.76);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% -18%, rgba(0, 122, 255, 0.17), transparent 19rem),
    linear-gradient(145deg, rgba(255, 255, 255, 0.83), rgba(244, 247, 255, 0.66));
  box-shadow:
    0 16px 42px rgba(32, 48, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(32px) saturate(155%);
  backdrop-filter: blur(32px) saturate(155%);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-page-intro::after {
  border-color: rgba(120, 120, 128, 0.055);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-progress li > span {
  border-color: rgba(60, 60, 67, 0.13);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-progress li.active > span {
  border-color: #0a84ff;
  background: #0a84ff;
  box-shadow: 0 5px 13px rgba(10, 132, 255, 0.22);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker {
  border-color: rgba(255, 255, 255, 0.74);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 16px 42px rgba(32, 48, 78, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(32px) saturate(155%);
  backdrop-filter: blur(32px) saturate(155%);
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.14);
  border-radius: 10px;
  background: rgba(10, 132, 255, 0.08);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-total {
  color: #16733a;
  border-color: rgba(52, 199, 89, 0.24);
  background: rgba(52, 199, 89, 0.1);
  box-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .purchase-room-select,
  .purchase-room-nav button,
  .market-plan-count
) {
  border-color: rgba(60, 60, 67, 0.13);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 4px 12px rgba(31, 35, 48, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-nav button {
  border-radius: 50%;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-nav button:hover:not(:disabled) {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.22);
  background: rgba(10, 132, 255, 0.07);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option {
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  box-shadow:
    0 9px 24px rgba(30, 46, 76, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(24px) saturate(145%);
  backdrop-filter: blur(24px) saturate(145%);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option::before {
  border-color: rgba(120, 120, 128, 0.05);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option:hover {
  border-color: rgba(60, 60, 67, 0.24);
  background: #fff;
  box-shadow:
    0 11px 26px rgba(28, 28, 30, 0.1),
    inset 0 1px 0 #fff;
  transform: translateY(-2px);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  color: #1d1d1f;
  border-color: rgba(10, 132, 255, 0.52);
  background: rgba(247, 251, 255, 0.96);
  box-shadow:
    0 10px 25px rgba(10, 132, 255, 0.1),
    inset 0 0 0 1px rgba(10, 132, 255, 0.07),
    inset 0 1px 0 #fff;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-selected {
  background: #0a84ff;
  box-shadow: 0 4px 11px rgba(10, 132, 255, 0.2);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-machine-prefix b {
  color: #0066cc;
  border-color: rgba(10, 132, 255, 0.14);
  border-radius: 7px;
  background: rgba(10, 132, 255, 0.07);
}

html[data-app-theme="macos"] .sidebar-layout .market-catalog-heading {
  padding: 0.72rem 0.85rem;
  border: 1px solid rgba(60, 60, 67, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-app-theme="macos"] .sidebar-layout .market-plan-card {
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 12px 30px rgba(30, 46, 76, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.97);
  -webkit-backdrop-filter: blur(28px) saturate(150%);
  backdrop-filter: blur(28px) saturate(150%);
}

html[data-app-theme="macos"] .sidebar-layout .market-plan-card:hover {
  border-color: rgba(60, 60, 67, 0.24);
  box-shadow:
    0 14px 34px rgba(28, 28, 30, 0.105),
    inset 0 1px 0 #fff;
}

html[data-app-theme="macos"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: rgba(0, 122, 255, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(229, 243, 255, 0.72));
}

html[data-app-theme="macos"] .sidebar-layout .market-spec-grid.hardware-list {
  border-color: rgba(60, 60, 67, 0.1);
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.06);
}

html[data-app-theme="macos"] .sidebar-layout .market-recommend {
  color: #9a5600;
  border: 1px solid rgba(255, 149, 0, 0.2);
  border-radius: 999px;
  background: rgba(255, 149, 0, 0.11);
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option {
  border-color: rgba(60, 60, 67, 0.13);
  border-radius: 13px;
  background: rgba(250, 250, 252, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option:hover {
  border-color: rgba(60, 60, 67, 0.24);
  background: #fff;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active {
  border-color: #0a84ff;
  background: rgba(238, 247, 255, 0.92);
  box-shadow:
    0 5px 14px rgba(10, 132, 255, 0.09),
    inset 0 1px 0 #fff;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active::after {
  background: #0a84ff;
}

html[data-app-theme="macos"] .sidebar-layout .market-action-stock {
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  min-height: 54px;
  border-color: #0a84ff;
  border-radius: 13px;
  background: #0a84ff;
  box-shadow:
    0 6px 16px rgba(10, 132, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-help-strip {
  border-color: rgba(60, 60, 67, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-confirm-modal {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(60, 60, 67, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow:
    0 28px 80px rgba(21, 24, 33, 0.24),
    inset 0 1px 0 #fff;
  -webkit-backdrop-filter: blur(30px) saturate(165%);
  backdrop-filter: blur(30px) saturate(165%);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-confirm-modal::before {
  display: block;
  width: 52px;
  height: 13px;
  margin: 0.82rem 0 0 1rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 6px 6px, #ff5f57 0 5px, transparent 5.5px),
    radial-gradient(circle at 26px 6px, #febc2e 0 5px, transparent 5.5px),
    radial-gradient(circle at 46px 6px, #28c840 0 5px, transparent 5.5px);
  content: "";
  pointer-events: none;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-confirm-modal > .modal-header {
  padding-top: 0.7rem !important;
  background: transparent;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .confirm-plan-title,
  .purchase-count-field,
  .purchase-choice-summary
) {
  border-color: rgba(60, 60, 67, 0.11);
  border-radius: 14px;
  background: rgba(118, 118, 128, 0.055);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-stepper {
  border-color: rgba(60, 60, 67, 0.15);
  border-radius: 10px;
  background: #fff;
  box-shadow:
    0 2px 7px rgba(31, 35, 48, 0.05),
    inset 0 1px 0 #fff;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-stepper button {
  color: #0a84ff;
  background: rgba(10, 132, 255, 0.07);
}

html[data-app-theme="macos"] .sidebar-layout .popup-payment-view h2.payment-scan-title {
  color: #0066cc;
  text-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout .alipay-payment-qr {
  border-color: rgba(60, 60, 67, 0.13);
  border-radius: 20px;
  box-shadow:
    0 12px 30px rgba(31, 35, 48, 0.1),
    inset 0 1px 0 #fff;
}

html[data-app-theme="macos"] .sidebar-layout :is(.account-hero, .patrol-header) {
  border-color: rgba(60, 60, 67, 0.13);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(246, 246, 248, 0.82));
  box-shadow:
    0 12px 34px rgba(28, 28, 30, 0.085),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-app-theme="macos"] .sidebar-theme-control {
  border-top-color: rgba(255, 255, 255, 0.68);
  background: rgba(229, 235, 247, 0.68);
  -webkit-backdrop-filter: blur(28px) saturate(155%);
  backdrop-filter: blur(28px) saturate(155%);
}

html[data-app-theme="macos"] .sidebar-theme-toggle {
  border-color: rgba(60, 60, 67, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 5px 16px rgba(31, 35, 48, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/*
 * macOS 极简：以 Apple 官网和系统设置的黑、白、灰层级为主。
 * 业务成功、告警和错误状态仍保留语义色，其余交互不使用装饰性彩色。
 */
html[data-app-theme="macos"] body.sidebar-layout {
  background: #f7f8fa;
  background-attachment: fixed;
}

html[data-app-theme="macos"] body.sidebar-layout::before,
html[data-app-theme="macos"] body.sidebar-layout::after {
  display: none;
}

html[data-app-theme="macos"] .sidebar-layout .app-content {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-app-theme="macos"] .sidebar-layout .app-sidebar {
  border-right-color: rgba(29, 29, 31, 0.065) !important;
  background: rgba(253, 253, 254, 0.97);
  box-shadow: 1px 0 0 rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(24px) saturate(115%);
  backdrop-filter: blur(24px) saturate(115%);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-head {
  min-height: auto;
  padding-top: 1.1rem;
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-head::before,
html[data-app-theme="macos"] .sidebar-layout .purchase-confirm-modal::before {
  display: none;
}

html[data-app-theme="macos"] .sidebar-layout .brand-mark {
  color: #1d1d1f;
  border: 1px solid rgba(29, 29, 31, 0.08);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(28, 39, 52, 0.08);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-user-card {
  border-color: rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.045);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link {
  border-radius: 10px;
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link:hover {
  color: #1d1d1f;
  border-color: transparent;
  background: rgba(0, 0, 0, 0.045);
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link.active {
  color: #1d1d1f;
  border-color: transparent;
  background: #ececef;
  box-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link.active > i {
  background: #147ce5;
  box-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="macos"] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme="macos"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: #55555a;
  border-radius: 8px;
  background: #f0f0f3;
}

html[data-app-theme="macos"] .sidebar-layout .sidebar-link.active .sidebar-link-icon {
  color: #0868c9;
  background: #e7f2ff;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .content-panel,
  .purchase-room-picker,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-color: rgba(0, 0, 0, 0.075);
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.025),
    0 8px 28px rgba(0, 0, 0, 0.045);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.purchase-now-button:not(:disabled),
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
) {
  color: #fff;
  border-color: #147ce5;
  border-radius: 11px;
  background: #147ce5;
  box-shadow: 0 5px 14px rgba(20, 124, 229, 0.18);
  font-weight: 650;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.purchase-now-button:not(:disabled),
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
):hover {
  color: #fff;
  border-color: #0868c9;
  background: #0868c9;
  box-shadow: 0 7px 18px rgba(20, 124, 229, 0.22);
  transform: translateY(-1px);
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button,
  .mobile-menu-button
) {
  color: #1d1d1f;
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button,
  .mobile-menu-button
):hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: #f2f2f7;
}

html[data-app-theme="macos"] .sidebar-layout .machine-table-rows thead {
  color: #6e6e73;
  background: #f5f5f7;
}

html[data-app-theme="macos"] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme="macos"] .sidebar-layout .machine-card-row.is-offline {
  border-color: rgba(0, 0, 0, 0.075);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-app-theme="macos"] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme="macos"] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: rgba(0, 0, 0, 0.2);
  background: #fbfbfd;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.07);
}

html[data-app-theme="macos"] .sidebar-layout .machine-card-symbol,
html[data-app-theme="macos"] .sidebar-layout .machine-card-row.is-offline .machine-card-symbol {
  color: #147ce5;
  border-color: rgba(20, 124, 229, 0.12);
  background: #eef6ff;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-page-intro {
  border-color: rgba(0, 0, 0, 0.075);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.045);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-page-intro::after {
  display: none;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-progress li.active > span {
  color: #fff;
  border-color: #147ce5;
  background: #147ce5;
  box-shadow: 0 4px 11px rgba(20, 124, 229, 0.16);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker {
  border-color: rgba(0, 0, 0, 0.075);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.045);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  color: #0868c9;
  border-color: rgba(20, 124, 229, 0.1);
  border-radius: 9px;
  background: #eef6ff;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-total {
  color: #24713a;
  border-color: rgba(36, 138, 61, 0.13);
  background: #eef9f1;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .purchase-room-select,
  .purchase-room-nav button,
  .market-plan-count
) {
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-nav button {
  color: #147ce5;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-nav button:hover:not(:disabled) {
  color: #fff;
  border-color: #147ce5;
  background: #147ce5;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option {
  border-color: rgba(0, 0, 0, 0.075);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.045);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option::before {
  display: none;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option:hover {
  border-color: rgba(0, 0, 0, 0.18);
  background: #fbfbfd;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.065);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  color: #1d1d1f;
  border-color: rgba(20, 124, 229, 0.42);
  background: #fbfdff;
  box-shadow: 0 7px 22px rgba(20, 124, 229, 0.075);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-selected {
  color: #fff;
  background: #147ce5;
  box-shadow: 0 3px 9px rgba(20, 124, 229, 0.14);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-machine-prefix b {
  color: #0868c9;
  border-color: rgba(20, 124, 229, 0.12);
  background: #eef6ff;
}

html[data-app-theme="macos"] .sidebar-layout .market-catalog-heading {
  border-color: rgba(0, 0, 0, 0.075);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-app-theme="macos"] .sidebar-layout .market-plan-card {
  border-color: rgba(0, 0, 0, 0.075);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.05);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-app-theme="macos"] .sidebar-layout .market-plan-card:hover,
html[data-app-theme="macos"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: rgba(0, 0, 0, 0.18);
  background: #fff;
  box-shadow: 0 9px 28px rgba(0, 0, 0, 0.075);
}

html[data-app-theme="macos"] .sidebar-layout .market-spec-grid.hardware-list {
  border-color: rgba(0, 0, 0, 0.075);
  background: #f5f5f7;
}

html[data-app-theme="macos"] .sidebar-layout .market-recommend {
  color: #9a5200;
  border-color: rgba(184, 93, 0, 0.12);
  background: #fff6e9;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option {
  border-color: transparent;
  border-radius: 11px;
  background: transparent;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.62);
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active {
  border-color: transparent;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.07);
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active::after {
  background: #3a3a3c;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading strong,
html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  color: #1d1d1f;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  background: #f2f2f7;
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  min-height: 62px;
  color: #1d1d1f;
  border-color: rgba(29, 29, 31, 0.11);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f5f6f6);
  box-shadow:
    0 8px 20px rgba(28, 39, 34, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) .purchase-button-label small {
  color: #77777c;
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) .purchase-button-price {
  min-width: 68px;
  padding: 0;
  border-color: transparent;
  background: transparent;
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) .purchase-button-price strong {
  color: #24713a;
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) .purchase-button-price small {
  color: #64806d;
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):hover {
  color: #173d27;
  border-color: rgba(36, 113, 58, 0.2);
  background: linear-gradient(180deg, #ffffff, #edf8f1);
  box-shadow:
    0 10px 24px rgba(36, 113, 58, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:focus-visible {
  outline-color: rgba(36, 113, 58, 0.18);
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-selector {
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(29, 29, 31, 0.065);
  border-radius: 15px;
  background: #eeeef1;
}

html[data-app-theme="macos"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) > svg {
  width: 27px;
  height: 27px;
  padding: 6px;
  color: #24713a;
  border-radius: 50%;
  background: #e8f5ec;
}

/* macOS purchase palette: neutral surfaces with semantic green and a light CTA. */
html[data-app-theme="macos"] .sidebar-layout .purchase-intro-eyebrow {
  color: #55555a !important;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-intro-eyebrow i {
  background: #8e8e93;
  box-shadow: 0 0 0 5px rgba(142, 142, 147, 0.1);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-progress li.active > span {
  color: #c64f36;
  border-color: rgba(240, 106, 75, 0.34);
  background: #fff4f0;
  box-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  color: #55555a !important;
  border-color: rgba(29, 29, 31, 0.09);
  background: #f2f2f7;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-total b {
  color: #24713a !important;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-total {
  color: #24713a !important;
  border-color: rgba(36, 138, 61, 0.13) !important;
  background: #eef9f1 !important;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-nav button {
  color: #55555a;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-nav button:hover:not(:disabled) {
  color: #fff;
  border-color: #6e6e73;
  background: #6e6e73;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  border-color: rgba(29, 29, 31, 0.24);
  background: #fdfdfe;
  box-shadow: 0 7px 22px rgba(28, 39, 52, 0.065);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-selected {
  color: #24713a !important;
  border: 1px solid rgba(36, 138, 61, 0.12) !important;
  background: #eef9f1 !important;
  box-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-machine-prefix b {
  color: #48484a !important;
  border-color: rgba(29, 29, 31, 0.09) !important;
  background: #f2f2f7 !important;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-room-picker .server-room-option.active .purchase-room-arrow {
  color: #24713a;
  stroke: #24713a;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .market-catalog-heading h2 span,
  .market-plan-count b
) {
  color: #1d1d1f !important;
}

html[data-app-theme="macos"] .sidebar-layout .market-available-total.has-stock {
  color: #24713a !important;
  border-color: rgba(36, 138, 61, 0.15) !important;
  background: #eef9f1 !important;
}

html[data-app-theme="macos"] .sidebar-layout .market-available-total.has-stock b {
  color: #1f6534 !important;
}

html[data-app-theme="macos"] .sidebar-layout :is(
  .purchase-plan-icon,
  .hardware-mark
) {
  color: #55555a !important;
  border-color: rgba(29, 29, 31, 0.075) !important;
  background: #eeeef2 !important;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active {
  border-color: transparent !important;
  background: #fff !important;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.07);
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active::after {
  background: #3a3a3c !important;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading strong,
html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  color: #1d1d1f !important;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  background: #f2f2f7 !important;
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.62);
}

html[data-app-theme="macos"] .sidebar-layout .market-duration-area .duration-option.active:hover {
  border-color: transparent;
  background: #fff;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-help-strip,
html[data-app-theme="macos"] .sidebar-layout .market-action-stock {
  border-color: rgba(0, 0, 0, 0.075);
  background: #f5f5f7;
  box-shadow: none;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-confirm-modal {
  border-color: rgba(0, 0, 0, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
}

html[data-app-theme="macos"] .sidebar-layout .purchase-confirm-modal > .modal-header {
  padding-top: var(--bs-modal-header-padding-y) !important;
  background: #fbfbfd;
}

html[data-app-theme="macos"] .sidebar-layout .purchase-stepper button {
  color: #0868c9;
  background: #eef6ff;
}

html[data-app-theme="macos"] .sidebar-layout .popup-payment-view h2.payment-scan-title {
  color: #0868c9;
}

html[data-app-theme="macos"] .sidebar-layout :is(.account-hero, .patrol-header) {
  border-color: rgba(0, 0, 0, 0.075);
  background: #fff;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

html[data-app-theme="macos"] .sidebar-layout .support-chat-panel {
  background: #f8fafc;
}

html[data-app-theme="macos"] .sidebar-layout .support-conversation:hover,
html[data-app-theme="macos"] .sidebar-layout .support-conversation.active {
  border-color: rgba(0, 0, 0, 0.12);
  background: #f2f2f7;
}

html[data-app-theme="macos"] .sidebar-layout .support-conversation.active {
  box-shadow: inset 3px 0 0 #147ce5;
}

html[data-app-theme="macos"] .sidebar-theme-control {
  border-top-color: rgba(0, 0, 0, 0.07);
  background: rgba(247, 247, 249, 0.94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

html[data-app-theme="macos"] .sidebar-theme-toggle {
  border-color: rgba(0, 0, 0, 0.09);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

/* 深海灰：偏深的蓝灰层级，避免纯黑背景带来的压迫感。 */
html[data-app-theme="dark"] body.sidebar-layout {
  background:
    radial-gradient(circle at 12% 2%, rgba(120, 185, 170, 0.11), transparent 28rem),
    radial-gradient(circle at 96% 9%, rgba(112, 145, 180, 0.1), transparent 30rem),
    linear-gradient(145deg, #343c44, #2d343b);
}

html[data-app-theme="dark"] .sidebar-layout .app-sidebar {
  border-right-color: #4a555f !important;
  background: linear-gradient(180deg, #39424a, #323a42);
  box-shadow: 9px 0 30px rgba(9, 13, 16, 0.18);
}

html[data-app-theme="dark"] .sidebar-layout .brand-mark {
  background: linear-gradient(145deg, #88c7b8, #5d9f91);
  box-shadow: 0 8px 20px rgba(120, 185, 170, 0.18);
}

html[data-app-theme="dark"] .sidebar-layout .sidebar-user-card {
  border-color: #4b575f;
  background: linear-gradient(135deg, #404951, #3b4946);
  box-shadow: 0 8px 22px rgba(8, 12, 15, 0.18);
}

html[data-app-theme="dark"] .sidebar-layout .sidebar-link:hover {
  color: #d9eee9;
  border-color: #52635d;
  background: #404c49;
}

html[data-app-theme="dark"] .sidebar-layout .sidebar-link.active {
  color: #e5f5f1;
  border-color: #58756e;
  background: linear-gradient(90deg, #405650, #3a4846);
  box-shadow:
    inset 3px 0 0 #78b9aa,
    0 6px 16px rgba(8, 12, 15, 0.12);
}

html[data-app-theme="dark"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="dark"] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme="dark"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: #9ad0c3;
  background: #40554f;
}

html[data-app-theme="dark"] .sidebar-layout .app-main,
html[data-app-theme="dark"] .sidebar-layout .modal-content,
html[data-app-theme="dark"] .sidebar-layout .dropdown-menu {
  color: var(--theme-text);
}

html[data-app-theme="dark"] .sidebar-layout .app-main :is(h1, h2, h3, h4, h5, h6, dt, label),
html[data-app-theme="dark"] .sidebar-layout :is(.text-dark, .text-body) {
  color: var(--theme-text) !important;
}

html[data-app-theme="dark"] .sidebar-layout :is(
  .content-panel,
  .purchase-room-picker,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-color: #4b5660;
  background-color: rgba(58, 67, 75, 0.96);
  box-shadow: 0 11px 30px rgba(8, 12, 15, 0.18);
}

html[data-app-theme="dark"] .sidebar-layout :is(
  input,
  select,
  textarea,
  .form-control,
  .form-select,
  .input-group-text
) {
  color: #eef2f3;
  border-color: #55616b;
  background-color: #333b43;
}

html[data-app-theme="dark"] .sidebar-layout :is(input, textarea)::placeholder {
  color: #7f8b94;
}

html[data-app-theme="dark"] .sidebar-layout .dropdown-menu {
  border-color: #505b65;
  background: #3b444c;
  box-shadow: 0 16px 38px rgba(8, 12, 15, 0.3);
}

html[data-app-theme="dark"] .sidebar-layout .dropdown-item {
  color: #e4e9eb;
}

html[data-app-theme="dark"] .sidebar-layout .dropdown-item:hover,
html[data-app-theme="dark"] .sidebar-layout .dropdown-item:focus {
  color: #fff;
  background: #465158;
}

html[data-app-theme="dark"] .sidebar-layout .machine-table-rows thead {
  color: #aab4bc;
  background: #343d44;
}

html[data-app-theme="dark"] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme="dark"] .sidebar-layout .machine-card-row.is-offline {
  border-color: #4b5660;
  background: #3a434b;
  box-shadow: 0 5px 16px rgba(8, 12, 15, 0.16);
}

html[data-app-theme="dark"] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme="dark"] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: #58756e;
  background: linear-gradient(90deg, #43524e, #3e474f);
  box-shadow: 0 10px 24px rgba(8, 12, 15, 0.22);
}

html[data-app-theme="dark"] .sidebar-layout .machine-card-field .local-remark,
html[data-app-theme="dark"] .sidebar-layout .machine-card-actions-wrap .machine-more-button,
html[data-app-theme="dark"] .sidebar-layout :is(.btn-soft, .patrol-tool-button, .mobile-menu-button) {
  color: #e4e9eb;
  border-color: #55616b;
  background: #424b53;
}

html[data-app-theme="dark"] .sidebar-layout .purchase-page-intro {
  border-color: #4c5861;
  background:
    radial-gradient(circle at 88% -20%, rgba(120, 185, 170, 0.11), transparent 46%),
    linear-gradient(135deg, #3e474f, #394744);
  box-shadow: 0 11px 30px rgba(8, 12, 15, 0.18);
}

html[data-app-theme="dark"] .sidebar-layout .purchase-room-picker {
  border-color: #4c5861;
  background:
    radial-gradient(circle at 96% 0, rgba(120, 185, 170, 0.08), transparent 20rem),
    linear-gradient(135deg, #3e474f, #363e45);
}

html[data-app-theme="dark"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option,
html[data-app-theme="dark"] .sidebar-layout .market-plan-card {
  border-color: #505b65;
  background: #3b444c;
  box-shadow: 0 7px 20px rgba(8, 12, 15, 0.17);
}

html[data-app-theme="dark"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option:hover,
html[data-app-theme="dark"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active,
html[data-app-theme="dark"] .sidebar-layout .market-plan-card:hover,
html[data-app-theme="dark"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: #66877f;
  background: linear-gradient(145deg, #424c54, #3c4e49);
  box-shadow: 0 13px 30px rgba(8, 12, 15, 0.24);
}

html[data-app-theme="dark"] .sidebar-layout :is(
  .market-catalog-heading,
  .market-spec-grid.hardware-list,
  .market-action-stock,
  .purchase-help-strip,
  .confirm-plan-title,
  .purchase-count-field,
  .purchase-choice-summary
) {
  color: var(--theme-text);
  border-color: #505b65;
  background: #343d44;
}

html[data-app-theme="dark"] .sidebar-layout .market-spec-grid.hardware-list > div,
html[data-app-theme="dark"] .sidebar-layout :is(.purchase-room-card-bottom, .market-plan-footer) {
  border-color: #4c5861;
}

html[data-app-theme="dark"] .sidebar-layout .market-plan-footer {
  background: #384149;
}

html[data-app-theme="dark"] .sidebar-layout :is(.hardware-mark, .purchase-plan-icon) {
  color: #a9d8cd;
  border-color: #45564f;
  background: #354843;
}

html[data-app-theme="dark"] .sidebar-layout .market-duration-area .duration-selector {
  border-color: #505b65;
  background: #313940;
}

html[data-app-theme="dark"] .sidebar-layout .market-duration-area .duration-option {
  color: #e8edee;
  border-color: transparent;
  background: transparent;
}

html[data-app-theme="dark"] .sidebar-layout .market-duration-area .duration-option:hover {
  border-color: transparent;
  background: #3e474f;
}

html[data-app-theme="dark"] .sidebar-layout .market-duration-area .duration-option.active {
  border-color: #607d76;
  background: #48535b;
  box-shadow:
    0 1px 2px rgba(8, 12, 15, 0.2),
    0 5px 15px rgba(8, 12, 15, 0.2);
}

html[data-app-theme="dark"] .sidebar-layout .market-duration-area .duration-option.active::after {
  color: #26302d;
  background: #9ad0c3;
}

html[data-app-theme="dark"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading strong,
html[data-app-theme="dark"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  color: #d9eee9;
}

html[data-app-theme="dark"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  background: #304d46;
}

html[data-app-theme="dark"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  color: #20302c;
  border-color: #94cbbf;
  background: linear-gradient(180deg, #a8d9ce, #82bdaf);
  box-shadow:
    0 9px 22px rgba(8, 12, 15, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

html[data-app-theme="dark"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) :is(
  .purchase-button-label small,
  .purchase-button-price small
) {
  color: #3f5c55;
}

html[data-app-theme="dark"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) .purchase-button-price {
  border-color: rgba(37, 72, 64, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

html[data-app-theme="dark"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) .purchase-button-price strong {
  color: #20302c;
}

html[data-app-theme="dark"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):hover {
  color: #17241f;
  border-color: #a8d9ce;
  background: linear-gradient(180deg, #b7e1d7, #91c9bc);
  box-shadow: 0 11px 26px rgba(8, 12, 15, 0.28);
}

html[data-app-theme="dark"] .sidebar-layout :is(
  .account-profile-group,
  .account-profile-row,
  .promotion-heading-badges > *,
  .promotion-balance-stat,
  .promotion-fee-summary
) {
  color: var(--theme-text);
  border-color: #505b65;
  background: #3d464e;
}

html[data-app-theme="dark"] .sidebar-layout :is(
  .promotion-ledger-table,
  .batch-renewal-table,
  .batch-refund-table,
  .table
) {
  --bs-table-color: #e6ebed;
  --bs-table-bg: transparent;
  --bs-table-border-color: #414b54;
  --bs-table-hover-color: #fff;
  --bs-table-hover-bg: #343e44;
  color: #e6ebed;
}

html[data-app-theme="dark"] .sidebar-layout :is(
  .promotion-ledger-table thead,
  .batch-renewal-table thead,
  .batch-refund-table thead
) {
  color: #aab4bc;
  background: #343d44;
}

html[data-app-theme="dark"] .sidebar-layout :is(.account-hero, .patrol-header) {
  border-color: #4c5861;
  background:
    radial-gradient(circle at 92% 5%, rgba(112, 145, 180, 0.1), transparent 19rem),
    linear-gradient(135deg, #3e474f, #394946);
  box-shadow: 0 15px 38px rgba(8, 12, 15, 0.2);
}

html[data-app-theme="dark"] .sidebar-layout .patrol-card {
  border-color: #505b65;
  background: #3a434b;
  box-shadow: 0 7px 20px rgba(8, 12, 15, 0.2);
}

html[data-app-theme="dark"] .sidebar-layout .support-inbox,
html[data-app-theme="dark"] .sidebar-layout .support-chat-panel {
  border-color: #4b5660;
  background: #343d44;
}

html[data-app-theme="dark"] .sidebar-layout .support-conversation:hover,
html[data-app-theme="dark"] .sidebar-layout .support-conversation.active {
  border-color: #58756e;
  background: linear-gradient(125deg, #40554f, #3d464e);
}

html[data-app-theme="dark"] .sidebar-layout .modal-content {
  border-color: #55616b;
  background: #3b444c;
  box-shadow: 0 24px 70px rgba(8, 12, 15, 0.42);
}

html[data-app-theme="dark"] .sidebar-layout :is(.modal-header, .modal-footer) {
  border-color: #505b65;
  background: #353e45;
}

html[data-app-theme="dark"] .sidebar-layout .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.72;
}

html[data-app-theme="dark"] .sidebar-theme-control {
  border-top-color: #4a555f;
  background: #323a42;
}

html[data-app-theme="dark"] .sidebar-theme-toggle {
  border-color: #505b65;
  background: #3b444c;
  box-shadow: 0 6px 17px rgba(8, 12, 15, 0.16);
}

/* 科技官网：大面积留白、精准网格、克制品牌色与清晰交互层级。 */
html[data-app-theme="studio"] body.sidebar-layout {
  font-family:
    Inter, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Text",
    "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 92% 2%, rgba(37, 99, 235, 0.085), transparent 27rem),
    radial-gradient(circle at 3% 96%, rgba(14, 165, 164, 0.055), transparent 25rem),
    linear-gradient(145deg, #f8fafc, #f1f5f9);
}

html[data-app-theme="studio"] .sidebar-layout .app-sidebar {
  border-right-color: #e3e8f0 !important;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 8px 0 32px rgba(30, 52, 82, 0.055);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}

html[data-app-theme="studio"] .sidebar-layout .brand-mark {
  border-radius: 12px;
  background: linear-gradient(145deg, #2f7ff0, #1769e0 55%, #0e9f9a);
  box-shadow:
    0 8px 22px rgba(23, 105, 224, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-brand strong {
  color: #111827;
  font-weight: 780;
  letter-spacing: -0.025em;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-user-card {
  border-color: #e2e8f0;
  border-radius: 15px;
  background:
    radial-gradient(circle at 100% 0, rgba(23, 105, 224, 0.08), transparent 7rem),
    linear-gradient(135deg, #ffffff, #f7faff);
  box-shadow: 0 8px 24px rgba(30, 52, 82, 0.06);
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link {
  border-radius: 11px;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link:hover {
  color: #134f9f;
  border-color: transparent;
  background: #f2f6fc;
  transform: translateX(2px);
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link.active {
  color: #0f52b8;
  border-color: #d4e3f8;
  background: linear-gradient(90deg, #eaf3ff, #f5f9ff);
  box-shadow:
    inset 3px 0 0 #1769e0,
    0 5px 16px rgba(23, 105, 224, 0.07);
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="studio"] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme="studio"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: #1769e0;
  border-radius: 9px;
  background: #edf4ff;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .content-panel,
  .purchase-room-picker,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-color: #e2e8f0;
  border-radius: 18px;
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 14px 34px rgba(30, 52, 82, 0.065),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
) {
  color: #fff;
  border-color: #1769e0;
  border-radius: 10px;
  background: #1769e0;
  box-shadow: 0 7px 18px rgba(23, 105, 224, 0.2);
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
):hover {
  color: #fff;
  border-color: #0f52b8;
  background: #0f5dcc;
  box-shadow: 0 9px 22px rgba(23, 105, 224, 0.24);
  transform: translateY(-1px);
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button,
  .mobile-menu-button
) {
  color: #344054;
  border-color: #dce3ec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(30, 52, 82, 0.045);
}

html[data-app-theme="studio"] .sidebar-layout :is(input, select, textarea, .form-control, .form-select) {
  color: #172033;
  border-color: #d9e1eb;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: inset 0 1px 2px rgba(30, 52, 82, 0.025);
}

html[data-app-theme="studio"] .sidebar-layout :is(input, select, textarea):focus {
  border-color: #7aa9ec;
  box-shadow: 0 0 0 3px rgba(23, 105, 224, 0.1);
}

html[data-app-theme="studio"] .sidebar-layout .content-panel:has(.machine-table-rows) {
  border-color: #e2e8f0;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 15px 38px rgba(30, 52, 82, 0.065);
}

html[data-app-theme="studio"] .sidebar-layout .machine-table-rows thead {
  color: #6b778c;
  background: #f6f8fb;
}

html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme="studio"] .sidebar-layout .machine-card-row.is-offline {
  border-color: #e3e9f1;
  background: #fff;
  box-shadow: 0 5px 16px rgba(30, 52, 82, 0.045);
}

html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: #bad1ef;
  background: linear-gradient(90deg, #f2f7ff, #ffffff);
  box-shadow: 0 11px 26px rgba(23, 105, 224, 0.09);
}

html[data-app-theme="studio"] .sidebar-layout .machine-card-symbol {
  color: #1769e0;
  border-color: #d2e2f8;
  border-radius: 11px;
  background: linear-gradient(145deg, #edf4ff, #e9f8f6);
}

html[data-app-theme="studio"] .sidebar-layout .purchase-page-intro {
  overflow: hidden;
  min-height: 118px;
  border-color: #e1e7ef;
  border-radius: 20px;
  background:
    radial-gradient(circle at 91% 8%, rgba(37, 99, 235, 0.12), transparent 17rem),
    radial-gradient(circle at 76% 120%, rgba(14, 165, 164, 0.09), transparent 16rem),
    linear-gradient(135deg, #ffffff, #f5f9ff);
  box-shadow: 0 16px 40px rgba(30, 52, 82, 0.07);
}

html[data-app-theme="studio"] .sidebar-layout .purchase-page-intro::after {
  width: 150px;
  height: 150px;
  border-color: rgba(23, 105, 224, 0.07);
  box-shadow:
    0 0 0 24px rgba(23, 105, 224, 0.025),
    0 0 0 49px rgba(14, 165, 164, 0.018);
}

html[data-app-theme="studio"] .sidebar-layout .purchase-intro-eyebrow {
  color: #1769e0;
  letter-spacing: 0.12em;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-progress li > span {
  color: #64748b;
  border-color: #dde5ef;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 10px rgba(30, 52, 82, 0.055);
}

html[data-app-theme="studio"] .sidebar-layout .purchase-progress li.active > span {
  color: #fff;
  border-color: #1769e0;
  background: #1769e0;
  box-shadow: 0 7px 17px rgba(23, 105, 224, 0.21);
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker {
  border-color: #e1e7ef;
  background:
    linear-gradient(180deg, #ffffff, #fbfcfe),
    #fff;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  color: #1769e0;
  border-color: #d9e7fa;
  border-radius: 9px;
  background: #edf4ff;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-total {
  color: #087a59;
  border-color: #c9eadf;
  background: #eaf8f3;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option {
  border-color: #e1e7ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(30, 52, 82, 0.055);
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option:hover {
  border-color: #b9d1f2;
  background: #fbfdff;
  box-shadow: 0 12px 28px rgba(23, 105, 224, 0.085);
  transform: translateY(-2px);
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  border-color: #9fc1ef;
  background:
    radial-gradient(circle at 100% 0, rgba(14, 165, 164, 0.07), transparent 8rem),
    linear-gradient(145deg, #ffffff, #f2f7ff);
  box-shadow:
    inset 0 3px 0 #1769e0,
    0 13px 30px rgba(23, 105, 224, 0.1);
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-selected {
  color: #0f52b8;
  border-color: #d5e4f8;
  background: #edf4ff;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-machine-prefix b {
  color: #344054;
  border-color: #dfe5ed;
  background: #f4f6f8;
}

html[data-app-theme="studio"] .sidebar-layout .market-catalog-heading {
  border-color: #e2e8f0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 6px 20px rgba(30, 52, 82, 0.04);
}

html[data-app-theme="studio"] .sidebar-layout .market-available-total.has-stock {
  color: #087a59;
  border-color: #c9eadf;
  background: #eaf8f3;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card {
  border-color: #e1e7ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(30, 52, 82, 0.065);
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card:hover,
html[data-app-theme="studio"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: #bed3ef;
  background: #fff;
  box-shadow: 0 18px 42px rgba(23, 105, 224, 0.09);
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list {
  border-color: #e6ebf1;
  border-radius: 13px;
  background: #f7f9fb;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list > div {
  border-color: #e4e9f0;
}

html[data-app-theme="studio"] .sidebar-layout :is(.hardware-mark, .purchase-plan-icon) {
  color: #1769e0;
  border-color: #dce8f8;
  background: #edf4ff;
}

html[data-app-theme="studio"] .sidebar-layout .market-recommend {
  color: #c45318;
  border-color: #ffd9c2;
  background: #fff2e9;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-footer {
  border-top-color: #e7ebf1;
  background: #fbfcfe;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-selector {
  gap: 4px;
  padding: 4px;
  border: 1px solid #e1e7ef;
  border-radius: 14px;
  background: #eef2f7;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option {
  border-color: transparent;
  border-radius: 10px;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, 0.65);
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active {
  border-color: #d6e1ef;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(30, 52, 82, 0.05),
    0 5px 14px rgba(30, 52, 82, 0.08);
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active::after {
  background: #1769e0;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading strong {
  color: #0f52b8;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  color: #315f9d;
  background: #edf4ff;
}

html[data-app-theme="studio"] .sidebar-layout .market-action-stock {
  border-color: #dfe7ef;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(30, 52, 82, 0.045);
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  color: #fff;
  min-height: 62px;
  border-color: #1769e0;
  border-radius: 13px;
  background: linear-gradient(115deg, #2374e8, #1769e0 62%, #0f52b8);
  box-shadow:
    0 10px 24px rgba(23, 105, 224, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):hover {
  color: #fff;
  border-color: #0f52b8;
  background: linear-gradient(115deg, #1769e0, #0f52b8);
  box-shadow:
    0 13px 29px rgba(23, 105, 224, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) > svg {
  width: 27px;
  height: 27px;
  padding: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .account-hero,
  .patrol-header
) {
  border-color: #e1e7ef;
  border-radius: 20px;
  background:
    radial-gradient(circle at 93% 4%, rgba(23, 105, 224, 0.1), transparent 18rem),
    radial-gradient(circle at 4% 100%, rgba(14, 165, 164, 0.065), transparent 18rem),
    linear-gradient(135deg, #ffffff, #f5f9ff);
  box-shadow: 0 16px 40px rgba(30, 52, 82, 0.07);
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .account-profile-group,
  .account-profile-row,
  .promotion-heading-badges > *,
  .promotion-balance-stat,
  .promotion-fee-summary
) {
  border-color: #e2e8f0;
  background: #f8fafc;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .promotion-ledger-table thead,
  .batch-renewal-table thead,
  .batch-refund-table thead
) {
  color: #6b778c;
  background: #f5f7fa;
}

html[data-app-theme="studio"] .sidebar-layout .patrol-card {
  border-color: #e1e7ef;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(30, 52, 82, 0.06);
}

html[data-app-theme="studio"] .sidebar-layout .patrol-card:hover {
  border-color: #b8d0ef;
  box-shadow: 0 14px 31px rgba(23, 105, 224, 0.1);
  transform: translateY(-2px);
}

html[data-app-theme="studio"] .sidebar-layout .support-inbox {
  border-right-color: #e2e8f0;
  background: #f8fafc;
}

html[data-app-theme="studio"] .sidebar-layout .support-chat-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(23, 105, 224, 0.055), transparent 34%),
    radial-gradient(circle at 0 100%, rgba(14, 165, 164, 0.04), transparent 36%),
    #fbfcfe;
}

html[data-app-theme="studio"] .sidebar-layout .support-conversation:hover,
html[data-app-theme="studio"] .sidebar-layout .support-conversation.active {
  border-color: #c7d9ef;
  background: linear-gradient(125deg, #edf4ff, #f8fbff);
}

html[data-app-theme="studio"] .sidebar-layout .support-conversation.active {
  box-shadow:
    inset 3px 0 0 #1769e0,
    0 6px 17px rgba(23, 105, 224, 0.07);
}

html[data-app-theme="studio"] .sidebar-layout .modal-content {
  border-color: #dfe5ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 28px 78px rgba(30, 52, 82, 0.18);
}

html[data-app-theme="studio"] .sidebar-layout .modal-header {
  border-bottom-color: #e7ebf1;
  background: #fbfcfe;
}

html[data-app-theme="studio"] .sidebar-theme-control {
  border-top-color: #e4e9f0;
  background: rgba(248, 250, 252, 0.96);
}

html[data-app-theme="studio"] .sidebar-theme-toggle {
  border-color: #dfe5ed;
  background: #fff;
  box-shadow: 0 6px 17px rgba(30, 52, 82, 0.055);
}

/* 科技官网最终收敛：去掉装饰性渐变，只保留灰阶、留白与单一品牌蓝。 */
html[data-app-theme="studio"] body.sidebar-layout {
  background: #f5f6f8;
}

html[data-app-theme="studio"] .sidebar-layout .app-sidebar {
  border-right-color: #e5e7eb !important;
  background: #fff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

html[data-app-theme="studio"] .sidebar-layout .brand-mark {
  background: #1769e0;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-user-card {
  border-color: #e5e7eb;
  background: #f7f8fa;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link:hover {
  color: #172033;
  border-color: transparent;
  background: #f4f5f7;
  transform: none;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link.active {
  color: #1257bc;
  border-color: #dbe6f6;
  background: #eef4fc;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="studio"] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme="studio"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: #1769e0;
  background: #edf3fb;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .content-panel,
  .purchase-room-picker,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-color: #e4e7eb;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 1px 2px rgba(17, 24, 39, 0.025);
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
) {
  border-color: #1769e0;
  background: #1769e0;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .btn-brand,
  .market-select-button.primary,
  .machine-connect-button,
  .account-phone-action,
  .patrol-layout-button.active,
  .account-application-action
):hover {
  border-color: #0f57bd;
  background: #0f57bd;
  box-shadow: none;
  transform: none;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button,
  .mobile-menu-button
) {
  border-color: #e0e3e7;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .content-panel:has(.machine-table-rows) {
  border-color: #e4e7eb;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme="studio"] .sidebar-layout .machine-card-row.is-offline {
  border-color: #e6e8ec;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: #c9d9ee;
  background: #f7f9fc;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .machine-card-symbol {
  border-color: #dce5f1;
  background: #f0f4f9;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-page-intro {
  min-height: 112px;
  border-color: #e4e7eb;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-page-intro::after {
  display: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-intro-eyebrow {
  color: #68748a;
  letter-spacing: 0.08em;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-intro-eyebrow i {
  background: #1769e0;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-progress li > span {
  border-color: #e2e5e9;
  background: #f7f8fa;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-progress li.active > span {
  border-color: #1769e0;
  background: #1769e0;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker {
  border-color: #e4e7eb;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  color: #4b5565;
  border-color: #e3e6ea;
  background: #f3f4f6;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option {
  border-color: #e3e6ea;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option:hover {
  border-color: #c8d5e6;
  background: #fafbfc;
  box-shadow: none;
  transform: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  border-color: #9fbee7;
  background: #f7faff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-selected {
  color: #1257bc;
  border-color: #d6e2f2;
  background: #edf3fb;
}

html[data-app-theme="studio"] .sidebar-layout .market-catalog-heading {
  border-color: #e4e7eb;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card {
  border-color: #e3e6ea;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card:hover,
html[data-app-theme="studio"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: #c8d5e6;
  background: #fff;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.055);
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list {
  border-color: #e5e7eb;
  background: #f7f8fa;
}

html[data-app-theme="studio"] .sidebar-layout :is(.hardware-mark, .purchase-plan-icon) {
  color: #4b5c72;
  border-color: #e0e4e9;
  background: #f0f2f5;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-footer {
  border-top-color: #e7e9ed;
  background: #fafbfc;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-selector {
  border-color: #e1e4e8;
  background: #f0f2f5;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option:hover {
  background: rgba(255, 255, 255, 0.58);
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active {
  border-color: #dce1e7;
  background: #fff;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

html[data-app-theme="studio"] .sidebar-layout .market-action-stock {
  border-color: #e1e5ea;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  border-color: #1769e0;
  background: #1769e0;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):hover {
  border-color: #0f57bd;
  background: #0f57bd;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout :is(.account-hero, .patrol-header) {
  border-color: #e4e7eb;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .account-profile-group,
  .account-profile-row,
  .promotion-heading-badges > *,
  .promotion-balance-stat,
  .promotion-fee-summary
) {
  border-color: #e4e7eb;
  background: #f7f8fa;
}

html[data-app-theme="studio"] .sidebar-layout .patrol-card {
  border-color: #e3e6ea;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .patrol-card:hover {
  border-color: #c8d5e6;
  box-shadow: 0 7px 20px rgba(17, 24, 39, 0.055);
  transform: none;
}

html[data-app-theme="studio"] .sidebar-layout .support-chat-panel {
  background: #f7f8fa;
}

html[data-app-theme="studio"] .sidebar-layout .support-conversation:hover,
html[data-app-theme="studio"] .sidebar-layout .support-conversation.active {
  border-color: #d2dce8;
  background: #f1f5fa;
}

html[data-app-theme="studio"] .sidebar-layout .support-conversation.active {
  box-shadow: inset 3px 0 0 #1769e0;
}

html[data-app-theme="studio"] .sidebar-layout .modal-content {
  border-color: #e0e3e7;
  background: #fff;
  box-shadow: 0 24px 65px rgba(17, 24, 39, 0.16);
}

html[data-app-theme="studio"] .sidebar-layout .modal-header {
  border-bottom-color: #e7e9ed;
  background: #fafbfc;
}

html[data-app-theme="studio"] .sidebar-theme-control {
  border-top-color: #e5e7eb;
  background: #fafbfc;
}

html[data-app-theme="studio"] .sidebar-theme-toggle {
  border-color: #e1e4e8;
  background: #fff;
  box-shadow: none;
}

/* 大厂极简：减少“卡片套卡片”，用排版、留白和分隔线建立层级。 */
html[data-app-theme="studio"] .sidebar-layout .content-container {
  width: 100%;
  max-width: 1480px;
  margin-right: auto;
  margin-left: auto;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-user-card {
  border-color: transparent;
  border-radius: 10px;
  background: #f5f5f7;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="studio"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link.active .sidebar-link-icon {
  background: #e4edf9;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-page-intro {
  min-height: 104px;
  margin-bottom: 1.25rem;
  padding: 0.75rem 0.2rem 1.2rem;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-intro-copy h1 {
  color: #111827;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 720;
  letter-spacing: -0.04em;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-intro-copy p {
  max-width: 650px;
  color: #6b7280;
  font-size: 0.84rem;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-progress li > span {
  border: 0;
  background: #eceef1;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-progress li.active > span {
  background: #1769e0;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker {
  padding: 0.35rem 0 0.85rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-total {
  padding-right: 0;
  padding-left: 0;
  color: #596579;
  border: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option {
  min-height: 150px;
  border-color: #e2e4e8;
  border-radius: 12px;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  border-color: #8eb1df;
  background: #fbfcfe;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-card-name {
  color: #151b26;
  font-size: 1rem;
  font-weight: 700;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .purchase-room-region,
  .purchase-room-card-description,
  .purchase-room-plans
) {
  font-size: 0.68rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-catalog-heading {
  margin-top: 0.55rem;
  padding: 0.8rem 0;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  width: auto;
  min-width: 0;
  padding: 0;
  color: #8a929f;
  border: 0;
  background: transparent;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card {
  border-radius: 13px;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card:hover,
html[data-app-theme="studio"] .sidebar-layout .market-plan-card.market-plan-featured {
  border-color: #ccd3dc;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.045);
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-identity h2 {
  color: #151b26;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-identity > small {
  font-size: 0.66rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list {
  border-radius: 10px;
  background: #fafafa;
}

html[data-app-theme="studio"] .sidebar-layout :is(.hardware-mark, .purchase-plan-icon) {
  color: #4b5563;
  border-color: #e5e7eb;
  background: #f3f4f6;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-footer {
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .market-pricing-title strong {
  color: #374151;
  font-size: 0.74rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-selector {
  background: #f1f2f4;
}

html[data-app-theme="studio"] .sidebar-layout .duration-option-heading strong {
  font-size: 0.74rem;
}

html[data-app-theme="studio"] .sidebar-layout .duration-option-heading em {
  font-size: 0.54rem;
}

html[data-app-theme="studio"] .sidebar-layout .duration-option-amount b {
  font-size: 1.18rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-action-stock {
  padding-right: 0.15rem;
  padding-left: 0.15rem;
  border: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  min-height: 60px;
  border-radius: 10px;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-button-label strong {
  font-size: 0.86rem;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-button-label small,
html[data-app-theme="studio"] .sidebar-layout .purchase-button-price small {
  font-size: 0.54rem;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-help-strip {
  border: 0;
  border-top: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout :is(.account-hero, .patrol-header) {
  padding-right: 0.25rem;
  padding-left: 0.25rem;
  border: 0;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border-radius: 12px;
}

html[data-app-theme="studio"] .sidebar-layout .modal-content {
  border-radius: 14px;
}

/* 系统设置：像移动系统设置页一样，以浅灰底和白色分组承载内容。 */
html[data-app-theme="studio"] body.sidebar-layout {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI Variable Text", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #1c1c1e;
  background: #f2f2f7;
}

html[data-app-theme="studio"] .sidebar-layout .app-sidebar {
  border-right-color: #d9d9de !important;
  background: #f7f7fa;
}

html[data-app-theme="studio"] .sidebar-layout .brand-mark {
  color: #fff;
  border-radius: 10px;
  background: #636366;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-brand strong,
html[data-app-theme="studio"] .sidebar-layout :is(.sidebar-account strong, .sidebar-link) {
  color: #1c1c1e;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .sidebar-brand small,
  .sidebar-account small,
  .sidebar-label,
  .sidebar-link small
) {
  color: #8e8e93;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-user-card {
  border: 0;
  border-radius: 12px;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link {
  border: 0;
  border-radius: 10px;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link:hover {
  color: #1c1c1e;
  background: #ececef;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link.active {
  color: #1c1c1e;
  border: 0;
  background: #e4e4e8;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link.active > i {
  background: #8e8e93;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .sidebar-link-icon,
html[data-app-theme="studio"] .sidebar-layout .sidebar-link.active .sidebar-link-icon,
html[data-app-theme="studio"] .sidebar-layout .sidebar-section-remote .sidebar-link-icon {
  color: #636366;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .content-container {
  max-width: 1400px;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .content-panel,
  .market-plan-card,
  .promotion-stat-card,
  .promotion-wallet-card,
  .promotion-ledger-panel,
  .promotion-share-panel,
  .account-panel,
  .account-stat,
  .patrol-page,
  .patrol-toolbar,
  .patrol-monitor,
  .support-workspace
) {
  border: 0;
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .btn-soft,
  .patrol-tool-button,
  .machine-more-button,
  .mobile-menu-button
) {
  color: #1c1c1e;
  border-color: #d1d1d6;
  border-radius: 9px;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout :is(input, select, textarea, .form-control, .form-select) {
  color: #1c1c1e;
  border-color: #d1d1d6;
  border-radius: 9px;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout :is(input, select, textarea):focus {
  border-color: #a9a9ae;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.09);
}

html[data-app-theme="studio"] .sidebar-layout .content-panel:has(.machine-table-rows) {
  border: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .machine-table-rows thead {
  color: #8e8e93;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr,
html[data-app-theme="studio"] .sidebar-layout .machine-card-row.is-offline {
  border-color: #e5e5ea;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr:hover,
html[data-app-theme="studio"] .sidebar-layout .machine-table-rows tbody tr.row-selected {
  border-color: #d1d1d6;
  background: #fafafa;
}

html[data-app-theme="studio"] .sidebar-layout .machine-card-symbol {
  color: #636366;
  border: 0;
  background: #f2f2f7;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-page-intro {
  border-bottom-color: #dcdce0;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-intro-eyebrow {
  display: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-intro-copy h1 {
  color: #1c1c1e;
  font-weight: 700;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-intro-copy p,
html[data-app-theme="studio"] .sidebar-layout :is(
  .purchase-progress small,
  .purchase-room-region,
  .purchase-room-card-description,
  .purchase-room-plans,
  .market-catalog-heading p,
  .market-plan-identity > small,
  .market-pricing-title small,
  .duration-option-heading em,
  .duration-option-amount em
) {
  color: #8e8e93;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-progress li > span {
  color: #636366;
  background: #e5e5ea;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-progress li.active > span {
  color: #fff;
  background: #636366;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker {
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .purchase-section-title > span,
  .purchase-catalog-title > span
) {
  display: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-total {
  color: #8e8e93 !important;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-total b {
  color: #3a3a3c !important;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option {
  border: 0;
  border-radius: 13px;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option:hover {
  border: 0;
  background: #fafafa;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-picker .purchase-room-track .server-room-option.active {
  border: 1px solid #b8b8bd;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-selected {
  color: #3a3a3c;
  border: 0;
  background: #e9e9ed;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-room-machine-prefix b,
html[data-app-theme="studio"] .sidebar-layout :is(.hardware-mark, .purchase-plan-icon) {
  color: #636366 !important;
  border: 0 !important;
  background: #f2f2f7 !important;
}

html[data-app-theme="studio"] .sidebar-layout .market-catalog-heading {
  border-bottom-color: #dcdce0;
}

html[data-app-theme="studio"] .sidebar-layout .market-catalog-heading h2 span,
html[data-app-theme="studio"] .sidebar-layout .market-plan-count b {
  color: #1c1c1e !important;
}

html[data-app-theme="studio"] .sidebar-layout .market-available-total.has-stock {
  color: #636366;
  border: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .market-available-total.has-stock b {
  color: #1c1c1e;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card {
  border: 0;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card:hover,
html[data-app-theme="studio"] .sidebar-layout .market-plan-card.market-plan-featured {
  border: 0;
  background: #fff;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-recommend {
  color: #636366;
  border: 0;
  background: #e9e9ed;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list {
  border: 0;
  background: #f2f2f7;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list > div {
  border-color: #dcdce0;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-footer {
  border-top-color: #e5e5ea;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-selector {
  border: 0;
  border-radius: 11px;
  background: #e5e5ea;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option {
  border: 0;
  border-radius: 8px;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option:hover {
  border: 0;
  background: rgba(255, 255, 255, 0.5);
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active {
  border: 0;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active::after {
  color: #fff;
  background: #636366;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading strong,
html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  color: #1c1c1e;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  background: #f2f2f7;
}

html[data-app-theme="studio"] .sidebar-layout .market-action-stock {
  color: #636366;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  border-color: #007aff;
  border-radius: 10px;
  background: #007aff;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):hover {
  border-color: #0066d6;
  background: #006ee6;
}

html[data-app-theme="studio"] .sidebar-layout :is(.account-hero, .patrol-header) {
  border-bottom-color: #dcdce0;
}

html[data-app-theme="studio"] .sidebar-layout :is(
  .account-profile-group,
  .account-profile-row,
  .promotion-heading-badges > *,
  .promotion-balance-stat,
  .promotion-fee-summary
) {
  border-color: #e5e5ea;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .patrol-card {
  border: 0;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .support-inbox {
  border-right-color: #dcdce0;
  background: #f7f7fa;
}

html[data-app-theme="studio"] .sidebar-layout .support-chat-panel {
  background: #f2f2f7;
}

html[data-app-theme="studio"] .sidebar-layout .support-conversation:hover,
html[data-app-theme="studio"] .sidebar-layout .support-conversation.active {
  border-color: transparent;
  background: #e9e9ed;
}

html[data-app-theme="studio"] .sidebar-layout .support-conversation.active {
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .modal-content {
  border: 0;
  border-radius: 14px;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .modal-header {
  border-bottom-color: #e5e5ea;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-theme-control {
  border-top-color: #dcdce0;
  background: #f7f7fa;
}

html[data-app-theme="studio"] .sidebar-theme-toggle {
  border: 0;
  border-radius: 11px;
  background: #fff;
}

/* 系统设置主题：套餐与购买操作使用更纯粹的分组结构。 */
html[data-app-theme="studio"] .sidebar-layout .market-plan-card {
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-card:hover,
html[data-app-theme="studio"] .sidebar-layout .market-plan-card.market-plan-featured {
  border: 0;
  background: #fff;
  box-shadow: none;
  transform: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-top {
  gap: 0;
  padding: 1.08rem 1.15rem 0.9rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-top > .purchase-plan-icon {
  display: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-identity h2 {
  margin-top: 0.24rem;
  color: #1c1c1e;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-identity > small {
  color: #8e8e93;
  font-size: 0.64rem;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-plan-room {
  color: #636366;
}

html[data-app-theme="studio"] .sidebar-layout .market-recommend {
  padding: 0.16rem 0.4rem;
  color: #636366;
  border: 0;
  border-radius: 999px;
  background: #e9e9ed;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list {
  gap: 0;
  margin: 0 1.15rem;
  padding: 0.68rem 0.24rem;
  border: 0;
  border-radius: 11px;
  background: #f2f2f7;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list > div {
  min-height: 48px;
  padding: 0 0.72rem;
  border-right: 1px solid #dcdce0;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list > div:last-child {
  border-right: 0;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list dt {
  color: #8e8e93;
}

html[data-app-theme="studio"] .sidebar-layout .market-spec-grid.hardware-list dd {
  color: #1c1c1e;
  font-size: 0.76rem;
  font-weight: 650;
}

html[data-app-theme="studio"] .sidebar-layout .market-plan-footer {
  gap: 1rem;
  margin: 0;
  padding: 1rem 1.15rem 1.12rem;
  border: 0;
  background: #fff;
}

html[data-app-theme="studio"] .sidebar-layout .market-pricing-title {
  margin-bottom: 0.48rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-pricing-title strong {
  color: #3a3a3c;
  font-size: 0.72rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-pricing-title small {
  color: #8e8e93;
  font-size: 0.57rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-selector {
  gap: 3px;
  padding: 3px;
  border: 0;
  border-radius: 10px;
  background: #e5e5ea;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option {
  min-height: 66px;
  padding: 0.5rem 0.58rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option:hover {
  border: 0;
  background: rgba(255, 255, 255, 0.46);
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active,
html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active:hover {
  border: 0;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 2px 5px rgba(0, 0, 0, 0.045);
}

html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active::after {
  display: none;
}

html[data-app-theme="studio"] .sidebar-layout .duration-option-heading strong,
html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading strong {
  color: #1c1c1e;
  font-size: 0.72rem;
}

html[data-app-theme="studio"] .sidebar-layout .duration-option-heading em,
html[data-app-theme="studio"] .sidebar-layout .market-duration-area .duration-option.active .duration-option-heading em {
  color: #8e8e93;
  background: transparent;
  font-size: 0.53rem;
}

html[data-app-theme="studio"] .sidebar-layout .duration-option-amount b {
  color: #1c1c1e;
  font-size: 1.12rem;
  font-weight: 720;
}

html[data-app-theme="studio"] .sidebar-layout .duration-option-amount :is(small, em) {
  color: #8e8e93;
}

html[data-app-theme="studio"] .sidebar-layout .market-action-area {
  align-content: end;
  gap: 0.38rem;
}

html[data-app-theme="studio"] .sidebar-layout .market-action-stock {
  min-height: 25px;
  padding: 0 0.1rem;
  color: #8e8e93;
  border: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .market-action-stock strong {
  color: #636366;
}

html[data-app-theme="studio"] .sidebar-layout .market-action-stock b {
  color: #1c1c1e;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled) {
  min-height: 54px;
  grid-template-columns: minmax(90px, 1fr) auto 16px;
  gap: 0.55rem;
  padding: 0.55rem 0.76rem 0.55rem 0.95rem;
  color: #007aff;
  border: 0;
  border-radius: 11px;
  background: #f2f2f7;
  box-shadow: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):hover {
  color: #0066d6;
  border: 0;
  background: #e9e9ed;
  box-shadow: none;
  transform: none;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button:not(:disabled):active {
  background: #dedee3;
  transform: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-button-label {
  display: block;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-button-label strong {
  color: #007aff;
  font-size: 0.82rem;
  font-weight: 650;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-button-label small,
html[data-app-theme="studio"] .sidebar-layout .purchase-button-price small {
  display: none;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-button-price {
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

html[data-app-theme="studio"] .sidebar-layout .purchase-button-price strong,
html[data-app-theme="studio"] .sidebar-layout .purchase-button-price strong b {
  color: #007aff;
  font-size: 0.88rem;
  font-weight: 650;
}

html[data-app-theme="studio"] .sidebar-layout .market-select-button.purchase-now-button > svg {
  width: 15px;
  height: 15px;
  padding: 0;
  color: #8e8e93;
  background: transparent;
}

/* Theme chooser */
.sidebar-theme-control {
  position: relative;
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem 0.78rem;
  border-top: 1px solid var(--theme-border, #e3e8e6);
  background: color-mix(in srgb, var(--theme-sidebar-bottom, #f7faf9) 90%, white);
}

.sidebar-theme-toggle {
  display: grid;
  width: 100%;
  min-height: 48px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.62rem;
  padding: 0.45rem 0.58rem;
  color: var(--theme-text, #34423e);
  border: 1px solid var(--theme-border, #dde8e4);
  border-radius: 12px;
  background: var(--theme-panel, #fff);
  text-align: left;
  box-shadow: 0 5px 14px var(--theme-shadow, rgba(40, 70, 62, 0.06));
}

.sidebar-theme-toggle:hover,
.theme-panel-open .sidebar-theme-toggle {
  border-color: var(--theme-border-strong);
  background: var(--theme-soft);
}

.sidebar-theme-toggle-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--theme-primary);
  border-radius: 10px;
  background: var(--theme-soft);
}

.sidebar-theme-toggle svg,
.sidebar-theme-panel-head svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.sidebar-theme-toggle > span:nth-child(2) {
  display: grid;
  gap: 0.05rem;
}

.sidebar-theme-toggle strong {
  font-size: 0.72rem;
}

.sidebar-theme-toggle small {
  color: var(--theme-muted);
  font-size: 0.62rem;
}

.sidebar-theme-toggle > i {
  width: 8px;
  height: 8px;
  border: 2px solid var(--theme-primary);
  border-top: 0;
  border-left: 0;
  transform: rotate(45deg) translateY(-2px);
}

.theme-panel-open .sidebar-theme-toggle > i {
  transform: rotate(225deg) translate(-2px, -2px);
}

.sidebar-theme-panel {
  position: absolute;
  z-index: 1080;
  right: 0.85rem;
  bottom: calc(100% + 0.35rem);
  left: 0.85rem;
  overflow: hidden;
  max-height: min(620px, calc(100vh - 1.5rem));
  border: 1px solid var(--theme-border);
  border-radius: 16px;
  background: var(--theme-panel);
  box-shadow: 0 18px 48px rgba(25, 38, 34, 0.2);
  animation: theme-panel-in 150ms ease-out;
}

.sidebar-theme-panel[hidden] {
  display: none;
}

.sidebar-theme-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0.78rem 0.82rem 0.62rem;
  border-bottom: 1px solid var(--theme-border);
}

.sidebar-theme-panel-head > span {
  display: grid;
}

.sidebar-theme-panel-head strong {
  color: var(--theme-text);
  font-size: 0.78rem;
}

.sidebar-theme-panel-head small {
  color: var(--theme-muted);
  font-size: 0.6rem;
}

.sidebar-theme-panel-head button {
  display: grid;
  width: 29px;
  height: 29px;
  padding: 0;
  place-items: center;
  color: var(--theme-muted);
  border: 1px solid var(--theme-border);
  border-radius: 9px;
  background: var(--theme-canvas-alt);
}

.sidebar-theme-options {
  display: grid;
  gap: 0.32rem;
  overflow-y: auto;
  padding: 0.48rem;
}

.sidebar-theme-options > button {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 0.58rem;
  padding: 0.46rem;
  color: var(--theme-text);
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  text-align: left;
}

.sidebar-theme-options > button:hover {
  background: var(--theme-canvas-alt);
}

.sidebar-theme-options > button.is-active {
  color: var(--theme-primary-strong);
  border-color: var(--theme-border-strong);
  background: var(--theme-soft);
}

.sidebar-theme-options > button > span:nth-child(2) {
  display: grid;
}

.sidebar-theme-options strong {
  font-size: 0.7rem;
}

.sidebar-theme-options small {
  color: #879097;
  font-size: 0.58rem;
}

.sidebar-theme-options b {
  visibility: hidden;
  color: var(--theme-primary);
  font-size: 0.72rem;
}

.sidebar-theme-options .is-active b {
  visibility: visible;
}

.theme-preview {
  display: grid;
  width: 42px;
  height: 32px;
  grid-template-columns: 12px 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  padding: 4px;
  border: 1px solid rgba(80, 90, 100, 0.12);
  border-radius: 9px;
  background: #fff;
}

.theme-preview i {
  border-radius: 3px;
}

.theme-preview i:first-child {
  grid-row: 1 / -1;
}

.theme-preview.is-fresh i:first-child { background: linear-gradient(180deg, #22d3ee, #0ea5e9); }
.theme-preview.is-fresh i:nth-child(2) { background: #bff4df; }
.theme-preview.is-fresh i:nth-child(3) { background: #fff0e6; }
.theme-preview.is-mint i:first-child { background: #2f8573; }
.theme-preview.is-mint i:nth-child(2) { background: #d9eee7; }
.theme-preview.is-mint i:nth-child(3) { background: #f3f9f7; }
.theme-preview.is-sky i:first-child { background: #3978b9; }
.theme-preview.is-sky i:nth-child(2) { background: #dbeaf8; }
.theme-preview.is-sky i:nth-child(3) { background: #f2f7fc; }
.theme-preview.is-warm i:first-child { background: #b56b3d; }
.theme-preview.is-warm i:nth-child(2) { background: #fbe1cf; }
.theme-preview.is-warm i:nth-child(3) { background: #fbf7f3; }
.theme-preview.is-mono i:first-child { background: #46505b; }
.theme-preview.is-mono i:nth-child(2) { background: #dfe3e7; }
.theme-preview.is-mono i:nth-child(3) { background: #f4f5f6; }
.theme-preview.is-google i:first-child { background: #4285f4; }
.theme-preview.is-google i:nth-child(2) {
  background: linear-gradient(135deg, #ea4335 0 50%, #fbbc04 50%);
}
.theme-preview.is-google i:nth-child(3) {
  background: linear-gradient(135deg, #34a853 0 45%, #f8fafd 45%);
}
.theme-preview.is-macos {
  background:
    radial-gradient(circle at 85% 10%, rgba(255, 255, 255, 0.9), transparent 50%),
    #e9eaed;
}
.theme-preview.is-macos i:first-child {
  background: linear-gradient(180deg, #8e8e93, #48484a);
}
.theme-preview.is-macos i:nth-child(2) {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.12);
}
.theme-preview.is-macos i:nth-child(3) {
  background: linear-gradient(135deg, #f7f7f8, #dfe1e5);
}
.theme-preview.is-dark {
  border-color: #59646e;
  background: #343c44;
}
.theme-preview.is-dark i:first-child {
  background: linear-gradient(180deg, #444e57, #353e46);
}
.theme-preview.is-dark i:nth-child(2) {
  background: #78b9aa;
}
.theme-preview.is-dark i:nth-child(3) {
  background: #3e474f;
  box-shadow: inset 0 0 0 1px #56616b;
}
.theme-preview.is-studio {
  border-color: #d1d1d6;
  background: #f2f2f7;
}
.theme-preview.is-studio i:first-child {
  background: #636366;
}
.theme-preview.is-studio i:nth-child(2) {
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #d1d1d6;
}
.theme-preview.is-studio i:nth-child(3) {
  background: #e5e5ea;
}

@keyframes theme-panel-in {
  from {
    opacity: 0;
    transform: translateY(7px) scale(0.98);
  }
}

@media (max-width: 991.98px) {
  html[data-app-theme] body.sidebar-layout {
    background:
      radial-gradient(circle at 100% 0, var(--theme-ambient-two), transparent 21rem),
      var(--theme-canvas);
  }
}

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