/* Customer portal: readable status and reachable controls on narrow screens. */
.portal-unified .sidebar {overflow-y:auto;overscroll-behavior-y:contain}
.portal-unified .sidebar>* {flex-shrink:0}
.portal-unified .portal-logo-frame {height:auto;aspect-ratio:190 / 46;flex-shrink:0}
.portal-unified .portal-logo-frame img {width:125.789474%;left:-13.684211%;top:-126.086957%}
.portal-unified .status.playing,.portal-unified .status.online {color:#c8f0b8}
.portal-unified .status.playing>span,.portal-unified .status.online>span {background:#bde7ab}
.portal-unified .status.starting,.portal-unified .status.stopping,.portal-unified .status.maintenance {color:#f1d495}
.portal-unified .status.starting>span,.portal-unified .status.stopping>span,.portal-unified .status.maintenance>span {background:#e7c273}
.portal-unified .status.unknown {color:#f1c4ad}
.portal-unified .status.unknown>span {background:#dea385}
.portal-unified .status.offline,.portal-unified .status.suspended,.portal-unified .status.retired {color:#becdc6}
.portal-unified .status.offline>span,.portal-unified .status.suspended>span,.portal-unified .status.retired>span {background:#8b9b94;box-shadow:none}
.portal-unified .status b {font-weight:600}
.portal-unified .server-card .card-top {flex-wrap:wrap;gap:10px}
.portal-unified .server-card .status.playing {border-color:#5c7f4d;background:#203622}
.portal-unified .server-card .status.starting,.portal-unified .server-card .status.maintenance {border-color:#76633c;background:#302c20}
.portal-unified .server-card .status-detail {font-size:12px;line-height:1.6;color:#bdd0c3;min-height:20px;margin:12px 0 0;overflow-wrap:anywhere}
.portal-unified #server-panel .server-status-block {min-width:0;max-width:270px;justify-self:end}
.portal-unified #server-panel .server-status-block .status {display:inline-flex;white-space:normal}
.portal-unified #server-panel .server-status-block .status-detail {color:#d0dfcf;font-size:12px;line-height:1.6;max-width:250px;margin:9px 0 0}
.server-menu-toggle {display:none}
.server-menu {min-width:0;position:static}
.portal-unified #server-panel .server-menu .server-navigation {position:static}
@media(max-width:1050px) {
  .server-menu {position:static;margin-bottom:20px}
  .portal-unified #server-panel.server-menu-ready .server-menu-toggle {display:flex;width:100%;align-items:center;gap:14px;text-align:left;border:1px solid #3b5547;border-radius:13px;background:#142a24;color:#e2efdf;padding:14px 16px;min-height:60px;cursor:pointer;font:inherit}
  .server-menu-toggle>span:nth-child(2) {flex:1;min-width:0}
  .server-menu-toggle small {display:block;font-size:10px;color:#a9bfb0;line-height:1.5}
  .server-menu-toggle strong {display:block;font-size:14px;line-height:1.6;overflow-wrap:anywhere}
  .server-menu-toggle .menu-chevron {font-size:23px;line-height:1;transition:transform .18s}
  .server-menu-toggle[aria-expanded=true] .menu-chevron {transform:rotate(180deg)}
  .portal-unified #server-panel.server-menu-ready .server-navigation:not(.is-open) {display:none}
  .portal-unified #server-panel .server-menu .server-navigation {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding:9px;gap:6px;margin:8px 0 0;max-width:100%}
  .portal-unified #server-panel .server-menu .server-navigation>a {min-width:0;white-space:normal;min-height:48px;padding:10px;font-size:12px}
  .portal-unified #server-panel .server-menu .server-navigation>.mini-label {display:block;grid-column:1/-1;margin:12px 8px 5px;font-size:9px}
}
@media(max-width:700px) {
  .portal-unified .portal-topbar .icon-btn,.portal-unified .portal-topbar .profile-pill,.portal-unified .help-button {min-width:44px;min-height:44px}
  .portal-unified .portal-topbar {padding-inline:12px;gap:8px}
  .portal-unified .topbar-right {gap:8px}
  .portal-unified .website-return {font-size:11px;padding-inline:10px}
  .portal-unified #server-panel .server-hero {padding:19px 17px;gap:12px}
  .portal-unified #server-panel .server-heading h1 {font-size:clamp(22px,6vw,27px);line-height:1.22}
  .portal-unified #server-panel .server-status-block {grid-column:1/-1;justify-self:stretch;max-width:none;display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px}
  .portal-unified #server-panel .server-status-block .status {padding:7px 10px;min-height:32px;flex:none;font-size:12px}
  .portal-unified #server-panel .server-status-block .status-detail {flex:1 1 140px;max-width:none;margin:0;font-size:12px}
  .portal-unified #server-panel .server-toolbar {padding-top:14px;gap:12px}
  .portal-unified #server-panel .server-connect .icon-btn {width:44px;height:44px}
  .portal-unified #server-panel .server-connect code {line-height:1.7;font-size:12px}
  .portal-unified #server-panel .panel-back {min-height:44px;display:inline-flex;align-items:center;margin-bottom:8px}
  .portal-unified #server-panel :is(.history-range button,.ph-tab,.icon-btn,.workspace-tabs a) {min-height:44px}
  .portal-unified #server-panel .history-range {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:5px}
  .portal-unified #server-panel .history-range button {padding-inline:5px;font-size:12px}
  .portal-unified #server-panel .management-title {flex-wrap:wrap}
  .portal-unified #server-panel .management-title .tag {max-width:100%;text-align:left}
  .portal-unified #server-panel .workspace-heading {gap:14px}
  .portal-unified #server-panel .files-table {display:block;width:100%;table-layout:auto}
  .portal-unified #server-panel .files-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .portal-unified #server-panel .files-table tbody {display:block;width:100%}
  .portal-unified #server-panel .files-table tr {display:flex;flex-direction:column;padding:15px 12px;gap:10px;border-bottom:1px solid #2b4140}
  .portal-unified #server-panel .files-table tr:last-child {border-bottom:0}
  .portal-unified #server-panel .files-table td {display:block;width:100%!important;max-width:none!important;padding:0!important;border:0;overflow-wrap:anywhere;font-size:13px;line-height:1.65}
  .portal-unified #server-panel .files-table td:nth-child(2),.portal-unified #server-panel .files-table td:empty {display:none}
  .portal-unified #server-panel .files-table td:last-child:has(.file-actions:empty) {display:none}
  .portal-unified #server-panel .file-actions {display:flex;flex-wrap:wrap;gap:8px}
  .portal-unified #server-panel .file-actions .btn {flex:1 1 110px;width:auto;min-height:44px;padding:11px}
  .portal-unified #server-panel .file-editor textarea {font-size:16px;line-height:1.6;min-height:260px!important}
  .portal-unified .suite-row {flex-wrap:wrap;align-items:flex-start}
  .portal-unified .suite-row>form {max-width:100%}
  .portal-unified .suite-row .btn {min-height:44px}
  .portal-unified .portal-content>.panel-card {padding:22px 19px}
}
@media(max-width:360px) {
  .portal-unified .portal-content,.portal-unified .portal-content:has(#server-panel) {padding-inline:12px}
  .portal-unified #server-panel .server-menu .server-navigation {grid-template-columns:1fr}
  .portal-unified #server-panel .server-status-block .status-detail {flex-basis:100%}
  .portal-unified .metric-grid {grid-template-columns:1fr;gap:8px}
  .portal-unified .metric {display:flex;align-items:center;justify-content:space-between;gap:12px}
  .portal-unified .metric>strong {margin:0;font-size:24px;text-align:right}
}
@media(prefers-reduced-motion:reduce) {.server-menu-toggle .menu-chevron{transition:none}}

/* Diels appearance variants: generated by build_palette.py. */
html[data-theme="light"] .portal-unified .status.playing,html[data-theme="light"] .portal-unified .status.online{color:#377e1b}
html[data-theme="light"] .portal-unified .status.playing>span,html[data-theme="light"] .portal-unified .status.online>span{background:#336020}
html[data-theme="light"] .portal-unified .status.starting,html[data-theme="light"] .portal-unified .status.stopping,html[data-theme="light"] .portal-unified .status.maintenance{color:#846115}
html[data-theme="light"] .portal-unified .status.starting>span,html[data-theme="light"] .portal-unified .status.stopping>span,html[data-theme="light"] .portal-unified .status.maintenance>span{background:#604b20}
html[data-theme="light"] .portal-unified .status.unknown{color:#833b16}
html[data-theme="light"] .portal-unified .status.unknown>span{background:#603520}
html[data-theme="light"] .portal-unified .status.offline,html[data-theme="light"] .portal-unified .status.suspended,html[data-theme="light"] .portal-unified .status.retired{color:#4b6257}
html[data-theme="light"] .portal-unified .status.offline>span,html[data-theme="light"] .portal-unified .status.suspended>span,html[data-theme="light"] .portal-unified .status.retired>span{background:#dfe3e1}
html[data-theme="light"] .portal-unified .server-card .status.playing{border-color:#b0c2b5;background:#f1f6f1}
html[data-theme="light"] .portal-unified .server-card .status.starting,html[data-theme="light"] .portal-unified .server-card .status.maintenance{border-color:#b0c2b5;background:#f6f5f2}
html[data-theme="light"] .portal-unified .server-card .status-detail{color:#486551}
html[data-theme="light"] .portal-unified #server-panel .server-status-block .status-detail{color:#243423}
@media (max-width:1050px) {html[data-theme="light"] .portal-unified #server-panel.server-menu-ready .server-menu-toggle{border:1px solid #b0c2b5;background:#f4f8f7;color:#253522}
html[data-theme="light"] .server-menu-toggle small{color:#4a6352}}
@media (max-width:700px) {html[data-theme="light"] .portal-unified #server-panel .files-table tr{border-bottom:1px solid #b0c2b5}}
html[data-theme="dark"] .portal-unified .status.playing,html[data-theme="dark"] .portal-unified .status.online{color:#c8f0b8}
html[data-theme="dark"] .portal-unified .status.playing>span,html[data-theme="dark"] .portal-unified .status.online>span{background:#bde7ab}
html[data-theme="dark"] .portal-unified .status.starting,html[data-theme="dark"] .portal-unified .status.stopping,html[data-theme="dark"] .portal-unified .status.maintenance{color:#f1d495}
html[data-theme="dark"] .portal-unified .status.starting>span,html[data-theme="dark"] .portal-unified .status.stopping>span,html[data-theme="dark"] .portal-unified .status.maintenance>span{background:#e7c273}
html[data-theme="dark"] .portal-unified .status.unknown{color:#f1c4ad}
html[data-theme="dark"] .portal-unified .status.unknown>span{background:#dea385}
html[data-theme="dark"] .portal-unified .status.offline,html[data-theme="dark"] .portal-unified .status.suspended,html[data-theme="dark"] .portal-unified .status.retired{color:#c0c6cb}
html[data-theme="dark"] .portal-unified .status.offline>span,html[data-theme="dark"] .portal-unified .status.suspended>span,html[data-theme="dark"] .portal-unified .status.retired>span{background:#8b9b94}
html[data-theme="dark"] .portal-unified .server-card .status.playing{border-color:#384045;background:#181c20}
html[data-theme="dark"] .portal-unified .server-card .status.starting,html[data-theme="dark"] .portal-unified .server-card .status.maintenance{border-color:#384045;background:#171a1d}
html[data-theme="dark"] .portal-unified .server-card .status-detail{color:#c1c7cc}
html[data-theme="dark"] .portal-unified #server-panel .server-status-block .status-detail{color:#d3d8db}
@media (max-width:1050px) {html[data-theme="dark"] .portal-unified #server-panel.server-menu-ready .server-menu-toggle{border:1px solid #384045;background:#121417;color:#e5e7e9}
html[data-theme="dark"] .server-menu-toggle small{color:#acb5bb}}
@media (max-width:700px) {html[data-theme="dark"] .portal-unified #server-panel .files-table tr{border-bottom:1px solid #384045}}
