:root {
  color-scheme: light;
  --ink: #17191f;
  --muted: #6f7380;
  --line: #e5e7ec;
  --panel: rgba(255,255,255,.94);
  --bg: #f5f6f8;
  --purple: #6847f5;
  --purple-2: #8a6bff;
  --purple-soft: #f0ecff;
  --danger: #d9384b;
  --danger-soft: #fff0f2;
  --success: #16815e;
  --shadow: 0 18px 45px rgba(35, 31, 55, .08);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: radial-gradient(circle at 8% 2%, #eeeaff 0, transparent 27rem), radial-gradient(circle at 93% 12%, #e9f3ff 0, transparent 24rem), var(--bg); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.topbar { height: 70px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.82); border-bottom: 1px solid rgba(216,218,225,.9); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand strong { display: block; font-size: 16px; letter-spacing: .01em; }
.brand small { display: block; margin-top: 3px; color: #8a8e99; font-size: 9px; letter-spacing: .18em; }
.shell { width: min(1500px, calc(100% - 48px)); margin: 0 auto; padding: 42px 0 72px; }
.hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 8px 8px 34px; }
.eyebrow { color: var(--purple); font-size: 10px; font-weight: 800; letter-spacing: .2em; }
.hero h1 { margin: 10px 0 9px; font-size: clamp(28px, 4vw, 45px); letter-spacing: -.045em; line-height: 1.12; }
.hero p { max-width: 780px; margin: 0; color: var(--muted); line-height: 1.7; }
.hero-badge { flex: 0 0 auto; min-width: 174px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.72); padding: 14px 17px; box-shadow: var(--shadow); }
.hero-badge span { color: var(--success); font-weight: 800; font-size: 10px; letter-spacing: .16em; }.hero-badge strong,.hero-badge small { display: block; }.hero-badge strong { margin: 4px 0; font-family: ui-monospace, monospace; font-size: 16px; }.hero-badge small { color: var(--muted); font-size: 11px; }
.card { background: var(--panel); border: 1px solid rgba(222,224,231,.95); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.card + .card { margin-top: 20px; }
.card-head { min-height: 84px; display: flex; align-items: center; gap: 15px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.card-head h2,.quota-head h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }.card-head p,.quota-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.step-no { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: #191b22; color: #fff; font-size: 12px; font-weight: 800; }
.identity-badge { margin-left: auto; border: 1px solid #d8d0ff; background: var(--purple-soft); color: #5135c9; padding: 8px 12px; border-radius: 10px; font-size: 12px; }
.credential-layout { display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(320px, 1fr); gap: 22px; padding: 24px; }
label > span { display: block; margin-bottom: 8px; color: #4d505a; font-size: 12px; font-weight: 700; }
textarea,input,select { width: 100%; border: 1px solid #d9dbe2; background: #fff; color: var(--ink); border-radius: 10px; outline: none; transition: .18s ease; }
textarea:focus,input:focus,select:focus { border-color: var(--purple-2); box-shadow: 0 0 0 3px rgba(104,71,245,.11); }
textarea { min-height: 153px; resize: vertical; padding: 13px; font: 12px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
input,select { height: 42px; padding: 0 12px; }
.bundle-field small { display: block; min-height: 17px; margin-top: 7px; color: #8b8e98; font-size: 11px; }.bundle-field small.ok { color: var(--success); }.bundle-field small.bad { color: var(--danger); }
.credential-fields { display: grid; gap: 13px; }
.form-actions { border-top: 1px solid var(--line); padding: 16px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: #fafafd; }
.security-note { color: var(--muted); font-size: 12px; }.security-note i { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 5px; border-radius: 50%; color: var(--success); background: #e2f7ef; font-style: normal; font-weight: 800; }
.button { border: 0; height: 42px; padding: 0 17px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-weight: 750; font-size: 13px; transition: transform .15s, opacity .15s, box-shadow .15s; }.button:hover:not(:disabled) { transform: translateY(-1px); }.button:disabled { cursor: not-allowed; opacity: .45; }
.button.primary { color: #fff; background: var(--purple); box-shadow: 0 8px 20px rgba(104,71,245,.25); }.button.secondary { color: #fff; background: #20222a; }.button.ghost { color: #555965; background: #f0f1f4; }.button.danger { color: #fff; background: var(--danger); }.button.small { margin-left: auto; height: 36px; }
.workspace { margin-top: 20px; }
.selectors { padding: 22px 24px 18px; display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 16px; }.selectors .button { min-width: 126px; }
.selection-meta { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 14px 24px; padding: 12px 24px; color: #7a7e89; font-size: 11px; background: #fafafd; }.selection-meta span:not(:last-child)::after { content: ""; display: inline-block; width: 3px; height: 3px; margin-left: 24px; vertical-align: middle; border-radius: 50%; background: #c7c9d0; }
.quota-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; padding: 24px; border-bottom: 1px solid var(--line); }.quota-head h2 { font-size: 27px; margin-top: 6px; }.quota-head p { max-width: 760px; line-height: 1.6; }
.metrics { display: flex; border: 1px solid var(--line); border-radius: 13px; background: #fafafd; }.metrics div { min-width: 116px; padding: 12px 15px; text-align: center; }.metrics div + div { border-left: 1px solid var(--line); }.metrics strong,.metrics span { display: block; }.metrics strong { font-size: 20px; }.metrics span { color: var(--muted); font-size: 10px; margin-top: 3px; }
.table-wrap { overflow: auto; }
table { width: 100%; min-width: 1180px; border-collapse: collapse; table-layout: fixed; }
thead { background: #f2f2f3; } th { padding: 10px 13px; color: #50535b; font-size: 12px; text-align: left; font-weight: 700; } th:nth-child(1){width:13%}th:nth-child(2){width:22%}th:nth-child(3){width:10%}th:nth-child(4){width:13%}th:nth-child(5){width:15%}th:nth-child(6){width:16%}th:nth-child(7){width:11%}
tbody tr { border-top: 1px solid #e8e9ed; transition: background .15s; }tbody tr:hover { background: #faf9ff; }td { padding: 10px 13px; vertical-align: middle; font-size: 12px; }
.model-cell strong { display: block; font-size: 13px; }.model-cell small,.deployment-cell small { display: block; color: #777b86; margin-top: 4px; }.deployment-link { color: #5f42d7; font-weight: 650; overflow-wrap: anywhere; }.state-dot { display: inline-block; width: 6px; height: 6px; margin-right: 5px; background: #2bb284; border-radius: 50%; }.state-dot.updating { background: #e19a26; }
.type-pill { display: inline-flex; align-items: center; min-height: 27px; padding: 0 9px; border: 1px solid #e0e1e6; border-radius: 999px; background: #fff; color: #4d5059; font-size: 11px; }
.quota-numbers { display: flex; align-items: baseline; gap: 3px; font-weight: 650; }.quota-numbers small { color: var(--muted); font-weight: 500; }.quota-bar { display: block; width: 110px; height: 4px; margin-top: 7px; border: 0; border-radius: 99px; overflow: hidden; background: #e2e3e8; appearance: none; }.quota-bar::-webkit-progress-bar { background: #e2e3e8; border-radius: 99px; }.quota-bar::-webkit-progress-value { background: linear-gradient(90deg, var(--purple), #a06cff); border-radius: 99px; }.quota-bar::-moz-progress-bar { background: linear-gradient(90deg, var(--purple), #a06cff); border-radius: 99px; }.unavailable { color: #9a9da5; }
.allocation-editor { display: flex; align-items: center; gap: 6px; }.allocation-editor input { width: 118px; height: 34px; padding: 0 9px; font-variant-numeric: tabular-nums; }.allocation-editor input.is-dirty { border-color: #249d73; background: #f1fcf7; box-shadow: 0 0 0 3px rgba(36,157,115,.10); }.allocation-editor em { min-width: 29px; font-style: normal; color: #5f626c; font-size: 11px; font-weight: 700; }.allocation-meta { margin-top: 4px; color: #8b8e97; font-size: 10px; }
.row-actions { display: flex; gap: 6px; }.row-button { height: 32px; border-radius: 8px; border: 1px solid #dedfe5; background: #fff; padding: 0 10px; font-size: 11px; font-weight: 700; color: #555965; }.row-button.save:not(:disabled) { color: #fff; border-color: var(--purple); background: var(--purple); }.row-button.delete { color: var(--danger); border-color: #f1cbd1; background: #fff8f9; }.row-button:disabled { opacity: .38; cursor: not-allowed; }
.loading-state,.empty-state { padding: 58px 24px; text-align: center; color: var(--muted); }.loading-state { display: flex; justify-content: center; align-items: center; gap: 12px; }.loading-state i { width: 18px; height: 18px; border: 2px solid #d8d2ff; border-top-color: var(--purple); border-radius: 50%; animation: spin .8s linear infinite; }.empty-state div { font-size: 34px; color: #b3a7ef; }.empty-state h3 { margin: 10px 0 4px; color: #484b54; }.empty-state p { margin: 0; font-size: 12px; }
.error-summary { margin: 16px 24px 0; padding: 12px 14px; border: 1px solid #f0d4a7; border-radius: 10px; color: #80520d; background: #fff8ea; font-size: 12px; line-height: 1.55; }
.toast { position: fixed; z-index: 80; right: 26px; top: 86px; max-width: 440px; padding: 12px 16px; color: #fff; background: #272a33; border-radius: 10px; box-shadow: 0 12px 34px rgba(24,25,31,.25); font-size: 13px; opacity: 0; transform: translateY(-8px); pointer-events: none; transition: .2s; }.toast.show { opacity: 1; transform: none; }.toast.error { background: #a92c3b; }.toast.success { background: #147656; }
.delete-dialog,.maximize-dialog { border: 0; border-radius: 18px; padding: 0; box-shadow: 0 28px 90px rgba(24,20,35,.35); }
.delete-dialog { width: min(470px, calc(100% - 32px)); }
.maximize-dialog { width: min(760px, calc(100% - 32px)); max-height: min(82vh, 760px); overflow: auto; }
.delete-dialog::backdrop,.maximize-dialog::backdrop { background: rgba(20,18,28,.55); backdrop-filter: blur(4px); }
.delete-dialog form,.maximize-dialog form { padding: 28px; }
.delete-dialog h2 { margin: 14px 0 8px; }
.delete-dialog p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.delete-dialog code { display: block; margin: 13px 0 18px; padding: 10px; border: 1px solid #f0cbd1; border-radius: 9px; color: #a42535; background: var(--danger-soft); overflow-wrap: anywhere; }
.danger-icon,.maximize-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 900; }
.danger-icon { background: var(--danger); }
.maximize-icon { flex: 0 0 auto; background: linear-gradient(135deg, #e9a64d, #cf7432); font-size: 21px; }
.maximize-dialog-head { display: flex; align-items: flex-start; gap: 14px; }
.maximize-dialog-head > div:last-child { min-width: 0; }
.maximize-dialog-head span { color: #bd671f; font-size: 9px; font-weight: 850; letter-spacing: .15em; }
.maximize-dialog-head h2 { margin: 4px 0 3px; font-size: 22px; }
.maximize-dialog-head p { margin: 0; color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.maximize-summary { margin: 22px 0 9px; color: #4c4f59; font-size: 12px; font-weight: 750; }
.maximize-deployment-list { max-height: min(42vh, 390px); overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: #fafafd; }
.maximize-deployment-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 12px 14px; }
.maximize-deployment-item + .maximize-deployment-item { border-top: 1px solid var(--line); }
.maximize-deployment-item strong,.maximize-deployment-item small { display: block; }
.maximize-deployment-item > div:first-child { min-width: 0; }
.maximize-deployment-item > div:first-child strong { overflow: hidden; color: #383b44; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.maximize-deployment-item small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.maximize-change { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.maximize-change span { color: #777b86; font-size: 11px; }
.maximize-change i { color: #b6a55d; font-style: normal; }
.maximize-change strong { color: #b45c1d; font-size: 12px; }
.maximize-warning { display: flex; gap: 9px; align-items: flex-start; margin-top: 13px; padding: 10px 12px; border: 1px solid #efd9a8; border-radius: 10px; color: #80520d; background: #fff8ea; font-size: 11px; line-height: 1.55; }
.maximize-warning i { flex: 0 0 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d18a2b; font-style: normal; font-weight: 800; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 920px) { .credential-layout { grid-template-columns: 1fr; }.quota-head { align-items: stretch; flex-direction: column; }.metrics { align-self: stretch; }.metrics div { flex: 1; min-width: 0; }.selectors { grid-template-columns: 1fr 1fr; }.selectors .button { grid-column: 1 / -1; }.hero-badge { display: none; } }
@media (max-width: 620px) { .topbar { padding: 0 16px; }.brand small { display: none; }.shell { width: calc(100% - 24px); padding-top: 24px; }.hero { padding-inline: 2px; }.hero h1 { font-size: 29px; }.card-head { padding: 17px; }.credential-layout,.form-actions,.selectors,.quota-head { padding: 17px; }.form-actions { align-items: stretch; flex-direction: column; }.selectors { grid-template-columns: 1fr; }.metrics { width: 100%; }.metrics div { padding: 10px 6px; }.selection-meta span::after { display: none !important; } }
.export-card { overflow: hidden; }
.export-layout { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(300px, 1.25fr) auto; gap: 16px; align-items: center; padding: 22px 24px 24px; border-top: 1px solid var(--line); }
.export-file { min-width: 0; }
.export-file > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.export-file strong { display: block; color: #393c46; font-size: 15px; overflow-wrap: anywhere; }
.export-file small { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.export-model-filter { display: grid; gap: 7px; min-width: 0; }
.export-model-filter > span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.model-picker { position: relative; min-width: 0; }
.model-picker-toggle { width: 100%; min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 1px solid #d9d2e7; border-radius: 10px; color: #393c46; background: #fff; font: inherit; font-size: 12px; text-align: left; cursor: pointer; }
.model-picker-toggle:hover:not(:disabled),.model-picker-toggle[aria-expanded="true"] { border-color: #a995ca; box-shadow: 0 0 0 3px rgba(117, 86, 164, .09); }
.model-picker-toggle > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-picker-toggle b { flex: 0 0 auto; color: var(--purple); font-size: 15px; line-height: 1; transition: transform .18s ease; }
.model-picker-toggle[aria-expanded="true"] b { transform: rotate(180deg); }
.model-picker-menu { position: absolute; z-index: 20; top: calc(100% + 7px); left: 0; right: 0; display: grid; gap: 8px; padding: 10px; border: 1px solid #d9d2e7; border-radius: 12px; background: rgba(255,255,255,.98); box-shadow: 0 16px 34px rgba(63, 45, 92, .16); }
.model-picker-search { width: 100%; min-height: 34px; padding: 0 10px; border: 1px solid #e2ddec; border-radius: 8px; color: #393c46; background: #fbfaff; font: inherit; font-size: 11px; }
.model-picker-all,.model-picker-option { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 7px; border-radius: 7px; color: #4a4654; font-size: 11px; cursor: pointer; }
.model-picker-all { border-bottom: 1px solid #eeeaf4; padding-bottom: 9px; font-weight: 750; }
.model-picker-option:hover,.model-picker-all:hover { background: #f5f1fb; }
.model-picker-all input,.model-picker-option input { flex: 0 0 auto; width: 15px; height: 15px; margin: 0; accent-color: var(--purple); }
.model-picker-option span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-picker-options { display: grid; max-height: 190px; overflow-y: auto; }
.model-picker-empty { padding: 10px 7px; color: var(--muted); font-size: 11px; }
.model-picker-menu > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.model-picker-toggle:disabled,.model-picker-search:disabled,.model-picker-all input:disabled,.model-picker-option input:disabled { cursor: not-allowed; }
.export-model-filter small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.sensitive-option { display: flex; align-items: flex-start; gap: 10px; padding: 13px 14px; border: 1px solid #ecd59e; border-radius: 11px; background: #fffaf0; cursor: pointer; }
.sensitive-option input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--purple); }
.sensitive-option span { min-width: 0; }
.sensitive-option strong,.sensitive-option small { display: block; }
.sensitive-option strong { color: #72510f; font-size: 12px; }
.sensitive-option small { margin-top: 4px; color: #8d713a; font-size: 10px; line-height: 1.45; }
.export-warning { grid-column: 1 / 3; display: flex; gap: 9px; align-items: flex-start; color: #7f3d20; font-size: 11px; line-height: 1.6; }
.export-warning i { flex: 0 0 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d57435; font-style: normal; font-size: 11px; font-weight: 800; }
.export-warning code { color: inherit; overflow-wrap: anywhere; }
.export-button { grid-column: 3; grid-row: 1 / 3; min-width: 210px; justify-content: center; }
@media (max-width: 920px) { .export-layout { grid-template-columns: 1fr 1fr; }.export-button { grid-column: 1 / -1; grid-row: auto; }.export-warning { grid-column: 1 / -1; } }
@media (max-width: 620px) { .export-layout { grid-template-columns: 1fr; padding: 17px; }.export-warning,.export-button { grid-column: 1; } }

/* Multi-subscription recognition and resource-group modules */
.compact-head { min-height: 72px; }
.compact-head h2 { margin-bottom: 0; }
.subscription-entry { display: grid; grid-template-columns: minmax(360px, 1fr) auto minmax(220px, .7fr); gap: 14px; align-items: end; padding: 22px 24px; border-top: 1px solid var(--line); }
.subscription-entry label,.search-field { display: grid; gap: 8px; }
.subscription-entry label > span,.search-field > span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.match-status { min-height: 42px; display: flex; align-items: center; padding: 0 13px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: #fafbfc; font-size: 12px; }
.match-status.ok { color: #126a4c; border-color: #b9e3d3; background: #f1fbf7; }
.match-status.bad { color: #a12e3e; border-color: #f1cbd1; background: #fff7f8; }
.resource-group-picker { padding: 0 24px 22px; }
.resource-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.search-field { width: min(480px, 100%); }
.resource-actions { display: flex; gap: 8px; }
.resource-summary { margin: 14px 0 10px; color: var(--muted); font-size: 12px; }
.resource-summary strong { color: var(--purple-dark); font-size: 15px; }
.resource-group-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-height: 330px; padding: 2px; overflow: auto; }
.resource-group-option { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; transition: .16s; }
.resource-group-option:hover { border-color: #c8bdf5; background: #fbfaff; }
.resource-group-option:has(input:checked) { border-color: #a995f1; background: var(--purple-soft); box-shadow: inset 3px 0 0 var(--purple); }
.resource-group-option input { flex: 0 0 auto; }
.resource-group-option span { min-width: 0; }
.resource-group-option strong,.resource-group-option small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-group-option strong { color: #3f414a; font-size: 12px; }
.resource-group-option small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.resource-group-empty { grid-column: 1 / -1; padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.resource-submit { display: flex; justify-content: flex-end; margin-top: 15px; }
.quota-tools { display: flex; align-items: center; gap: 14px; }
.max-button { color: #fff; border-color: #df9840; background: linear-gradient(135deg, #e9a64d, #cf7432); box-shadow: 0 7px 18px rgba(189, 108, 38, .19); }
.max-button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(189, 108, 38, .25); }
.quota-groups { padding: 0 24px 24px; }
.quota-group-module { margin-top: 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .18s, box-shadow .18s; }
.quota-group-module.expanded { border-color: #d9d2f8; box-shadow: 0 10px 28px rgba(68, 49, 139, .07); }
.quota-group-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: linear-gradient(90deg, #faf8ff, #fff); }
.quota-group-module.expanded .quota-group-head { border-bottom: 1px solid var(--line); }
.quota-group-toggle { min-width: 0; flex: 1; display: grid; grid-template-columns: 30px minmax(220px, 1fr) auto; align-items: center; gap: 12px; padding: 5px 4px; border: 0; color: inherit; background: transparent; text-align: left; }
.quota-group-toggle:hover .quota-group-title strong { color: var(--purple); }
.group-chevron { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #ded9f5; border-radius: 8px; color: var(--purple); background: #fff; font-size: 19px; font-style: normal; line-height: 1; transform: rotate(-90deg); transition: transform .18s, background .18s; }
.quota-group-module.expanded .group-chevron { transform: rotate(0); background: var(--purple-soft); }
.quota-group-title { min-width: 0; }
.quota-group-title small,.quota-group-title strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quota-group-title small { margin-bottom: 3px; color: var(--purple); font-size: 9px; font-weight: 850; letter-spacing: .12em; }
.quota-group-title strong { color: #393b45; font-size: 16px; transition: color .16s; }
.quota-group-count { color: var(--muted); font-size: 11px; white-space: nowrap; }
.quota-group-count b { color: #4a4659; }
.group-max-button { flex: 0 0 auto; height: 36px; padding: 0 13px; gap: 8px; font-size: 12px; }
.group-max-button span { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #a9561d; background: rgba(255,255,255,.82); font-size: 10px; }
.quota-group-body { background: #fff; }
.quota-group-module .table-wrap { border: 0; border-radius: 0; }
.group-empty-cell { padding: 28px !important; text-align: center; color: var(--muted); }

@media (max-width: 1100px) {
  .resource-group-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .subscription-entry { grid-template-columns: 1fr auto; }
  .subscription-entry .match-status { grid-column: 1 / -1; }
  .quota-tools { align-items: stretch; flex-direction: column; }
}
@media (max-width: 720px) {
  .subscription-entry { grid-template-columns: 1fr; padding: 17px; }
  .subscription-entry .match-status { grid-column: auto; }
  .resource-group-picker,.quota-groups { padding-left: 17px; padding-right: 17px; }
  .resource-toolbar { align-items: stretch; flex-direction: column; }
  .search-field { width: 100%; }
  .resource-actions { flex-wrap: wrap; }
  .resource-group-list { grid-template-columns: 1fr; max-height: 390px; }
  .resource-submit .button { width: 100%; justify-content: center; }
  .quota-group-head { align-items: stretch; flex-direction: column; }
  .quota-group-toggle { grid-template-columns: 30px minmax(0, 1fr); }
  .quota-group-count { grid-column: 2; white-space: normal; }
  .quota-tools { width: 100%; }
  .group-max-button { width: 100%; justify-content: center; }
}

/* Subscription list paste/search and multi-selection */
.subscription-picker { padding: 0 24px 22px; }
.subscription-toolbar { align-items: flex-end; padding-top: 18px; border-top: 0; }
.subscription-search { width: min(820px, 100%); }
.subscription-search textarea { min-height: 112px; font-size: 11px; line-height: 1.55; }
.subscription-picker .match-status { margin-top: 12px; }
.subscription-list { max-height: 310px; }
.subscription-option small { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

@media (max-width: 720px) {
  .subscription-picker { padding: 0 17px 20px; }
  .subscription-toolbar { align-items: stretch; flex-direction: column; }
  .subscription-search { width: 100%; }
}

@media (max-width: 620px) {
  .maximize-dialog form { padding: 20px; }
  .maximize-deployment-item { grid-template-columns: 1fr; gap: 8px; }
  .maximize-change { justify-content: flex-end; }
}

/* Sidebar command-center layout */
:root {
  --bg: #f3f7fc;
  --panel: rgba(255,255,255,.92);
  --line: rgba(37, 99, 235, .12);
  --ink: #162033;
  --muted: #66758a;
  --purple: #2563eb;
  --purple-2: #0284c7;
  --purple-soft: #eff6ff;
  --success: #059669;
  --shadow: 0 22px 60px rgba(35,57,91,.10);
}
html { scroll-behavior: smooth; scroll-padding-top: 102px; }
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(56,189,248,.12), transparent 29rem),
    radial-gradient(circle at 88% 76%, rgba(124,58,237,.09), transparent 31rem),
    var(--bg);
  overflow-x: hidden;
}
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  opacity: .42;
  background-image: linear-gradient(rgba(37,99,235,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.ambient { position: fixed; z-index: -2; width: 380px; height: 380px; border-radius: 50%; filter: blur(110px); opacity: .11; pointer-events: none; }
.ambient-a { top: -180px; right: 10%; background: #38bdf8; }
.ambient-b { bottom: -220px; left: 18%; background: #8b5cf6; }
.topbar {
  height: 78px;
  padding: 0 34px;
  background: rgba(248,251,255,.86);
  border-bottom-color: rgba(37,99,235,.1);
  box-shadow: 0 1px 0 rgba(255,255,255,.9);
}
.brand-mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 5px;
  overflow: hidden;
  border: 1px solid rgba(2,132,199,.2);
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #eaf5ff);
  box-shadow: 0 9px 24px rgba(2,132,199,.13);
  transform: none;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand strong { color: #1d2b42; font-size: 17px; letter-spacing: .045em; }
.brand small { color: #7890a9; letter-spacing: .22em; }
.shell {
  width: min(1540px, calc(100% - 44px));
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  margin: 0 auto;
  padding: 26px 0 72px;
}
.glass { background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(244,249,255,.86)); border: 1px solid rgba(37,99,235,.12); box-shadow: var(--shadow); backdrop-filter: blur(22px); }
.steps {
  position: sticky;
  top: 104px;
  height: calc(100vh - 130px);
  min-height: 510px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 14px;
  border-radius: 18px;
}
.steps > .eyebrow { padding: 0 12px 14px; color: #0284c7; }
.step {
  position: relative;
  width: 100%;
  display: flex;
  gap: 13px;
  padding: 13px;
  border: 0;
  border-radius: 12px;
  color: #70839a;
  background: transparent;
  text-align: left;
  transition: color .2s, background .2s, box-shadow .2s, transform .2s;
}
.step:hover { color: #294a73; background: rgba(2,132,199,.055); transform: translateX(2px); }
.step.active { color: #173d6e; background: linear-gradient(90deg, rgba(14,165,233,.13), rgba(37,99,235,.045)); box-shadow: inset 2px 0 #0284c7; }
.step > span { padding-top: 2px; color: #8ca0b5; font: 700 11px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; }
.step.active > span { color: #0284c7; }
.step div { font-size: 13px; font-weight: 750; }
.step small { display: block; margin-top: 3px; color: #93a2b3; font-size: 10px; font-weight: 500; }
.step.active small { color: #69829b; }
.step.locked { opacity: .55; }
.background-task-panel {
  margin-top: auto;
  padding: 13px 12px 12px;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(239,248,255,.96), rgba(255,255,255,.94));
  box-shadow: 0 10px 26px rgba(35,57,91,.08);
}
.background-task-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #0284c7; font-size: 9px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.task-icon-button { width: 22px; height: 22px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; color: #7890a9; background: transparent; font-size: 18px; line-height: 1; }
.task-icon-button:hover:not(:disabled) { color: #d9384b; background: rgba(217,56,75,.08); }
.background-task-panel > strong { display: block; margin-top: 9px; color: #1d3859; font-size: 12px; line-height: 1.35; }
.background-task-progress-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 9px; }
.background-task-progress-line b { color: #173d6e; font: 800 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.background-task-progress-line span { color: #16815e; font-size: 10px; font-weight: 750; }
.background-task-bar { height: 5px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #dbeaf5; }
.background-task-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0284c7, #7c3aed); transition: width .25s ease; }
.background-task-counts { margin-top: 8px; color: #60758d; font-size: 9px; line-height: 1.5; }
.background-task-current { display: block; min-height: 28px; margin-top: 7px; overflow: hidden; color: #74879b; font-size: 9px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.task-restore-button { width: 100%; justify-content: center; margin-top: 8px; padding: 8px 10px; font-size: 10px; }
body.operation-running .content { user-select: none; }
.dialog-minimize { margin-right: auto; }
.dialog-minimize:not(:disabled) { color: #2563eb; border-color: rgba(37,99,235,.24); background: #f3f8ff; }
.dialog-minimize:not(:disabled):hover { border-color: #0284c7; background: #eaf6ff; }
.side-note { margin-top: auto; padding: 18px 10px 4px; border-top: 1px solid rgba(37,99,235,.1); }
.side-note span { color: #8294a8; font-size: 9px; letter-spacing: .14em; }
.side-note code { display: block; margin: 8px 0; color: #0284c7; font-size: 11px; }
.side-note p { margin: 0; color: #8090a2; font-size: 10px; line-height: 1.55; }
.content { min-width: 0; }
.hero { min-height: 114px; padding: 6px 6px 25px; align-items: center; }
.hero h1 { margin-bottom: 0; color: #17263d; font-size: clamp(29px, 3.5vw, 42px); }
.hero-badge { min-width: 188px; background: rgba(255,255,255,.82); border-color: rgba(37,99,235,.12); }
.card { scroll-margin-top: 104px; border-color: rgba(37,99,235,.11); background: rgba(255,255,255,.93); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.card + .card { margin-top: 22px; }
.workspace { display: grid; gap: 22px; margin-top: 22px; }
.workspace .card + .card { margin-top: 0; }
.card-head, .quota-head { background: linear-gradient(90deg, rgba(248,251,255,.92), rgba(255,255,255,.76)); border-bottom-color: rgba(37,99,235,.1); }
.section-kicker { display: block; margin-bottom: 4px; color: #0284c7; font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; }
.step-no { background: linear-gradient(145deg, #17385f, #2563eb); box-shadow: 0 8px 20px rgba(37,99,235,.18); }
.identity-badge { border-color: rgba(37,99,235,.18); color: #1d4ed8; background: #eff6ff; }
textarea:focus, input:focus, select:focus { border-color: #38a9dc; box-shadow: 0 0 0 3px rgba(2,132,199,.11); }
.button.primary { background: linear-gradient(135deg, #2563eb, #0284c7); box-shadow: 0 9px 24px rgba(37,99,235,.19); }
.button.secondary { border-color: #d6e7f5; color: #176184; background: #edf8ff; }
.button.secondary:hover:not(:disabled) { border-color: #a8d9ee; background: #e4f5fd; }
.resource-group-option:hover { border-color: #b9dcef; background: #f5fbff; }
.resource-group-option:has(input:checked) { border-color: #75bde0; background: #eff9ff; box-shadow: 0 0 0 2px rgba(2,132,199,.08); }
.quota-group-module.expanded { border-color: #bcdcf0; box-shadow: 0 10px 28px rgba(2,91,145,.07); }
.quota-group-head { background: linear-gradient(90deg, #f3f9ff, #fff); }
.group-chevron { border-color: #cfe4f2; color: #0284c7; }
.quota-group-module.expanded .group-chevron { background: #eaf7ff; }
.quota-group-toggle:hover .quota-group-title strong { color: #0369a1; }
.quota-group-title small { color: #0284c7; }
.toast { position: fixed; right: 28px; top: 94px; z-index: 80; }

@media (max-width: 1000px) {
  html { scroll-padding-top: 162px; }
  .shell { width: min(100% - 28px, 1540px); grid-template-columns: 1fr; gap: 14px; padding-top: 14px; }
  .steps {
    top: 88px;
    z-index: 14;
    min-height: 0;
    height: auto;
    flex-direction: row;
    overflow-x: auto;
    padding: 10px;
    border-radius: 14px;
  }
  .steps > .eyebrow, .side-note { display: none; }
  .step { min-width: 150px; flex: 1 0 auto; padding: 10px 12px; }
  .step:hover { transform: none; }
  .hero { min-height: auto; padding: 14px 6px 18px; }
  .card { scroll-margin-top: 164px; }
}
@media (max-width: 720px) {
  .topbar { height: 68px; padding: 0 16px; }
  .brand small { display: none; }
  .brand strong { font-size: 14px; letter-spacing: 0; }
  .brand-mark { width: 32px; height: 32px; }
  .shell { width: min(100% - 20px, 1540px); padding-bottom: 44px; }
  .steps { top: 78px; }
  .step { min-width: 136px; }
  .hero { align-items: flex-start; flex-direction: column; gap: 15px; }
  .hero-badge { width: 100%; min-width: 0; }
  .identity-badge { width: 100%; margin-left: 0; }
  .card-head { flex-wrap: wrap; }
  .toast { left: 14px; right: 14px; top: 82px; }
  .background-task-panel { margin-top: 12px; }
}

/* Multi-select deployment deletion */
.quota-tool-buttons { display: flex; align-items: center; gap: 9px; }
.quota-select-all-button { color: #4b3c9d; border-color: #d9d2f5; background: linear-gradient(135deg, #fbfaff, #f2efff); box-shadow: 0 7px 18px rgba(85, 63, 170, .08); }
.quota-select-all-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #b8aceb; box-shadow: 0 10px 22px rgba(85, 63, 170, .14); }
.quota-select-all-button b { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #fff; background: #7563cf; font-size: 10px; }
.bulk-save-button { color: #087453; border-color: #b9e6d3; background: linear-gradient(135deg, #f4fffa, #e9fbf3); box-shadow: 0 7px 18px rgba(8,116,83,.08); }
.bulk-save-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #73c9a8; box-shadow: 0 10px 22px rgba(8,116,83,.14); }
.bulk-save-button b { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #fff; background: #159568; font-size: 10px; }
.bulk-delete-button { color: #a42535; border-color: #efc7cd; background: linear-gradient(135deg, #fff8f9, #fff0f2); box-shadow: 0 7px 18px rgba(190,38,59,.08); }
.bulk-delete-button:hover:not(:disabled) { transform: translateY(-1px); border-color: #dc8793; box-shadow: 0 10px 22px rgba(190,38,59,.14); }
.bulk-delete-button b { min-width: 20px; height: 20px; display: inline-grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #fff; background: #d9384b; font-size: 10px; }
.quota-group-actions { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; }
.quota-group-module table th.selection-head,
.quota-group-module table td.selection-cell {
  width: 58px;
  text-align: center !important;
}
.selection-cell { padding-inline: 6px; }
tr.deployment-selected td { background: #fff9fa; }
tr.deployment-selected td:first-child { box-shadow: inset 3px 0 0 #d9384b; }
.bulk-delete-dialog { width: min(900px, calc(100% - 32px)); max-height: min(90vh, 900px); overflow: auto; }
.bulk-delete-list { display: grid; gap: 8px; max-height: min(34vh, 320px); overflow: auto; margin: 14px 0; padding-right: 3px; }
.bulk-delete-item { display: grid; grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 1fr) auto; align-items: center; gap: 14px; padding: 11px 12px; border: 1px solid #eadde0; border-radius: 11px; background: #fffafb; }
.bulk-delete-item label,.bulk-delete-item strong,.bulk-delete-item small { display: block; min-width: 0; }
.bulk-delete-item strong,.bulk-delete-item small,.bulk-delete-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bulk-delete-item strong { color: #343741; font-size: 12px; }
.bulk-delete-item small { margin-top: 3px; color: #a42535; font: 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.bulk-delete-item > span { color: #737783; font-size: 10px; }
.bulk-delete-item em { color: #a42535; font-size: 11px; font-style: normal; font-weight: 800; white-space: nowrap; }
.operation-status { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; transition: color .2s ease, background .2s ease; }
.operation-status.pending { color: #687386; background: #eef2f7; }
.operation-status.processing { color: #8a5a00; background: #fff2c7; }
.operation-status.success { color: #087453; background: #e7f8f0; }
.operation-status.failed { color: #a42535; background: #ffe9ed; }
.operation-processing .operation-status::before { content: ""; width: 7px; height: 7px; margin-right: 5px; border: 1.5px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.maximize-deployment-item.operation-processing,.bulk-delete-item.operation-processing { background: #fffaf0; }
.maximize-deployment-item.operation-success { background: #f1fbf6; }
.maximize-deployment-item.operation-failed,.bulk-delete-item.operation-failed { background: #fff3f5; }
.bulk-delete-item-meta { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 120px; }
.maximize-change { flex-wrap: wrap; justify-content: flex-end; }
.maximize-change .operation-status { margin-left: 4px; }
.bulk-delete-warning { display: flex; align-items: flex-start; gap: 9px; padding: 11px 13px; border: 1px solid #f2c6cb; border-radius: 11px; color: #873040; background: #fff5f6; font-size: 11px; line-height: 1.6; }
.bulk-delete-warning i { flex: 0 0 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: #d9384b; font-style: normal; font-weight: 850; }
.bulk-delete-confirm-label { display: block; margin-top: 13px; }
.bulk-delete-confirm-label pre { max-height: 130px; overflow: auto; margin: 0 0 8px; padding: 10px 12px; border: 1px solid #eadde0; border-radius: 9px; color: #6f3540; background: #fffafb; font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.bulk-delete-confirm-label textarea { min-height: 112px; padding: 11px 12px; font-size: 10px; line-height: 1.55; }
.bulk-delete-confirm-label small { display: block; min-height: 16px; margin-top: 6px; color: #a45d67; font-size: 10px; }
.bulk-delete-confirm-label small.ok { color: #087453; }
.bulk-delete-result { margin-top: 14px; padding: 13px; border: 1px solid #dce5eb; border-radius: 11px; background: #f8fbfd; }
.bulk-delete-result > strong { display: block; margin-bottom: 8px; color: #334155; font-size: 12px; }
.bulk-delete-result-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 9px; padding: 7px 8px; border-radius: 7px; font-size: 10px; }
.bulk-delete-result-row + .bulk-delete-result-row { margin-top: 4px; }
.bulk-delete-result-row strong { color: #64748b; }
.bulk-delete-result-row span { overflow-wrap: anywhere; }
.bulk-delete-result-row.success { color: #087453; background: #eefbf6; }
.bulk-delete-result-row.failed { color: #a42535; background: #fff0f2; }
.bulk-delete-result-row.pending { color: #687386; background: #f1f5f9; }

@media (max-width: 1100px) {
  .quota-tool-buttons { width: 100%; flex-wrap: wrap; }
  .quota-group-actions { flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .quota-tool-buttons,.bulk-save-button,.bulk-delete-button,.global-max-button,.quota-group-actions { width: 100%; }
  .bulk-save-button,.bulk-delete-button { justify-content: center; }
  .bulk-delete-dialog form { padding: 20px; }
  .bulk-delete-item { grid-template-columns: 1fr; gap: 6px; }
}


/* Responsive quota controls */
.quota-head { min-width: 0; }
.quota-head > div:first-child { min-width: 0; }
.quota-tools { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.quota-tool-buttons { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.global-max-button { white-space: nowrap; }
.global-max-button b { font-size: 16px; line-height: 1; }
.quota-group-actions { min-width: 0; flex-wrap: wrap; justify-content: flex-end; }
.quota-group-toggle { min-width: 0; }
.table-wrap { max-width: 100%; -webkit-overflow-scrolling: touch; }
.allocation-editor { min-width: 0; flex-wrap: wrap; }
.allocation-editor input { max-width: 100%; }
.row-actions { flex-wrap: wrap; }

@media (max-width: 1100px) {
  .quota-head { align-items: stretch; gap: 18px; }
  .quota-tools { align-items: stretch; flex-direction: column; }
  .quota-tool-buttons { justify-content: flex-start; }
  .metrics { width: 100%; }
  .metrics div { flex: 1 1 0; min-width: 0; }
  .quota-group-actions { justify-content: flex-start; }
}

@media (max-width: 720px) {
  .quota-head { padding: 18px 17px; }
  .quota-tools, .quota-tool-buttons, .quota-group-actions { width: 100%; }
  .quota-tool-buttons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .quota-tool-buttons .button { width: 100%; min-width: 0; padding-inline: 10px; }
  .quota-group-actions .button { width: 100%; }
  .metrics { overflow: hidden; }
  .metrics div { padding: 9px 5px; }
  .metrics strong { font-size: 18px; }
  .metrics span { line-height: 1.25; }
  .quota-group-toggle { grid-template-columns: 30px minmax(0, 1fr); }
  .quota-group-count { grid-column: 2; white-space: normal; }
  .quota-groups { padding-bottom: 17px; }
  .table-wrap table { min-width: 860px; }
  .allocation-editor { flex-wrap: nowrap; }
  .allocation-editor input { width: 96px; }
  .row-button.save { min-width: 52px; }
}

@media (max-width: 520px) {
  .quota-tool-buttons { grid-template-columns: 1fr; }
  .quota-group-title strong { font-size: 14px; }
  .quota-group-count { font-size: 10px; }
  .quota-group-module table th.selection-head,
  .quota-group-module table td.selection-cell { width: 48px; }
  .table-wrap table { min-width: 800px; }
  .maximize-dialog, .bulk-delete-dialog { width: calc(100% - 20px); }
  .maximize-dialog form { padding: 20px; }
}

/* Unified selection controls
   Keep the resource-group and Deployment checkboxes identical. The checked icon is
   a background SVG instead of an input pseudo-element so it stays centered in
   Safari/WebKit as well as Chromium. */
.resource-group-option input[type="checkbox"],
.selection-cell input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-block;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  min-height: 16px;
  margin: 0;
  padding: 0;
  border: 1px solid #b8c3d1;
  border-radius: 50%;
  background-color: #fff;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px 10px;
  box-shadow: 0 1px 2px rgba(35, 45, 65, .10);
  cursor: pointer;
  vertical-align: middle;
  outline: none;
  transition: border-color .15s ease, background-color .15s ease,
    box-shadow .15s ease, transform .15s ease;
}
.resource-group-option input[type="checkbox"]:hover:not(:disabled),
.selection-cell input[type="checkbox"]:hover:not(:disabled) {
  border-color: #6ca9dc;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .10);
}
.resource-group-option input[type="checkbox"]:focus-visible,
.selection-cell input[type="checkbox"]:focus-visible {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .19);
}
.resource-group-option input[type="checkbox"]:checked,
.selection-cell input[type="checkbox"]:checked {
  border-color: var(--purple);
  background-color: var(--purple);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4 6.4 12 13 4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
}
.resource-group-option input[type="checkbox"]:active:not(:disabled),
.selection-cell input[type="checkbox"]:active:not(:disabled) {
  transform: scale(.92);
}
.resource-group-option input[type="checkbox"]:disabled,
.selection-cell input[type="checkbox"]:disabled {
  cursor: not-allowed;
  border-color: #d4dce6;
  background-color: #f2f5f8;
  box-shadow: none;
  opacity: .72;
}
.resource-group-option input[type="checkbox"]:checked:disabled,
.selection-cell input[type="checkbox"]:checked:disabled {
  border-color: #a8b8dd;
  background-color: #aab8de;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.4 6.4 12 13 4.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.quota-selection-control {
  display: grid;
  width: 32px;
  height: 32px;
  margin: 0 auto;
  place-items: center;
  border-radius: 50%;
  cursor: pointer;
}
.quota-selection-control:has(input:disabled) { cursor: not-allowed; }

@media (forced-colors: active) {
  .resource-group-option input[type="checkbox"],
  .selection-cell input[type="checkbox"] {
    forced-color-adjust: auto;
    background-image: none;
  }
  .resource-group-option input[type="checkbox"]:checked,
  .selection-cell input[type="checkbox"]:checked {
    appearance: auto;
    -webkit-appearance: auto;
  }
}

/* Deployment-name filtering in quota management */
.deployment-search-bar {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(360px, 1.2fr);
  gap: 16px;
  align-items: end;
  margin: 0 24px 16px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, .12);
  border-radius: 13px;
  background: linear-gradient(135deg, #f8fbff, #fff);
}
.deployment-search-copy { min-width: 0; }
.deployment-search-copy strong,
.deployment-search-copy small { display: block; }
.deployment-search-copy strong { margin-top: 5px; color: #1f2f47; font-size: 13px; }
.deployment-search-copy small { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.deployment-search-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: end;
}
.deployment-search-controls textarea {
  min-height: 70px;
  padding: 10px 12px;
  border-color: #d7e5f1;
  font-size: 11px;
  line-height: 1.5;
  resize: vertical;
}
.deployment-search-controls .button { align-self: stretch; white-space: nowrap; }
.deployment-search-status {
  grid-column: 1 / -1;
  color: #728197;
  font-size: 10px;
  line-height: 1.4;
}
@media (max-width: 720px) {
  .deployment-search-bar { grid-template-columns: 1fr; margin-inline: 17px; }
  .deployment-search-controls { grid-template-columns: 1fr; }
  .deployment-search-controls .button { width: 100%; justify-content: center; }
}

/* Embedded user guide */
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}
.topbar-actions .button.small { margin-left: 0; }
.help-button {
  height: 36px;
  padding: 0 12px;
  gap: 7px;
  color: #1d4ed8;
  border: 1px solid rgba(37,99,235,.15);
  background: rgba(239,246,255,.92);
  box-shadow: 0 6px 16px rgba(37,99,235,.08);
}
.help-button:hover:not(:disabled) {
  border-color: rgba(2,132,199,.35);
  background: #eaf6ff;
  box-shadow: 0 9px 20px rgba(37,99,235,.13);
}
.help-button-symbol {
  width: 19px;
  height: 19px;
  display: inline-grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 800 12px/1 ui-sans-serif, sans-serif;
}
.help-button-label { white-space: nowrap; }
.help-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: #f7fbff;
  box-shadow: 0 28px 90px rgba(19,42,75,.3);
}
.help-dialog::backdrop {
  background: rgba(14,31,52,.55);
  backdrop-filter: blur(5px);
}
.help-dialog-form {
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 900px);
  margin: 0;
}
.help-dialog-head {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 13px;
  padding: 25px 60px 19px 25px;
  border-bottom: 1px solid rgba(37,99,235,.11);
  background: linear-gradient(135deg, #eef7ff, #fff);
}
.help-dialog-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #2563eb, #0284c7);
  box-shadow: 0 9px 20px rgba(37,99,235,.2);
  font-size: 21px;
  font-weight: 800;
}
.help-dialog-head > div:last-child { min-width: 0; }
.help-dialog-head > div:last-child > span {
  color: #0284c7;
  font: 800 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: .17em;
}
.help-dialog-head h2 { margin: 5px 0 5px; color: #172d4b; font-size: 22px; letter-spacing: -.025em; }
.help-dialog-head p { margin: 0; color: #6b7f96; font-size: 12px; line-height: 1.55; }
.help-close-button {
  position: absolute;
  top: 17px;
  right: 18px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(37,99,235,.13);
  border-radius: 10px;
  color: #60758d;
  background: rgba(255,255,255,.8);
  font-size: 22px;
  line-height: 1;
}
.help-close-button:hover { color: #1d4ed8; background: #eaf6ff; }
.help-dialog-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 24px 22px;
}
.help-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid #cce4f3;
  border-radius: 11px;
  color: #28536f;
  background: #eff9ff;
  font-size: 11px;
  line-height: 1.5;
}
.help-callout strong { flex: 0 0 auto; color: #176184; font-size: 12px; }
.help-guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.help-guide-section {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(37,99,235,.1);
  border-radius: 13px;
  background: rgba(255,255,255,.9);
}
.help-guide-section-wide { grid-column: 1 / -1; }
.help-section-number {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #2563eb;
  background: #eaf3ff;
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}
.help-guide-section h3 { margin: 1px 0 7px; color: #233b58; font-size: 14px; }
.help-guide-section ol,
.help-guide-section ul { margin: 0; padding-left: 18px; color: #62758b; font-size: 11px; line-height: 1.65; }
.help-guide-section li + li { margin-top: 4px; }
.help-guide-section code,
.help-troubleshooting code { padding: 1px 4px; border-radius: 4px; color: #315aa7; background: #edf3ff; font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; }
.help-troubleshooting {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  padding: 11px 13px;
  border: 1px solid #ead9a7;
  border-radius: 11px;
  color: #7d6325;
  background: #fffaf0;
  font-size: 11px;
  line-height: 1.6;
}
.help-troubleshooting strong { flex: 0 0 auto; color: #72510f; font-size: 12px; }
.help-dialog-actions {
  align-items: center;
  margin-top: 0;
  padding: 14px 24px 20px;
  border-top: 1px solid rgba(37,99,235,.11);
  background: rgba(255,255,255,.82);
}
.help-dialog-actions > span { margin-right: auto; color: #8294a8; font-size: 10px; }

@media (max-width: 720px) {
  .topbar-actions { gap: 7px; }
  .help-button { width: 36px; padding: 0; }
  .help-button-label { display: none; }
  .help-dialog { width: calc(100% - 20px); max-height: 92vh; border-radius: 18px; }
  .help-dialog-form { max-height: 92vh; }
  .help-dialog-head { padding: 20px 52px 16px 18px; }
  .help-dialog-body { padding: 15px 17px 18px; }
  .help-guide-grid { grid-template-columns: 1fr; }
  .help-guide-section-wide { grid-column: auto; }
  .help-dialog-actions { padding: 12px 17px 16px; }
  .help-dialog-actions > span { display: none; }
}
