:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #fff;
  --text: #17201d;
  --muted: #68746f;
  --line: #dde3e0;
  --line-strong: #c7d0cc;
  --green: #15803d;
  --green-dark: #116232;
  --green-soft: #eaf6ee;
  --red: #c93636;
  --red-soft: #fff0f0;
  --amber: #946200;
  --shadow: 0 8px 24px rgba(26, 43, 36, .07);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--bg); }
body { min-width: 320px; min-height: 100vh; margin: 0; color: var(--text); background: var(--bg); line-height: 1.5; }
button, input, textarea { font: inherit; letter-spacing: 0; }
button { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(21,128,61,.28); outline-offset: 2px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 8px 12px; transform: translateY(-150%); color: #fff; background: var(--green-dark); }
.skip-link:focus { transform: translateY(0); }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: 220px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; display: flex; height: 100vh; flex-direction: column; padding: 24px 16px; border-right: 1px solid var(--line); background: var(--surface); }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 26px; }
.logo > img { display: block; width: 168px; max-width: 100%; height: 50px; object-fit: contain; }
.logo strong { font-size: 1rem; }
.sidebar nav { display: grid; gap: 4px; }
.nav-item { display: flex; min-height: 40px; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 6px; color: #54605b; text-decoration: none; font-size: .86rem; font-weight: 650; }
.nav-item.active { color: var(--green-dark); background: var(--green-soft); }
.nav-item span { width: 18px; text-align: center; }
.status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.status-dot.available { background: #20a052; box-shadow: 0 0 0 3px #e3f6e9; }
.status-dot.in-use { background: #20a052; box-shadow: 0 0 0 3px #d9f5e1, 0 0 10px 2px rgba(32,160,82,.55); animation: status-breathe 1.4s ease-in-out infinite; }
@keyframes status-breathe { 0%, 100% { opacity: .55; box-shadow: 0 0 0 3px #e3f6e9, 0 0 4px 1px rgba(32,160,82,.25); } 50% { opacity: 1; box-shadow: 0 0 0 4px #c9efd4, 0 0 14px 4px rgba(32,160,82,.72); } }
.page { min-width: 0; }
.topbar { display: flex; min-height: 78px; align-items: center; justify-content: space-between; gap: 18px; padding: 15px clamp(20px,4vw,48px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); }
.topbar h1 { margin: 2px 0 0; font-size: 1.15rem; }
.breadcrumb { margin: 0; color: var(--muted); font-size: .72rem; }
.account-actions { display: flex; align-items: center; gap: 8px; }
.menu-button { display: none; width: 38px; height: 38px; border: 1px solid var(--line); background: #fff; }
main { width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 48px; }
.summary-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 26px 0 30px; }
.eyebrow { margin: 0; color: var(--green); font-size: .68rem; font-weight: 800; letter-spacing: .12em; }
.summary-band h2 { margin: 4px 0 5px; font-size: clamp(1.55rem,3vw,2.2rem); letter-spacing: 0; }
.summary-band p:not(.eyebrow) { margin: 0; color: var(--muted); }
.home-status { display: grid; grid-template-columns: minmax(240px,1.2fr) minmax(300px,1.5fr) auto; align-items: center; gap: 24px; padding: 22px 24px; border: 1px solid #b8dac2; border-radius: 8px; background: linear-gradient(110deg, #f0faf3, #fff); box-shadow: var(--shadow); }
.home-status h2 { margin: 4px 0; font-size: 1.25rem; }
.home-status-copy p { margin: 4px 0 0; color: var(--muted); font-size: .8rem; }
.home-status-data { display: flex; flex-wrap: wrap; gap: 24px; }
.home-status-data div { display: grid; gap: 2px; min-width: 92px; }
.home-status-data span { color: var(--muted); font-size: .7rem; }
.home-status-data strong { font-size: 1.05rem; }
.home-ok { color: var(--green-dark); }
.home-status-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.current-use-tag { display: inline-block; padding: 2px 6px; border-radius: 999px; color: #145ca8; background: #e7f2ff; font-size: .64rem; font-style: normal; font-weight: 750; vertical-align: middle; }
.process-panel { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; margin-top: 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-panel h2 { margin: 4px 0; font-size: 1.1rem; }
.process-panel p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.process-steps { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.process-steps li { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 4px 10px; border-left: 1px solid var(--line); }
.process-steps b { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; color: var(--green-dark); background: var(--green-soft); font-size: .72rem; }
.process-steps span { color: #405049; font-size: .76rem; font-weight: 700; }
.history-filters select { min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; color: #34423c; background: #fff; }
.resource-tabs { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(100%, 360px); margin: 12px 20px; padding: 4px; border: 1px solid var(--line-strong); border-radius: 5px; background: #eef2f0; isolation: isolate; }
.resource-tabs::before { position: absolute; z-index: -1; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3); border-radius: 6px; background: #fff; box-shadow: 0 1px 4px rgba(26,43,36,.14); content: ""; transition: transform .2s ease; }
.resource-tabs[data-active-mode="2"]::before { transform: translateX(100%); }
.resource-tabs[data-active-mode="3"]::before { transform: translateX(200%); }
.mode-tab { position: relative; z-index: 1; min-width: 0; padding: 8px 12px; border: 0; border-radius: 999px; color: #53605a; background: transparent; cursor: pointer; font-size: .82rem; font-weight: 750; }
.mode-tab.active { color: var(--green-dark); background: transparent; }
.button { display: inline-flex; min-height: 40px; align-items: center; justify-content: center; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: .84rem; font-weight: 700; }
.button.primary { border: 1px solid var(--green); color: #fff; background: var(--green); }
.button.primary:hover:not(:disabled) { background: var(--green-dark); }
.button.secondary { border: 1px solid var(--line-strong); color: #34423c; background: #fff; }
.button.danger { border: 1px solid #efbcbc; color: var(--red); background: #fff; }
.button.compact { min-height: 34px; padding: 6px 11px; }
.button.full { width: 100%; }
button:disabled { cursor: not-allowed; opacity: .52; }
.metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.metrics > div { display: grid; min-width: 0; gap: 4px; padding: 18px 20px; border-right: 1px solid var(--line); }
.metrics > div:last-child { border-right: 0; }
.metrics span, .metrics small { color: var(--muted); font-size: .72rem; }
.metrics strong { font-size: 1.65rem; line-height: 1.25; }
.metrics .text-metric { overflow-wrap: anywhere; font-size: 1rem; }
.panel { margin-top: 22px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 1rem; }
.panel-header p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.panel-header-actions { display: flex; align-items: center; gap: 10px; }
.resource-mode-summary { display: block; margin-top: 5px; color: var(--muted); font-size: .7rem; }
.icon-button, .close-button { display: grid; width: 34px; height: 34px; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 6px; color: #46534d; background: #fff; cursor: pointer; }
.refresh-button { width: 30px; height: 30px; padding: 5px; border: 0; background: transparent; }
.refresh-button svg { width: 16px; height: 16px; }
.icon-button[aria-busy="true"] { animation: spin .8s linear infinite; }
.resource-updated { color: var(--muted); font-size: .7rem; white-space: nowrap; }
.server-table { display: grid; }
.server-row { display: grid; grid-template-columns: minmax(180px,1.5fr) repeat(2,minmax(110px,1fr)) minmax(180px,1.2fr); align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.server-row:last-child { border-bottom: 0; }
.server-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.server-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; }
.server-icon img { width: 32px; height: 32px; }
.server-name strong, .cell strong { display: block; font-size: .85rem; }
.server-name span, .cell span { display: block; color: var(--muted); font-size: .7rem; }
.booking-cell { display: flex; min-width: 0; align-items: center; justify-content: flex-end; gap: 10px; }
.booking-cell strong { min-width: 0; flex: 1 1 auto; overflow: hidden; color: var(--muted); font-size: .72rem; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.booking-cell .button { width: 76px; min-width: 76px; flex: 0 0 76px; }
.booking-count { margin: 12px 0 8px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.booking-days { display: flex; gap: 8px; margin-bottom: 10px; overflow-x: auto; }
.booking-day-tab { position: relative; min-width: 145px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); background: #fff; cursor: pointer; text-align: center; }
.booking-day-tab span, .booking-day-tab small { display: block; }
.booking-day-tab span { color: var(--text); font-size: .82rem; font-weight: 750; }
.booking-day-tab small { margin-top: 2px; font-size: .7rem; }
.booking-day-tab.active { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green); }
.booking-day-tab b { position: absolute; top: 4px; right: 5px; padding: 1px 4px; border-radius: 3px; color: #fff; background: #dc2626; font-size: .62rem; }
.booking-times { display: grid; max-height: 260px; gap: 8px; overflow: auto; }
.booking-time { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; }
.booking-time:has(input:checked) { border-color: var(--green); background: var(--green-soft); box-shadow: 0 0 0 1px var(--green); }
.booking-time input { accent-color: var(--green); }
.booking-time.disabled { color: #9aa49f; background: #f1f3f2; cursor: not-allowed; opacity: .7; }
.booking-time.disabled small { color: #9aa49f; }
.booking-time span { display: grid; gap: 2px; }
.booking-time strong { font-size: .86rem; }
.booking-time small { color: var(--muted); font-size: .72rem; }
.status-line { display: flex !important; align-items: center; gap: 8px; color: var(--text) !important; font-weight: 700; }
.status-dot.processing { background: #9b7a18; box-shadow: 0 0 0 3px #f7edc2; }
.status-dot.reinstalling { background: #f0b323; box-shadow: 0 0 0 3px #fff3c9; animation: reinstall-pulse 1.3s ease-in-out infinite; }
@keyframes reinstall-pulse { 0%,100% { opacity:.45; transform:scale(.9); } 50% { opacity:1; transform:scale(1.25); } }
.status-dot.error { background: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.legend { display: flex; justify-content: flex-end; gap: 18px; padding: 10px 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.loading-row { height: 74px; background: linear-gradient(90deg,#fff 25%,#f3f5f4 50%,#fff 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.state-label, .tier-badge { padding: 4px 9px; border: 1px solid #cde5d4; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: .7rem; font-weight: 750; }
.spec-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.spec-tag { display: inline-flex !important; min-height: 24px; align-items: center; padding: 2px 8px; border: 1px solid #d4ddd9; border-radius: 999px; color: #405049 !important; background: #f7f9f8; font-size: .68rem !important; font-weight: 700; white-space: nowrap; }
.metric-specs { margin: 3px 0; }
.expiry-warning { display: flex; align-items: flex-start; gap: 12px; margin: 16px 20px 0; padding: 12px 14px; border: 1px solid #f1c46b; border-left: 4px solid #d88900; border-radius: 6px; color: #624600; background: #fff8e7; font-size: .8rem; }
.expiry-warning strong { flex: 0 0 auto; }
.expiry-warning span { color: #70571b; }
.lease-details { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 0; }
.lease-details > div { min-width: 0; padding: 16px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lease-details > div:last-child { border-right: 0; }
.lease-details dt { color: var(--muted); font-size: .7rem; }
.lease-details dd { overflow-wrap: anywhere; margin: 6px 0 0; font-size: .86rem; font-weight: 700; }
.lease-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 16px 20px; }
.rules { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 35px; margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }
.rules h2 { margin: 4px 0; font-size: 1.15rem; }
.rules ul { display: grid; gap: 8px; margin: 0; padding-left: 1.1rem; color: #52605a; font-size: .82rem; }
.dialog { width: min(500px,calc(100% - 28px)); max-height: calc(100vh - 28px); padding: 0; overflow: auto; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: #fff; box-shadow: 0 24px 70px rgba(15,30,24,.2); }
.dialog::backdrop { background: rgba(20,31,27,.42); }
.dialog-content { padding: 22px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.dialog h2 { margin: 3px 0 0; font-size: 1.2rem; }
.confirm-resource { display: flex; align-items: center; gap: 13px; padding: 8px 0; }
.os-icon { display: inline-block; width: 28px; height: 28px; flex: 0 0 auto; object-fit: contain; text-align: center; }
.system-list { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.system-badge { display: inline-flex !important; align-items: center; gap: 8px; }
.system-badge > span { color: var(--text); font-size: .85rem; font-weight: 700; }
.system-badge .os-icon { width: 24px; height: 24px; }
.confirm-resource strong, .confirm-resource span { display: block; }
.confirm-resource span { color: var(--muted); font-size: .76rem; }
.warning-box { margin-top: 14px; padding: 13px; border-left: 3px solid var(--amber); background: #fff9e9; font-size: .8rem; }
.warning-box p { margin: 4px 0 0; color: #6b6046; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin: 16px 0; color: #49564f; font-size: .8rem; }
.check-row input { margin-top: 3px; accent-color: var(--green); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.tab { padding: 10px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: #fff; cursor: pointer; }
.tab.active { border-bottom-color: var(--green); color: var(--green-dark); font-weight: 700; }
.auth-form { display: grid; gap: 8px; }
.auth-form label, .dialog-content > label { font-size: .78rem; font-weight: 700; }
.auth-form input, .secret-textarea { width: 100%; padding: 10px 11px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); background: #fff; }
.input-help { margin: 0 0 8px; color: var(--muted); font-size: .7rem; }
.form-error { margin: 3px 0; color: var(--red); font-size: .76rem; }
.secret-output { display: block; margin: 16px 0 12px; padding: 14px; border: 1px dashed var(--line-strong); border-radius: 6px; background: #f7f9f8; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 1.05rem; text-align: center; overflow-wrap: anywhere; }
.credential-fields { display: grid; gap: 12px; margin-top: 16px; }
.credential-fields > label { display: grid; gap: 5px; color: var(--muted); font-size: .76rem; font-weight: 700; }
.copy-field { display: flex; align-items: stretch; }
.copy-field input { min-width: 0; flex: 1; padding: 10px 11px; border: 1px solid var(--line-strong); border-right: 0; border-radius: 6px 0 0 6px; color: var(--text); background: #fff; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.field-copy { width: 38px; border: 1px solid var(--line-strong); border-radius: 0 6px 6px 0; color: var(--green-dark); background: var(--green-soft); cursor: pointer; }
.field-copy:hover { background: #d9f1df; }
.secret-textarea { min-height: 70px; margin: 7px 0 10px; resize: vertical; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.code-line { overflow-x: auto; margin: 14px 0 0; padding: 10px; color: #405049; background: #f4f6f5; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: .72rem; white-space: nowrap; }
.notice-panel { padding: 20px; }
.has-announcement { padding-top: 48px; }
.announcement-banner { position: fixed; z-index: 90; inset: 0 0 auto; height: 48px; display: flex; align-items: center; gap: 12px; padding: 6px 16px; background: #eaf4ff; border-bottom: 1px solid #c8ddf2; box-shadow: var(--shadow); }
.announcement-preview { display: flex; flex: 1; min-width: 0; align-items: center; gap: 16px; border: 0; background: transparent; color: #235b91; text-align: left; cursor: pointer; }
.announcement-preview strong { max-width: 45%; flex-shrink: 0; }
.announcement-preview strong, .announcement-preview span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .8rem; }
.announcement-banner .close-button { flex-shrink: 0; }
.has-announcement .sidebar { top: 48px; height: calc(100vh - 48px); }
.plain-text, .table-scroll td { white-space: pre-wrap; overflow-wrap: anywhere; }
.account-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.account-section h3 { margin: 0 0 10px; font-size: .86rem; }
.account-details { display: grid; gap: 12px; }
.account-details dt { color: var(--muted); font-size: .8rem; }
.account-details dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.table-scroll table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.table-scroll th, .table-scroll td { min-width: 100px; padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
#noticeContent { width: 100%; }
#tierBadge { max-width: 180px; overflow-wrap: anywhere; }
.toast { position: fixed; right: 24px; top: 24px; z-index: 120; display: flex; align-items: center; gap: 10px; width: 360px; max-width: calc(100% - 32px); min-height: 64px; padding: 12px 16px; border: 1px solid #b7cfe9; border-radius: 10px; color: #245480; background: #eff6ff; box-shadow: var(--shadow); font-size: .95rem; overflow-wrap: anywhere; }
.toast-icon { flex: 0 0 24px; font-size: 1.3rem; text-align: center; }
.user-icon { margin-right: 6px; color: var(--green); }
.quota-summary { padding: 12px 0; }
.quota-track { height: 12px; background: #e8ece9; border-radius: 8px; overflow: hidden; margin: 10px 0; }
#quotaFill { height: 100%; transition: width .3s; border-radius: inherit; }
.history-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 20px; }
.history-tools input { min-width: 180px; flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.history-list { padding: 0 20px; }
.history-row { padding: 16px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.history-row-title, .history-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.history-row p { margin: 8px 0; font-size: .85rem; }
.history-row small { color: var(--muted); }
.history-actions { margin-top: 10px; }
.booking-success { display: inline-block; padding: 2px 9px; border-radius: 20px; color: var(--green-dark); background: var(--green-soft); font-size: .72rem; }
.toast strong { display: block; margin-bottom: 4px; }
.toast.success { border-color: #b7d9c2; color: #174d2a; background: #eef9f1; }
.toast.error { border-color: #edb9b9; color: #902626; background: #fff2f2; }
.toast.warning { border-color: #ebcf8d; color: #805c12; background: #fffaeb; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .status-dot.in-use { animation: none; opacity: 1; box-shadow: 0 0 0 3px #d9f5e1; }
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 80; width: 220px; transform: translateX(-105%); transition: transform .18s ease; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .menu-button { display: grid; place-items: center; }
  .topbar { justify-content: flex-start; }
  .account-actions { margin-left: auto; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .server-row { grid-template-columns: minmax(170px,1.5fr) repeat(2,minmax(100px,1fr)); }
  .server-row .cell:last-child { display: none; }
  .lease-details { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .lease-details > div:nth-child(2) { border-right: 0; }
}
@media (max-width: 600px) {
  .topbar { padding: 12px 14px; flex-wrap: wrap; gap: 10px; }
  .breadcrumb { display: none; }
  .topbar h1 { font-size: .95rem; }
  main { width: min(100% - 26px,520px); padding-top: 20px; }
  .summary-band { align-items: flex-start; flex-direction: column; gap: 16px; }
  .home-status { grid-template-columns: 1fr; gap: 16px; }
  .home-status-actions { justify-content: flex-start; }
  .process-panel { grid-template-columns: 1fr; gap: 16px; }
  .process-steps { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .process-steps li { border-left: 0; border-top: 1px solid var(--line); padding: 10px 0 0; }
  .resource-tabs { width: calc(100% - 24px); margin: 10px 12px; }
  .mode-tab { min-width: 0; }
  .metrics { grid-template-columns: 1fr; }
  .metrics > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics > div:last-child { border-bottom: 0; }
  .server-row { grid-template-columns: 1fr 150px; gap: 10px; }
  .server-row .cell:nth-child(3) { display: none; }
  .lease-details { grid-template-columns: 1fr; }
  .lease-details > div { border-right: 0; }
  .rules { grid-template-columns: 1fr; gap: 12px; }
  .account-actions .tier-badge { display: none !important; }
  .dialog-actions, .lease-actions { flex-direction: column; }
  .dialog-actions .button, .lease-actions .button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .status-dot.available::before, .status-dot.available::after { display: none; }
  *,*::before,*::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
