:root {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-size: 14px;
  --bg: #141c27;
  --surface: #1c2735;
  --raised: #253243;
  --sidebar: #182330;
  --border: #344358;
  --border-soft: #2b3a4c;
  --text: #e9eff7;
  --muted: #a9b8cc;
  --accent: #97bcff;
  --blue: #346bce;
  --danger: #f3a4ac;
  --danger-bg: #382731;
  --notice: #23364d;
  --console: #131e2b;
  --success: #a1dfbd;
  --success-bg: #244236;
  --shadow: 0 4px 18px #08111d16;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3f6fb;
  --surface: #fff;
  --raised: #f3f6fb;
  --sidebar: #f9fbfe;
  --border: #d8e1ee;
  --border-soft: #e9eef5;
  --text: #26364a;
  --muted: #60738c;
  --accent: #285fb5;
  --blue: #2c63c2;
  --danger: #a83246;
  --danger-bg: #fff4f5;
  --notice: #edf4ff;
  --console: #f7f9fc;
  --success: #236b47;
  --success-bg: #ecf8f0;
  --shadow: 0 3px 15px #233f6a05;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a.button { cursor: pointer; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  min-height: 39px; padding: 9px 14px;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--surface); color: var(--text);
  font-size: 13px; font-weight: 500; line-height: 1.4; text-decoration: none;
  transition: background .13s, border-color .13s;
}
button:hover, .button:hover { background: var(--raised); border-color: var(--muted); }
button:disabled { opacity: .46; cursor: not-allowed; }
button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
button.primary:hover { background: #2b5eb7; border-color: #2b5eb7; }
.danger { color: var(--danger); border-color: var(--border); background: transparent; }
.danger:hover { background: var(--danger-bg); border-color: var(--danger); }
.link { min-height: 30px; padding: 3px 0; background: none; border: 0; color: var(--accent); }
.link:hover { background: none; text-decoration: underline; }
a { color: var(--accent); font-size: 13px; text-underline-offset: 3px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
input, textarea, select {
  min-width: 0; max-width: 100%; padding: 10px 12px; min-height: 40px;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
textarea { resize: vertical; line-height: 1.65; }
label { display: grid; gap: 9px; font-size: 13px; color: var(--muted); margin: 16px 0; line-height: 1.5; }
label input, label textarea, label select { width: 100%; color: var(--text); }
.check { display: flex; align-items: center; gap: 9px; }
.check input { width: 16px; min-height: 16px; height: 16px; margin: 0; accent-color: var(--blue); flex-shrink: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: 27px; font-weight: 650; letter-spacing: -.6px; line-height: 1.25; }
h2 { font-size: 15px; font-weight: 600; line-height: 1.45; }
p { line-height: 1.7; }
small, .help { color: var(--muted); font-size: 12px; line-height: 1.65; }
aside {
  position: fixed; inset: 0 auto 0 0; z-index: 2; width: 236px;
  display: flex; flex-direction: column; padding: 30px 16px 24px;
  background: var(--sidebar); border-right: 1px solid var(--border-soft);
  overflow-y: auto;
}
.brand { padding: 0 10px 31px; font-size: 18px; font-weight: 650; letter-spacing: -.35px; }
.brand small { display: block; margin-top: 6px; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.nav-toggle { display: none; }
nav { display: grid; gap: 5px; }
.nav-section { margin: 20px 12px 7px; font-size: 10px; letter-spacing: 1px; font-weight: 600; color: var(--muted); }
.nav-section:first-child { margin-top: 0; }
nav button {
  justify-content: flex-start; padding: 11px 12px; min-height: 43px;
  color: var(--muted); background: none; border: 1px solid transparent; border-radius: 7px;
  text-align: left; font-size: 13px; font-weight: 500;
}
nav button svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
nav button:hover { color: var(--text); border-color: transparent; background: var(--raised); }
nav button.active { color: var(--accent); background: var(--notice); border-color: transparent; }
nav button.active svg { opacity: 1; }
.sidebar-end { margin-top: auto; display: grid; gap: 12px; padding: 25px 12px 0; }
.sidebar-end > span { padding-top: 20px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.sidebar-end button { justify-content: flex-start; padding: 0; min-height: 25px; background: none; border: 0; color: var(--muted); font-size: 12px; }
.sidebar-end button:hover { color: var(--text); }
.sidebar-end small { margin-top: 7px; font-size: 11px; }
.main { margin-left: 236px; min-width: 0; }
header {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  height: 68px; padding: 0 36px; border-bottom: 1px solid var(--border-soft); background: var(--surface);
}
header strong { font-size: 14px; font-weight: 500; }
#connection { font-size: 12px; color: var(--muted); }
#connection::before { content: ''; display: inline-block; margin-right: 8px; height: 7px; width: 7px; border-radius: 50%; background: #5ca27d; }
#connection.offline::before { background: var(--danger); }
.content { max-width: 1450px; margin: auto; padding: 30px 36px 12px; }
.heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 26px; }
.heading p { margin-top: 8px; color: var(--muted); font-size: 13px; }
.server-summary { padding: 25px 26px 22px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 12px; box-shadow: var(--shadow); }
.section-label { display: block; margin-bottom: 11px; color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 1px; }
.server-heading { margin-bottom: 22px; }
.status { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 7px 11px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); font-size: 12px; }
.status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.running { color: var(--success); background: var(--success-bg); border-color: transparent; }
.status.killed, .status.crashed, .status.recovery { color: var(--danger); background: var(--danger-bg); border-color: transparent; }
.notice { padding: 13px 16px; margin-bottom: 20px; border: 1px solid var(--border-soft); border-radius: 8px; background: var(--notice); font-size: 13px; line-height: 1.65; }
.notice.error { color: var(--danger); background: var(--danger-bg); border-color: var(--danger); }
.notice button { margin-left: 12px; }
#demo-banner { color: var(--muted); font-size: 12px; padding: 11px 15px; background: transparent; border-style: dashed; }
.control-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.primary-controls { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.operation-state { margin-top: 15px; color: var(--accent); font-size: 12px; }
.operation-state::before { content: ''; display: inline-block; vertical-align: -2px; width: 11px; height: 11px; border: 2px solid var(--border); border-top-color: var(--accent); border-radius: 50%; margin-right: 9px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.metrics-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 24px; }
.metrics-grid > div { padding: 19px 20px 18px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.metrics-grid span { color: var(--muted); font-size: 12px; font-weight: 500; }
.metrics-grid strong { display: block; font-size: 27px; font-weight: 600; letter-spacing: -.5px; font-variant-numeric: tabular-nums; margin: 9px 0 7px; }
.metrics-grid small { display: block; overflow-wrap: anywhere; font-size: 11px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.overview-columns { grid-template-columns: minmax(0,1.7fr) minmax(270px,1fr); }
.panel { min-width: 0; overflow: hidden; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--border-soft); border-radius: 10px; box-shadow: var(--shadow); }
.panel-title { min-height: 61px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border-soft); }
.panel-title input { max-width: 265px; }
.panel-title input, .panel-title select { min-height: 35px; padding: 7px 10px; font-size: 12px; }
.padded { padding: 24px; }
.padded > h2 { margin-bottom: 15px; }
.padded > p { margin: 14px 0; color: var(--muted); font-size: 13px; }
.console-tail, .console { margin: 0; padding: 18px 20px; background: var(--console); color: var(--text); font: 12px/1.85 Consolas,"Cascadia Mono",monospace; overflow: auto; overflow-wrap: anywhere; white-space: pre-wrap; }
.console-tail { height: 280px; }
.console { height: 57vh; min-height: 320px; border: 1px solid var(--border); border-bottom: 0; border-radius: 9px 9px 0 0; }
.command-form { display: flex; gap: 10px; padding: 13px; border-top: 1px solid var(--border-soft); background: var(--surface); }
.command-form input { flex: 1; font: 12px Consolas,monospace; }
.console + .command-form { border: 1px solid var(--border); border-radius: 0 0 9px 9px; }
.maintenance { display: grid; gap: 10px; padding: 20px; }
.maintenance > button { width: 100%; justify-content: flex-start; }
.maintenance > small { margin: -3px 0 8px; font-size: 11px; }
.maintenance label { margin: 0; }
.separator { height: 1px; margin: 5px 0 10px; background: var(--border-soft); }
.inline { display: flex; align-items: center; gap: 9px; }
.chart { height: 195px; padding: 17px 20px 8px; position: relative; }
.chart svg { height: 100%; width: 100%; overflow: visible; }
.chart p { position: absolute; inset: 74px 15px auto; text-align: center; color: var(--muted); font-size: 13px; }
.panel-note { padding: 13px 20px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 11px; line-height: 1.7; }
.activity-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border-soft); font-size: 13px; }
.activity-row:last-child { border-bottom: 0; }
.activity-row small { display: block; font-size: 11px; overflow-wrap: anywhere; margin-top: 4px; }
.activity-row time { margin-left: auto; color: var(--muted); font-size: 11px; flex-shrink: 0; }
.job-status { min-width: 61px; color: var(--muted); font-size: 11px; }
.job-status.failed { color: var(--danger); }
.job-status.done { color: var(--success); }
.empty { padding: 32px 20px; color: var(--muted); font-size: 13px; text-align: center; }
.toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; }
.toolbar > input { flex: 1; min-width: 160px; }
.toolbar .check { margin: 0; font-size: 12px; }
.toolbar select, .toolbar button { font-size: 12px; }
.help { margin: 14px 0 24px; }
.table-scroll { overflow: auto; max-height: 550px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
th { position: sticky; top: 0; padding: 13px 20px; background: var(--raised); color: var(--muted); font-size: 12px; font-weight: 500; }
td { padding: 14px 20px; border-top: 1px solid var(--border-soft); overflow-wrap: anywhere; }
tbody tr:hover { background: var(--raised); }
td small { display: block; font-size: 11px; margin-top: 4px; }
td button, td .button { padding: 7px 10px; min-height: 32px; font-size: 11px; margin: 3px 4px 3px 0; }
.file-name { font: 12px Consolas,monospace; }
.player-list { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px; }
.player-chip { padding: 8px 12px; border-radius: 6px; background: var(--raised); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 28px; }
.wide { grid-column: 1 / -1; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 21px; margin-top: 20px; border-top: 1px solid var(--border-soft); }
.form-footer > span { color: var(--muted); font-size: 12px; }
details { margin-top: 22px; font-size: 13px; }
summary { cursor: pointer; padding: 7px 0; }
details pre { max-height: 450px; overflow: auto; font: 12px/1.7 Consolas,monospace; white-space: pre-wrap; word-break: break-word; }
footer { display: flex; justify-content: space-between; gap: 20px; max-width: 1450px; margin: auto; padding: 5px 36px 27px; color: var(--muted); font-size: 11px; }
dialog { width: calc(100% - 36px); max-width: 510px; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 22px 80px #07102040; }
dialog::backdrop { background: #07132399; }
dialog h2 { font-size: 21px; font-weight: 600; }
dialog p { margin: 16px 0 22px; font-size: 14px; color: var(--muted); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 25px; }
#report-dialog { max-width: 1100px; padding: 0; width: calc(100% - 35px); }
#report-output { padding: 20px; margin: 0; max-height: 65vh; overflow: auto; font: 12px/1.8 Consolas,monospace; white-space: pre-wrap; word-break: break-word; }
#report-note { margin: 13px 20px 0; font-size: 12px; }
#toast { position: fixed; bottom: 24px; right: 24px; z-index: 8; max-width: 480px; padding: 15px 20px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 8px; box-shadow: 0 8px 35px #07132326; font-size: 13px; }
#toast.error { border-left-color: var(--danger); }
.login-screen { display: grid; place-items: center; min-height: 100vh; padding: 28px; }
.login-screen form { width: 420px; max-width: 100%; padding: 38px; border: 1px solid var(--border-soft); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow); }
.login-screen h1 { font-size: 28px; margin-bottom: 10px; }
.login-screen p { font-size: 14px; color: var(--muted); }
.login-screen .product { font-size: 10px; letter-spacing: 1.1px; margin-bottom: 25px; }
.login-screen label { margin-top: 25px; }
.login-screen small { display: block; margin-top: 23px; }
.login-screen button { width: 100%; margin-top: 10px; }
#login-error { margin-top: 14px; color: var(--danger); }
.report-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; padding: 16px 20px; border-bottom: 1px solid var(--border-soft); }
.report-row span { overflow-wrap: anywhere; }
.report-row small { display: block; font-size: 11px; margin-top: 5px; }
.roster-action { min-height: 24px; cursor: pointer; background: none; border: 0; padding: 0; color: var(--accent); text-align: left; }
@media (max-width: 1250px) {
  aside { width: 210px; padding: 28px 12px 22px; }
  .main { margin-left: 210px; }
  .content { padding: 26px 26px 12px; }
  header, footer { padding-left: 26px; padding-right: 26px; }
  .metrics-grid { gap: 11px; }
  .metrics-grid > div { padding: 17px 15px; }
  .metrics-grid strong { font-size: 24px; }
  .overview-columns { grid-template-columns: minmax(0,1.4fr) minmax(260px,1fr); }
}
@media (max-width: 1050px) {
  .overview-columns { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .columns:not(.overview-columns) { grid-template-columns: 1fr; }
  .control-bar { align-items: flex-start; }
  .primary-controls { gap: 8px; }
  .primary-controls button { padding: 9px 11px; }
  .server-summary { padding: 23px; }
  .heading { align-items: flex-start; }
  .form-grid { gap: 0 20px; }
}
@media (max-width: 760px) {
  aside { position: static; display: grid; align-items: center; grid-template-columns: 1fr auto; width: auto; padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .brand { padding: 0; font-size: 18px; }
  .nav-toggle { display: inline-flex; grid-column: 2; grid-row: 1; }
  .brand small { display: inline; margin-left: 12px; font-size: 11px; }
  nav { display: none; grid-column: 1 / -1; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; margin-top: 18px; }
  aside.mobile-nav-open nav { display: grid; }
  .nav-section { display: none; }
  nav button { gap: 7px; padding: 9px; font-size: 12px; min-height: 42px; }
  nav button svg { width: 16px; height: 16px; }
  .sidebar-end { display: none; grid-column: 1 / -1; align-items: center; flex-wrap: wrap; gap: 18px; padding: 15px 3px 0; }
  aside.mobile-nav-open .sidebar-end { display: flex; }
  .sidebar-end > span { border: 0; padding: 0; margin-right: auto; font-size: 11px; }
  .sidebar-end small { display: none; }
  .sidebar-end button { min-height: 25px; }
  .main { margin-left: 0; }
  header { height: 52px; padding: 0 22px; }
  .content { padding: 22px 20px 10px; }
  .server-summary { padding: 22px; }
  .control-bar { flex-wrap: wrap; gap: 12px; }
  .metrics-grid { gap: 12px; }
  .metrics-grid > div { padding: 18px; }
  .panel-title { flex-wrap: wrap; }
  .panel-title .inline { flex-wrap: wrap; }
  .panel-title input { max-width: 100%; }
  footer { padding: 5px 20px 24px; }
}
@media (max-width: 480px) {
  aside { padding: 18px 13px 12px; }
  .brand small { display: block; margin: 5px 0 0; }
  nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  nav button { padding: 8px 10px; min-height: 40px; }
  .content { padding: 18px 13px 10px; }
  header { padding: 0 15px; }
  .server-summary { padding: 19px 17px; }
  h1 { font-size: 24px; }
  .server-heading { flex-direction: column; gap: 14px; }
  .control-bar { gap: 16px; }
  .primary-controls { width: 100%; }
  .primary-controls button { flex-grow: 1; font-size: 12px; }
  .control-bar > .danger { min-height: 34px; font-size: 12px; }
  .metrics-grid > div { padding: 16px 13px; }
  .metrics-grid strong { font-size: 23px; }
  .metrics-grid small { font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .heading { flex-wrap: wrap; gap: 16px; }
  .padded { padding: 20px; }
  .panel-title { padding: 15px 17px; }
  .panel-title h2 { font-size: 14px; }
  .console-tail, .console { padding: 15px; font-size: 12px; }
  .console-tail { height: 250px; }
  .command-form { padding: 10px; gap: 7px; }
  .command-form button { padding: 8px 10px; font-size: 12px; }
  .command-form input { width: 0; }
  footer { padding: 5px 15px 22px; flex-wrap: wrap; gap: 8px; }
  #toast { left: 15px; right: 15px; }
  .report-row { gap: 12px; padding: 14px 17px; }
  .activity-row { flex-wrap: wrap; gap: 9px; padding: 14px 17px; }
  .activity-row time { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Appearance controls and settings */
.sidebar-end { padding:20px 8px 0; gap:14px; border-top:1px solid var(--border-soft); margin-top:24px; }
.appearance > span { display:block; color:var(--muted); font-size:12px; margin-bottom:8px; }
.theme-switch { display:flex; padding:3px; gap:3px; border:1px solid var(--border); border-radius:8px; background:var(--bg); }
.sidebar-end .theme-switch button { flex:1; min-height:32px; justify-content:center; border-radius:5px; font-size:12px; padding:4px 8px; }
.sidebar-end .theme-switch button[aria-pressed="true"] { color:var(--text); background:var(--surface); box-shadow:0 1px 3px #0002; }
.sidebar-end .logout-button { min-height:38px; gap:10px; padding:8px 10px; border:1px solid var(--border); border-radius:7px; color:var(--text); font-size:13px; }
.sidebar-end .logout-button:hover { background:var(--raised); }
.logout-button svg { width:17px; height:17px; }
.property-section + .property-section { border-top:1px solid var(--border-soft); padding-top:24px; margin-top:22px; }
.property-section h2 { margin:0 0 20px; font-size:17px; }
.property-section label small { line-height:1.5; }
.motd-preview { background:#232831; border:1px solid #49505d; border-radius:8px; padding:16px 20px; color:#fff; margin:0 0 20px; }
.motd-preview > span,.motd-preview small { display:block; color:#b2bccb; font-family:inherit; font-size:12px; }
.motd-preview strong { display:block; margin:10px 0 4px; }
#motd-preview-text { white-space:pre-wrap; overflow-wrap:anywhere; font-family:Consolas,monospace; color:#aaa; min-height:44px; }
.motd-preview small { margin-top:12px; }
.routine-card-title { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:18px; }
.routine-card-title label { margin:0; }
.routine-card .routine-effect { align-self:center; line-height:1.6; }
.timezone-panel label { max-width:360px; }
.timezone-panel p { margin-bottom:0; }
.weekdays { border:0; padding:0; margin:0 0 20px; display:flex; gap:8px; flex-wrap:wrap; }
.weekdays legend { margin-bottom:10px; font-size:13px; }
.weekdays label { margin:0; cursor:pointer; position:relative; }
.weekdays input { position:absolute; opacity:0; width:1px; height:1px; }
.weekdays span { display:block; padding:8px 12px; border:1px solid var(--border); border-radius:6px; color:var(--muted); }
.weekdays input:checked + span { background:var(--notice); color:var(--accent); border-color:var(--accent); }
.weekdays input:focus-visible + span { outline:2px solid var(--accent); outline-offset:3px; }
.routine-footer { margin:0 0 24px; padding:16px 0; }
#page-routines details p { line-height:1.7; }
@media(max-width:760px){ .sidebar-end { margin-top:10px; padding:15px 3px 0; } .sidebar-end .appearance { flex:1; max-width:250px; } .sidebar-end .logout-button { align-self:flex-end; } .routine-footer { align-items:stretch; flex-direction:column; gap:14px; } }
@media(max-width:480px){ .weekdays { gap:6px; } .weekdays span { padding:8px 9px; } }

.motd-toolbar { display:flex; gap:8px; margin:10px 0 8px; flex-wrap:wrap; }
.motd-toolbar select { width:auto; min-width:130px; }
.motd-toolbar button { font-size:12px; }

.motd-editor { margin-bottom:20px; }
.motd-editor label { margin-bottom:0; }
.motd-editor > small { display:block; margin-top:8px; line-height:1.5; }
.motd-editor textarea { display:block; width:100%; min-height:76px; }

.github-setup { display:grid; align-content:center; gap:8px; margin-bottom:20px; }
.github-transfer { display:flex; align-items:center; gap:18px; justify-content:space-between; padding:16px 0; border-top:1px solid var(--border-soft); }
.github-transfer small { display:block; margin-top:6px; overflow-wrap:anywhere; }
.github-transfer p { font-size:13px; line-height:1.6; margin:8px 0 0; }
.github-transfer .button { flex-shrink:0; }
.github-panel details { line-height:1.7; }
.github-panel h3 { margin-top:24px; font-size:15px; }
@media(max-width:760px){ .github-transfer { align-items:flex-start; flex-direction:column; } }

.report-tools { display:flex; gap:8px; flex-wrap:wrap; padding:0 20px 12px; }
.clipboard-helper { position:fixed; left:-10000px; top:0; }
.reminders { border:0; padding:0; margin:0 0 18px; }
.reminders legend { margin-bottom:10px; font-size:13px; }
.reminders small { display:block; line-height:1.5; }
#backup-name-preview { overflow-wrap:anywhere; }

#report-copy-status { flex-basis:100%; color:var(--muted); font-size:12px; }
.routine-card .form-grid > label { align-self:start; }

.account-row { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:18px 20px; border-bottom:1px solid var(--border-soft); }
.account-row small { display:block; margin-top:6px; }
#current-user { font-size:12px; color:var(--muted); padding:0; border:0; }
#activity-rows td { vertical-align:top; font-size:12px; }
#page-access #password-form { margin-top:20px; }
#activity-search { min-width:220px; flex:1; }
@media(max-width:900px){ .account-row { align-items:flex-start; flex-direction:column; } .account-row .inline { flex-wrap:wrap; } }
