:root {
	color-scheme: dark;
	--bg: #0d1117; --panel: #161b22; --panel2: #1c2128; --hover: #21262d; --line: #30363d;
	--text: #e6edf3; --muted: #8b949e; --blue: #58a6ff; --green: #3fb950; --red: #f85149; --orange: #f78166; --purple: #a371f7;
	--gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	--shadow: 0 4px 14px rgba(0, 0, 0, .4);
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
html.modal-scroll-locked, html:has(dialog[open]), html:has(#dock:not([hidden])) { overflow: hidden; overscroll-behavior: none; }
html.modal-scroll-locked body { position: fixed; top: var(--modal-scroll-top); left: var(--modal-scroll-left); width: 100%; overflow: hidden; }
dialog[open], dialog[open] *, #dock, #dock * { overscroll-behavior: contain; }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; }
[hidden] { display: none !important; }
#system-update-overlay { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0; border-radius: 0; background: rgba(13, 17, 23, .97); color: var(--text); text-align: center; padding: 24px; }
#system-update-overlay[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
#system-update-overlay::backdrop { background: var(--bg); }
#system-update-overlay h2 { font-size: clamp(32px, 6vw, 52px); margin: 24px 0 12px; }
#system-update-overlay p { color: var(--muted); }
#system-update-output { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 900px; max-height: 40vh; overflow: auto; margin: 24px auto; }
.update-spinner { width: 100px; height: 100px; flex: none; margin: 0 auto; border: 8px solid var(--line); border-top-color: var(--purple); border-radius: 50%; animation: update-spin 1s linear infinite; }
@keyframes update-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .update-spinner { animation-duration: 3s; } }

button, select, input, textarea { font: inherit; color: inherit; background: var(--panel2); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; transition: border-color .15s, background .15s; }
/* Fields only get a slightly brighter edge when focused. Buttons keep a ring for the keyboard. */
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(88, 166, 255, .55); }
button:focus-visible { outline: none; border-color: rgba(88, 166, 255, .55); }
button { cursor: pointer; white-space: nowrap; }
label:has(input[type="checkbox"]), input[type="checkbox"] { cursor: pointer; }
/* Nothing disabled reacts to the pointer: every hover leaves out what is disabled (a button, a card with a disabled
   input, or one marked .disabled or .off). :where() adds no specificity, so the rules weigh what they did. */
button:hover:not(:where(:disabled, .disabled, .off)) { background: var(--hover); border-color: var(--muted); }
button.primary { background: #238636; border-color: #2ea043; color: #fff; font-weight: 600; }
button.primary:hover:not(:where(:disabled, .disabled, .off)) { background: #2ea043; }
/* A button that cannot be used yet: grey and quiet, whatever colour it has when it can (as the confirmations' OK) */
button:disabled, button:disabled:hover, button.primary:disabled, button.primary[data-tone]:disabled, button.primary.danger-primary:disabled,
button.danger:disabled { opacity: .45; cursor: not-allowed; background: var(--panel2); border-color: var(--line); color: var(--muted); box-shadow: none; }
button.danger { color: var(--red); }
button.danger:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(248, 81, 73, .15); border-color: var(--red); }
button.ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .3); color: #fff; }
button.ghost:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .25); }
button.small, select.small { padding: 3px 9px; font-size: 12.5px; }
button.wide { width: 100%; padding: 9px; }

.page-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: var(--gradient); box-shadow: var(--shadow); }
/* The name and the server never wrap: the header's other parts give way first */
.brand { display: flex; flex: none; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.brand h1 { margin: 0; font-size: 20px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.brand .logo { display: block; width: 38px; height: 38px; flex: none; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .35), 0 4px 12px rgba(0, 0, 0, .25); }
/* The page's foot: Powered by VNS, at the bottom of the window when the page is shorter */
body:has(> .page-footer) { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body:has(> .page-footer) > main { flex: 1 0 auto; width: 100%; }
.page-footer { display: flex; justify-content: center; padding: 20px 24px 24px; }
.powered-by { display: inline-flex; align-items: center; gap: 8px; color: #8b95b8; font-size: 12px; font-weight: 600; text-decoration: none; opacity: .6; transition: opacity .2s; }
.powered-by:hover:not(:where(:disabled, .disabled, .off)) { opacity: 1; }
.powered-by img { display: block; width: 30px; height: auto; }
.brand .host { color: rgba(255, 255, 255, .8); font-size: 13px; }
.page-header nav { display: flex; gap: 6px; flex: 1; }
.page-header nav button { background: transparent; border-color: transparent; color: rgba(255, 255, 255, .85); font-weight: 500; }
.page-header nav button:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .15); }
.page-header nav button.active { background: rgba(255, 255, 255, .22); color: #fff; border-color: rgba(255, 255, 255, .35); }
.page-header form { margin: 0; }
.count { background: rgba(0, 0, 0, .3); border-radius: 10px; padding: 0 7px; font-size: 12px; }
.count:empty { display: none; }

main { padding: 20px 24px; max-width: 1600px; margin: 0 auto; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.empty { color: var(--muted); text-align: center; padding: 40px 0; }
.sites-empty { min-height: calc(100dvh - 220px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 20px; text-align: center; }
.sites-empty-icon { display: grid; place-items: center; width: 112px; height: 112px; margin-bottom: 24px; border: 1px solid rgba(163, 113, 247, .3); border-radius: 32px; color: #b9d8ff; background: linear-gradient(135deg, rgba(88, 166, 255, .16), rgba(163, 113, 247, .2)); box-shadow: 0 0 60px rgba(163, 113, 247, .1); }
.sites-empty-icon .ico { width: 58px; height: 58px; }
/* Inside a panel: as tall as it needs, not the page */
.panel-empty { min-height: 0; padding: 36px 20px 28px; }
.panel-empty .sites-empty-icon { width: 88px; height: 88px; margin-bottom: 18px; border-radius: 26px; }
.panel-empty .sites-empty-icon .ico { width: 44px; height: 44px; }
.panel-empty h2 { font-size: 22px; }
/* Room for two lines of text, so the panels on the SQL page's tabs are as tall whatever each says (one line or two) */
.sites-empty.panel-empty p { display: flex; align-items: center; justify-content: center; min-height: calc(2 * 1.7em); text-align: center; }
.sites-empty h2 { margin: 0 0 12px; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.03em; }
.sites-empty p { max-width: 400px; margin: 0 0 28px; color: var(--muted); font-size: 15px; line-height: 1.7; }
#btn-empty-new-site, #btn-empty-add-environment { display: inline-flex; align-items: center; gap: 10px; padding: 13px 28px; font-size: 16px; border-radius: 10px; box-shadow: 0 4px 24px rgba(63, 185, 80, .2); }
#btn-empty-new-site .ico, #btn-empty-add-environment .ico { width: 20px; height: 20px; }
.hint { color: var(--muted); font-size: 12px; }
/* A large dialog: the script has a fixed height, and the result takes the rest */
dialog.wide.sql-query-dialog { width: min(1200px, 92vw); height: min(760px, 84vh); }
dialog.sql-query-dialog[open] { display: flex; flex-direction: column; }
.sql-query-dialog textarea { flex: none; width: 100%; height: 140px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; resize: none; }
.sql-query-dialog .sql-query-output { flex: 1; min-height: 0; overflow: auto; margin: 12px 0 0; display: flex; flex-direction: column; gap: 14px; }
.sql-query-output:empty { display: none; }
.sql-result { flex: none; display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.sql-result-count { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; background: linear-gradient(110deg, rgba(163, 113, 247, .08), transparent); }
.sql-result-scroll { overflow: auto; max-height: 52vh; }
/* One result fills the space there is and scrolls under its fixed header, without a second scroll bar */
.sql-result:only-of-type { flex: 1 1 0; }
.sql-result:only-of-type .sql-result-scroll { flex: 1 1 0; max-height: none; min-height: 0; }
.sql-result-table { width: 100%; border-collapse: collapse; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
/* A table's rows: Add row in the bar over them, each row's pencil at its left and its trash can at its right */
.sql-add-row { padding: 4px 10px; font-size: 12px; }
.sql-add-row .ico { width: 13px; height: 13px; margin: 0; }
.sql-result-table .sql-row-tools { width: 1%; padding: 3px 6px; }
/* Pencil and trash can stay in sight while a wide table scrolls sideways: the first column held at the left, the
   last at the right, on the table's own colour */
.sql-result-table .sql-row-tools { position: sticky; z-index: 1; background: var(--panel); }
.sql-result-table tr > .sql-row-tools:first-child { left: 0; box-shadow: 1px 0 0 var(--line); }
.sql-result-table tr > .sql-row-tools:last-child { right: 0; box-shadow: -1px 0 0 var(--line); }
.sql-result-table thead .sql-row-tools { z-index: 2; background: var(--panel2, #1c2129); }
.sql-result-table td.sql-row-tools { overflow: visible; }
.sql-row-action { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 7px;
	border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--line)); background: color-mix(in srgb, var(--tone) 9%, var(--panel2)); color: var(--tone); }
.sql-row-action .ico { width: 13px; height: 13px; margin: 0; }
/* Full strength always, as the tables' pencil and trash can: never a shadow of a button */
/* A table's rows: each heading sorts them (ORDER BY, run again), its arrow up or down while it does */
.sql-result-table th:has(> .sql-sort) { padding: 0; }
.sql-sort { display: inline-flex; align-items: center; gap: 6px; width: 100%; padding: 7px 12px; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; white-space: nowrap; }
.sql-result-table th.num .sql-sort { justify-content: flex-end; }
.sql-sort:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .04); color: var(--text); }
.sql-sort .ico { width: 12px; height: 12px; margin: 0; opacity: 0; transform: rotate(90deg); transition: transform .15s, opacity .15s; }
.sql-sort:hover:not(:where(:disabled, .disabled, .off)) .ico { opacity: .45; }
.sql-result-table th.sorted .sql-sort { color: var(--text); }
.sql-result-table th.sorted .sql-sort .ico { opacity: 1; transform: rotate(-90deg); }
.sql-result-table th.sorted .sql-sort.descending .ico { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .sql-sort .ico { transition: none; } }
.sql-result-table th { position: sticky; top: 0; z-index: 1; padding: 7px 12px; background: var(--panel2, #1c2129); color: var(--muted); font-weight: 600; text-transform: none; letter-spacing: 0; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.sql-result-table td { max-width: 420px; padding: 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sql-result-table tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .02); }
.sql-result-table tbody tr:hover:not(:where(:disabled, .disabled, .off)) td { background: rgba(88, 166, 255, .08); }
/* The pencil's and trash can's cells, held at the ends: as the row's colour, but solid, so what scrolls under them is
   not seen through them */
.sql-result-table tbody td.sql-row-tools { background: var(--panel); }
.sql-result-table tbody tr:nth-child(even) td.sql-row-tools { background: linear-gradient(rgba(255, 255, 255, .02), rgba(255, 255, 255, .02)), var(--panel); }
.sql-result-table tbody tr:hover:not(:where(:disabled, .disabled, .off)) td.sql-row-tools { background: linear-gradient(rgba(88, 166, 255, .08), rgba(88, 166, 255, .08)), var(--panel); }

.sql-result-table .num { text-align: right; }
.sql-result-table th.sql-fit { width: 1%; }
.sql-result-table th.sql-grow { min-width: 18ch; }
.password-field { position: relative; display: block; }
.password-field input { width: 100%; padding-right: 40px; }
.password-field .password-reveal { position: absolute; top: 50%; right: 6px; transform: translateY(-50%); display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); }
.password-field .password-reveal:hover:not(:where(:disabled, .disabled, .off)) { color: var(--text); background: rgba(255, 255, 255, .06); }
.password-field .password-reveal .ico { width: 16px; height: 16px; }
.sql-result-table .sql-null { color: var(--muted); font-style: italic; opacity: .7; }
.sql-result-message, .sql-query-output > pre { margin: 0; padding: 10px 12px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 8px; font-size: 12px; white-space: pre-wrap; }
.sql-result-empty { margin: 0; }
.sql-query-output.sql-query-error > pre { color: #f85149; }
.sql-query-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.sql-query-head h2 { margin: 0; }
.dialog-x { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.dialog-x:hover:not(:where(:disabled, .disabled, .off)), .dialog-x:focus-visible { background: rgba(255, 255, 255, .08); color: var(--text, #e6edf3); }
.sql-query-bar { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.sql-query-bar .hint { flex: 1; margin: 0; }
.sql-query-bar #sql-query-status { font-size: 12px; white-space: nowrap; }
/* A database's and a backup's name with a small icon; a backup's older ones fold out under it behind Older */
.sql-name-icon { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(163, 113, 247, .14); color: var(--purple); }
.sql-name-icon .ico { width: 13px; height: 13px; margin: 0; }
.sql-name-icon.system { background: rgba(255, 255, 255, .06); color: var(--muted); }
.sql-name-icon.backup { background: rgba(88, 166, 255, .12); color: var(--blue); }
.sql-older-toggle { display: inline-flex; align-items: center; gap: 6px; }
.sql-older-toggle .ico { width: 13px; height: 13px; margin: 0; transition: transform .15s ease; }
.sql-older-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
.sql-older-count { padding: 0 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 18px; }
tr.sql-backup-older > td { background: rgba(255, 255, 255, .015); color: var(--muted); font-size: 13px; }
tr.sql-backup-older > td:first-child { padding-left: 46px; }
.sql-older-name { color: var(--muted); }
.error { color: var(--red); }
#search { min-width: 260px; }

.stats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.chip:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--blue); }
.chip.active { border-color: var(--blue); background: rgba(88, 166, 255, .15); box-shadow: 0 0 14px rgba(88, 166, 255, .25); }
.chip b { font-size: 16px; }
.chip span { color: var(--muted); font-size: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); grid-auto-rows: 1fr; align-items: stretch; gap: 16px; }
.cards > .site { min-width: 0; }
.site-activity { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; color: var(--blue); background: rgba(88, 166, 255, .12); font-size: 11px; }
.activity-spinner { width: 12px; height: 12px; border: 2px solid rgba(88, 166, 255, .25); border-top-color: var(--blue); border-radius: 50%; animation: activity-spin .8s linear infinite; }
@keyframes activity-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .activity-spinner { animation: none; } }
.multi-select { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(88, 166, 255, .08); cursor: pointer; }
.multi-select input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.site:has(.multi-select input:checked) { border-color: var(--blue); }
#multi-selection, #multi-skipped { overflow-wrap: anywhere; }
#multi-selection { display: flex; flex-wrap: wrap; gap: 7px; max-height: 120px; overflow-y: auto; margin: 0 0 6px; padding: 2px; font-size: 12px; }
.multi-site-tag { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 10px; border: 1px solid rgba(163, 113, 247, .3); border-radius: 8px; color: #d3baff; background: rgba(163, 113, 247, .1); }
.multi-site-tag .ico { width: 14px; height: 14px; flex: none; }
.multi-site-tag > span { min-width: 0; overflow-wrap: anywhere; }
#multi-action-description { font-size: 13px; line-height: 1.6; }
.site { background: linear-gradient(135deg, rgba(88, 166, 255, .04), transparent 60%), var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: 0 4px 16px rgba(0, 0, 0, .15); display: flex; flex-direction: column; gap: 20px; position: relative; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.site:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .5); box-shadow: 0 10px 28px rgba(0, 0, 0, .3), 0 0 20px rgba(88, 166, 255, .07); }
.site.is-admin { border-color: rgba(163, 113, 247, .5); }
.site-head { display: flex; align-items: center; gap: 12px; }
.site-identity { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.site-identity .badge { font-size: 10px; padding: 2px 7px; }
.site-emblem { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border: 1px solid rgba(163, 113, 247, .25); border-radius: 12px; background: linear-gradient(135deg, rgba(88, 166, 255, .15), rgba(163, 113, 247, .18)); color: #b9d8ff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.site-emblem .ico { width: 23px; height: 23px; }
.site-head > .dot { margin-left: auto; }
.card-update-check { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 12px; }
.card-update-check.up-to-date { color: var(--green); }
@media (prefers-reduced-motion: reduce) { .site { transition: none; } }
.site-title { font-size: 15px; font-weight: 600; margin: 0; overflow-wrap: anywhere; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.active { background: var(--green); box-shadow: 0 0 8px var(--green); }
.dot.failed, .dot.inactive { background: var(--red); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 6px; background: var(--hover); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.badge.umbraco { background: linear-gradient(135deg, #3544b1, #00bcd4); color: #fff; }
.badge.csharp { background: #512bd4; color: #fff; }
.badge.python { background: #3776ab; color: #fff; }
.badge.html { background: #e34f26; color: #fff; }
.badge.admin { background: var(--purple); color: #fff; }
/* Who made something and who it is given to (an administrator's view): small muted chips, each with its icon */
.who-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; vertical-align: middle; }
.who-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 280px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px;
	background: rgba(255, 255, 255, .03); color: var(--muted); font: 500 11.5px/1.5 var(--font, inherit); white-space: nowrap; }
.who-chip > span { overflow: hidden; text-overflow: ellipsis; }
.who-chip .ico { flex: none; width: 11px; height: 11px; margin: 0; }
.who-chip .who-label { flex: none; opacity: .7; }
.who-chip .who-label::after { content: ":"; }
.who-chip.who-made .who-label::after { content: ""; }
.who-chip.who-given { color: #a5c8ff; border-color: rgba(88, 166, 255, .3); background: rgba(88, 166, 255, .07); }
.who-chip.who-owner { color: #c9a8ff; border-color: rgba(163, 113, 247, .35); background: rgba(163, 113, 247, .08); }
/* A site runs on it: green, and its site's page a click away */
.who-chip.who-used { color: #7ee787; border-color: rgba(63, 185, 80, .35); background: rgba(63, 185, 80, .08); cursor: pointer; }
.who-chip.who-used:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(63, 185, 80, .7); background: rgba(63, 185, 80, .14); }
.sql-database-name .who-chips { margin-left: 10px; }
.sql-database-name .sql-database-kind { flex: none; margin-left: 10px; font-size: 10px; padding: 2px 7px; }
.login-name-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.detail-title .who-chips { margin-left: 4px; }
/* A connection's engine: Microsoft SQL Server in its red, PostgreSQL in its blue */
.badge.engine-badge { flex: none; text-transform: none; letter-spacing: 0; }
.badge.engine-mssql { background: rgba(204, 41, 39, .18); color: #ff7b72; box-shadow: 0 0 0 1px rgba(204, 41, 39, .35) inset; }
.badge.engine-postgres { background: rgba(51, 103, 145, .28); color: #79b8ff; box-shadow: 0 0 0 1px rgba(51, 103, 145, .55) inset; }
.badge.engine-sqlite { background: rgba(63, 185, 80, .16); color: var(--green); box-shadow: 0 0 0 1px rgba(63, 185, 80, .35) inset; }
.grant-connection-where { display: inline-flex; flex: none; align-items: center; gap: 8px; white-space: nowrap; }
/* The one connection by the heading, its engine beside it */
.sql-only-connection:not([hidden]) { display: inline-flex; align-items: center; gap: 12px; }
/* A connection's name in Usage with its engine beside it */
.usage-title-row { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; min-width: 0; }
/* One connection alone: its name where the list would be, the label, the name and where it goes close together */
.sql-connection-name { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 16px; font-weight: 600; line-height: 1.3; }
.sql-connection-pick { display: inline-flex; align-items: center; gap: 12px; }
.sql-connection-choice:has(.sql-connection-name:not([hidden])) { gap: 2px; }
.sql-connection-choice:has(.sql-connection-name:not([hidden])) label { gap: 2px; }
.sql-connection-name[hidden] { display: none; }
/* May add SQL connections: to which SQL Servers, under it as the rows hanging on it are */
#dlg-user .user-connection-engines { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: -2px 0 6px 26px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 10px; }
#dlg-user .user-connection-engines[hidden] { display: none; }
#dlg-user .user-connection-engines .grant-label { margin: 0; }
@media (max-width: 640px) { #dlg-user .user-connection-engines { margin-left: 0; } }
/* The SQL page's tabs with the filter at their right; a row the filter leaves out is not shown */
.sql-tabs-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.sql-tabs-row .sql-tabs { margin: 0; }
.sql-tabs-row .sql-filter { height: 46px; border-radius: 12px; }
.sql-tabs-row .sql-filter-box { flex: 0 1 360px; margin-left: auto; }
.sql-tabs-row .sql-filter-box[hidden] { display: none; }
.sql-filter { width: 100%; min-width: 0; height: 38px; padding: 0 38px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 13.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); transition: background .15s, border-color .15s, box-shadow .15s; }
.sql-filter:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(255, 255, 255, .16); }
.sql-filter:focus { outline: none; background: rgba(0, 0, 0, .3); border-color: rgba(88, 166, 255, .55); box-shadow: 0 0 0 3px rgba(88, 166, 255, .14); }
.sql-filter::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.sql-filter-box:has(.sql-filter:not(:placeholder-shown)) .search-clear { display: grid; }
.sql-filtered { display: none !important; }
@media (max-width: 800px) { .sql-tabs-row .sql-filter-box { flex: 1 1 100%; margin-left: 0; } }
/* Two ways on from an empty page, side by side */
.sites-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
/* PostgreSQL has no recovery model: no column for it */
#view-sql[data-engine=postgres] .sql-recovery { display: none; }
#sql-connection-host:empty { display: none; }
#sql-connection-host { display: inline-flex; align-items: center; gap: 8px; }
/* Microsoft SQL Server | PostgreSQL on the SQL page: a tab each above its connections, in its own colour, with how many */
.sql-engine-switch { display: flex; gap: 8px; margin: 0 0 14px; }
.sql-engine-switch[hidden] { display: none; }
.sql-engine-option { --engine: #ff7b72; display: inline-flex; flex: 0 1 auto; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line);
	border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 14px; font-weight: 600; white-space: nowrap; }
.sql-engine-option.engine-postgres { --engine: #79b8ff; }
.sql-engine-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--engine); opacity: .55; }
.sql-engine-option:hover:not(:where(:disabled, .disabled, .off, .active)) { color: var(--text); border-color: color-mix(in srgb, var(--engine) 45%, var(--line)); }
.sql-engine-option.active { color: var(--text); border-color: color-mix(in srgb, var(--engine) 60%, var(--line)); background: color-mix(in srgb, var(--engine) 10%, var(--panel)); }
.sql-engine-option.active .sql-engine-dot { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--engine) 22%, transparent); }
/* The connection bar in the colour of its engine */
.sql-connection-bar[data-engine=mssql] { --tone: #ff7b72; }
.sql-connection-bar[data-engine=postgres] { --tone: #79b8ff; }
@media (max-width: 800px) { .sql-engine-option { flex: 1; justify-content: center; padding: 10px 12px; } }
.badge.state-active { background: rgba(63, 185, 80, .2); color: var(--green); }
.badge.env-missing { background: rgba(248, 81, 73, .18); color: #f85149; }
.badge.publish-pending { background: rgba(210, 153, 34, .2); color: #d29922; }
.badge.updates-available { background: rgba(210, 153, 34, .2); color: #d29922; }
.badge.updates-error { background: rgba(248, 81, 73, .2); color: var(--red); }
.publish-status { flex-basis: 100%; display: flex; }
.badge.state-failed, .badge.state-inactive { background: rgba(248, 81, 73, .2); color: var(--red); }
.meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; }
.meta dt { color: var(--muted); }
.meta .database-name { overflow-wrap: anywhere; min-width: 0; }
.meta .aliases a { font-style: italic; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
a.link { color: var(--blue); cursor: pointer; text-decoration: none; }
a.link:hover:not(:where(:disabled, .disabled, .off)) { text-decoration: underline; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line); }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
/* The connection, as a card of the page: its icon, the choice with where it goes under it, and its buttons */
.sql-connection-bar { --tone: var(--purple); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 16px 18px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 10%, transparent), transparent 55%), var(--panel2); }
.sql-connection-bar > button { min-height: 42px; }
/* One line, one height: the icon, the connection (no label over it: the list says what it is) and the buttons, 42px each */
.sql-connection-bar { align-items: center; }
.sql-connection-bar .sql-connection-icon { width: 42px; height: 42px; }
.sql-connection-bar > button, .sql-connection-select .pselect-trigger { box-sizing: border-box; height: 42px; }
.sql-connection-bar .sql-connection-choice, .sql-connection-bar .sql-connection-choice label { gap: 0; }
/* A name alone takes the room it needs: Edit connection follows it, not the width a list would have */
.sql-connection-bar label:has(.sql-connection-name:not([hidden])) { min-width: 0; }
.sql-connection-icon { width: 44px; height: 44px; border-radius: 12px; }
.sql-connection-icon .ico { width: 22px; height: 22px; }
.sql-connection-choice { display: grid; gap: 5px; min-width: 0; }
.sql-connection-choice label { margin: 0; }
.sql-connection-host { color: var(--muted); font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; }
.sql-connection-host:empty { display: none; }
.sql-connection-bar label { margin: 0; min-width: 220px; }
.sql-connection-bar label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12px; }
#sql-connection { appearance: none; width: min(320px, 100%); padding: 10px 40px 10px 14px; border-radius: 10px; border-color: rgba(163, 113, 247, .45); color: var(--text); font-size: 14px; font-weight: 600; background: var(--panel2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
#sql-connection:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--purple); }
.sql-system-databases { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.sql-system-databases summary { cursor: pointer; color: var(--muted); font-weight: 600; padding: 6px 0; }
.sql-system-databases table { margin-top: 8px; }
.sql-table { margin-top: 16px; padding: 16px; overflow-x: auto; }
.sql-table h3 { margin-top: 0; }
.sql-databases-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.sql-databases-header h3 { margin: 0; }
.sql-databases-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.sql-table td { overflow-wrap: anywhere; }
.sql-table .actions { flex-wrap: wrap; gap: 6px; justify-content: flex-end; border-top: 0; padding-top: 0; }
.sql-table > table th:last-child, .sql-table > table td:last-child:not([colspan]) { text-align: right; }
#sql-databases-panel table th:first-child, #sql-databases-panel table td:first-child { width: 100%; }
#sql-databases-panel table th:not(:first-child), #sql-databases-panel table td:not(:first-child) { white-space: nowrap; }
#sql-databases-panel .actions { flex-wrap: nowrap; }
#sql-databases-panel .sql-state-online { color: var(--green); }
#sql-databases-panel .sql-state-offline, #sql-databases-panel .sql-state-offline_secondary, #sql-databases-panel .sql-state-suspect { color: var(--red); }
#sql-databases-panel .sql-state-restoring, #sql-databases-panel .sql-state-copying { color: var(--blue); }
#sql-databases-panel .sql-state-recovering { color: #39c5cf; }
#sql-databases-panel .sql-state-recovery_pending { color: #d29922; }
#sql-databases-panel .sql-state-emergency { color: var(--orange); }
#form-sql-connection input[type=checkbox] { width: auto; }
#dlg-sql-connection { min-width: 0; }
#dlg-sql-restore { width: min(520px, 92vw); min-width: 0; max-height: 90vh; overflow-y: auto; }
#prompt-checkbox-row, #prompt-login-row { flex-direction: row; align-items: flex-start; gap: 12px; margin: 16px 0 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); font-size: 14px; line-height: 1.5; cursor: pointer; }
#prompt-checkbox, #prompt-login-checkbox { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--blue); }
#prompt-checkbox-label { min-width: 0; overflow-wrap: anywhere; }
#form-sql-connection .sql-option { flex-direction: row; align-items: flex-start; gap: 12px; margin: 0 0 10px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); cursor: pointer; }
#form-sql-connection .sql-option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
#form-sql-connection .sql-option > span { min-width: 0; }
#form-sql-connection .sql-option strong { display: block; font-size: 14px; line-height: 1.5; }
#form-sql-connection .sql-option .hint { display: block; margin-top: 4px; line-height: 1.5; color: var(--muted); }
#form-sql-connection .sql-option:has(input:checked) { border-color: var(--blue); background: rgba(88, 166, 255, .08); }
#form-sql-connection .sql-connection-note { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }
#form-sql-connection .ns-grid > label { min-width: 0; }
#form-sql-connection .ns-section:not(:first-of-type) { margin-top: 8px; }
#sql-ssh-fields { margin: 16px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
#sql-ssh-fields legend { color: var(--muted); padding: 0 6px; }
.system-update-available { color: var(--orange); background: rgba(210, 153, 34, .15); }
.package-panel { margin-top: 16px; overflow: hidden; }
.package-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(110deg, rgba(163, 113, 247, .08), transparent); }
.package-heading { display: flex; align-items: center; gap: 10px; }
.package-head h3 { margin: 0; font-size: 15px; }
.package-count { padding: 2px 8px; border-radius: 12px; background: rgba(163, 113, 247, .15); color: var(--purple); font-size: 12px; font-weight: 600; }
.package-actions { margin-top: auto; padding: 12px 20px 18px; }
.package-actions .package-remove { margin-left: auto; }
.package-head .package-check { margin-left: auto; }
.package-list { display: flex; flex-direction: column; gap: 8px; padding: 12px 20px; }
.package-list > p { margin: 12px 0; }
.package-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; width: 100%; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: transparent; text-align: left; white-space: normal; }
.package-row:hover:not(:where(:disabled, .disabled, .off)) { background: var(--hover); }
.package-copy { min-width: 0; padding: 0; border: 0; background: transparent; text-align: left; white-space: normal; }
.package-row { cursor: pointer; }
.package-copy:hover:not(:where(:disabled, .disabled, .off)), .package-row:hover:not(:where(:disabled, .disabled, .off)) .package-copy { background: transparent; color: var(--blue); }
.package-versions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.package-version.package-latest { color: var(--green); border-color: rgba(63, 185, 80, .4); background: rgba(63, 185, 80, .1); }
.package-row.has-update { background: rgba(63, 185, 80, .04); }
.package-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.package-name .ico { flex: none; width: 18px; height: 18px; color: var(--purple); }
.package-name > span { min-width: 0; }
.package-version { max-width: 100%; padding: 5px 12px; border: 1px solid rgba(88, 166, 255, .5); border-radius: 6px; background: rgba(88, 166, 255, .15); color: var(--blue); font: 600 14px ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.package-error { margin: 12px 20px; color: var(--orange); font-size: 12px; }
#files th:first-child, #files td:first-child { width: 100%; white-space: nowrap; }
#files th[data-sort] { padding: 0; }
#files .file-sort { display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: 6px; height: 36px; padding: 0 14px; margin: 0; border-radius: 0; border: 0; background: transparent; color: inherit; font: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; white-space: nowrap; }
#files .file-sort:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; color: var(--text); }
#files .file-sort .ico { width: 12px; height: 12px; margin: 0; opacity: 0; transform: rotate(90deg); transition: transform .15s, opacity .15s; }
#files .file-sort:hover:not(:where(:disabled, .disabled, .off)) .ico { opacity: .45; }
#files th.sorted .file-sort { color: var(--text); }
#files th.sorted .file-sort .ico { opacity: 1; transform: rotate(-90deg); }
#files th.sorted.descending .file-sort .ico { transform: rotate(90deg); }
#files th.file-size .file-sort, #files th.file-modified .file-sort { justify-content: flex-end; }
@media (prefers-reduced-motion: reduce) { #files .file-sort .ico { transition: none; } }
#files .file-size, #files .file-modified { text-align: right; white-space: nowrap; }
#files .file-permissions, #files .file-owner { white-space: nowrap; }
#files .file-permissions { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
#files .file-folder-row, #files .file-open-row { cursor: pointer; }
#files .file-empty-row:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; }
#files .file-empty-row { cursor: default; }
.files-navigation { align-items: stretch; }
#files-search { flex: 1; min-width: 180px; width: 0; box-sizing: border-box; }
.files-navigation > button, #files-search { height: 34px; }
#files .file-entry { display: inline-flex; align-items: center; gap: 10px; }
#files .file-entry .ico { width: 20px; height: 20px; flex: none; margin: 0; }
#files .file-name { padding: 0; border: 0; background: transparent; color: var(--blue); text-align: left; }
#files .file-folder { color: var(--blue); }
#files .file-document.file-name { color: var(--text); }
#files .file-name:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; }
#files .tools { cursor: default; }
#files .file-tools { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
#files .file-action { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; margin: 0; border-radius: 8px; }
#files .file-action .ico { width: 16px; height: 16px; margin: 0; }
#files .file-download { box-sizing: border-box; vertical-align: middle; color: var(--blue); border: 1px solid color-mix(in srgb, var(--blue) 35%, var(--line)); background: color-mix(in srgb, var(--blue) 9%, var(--panel2)); text-decoration: none; }
#files .file-download:hover:not(:where(:disabled, .disabled, .off)) { background: color-mix(in srgb, var(--blue) 20%, var(--panel2)); border-color: var(--blue); }
.file-uneditable { color: var(--muted); opacity: .65; cursor: default; }
#files-filter[aria-pressed=true] { border-color: var(--blue); color: var(--blue); }
.list.dragging { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.drop-hint { display: none; position: absolute; inset: 0; pointer-events: none; background: rgba(13, 17, 23, .85); align-items: center; justify-content: center; font-size: 18px; color: var(--blue); }
.list.dragging .drop-hint { display: flex; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
tbody tr:hover:not(:where(:disabled, .disabled, .off)) { background: var(--hover); }
/* A database's tables folded out under it are not a row to point at: each table's name lights on its own */
tbody tr.sql-tables-row:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; }
.num { text-align: right; white-space: nowrap; }
td.tools { white-space: nowrap; text-align: right; }
td.tools a { margin-left: 10px; font-size: 13px; }
.dirty { color: var(--orange); font-size: 12px; }

#tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
#tabs .tab { display: flex; gap: 8px; align-items: center; padding: 5px 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
#tabs .tab:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--muted); }
#tabs .tab.active { border-color: var(--blue); background: rgba(88, 166, 255, .15); }
#tabs .tab .x { color: var(--muted); padding: 0 2px; }
#tabs .tab .x:hover:not(:where(:disabled, .disabled, .off)) { color: var(--red); }
#panes .pane { height: calc(100vh - 190px); min-height: 300px; background: #000; padding: 8px; border-radius: 10px; border: 1px solid var(--line); }

dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 22px; min-width: min(440px, 92vw); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(2px); }
dialog h2 { margin: 0 0 10px; font-size: 18px; }
dialog p { margin: 0 0 12px; white-space: pre-line; color: var(--muted); }
dialog input, dialog select { width: 100%; }
dialog label, .card label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; color: var(--muted); font-size: 12.5px; }
dialog label input, dialog label select { color: var(--text); font-size: 14px; }
dialog fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 12px; padding: 10px 12px 0; }
dialog legend { color: var(--muted); font-size: 12px; padding: 0 6px; }
dialog menu { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 0; margin: 14px 0 0; }
dialog menu .cancel-link { margin-right: auto; align-self: center; padding: 8px 0; border: 0; background: transparent; color: var(--blue); font: inherit; text-decoration: none; cursor: pointer; }
dialog menu .cancel-link:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; text-decoration: underline; }
dialog.danger h2 { color: var(--red); }
/* Red while it can be used; grey and quiet until then, as every button that cannot be used yet */
dialog.danger .primary:not(:disabled) { background: #da3633; border-color: var(--red); }
#prompt-ok:disabled { opacity: .4; cursor: not-allowed; background: var(--panel2); border-color: var(--line); color: var(--muted); }
#dlg-prompt { width: min(520px, 92vw); min-width: 0; }
/* A message's line breaks are kept: a long one is written in short lines */
#prompt-message { overflow-wrap: anywhere; white-space: pre-line; }
#dlg-prompt .confirmation-copy { white-space: normal; }
#dlg-prompt .prompt-extra-row { margin-top: 16px; }
#dlg-prompt #prompt-extra { width: 100%; height: 160px; resize: none; overflow-y: auto; font: inherit; }

#toasts { position: fixed; inset: auto 18px 18px auto; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; max-width: calc(100vw - 36px); max-height: calc(100vh - 36px); overflow: auto; display: flex; flex-direction: column; gap: 8px; z-index: 50; pointer-events: none; }
.toast { background: var(--panel2); border: 1px solid var(--line); border-left: 4px solid var(--blue); border-radius: 8px; padding: 10px 14px; box-shadow: var(--shadow); max-width: 420px; animation: pop .15s ease-out; }
.toast.error { border-left-color: var(--red); }
.toast { display: flex; align-items: flex-start; gap: 12px; pointer-events: auto; }
.toast span { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
.toast button { flex-shrink: 0; }
.toast.ok { border-left-color: var(--green); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

body.login { display: grid; place-items: center; min-height: 100vh; min-height: 100dvh; padding: 32px 16px; background: radial-gradient(ellipse at 25% 15%, rgba(102, 126, 234, .16), transparent 55%), radial-gradient(ellipse at 85% 85%, rgba(118, 75, 162, .12), transparent 50%), var(--bg); }
.login-shell { width: min(440px, 100%); padding: 0; }
.login-card.card { width: 100%; border-color: rgba(139, 148, 180, .24); border-radius: 20px; box-shadow: 0 24px 80px rgba(0, 0, 0, .4), 0 0 50px rgba(108, 123, 255, .05); }
.login-heading { padding: 32px 32px 26px; background: radial-gradient(ellipse at top left, rgba(108, 123, 255, .18), transparent 85%); border-bottom: 1px solid var(--line); }
.login-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.login-logo { display: block; width: 56px; height: 56px; border-radius: 15px; box-shadow: 0 8px 24px rgba(108, 123, 255, .28); }
.login-brand-name { display: flex; flex-direction: column; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: #fff; }
.login-brand-name span { margin-top: 2px; font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #b4bcff; }
.login-heading h1 { margin: 0; font-size: clamp(22px, 5vw, 28px); line-height: 1.25; letter-spacing: -.035em; }
.login-heading p { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.login-card .card-body { padding: 26px 32px 32px; }
.login-card h2 { margin: 0; font-size: 18px; }
.login-intro { margin: 5px 0 22px; font-size: 13px; color: var(--muted); }
.login-card label { gap: 7px; margin-bottom: 18px; }
.login-card input { min-height: 44px; border-radius: 9px; }
.login-card button.primary { min-height: 44px; margin-top: 4px; border-radius: 9px; background: linear-gradient(135deg, #5865d8, #7548ba); border-color: #8580e6; box-shadow: 0 4px 16px rgba(108, 123, 255, .16); }
.login-card button.primary:hover:not(:where(:disabled, .disabled, .off)) { background: linear-gradient(135deg, #6673e7, #8658cb); border-color: #b4bcff; }
.login-error { padding: 10px 12px; border: 1px solid rgba(248, 81, 73, .35); border-radius: 9px; background: rgba(248, 81, 73, .08); }
/* A note on the sign-in page: an address Harbor took over, a link mailed, a password set, a link that ran out */
.login-note { display: flex; align-items: flex-start; gap: 11px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid rgba(88, 166, 255, .35); border-radius: 10px; background: rgba(88, 166, 255, .08); color: #c9d1d9; font-size: 13px; line-height: 1.5; }
.login-note .ico { flex: none; width: 18px; height: 18px; margin: 1px 0 0; color: var(--blue); }
.login-note strong { color: var(--text); }
.login-note.moved { border-color: rgba(163, 113, 247, .4); background: rgba(163, 113, 247, .1); }
.login-note.moved .ico { color: #c4a7ff; }
.login-note.ok { border-color: rgba(63, 185, 80, .38); background: rgba(63, 185, 80, .08); }
.login-note.ok .ico { color: var(--green); }
.login-note.bad { border-color: rgba(248, 81, 73, .35); background: rgba(248, 81, 73, .08); }
.login-note.bad .ico { color: var(--red); }
/* Forgot password and Back to sign in: a quiet link under the button */
.login-switch { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; color: var(--muted); font-size: 13px; text-decoration: none; }
.login-switch .ico { width: 14px; height: 14px; margin: 0; }
.login-switch:hover:not(:where(:disabled, .disabled, .off)) { color: var(--text); }
.login-card a.login-button { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; background: linear-gradient(135deg, #5865d8, #7548ba); border: 1px solid #8580e6; color: #fff; font-weight: 600; text-decoration: none; }
.login-footer { display: flex; justify-content: center; margin: 28px 0 0; }
@media (max-width: 480px) { .login-heading { padding: 26px 24px 22px; } .login-card .card-body { padding: 24px; } }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; width: min(360px, 92vw); box-shadow: var(--shadow); overflow: hidden; }
.card-head { background: var(--gradient); padding: 22px 24px; }
.card-head h1 { margin: 0; font-size: 22px; color: #fff; }
.card-head p { margin: 4px 0 0; color: rgba(255, 255, 255, .8); }
.card-body { padding: 22px 24px 24px; }
.card-body input { width: 100%; color: var(--text); font-size: 15px; padding: 8px 12px; }

@media (max-width: 800px) {
	main { padding: 12px; }
	.page-header { padding: 12px; gap: 10px; }
	#search { min-width: 0; flex: 1; }
	th:nth-child(3), td:nth-child(3) { display: none; }
}

/* ---- v2: header, account menu, environments, dock ---- */
.brand h1 { font-size: 17px; line-height: 1.1; }
.brand .host { display: block; font-size: 12px; }
.user { position: relative; }
.avatar { width: 36px; height: 36px; padding: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); color: #fff; font-weight: 700; font-size: 15px; }
.avatar:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .35); border-color: #fff; }
.menu { position: absolute; right: 0; top: 46px; min-width: 200px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 30; }
.menu form { margin: 0; }
.menu button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 8px 10px; border-radius: 6px; }
.menu button:hover:not(:where(:disabled, .disabled, .off)) { background: var(--hover); }
#settings-update { display: flex; align-items: center; gap: 6px; }
#system-update-badge { font-size: 10px; padding: 2px 6px; }
.menu-head { display: flex; flex-direction: column; padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
/* The Server menu as wide when Windows and Apache fold out as when it opens: nothing moves */
#settings-menu { width: 240px; }
#settings-menu button { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-group:not([hidden]) ~ .menu-group:not([hidden]) { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
/* Windows and Apache: an item that folds out, its items under it, indented */
.menu .menu-fold { position: relative; padding-right: 28px; }
.menu-fold-chevron { position: absolute; top: 50%; right: 8px; display: inline-flex; transform: translateY(-50%); }
.menu .menu-fold .menu-fold-chevron .ico { width: 13px; height: 13px; margin: 0; color: var(--muted); transition: transform .15s; }
.menu-fold[aria-expanded="true"] .menu-fold-chevron .ico { transform: rotate(90deg); }
.menu-sub { margin: 0 0 4px 14px; padding-left: 8px; border-left: 1px solid var(--line); }
.menu-sub[hidden] { display: none; }
/* A heading whose items are always shown under it: no chevron, nothing to click */
.menu-fold.menu-fold-open { cursor: default; }
.menu-fold.menu-fold-open .menu-fold-chevron { display: none; }
.menu-fold.menu-fold-open:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; }
@media (prefers-reduced-motion: reduce) { .menu-fold-chevron .ico { transition: none; } }
.menu-group-title { padding: 5px 10px; color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* The filters take the room there is and wrap inside it, so the buttons stay together on the right */
.toolbar .stats { margin: 0; flex: 1 1 auto; min-width: 0; }
@media (min-width: 900px) { #view-sites > .toolbar { flex-wrap: nowrap; align-items: flex-start; } #view-sites > .toolbar > :not(.stats, .spacer) { flex: none; } }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 500; }
.back .ico { width: 18px; height: 18px; }

.site { cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.site:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--blue); }
.env-rows { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.env-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 6px 10px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; font-size: 13px; }
.env-label { font-weight: 600; }
.dot.remote { background: var(--purple); }

.detail-title { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.detail-title h2 { margin: 0; font-size: 26px; }
.detail-title .detail-title-action { margin-left: auto; }
/* Several actions beside the title: only the first is pushed right, the rest follow it */
.detail-title .detail-title-action ~ .detail-title-action { margin-left: 0; }
.sql-heading { margin-bottom: 16px; }
.sql-only-connection { margin-left: 8px; color: var(--muted); font-size: .7em; font-weight: 600; }
.sql-only-connection > span:first-child::before { content: "· "; }
.sql-heading .sql-loading { margin-left: 12px; }
#site-head > .detail-title:last-child { margin-bottom: 16px; }
#site-head > .actions { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 20px; margin-bottom: 20px; }
.envs { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 16px; }
.env { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px 18px; border-top: 3px solid var(--blue); }
/* The environment a site card's row was clicked for: lit up a moment once the page has scrolled to it */
.env.env-focused { animation: env-focused 1.8s ease-out; }
@keyframes env-focused { 0%, 35% { box-shadow: 0 0 0 2px var(--blue), 0 0 22px rgba(88, 166, 255, .35); } 100% { box-shadow: 0 0 0 2px transparent; } }
@media (prefers-reduced-motion: reduce) { .env.env-focused { animation: none; } }
.env.prod { border-top-color: var(--orange); }
/* Same header as the NuGet panel beside it */
.env-head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 -20px 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; background: linear-gradient(110deg, rgba(163, 113, 247, .08), transparent); }
.env > .actions:last-child:not(.quick) { margin-top: auto; padding-top: 12px; }
/* The last row of quick buttons keeps a gap above the Site row's line, also when the card is not taller than its content */
.env > .actions.quick:has(+ .actions:not(.quick)) { margin-bottom: 14px; }
.env-head, .package-head { min-height: 62px; }
.env-head .publish-status { flex-basis: auto; }
.env-head h3 { margin: 0 auto 0 0; min-width: 0; font-size: 18px; overflow-wrap: anywhere; }
.site-layout.with-packages { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.site-layout.with-packages .envs { grid-template-columns: minmax(0, 1fr); }
/* The main site sets the height: a long package list scrolls inside the panel instead of stretching the row */
.site-layout.with-packages .package-panel { margin-top: 0; display: flex; flex-direction: column; contain: size; border-top: 3px solid var(--blue); }
.site-layout.with-packages .package-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.targets-empty { min-height: 0; padding: 48px 20px; border: 1px dashed var(--line); border-radius: 12px; }
body[data-view="sql"] .page-header .search-box { display: none; }
body[data-view="dns"] .page-header .search-box { display: none; }
body[data-view="server"] .page-header .search-box { display: none; }
dialog.newsite .hint { margin-top: 8px; line-height: 1.55; }
dialog.newsite .hint + .hint { margin-top: 10px; }
dialog.newsite .copy-connection-toggle + .hint { margin-top: 12px; }
#copy-destination-row { margin-top: 4px; }
.copy-server-fields { margin: 12px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.copy-server-fields legend { padding: 0 6px; color: var(--muted); font-size: 12px; }
#prod-move-options, #prod-copy-options { margin-top: 12px; }
.prod-dest-path { color: var(--text, inherit); }
.site-targets { margin-top: 32px; }
/* No main site shown (a user given only environments): the environments follow the title without the gap below a card */
.site-layout:not(.with-packages):has(> #envs:empty) + .site-targets { margin-top: 8px; }
.site-targets-head .actions.site-targets-right { margin-left: auto; }
/* In the middle of the bar: the free space is shared with the buttons on the right */
/* The environment filter, shaped like the site search in the header: the same corners, icon and clear button */
.targets-search-box { position: relative; display: flex; align-items: center; flex: 0 1 340px; min-width: 180px; margin-left: auto; }
.targets-search-box:has(#targets-search[hidden]) { display: none; }
.site-targets-head .targets-search { width: 100%; min-width: 0; height: 36px; padding: 0 38px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 13.5px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); transition: background .15s, border-color .15s, box-shadow .15s; }
.site-targets-head .targets-search:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(255, 255, 255, .16); }
.site-targets-head .targets-search:focus { outline: none; background: rgba(0, 0, 0, .3); border-color: rgba(88, 166, 255, .55); box-shadow: 0 0 0 3px rgba(88, 166, 255, .14); }
.site-targets-head .targets-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.targets-search-box .search-icon { left: 12px; width: 15px; height: 15px; color: var(--muted); }
.targets-search-box .search-clear { right: 7px; background: rgba(255, 255, 255, .12); color: var(--text); }
.targets-search-box .search-clear:hover:not(:where(:disabled, .disabled, .off)), .targets-search-box .search-clear:focus-visible { background: rgba(255, 255, 255, .24); }
.targets-search-box:has(#targets-search:not(:placeholder-shown)) .search-clear { display: grid; }
.site-targets-head .targets-search:not([hidden]) ~ .site-targets-right:empty { display: none; }
@media (max-width: 700px) { .site-targets-head .targets-search { flex-basis: 100%; order: 3; margin-left: 0; } }
/* A phone has no filter of the environments */
@media (max-width: 800px) { .site-targets-head .targets-search-box { display: none; } }
/* A phone: Publish and the syncs on a line of their own under the title, side by side, without their icons */
@media (max-width: 700px) {
	.site-targets-head .actions.site-targets-right { flex: 1 1 100%; flex-wrap: nowrap; gap: 6px; margin-left: 0; }
	.site-targets-head .site-targets-right > button { flex: 1 1 0; min-width: 0; padding-left: 8px; padding-right: 8px; justify-content: center; overflow: hidden; text-overflow: ellipsis; }
	.site-targets-head .site-targets-right > button > .ico { display: none; }
}
.site-danger { display: flex; justify-content: flex-end; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
/* A header bar in the style of the panels, so the section reads as one block with its cards */
.site-targets-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; padding: 14px 20px; background: linear-gradient(110deg, rgba(163, 113, 247, .1), transparent), var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.site-targets-title { display: flex; align-items: center; gap: 10px; }
.site-targets-head h3 { margin: 0; font-size: 18px; }
.site-targets-head .actions { margin: 0; padding: 0; border: 0; }
.env-targets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1000px) { .site-layout.with-packages { grid-template-columns: minmax(0, 1fr); } .site-layout.with-packages .package-panel { contain: none; } .env-targets { grid-template-columns: minmax(0, 1fr); } }
.env .actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; }

#dock { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(1, 4, 9, .72); backdrop-filter: blur(3px); }
.dock-window { display: flex; flex-direction: column; width: min(1200px, 94vw); height: min(720px, 86vh); background: #000; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .7); }
#dock.max .dock-window { width: 98vw; height: 96vh; }
.dock-bar { display: flex; align-items: center; gap: 6px; background: var(--panel); padding: 6px 10px; border-bottom: 1px solid var(--line); }
.dock-bar .ghost { color: var(--text); }
#dock #tabs { display: flex; gap: 4px; overflow-x: auto; margin: 0; flex-wrap: nowrap; }
#dock #panes { flex: 1; min-height: 0; position: relative; }
#dock #panes .pane { position: absolute; inset: 0; height: auto; min-height: 0; padding: 6px 10px; border: 0; border-radius: 0; overflow: hidden; }

dialog.editor { padding: 14px 18px; flex-direction: column; }
dialog.editor[open] { display: flex; }
dialog.editor .toolbar { margin-bottom: 10px; }
dialog.editor textarea { flex: 1; min-height: 0; width: 100%; resize: none; font: 13px/1.5 ui-monospace, Menlo, Consolas, monospace; tab-size: 4; }
dialog.wide { width: min(1000px, 94vw); }
dialog.editor, dialog.files-dialog, #dlg-logs { width: min(1100px, 94vw); height: min(740px, 86vh); }
#dlg-logs { padding: 18px; flex-direction: column; }
#dlg-logs[open] { display: flex; }
dialog.files-dialog { padding: 18px; }
.files-dialog #view-files { display: flex; flex-direction: column; height: 100%; }
.files-heading h2 { margin: 0; font-size: 18px; }
.files-dialog #drop { flex: 1; min-height: 0; overflow: auto; }
@media (max-width: 800px) { .page-header .search-box { min-width: 0; width: 0; flex: 1; } .page-header:has(#search:not([hidden])) > .spacer { display: none; } .brand h1, .brand .host { display: none; } .envs { grid-template-columns: 1fr; } }
@media (max-width: 800px) {
	.env .desktop-only, .env .actions:not(:has(> button:not(.desktop-only))) { display: none; }
	/* The buttons of a row share its width, so a row lines up at both edges however few buttons it has */
	.env .actions > button { flex: 1 1 auto; justify-content: center; }
	/* With two syncs, Sync setup on a line of its own and the syncs below it; with one, side by side. As wide as each other. */
	.env .actions > button.sync-setup, .env .actions > button.sync-setup ~ button { flex: 1 1 0; }
	.env .actions > button.sync-setup:nth-last-child(n+3) { flex-basis: 100%; }
	/* A hidden row between them hides the desktop's gap (the + sibling): the first row after the grouped ones gets it */
	.env > .actions.quick { margin-bottom: 0 !important; }
	.env > .actions.quick ~ .actions:not(.quick) { margin-top: 14px !important; }
	.package-row { flex-wrap: nowrap; gap: 10px; }
	.package-copy { flex: 1; }
	.package-versions { flex: 0 0 auto; max-width: 55%; justify-content: flex-end; }
	.package-version { white-space: nowrap; overflow-wrap: normal; }
	#view-sql { min-width: 0; }
	#sql-status { overflow-wrap: anywhere; }
	.sql-connection-bar label { min-width: 0; width: 100%; }
	#sql-connection { width: 100%; }
	.sql-connection-bar .spacer { display: none; }
	.sql-table { padding: 12px; overflow-x: visible; min-width: 0; }
	#view-sql table, #view-sql tbody { display: block; width: 100%; }
	#view-sql thead { display: none; }
	#view-sql tbody > tr { display: block; margin-top: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
	#view-sql td:not([colspan]) { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; width: 100%; padding: 6px 0; border: 0; white-space: normal; text-align: left; overflow-wrap: anywhere; }
	#view-sql td[data-label]::before { content: attr(data-label); color: var(--muted); font-weight: 400; }
	#view-sql td[colspan] { display: block; padding: 0; border: 0; }
	/* A database's or a backup's name is its card's head: the whole width, without a label, its badges and chips on
	   the line below, never squeezed into a letter a line beside them */
	#view-sql tbody > tr > td[data-label="Name"], #view-sql tbody > tr > td[data-label="Database"] { grid-template-columns: minmax(0, 1fr);
		margin-bottom: 4px; padding: 2px 0 10px; border-bottom: 1px solid var(--line); }
	#view-sql tbody > tr > td:is([data-label="Name"], [data-label="Database"])::before { display: none; }
	#view-sql .sql-database-name { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 6px 8px; min-width: 0; }
	#view-sql .sql-database-name:has(> .sql-tables-toggle) { grid-template-columns: auto auto minmax(0, 1fr); }
	#view-sql .sql-database-name > :not(.sql-tables-toggle, .sql-name-icon) { grid-column: -2; justify-self: start; max-width: 100%; min-width: 0; margin-left: 0; }
	#view-sql .sql-database-name > span:not(.sql-name-icon, .badge, .who-chips) { justify-self: stretch; font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
	#view-sql .sql-database-name .who-chip { max-width: 100%; min-width: 0; }
	#view-sql .actions { flex-wrap: wrap; justify-content: flex-start; min-width: 0; margin: 0; }
	/* An older backup is a card set in under the latest */
	#view-sql tbody > tr.sql-backup-older { margin: 6px 0 0 16px; }
	#view-sql tr.sql-backup-older > td:first-child { padding-left: 0; }
}

.list { position: relative; overflow-x: auto; }
.env .actions.quick { margin-top: 12px; }
.env .actions.quick button { background: var(--accent-soft, transparent); }
.env .actions.quick .script-menu-trigger { background: linear-gradient(135deg, rgba(88, 166, 255, .13), rgba(163, 113, 247, .1)); }
.env .actions.quick .script-menu-trigger:hover:not(:where(:disabled, .disabled, .off)), .env .actions.quick .script-menu-trigger[aria-expanded="true"] { background: rgba(88, 166, 255, .18); }
.env .actions.quick .script-menu-item { background: transparent; }
.env .actions.quick .script-menu-item:hover:not(:where(:disabled, .disabled, .off)), .env .actions.quick .script-menu-item:focus-visible { background: rgba(88, 166, 255, .1); }
.site:has(.script-menu-panel:not([hidden])), .env:has(.script-menu-panel:not([hidden])) { z-index: 10; }
.script-menu { position: relative; display: inline-flex; }
.script-menu-trigger { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; border-color: rgba(88, 166, 255, .4); color: var(--blue); background: linear-gradient(135deg, rgba(88, 166, 255, .13), rgba(163, 113, 247, .1)); }
.script-menu-trigger:hover:not(:where(:disabled, .disabled, .off)), .script-menu-trigger[aria-expanded="true"] { border-color: var(--blue); background: rgba(88, 166, 255, .18); }
.script-menu-trigger .ico { width: 14px; height: 14px; margin: 0; }
.script-menu-chevron { width: 9px; height: 9px; margin: -4px 2px 0 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; color: var(--muted); transform: rotate(45deg); transition: transform .15s; }
.script-menu-trigger[aria-expanded="true"] .script-menu-chevron { margin-top: 5px; transform: rotate(225deg); }
.script-menu-panel { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: min(360px, calc(100vw - 40px)); max-height: min(460px, 65vh); overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 8px; border: 1px solid rgba(88, 166, 255, .28); border-radius: 12px; background: linear-gradient(145deg, rgba(88, 166, 255, .08), transparent 48%), var(--panel); box-shadow: 0 18px 48px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .025); }
/* Opened from the button's right edge, or upwards, when there is no room the usual way (chosen as it opens) */
.script-menu.open-end .script-menu-panel { right: 0; left: auto; }
.script-menu.open-up .script-menu-panel { top: auto; bottom: calc(100% + 8px); }
/* A card or column that cuts off what stands out of it lets an open script menu show */
.env-col:has(.script-menu-panel:not([hidden])), .site:has(.script-menu-panel:not([hidden])), .env:has(.script-menu-panel:not([hidden])) { overflow: visible; }
.script-menu-header { position: sticky; top: -8px; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; margin: -8px -8px 4px; padding: 13px 14px 11px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 94%, #20334a); }
.script-menu-eyebrow { grid-column: 1 / -1; color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.script-menu-header strong { font-size: 13px; }
.script-menu-count { align-self: center; color: var(--muted); font-size: 11px; }
.script-menu-group { padding: 7px 4px 5px; }
.script-menu-group + .script-menu-group { border-top: 1px solid var(--line); }
.script-menu-group h4 { margin: 0 0 5px; padding: 0 8px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
/* Its name, and its file under it: never on top of each other, also beside the pencil and the trash can */
.script-menu-item { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; width: 100%; min-width: 0; padding: 7px 8px; border-color: transparent; background: transparent; text-align: left; }
.script-menu-item:hover:not(:where(:disabled, .disabled, .off)), .script-menu-item:focus-visible { border-color: rgba(88, 166, 255, .25); background: rgba(88, 166, 255, .1); }
.script-menu-item-label { max-width: 100%; min-width: 0; overflow-wrap: anywhere; font-weight: 500; line-height: 1.3; }
.script-menu-item code { max-width: 100%; overflow: hidden; color: var(--muted); font: 10.5px/1.4 ui-monospace, Menlo, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .script-menu-chevron { transition: none; } }
/* An administrator's own: a pencil beside each script, and New script… at the bottom */
.script-menu-row { display: flex; align-items: center; gap: 4px; }
.script-menu-row .script-menu-item { flex: 1; }
.script-menu-edit { display: grid; flex: none; place-items: center; width: 30px; height: 30px; padding: 0; border-color: transparent; background: transparent; color: var(--muted); }
.script-menu-edit:hover:not(:where(:disabled, .disabled, .off)), .script-menu-edit:focus-visible { border-color: rgba(210, 153, 34, .35); background: rgba(210, 153, 34, .12); color: #d29922; }
.script-menu-edit .ico { width: 14px; height: 14px; margin: 0; }
.script-menu-edit.danger:hover:not(:where(:disabled, .disabled, .off)), .script-menu-edit.danger:focus-visible { border-color: rgba(248, 81, 73, .4); background: rgba(248, 81, 73, .12); color: var(--red); }
/* Scripts someone other than root can change: not run until an administrator makes them root's */
/* Deleting what a dialog is about (a user, a template, a connection): at its foot, away from Save, in red with what it does */
.danger-zone { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding: 12px 14px; border: 1px solid rgba(248, 81, 73, .35); border-radius: 12px; background: rgba(248, 81, 73, .06); }
.danger-zone[hidden] { display: none; }
.danger-zone-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(248, 81, 73, .14); color: var(--red); }
.danger-zone-icon .ico { width: 16px; height: 16px; margin: 0; }
.danger-zone-text { display: grid; flex: 1; gap: 2px; min-width: 0; }
.danger-zone-text strong { color: var(--red); font-size: 13.5px; }
.danger-zone-text small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.danger-zone > button { flex: none; }
.danger-zone > button .ico { width: 14px; height: 14px; margin: 0; }
@media (max-width: 560px) { .danger-zone { flex-wrap: wrap; } .danger-zone > button { flex: 1 1 100%; justify-content: center; } }
.script-menu-warning { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; margin: 6px 4px 4px; padding: 10px; border: 1px solid rgba(210, 153, 34, .35); border-radius: 10px; background: rgba(210, 153, 34, .08); }
.script-menu-warning-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: rgba(210, 153, 34, .15); color: #d29922; }
.script-menu-warning-icon .ico { width: 14px; height: 14px; margin: 0; }
.script-menu-warning-text { display: grid; gap: 2px; }
.script-menu-warning-text strong { font-size: 12.5px; color: #d29922; }
.script-menu-warning-text small { color: var(--muted); font-size: 11.5px; line-height: 1.4; }
.script-menu-warning button { grid-column: 2; justify-self: start; }
.script-menu-warning button .ico { width: 13px; height: 13px; margin: 0; }
.script-menu-footer { position: sticky; bottom: -8px; margin: 4px -8px -8px; padding: 8px; border-top: 1px solid var(--line); background: var(--panel); }
.script-menu-new { display: inline-flex; align-items: center; gap: 7px; width: 100%; justify-content: center; border-color: rgba(63, 185, 80, .4); background: rgba(63, 185, 80, .1); color: var(--green); }
.script-menu-new:hover:not(:where(:disabled, .disabled, .off)), .script-menu-new:focus-visible { border-color: var(--green); background: rgba(63, 185, 80, .18); }
.script-menu-new .ico { width: 14px; height: 14px; margin: 0; }
.badge.version { text-transform: none; color: #fff; background: #57606a; }
.badge.version[data-major="0"] { background: #8250df; }
.badge.version[data-major="1"] { background: #0969da; }
.badge.version[data-major="2"] { background: #1a7f37; }
.badge.version[data-major="3"] { background: #bf8700; }
.badge.version[data-major="4"] { background: #cf222e; }
.badge.version[data-major="5"] { background: #bf3989; }
.badge.version[data-major="6"] { background: #0a7f8f; }
.badge.version[data-major="7"] { background: #953800; }

/* Button icons and tones */
/* A button's icon centred on its text's capital letters (-0.2em: its middle where theirs is), not on the small letters'
   height (vertical-align: middle left it a little low). No margin above or under it: one there moves it off that line.
   How the button lays itself out is not changed */
button .ico { width: 1.1em; height: 1.1em; margin: 0 6px 0 -2px; vertical-align: -0.2em; }
button[data-tone] { --tone: var(--muted); color: var(--tone); border-color: color-mix(in srgb, var(--tone) 35%, var(--line)); background: color-mix(in srgb, var(--tone) 9%, var(--panel2)); }
button[data-tone]:hover:not(:where(:disabled, .disabled, .off)) { background: color-mix(in srgb, var(--tone) 20%, var(--panel2)); border-color: var(--tone); }
button[data-tone="blue"] { --tone: var(--blue); }
button[data-tone="green"] { --tone: var(--green); }
button[data-tone="red"] { --tone: var(--red); }
button[data-tone="amber"] { --tone: #d29922; }
button[data-tone="teal"] { --tone: #39c5cf; }
button[data-tone="purple"] { --tone: var(--purple); }
button[data-tone="gray"] { --tone: #9da7b3; }
.menu button[data-tone] { background: transparent; border-color: transparent; color: var(--text); }
.menu button[data-tone] .ico { color: var(--tone); }
.menu button[data-tone]:hover:not(:where(:disabled, .disabled, .off)) { background: var(--hover); border-color: transparent; }
button.primary[data-tone] { background: #238636; border-color: #2ea043; color: #fff; }
/* The connection's buttons on one row: Cancel at the left; Remove, Test and Save at the right, each with its icon */
#form-sql-connection menu { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#sql-connection-cancel { margin-right: auto; }
#form-sql-connection menu > button:not(.cancel-link) { display: inline-flex; align-items: center; gap: 6px; }
#form-sql-connection menu > button .ico { width: 15px; height: 15px; margin: 0; }
@media (max-width: 560px) {
	#form-sql-connection menu > button:not(.cancel-link) { flex: 1 1 auto; justify-content: center; }
	#sql-connection-cancel { flex-basis: 100%; }
}
/* Delete buttons stand alone at the far right of their row */
.actions > button.danger, #site-head .actions > button.danger { margin-left: auto; }
dialog.editor #editor-box { flex: 1; min-height: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }

/* New site dialog */
dialog.newsite { width: min(640px, 94vw); max-height: 90vh; max-height: 90dvh; padding: 0; overflow-y: auto; }
dialog.newsite form { padding: 0 24px 20px; }
/* A window that deletes has no banner: its title and text stand at the top as a confirmation's do */
dialog.newsite.danger > form > header:not(.ns-head) { margin-bottom: 14px; padding-top: 22px; }
dialog.newsite.danger > form > header:not(.ns-head) h2 { margin: 0 0 8px; }
.ns-head { display: flex; align-items: center; gap: 14px; margin: 0 -24px 18px; padding: 20px 24px; background: linear-gradient(135deg, rgba(88,101,242,.35), rgba(139,92,246,.22)); border-bottom: 1px solid var(--line); }
.ns-head h2 { margin: 0; font-size: 20px; }
.ns-head p { margin: 2px 0 0; font-size: 13px; }
.ns-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: #fff; background: linear-gradient(135deg, #6c7bff, #8b5cf6); box-shadow: 0 4px 14px rgba(108,123,255,.4); }
.ns-icon .ico { width: 24px; height: 24px; }
.ns-head > div { min-width: 0; overflow-wrap: anywhere; }
.ns-section { margin: 4px 0 8px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
/* The cards share the width, however many there are */
.type-cards { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; gap: 10px; margin-bottom: 16px; }
dialog .type-card { position: relative; display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: rgba(255,255,255,.02); transition: border-color .15s, background .15s; }
.type-card:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled))) { border-color: var(--blue); }
.type-card input { position: absolute; opacity: 0; pointer-events: none; width: auto; }
.type-card .tc-title { color: var(--text); font-size: 14px; font-weight: 600; }
.type-card .tc-sub { font-size: 12px; color: var(--muted); }
.type-card:has(input:checked) { border-color: var(--blue); background: rgba(88,166,255,.12); box-shadow: 0 0 0 1px var(--blue) inset; }
/* No focus ring: the arrow keys move the choice, so the chosen card also shows where the keyboard is */
.ns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
dialog.newsite .hint { margin: 2px 0 0; font-size: 12px; }
dialog.newsite .template-status { height: 16px; line-height: 16px; overflow-y: auto; }
@media (max-width: 560px) { dialog.newsite .template-status { height: 32px; } }
dialog.newsite menu { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); list-style: none; align-items: center; }
dialog.newsite menu .cancel-action { margin-right: auto; }
@media (max-width: 560px) { .type-cards, .ns-grid { grid-template-columns: 1fr; } .type-cards { grid-auto-flow: row; } }
dialog.newsite input:not([type=radio]):not([type=checkbox]), dialog.newsite select { height: 38px; padding: 0 12px; font-size: 14px; line-height: 1.2; }
dialog.newsite .copy-connection-toggle input[type=checkbox] { width: auto; height: auto; padding: 0; flex-shrink: 0; }
dialog.newsite .copy-connection-toggle { flex-direction: row; align-items: center; gap: 9px; margin: 16px 0 0; padding: 12px; background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; }
#copy-sql-fields, #sql-database-login, #sql-restore-login, #sql-restore-overwrite { margin: 12px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
#copy-sql-fields .hint, #sql-database-login .hint, #sql-restore-login .hint, #sql-restore-overwrite .hint { margin-bottom: 12px; }
#copy-sql-fields label, #sql-database-login label, #sql-restore-login label, #sql-restore-overwrite label { min-width: 0; }
dialog.newsite select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b949e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
dialog.newsite select option { background: var(--panel2); color: var(--text); }
.actions > .push-right { margin-left: auto; }
.actions > .push-right + button.danger { margin-left: 0; }
.env-binding { display: flex; gap: 8px; align-items: baseline; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.env-tags { display: flex; gap: 6px; align-items: center; }
.badge.env-development { background: rgba(88, 166, 255, .2); color: var(--blue); }
.badge.env-test { background: rgba(210, 153, 34, .2); color: #d29922; }
.badge.env-staging { background: rgba(163, 113, 247, .2); color: #a371f7; }
.badge.env-production { background: rgba(248, 81, 73, .2); color: var(--red); }
.environment-current { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; color: var(--muted); font-size: 13px; }
.environment-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; border: 0; padding: 0; margin: 0 0 18px; }
.environment-options legend { margin-bottom: 12px; padding: 0; }
.environment-option { --env-tone: var(--blue); min-height: 76px; justify-content: center; }
.environment-option.env-test { --env-tone: #d29922; }
.environment-option.env-staging { --env-tone: var(--purple); }
.environment-option.env-production { --env-tone: var(--red); }
.environment-option .tc-title { color: var(--env-tone); }
.environment-option:has(input:checked) { border-color: var(--env-tone); background: color-mix(in srgb, var(--env-tone) 12%, transparent); box-shadow: 0 0 0 1px var(--env-tone) inset; }
dialog .environment-notice { padding: 12px 14px; border: 1px solid rgba(210, 153, 34, .25); border-radius: 10px; background: rgba(210, 153, 34, .07); font-size: 12px; color: #d29922; }
@media (max-width: 440px) { .environment-options { grid-template-columns: 1fr; } }
a.btn-link { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 3px 10px; font-size: 12.5px; color: var(--blue); text-decoration: none; background: rgba(88, 166, 255, .1); border: 1px solid rgba(88, 166, 255, .35); border-radius: 6px; transition: background .15s, border-color .15s; }
a.btn-link:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(88, 166, 255, .2); border-color: var(--blue); }
a.btn-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.btn-link .ico { width: 13px; height: 13px; flex: none; }
.site-links { display: flex; flex-direction: column; margin-top: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(1, 4, 9, .16); overflow: hidden; }
.site-link-group { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding: 12px; }
.site-link-group + .site-link-group { border-top: 1px solid var(--line); }
.site-environment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.site-environment-head .badge { font-size: 10px; padding: 4px 7px; }
.site-environment-links { display: flex; align-items: stretch; gap: 6px; flex-shrink: 0; }
.site-link-group.compact { padding: 7px 12px; }
/* A row opens the site's page at its environment: it lights up under the pointer, its links still their own */
.site-link-group.to-environment { cursor: pointer; transition: background .15s; }
.site-link-group.to-environment:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(88, 166, 255, .06); }
.site-link-group.compact .site-environment-head { flex-shrink: 0; flex-wrap: nowrap; }
.site-link-group.compact .site-environment-links { flex-shrink: 1; min-width: 0; }
.site-link-group.compact a.btn-link span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-link-group.compact a.btn-link svg { flex-shrink: 0; }
.site-link-group.compact a.btn-link { min-width: 0; }
.site-link-group.compact a.btn-link.backend { flex-shrink: 0; }
.site-link-group.compact .badge { flex-shrink: 0; }
.site-link-group.compact a.btn-link { padding: 3px 8px; font-size: 12px; }
.site-links .site-link-more { display: block; width: 100%; margin: 0; padding: 8px 12px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--muted); font-size: 12px; text-align: left; cursor: pointer; }
.site-links .site-link-more:hover:not(:where(:disabled, .disabled, .off)), .site-links .site-link-more:focus-visible { background: var(--hover); color: var(--text); }
.site-links:has(.publish-status) .site-environment-links { flex-direction: column; }
@media (max-width: 420px) {
	.site { padding: 16px; }
	.site-link-group { flex-wrap: wrap; }
	.site-environment-links { margin-left: auto; }
}
.https-lock { display: inline-flex; align-items: center; flex: none; }
.confirmation-copy { display: inline; padding: 0; border: 0; border-radius: 2px; background: transparent; color: inherit; font: inherit; overflow-wrap: anywhere; cursor: pointer; }
.confirmation-copy:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; text-decoration: underline; text-decoration-color: var(--muted); text-underline-offset: 3px; }
#form-prompt menu { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; list-style: none; }
#prompt-copy-status { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.clipboard-transfer { position: fixed; top: 0; left: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.https-lock.secure { color: #e3b341; }
.https-lock.insecure { color: var(--red); }
.https-lock.unknown { color: var(--muted); }
.remote-icon { display: inline-flex; align-items: center; color: var(--purple); }
.remote-icon .ico { width: 16px; height: 16px; }
.https-lock .ico { width: 15px; height: 15px; }
.site-link-group .frontend { --link-tone: var(--blue); }
.site-link-group .backend { --link-tone: var(--purple); }
.site-link-group.production .frontend { --link-tone: var(--green); }
.site-link-group.production .backend { --link-tone: #39c5cf; }
.site-link-group a.btn-link { color: var(--link-tone); background: color-mix(in srgb, var(--link-tone) 10%, transparent); border-color: color-mix(in srgb, var(--link-tone) 35%, transparent); }
.site-link-group a.btn-link:hover:not(:where(:disabled, .disabled, .off)) { background: color-mix(in srgb, var(--link-tone) 20%, transparent); border-color: var(--link-tone); }
.env-binding { flex-wrap: wrap; gap: 6px; }
.env-row { justify-content: space-between; }
.env-row > a.btn-link { justify-self: start; }
.env-tags { justify-self: end; }
#btn-new-site { margin-right: 14px; padding: 7px 18px; font-weight: 600; box-shadow: 0 2px 10px rgba(63, 185, 80, .25); }

/* A database unfolds into its tables */
.sql-database-name { display: flex; align-items: center; gap: 6px; }
.sql-tables-toggle { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: -4px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.sql-tables-toggle:hover:not(:where(:disabled, .disabled, .off)), .sql-tables-toggle:focus-visible { background: rgba(255, 255, 255, .08); color: var(--text, #e6edf3); }
.sql-tables-toggle svg { transition: transform .15s ease; }
.sql-tables-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
#sql-databases-panel table tr.sql-tables-row > td { width: auto; padding: 0 0 12px 30px; border-top: 0; }
.sql-tables { padding: 4px 0 0; font-size: 13px; }
.sql-tables-count { margin: 0 0 6px; font-size: 12px; }
.sql-tables ul { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); column-gap: 16px; }
.sql-tables li button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.sql-tables li button:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(88, 166, 255, .08); }
/* A table one may not query: the same line, not a button */
.sql-tables li .sql-table-still { display: flex; flex: 1; min-width: 0; align-items: baseline; justify-content: space-between; gap: 12px; padding: 5px 8px; border: 1px solid transparent; }
.sql-table-name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sql-table-meta { font-size: 11px; white-space: nowrap; }
.sql-tables p { margin: 0; }
/* A table a line: its name opens its rows, its buttons beside it; New table at the top */
.sql-tables-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.sql-tables-head .sql-tables-count { margin: 0; }
/* Filter tables…: beside the count, the size of the user dialog's filter */
.sql-tables-head .sql-tables-filter { flex: 0 1 280px; margin-left: auto; }
.sql-tables-filter .grant-search { width: 100%; min-width: 0; height: 30px; margin: 0; padding: 0 34px 0 34px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, .22); font-size: 12.5px; transition: background .15s, border-color .15s, box-shadow .15s; }
.sql-tables-filter .grant-search:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(255, 255, 255, .16); }
.sql-tables-filter .grant-search:focus { outline: none; background: rgba(0, 0, 0, .3); border-color: rgba(88, 166, 255, .55); box-shadow: 0 0 0 3px rgba(88, 166, 255, .14); }
.sql-tables-head .sql-tables-filter + .sql-tables-locked { margin-left: 0; }
.sql-table-line[hidden] { display: none; }
.sql-first-table { margin: 4px 0 6px; padding: 12px; }
.sql-add-table { margin: 8px 0 4px; }
.sql-tables-locked { display: inline-flex; align-items: center; gap: 5px; margin-left: 10px; padding: 2px 9px; border: 1px solid rgba(210, 153, 34, .35); border-radius: 999px;
	background: rgba(210, 153, 34, .08); color: #d29922; font-size: 11.5px; font-weight: 600; }
.sql-login-unlinked { color: #d29922; }
/* The SQL page's tabs: databases, backups and logins, one shown at a time */
/* As far from the connection above as the panel under it is from them */
.sql-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 16px 0 0; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .2); max-width: 100%; }
.sql-tabs[hidden], .sql-tabs button[hidden] { display: none; }
.sql-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 600; transition: background .15s, color .15s, box-shadow .15s; }
.sql-tabs button .ico { width: 15px; height: 15px; margin: 0; }
/* Hover only where there is a pointer: a tapped tab on a phone does not stay lit as if it were chosen */
@media (hover: hover) { .sql-tabs button:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .04); color: var(--text); } }
.sql-tabs button[aria-selected="true"] { background: rgba(88, 166, 255, .18); color: #cfe3ff; box-shadow: inset 0 0 0 1px rgba(88, 166, 255, .6), 0 1px 8px rgba(88, 166, 255, .15); }
.sql-tab-count { padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); font-size: 11.5px; font-weight: 600; }
.sql-tab-count:empty { display: none; }
.sql-tabs button[aria-selected="true"] .sql-tab-count { background: rgba(88, 166, 255, .22); color: #cfe3ff; }
.panel.tab-off { display: none !important; }
/* On a phone the tabs fill the row and share it, each at least as wide as its name and count */
@media (max-width: 560px) { .sql-tabs, .sql-tabs-row .sql-tabs { display: flex; flex: 1 1 100%; width: 100%; } .sql-tabs button { flex: 1 1 auto; justify-content: center; padding: 8px 10px; } }
/* On a narrow phone the three tabs stay on one row: their icons give way, their names and counts stay */
@media (max-width: 420px) { .sql-tabs { flex-wrap: nowrap; } .sql-tabs button { gap: 6px; padding: 8px 6px; font-size: 13px; } .sql-tabs button .ico { display: none; } }
.sql-login.editable { cursor: pointer; transition: background .15s; }
.sql-login.editable:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .055); }
#dlg-sql-database label.sql-make-login { margin: 2px 0 14px; }
#dlg-sql-database label.sql-make-login[hidden] { display: none; }
#dlg-user textarea[name=sftp_keys] { resize: none; height: 84px; }
/* Start from: a template each as a chip, the one used lit, with an x that deletes it */
#dlg-user .user-templates { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 14px; padding: 12px 14px; border: 1px dashed rgba(163, 113, 247, .4); border-radius: 12px; background: rgba(163, 113, 247, .05); }
#dlg-user .user-templates[hidden] { display: none; }
.user-templates-label { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.user-template-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.user-template { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); overflow: hidden; }
.user-template.active { border-color: rgba(163, 113, 247, .7); background: rgba(163, 113, 247, .16); }
.user-template button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: 12.5px; font-weight: 600; }
.user-template button .ico { width: 13px; height: 13px; margin: 0; }
.user-template .user-template-use .ico { color: #c9a8ff; }
/* A template's rules: framed as a site given to a user, its chips without the indent of a tree */
#dlg-user .template-rules .grant-body { padding: 12px 14px 14px; }
#dlg-user #template-name-field { margin-bottom: 4px; }
/* The templates under the users, as a list of their own */
.user-template button:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .05); }
.sql-tables-locked .ico { width: 12px; height: 12px; margin: 0; }
.sql-table-actions { opacity: 1; }
.sql-new-table { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px dashed rgba(88, 166, 255, .45); border-radius: 8px; background: transparent; color: var(--blue); font-size: 12.5px; font-weight: 600; }
.sql-new-table .ico { width: 13px; height: 13px; margin: 0; }
.sql-new-table:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--blue); background: rgba(88, 166, 255, .06); }
.sql-tables ul.sql-table-list, .sql-tables ul:has(> .sql-table-line) { grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); row-gap: 4px; }
.sql-table-line { display: flex; align-items: center; gap: 6px; }
.sql-tables li.sql-table-line button.sql-table-open { flex: 1; min-width: 0; }
.sql-table-actions { display: flex; flex: none; gap: 4px; opacity: .55; transition: opacity .15s; }
.sql-table-line:hover:not(:where(:disabled, .disabled, .off)) .sql-table-actions, .sql-table-actions:focus-within { opacity: 1; }
.sql-tables li .sql-table-actions button.icon-action { display: inline-grid; width: 28px; height: 28px; padding: 0; justify-content: center; align-items: center;
	border: 1px solid color-mix(in srgb, var(--tone) 35%, var(--line)); background: color-mix(in srgb, var(--tone) 9%, var(--panel2)); color: var(--tone); }
/* The table designer: a line a column, the SQL shown before it runs */
dialog#dlg-form.wide { width: min(1180px, 96vw); }
.design-names { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.design-names.single { grid-template-columns: minmax(0, 1fr); }
.design-schema { display: grid; gap: 4px; align-content: start; margin-bottom: 12px; }
.design-schema-label { color: var(--muted); font-size: 12.5px; }
.design-schemas { display: flex; flex-wrap: wrap; gap: 6px; min-height: 40px; align-items: center; }
.design-editor > .access-add { margin-bottom: 14px; }
.design-editor > .hint { margin: 0; }
.design-grid { display: grid; gap: 6px; margin: 4px 0 10px; overflow-x: auto; }
.design-columns { display: grid; gap: 6px; }
.design-column { display: grid; grid-template-columns: minmax(140px, 1.4fr) 150px 150px minmax(130px, 1.2fr) auto auto auto 34px; align-items: center; gap: 8px; min-width: 920px; }
.design-head span { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.design-column input, .design-column select { height: 34px; padding: 0 10px; font-size: 13.5px; width: 100%; min-width: 0; }
.design-name { font-weight: 600; }
.design-size-cell { display: flex; gap: 6px; }
.design-size-cell .design-size { width: 100%; }
.design-none { padding-left: 10px; }
.design-chip { position: relative; display: inline-flex; align-items: center; margin: 0; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px;
	color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; flex-direction: row; }
.design-chip input { position: absolute; opacity: 0; pointer-events: none; width: auto; height: auto; }
.design-chip:has(input:checked) { border-color: rgba(163, 113, 247, .6); background: rgba(163, 113, 247, .14); color: var(--text); }
.design-chip:has(input:disabled) { opacity: .55; cursor: default; }
.design-chip:has(input:focus-visible) { border-color: rgba(88, 166, 255, .7); }
/* Connect…: .NET or Python as two compact choices, the login and a password to put in side by side, and the string as
   code with its Copy beside it */
.connect-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 14px; }
.connect-kind { position: relative; display: grid; gap: 1px; margin: 0; padding: 9px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); cursor: pointer; }
.connect-kind input { position: absolute; opacity: 0; pointer-events: none; }
.connect-kind strong { color: var(--text); font-size: 13.5px; }
.connect-kind small { color: var(--muted); font-size: 12px; }
.connect-kind:has(input:checked) { border-color: rgba(88, 166, 255, .6); background: rgba(88, 166, 255, .1); }
.connect-kind:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(88, 166, 255, .25); }
.connect-who { margin-bottom: 14px; }
.connect-field { display: grid; gap: 6px; margin: 0; min-width: 0; }
.connect-label { color: var(--muted); font-size: 12.5px; }
.connect-string { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .3); }
.connect-code { flex: 1; min-width: 0; padding-top: 6px; color: var(--text); font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.connect-code .cs-key { color: var(--muted); }
.connect-code .cs-fill { padding: 1px 5px; border-radius: 5px; background: rgba(210, 153, 34, .16); color: #e3b341; font-weight: 600; }
.connect-copy { flex: none; }
.connect-copy .ico { width: 14px; height: 14px; margin: 0; }
.connect-hint { margin: 10px 0 0; }
@media (max-width: 560px) { .connect-string { flex-direction: column; } .connect-copy { align-self: stretch; justify-content: center; } }
.design-sql { max-height: 460px; margin: 0; padding: 14px 16px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .3);
	font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; }
/* Logins: a line each, and a dashed line that adds one */
.sql-logins { display: grid; gap: 6px; }
.sql-login { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .03); }
.sql-login.locked { opacity: .65; }
.login-databases { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.login-database { display: grid; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; transition: opacity .15s, border-color .15s; }
.login-database:not(.off) { border-color: rgba(88, 166, 255, .45); background: rgba(88, 166, 255, .04); }
.login-database.off .login-roles { opacity: .4; pointer-events: none; }
.login-database-name { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; color: var(--text); cursor: pointer; }
.login-database-name input { position: absolute; opacity: 0; pointer-events: none; width: auto; }
.login-database-name strong { flex: 1; }
.login-database-check { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid var(--line); border-radius: 6px; color: transparent; }
.login-database-check .ico { width: 13px; height: 13px; margin: 0; color: inherit !important; }
.login-database:not(.off) .login-database-check { border-color: var(--blue); background: var(--blue); color: #fff; }
.login-database-name:has(input:focus-visible) .login-database-check { box-shadow: 0 0 0 2px rgba(88, 166, 255, .5); }
.login-database-name .ico { width: 14px; height: 14px; margin: 0; color: var(--purple); }
.login-roles { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) { .login-databases { grid-template-columns: minmax(0, 1fr); } }
.sql-tables-error { color: #f85149; }

/* Data sync settings of a site */
#dlg-data-sync .copy-connection-toggle > span { display: flex; flex-direction: column; gap: 2px; }
#dlg-data-sync .copy-connection-toggle small { color: var(--muted); font-size: 12px; font-weight: 400; }
#dlg-data-sync .data-sync-main { margin-top: 4px; }
.data-sync-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4px; transition: opacity .15s ease; }
.data-sync-options fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.data-sync-options legend { padding: 0; margin: 16px 0 0; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
#dlg-data-sync .data-sync-options .copy-connection-toggle { margin-top: 8px; }
.data-sync-options.off { opacity: .45; }
.data-sync-options.off .copy-connection-toggle { cursor: default; }
@media (max-width: 560px) { .data-sync-options { grid-template-columns: 1fr; gap: 0; } }

/* The rows of an environment card, each named by its group at the left; wrapped buttons line up under the first */
.env .actions[data-group] { position: relative; padding-left: 72px; }
.env-head .env-head-action { margin-left: auto; }
.env-head .env-head-action ~ .env-head-action { margin-left: 0; }
/* Move under main site: the site and its main site side by side, the main sites as cards, what it means as three points */
.adopt-from { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(110deg, rgba(163, 113, 247, .08), transparent 70%), var(--panel2); }
.adopt-site { display: flex; flex: 1; align-items: center; gap: 10px; min-width: 0; }
.adopt-site.to .server-card-icon { background: rgba(163, 113, 247, .16); color: var(--purple); }
.adopt-arrow { display: grid; flex: none; place-items: center; color: var(--muted); }
.adopt-arrow .ico { width: 18px; height: 18px; margin: 0; }
.adopt-points { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.adopt-points li { display: flex; align-items: flex-start; gap: 12px; }
.adopt-points li > span:last-child { display: grid; gap: 1px; }
.adopt-points strong { font-size: 13.5px; }
.adopt-points small { color: var(--muted); font-size: 12.5px; }
.adopt-point-icon { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 8px; }
.adopt-point-icon .ico { width: 14px; height: 14px; margin: 0; }
.adopt-point-icon[data-tone="green"] { background: rgba(63, 185, 80, .14); color: var(--green); }
.adopt-point-icon[data-tone="blue"] { background: rgba(88, 166, 255, .14); color: var(--blue); }
.adopt-point-icon[data-tone="purple"] { background: rgba(163, 113, 247, .16); color: var(--purple); }
@media (max-width: 560px) { .adopt-from { flex-wrap: wrap; } .adopt-arrow { transform: rotate(90deg); } }
/* Servers: Linux and Windows apart, each under a heading that spans the grid */
.servers-group { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 10px 0 -2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.servers-group:first-child { margin-top: 0; }
.servers-group-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(88, 166, 255, .12); color: var(--blue); }
.servers-group-icon .ico { width: 14px; height: 14px; margin: 0; }
.servers-group-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.servers-group-count { padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); font-size: 12px; font-weight: 600; }
.servers-group-sub { margin-left: auto; color: var(--muted); font-size: 12px; text-align: right; }
@media (max-width: 720px) { .servers-group { flex-wrap: wrap; } .servers-group-sub { flex-basis: 100%; margin-left: 36px; text-align: left; } }
/* A list with nothing in it yet (Servers, Users): a dashed card that adds the first, as Add environment's card for a server */
.add-first-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-width: 0; min-height: 180px;
	padding: 20px; border: 1px dashed var(--line); border-radius: 12px; background: transparent; color: var(--muted); text-align: center; cursor: pointer; white-space: normal; overflow: hidden;
	transition: border-color .15s, background .15s; }
.add-first-card:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .55); background: rgba(88, 166, 255, .04); }
.add-first-card:focus-visible { outline: none; border-color: rgba(88, 166, 255, .55); }
.users-list > .add-first-card { width: 100%; margin-top: 20px; }
.add-first-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(88, 166, 255, .12); color: var(--blue); }
.add-first-icon .ico { width: 20px; height: 20px; margin: 0; }
.add-first-text { display: grid; justify-items: center; gap: 4px; width: 100%; max-width: 320px; min-width: 0; }
.add-first-text strong { color: var(--text); font-size: 15px; }
.add-first-text small { color: var(--blue); font-size: 12.5px; line-height: 1.45; }
/* The servers to choose from in a dialog: a card each, the chosen one blue with a tick, and a dashed card to add one */
.server-picker-row { display: grid; gap: 8px; margin-top: 14px; }
.server-picker-row[hidden] { display: none; }
.server-picker-label { color: var(--muted); font-size: 13px; }
.server-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.server-card { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.server-card:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .45); }
.server-card-icon { display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: rgba(88, 166, 255, .12); color: var(--blue); font-size: 18px; }
.server-card-icon .ico { width: 16px; height: 16px; margin: 0; }
.server-card-text { display: grid; gap: 1px; min-width: 0; }
.server-card-text strong { font-size: 13.5px; }
.server-card-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
/* Convert's servers: its kind and where, a line each (cut with … when narrow) */
.convert-servers .server-card-text { display: grid; gap: 1px; min-width: 0; }
/* A server Move cannot carry the backup to yet: a small amber warning in the card's top right corner */
.convert-servers .server-card-warn { position: absolute; top: 14px; right: 16px; display: inline-flex; color: #d29922; }
.convert-servers .server-card-warn .ico { width: 14px; height: 14px; margin: 0; }
.server-card-check { display: none; margin-left: auto; color: var(--blue); }
.server-card-check .ico { width: 15px; height: 15px; margin: 0; }
.server-card.chosen { border-color: rgba(88, 166, 255, .7); background: rgba(88, 166, 255, .12); box-shadow: 0 1px 8px rgba(88, 166, 255, .12); }
.server-card.chosen .server-card-check { display: inline-flex; }
.server-card.add { border-style: dashed; background: transparent; }
.server-card.add .server-card-icon { background: transparent; border: 1px dashed var(--line); color: var(--muted); }
.server-card.add strong { color: var(--muted); }
.server-card.add:hover:not(:where(:disabled, .disabled, .off)) strong { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .server-card { transition: none; } }
/* A kind of server Servers does not have yet (Add environment, Copy site): a dashed card with a plus, opening Servers */
dialog label.type-card.needs-server { position: relative; border-style: dashed; background: transparent; cursor: pointer; }
dialog label.type-card.needs-server .tc-title { color: var(--muted); }
dialog label.type-card.needs-server .tc-sub { color: var(--blue); }
dialog label.type-card.needs-server::after { content: "+"; position: absolute; top: 10px; right: 12px; color: var(--muted); font-size: 18px; line-height: 1; }
dialog label.type-card.needs-server:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .55); }
dialog label.type-card.needs-server:hover:not(:where(:disabled, .disabled, .off)) .tc-title { color: var(--text); }
.env .actions[data-group]::before { content: attr(data-group); position: absolute; left: 0; top: 10px; height: 26px; display: flex; align-items: center; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .75; }
@media (max-width: 700px) {
	.env .actions[data-group] { padding-left: 0; }
	.env .actions[data-group]::before { position: static; flex-basis: 100%; height: auto; }
}
#sql-databases-panel tr.sql-database-row { cursor: pointer; }
#sql-databases-panel tr.sql-database-row:hover:not(:where(:disabled, .disabled, .off)) > td { background: rgba(255, 255, 255, .025); }
#sql-databases-panel tr.sql-database-row .actions button { cursor: pointer; }

/* Sync dialog: where from, and a card per destination */
.sync-from { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 2px 0 18px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); font-size: 13px; }
.sync-from-label { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sync-env-name { --env-tone: var(--blue); color: var(--env-tone); font-weight: 600; }
.sync-env-name.env-test { --env-tone: #d29922; }
.sync-env-name.env-staging { --env-tone: var(--purple); }
.sync-env-name.env-production { --env-tone: var(--red); }
.sync-options { display: block; margin-bottom: 4px; }
.sync-options legend { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sync-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sync-choice { min-height: 68px; }
.sync-choice .tc-sub { overflow-wrap: anywhere; }
.sync-choice.env-all { --env-tone: var(--green); grid-column: 1 / -1; min-height: 0; }
.sync-chips { display: flex; gap: 6px; margin-top: 6px; }
/* Each destination's last syncs, as the dashboard in Umbraco shows them */
.sync-status { display: grid; gap: 3px; margin-top: 8px; font-size: 12px; }
.sync-status-row { display: flex; align-items: center; gap: 8px; }
.sync-status-kind { min-width: 56px; color: var(--text); font-weight: 600; }
.sync-status-when { color: var(--muted); white-space: nowrap; }
.sync-status-pill { margin-left: auto; padding: 0 7px; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sync-status-row.current .sync-status-pill { background: rgba(63, 185, 80, .15); color: var(--green); }
.sync-status-row.changed .sync-status-pill, .sync-status-row.behind .sync-status-pill { background: rgba(210, 153, 34, .16); color: #d29922; }
.sync-status-row.failed .sync-status-pill { background: rgba(248, 81, 73, .15); color: var(--red); }
.sync-status-row.never .sync-status-pill { background: rgba(255, 255, 255, .06); color: var(--muted); }
.sync-choice.up-to-date, .sync-choice.settings-behind { opacity: .6; cursor: not-allowed; }
/* The title wraps before the label or check mark at the card's top right, not under it */
.sync-choice.up-to-date .tc-title { padding-right: 96px; }
.sync-choice:has(input:checked) .tc-title { padding-right: 18px; }
.sync-choice.up-to-date::after { content: "Nothing to sync"; position: absolute; top: 10px; right: 12px; color: var(--green); font-size: 11px; font-weight: 700; }
.sync-anyway-row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 10px 0 0; font-size: 12px; }
dialog .sync-settings-first { display: flex; flex-direction: row; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border: 1px solid rgba(210, 153, 34, .35); border-radius: 10px; background: rgba(210, 153, 34, .08); cursor: pointer; text-align: left; }
dialog .sync-settings-first input { flex: none; width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; }
.sync-settings-first span { display: grid; gap: 2px; }
.sync-settings-first small { color: var(--muted); }
/* Who can reach the admin site: the tick that says you lock yourself out, in red */
dialog .admin-access-lockout { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; padding: 10px 12px; border: 1px solid rgba(248, 81, 73, .45); border-radius: 10px; background: rgba(248, 81, 73, .08); cursor: pointer; text-align: left; }
dialog .admin-access-lockout[hidden] { display: none; }
dialog .admin-access-lockout input { flex: none; width: 16px; height: 16px; min-height: 0; margin: 2px 0 0; padding: 0; }
.admin-access-lockout span { display: grid; gap: 2px; }
.admin-access-lockout small { color: var(--muted); }
#dlg-admin-access textarea { resize: none; width: 100%; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
#admin-access-list-row[hidden] { display: none; }
dialog fieldset.admin-access-others { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; border: 0; min-width: 0; }
.admin-access-others legend { margin-bottom: 8px; padding: 0; color: var(--muted); font-size: 12.5px; }
dialog .admin-access-others #admin-access-target-row { margin: 0; }
#admin-access-target-row[hidden] { display: none; }
/* Your address under the list: what it is, and Add it, or In the list once it is */
.your-address { display: flex; align-items: center; gap: 12px; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(110deg, rgba(88, 166, 255, .07), transparent 70%), var(--panel2); }
.your-address-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(88, 166, 255, .14); color: var(--blue); }
.your-address-icon .ico { width: 17px; height: 17px; margin: 0; }
.your-address-text { display: grid; gap: 1px; min-width: 0; }
.your-address-text small { color: var(--muted); font-size: 11.5px; letter-spacing: .02em; }
.your-address-text strong { overflow: hidden; font: 600 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; text-overflow: ellipsis; white-space: nowrap; }
.your-address > button, .your-address-in { margin-left: auto; flex: none; }
.your-address-in { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(63, 185, 80, .14); color: var(--green); font-size: 12.5px; font-weight: 600; }
.your-address-in[hidden], .your-address > button[hidden] { display: none; }
.your-address-in .ico { width: 13px; height: 13px; margin: 0; }
.sync-recent { margin-top: 14px; font-size: 12px; }
.sync-recent-title { margin-bottom: 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sync-recent table { width: 100%; border-collapse: collapse; }
.sync-recent td { padding: 4px 8px 4px 0; border-top: 1px solid var(--line); white-space: nowrap; }
.sync-recent tr:first-child td { border-top: 0; }
.sync-recent-result { text-align: right; color: var(--green); }
.sync-recent tr.failed .sync-recent-result { color: var(--red); }
/* A phone has no room for the table's five columns: each sync becomes a small block, where to and the result at the top */
@media (max-width: 560px) {
	.sync-recent table, .sync-recent tbody { display: block; }
	.sync-recent tr { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; padding: 6px 0; border-top: 1px solid var(--line); }
	.sync-recent tr:first-child { border-top: 0; }
	.sync-recent td { padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
	.sync-recent td:empty { display: none; }
	.sync-recent td:nth-child(2) { grid-row: 1; grid-column: 1 / 3; font-weight: 600; }
	.sync-recent td:nth-child(5) { grid-row: 1; grid-column: 3; }
	.sync-recent td:nth-child(1) { grid-row: 2; grid-column: 1; }
	.sync-recent td:nth-child(4) { grid-row: 2; grid-column: 2 / 4; }
	.sync-recent td:nth-child(3) { grid-row: 3; grid-column: 1 / -1; color: var(--muted); }
}
.sync-chip { padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--env-tone) 16%, transparent); color: var(--env-tone); font-size: 11px; font-weight: 600; text-transform: capitalize; }
@media (max-width: 440px) { .sync-choices { grid-template-columns: 1fr; } }
dialog.newsite .sync-options ~ .hint { margin-top: 12px; }
dialog.newsite .data-sync-options ~ .hint { margin-top: 22px; }
/* With a Manage row, the Site row above it starts the bottom block of the card */
.env > .actions:not(.quick):has(+ .actions:last-child:not(.quick)) { margin-top: auto; padding-top: 10px; }
.env > .actions:not(.quick) + .actions:last-child:not(.quick) { margin-top: 10px; padding-top: 10px; }
.remote-icon { gap: 5px; }
.remote-icon .os-logo { display: inline-flex; }
.remote-icon .os-logo svg { width: 16px; height: 16px; }
.remote-icon .os-linux svg { width: 19px; height: 19px; margin: -2px 0; }
.sync-options legend { display: flex; align-items: center; width: 100%; }
dialog.newsite .sync-select-all { margin-left: auto; padding: 0; border: 0; background: transparent; color: var(--blue); font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; cursor: pointer; }
dialog.newsite .sync-select-all:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; text-decoration: underline; }
.sync-choice:has(input:checked)::after { content: "\2713"; position: absolute; top: 10px; right: 12px; color: var(--env-tone); font-weight: 700; }
#files.files-windows th:nth-child(4), #files.files-windows td:nth-child(4), #files.files-windows th:nth-child(5), #files.files-windows td:nth-child(5) { display: none; }
/* The binding and its badge centred on one line: vertical-align middle set the badge by the x-height, a little low */
.meta dd:has(> .badge.any-name) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.meta .badge.any-name { margin: 0; background: rgba(63, 185, 80, .15); color: var(--green); line-height: 1.4; }
.data-sync-settings { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#dlg-data-sync .data-sync-settings .copy-connection-toggle { margin-top: 0; }
#dlg-data-sync .data-sync-settings .copy-connection-toggle[hidden] { display: none; }
#dlg-data-sync .ns-section + .data-sync-main { margin-top: 0; }
#dlg-data-sync .data-sync-settings + .ns-section { margin-top: 22px; }
@media (max-width: 560px) { .data-sync-settings { grid-template-columns: 1fr; } }
/* A destination card names the site, with its environment below in the environment's colour */
.sync-choice .tc-title { color: var(--text); overflow-wrap: anywhere; }
.sync-choice .tc-sub { color: var(--env-tone); font-weight: 600; font-size: 12px; }
.sync-from-site { color: var(--text); font-weight: 600; }
button[data-tone="pink"] { --tone: #db61a2; }

/* Sync setup: cards to turn on, with arrows for the direction. Send points up and out, receive down and in. */
#dlg-data-sync .ns-section { display: flex; align-items: baseline; gap: 10px; }
.sync-section-note { color: var(--muted); font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.sync-options-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.sync-options-row:first-child { margin-top: 0; }
.sync-option { --option-tone: var(--blue); position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); cursor: pointer; transition: border-color .15s, background .15s; }
.sync-option.out { --option-tone: var(--green); }
.sync-option.in { --option-tone: #39c5cf; }
.sync-option.main { --option-tone: #db61a2; margin-bottom: 12px; }
.sync-option.start { --option-tone: #d29922; }
.sync-option.wide { grid-column: 1 / -1; }
/* A row whose only card is hidden (Import at startup on a site that receives nothing) takes no room */
.sync-options-row:has(> .sync-option[hidden]:only-child) { display: none; }
.sync-option[hidden] { display: none; }
.sync-option input { position: absolute; opacity: 0; pointer-events: none; }
.sync-option:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled), .data-sync-options.off *)) { border-color: color-mix(in srgb, var(--option-tone) 60%, var(--line)); }
.sync-option-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .04); color: var(--muted); transition: background .15s, color .15s; }
.sync-option-icon .ico { width: 18px; height: 18px; margin: 0; }
.sync-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sync-option-title { color: var(--text); font-size: 14px; font-weight: 600; }
.sync-option-sub { color: var(--muted); font-size: 12px; }
.sync-option:has(input:checked) { border-color: var(--option-tone); background: color-mix(in srgb, var(--option-tone) 10%, transparent); box-shadow: 0 0 0 1px var(--option-tone) inset; }
.sync-option:has(input:checked) .sync-option-icon { background: color-mix(in srgb, var(--option-tone) 22%, transparent); color: var(--option-tone); }
.sync-option:has(input:checked)::after { content: "\2713"; position: absolute; top: 8px; right: 12px; color: var(--option-tone); font-weight: 700; }
/* Focus shows on the title only, so a card that has the focus never looks chosen */
.sync-option:has(input:focus-visible) .sync-option-title { text-decoration: underline; text-underline-offset: 3px; }
.data-sync-options.off .sync-option { cursor: default; }
#dlg-data-sync .data-sync-options { display: block; margin-top: 0; }
#dlg-data-sync .ns-section + .sync-options-row { margin-top: 0; }
@media (max-width: 560px) { .sync-options-row { grid-template-columns: 1fr; } }
/* Beside the dialog's own label layout, which stacks a label's contents */
#dlg-data-sync label.sync-option { flex-direction: row; align-items: center; justify-content: flex-start; margin: 0; text-align: left; font-size: inherit; color: inherit; }
#dlg-data-sync label.sync-option.main { margin-bottom: 12px; }
#dlg-data-sync .sync-options-row + .ns-section { margin-top: 24px; }
/* The environment's colour marks the card and its name; what is synced is shown in neutral chips */
.sync-chip { background: rgba(255, 255, 255, .07); color: var(--muted); }
.sync-choice:has(input:checked) { background: color-mix(in srgb, var(--env-tone) 6%, transparent); }

/* Phones zoom in on a field with text below 16px when it gets the focus: fields are 16px there */
@media (max-width: 700px) {
	input, select, textarea { font-size: 16px !important; }
}
.badge.not-set-up { background: rgba(210, 153, 34, .18); color: #d29922; }

/* The update dialog: versions, then the notes of each release or the latest commit */
dialog.wide.system-update-dialog { width: min(720px, 92vw); }
.system-update-notes { display: flex; flex-direction: column; gap: 12px; max-height: 52vh; overflow: auto; margin-top: 4px; }
.system-update-release { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.system-update-release-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.system-update-release-head a { margin-left: auto; color: var(--blue); font-size: 12px; text-decoration: none; }
.system-update-release-head a:hover:not(:where(:disabled, .disabled, .off)) { text-decoration: underline; }
.system-update-subject { margin: 0; font-weight: 600; }
.release-notes h4 { margin: 12px 0 4px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.release-notes h4:first-child { margin-top: 2px; }
.release-notes ul { margin: 0; padding-left: 18px; }
.release-notes li { margin: 3px 0; }
.release-notes li.nested { margin-left: 16px; list-style: circle; }
.release-notes p { margin: 6px 0; }
.system-update-changes { display: inline-block; margin-top: 12px; color: var(--blue); font-size: 13px; text-decoration: none; }
.system-update-changes:hover:not(:where(:disabled, .disabled, .off)) { text-decoration: underline; }
.system-update-changes[hidden] { display: none; }
.settings-version { margin-top: 6px; padding: 8px 12px 4px; border-top: 1px solid var(--line); font-size: 11px; text-align: center; }
.settings-version:empty { display: none; }
#dlg-system-update .system-update-notes + .hint { margin-top: 14px; }
/* While VNS updates: from which version to which, and the step it is on */
.system-update-versions-line { margin: 4px 0 10px; color: var(--purple); font-size: 15px; font-weight: 600; }
.system-update-step { max-width: min(560px, 90vw); margin: 14px auto 0; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Sites | SQL Server in the header: the two sections of the admin, always in reach */
.view-switch { display: inline-flex; gap: 2px; margin-left: 18px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .03); }
.view-switch button { padding: 6px 14px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; cursor: pointer; }
/* Each part of the switch with its icon */
.view-switch button { display: inline-flex; align-items: center; gap: 6px; }
.view-switch button[hidden] { display: none; }
.view-switch button .ico, #btn-settings .ico { width: 14px; height: 14px; margin: 0; }
#btn-settings { display: inline-flex; align-items: center; gap: 6px; }
.view-switch button:hover:not(:where(:disabled, .disabled, .off)) { color: var(--text); background: var(--hover); }
.view-switch button.active { background: rgba(163, 113, 247, .16); color: var(--text); box-shadow: 0 0 0 1px rgba(163, 113, 247, .35) inset; }
@media (max-width: 700px) { .view-switch { margin-left: 8px; } .view-switch button { padding: 5px 9px; font-size: 12px; } }

/* The Server menu's bottom: the version, and an update when there is one */
.settings-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; padding: 8px 10px 4px; border-top: 1px solid var(--line); }
.settings-footer .settings-version { margin: 0; padding: 0; border: 0; color: var(--muted); font-size: 12px; text-align: left; }
.settings-uptodate { color: var(--green); font-size: 12px; }
.settings-footer #settings-update { width: auto; padding: 5px 10px; font-size: 12px; }
.menu button.menu-danger:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(248, 81, 73, .12); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.preferences-interval { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.preferences-interval input { max-width: 160px; }
.page-header .view-switch { flex: none; width: auto; border-color: rgba(255, 255, 255, .28); background: rgba(0, 0, 0, .12); }
.page-header .view-switch button { color: rgba(255, 255, 255, .78); }
.page-header .view-switch button:hover:not(:where(:disabled, .disabled, .off)) { color: #fff; background: rgba(255, 255, 255, .12); }
.page-header .view-switch button.active { color: #fff; background: rgba(255, 255, 255, .22); box-shadow: none; }

/* Preferences: keep-alive as a card that turns on, and the interval as quick choices */
.keep-alive-option { --option-tone: var(--green); }
.keep-alive-interval { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; transition: opacity .15s; }
.keep-alive-interval.off { opacity: .45; }
.keep-alive-every { margin-right: 4px; color: var(--muted); font-size: 13px; }
.keep-alive-interval button { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .02); color: var(--text); font-size: 13px; cursor: pointer; }
.keep-alive-interval button:hover:not(:disabled) { border-color: color-mix(in srgb, var(--green) 60%, var(--line)); }
.keep-alive-interval button.active { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); font-weight: 600; }
.keep-alive-interval button:disabled { cursor: default; }
.keep-alive-custom { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0 0 0 6px; color: var(--muted); font-size: 13px; }
.keep-alive-custom input { width: 76px; height: 32px; }

/* Multi action: the selected sites, then the actions as cards */
#dlg-multi { width: min(720px, 94vw); max-height: 90dvh; overflow-y: auto; }
#dlg-multi #multi-selection { margin: 2px 0 6px; }
.multi-choices { margin-bottom: 6px; }
.multi-choices-4 { grid-template-columns: repeat(4, 1fr); }
.multi-choice .tc-sub { font-size: 12px; }
#dlg-multi .ns-section { margin-top: 14px; }
@media (max-width: 640px) { .multi-choices-4 { grid-template-columns: repeat(2, 1fr); } }

/* Logs as a list: time, level, source and message, with a filter */
dialog.wide.logs-dialog { width: min(1180px, 94vw); height: min(780px, 86vh); }
dialog.logs-dialog[open] { display: flex; flex-direction: column; }
.logs-dialog h2 { margin: 0 0 12px; }
.logs-toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.logs-toolbar #logs-search { flex: 1 1 220px; height: 34px; }
.logs-levels { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; }
.logs-levels button { padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 12px; cursor: pointer; }
.logs-levels button span { margin-left: 4px; opacity: .8; }
.logs-levels button.active { background: rgba(255, 255, 255, .08); color: var(--text); }
.logs-levels button[data-level="error"].active { background: rgba(248, 81, 73, .16); color: #ff7b72; }
.logs-levels button[data-level="warn"].active { background: rgba(210, 153, 34, .18); color: #e3b341; }
.logs-levels button[data-level="blocked"].active { background: rgba(56, 139, 253, .16); color: #79c0ff; }
.logs-raw { padding: 6px 12px; font-size: 12px; }
.logs-raw[aria-pressed="true"] { border-color: var(--blue); color: var(--blue); }
.logs-list, .logs-raw-text { flex: 1; min-height: 0; overflow: auto; margin: 0; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); }
.logs-raw-text { padding: 12px; font-size: 12px; white-space: pre-wrap; }
.log-row { display: grid; grid-template-columns: 140px 72px minmax(0, 150px) minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 6px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); font-size: 12px; }
.log-row:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .03); }
.log-time { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; overflow: hidden; }
.log-level { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(255, 255, 255, .06); color: var(--muted); }
.log-row.level-error { background: rgba(248, 81, 73, .05); }
.log-row.level-error .log-level { background: rgba(248, 81, 73, .18); color: #ff7b72; }
.log-row.level-warn .log-level { background: rgba(210, 153, 34, .2); color: #e3b341; }
.log-row.level-blocked .log-level { background: rgba(56, 139, 253, .16); color: #79c0ff; }
.log-row.level-blocked .log-message { color: var(--muted); }
.log-source { color: #79c0ff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-message { color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.logs-empty, .logs-error { margin: 0; padding: 14px; }
.logs-error { color: #f85149; }
.logs-dialog menu { align-items: center; }
.logs-count { margin-right: auto; font-size: 12px; }
@media (max-width: 700px) {
	.log-row { grid-template-columns: auto auto 1fr; }
	.log-message { grid-column: 1 / -1; }
}
.multi-package-fields { margin-top: 10px; }
#dlg-multi #multi-action-description:not(:empty) { margin-top: 12px; }
.logs-levels:not(:has(button:not([hidden]):not([data-level="all"]))) { display: none; }
.logs-dialog h2 + .logs-source { margin: -8px 0 12px; }
.logs-source { color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; overflow-wrap: anywhere; }
.log-file { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 5px 8px 5px 12px; border-bottom: 1px solid var(--line); background: var(--panel2, #1c2129); color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 600; }
.log-file > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-file-clear { margin-left: auto; padding: 2px 10px; font-family: inherit; font-size: 12px; font-weight: 500; }
.log-file-clear:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--red, #f85149); color: var(--red, #f85149); }
#preferences-keep-alive-hint { margin-top: 14px; }
#sql-restore-overwrite { border-color: color-mix(in srgb, var(--red) 45%, var(--line)); }
#sql-restore-overwrite legend { color: var(--red); }
#sql-restore-submit.primary.danger { background: #da3633; border-color: var(--red); color: #fff; }

/* .NET versions: each major its own colour. Outlined, so they are not taken for the Umbraco version next to them. */
.badge.dotnet { --tone: #a371f7; text-transform: none; color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone, var(--muted)) 55%, transparent); }
.badge.dotnet[data-major="8"] { --tone: #8b949e; }
.badge.dotnet[data-major="9"] { --tone: #d29922; }
.badge.dotnet[data-major="10"] { --tone: #a371f7; }
.badge.dotnet[data-major="11"] { --tone: #39c5cf; }
.badge.dotnet[data-major="12"] { --tone: #3fb950; }
.badge.dotnet[data-major="13"] { --tone: #f778ba; }

/* Grid or list in the overview */
.layout-toggle { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.layout-toggle button { display: grid; place-items: center; width: 32px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; }
/* No text beside the icon, so none of the space buttons keep between an icon and its text */
.layout-toggle button .ico { width: 16px; height: 16px; margin: 0; }
/* The chosen layout is lit in blue; the other stays dim until hovered, so the choice reads at a glance */
.layout-toggle button { opacity: .55; transition: color .15s, background .15s, opacity .15s; }
.layout-toggle button:hover:not(:where(:disabled, .disabled, .off)) { opacity: 1; color: var(--text); background: rgba(255, 255, 255, .04); }
.layout-toggle button[aria-pressed="true"] { opacity: 1; color: #cfe3ff; background: rgba(88, 166, 255, .2); box-shadow: inset 0 0 0 1px rgba(88, 166, 255, .45), 0 1px 6px rgba(88, 166, 255, .18); }
.cards.list { display: flex; flex-direction: column; gap: 8px; }
.cards.list > .site { flex-direction: row; align-items: center; gap: 20px; padding: 12px 16px; border-radius: 10px; }
.cards.list > .site .site-head { flex: 0 0 min(40%, 420px); min-width: 0; }
.cards.list > .site .site-emblem { width: 34px; height: 34px; border-radius: 10px; }
.cards.list > .site .site-emblem .ico { width: 18px; height: 18px; }
/* The name above its badges in every row, so the rows look alike however long the name is */
.cards.list > .site .site-identity { gap: 6px; }
/* Each environment line in columns: environment, its status, its links. The columns line up down the list. */
.cards.list .site-link-group.compact { display: grid; grid-template-columns: 170px 110px minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.cards.list .site-link-group.compact > .site-environment-head { grid-column: 1; }
.cards.list .site-link-group.compact > .env-state { grid-column: 2; display: inline-flex; align-items: center; gap: 8px; }
.cards.list .site-link-group.compact > .env-state .badge { font-size: 10px; }
.cards.list .site-link-group.compact > .badge, .cards.list .site-link-group.compact > .publish-status { grid-column: 3; justify-self: start; }
.cards.list .site-link-group.compact > .env-folder { grid-column: 3; grid-row: 1; justify-self: start; }
/* Beside a folder label, a pending publish stands at the end of its column */
.cards.list .site-link-group.compact > .env-folder ~ .badge, .cards.list .site-link-group.compact > .env-folder ~ .publish-status { grid-row: 1; justify-self: end; }
/* Plain text, not a button or a badge: it is not clicked, and it is not a state */
.env-folder { display: inline-block; min-width: 0; max-width: 100%; color: var(--text); opacity: .85; font-size: 13px; font-weight: 500; line-height: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* On a card the label gives way first, so the badge and the buttons keep their room */
.site-link-group.compact .site-environment-head:has(> .env-folder) { flex-shrink: 1; min-width: 0; }
.cards.list .site-link-group.compact > .site-environment-links, .cards.list .site-link-group.compact > .muted { grid-column: 4; justify-self: end; }
.cards.list > .site .site-head > .dot { order: -1; margin: 0 2px 0 0; }
.cards.list > .site .site-links { flex: 1; min-width: 0; margin: 0; }
.cards.list > .site .multi-select { flex: none; }
@media (max-width: 760px) {
	/* The card's sizes: its padding, emblem and spacing, so a site looks the same in both views */
	.cards.list > .site { flex-direction: column; align-items: stretch; gap: 20px; padding: 20px; border-radius: 14px; }
	.cards.list > .site .site-head { flex-basis: auto; }
	.cards.list > .site .site-emblem { width: 42px; height: 42px; border-radius: 12px; }
	.cards.list > .site .site-emblem .ico { width: 23px; height: 23px; }
	.cards.list > .site .site-identity { gap: 7px; }
	/* A narrow phone: the card's smaller padding */
	@media (max-width: 420px) { .cards.list > .site { padding: 16px; } }
	/* A phone has no room for the columns: a site looks as its card, with its dot at the right. Each environment on
	   two lines: its lock, badge and folder on the first; its state at the left of the second, its links at the right */
	.cards.list > .site .site-head > .dot { order: 0; margin: 0 0 0 auto; }
	.cards.list .site-link-group.compact { grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; row-gap: 8px; }
	.cards.list .site-link-group.compact > .site-environment-head { grid-column: 1; grid-row: 1; }
	.cards.list .site-link-group.compact > .env-folder { grid-column: 2; grid-row: 1; align-self: center; justify-self: start; max-width: 100%; }
	/* The second line is the whole row's width, the state at its left and the links at its right, so neither is
	   held to the width of the environment's badge above */
	.cards.list .site-link-group.compact > .env-state { grid-column: 1 / -1; grid-row: 2; align-self: center; justify-self: start; }
	.cards.list .site-link-group.compact > .site-environment-links, .cards.list .site-link-group.compact > .muted { grid-column: 1 / -1; grid-row: 2; align-self: center; justify-self: end; }
	/* The dot as wide as the lock above it, so it stands under the lock and the state's badge under the environment's */
	.cards.list .site-link-group.compact > .env-state .dot { margin: 0 2.5px; }
	.cards.list .site-link-group.compact > .badge, .cards.list .site-link-group.compact > .publish-status,
	.cards.list .site-link-group.compact > .env-folder ~ .badge, .cards.list .site-link-group.compact > .env-folder ~ .publish-status { grid-column: 1 / -1; grid-row: 3; justify-self: start; }
}
.site.selectable { user-select: none; }
.site.selectable:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--blue); }

/* Sites with something waiting: after the other filters, in amber */
.chip-divider { align-self: stretch; width: 1px; margin: 4px 4px; background: var(--line); }
.chip.attention b { color: #d29922; }
/* A major version under the Umbraco filter: smaller, with the colour its version badge has */
.chip.version-chip { padding: 4px 10px; border-style: dashed; }
.chip.version-chip.active { border-style: solid; }
.chip.version-chip b { font-size: 14px; }
.version-dot { width: 8px; height: 8px; border-radius: 50%; background: #57606a; flex: none; }
.version-dot[data-major="0"] { background: #8250df; }
.version-dot[data-major="1"] { background: #0969da; }
.version-dot[data-major="2"] { background: #1a7f37; }
.version-dot[data-major="3"] { background: #bf8700; }
.version-dot[data-major="4"] { background: #cf222e; }
.version-dot[data-major="5"] { background: #bf3989; }
.version-dot[data-major="6"] { background: #0a7f8f; }
.version-dot[data-major="7"] { background: #953800; }
.chip.attention:hover:not(:where(:disabled, .disabled, .off)), .chip.attention.active { border-color: #d29922; }
.chip.attention.active { background: rgba(210, 153, 34, .14); box-shadow: 0 0 14px rgba(210, 153, 34, .2); }
/* A link to an environment never shrinks away beside a status badge */
.site-link-group.compact a.btn-link.frontend { min-width: 84px; }
/* On a card, a pending publish is an icon: the row has no room for the words */
.publish-pending-icon { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; color: #d29922; background: rgba(210, 153, 34, .14); }
.publish-pending-icon .ico { width: 13px; height: 13px; margin: 0; }

/* Environments as a list: a row per environment with its most used buttons; the chevron unfolds the whole card */
.site-targets-head .layout-toggle { flex: none; }
.env-targets.list { display: flex; flex-direction: column; gap: 8px; }
.env-targets.list > .env-listed { padding-bottom: 0; }
.env-targets.list > .env-listed > .env-head { margin-bottom: 0; border-bottom: 0; border-radius: 9px; cursor: pointer; min-height: 0; padding: 10px 14px 10px 20px; }
.env-targets.list > .env-listed > .env-head h3 { font-size: 16px; }
.env-targets.list > .env-listed:not(.unfolded) > :not(.env-head) { display: none; }
.env-targets.list > .env-listed.unfolded { padding-bottom: 18px; }
.env-targets.list > .env-listed.unfolded > .env-head { margin-bottom: 14px; border-bottom: 1px solid var(--line); border-radius: 9px 9px 0 0; }
.env-row-toggle { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); }
.env-row-toggle:hover:not(:where(:disabled, .disabled, .off)) { color: var(--text); background: var(--hover); }
.env-row-toggle .ico { width: 16px; height: 16px; margin: 0; transition: transform .15s; }
.env-row-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .env-row-toggle .ico { transition: none; } }
/* The packages fold on a phone only: there the head unfolds them, with the arrow at its right */
.package-toggle { display: none; }
@media (max-width: 800px) {
	.package-toggle { display: grid; margin-left: auto; }
	.package-check ~ .package-toggle { margin-left: 0; }
	.package-head { flex-wrap: nowrap; cursor: pointer; }
	.package-panel:not(.unfolded) > :not(.package-head) { display: none; }
	.package-panel:not(.unfolded) > .package-head { border-bottom: 0; }
}
/* The editor's toolbar on one line: the file and what happened to it on the left, the actions on the right */
dialog.editor .editor-toolbar { flex-wrap: nowrap; align-items: center; gap: 10px; }
.editor-file { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.editor-file-line { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.editor-file-line strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.editor-file-line .dirty { flex: none; }
#editor-status { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
#editor-status:empty { display: none; }
dialog.editor .editor-toolbar > button, dialog.editor .editor-toolbar > select { flex: none; }
@media (max-width: 700px) { dialog.editor .editor-toolbar { flex-wrap: wrap; } .editor-file { flex-basis: 100%; } }
#dlg-snippet { width: min(520px, 92vw); }
/* One even space between the fields, whatever they are: the dialog's own margin under labels is not added to it */
.snippet-fields { display: grid; gap: 16px; }
.snippet-fields label { display: grid; gap: 6px; }
dialog .snippet-fields > label, dialog .snippet-field-group > label { margin: 0; }
#form-snippet > .hint { margin: 14px 0 0; }
/* A snippet without fields says it all in its header: no empty space, and its "check it, then save" is not said twice */
#snippet-fields:empty, #snippet-fields:empty + .hint { display: none; }
#snippet-error:empty { display: none; }
.snippet-fields .hint { margin: 0; }
/* A choice in a snippet: segments, as in the admin site's access */
dialog fieldset.snippet-choice { min-width: 0; margin: 0; padding: 0; border: 0; }
.snippet-choice .samba-segment { align-content: center; }
.snippet-choice legend { margin-bottom: 6px; padding: 0; color: var(--muted); font-size: 12.5px; }
@media (max-width: 560px) { .snippet-choice .samba-segments { grid-template-columns: 1fr !important; } }
/* A field with your own address under it: the card close to the field it adds to */
.snippet-field-group { display: grid; gap: 10px; }
.snippet-field-group > label { margin: 0; }
.snippet-field-group > .your-address { margin: 0; }
/* The snippet menu, like the custom scripts menu: a panel of rules with an icon and a line about each */
.snippet-menu { position: relative; flex: none; }
.snippet-trigger { display: inline-flex; align-items: center; gap: 7px; height: 34px; border-color: rgba(88, 166, 255, .4); color: var(--blue); background: linear-gradient(135deg, rgba(88, 166, 255, .13), rgba(163, 113, 247, .1)); }
.snippet-trigger .ico { width: 15px; height: 15px; margin: 0; }
.snippet-trigger[aria-expanded="true"], .snippet-trigger:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(88, 166, 255, .18); }
.snippet-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; width: min(380px, calc(100vw - 40px)); max-height: min(480px, 70vh); overflow: auto; padding: 8px; border: 1px solid rgba(88, 166, 255, .28); border-radius: 12px; background: linear-gradient(145deg, rgba(88, 166, 255, .08), transparent 48%), var(--panel); box-shadow: 0 18px 48px rgba(0, 0, 0, .55); }
.snippet-panel-head { display: grid; gap: 3px; margin: -8px -8px 6px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.snippet-panel-head span { color: var(--blue); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.snippet-panel-head strong { font-size: 13px; }
.snippet-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; cursor: pointer; }
.snippet-item:hover:not(:where(:disabled, .disabled, .off)), .snippet-item:focus-visible { border-color: rgba(88, 166, 255, .25); background: rgba(88, 166, 255, .1); outline: none; }
.snippet-item-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; color: #b9d8ff; background: linear-gradient(135deg, rgba(88, 166, 255, .16), rgba(163, 113, 247, .16)); }
.snippet-item-icon .ico { width: 15px; height: 15px; margin: 0; }
.snippet-item-text { display: grid; gap: 1px; min-width: 0; }
/* A snippet's line wraps under its name: buttons keep their text on one line, which ran off the panel sideways */
.snippet-panel { overflow-x: hidden; }
.snippet-item { white-space: normal; align-items: flex-start; }
.snippet-item-icon { margin-top: 1px; }
.snippet-item-text small { color: var(--muted); font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.snippet-item-text strong { font-size: 13px; font-weight: 600; }
.snippet-item-text small { color: var(--muted); font-size: 11.5px; }
.snippet-fields select { width: 100%; }
/* The search in the header, shaped like the Web Server | SQL Server switch beside it: the same corners, edge and height */
.page-header .search-box { position: relative; display: flex; align-items: center; min-width: 300px; margin-left: 12px; }
.page-header .search-box:has(#search[hidden]) { display: none; }
.page-header .search-box #search { width: 100%; min-width: 0; height: 38px; padding: 0 40px 0 38px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 10px; background: rgba(0, 0, 0, .12); color: #fff; font-size: 14px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); transition: background .15s, border-color .15s, box-shadow .15s; }
.page-header .search-box #search::placeholder { color: rgba(255, 255, 255, .7); }
.page-header .search-box #search:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(0, 0, 0, .18); }
.page-header .search-box #search:focus { outline: none; background: rgba(0, 0, 0, .28); border-color: rgba(255, 255, 255, .55); box-shadow: 0 0 0 3px rgba(255, 255, 255, .12); }
/* The browser's own clear cross is hard to see on the header: ours replaces it */
.page-header .search-box #search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.search-clear { position: absolute; right: 8px; display: none; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; cursor: pointer; transition: background .15s; }
.search-clear:hover:not(:where(:disabled, .disabled, .off)), .search-clear:focus-visible { background: rgba(255, 255, 255, .38); outline: none; }
.search-box:has(#search:not(:placeholder-shown)) .search-clear { display: grid; }
.search-icon { position: absolute; left: 12px; width: 16px; height: 16px; color: rgba(255, 255, 255, .75); pointer-events: none; }
.search-key { position: absolute; right: 9px; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 6px; background: rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .85); font: 600 12px/1 ui-monospace, Menlo, monospace; pointer-events: none; }
/* The shortcut is only shown on an empty field that is not being typed in */
.search-box:has(#search:focus) .search-key, .search-box:has(#search:not(:placeholder-shown)) .search-key { display: none; }
@media (max-width: 800px) { .page-header .search-box { margin-left: 8px; } .search-key { display: none; } }
/* An environment row's addresses, coloured like the production links on the overview's cards */
.env-row-links { display: flex; gap: 6px; }
.env-row-links a.btn-link { padding: 3px 8px; font-size: 12px; color: var(--link-tone); background: color-mix(in srgb, var(--link-tone) 10%, transparent); border-color: color-mix(in srgb, var(--link-tone) 35%, transparent); }
.env-row-links .frontend { --link-tone: var(--green); }
.env-row-links .backend { --link-tone: #39c5cf; }
/* An environment row in fixed columns: name, state, environment, icons and status line up in every row */
/* The lock first, before the name, as on a narrow screen */
.env-targets.list > .env-listed > .env-head { display: grid; grid-template-columns: minmax(22px, auto) minmax(0, 280px) 112px 112px minmax(0, 1fr) auto 30px; flex-wrap: nowrap; gap: 12px; }
.env-targets.list > .env-listed > .env-head .env-col-icons { order: -1; }
/* With one on another server (its server's icon and logo beside the lock), every row's icons take that room: the names
   and badges below and above it stay in line, rather than that row's starting further right */
@media (min-width: 1201px) {
	.env-targets.list:has(.env-col-icons .remote-icon) > .env-listed > .env-head { grid-template-columns: 64px minmax(0, 280px) 112px 112px minmax(0, 1fr) auto 30px; }
}
.env-col { display: flex; align-items: center; gap: 8px; min-width: 0; }
.env-col-name h3 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.env-col-actions { justify-content: flex-end; gap: 10px; }
.env-col-actions .env-row-links { min-width: 0; }
.env-col-actions .env-row-links a.btn-link { min-width: 0; }
.env-col-actions .env-row-links a.btn-link.frontend { max-width: 300px; }
.env-col-actions .env-row-links a.btn-link { white-space: nowrap; flex: none; }
.env-col-note .publish-status, .env-col-note .badge { white-space: nowrap; }
.env-col { overflow: hidden; }
.env-col-actions { overflow: visible; }
@media (max-width: 1200px) {
	/* First line: the lock, the name (with all the room there is) and the environment's badge at the right.
	   Second line: the state under the lock, the links at the right, ending where the badge ends. */
	.env-targets.list > .env-listed > .env-head { grid-template-columns: auto minmax(0, 1fr) auto 30px; }
	.env-targets.list > .env-listed > .env-head .env-col-note { display: none; }
	.env-targets.list > .env-listed > .env-head .env-col-icons { grid-column: 1; grid-row: 1; }
	.env-targets.list > .env-listed > .env-head .env-col-name { grid-column: 2; grid-row: 1; }
	.env-targets.list > .env-listed > .env-head .env-col-kind { grid-column: 3; grid-row: 1; justify-content: flex-end; }
	.env-targets.list > .env-listed > .env-head .env-row-toggle { grid-column: 4; grid-row: 1; }
	.env-targets.list > .env-listed > .env-head .env-col-status { grid-column: 1 / 3; grid-row: 2; }
	.env-targets.list > .env-listed > .env-head .env-col-actions { grid-column: 2 / 4; grid-row: 2; justify-content: flex-end; flex-wrap: wrap; }
}
@media (max-width: 760px) {
	/* A phone: no arrow at the right, so the row has the same air on both sides. A tap on the row unfolds it all the same. */
	.env-targets.list > .env-listed > .env-head { grid-template-columns: auto minmax(0, 1fr) auto; padding-left: 16px; padding-right: 16px; }
	.env-targets.list > .env-listed > .env-head .env-row-toggle { display: none; }
	.env-targets.list > .env-listed > .env-head .env-col-actions { grid-column: 2 / -1; }
	/* A phone: the links stay on one line, a long address shortened, so every row has them in the same places */
	.env-targets.list > .env-listed > .env-head .env-col-actions { flex-wrap: nowrap; }
	.env-col-actions .env-row-links { flex: 0 1 auto; }
	.env-col-actions .env-row-links a.btn-link.frontend { flex: 0 1 auto; }
}
/* In the list the coloured top edge of each card would make a stripe per row: a row has its colour on the left */
.env-targets.list > .env-listed, .env-targets.list > .env-listed.prod { border-top: 1px solid var(--line); border-left: 3px solid var(--env-tone, var(--line)); }
.env-targets.list > .env-listed:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .35); }
/* Four places to run (Migrate offers "Separate site" too): one row of four, two by two on a narrow screen */
.prod-target-cards:has(> .type-card:nth-child(4):not([hidden])) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .prod-target-cards:has(> .type-card:nth-child(4):not([hidden])) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* The binding alone on its line (the other site fields are hidden when moving here) takes the whole line */
#prod-binding-row:only-child, .ns-grid:not(:has(> label:not([hidden]):not(#prod-binding-row))) > #prod-binding-row { grid-column: 1 / -1; }

/* A user sees only what they may use: the server's tools and settings are an administrator's */
body[data-role="user"] .admin-only, body[data-role="user"] .admin-only-block, body[data-role="user"] #btn-settings,
body[data-role="user"] #settings-menu, body[data-role="user"] #btn-multi { display: none !important; }
/* ---- Users */
#dlg-users { width: min(640px, 94vw); }
#dlg-user { width: min(760px, 96vw); max-height: 92vh; overflow-y: auto; }
.users-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.users-list { display: grid; gap: 8px; max-height: 60vh; overflow-y: auto; }
.user-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); text-align: left; cursor: pointer; }
.user-row:hover:not(:where(:disabled, .disabled, .off)), .user-row:focus-visible { border-color: rgba(88, 166, 255, .45); background: rgba(88, 166, 255, .06); outline: none; }
.user-row.disabled { opacity: .6; }
.user-row .ico { width: 15px; height: 15px; margin: 0; color: var(--muted); }
.user-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; font-weight: 700; background: linear-gradient(135deg, #58a6ff, #a371f7); }
.user-text { display: grid; gap: 2px; min-width: 0; }
.user-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-text small { color: var(--muted); font-size: 12px; }
.badge.user-admin { color: #fff; background: rgba(163, 113, 247, .35); }
.badge.user-user { color: var(--text); background: var(--hover); }
.user-roles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.user-disabled { margin: 4px 0 8px; }
.grant-section { display: flex; align-items: center; }
.grant-switch { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.grant-switch input, .grant-flag input, .grant-chip input, .grant-head input { width: 16px; height: 16px; margin: 0; accent-color: var(--blue); }
.grant-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 8px; }
.grant-flag { display: flex; align-items: center; gap: 9px; color: var(--text); font-size: 13px; cursor: pointer; }
.grant-flag.small { font-size: 12.5px; color: var(--muted); }
.grant-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.grant-site { border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); transition: border-color .15s; }
.grant-site.granted { border-color: rgba(88, 166, 255, .45); background: linear-gradient(135deg, rgba(88, 166, 255, .06), transparent 60%), var(--panel2); }
.grant-head { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; }
.grant-head label { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; cursor: pointer; }
.grant-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grant-head .muted { font-size: 12px; white-space: nowrap; }
.grant-toggle { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); }
.grant-toggle:hover:not(:where(:disabled, .disabled, .off)) { color: var(--text); background: var(--hover); }
.grant-toggle .ico { width: 15px; height: 15px; margin: 0; transition: transform .15s; }
.grant-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
.grant-body { display: grid; gap: 8px; padding: 2px 12px 12px 38px; }
.grant-label { color: var(--muted); font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.grant-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.grant-scopes { max-width: 560px; }
/* Two choices (a template's: no databases to pick): two columns, none left empty */
.grant-scopes.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 380px; }
/* A user's limits: how many, and how big each, side by side */
.user-limits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 4px 0 12px; }
.user-limits[hidden] { display: none; }
.usage-over { margin: 12px 0 6px; }
.grant-limits { margin: 6px 0 0; }
.site-size-limit { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
/* The size field Usage led to: lit for a moment, so the eye finds it */
/* A frame with room around the label and the field, behind them: it fades out */
.limit-size.limit-found { position: relative; }
.limit-size.limit-found::after { content: ""; position: absolute; inset: -9px -10px; z-index: 0; border: 2px solid rgba(88, 166, 255, .6); border-radius: 13px;
	background: rgba(88, 166, 255, .08); box-shadow: 0 0 18px rgba(88, 166, 255, .25); pointer-events: none; animation: limit-found 1.6s ease-out forwards; }
.limit-size.limit-found > * { position: relative; z-index: 1; }
@keyframes limit-found { 0%, 40% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .limit-size.limit-found::after { animation: none; opacity: 1; } }
/* Usage: a meter for what is made and for each one's size, beside its limit */
.usage-sections { display: grid; gap: 14px; }
.usage-section { display: grid; gap: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.usage-section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.usage-section-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(210, 153, 34, .12); color: #d29922; }
.usage-section-icon .ico { width: 15px; height: 15px; margin: 0; }
.usage-meter { display: grid; gap: 9px; }
.usage-meter-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; }
.usage-meter-head strong { display: inline-flex; align-items: center; min-width: 0; }
.usage-meter-head strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.usage-meter-head span { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
/* A line's name and its chips wrap where the room ends (a phone, a long name), never past the card's edge */
.usage-overview .usage-meter-head strong { flex: 1 1 auto; flex-wrap: wrap; gap: 6px 8px; overflow: visible; white-space: normal; }
.usage-overview .usage-meter-head strong > .badge, .usage-overview .usage-meter-head strong > .usage-owner,
.usage-overview .usage-meter-head strong > .usage-limit-link { margin-left: 0; }
.usage-overview .usage-open { min-width: 0; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.usage-overview, .usage-overview > *, .usage-site-group > *, .usage-site-envs > * { min-width: 0; }
@media (max-width: 640px) {
	.usage-overview .usage-meter-head { align-items: flex-start; }
	.usage-overview .usage-site-group { padding: 6px 10px 6px 14px; }
	.usage-overview .usage-site-envs { margin-left: -4px; margin-right: -4px; }
	.usage-overview .usage-site-envs .usage-meter.usage-env { padding: 6px 4px; }
	/* The name on a line of its own, its chips in a row under it; an environment's bend in front, hanging */
	.usage-overview .usage-meter-head strong > .usage-open { flex-basis: 100%; }
	.usage-overview .usage-env .usage-meter-head strong { position: relative; padding-left: 22px; }
	.usage-env-bend { position: absolute; left: 0; top: 1px; margin: 0; }
	.server-pane-head .usage-measured { width: 100%; justify-content: space-between; }
}
.usage-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.usage-bar span { display: block; height: 100%; border-radius: inherit; background: var(--green); }
.usage-meter.near .usage-bar span { background: #d29922; }
.usage-meter.over .usage-bar span { background: var(--red); }
.usage-meter.over .usage-meter-head > span { color: var(--red); }
.usage-none { margin: 0; font-size: 13px; }
.usage-overview { display: grid; gap: 4px; }
.usage-overview > .usage-section-head { margin-bottom: 6px; }
.confirm-field { display: grid; gap: 6px; margin-bottom: 12px; }
/* A dropdown as the page's own (premiumSelect) */
.pselect { position: relative; min-width: 0; }
.pselect-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; height: 34px; padding: 0 10px 0 12px;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); font-size: 13.5px; font-weight: 500; text-align: left; cursor: pointer; }
.pselect-trigger:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(163, 113, 247, .5); }
.pselect-trigger:focus-visible, .pselect-trigger[aria-expanded="true"] { outline: none; border-color: rgba(163, 113, 247, .75); box-shadow: 0 0 0 3px rgba(163, 113, 247, .16); }
.pselect-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pselect-trigger .ico { flex: none; width: 14px; height: 14px; margin: 0; color: var(--muted); transform: rotate(90deg); transition: transform .15s; }
.pselect-trigger[aria-expanded="true"] .ico { transform: rotate(-90deg); }
.pselect-list { position: fixed; z-index: 1000; margin: 0; padding: 5px; overflow-y: auto; list-style: none; border: 1px solid rgba(163, 113, 247, .35); border-radius: 10px;
	background: #1b2029; box-shadow: 0 14px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .3); }
.pselect-list[hidden] { display: none; }
/* Scrolled to its end, the list does not scroll the page under it */
.pselect-list { overscroll-behavior: contain; }
.pselect-search-row { position: sticky; top: -5px; z-index: 1; margin: -5px -5px 5px; padding: 6px; background: var(--panel2); border-bottom: 1px solid var(--line); }
.pselect-search { width: 100%; padding: 8px 10px; font-size: 13px; }
.pselect-option[hidden] { display: none; }
.pselect-option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 7px 10px; border-radius: 7px; color: var(--text); font-size: 13.5px; cursor: pointer; white-space: nowrap; }
.pselect-option .ico { width: 14px; height: 14px; margin: 0; color: #c9a8ff; visibility: hidden; }
.pselect-option[aria-selected="true"] { color: #e6dcff; font-weight: 600; }
/* Grouped options: a heading over each group, and an option's line under its name */
.pselect-group { margin: 6px 4px 2px; padding: 8px 6px 4px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: default; }
.pselect-text { display: grid; gap: 1px; min-width: 0; }
.pselect-text small { color: var(--muted); font-size: 11.5px; font-weight: 500; }
/* The SQL page's connection: as large as the list it replaced */
.sql-connection-select { width: min(320px, 100%); }
.sql-connection-select .pselect-trigger { height: 42px; padding: 0 12px 0 14px; border-color: rgba(163, 113, 247, .45); border-radius: 10px; font-size: 14px; font-weight: 600; }
.sql-connection-pick[hidden] { display: none; }
.pselect-option[aria-selected="true"] .ico { visibility: visible; }
.pselect-option.active { background: rgba(163, 113, 247, .16); }
.confirm-field-label { color: var(--muted); font-size: 12.5px; }
/* Usage under Settings: the alerts, then the sites and each connection's databases, each across the width */
#server-usage-list > .tool-card { grid-column: 1 / -1; }
/* Notifications: each card the whole width, so its title, state and buttons have room side by side */
#server-notifications-list { grid-template-columns: minmax(0, 1fr); }
#server-notifications-list > .tool-card { grid-column: 1 / -1; min-height: 0; }
.usage-total { margin-left: auto; color: var(--text); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* In the overview a line is lit under the pointer, so its name and its size are seen together; the size larger */
.usage-overview .usage-meter { margin: 0 -10px; padding: 7px 10px; border-radius: 9px; transition: background .12s; }
.usage-overview .usage-meter:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(88, 166, 255, .08); }
/* The overview: a stripe of who takes what, then a line each with its size, its share and a stripe in its kind's colour */
.usage-overview { --k: #8b949e; }
.usage-overview .kind-umbraco, .usage-seg.kind-umbraco { --k: #1fa8d8; }
.usage-overview .kind-csharp, .usage-seg.kind-csharp { --k: #7c5cff; }
.usage-overview .kind-python, .usage-seg.kind-python { --k: #4b93d1; }
.usage-overview .kind-html, .usage-seg.kind-html { --k: #e8603c; }
.usage-overview .kind-database-0, .usage-seg.kind-database-0 { --k: #a371f7; }
.usage-overview .kind-database-1, .usage-seg.kind-database-1 { --k: #db61a2; }
.usage-overview .kind-database-2, .usage-seg.kind-database-2 { --k: #39c5bb; }
.usage-overview .kind-database-3, .usage-seg.kind-database-3 { --k: #d29922; }
.usage-overview .kind-database-4, .usage-seg.kind-database-4 { --k: #58a6ff; }
.usage-overview .kind-other, .usage-seg.kind-other { --k: #6e7681; }
/* Under the stripe, what each colour is and its share, as Apple shows storage */
.usage-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -4px 0 12px; }
.usage-legend-item { display: inline-flex; align-items: center; gap: 7px; color: var(--text); font-size: 12.5px; cursor: default; }
.usage-legend-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--k); box-shadow: 0 0 0 2px color-mix(in srgb, var(--k) 25%, transparent); }
.usage-legend-share { color: var(--muted); font-variant-numeric: tabular-nums; }
.usage-section-title { display: grid; gap: 1px; min-width: 0; }
.usage-section-title strong { font-size: 15px; }
.usage-section-title small { color: var(--muted); font-size: 12px; }
.usage-overview .usage-section-icon { width: 34px; height: 34px; border-radius: 10px; }
.usage-overview .usage-total { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.usage-stack { display: flex; gap: 2px; height: 10px; margin: 2px 0 12px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.usage-seg { --k: #8b949e; min-width: 3px; height: 100%; background: var(--k); transition: filter .15s; }
.usage-seg:hover:not(:where(:disabled, .disabled, .off)) { filter: brightness(1.25); }
.usage-size { display: grid; justify-items: end; gap: 1px; flex: none; }
.usage-size strong { color: var(--text); font-size: 14.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.usage-size small { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.usage-overview .usage-meter.over .usage-size strong { color: var(--red); }
.usage-env .usage-size strong { font-size: 13px; font-weight: 600; color: #c9d1d9; }
.usage-env .usage-size small { font-size: 11px; }
.usage-share-bar { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.usage-share-bar span { display: block; height: 100%; border-radius: inherit; background: var(--k); opacity: .75; }
/* Each site framed with its environments, so one site is told from the next: a frame of its own with room around it,
   a stripe in its kind's colour at its left, its icon and a larger name at its head, and its environments in a darker
   well inside it */
.usage-site-group { position: relative; display: grid; gap: 0; margin: 10px 0; padding: 10px 14px 10px 18px; overflow: hidden;
	border: 1px solid rgba(255, 255, 255, .13); border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.usage-site-group::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--k); }
.usage-overview .usage-site-group > .usage-meter { margin: 0 -6px; padding: 8px 6px; }
.usage-overview .usage-site-group > .usage-meter:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; }
.usage-overview .usage-site-line .usage-open { font-size: 15px; font-weight: 700; }
.usage-site-icon, .usage-overview .usage-meter-head .usage-site-icon { display: inline-grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 9px;
	color: var(--k); background: color-mix(in srgb, var(--k) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k) 30%, transparent); }
.usage-site-icon .ico { width: 16px; height: 16px; margin: 0; }
/* The bar under the site's head starts under its name, not under its icon (30px and the line's 8px gap) */
.usage-site-line > .usage-bar, .usage-site-line > .usage-share-bar { margin-left: 38px; }
.usage-site-envs { display: grid; gap: 0; margin: 8px -6px 2px; padding: 4px 6px; border-radius: 10px; background: rgba(0, 0, 0, .28);
	box-shadow: inset 0 1px 0 rgba(0, 0, 0, .25); }
.usage-overview .usage-site-envs .usage-meter.usage-env { margin: 0; padding: 6px 8px; }
@media (max-width: 640px) {
	.usage-site-icon, .usage-overview .usage-meter-head .usage-site-icon { display: none; }
	.usage-site-line > .usage-bar, .usage-site-line > .usage-share-bar { margin-left: 0; }
}
/* A site's size in parts: the site itself in its kind's colour, then each environment in its folder in its own, with a
   2px gap between them, up to its limit; under it what is in the size (or limit) and what is not */
.usage-parts-bar { display: flex; gap: 2px; height: 6px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .06); }
.usage-part { flex: none; height: 100%; background: var(--k); }
.usage-part:first-child { border-radius: 999px 0 0 999px; }
.usage-part:last-child { border-radius: 0 999px 999px 0; }
.usage-part:only-child { border-radius: 999px; }
.usage-part.env-development, .usage-parts-item.env-development { --part: var(--blue); }
.usage-part.env-test, .usage-parts-item.env-test { --part: #d29922; }
.usage-part.env-staging, .usage-parts-item.env-staging { --part: var(--purple); }
.usage-part.env-production, .usage-parts-item.env-production { --part: var(--red); }
.usage-part[class*="env-"] { background: var(--part); opacity: .85; }
/* An environment on another server (or in a folder of its own): in the budget, striped, as it is not on this disk */
.usage-part.elsewhere { background: repeating-linear-gradient(135deg, var(--part) 0 4px, color-mix(in srgb, var(--part) 45%, transparent) 4px 7px); }
.usage-parts-item.elsewhere .usage-parts-dot { background: repeating-linear-gradient(135deg, var(--part) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1px var(--part); }
/* Past its limit: where the limit is, marked on the bar, and what is past it dimmed red */
.usage-parts-wrap { position: relative; margin-top: 14px; }
.usage-limit-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); box-shadow: 0 0 0 2px var(--panel, #161b22); }
.usage-limit-mark-label { position: absolute; top: -20px; transform: translateX(-50%); padding: 0 6px; border-radius: 999px; background: rgba(248, 81, 73, .15);
	color: var(--red); font-size: 10.5px; font-weight: 700; white-space: nowrap; }
.usage-parts-past { position: absolute; top: 0; bottom: 0; right: 0; border-radius: 0 999px 999px 0; background: rgba(13, 17, 23, .55); pointer-events: none; }
.usage-parts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 2px; font-size: 12px; color: var(--muted); }
.usage-parts-title { color: var(--text); font-weight: 600; }
.usage-parts-item { display: inline-flex; align-items: center; gap: 6px; color: var(--text); }
.usage-parts-item small { color: var(--muted); font-variant-numeric: tabular-nums; }
.usage-parts-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--part, var(--k)); }
.usage-parts-out { color: var(--muted); font-style: italic; }
.usage-site-line > .usage-parts-bar, .usage-site-line > .usage-parts-wrap, .usage-site-line > .usage-parts { margin-left: 38px; }
.usage-limit-bound { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); }
.usage-limit-bound-text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.usage-limit-suggest { display: inline-flex; flex: none; align-items: center; gap: 6px; padding: 0 14px; border: 1px solid rgba(57, 197, 187, .55); border-radius: 9px; white-space: nowrap;
	background: rgba(57, 197, 187, .12); color: #5fd4cb; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.usage-limit-suggest[hidden] { display: none; }
.usage-limit-raise-row { margin-top: 10px; }
.usage-limit-raise-row[hidden] { display: none; }
.usage-limit-raise { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 14px; border: 1px solid rgba(210, 153, 34, .6); border-radius: 9px;
	background: rgba(210, 153, 34, .14); color: #f0c35a; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.usage-limit-raise .ico { width: 14px; height: 14px; margin: 0; }
.usage-limit-raise:hover:not(:where(:disabled, .disabled, .off)) { border-color: #f0c35a; background: rgba(210, 153, 34, .26); color: #ffd772; }
.usage-limit-field { grid-template-columns: minmax(0, 1fr); }
.usage-limit-field .size-field input { flex: 1 1 160px; min-width: 120px; max-width: 260px; }
@media (max-width: 560px) { .size-field:has(.usage-limit-suggest:not([hidden])) { flex-wrap: wrap; } .size-field .usage-limit-suggest { min-height: 36px; } }
.usage-limit-suggest .ico { width: 13px; height: 13px; margin: 0; }
.usage-limit-suggest:hover:not(:where(:disabled, .disabled, .off)) { border-color: #5fd4cb; background: rgba(57, 197, 187, .22); color: #8ce6df; }
.usage-limit-bound-icon { display: inline-flex; flex: none; color: var(--green); }
.usage-limit-bound.wrong .usage-limit-bound-icon { color: var(--red); }
.usage-limit-bound.raises { color: #e3b341; }
.usage-limit-bound.raises .usage-limit-bound-icon { color: #e3b341; }
.usage-limit-bound.wrong { color: var(--red); }
.usage-limit-bound .ico { flex: none; width: 14px; height: 14px; margin-top: 2px; }
.usage-where { display: inline-flex; align-items: center; gap: 5px; }
.usage-where .os-logo { display: inline-flex; }
.usage-overview .usage-owner.none.usage-where.remote { background: rgba(57, 197, 187, .13); color: #5fd4cb; box-shadow: inset 0 0 0 1px rgba(57, 197, 187, .3); }
.usage-where .os-logo svg { width: 12px; height: 12px; }
.usage-owner.in-limit, .usage-overview .usage-owner.none.in-limit { background: rgba(210, 153, 34, .12); color: #e3b341; }
@media (max-width: 640px) { .usage-site-line > .usage-parts-bar, .usage-site-line > .usage-parts-wrap, .usage-site-line > .usage-parts { margin-left: 0; } }
/* When the sizes were measured, and Measure now: at the right of the page's head */
.usage-measured { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.usage-measured[hidden] { display: none; }
.usage-measured-when { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.usage-measured-when .ico { width: 14px; height: 14px; margin: 0; }
.loading-ring.small { width: 14px; height: 14px; filter: none; -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px)); }
/* A site's environment under it: in a step, after a bend, as Export lists them */
.usage-overview .usage-meter.usage-env { margin-left: 8px; padding-top: 4px; padding-bottom: 4px; }
.usage-env .usage-meter-head strong { font-weight: 500; }
.usage-env-bend { display: inline-flex; flex: none; margin-right: 8px; color: var(--muted); }
.usage-env-bend .ico { width: 14px; height: 14px; margin-bottom: 4px; }
/* Its bar starts under its name, not under the bend before it: the bend's 14px, its 8px margin and the line's 8px gap
   (on a phone the bend hangs in 22px of its own) */
.usage-env > .usage-bar, .usage-env > .usage-share-bar { margin-left: 30px; }
@media (max-width: 640px) { .usage-env > .usage-bar, .usage-env > .usage-share-bar { margin-left: 22px; } }
.usage-owner { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: rgba(88, 166, 255, .12); color: var(--blue); font-size: 11px; font-weight: 600; }
.usage-owner.none { background: rgba(255, 255, 255, .06); color: var(--muted); }
.usage-meter-head .badge.usage-kind { margin-left: 8px; font-size: 10.5px; }
.usage-open { padding: 0; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
/* A name that opens: it turns blue under the pointer, nothing behind it */
.usage-open:hover:not(:where(:disabled, .disabled, .off)) { background: transparent; border-color: transparent; color: var(--blue); }
.usage-open:focus-visible { outline: 2px solid rgba(88, 166, 255, .55); outline-offset: 3px; border-radius: 4px; }
button.usage-owner { border: 1px solid rgba(88, 166, 255, .3); cursor: pointer; font-family: inherit; line-height: 1.5; }
button.usage-owner:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(88, 166, 255, .22); border-color: rgba(88, 166, 255, .6); }
/* Over a limit: across the top of every page, not to be missed */
.usage-banner { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid rgba(248, 81, 73, .55); border-radius: 12px;
	background: linear-gradient(120deg, rgba(248, 81, 73, .18), rgba(248, 81, 73, .06)); box-shadow: 0 0 0 1px rgba(248, 81, 73, .08), 0 6px 24px rgba(248, 81, 73, .12); }
.usage-banner[hidden] { display: none; }
.usage-banner-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 10px; background: rgba(248, 81, 73, .2); color: var(--red); }
.usage-banner-icon .ico { width: 20px; height: 20px; margin: 0; }
.usage-banner-text { display: grid; gap: 2px; flex: 1; min-width: 0; }
.usage-banner-text strong { color: #ffb4ae; font-size: 14.5px; }
.usage-banner-text span { color: var(--text); font-size: 13px; opacity: .9; overflow-wrap: anywhere; }
.usage-banner button { flex: none; }
@media (max-width: 560px) { .usage-banner { flex-wrap: wrap; } .usage-banner button { width: 100%; justify-content: center; } }
.usage-over + .hint { margin: 0; }
.user-limits > label, .limit-size { margin: 0; }
.limit-size { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12.5px; }
.size-field { display: flex; gap: 6px; align-items: stretch; }
/* The number white as in every field, not the grey of the label it stands under */
.size-field input { flex: 1; min-width: 0; color: var(--text); }
/* A size is typed, not stepped: no spin arrows beside it */
.size-field input { appearance: textfield; -moz-appearance: textfield; }
.size-field input::-webkit-outer-spin-button, .size-field input::-webkit-inner-spin-button { margin: 0; -webkit-appearance: none; }
.unit-toggle { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, .2); }
dialog .unit-toggle label { position: relative; display: grid; place-items: center; margin: 0; padding: 0 10px; border-radius: 6px; color: var(--muted); font-size: 12px; font-weight: 600; cursor: pointer; }
.unit-toggle input { position: absolute; opacity: 0; pointer-events: none; }
dialog .unit-toggle label:has(input:checked) { background: rgba(88, 166, 255, .18); color: #cfe3ff; box-shadow: inset 0 0 0 1px rgba(88, 166, 255, .6); }
dialog .unit-toggle label:has(input:focus-visible) { outline: 2px solid rgba(88, 166, 255, .55); }
@media (max-width: 560px) { .user-limits { grid-template-columns: 1fr; } }
/* Size limit in New site and Add environment: a card with an icon, its line, and the size with its unit at the right */
.create-limit { display: grid; grid-template-columns: 34px minmax(0, 1fr) 210px; align-items: center; gap: 14px; margin: 8px 0 14px; padding: 12px 14px;
	border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); transition: border-color .15s, background .15s; }
.create-limit[hidden] { display: none; }
.create-limit:has(input[type=number]:not(:placeholder-shown)) { border-color: rgba(210, 153, 34, .45); background: rgba(210, 153, 34, .06); }
.create-limit-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #e3b341; background: rgba(210, 153, 34, .14); }
.create-limit-icon .ico { width: 16px; height: 16px; margin: 0; }
.create-limit-text { display: grid; gap: 2px; min-width: 0; }
.create-limit-text strong { color: var(--text); font-size: 13px; font-weight: 600; }
.create-limit-text small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.create-limit .limit-label { display: none; }
.create-limit .size-field input { height: 36px; }
@media (max-width: 560px) {
	.create-limit { grid-template-columns: 34px minmax(0, 1fr); }
	.create-limit > .limit-size { grid-column: 1 / -1; }
}
.grant-own-note { margin: 0; }
@media (max-width: 560px) { .grant-scopes { grid-template-columns: 1fr; } }
.grant-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .15); font-size: 12.5px; cursor: pointer; }
.grant-chip:has(input:checked) { border-color: rgba(88, 166, 255, .5); background: rgba(88, 166, 255, .12); }
.grant-chip.main:has(input:checked) { border-color: rgba(163, 113, 247, .55); background: rgba(163, 113, 247, .14); }
.grant-chip.later { border-style: dashed; color: var(--muted); }
.grant-chip.later:has(input:checked) { border-color: rgba(88, 166, 255, .45); background: transparent; color: var(--text); }
.grant-databases { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.audit-list .audit-row { grid-template-columns: 150px minmax(0, 160px) 1fr; }
@media (max-width: 640px) { .user-roles { grid-template-columns: 1fr; } .grant-body { padding-left: 12px; } }
/* Checkboxes beside their text, not above it as the dialogs' fields are */
#dlg-user .grant-chip, #dlg-user .grant-head label, #dlg-user .grant-flag, #dlg-user .grant-switch { display: flex; flex-direction: row; align-items: center; gap: 8px; margin: 0; text-align: left; }
#dlg-user .grant-chip { display: inline-flex; }
#dlg-user .grant-chip input, #dlg-user .grant-head input, #dlg-user .grant-flag input, #dlg-user .grant-switch input { flex: none; width: 16px; height: 16px; min-height: 0; padding: 0; }
#dlg-user .grant-flag { justify-content: flex-start; font-weight: 400; }
#dlg-user .user-disabled { display: flex; align-items: center; gap: 12px; text-align: left; }
#dlg-user .user-disabled input { flex: none; width: 16px; height: 16px; }
/* The users list has the dialog's own margins */
#dlg-users > .users-toolbar, #dlg-users > .users-list, #dlg-users > menu { margin-left: 24px; margin-right: 24px; }
#dlg-users > .users-toolbar { margin-top: 18px; }

#dlg-user .user-disabled { margin: 8px 0 6px; }
#dlg-user .grant-section { margin-top: 18px; margin-bottom: 8px; }
/* A header directly in the dialog (no form with side padding around it, as in Users) keeps within the edges */
dialog.newsite > .ns-head { margin: 0 0 4px; }
/* Profile: who you are at the top, then the name, a new password, and the current one to save */
.profile-card { display: flex; align-items: center; gap: 14px; margin: 4px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, rgba(88, 166, 255, .08), rgba(163, 113, 247, .06)), var(--panel2); }
.profile-avatar { width: 44px; height: 44px; font-size: 18px; }
.profile-card .user-text strong { font-size: 15px; }
.ns-section-note { margin-left: 6px; color: var(--muted); font-weight: 500; letter-spacing: 0; text-transform: none; }
.profile-confirm { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(210, 153, 34, .35); border-radius: 10px; background: rgba(210, 153, 34, .06); }
.profile-confirm label { margin: 0; }
.grant-database-list { max-height: 180px; overflow-y: auto; padding: 2px; }
.grant-database-list[hidden] { display: none; }
/* The filter above a long list of sites or databases in a user's access */
.grant-search-box { position: relative; display: flex; align-items: center; max-width: 340px; }
.grant-search-box[hidden], #dlg-user .grant-chip[hidden], .grant-site[hidden], .grant-no-match[hidden] { display: none; }
#dlg-user .grant-search { width: 100%; min-width: 0; height: 34px; margin: 0; padding: 0 38px 0 36px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); font-size: 13px; transition: background .15s, border-color .15s, box-shadow .15s; }
#dlg-user .grant-search:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(255, 255, 255, .16); }
#dlg-user .grant-search:focus { outline: none; background: rgba(0, 0, 0, .3); border-color: rgba(88, 166, 255, .55); box-shadow: 0 0 0 3px rgba(88, 166, 255, .14); }
.grant-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; display: none; }
.grant-search-box .search-icon { left: 12px; width: 15px; height: 15px; color: var(--muted); }
.grant-search-box .search-clear { right: 6px; background: rgba(255, 255, 255, .12); color: var(--text); }
.grant-search-box .search-clear:hover:not(:where(:disabled, .disabled, .off)), .grant-search-box .search-clear:focus-visible { background: rgba(255, 255, 255, .24); }
.grant-search-box:has(.grant-search:not(:placeholder-shown)) .search-clear { display: grid; }
.grant-no-match { margin: 0; font-size: 12.5px; }
@media (max-width: 700px) { .grant-search-box { max-width: none; } }
/* Every dialog keeps its buttons at the bottom and, with a header, that at the top: only what is between scrolls.
   The footer reaches the dialog's edges, on its own background, so nothing shows through it. */
dialog.newsite > menu, dialog.newsite > form > menu { position: sticky; bottom: 0; z-index: 3; background: var(--panel); }
dialog.newsite > form > menu { margin: 16px -24px -20px; padding: 14px 24px 20px; }
dialog.newsite > menu { margin: 16px 0 0; padding: 14px 24px 20px; }
#dlg-users > menu { margin: 16px 0 0; }
dialog.newsite > form > .ns-head, dialog.newsite > .ns-head { position: sticky; top: 0; z-index: 3;
	background: linear-gradient(135deg, rgba(88,101,242,.35), rgba(139,92,246,.22)), var(--panel); }
/* The small dialogs (confirmations, encoding) keep their buttons at the bottom too, when a long text makes them scroll.
   The buttons stay where they are; a shadow in the dialog's colour covers what scrolls beneath them. */
#dlg-prompt > form > menu, #dlg-prompt > menu, #dlg-encoding > form > menu { position: sticky; bottom: 0; z-index: 3; background: var(--panel); box-shadow: 0 22px 0 22px var(--panel); }
#dlg-prompt, #dlg-encoding { max-height: 86vh; max-height: 86dvh; overflow-y: auto; }
/* Room between the text and the buttons, with a line as in the large dialogs */
#dlg-prompt > form > menu, #dlg-prompt > menu, #dlg-encoding > form > menu { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.layout-toggle[hidden] { display: none; }
/* Web Server, SFTP and SQL Server in the user editor: a part each, framed in its own colour, its switch at the top and
   what it gives under a line */
#dlg-user .user-part { --part: var(--blue); margin-top: 16px; padding: 0 16px; border: 1px solid color-mix(in srgb, var(--part) 30%, var(--line)); border-radius: 14px;
	background: linear-gradient(180deg, color-mix(in srgb, var(--part) 7%, transparent), transparent 90px), var(--panel); }
#dlg-user .user-part[hidden] { display: none; }
#dlg-user .user-part.tone-sftp { --part: #39c5bb; }
#dlg-user .user-part.tone-sql { --part: var(--purple); }
#dlg-user .user-part.tone-dns { --part: #f0883e; }
#dlg-user .user-part > .grant-card, #dlg-user .user-part > .grant-card:has(.switch:checked) { margin: 0; padding: 14px 0; border: 0; border-radius: 0; background: transparent; }
#dlg-user .user-part > .grant-card:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled))) { border-color: transparent; }
#dlg-user .user-part:has(> .grant-area:not([hidden])) > .grant-card { border-bottom: 1px solid color-mix(in srgb, var(--part) 22%, var(--line)); }
#dlg-user .user-part > .grant-area { margin: 0; padding: 14px 0 16px; }
#dlg-user .user-part .grant-card-icon { color: color-mix(in srgb, var(--part) 70%, #fff); background: color-mix(in srgb, var(--part) 18%, transparent); }
#dlg-user .user-part .switch:checked { border-color: var(--part); background: var(--part); }
#dlg-user .user-part > .sftp-area { margin: 0; border: 0; border-radius: 0; background: transparent; }
#dlg-user .user-part > .grant-area > .option-row { margin: 0 0 4px; }
#dlg-user .user-part > .grant-area > .option-row::before { content: none; }
/* Web Server and SQL Server in the user editor: a card each, with a switch */
#dlg-user .grant-card { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin: 16px 0 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); cursor: pointer; transition: border-color .15s, background .15s; }
#dlg-user .grant-card:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled))) { border-color: rgba(88, 166, 255, .35); }
#dlg-user .grant-card:has(.switch:checked) { border-color: rgba(88, 166, 255, .5); background: linear-gradient(135deg, rgba(88, 166, 255, .1), rgba(163, 113, 247, .07)), var(--panel2); }
.grant-card-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: #b9d8ff; background: linear-gradient(135deg, rgba(88, 166, 255, .2), rgba(163, 113, 247, .2)); }
.grant-card-icon.sql { color: #c9b6ff; }
.grant-card-icon.dns { color: #ffb37a; }
.grant-card-icon.dns svg { width: 18px; height: 18px; }
.dns-domain-chips { max-height: 260px; overflow-y: auto; }
#user-dns .grant-search-box { margin-bottom: 10px; }
.grant-card-icon .ico { width: 19px; height: 19px; margin: 0; }
.grant-card-text { display: grid; gap: 2px; min-width: 0; }
.grant-card-text strong { font-size: 14px; }
.grant-card-text small { color: var(--muted); font-size: 12px; }
/* A switch from a checkbox */
dialog .switch { appearance: none; -webkit-appearance: none; position: relative; width: 42px; height: 24px; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .08); cursor: pointer; transition: background .2s, border-color .2s; }
dialog .switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #c9d1d9; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); transition: transform .2s, background .2s; }
dialog .switch:checked { border-color: var(--blue); background: var(--blue); }
dialog .switch:checked::after { transform: translateX(18px); background: #fff; }
dialog .switch:focus-visible { outline: 2px solid rgba(88, 166, 255, .6); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { dialog .switch, dialog .switch::after { transition: none; } }
#dlg-user .grant-card-text strong { color: var(--text); font-weight: 600; }
/* An option under a card (May create sites, May add SQL connections) and Locked: a row with an icon, a line and a
   small switch. Under a card it is set in, on a line that joins it to the card. */
#dlg-user .option-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); cursor: pointer; transition: border-color .15s, background .15s; }
#dlg-user .option-row:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled))) { border-color: rgba(88, 166, 255, .3); }
#dlg-user .grant-area > .option-row { position: relative; margin: -2px 0 4px 26px; }
#dlg-user .grant-area > .option-row::before { content: ""; position: absolute; left: -17px; top: -12px; width: 12px; height: 32px; border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); border-bottom-left-radius: 8px; }
/* SFTP is the user's, for all their sites: a row of its own after the list, not hanging on its last site */
#dlg-user .grant-area > .option-row.sftp-row { margin: 12px 0 0; }
#dlg-user .grant-area > .option-row.sftp-row::before { content: none; }
#dlg-user .option-row:has(.switch:checked) { border-color: rgba(88, 166, 255, .45); background: rgba(88, 166, 255, .07); }
#dlg-user .user-locked { margin: 12px 0 2px; }
#dlg-user .user-locked:has(.switch:checked) { border-color: rgba(248, 81, 73, .5); background: rgba(248, 81, 73, .08); }
.option-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #b9d8ff; background: rgba(88, 166, 255, .14); }
.option-icon.sql { color: #c9b6ff; background: rgba(163, 113, 247, .14); }
.option-icon.lock { color: #ffa198; background: rgba(248, 81, 73, .14); }
.option-icon .ico { width: 15px; height: 15px; margin: 0; }
.option-text { display: grid; gap: 1px; min-width: 0; }
#dlg-user .option-text strong { color: var(--text); font-size: 13px; font-weight: 600; }
.option-text small { color: var(--muted); font-size: 12px; }
dialog .switch.small { width: 34px; height: 20px; }
dialog .switch.small::after { width: 14px; height: 14px; }
dialog .switch.small:checked::after { transform: translateX(14px); }
#dlg-user .switch.danger:checked { border-color: var(--red); background: var(--red); }
/* The update screen: the progress in the middle, and when it did not finish, a card with what happened and what to do */
.system-update-card { display: flex; flex-direction: column; align-items: center; width: min(560px, 92vw); }
.update-failed-icon { display: none; place-items: center; width: 64px; height: 64px; border-radius: 18px; color: #ffa198; background: rgba(248, 81, 73, .14); box-shadow: 0 0 0 1px rgba(248, 81, 73, .3), 0 10px 30px rgba(248, 81, 73, .15); }
.update-failed-icon svg { width: 32px; height: 32px; }
#system-update-overlay.failed .system-update-card { padding: 32px 32px 26px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(160deg, rgba(248, 81, 73, .06), transparent 45%), var(--panel); box-shadow: var(--shadow); }
#system-update-overlay.failed .update-failed-icon { display: grid; }
#system-update-overlay.failed h2 { margin: 18px 0 6px; font-size: 26px; }
#system-update-overlay.failed .system-update-versions-line { margin: 0 0 6px; }
#system-update-overlay.failed #system-update-message { margin: 0; color: var(--text); }
#system-update-overlay.failed .system-update-step { margin-top: 14px; border: 0; padding: 0; font-size: 12px; }
#system-update-overlay.failed .system-update-step::before { content: "At: "; color: var(--muted); }
#system-update-output { width: 100%; max-height: 40vh; overflow: auto; margin: 16px 0 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .3); text-align: left; font-size: 12px; }
.system-update-actions { display: flex; justify-content: center; gap: 10px; margin-top: 22px; }
.system-update-actions:not(:has(button:not([hidden]))) { display: none; }
#system-update-overlay:focus, #system-update-overlay:focus-visible { outline: none; }
/* DNS help under a binding: the record to make, and whether the name points here */
.dns-card { display: grid; gap: 8px; margin: 10px 0 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(135deg, rgba(88, 166, 255, .06), transparent 60%), var(--panel2); }
.dns-card[hidden] { display: none; }
.dns-head { display: flex; align-items: center; gap: 10px; }
.dns-head strong { flex: 1; font-size: 13px; }
.dns-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; color: #b9d8ff; background: rgba(88, 166, 255, .14); }
.dns-icon .ico { width: 14px; height: 14px; margin: 0; }
.dns-status { padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dns-status.ok { color: var(--green); background: rgba(63, 185, 80, .14); }
.dns-status.ok::before { content: "✓ "; }
.dns-status.warn { color: #d29922; background: rgba(210, 153, 34, .14); }
.dns-status.muted, .dns-status.checking { color: var(--muted); background: rgba(255, 255, 255, .05); }
.dns-records { display: grid; gap: 6px; }
.dns-record { display: grid; grid-template-columns: 58px minmax(0, auto) auto minmax(0, 1fr) 28px; align-items: center; gap: 8px; font-size: 12.5px; }
.dns-type { justify-self: start; padding: 2px 7px; border-radius: 6px; color: var(--muted); background: rgba(255, 255, 255, .06); font: 600 11px ui-monospace, Menlo, monospace; }
.dns-record code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.dns-arrow { color: var(--muted); }
.dns-value { color: var(--text); }
.dns-copy { display: grid; place-items: center; width: 28px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; }
.dns-copy:hover:not(:where(:disabled, .disabled, .off)) { color: var(--text); border-color: rgba(88, 166, 255, .4); }
.dns-copy.copied { color: var(--green); border-color: rgba(63, 185, 80, .5); }
.dns-copy .ico { width: 13px; height: 13px; margin: 0; }
.dns-note { margin: 0; color: var(--muted); font-size: 12px; }
.dns-note.warn { color: #d29922; }
.dns-card { margin-bottom: 16px; }
/* Pointing here already: only the status, a little larger, on a green card. While checking, the records wait. */
.dns-card.checking .dns-records, .dns-card.checking .dns-note, .dns-card.here .dns-records, .dns-card.here .dns-note { display: none; }
.dns-card.here { border-color: rgba(63, 185, 80, .4); background: rgba(63, 185, 80, .06); }
.dns-card.here .dns-status { padding: 6px 14px; font-size: 13.5px; }
/* Issue certificate: one row per name of the certificate, shown when not all point here */
.dns-check-rows { display: grid; gap: 6px; }
.dns-check-name { display: grid; gap: 6px; }
.dns-check-name + .dns-check-name, .dns-check-name + .dns-check-row, .dns-check-row + .dns-check-name { padding-top: 8px; border-top: 1px solid var(--line); }
.dns-card.checking .dns-check-rows, .dns-card.here .dns-check-rows { display: none; }
.dns-check-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12.5px; }
.dns-check-row code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-note:empty { display: none; }
/* Remove package: the project's packages to choose from */
.package-pick { display: grid; gap: 10px; }
.package-pick[hidden] { display: none; }
.package-pick-list { display: grid; gap: 6px; max-height: min(420px, 55vh); overflow-y: auto; padding: 2px; }
/* Removing: only the list scrolls. The dialog stops scrolling itself, the header, filter and buttons stay put,
   and the list takes the height that is left, so the two never scroll inside each other. */
#dlg-package[open]:has(#package-pick:not([hidden])) { display: flex; flex-direction: column; overflow: hidden; }
#dlg-package:has(#package-pick:not([hidden])) > form { display: flex; flex-direction: column; flex: 1; min-height: 0; }
#dlg-package > form > .ns-head, #dlg-package > form > menu { flex: none; }
#dlg-package #package-pick:not([hidden]) { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 0; }
#dlg-package #package-filter { flex: none; }
#dlg-package .package-pick-list { display: flex; flex-direction: column; flex: 0 1 auto; min-height: 120px; max-height: none; margin: 0 -4px; padding: 2px 4px; scroll-padding: 6px; }
#dlg-package .package-pick-row { flex: none; }
.package-pick-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.package-pick-row[hidden] { display: none; }
.package-pick-row:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled))) { border-color: rgba(163, 113, 247, .4); }
.package-pick-row[aria-checked="true"] { border-color: rgba(248, 81, 73, .55); background: linear-gradient(135deg, rgba(248, 81, 73, .1), transparent 70%), var(--panel2); }
.package-pick-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #c9b6ff; background: rgba(163, 113, 247, .14); }
.package-pick-icon .ico { width: 15px; height: 15px; margin: 0; }
.package-pick-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.package-pick-version { padding: 3px 9px; border: 1px solid rgba(88, 166, 255, .35); border-radius: 7px; color: var(--blue); font: 600 12px ui-monospace, Menlo, monospace; }
button.primary.danger-primary { border-color: var(--red); background: #da3633; }
button.primary.danger-primary:disabled { opacity: .5; }
/* A picked package carries a tick, so several picked read as a list to remove */
.package-pick-row { grid-template-columns: 30px minmax(0, 1fr) auto 20px; }
.package-pick-row::after { content: ""; width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 5px; }
.package-pick-row[aria-checked="true"]::after { border-color: var(--red); background: var(--red) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 12px no-repeat; }

/* ---- Phone: the header's controls on one line with the search below, and only the everyday buttons.
   Placed last, so it wins over the desktop sizes above (the search's min-width made the page wider than the screen). */
@media (min-width: 801px) { .phone-only { display: none !important; } }
@media (max-width: 800px) {
	.desktop-only { display: none !important; }
	/* Convert, Move, Roll back and Delete of a site's database are not done from a phone: Settings, Convert only shows
	   what each runs on and kept */
	#server-pane-convert .convert-row > button:last-child, #server-pane-convert .convert-end, #server-pane-convert .convert-kept-actions,
	#server-pane-convert .convert-note { display: none !important; }
	.page-header { flex-wrap: wrap; gap: 8px; padding: 8px 12px; }
	.page-header > .spacer, .page-header:has(#search:not([hidden])) > .spacer { display: block; flex: 1; }
	.brand .logo { width: 32px; height: 32px; border-radius: 8px; }
	.page-header .view-switch { margin-left: 0; }
	.page-header .search-box { order: 10; flex: 1 1 100%; width: auto; min-width: 0; margin: 0; }
	.page-header .search-box #search { height: 36px; }
	.page-header .btn-label { display: none; }
	#btn-settings { padding: 6px 10px; }
	/* An update is a dot on the gear, not a label */
	#system-update-badge:not([hidden]) { display: inline-block; width: 8px; height: 8px; padding: 0; margin-left: 2px; border-radius: 50%; background: var(--orange); font-size: 0; vertical-align: top; }
	main { padding: 12px; }
	#view-sites > .toolbar .stats { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	#view-sites > .toolbar .stats::-webkit-scrollbar { display: none; }
	.chip { flex: none; padding: 5px 10px; }
	/* What needs attention first on a phone, so something stuck, missing or stopped shows without scrolling */
	#stats .chip.attention { order: -2; }
	#stats .chip-divider { order: -1; }
	#site-layout-toggle, #btn-multi, #btn-multi-all, #btn-multi-action, #btn-multi-cancel, .site-targets-head .layout-toggle { display: none !important; }
	/* Cards are as tall as their content, not as the tallest in the grid */
	.cards { grid-auto-rows: auto; gap: 12px; }
	.site { padding: 14px; gap: 14px; }
	/* The name on a line of its own, so every site's badges and Publish all stand on the line below it, however long the name */
	.detail-title h2 { font-size: 21px; flex-basis: 100%; }
	/* No files or shell on a phone: the header's group shows only while something runs */
	#header-files, #btn-dock { display: none !important; }
	.page-header .header-tools:not(:has(#btn-processes:not([hidden]))) { display: none; }
	/* A table is read on a phone, not opened in a query */
	.sql-tables li.sql-table-line button.sql-table-open { pointer-events: none; }
	/* The tables in one column inside their card, without the desk's indent: name left, rows and size right */
	#sql-databases-panel table tr.sql-tables-row > td { padding: 4px 6px 6px; }
	.sql-tables ul, .sql-tables ul.sql-table-list, .sql-tables ul:has(> .sql-table-line) { grid-template-columns: minmax(0, 1fr); padding-left: 8px; }
	/* A login: its icon, name and state on the first line, its buttons on the line below */
	.sql-login { flex-wrap: wrap; row-gap: 8px; }
	.sql-login .access-line-text { flex: 1 1 0; }
	.sql-login .access-line-text :is(strong, small) { overflow: visible; white-space: normal; overflow-wrap: anywhere; }
	.sql-login .access-line-actions { flex: 1 1 100%; justify-content: flex-end; }
	.sql-login .access-line-actions:empty { display: none; }
	/* A card with its buttons in its head: the icon, the name and the state on the first line, the buttons on a line
	   of their own below, sharing its width */
	.tool-head:has(> .tool-actions) { flex-wrap: wrap; row-gap: 10px; }
	.tool-head:has(> .tool-actions) .tool-title { flex: 1 1 0; }
	.tool-head:has(> .tool-actions) .tool-title small { white-space: normal; }
	/* As strong as .tool-head .tool-actions further down, which would keep them beside the title */
	.tool-card .tool-head > .tool-actions { flex: 1 1 100%; }
	.tool-card .tool-head > .tool-actions > :is(button, a) { flex: 1 1 auto; justify-content: center; }
	/* The user editor: its parts as wide as the dialog, never wider */
	#dlg-user .user-part { min-width: 0; padding: 0 12px; }
	#dlg-user .grant-area > .option-row { margin-left: 0; }
	#dlg-user .grant-area > .option-row::before { content: none; }
}
/* Several names: the rows stay visible when all point here, so each name shows its tick */
.dns-card.several.here .dns-records, .dns-card.several.here .dns-check-rows { display: grid; }
.dns-card.several.here .dns-check-row .dns-status { padding: 3px 10px; font-size: 11.5px; }
.dns-card.several .dns-records > .dns-check-rows { padding-top: 2px; }
/* Below the aliases too, the card keeps room from the field above it */
.prompt-extra-row + #prompt-dns .dns-card { margin-top: 14px; }

/* Migrate or copy a site: what goes to the new server and what stays */
.move-site-list { list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.move-site-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 9px 14px; font-size: 13px; }
.move-site-list li + li { border-top: 1px solid var(--line); }
/* An environment to choose: its box first, the whole row clicks it; the site itself has the box's room empty */
.move-site-list li:has(> .windows-check), .move-site-list li:has(> .move-site-check-space) { grid-template-columns: 22px minmax(0, 1fr) auto auto; }
.move-site-list li.move-site-env { cursor: pointer; transition: background .15s; }
.move-site-list li.move-site-env:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(88, 166, 255, .05); }
.move-site-list li.move-site-env.chosen { background: rgba(88, 166, 255, .07); }
.move-site-list .left .move-site-name { color: var(--muted); }
.move-site-list .left .move-site-where { color: var(--muted); background: rgba(139, 148, 158, .12); }
#copy-server-left .type-cards { margin-bottom: 14px; }
/* A copied environment's own binding, under its name: its word and field on one line, not the dialogs' stacked label */
dialog .move-site-list li > label.move-site-binding { grid-column: 2 / -1; display: flex; flex-direction: row; align-items: center; gap: 12px; margin: 4px 0 2px;
	color: var(--muted); font-size: 12.5px; text-align: left; cursor: default; }
dialog .move-site-list li > label.move-site-binding[hidden] { display: none; }
dialog .move-site-list li > label.move-site-binding > span { flex: none; }
dialog.newsite .move-site-list .move-site-binding input { flex: 1; min-width: 0; height: 34px; }
.move-site-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.move-site-where { min-width: 84px; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; text-align: center; }
.move-site-list .goes .move-site-where { color: var(--green); background: rgba(63, 185, 80, .12); }
.move-site-list .stays .move-site-where { color: var(--muted); background: rgba(139, 148, 158, .12); }
.move-site-list .stays .move-site-name { color: var(--muted); }
.move-site-http { padding: 9px 12px; border: 1px solid rgba(210, 153, 34, .35); border-radius: 8px; background: rgba(210, 153, 34, .08); }
.move-site-http strong { color: #d29922; }
@media (max-width: 560px) {
	.move-site-list li { grid-template-columns: minmax(0, 1fr) auto; }
	.move-site-list li:has(> .windows-check), .move-site-list li:has(> .move-site-check-space) { grid-template-columns: 22px minmax(0, 1fr) auto; }
	.move-site-where { grid-column: 1 / -1; justify-self: start; }
}

/* Copy site: this server or another, and its choices as option cards */
.copy-destination-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .copy-destination-cards { grid-template-columns: 1fr; } .copy-option-nested { margin-left: 20px; } }
.type-card.disabled { opacity: .45; cursor: not-allowed; }
.copy-section { min-width: 0; margin: 0; padding: 0; border: 0; }
.copy-section[hidden] { display: none; }
.copy-options { display: grid; gap: 10px; margin: 14px 0 12px; }
/* An option block whose options are all hidden takes no room */
.copy-options:not(:has(> :not([hidden]))) { display: none; }
.copy-option.sql { --option-tone: var(--purple); }
.copy-option.move { --option-tone: var(--orange); }
.copy-option.delete { --option-tone: var(--red); }
.copy-option.stop { --option-tone: var(--blue); }
.copy-option-nested { margin-left: 46px; }
.copy-option .sync-option-text { flex: 1; }
.copy-option::after { content: ""; flex: none; width: 18px; height: 18px; border: 1.5px solid var(--line); border-radius: 5px; transition: background .15s, border-color .15s; }
.copy-option:has(input:checked)::after { content: ""; position: static; color: transparent; border-color: var(--option-tone); background: var(--option-tone) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1117' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.copy-option:has(input:focus-visible) { outline: 2px solid var(--option-tone); outline-offset: 2px; }
dialog label.copy-option { flex-direction: row; align-items: center; justify-content: flex-start; margin: 0; text-align: left; font-size: inherit; color: inherit; }
dialog label.copy-option[hidden] { display: none; }
dialog label.copy-option-nested { margin-left: 46px; }
@media (max-width: 560px) { dialog label.copy-option-nested { margin-left: 20px; } }
#prod-copy-options, #prod-move-options { display: grid; gap: 10px; }
#prod-copy-options[hidden], #prod-move-options[hidden] { display: none; }
#prod-copy-options > .copy-option:first-child { margin-top: 4px; }
#prod-remove-options { margin-bottom: 4px; }

/* The server's addresses in the header: a click copies one */
.server-ips { display: flex; align-items: stretch; gap: 2px; padding: 2px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 9px; background: rgba(13, 17, 23, .14); }
.server-ips[hidden] { display: none; }
.page-header .server-ip { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 3px 10px; border: 0; border-radius: 7px; background: transparent; color: #fff; line-height: 1.1; cursor: pointer; transition: background .15s; }
.page-header .server-ip:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .14); }
.page-header .server-ip:focus-visible { outline: 2px solid rgba(255, 255, 255, .7); outline-offset: 1px; }
.page-header .server-ip + .server-ip { box-shadow: -2px 0 0 -1px rgba(255, 255, 255, .16); }
.server-ip-label { color: rgba(255, 255, 255, .62); font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; transition: color .15s; }
.server-ip-value { font: 500 13px/1.1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.server-ip.copied .server-ip-label { color: #8ff0b4; }
@media (max-width: 1000px) { .server-ips { display: none; } }
.copy-option.secure { --option-tone: var(--green); }
.move-site-http.secure { border-color: rgba(63, 185, 80, .35); background: rgba(63, 185, 80, .08); }
.move-site-http.secure strong { color: var(--green); }
#copy-server-dns, #prod-dns { margin: 0 0 12px; }
#copy-server-dns[hidden], #prod-dns[hidden] { display: none; }
.copy-option.disabled { opacity: .55; cursor: not-allowed; }
.https-choice { margin: 2px 0 14px; }

/* An action's window: its steps, and its output only when something went wrong or is asked for */
dialog.task-dialog { width: min(560px, calc(100vw - 32px)); }
.task-dialog .ns-head .ns-icon { transition: background .25s; }
.task-dialog[data-state="done"] .ns-icon { background: linear-gradient(135deg, #2ea043, #3fb950); }
.task-dialog[data-state="warning"] .ns-icon { background: linear-gradient(135deg, #bb8009, #d29922); }
.task-dialog[data-state="failed"] .ns-icon { background: linear-gradient(135deg, #b62324, #f85149); }
.task-state .ico { width: 22px; height: 22px; margin: 0; stroke-width: 2.6; }
.task-spinner { width: 20px; height: 20px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: update-spin .8s linear infinite; }
#task-status { font-variant-numeric: tabular-nums; }
.task-steps { list-style: none; margin: 0 0 12px; padding: 0; display: grid; position: relative; gap: 2px; max-height: 40vh; overflow-y: auto; }
.task-steps[hidden] { display: none; }
.task-step { display: flex; align-items: flex-start; gap: 10px; padding: 6px 2px; font-size: 13.5px; color: var(--muted); }
.task-step.active { color: var(--text); font-weight: 600; }
.task-step.failed { color: var(--red); font-weight: 600; }
.task-step.warning { color: #d29922; }
/* Still to come, and those it did not take (it failed before them) */
.task-step.pending { opacity: .7; }
.task-step.skipped { opacity: .45; }
.task-step.skipped .task-step-mark { border-style: dashed; }
.task-step-mark { flex: none; position: relative; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line); }
.task-step.done .task-step-mark { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1117' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 10px no-repeat; }
.task-step.active .task-step-mark { border-color: var(--blue); border-top-color: transparent; animation: update-spin .8s linear infinite; }
.task-step.failed .task-step-mark { border-color: var(--red); background: var(--red); }
.task-step.warning .task-step-mark { border-color: #d29922; background: #d29922 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1117' stroke-width='4' stroke-linecap='round'%3E%3Cpath d='M12 6v7M12 18v.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
/* Still running after a warning: the warning mark spins no more, the step stays bold */
.task-step.active.warning .task-step-mark { animation: none; }
.task-step-text { display: grid; gap: 3px; min-width: 0; }
.task-step-problem { color: #d29922; font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 400; overflow-wrap: anywhere; }
.task-current { margin: 2px 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--muted); font: 12.5px/1.45 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-current[hidden] { display: none; }
.task-details { height: min(46vh, 420px); margin: 0 0 12px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #000; overflow: hidden; }
.task-details[hidden] { display: none; }
.task-details .pane { position: static; height: 100%; display: block; }
.task-dialog menu { align-items: center; }
.task-dialog menu .spacer { flex: 1; }
.task-toggle { font-size: 13px; }
@media (max-width: 560px) { .task-details { height: 50vh; } }
/* A finished window that closes by itself: a line runs out under its header */
.task-dialog .ns-head { position: relative; }
.task-dialog .ns-head::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--green); opacity: 0; }
.task-dialog.closing .ns-head::after { opacity: 1; animation: task-closing 1s linear forwards; }
@keyframes task-closing { from { width: 100%; } to { width: 0; } }
@media (prefers-reduced-motion: reduce) { .task-dialog.closing .ns-head::after { animation: none; width: 100%; } }

/* Check service: the state of a site's service */
dialog.service-dialog { width: min(620px, calc(100vw - 32px)); }
.service-dialog .ns-head > div { flex: 1; }
.service-pill { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: rgba(139, 148, 158, .16); color: var(--muted); }
.service-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.service-pill.ok { color: var(--green); background: rgba(63, 185, 80, .14); }
.service-pill.ok::before { box-shadow: 0 0 0 3px rgba(63, 185, 80, .22); }
.service-pill.bad { color: var(--red); background: rgba(248, 81, 73, .14); }
.service-pill.busy { color: var(--blue); background: rgba(88, 166, 255, .14); }
.service-pill.busy::before { animation: service-pulse 1s ease-in-out infinite alternate; }
@keyframes service-pulse { from { opacity: .35; } to { opacity: 1; } }
.service-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); transition: opacity .15s; }
.service-dialog.loading .service-facts { opacity: .5; }
.service-fact { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; background: var(--panel2); min-width: 0; }
.service-fact-label { color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.service-fact-value { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.service-note { margin: -4px 0 12px; }
.service-dialog[data-tone="bad"] .service-note { color: var(--red); }
.service-log-panel[hidden] { display: none; }
.service-log { max-height: 34vh; overflow: auto; margin: 0 0 14px; padding: 8px 0; border: 1px solid var(--line); border-radius: 8px; background: #05070a; font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.service-log-line { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 1px 12px; color: #c9d1d9; white-space: pre-wrap; overflow-wrap: anywhere; }
.service-log-line.problem { color: #ffa198; background: rgba(248, 81, 73, .08); }
.service-log-time { color: #6e7681; font-variant-numeric: tabular-nums; }
.service-log-empty { padding: 4px 12px; color: var(--muted); }
.service-dialog menu { align-items: center; }
.service-dialog menu .spacer { flex: 1; }
@media (max-width: 560px) { .service-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Processes in the header: actions that run, or ended with a problem; a click opens their window again */
.processes { position: relative; }
#btn-processes { display: inline-flex; align-items: center; gap: 7px; }
#btn-processes[hidden] { display: none; }
.process-indicator { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
#btn-processes.running .process-indicator { width: 12px; height: 12px; background: none; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: update-spin .8s linear infinite; }
#btn-processes.problem:not(.running) .process-indicator { background: #ff7b72; box-shadow: 0 0 0 3px rgba(255, 123, 114, .25); }
.processes-menu { width: min(360px, calc(100vw - 24px)); padding: 6px; }
.processes-menu .menu-group-title { padding: 6px 10px 4px; }
.process-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 60vh; overflow-y: auto; }
.menu .process-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; text-align: left; }
.process-state { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); }
.process-item.running .process-state { border-color: var(--blue); border-top-color: transparent; animation: update-spin .8s linear infinite; }
.process-item.done .process-state { border-color: var(--green); background: var(--green); }
.process-item.failed .process-state { border-color: var(--red); background: var(--red); }
.process-item.warning .process-state { border-color: #d29922; background: #d29922; }
.process-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.process-title { color: var(--text); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.process-sub { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.process-item.failed .process-sub { color: var(--red); }

/* Environment as four choices in its colours, in place of a select */
.ns-grid > .wide { grid-column: 1 / -1; }
.choice-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; min-width: 0; }
.choice-field[hidden] { display: none; }
.choice-label { color: var(--muted); font-size: 12.5px; }
.env-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
dialog label.env-choice { --env-tone: var(--blue); position: relative; flex-direction: row; align-items: center; justify-content: center; gap: 8px; height: 40px; margin: 0; padding: 0 10px;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
dialog label.env-choice.env-test { --env-tone: #d29922; }
dialog label.env-choice.env-staging { --env-tone: var(--purple); }
dialog label.env-choice.env-production { --env-tone: var(--red); }
.env-choice::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--env-tone); opacity: .55; transition: opacity .15s; }
.env-choice input { position: absolute; opacity: 0; pointer-events: none; }
dialog label.env-choice:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled))) { border-color: color-mix(in srgb, var(--env-tone) 55%, var(--line)); }
dialog label.env-choice:has(input:checked) { border-color: var(--env-tone); background: color-mix(in srgb, var(--env-tone) 13%, var(--panel2)); box-shadow: 0 0 0 1px var(--env-tone) inset; }
.env-choice:has(input:checked)::before { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--env-tone) 25%, transparent); }
.env-choice:has(input:focus-visible) { outline: 2px solid var(--env-tone); outline-offset: 2px; }
@media (max-width: 560px) { .env-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Each environment in its own colour: the top edge of its card, the left edge of its row in the list */
.env.tone-development { --env-tone: var(--blue); }
.env.tone-test { --env-tone: #d29922; }
.env.tone-staging { --env-tone: var(--purple); }
.env.tone-production { --env-tone: var(--red); }
.env[class*="tone-"] { border-top-color: var(--env-tone); }
/* Nothing in a row is cut off at its edge */
.env-targets.list > .env-listed, .env-targets.list > .env-listed > .env-head { overflow: visible; }
/* The file manager's .list scrolls sideways; the list of environments is not that */
.env-targets.list { overflow: visible; }

/* ---- Server tools: a card per part of the server, its state and what can be done with it */
/* The Server page: the server's name and system at the top, then Tools, Scheduled jobs and Servers as tabs */
.server-page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.server-page-icon { display: grid; flex: none; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #fff;
	background: linear-gradient(135deg, #6c7bff, #8b5cf6); box-shadow: 0 4px 14px rgba(108, 123, 255, .35); }
.server-page-icon .ico { width: 22px; height: 22px; margin: 0; }
.server-page-title { display: grid; gap: 2px; min-width: 0; }
.server-page-title h2 { margin: 0; font-size: 26px; overflow-wrap: anywhere; }
.server-page-title p { margin: 0; color: var(--muted); font-size: 13.5px; }
/* A side menu of its parts, the part to its right; on a phone the menu is a row above it */
.server-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.server-nav { position: sticky; top: 16px; display: grid; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.server-nav-group { margin: 12px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.server-nav-group:first-child { margin-top: 4px; }
.server-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent;
	color: var(--muted); font-size: 14px; font-weight: 600; text-align: left; }
.server-nav button .ico { flex: none; width: 16px; height: 16px; margin: 0; }
.server-nav button:hover:not(:where(:disabled, .disabled, .off, .active)) { background: var(--hover); color: var(--text); }
.server-nav button.active { background: rgba(163, 113, 247, .14); color: var(--text); box-shadow: 0 0 0 1px rgba(163, 113, 247, .3) inset; }
.server-nav button.active .ico { color: var(--purple); }
.server-nav button:focus-visible { outline: none; box-shadow: 0 0 0 1px rgba(88, 166, 255, .6) inset; }
.server-content { min-width: 0; }
.server-pane-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.server-pane-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; }
.server-pane-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.server-pane-count:empty { display: none; }
.server-pane-count { padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); font-size: 12px; font-weight: 600; }
.server-pane .server-tools { margin-top: 0; }
.server-pane .crontab-list { margin: 0; }
/* A user's card: their initial where a tool has its icon */
.tool-icon.user-initial { background: linear-gradient(135deg, #6c7bff, #8b5cf6); color: #fff; font-size: 15px; font-weight: 700; }
.tool-card.user-locked { opacity: .6; }
.server-pane .users-list { max-height: none; overflow: visible; }
/* Settings: a field with its Save beside it, and the keep-alive's interval as chips */
.settings-field { display: flex; gap: 10px; }
.settings-field input { flex: 1; min-width: 0; height: 38px; padding: 0 12px; font-size: 14px; }
.settings-field button { display: inline-flex; align-items: center; gap: 6px; }
.settings-field button .ico { width: 14px; height: 14px; margin: 0; }
.tool-card .keep-alive-interval { margin-top: 0; }
/* Keep-alive's report: a line under its interval, with Log and its settings */
.keep-alive-report { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 4px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, .03); }
.keep-alive-report-icon { display: grid; flex: none; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(88, 166, 255, .12); color: var(--blue); }
.keep-alive-report-icon .ico { width: 15px; height: 15px; margin: 0; }
.keep-alive-report-text { display: grid; gap: 1px; min-width: 0; flex: 1 1 240px; }
.keep-alive-report-text strong { font-size: 13.5px; }
.keep-alive-report-text small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.keep-alive-report-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
.keep-alive-report-actions button { display: inline-flex; align-items: center; gap: 6px; }
.toned-action { display: inline-flex; align-items: center; gap: 6px; }
/* The version beside the server's name at the top, and an update as a chip beside them when there is one */
.header-version { opacity: .75; }
/* Shell, Files and the terminals open: one group at the top, as the sections' switch */
.header-tools { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; background: rgba(255, 255, 255, .08); }
.header-tools button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 0; border-radius: 7px; background: transparent;
	color: rgba(255, 255, 255, .85); font-size: 13px; font-weight: 600; }
.header-tools button:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .16); color: #fff; }
.header-tools button .ico { width: 15px; height: 15px; margin: 0; }
.header-tools .count { min-width: 18px; padding: 0 6px; border-radius: 999px; background: #fff; color: #4b3a8c; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.header-tools .count[hidden] { display: none; }
/* Processes in the group too, while something runs: its button as the group's */
.header-tools .processes { position: relative; display: inline-flex; }
.header-tools #btn-processes { display: inline-flex; align-items: center; gap: 7px; }
.header-tools #btn-processes[hidden] { display: none; }
.dock-new { min-width: 28px; margin-left: 6px; font-size: 16px; font-weight: 700; line-height: 1; }
/* A user who only has the terminals sees none of it until one is open */
.header-tools:not(:has(> button:not([hidden]), .processes > button:not([hidden]))) { display: none; }
body:not([data-role="user"]) .header-tools { display: inline-flex; }
@media (max-width: 1400px) { .header-tools .btn-label { display: none; } .header-tools button { padding: 6px 9px; } }
.header-update { display: inline-flex; align-items: center; margin-left: 12px; padding: 4px 10px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px;
	background: rgba(210, 153, 34, .9); color: #1b1300; font-size: 12px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.header-update:hover:not(:where(:disabled, .disabled, .off)) { background: #e3a92a; }
.header-update[hidden] { display: none; }
.toned-action .ico { width: 14px; height: 14px; margin: 0; }
.keep-alive-report-actions button .ico { width: 14px; height: 14px; margin: 0; }
.report-when { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0 0 4px; padding: 0; border: 0; }
.report-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .report-when, .report-checks { grid-template-columns: minmax(0, 1fr); } .keep-alive-report { flex-wrap: wrap; } }
.mail-security { margin-bottom: 12px; }
.mail-host-row { grid-template-columns: minmax(0, 1fr) 120px; }
.mail-test-row { display: flex; gap: 10px; }
/* What Test connection or Save found, under the dialog's fields */
.sql-connection-said { display: flex; align-items: flex-start; gap: 10px; margin: 12px 0 0; padding: 10px 12px; border-radius: 9px; font-size: 13px; line-height: 1.45; }
.sql-connection-said[hidden] { display: none; }
.sql-connection-said .ico { flex: none; width: 15px; height: 15px; margin: 2px 0 0; }
.sql-connection-said.busy { background: rgba(88, 166, 255, .08); color: var(--blue); }
.sql-connection-said.ok { background: rgba(63, 185, 80, .1); color: var(--green); }
.sql-connection-said.bad { background: rgba(248, 81, 73, .1); color: #ff8a80; }
.sql-connection-spinner { flex: none; width: 14px; height: 14px; margin-top: 2px; border: 2px solid rgba(88, 166, 255, .3); border-top-color: var(--blue); border-radius: 50%; animation: update-spin .8s linear infinite; }
/* Beside the dropdown and its buttons, centred on them */
.sql-loading { display: inline-flex; align-items: center; gap: 8px; align-self: center; height: auto; color: var(--muted); font-size: 13px; }
.sql-heading .sql-loading { align-self: center; height: auto; }
.sql-tables-loading, .grant-database-list .sql-loading { height: auto; padding: 6px 0; }
.sql-loading[hidden] { display: none; }
.sql-loading .sql-connection-spinner { margin-top: 0; }
.sql-password-harbor { align-self: center; margin: 0; padding: 10px 12px; border-radius: 9px; background: rgba(63, 185, 80, .08); color: var(--green); font-size: 12.5px; line-height: 1.45; }
#sql-password-row[hidden] { display: none; }
/* A folder field with Browse… beside it, and its panel of folders under the fields */
.folder-field { display: flex; gap: 8px; }
.folder-field input { flex: 1; min-width: 0; }
.folder-browse { display: inline-flex; flex: none; align-items: center; gap: 6px; }
.folder-browse .ico { width: 14px; height: 14px; margin: 0; color: var(--blue); }
.crontab-browse-head .primary { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font-size: 12.5px; }
.crontab-browse-head .primary .ico { width: 13px; height: 13px; margin: 0; }
.form-dialog-extra { display: inline-flex; gap: 8px; margin-left: auto; }
.form-dialog-extra:empty { display: none; }
.form-dialog-extra button { display: inline-flex; align-items: center; gap: 6px; }
.form-dialog-extra button .ico { width: 14px; height: 14px; margin: 0; }
.mail-test-row input { flex: 1; min-width: 0; }
.mail-test-row button { display: inline-flex; flex: none; align-items: center; gap: 6px; }
.mail-test-row button .ico { width: 14px; height: 14px; margin: 0; }
.mail-test-said:empty { display: none; }
.mail-test-said.ok { color: var(--green); }
.mail-test-said.bad { color: var(--red); }
/* The log: what is wrong now, then what broke and was solved lately */
.report-problems, .report-events { display: grid; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.report-problem { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border: 1px solid rgba(248, 81, 73, .3); border-radius: 10px; background: rgba(248, 81, 73, .06); }
.report-problem > div { display: grid; gap: 2px; min-width: 0; }
.report-problem small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.report-problem .dot { margin-top: 5px; background: var(--red); }
.report-ok { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(63, 185, 80, .08); color: var(--green); }
.report-ok .ico { width: 15px; height: 15px; margin: 0; }
.report-events { max-height: 320px; overflow-y: auto; }
.report-event { display: grid; grid-template-columns: 128px 64px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .025); font-size: 12.5px; }
.report-event-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.report-event-tag { justify-self: start; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.report-event.failed .report-event-tag { background: rgba(248, 81, 73, .14); color: var(--red); }
.report-event.recovered .report-event-tag { background: rgba(63, 185, 80, .14); color: var(--green); }
.report-event-text { overflow-wrap: anywhere; }
.report-mail-error { color: var(--red); }
/* A mail as it is sent: its subject, then its text */
.mail-preview { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mail-preview-subject { display: flex; gap: 10px; align-items: baseline; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.mail-preview-subject span { color: var(--muted); font-size: 12px; }
.mail-preview-subject strong { font-size: 13.5px; overflow-wrap: anywhere; }
.mail-preview-body { max-height: 360px; margin: 0; padding: 12px 14px; overflow: auto; font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; }
/* A job Harbor suggests: a dashed card under the jobs, tagged as a suggestion */
.crontab-suggestions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; list-style: none; }
@media (max-width: 1100px) { .crontab-suggestions { grid-template-columns: minmax(0, 1fr); } }
.add-first-card.crontab-suggestion { position: relative; width: 100%; min-height: 170px; padding-top: 34px; }
.crontab-suggestion-tag { position: absolute; top: 12px; left: 14px; padding: 2px 9px; border-radius: 999px; background: rgba(88, 166, 255, .12); color: var(--blue);
	font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
/* One choice of a few, as cards: a title and a line, the chosen one in the tone of its card */
.menu-choices { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1200px) { .menu-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.menu-choice { display: grid; gap: 3px; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02);
	text-align: left; white-space: normal; cursor: pointer; }
.menu-choice strong { color: var(--text); font-size: 13.5px; }
.menu-choice small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.menu-choice:hover:not(:where(:disabled, .disabled, .off, .active)) { border-color: rgba(163, 113, 247, .45); }
.menu-choice.active { border-color: rgba(163, 113, 247, .7); background: rgba(163, 113, 247, .12); }
.menu-choice.active strong { color: #c9a8ff; }
@media (max-width: 560px) { .menu-choices { grid-template-columns: minmax(0, 1fr); } }
/* Where the admin opens, under the menu's choices */
.menu-start { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.menu-start-label { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.menu-start strong { font-size: 13.5px; }
.menu-start .keep-alive-interval { margin: 0; }
.menu-start-note { color: var(--muted); font-size: 12px; }
/* Another Harbor server's own admin, a link that looks as the buttons beside it do, in blue */
.tool-open-admin { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(88, 166, 255, .45); border-radius: 6px;
	background: rgba(88, 166, 255, .08); color: var(--blue); font-weight: 600; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s; }
.tool-open-admin .ico { width: 14px; height: 14px; margin: 0; }
.tool-open-admin:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--blue); background: rgba(88, 166, 255, .14); }
.tool-open-admin:focus-visible { outline: none; border-color: var(--blue); }
/* The tools read as cards, not bars across a wide screen */
/* The tools as cards, two beside each other; their buttons under them where there are several */
#server-pane-tools .server-tools, #server-pane-users .users-list, #server-pane-templates .users-list, #servers-list { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
#server-pane-users .users-list > .tool-card, #server-pane-users .users-list > .add-first-card, #server-pane-templates .users-list > .tool-card, #server-pane-templates .users-list > .add-first-card { min-height: 170px; }
#server-pane-users .users-list > .add-first-card, #server-pane-templates .users-list > .add-first-card { margin-top: 0; }
#servers-list > .tool-card, #servers-list > .add-first-card { min-height: 190px; }
#server-pane-tools .server-tools > .tool-card { min-height: 150px; padding: 18px 18px 16px; }
#server-settings-list { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 1400px) { #server-pane-tools .server-tools, #server-pane-users .users-list, #server-pane-templates .users-list, #servers-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
#server-pane-tools .add-first-card { min-height: 150px; }
/* Access: two columns, SSH and Samba, then Samba's shares and users as lines */
#server-pane-tools .server-tools.access-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#server-pane-tools .server-tools.access-layout > .tool-card { min-height: 0; }
@media (max-width: 1000px) { #server-pane-tools .server-tools.access-layout { grid-template-columns: minmax(0, 1fr); } }
.access-lines { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.access-line { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, .03); }
.access-line-icon { display: grid; flex: none; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .05); color: var(--muted); }
.access-line-icon .ico { width: 14px; height: 14px; margin: 0; }
.access-line-text { display: grid; flex: 1; gap: 1px; min-width: 0; }
.access-line-text strong { font-size: 13.5px; }
.access-line-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.access-line-actions { display: flex; flex: none; gap: 6px; }
.icon-action { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; }
.icon-action .ico { width: 14px; height: 14px; margin: 0; }
.access-add { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 9px 10px; border: 1px dashed var(--line); border-radius: 9px;
	background: transparent; color: var(--blue); font-size: 13px; font-weight: 600; }
.access-add .ico { width: 14px; height: 14px; margin: 0; }
.access-add:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .55); background: rgba(88, 166, 255, .05); }
#server-pane-tools .server-tools > .tool-card.tool-card-wide { grid-column: 1 / -1; min-height: 0; }
#server-settings-list > .tool-card.tool-card-wide { grid-column: 1 / -1; }
#server-menu-list { grid-template-columns: minmax(0, 1fr); margin-top: 0; }
#server-menu-list > .tool-card { grid-column: 1 / -1; }
/* Chips in a card take its tone when chosen: purple in the top menu's, green in the keep-alive's */
.tool-card .keep-alive-interval button.active { border-color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); color: var(--tone); }
.tool-card .keep-alive-interval button:hover:not(:where(:disabled, .disabled, .off, .active)) { border-color: color-mix(in srgb, var(--tone) 60%, var(--line)); }
/* A heading across the tool cards: Samba's shares, then its users */
.tool-group-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin: 14px 0 -2px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tool-group-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(210, 153, 34, .14); color: #d29922; }
.tool-group-icon .ico { width: 14px; height: 14px; margin: 0; }
.tool-group-title { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.tool-group-count { padding: 1px 8px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); font-size: 12px; font-weight: 600; }
.tool-card.actions-below > .tool-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 8px; margin-top: auto; }
@media (max-width: 1000px) { #server-pane-tools .server-tools, #server-pane-users .users-list, #server-pane-templates .users-list, #servers-list, #server-settings-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
	.server-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.server-nav { position: static; display: flex; gap: 4px; padding: 6px; overflow-x: auto; scrollbar-width: none; }
	.server-nav::-webkit-scrollbar { display: none; }
	.server-nav-group { display: none; }
	.server-nav button { flex: none; width: auto; padding: 7px 11px; font-size: 13.5px; }
}
@media (max-width: 700px) {
	.server-page-head { gap: 12px; }
	.server-page-icon { width: 40px; height: 40px; border-radius: 12px; }
	.server-page-title h2 { font-size: 21px; }
	.server-pane-head { flex-wrap: wrap; }
}
.server-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; min-height: 120px; }
.server-tools-loading { grid-column: 1 / -1; display: grid; place-items: center; padding: 48px 0; color: var(--muted); }
/* Waiting: a ring in Harbor's blue and purple that turns, the words under it */
.loading-state { gap: 14px; list-style: none; }
.loading-ring { position: relative; width: 34px; height: 34px; border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 20%, rgba(88, 166, 255, .9) 60%, var(--purple) 100%);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
	animation: loading-turn .9s linear infinite; filter: drop-shadow(0 0 6px rgba(88, 166, 255, .35)); }
@keyframes loading-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .loading-ring { animation-duration: 3s; } }
.crontab-log .loading-state, .windows-reading .loading-state { padding: 20px 0; }
.tool-card { --tone: var(--blue); display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px 16px 14px; border: 1px solid var(--line); border-radius: 12px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 9%, transparent), transparent 55%), var(--panel2); }
.tool-card.tone-purple { --tone: var(--purple); } .tool-card.tone-teal { --tone: #39c5bb; } .tool-card.tone-amber { --tone: #d29922; }
.tool-card.tone-green { --tone: var(--green); } .tool-card.tone-pink { --tone: #db61a2; } .tool-card.tone-blue { --tone: var(--blue); }
.tool-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tool-icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--tone);
	background: color-mix(in srgb, var(--tone) 16%, transparent); border: 1px solid color-mix(in srgb, var(--tone) 30%, transparent); }
.tool-icon .ico { width: 18px; height: 18px; margin: 0; }
.tool-title { display: grid; gap: 1px; flex: 1; min-width: 0; }
.tool-title strong { font-size: 14.5px; }
.tool-title small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tool-state { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
	color: var(--muted); background: var(--hover); }
.tool-state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tool-state.ok { color: var(--green); background: rgba(63, 185, 80, .12); }
.tool-state.warn { color: #d29922; background: rgba(210, 153, 34, .13); }
.tool-state.bad { color: var(--red); background: rgba(248, 81, 73, .12); }
.tool-state.next { color: var(--blue); background: rgba(88, 166, 255, .12); }
/* What someone or something is (a user's role, a Samba login's kind), not a state: its own tone, no dot */
.tool-state.role { color: var(--blue); background: rgba(88, 166, 255, .12); }
.tool-state.role.admin { color: #c9a8ff; background: rgba(163, 113, 247, .16); }
.tool-state.role::before { display: none; }
.tool-text { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.tool-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tool-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, .18); font-size: 12.5px; }
.tool-row .tool-row-name { font-weight: 600; white-space: nowrap; }
.tool-row .tool-row-detail { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tool-row code { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.tool-row .tool-row-action { flex: none; padding: 3px 9px; font-size: 12px; }
.tool-row .icon-action { flex: none; width: 28px; height: 28px; }
.tool-row .dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.tool-row .dot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(63, 185, 80, .15); }
.tool-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 2px; }
.tool-actions button, .tool-actions a.tool-open-admin { font-size: 12.5px; padding: 6px 12px; }
.tool-actions .tool-danger { color: var(--red); border-color: rgba(248, 81, 73, .35); }
.tool-actions .tool-danger:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(248, 81, 73, .1); border-color: rgba(248, 81, 73, .4); }
.server-action-fields { display: grid; gap: 4px; }
.server-action-fields .type-card { cursor: pointer; }
.server-editions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 0 0 8px; padding: 0; border: 0; }
.server-editions legend { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
@media (max-width: 720px) { .server-tools, .server-editions { grid-template-columns: 1fr; } }
/* SFTP in the user editor: where to connect, the password and the keys */
.sftp-area { display: grid; gap: 4px; margin: -4px 0 4px 26px; padding: 12px 14px; border: 1px solid var(--line); border-left: 2px solid rgba(88, 166, 255, .45); border-radius: 0 10px 10px 0; background: var(--panel2); }
.sftp-area[hidden] { display: none; }
.sftp-address { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; font-size: 12.5px; }
.sftp-address code { padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: var(--blue); font-size: 12px; overflow-wrap: anywhere; }
.sftp-area textarea { min-height: 64px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; resize: vertical; }
.sftp-area .hint { margin-top: 2px; }

/* Options in the action dialogs (Server tools, Servers): the option cards of Sync data, beside the dialog's own label
   layout, which stacks a label's contents */
dialog.newsite label.sync-option.action-option { flex-direction: row; align-items: center; justify-content: flex-start; margin: 0 0 10px; text-align: left; font-size: inherit; color: inherit; }
.action-option.tone-blue { --option-tone: var(--blue); }
.action-option.tone-amber { --option-tone: #d29922; }
.action-option.tone-red { --option-tone: var(--red); }
.action-option.tone-green { --option-tone: var(--green); }
.action-option.tone-purple { --option-tone: var(--purple); }
.action-option.tone-pink { --option-tone: #db61a2; }
.action-option.tone-red .sync-option-icon, .action-option.tone-amber .sync-option-icon { color: color-mix(in srgb, var(--option-tone) 70%, var(--muted)); }
.action-option:has(input:disabled) { opacity: .45; cursor: default; }
/* What else a confirmation decides, as option cards above the name typed (Delete site: certificates, databases) */
.prompt-options { display: grid; gap: 8px; margin: 20px 0; }
/* Type the name to confirm: under the options, just above its field */
.prompt-confirm { margin: 0 0 8px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.prompt-confirm[hidden] { display: none; }
.prompt-options[hidden] { display: none; }
#prompt-options .sync-option { flex-direction: row; align-items: center; justify-content: flex-start; margin: 0; text-align: left; font-size: inherit; color: inherit; }
/* One that says what is missing (or why a database is kept): no choice of its own, its button at its end */
.prompt-option-note { cursor: default; }
/* Export of a site managed from another server: where it is built, said on a lightly tinted card, not a choice. Teal,
   as another server is in the dialog: never the blue of a chosen card (Windows) */
.sync-option.export-built { --option-tone: #39c5cf; border-color: color-mix(in srgb, var(--option-tone) 28%, transparent); background: color-mix(in srgb, var(--option-tone) 8%, transparent); }
.sync-option.export-built .sync-option-icon { background: color-mix(in srgb, var(--option-tone) 16%, transparent); color: var(--option-tone); }
/* Move or Convert to SQLite: each card with its icon, lit as the card is chosen */
.connect-kind.convert-mode { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; align-items: center; align-content: center; }
.convert-mode > strong, .convert-mode > small { grid-column: 2; }
.convert-mode-icon { grid-row: 1 / 3; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .04); color: var(--muted); }
.convert-mode-icon .ico { width: 18px; height: 18px; margin: 0; }
.convert-mode:has(input:checked) .convert-mode-icon { background: rgba(88, 166, 255, .16); color: var(--blue); }
/* Settings, Export: Export… at the end of a site's head; the exports made, a line each with its OS, what it is, its
   countdown once downloaded, and its actions */
.convert-group-head .export-site-action { display: flex; align-items: center; gap: 10px; margin-left: auto; }
/* A site's exports: a box of its own over its rows, under the chip that unfolds it, with its heading */
.export-fold { margin: 0 0 10px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; }
.export-fold[hidden] { display: none; }
.export-fold .export-items { margin: 0; }
.export-items { display: grid; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.export-line { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .18); }
.export-os { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(255, 255, 255, .04); }
.export-os svg, .export-os-icon svg { width: 18px; height: 18px; }
.export-text { display: grid; gap: 2px; min-width: 0; }
.export-text strong { color: var(--text); font-size: 14px; }
/* One made and kept on the server the site is managed from says so beside its name */
.export-text strong.export-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.export-text strong.export-title .convert-where { font-weight: 500; }
.export-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.export-text small.export-countdown { color: #d29922; }
.export-text small.export-deleted { color: #ff7b72; white-space: normal; }
.export-actions { display: flex; flex: none; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-left: auto; }
/* What goes: the environments as option cards, two side by side where there is room */
.export-envs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; margin: 0 0 16px; }
.export-envs .sync-option { margin: 0; }
.export-lifetime { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.export-databases { margin-top: 10px; }
.export-databases[hidden] { display: none; }
.action-option.tone-teal { --option-tone: #39c5cf; }
/* An environment on another server: in its own colour, with where it runs beside its name */
.export-env-remote .sync-option-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.export-env-where { display: inline-flex; align-items: center; gap: 5px; padding: 1px 8px; border: 1px solid color-mix(in srgb, var(--option-tone) 45%, transparent);
	border-radius: 999px; background: color-mix(in srgb, var(--option-tone) 10%, transparent); color: var(--option-tone); font-size: 11.5px; font-weight: 600; }
.export-env-where .os-logo { display: inline-flex; }
.export-env-where .os-logo svg { width: 12px; height: 12px; }
@media (max-width: 800px) { .export-line { flex-wrap: wrap; } .export-actions { width: 100%; justify-content: stretch; } .export-actions > * { flex: 1; justify-content: center; } }
/* The query window while a table's rows are read: its spinner in the middle of the output */
.sql-query-reading { display: grid; place-items: center; min-height: 160px; }
/* The convert dialog while what it shows is read: its spinner in the middle of the room the form takes */
.convert-opening { display: grid; place-items: center; min-height: 180px; }
.convert-opening.small { min-height: 90px; margin-bottom: 12px; }
/* Move without a server to move to: the card says what is missing, in the dialog's flow */
.convert-missing { margin: 0 0 16px; }
.convert-missing > button { flex: none; margin-left: auto; }
/* Used by a site: dashed in its tone (amber; red when several sites stop a move), its icon lit, so it is seen and read */
.convert-used { border: 1px dashed color-mix(in srgb, var(--option-tone) 60%, transparent); background: color-mix(in srgb, var(--option-tone) 7%, transparent); }
.action-option.convert-used .sync-option-icon { background: color-mix(in srgb, var(--option-tone) 16%, transparent); color: var(--option-tone); }
.prompt-option-note > button { flex: none; margin-left: auto; }
@media (max-width: 560px) { .prompt-option-note { flex-wrap: wrap; } .prompt-option-note > button { flex: 1 1 100%; justify-content: center; } }
.server-action-fields .action-option:first-child { margin-top: 2px; }
/* Servers: its toolbar as in Users, within the dialog's margins */
/* Add server: the address wide, its SSH port beside it */
dialog.newsite .server-address-row { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
@media (max-width: 560px) { dialog.newsite .server-address-row { grid-template-columns: 1fr; } }

/* The terminal's scrollbar, thin and dim on its dark background (not the light default) */
.xterm .xterm-viewport { scrollbar-width: thin; scrollbar-color: rgba(139, 148, 158, .35) transparent; }
.xterm .xterm-viewport::-webkit-scrollbar { width: 10px; background: transparent; }
.xterm .xterm-viewport::-webkit-scrollbar-track { background: transparent; }
.xterm .xterm-viewport::-webkit-scrollbar-thumb { background: rgba(139, 148, 158, .3); border: 3px solid transparent; border-radius: 10px; background-clip: padding-box; }
.xterm .xterm-viewport::-webkit-scrollbar-thumb:hover { background-color: rgba(139, 148, 158, .55); }

/* Server tools: Update and Remove side by side on a .NET row; a note the SQL install dialog shows */
.tool-row .tool-row-actions { display: inline-flex; flex: none; gap: 6px; margin-left: auto; }
/* Remove server: the environments here that run on it, each opening its site */
.used-by-list { display: grid; gap: 6px; }
.used-by-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); color: var(--text); text-align: left; cursor: pointer; transition: border-color .15s; }
.used-by-item:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .55); }
.used-by-item .badge { flex: none; font-size: 10px; }
.used-by-text { display: grid; gap: 1px; min-width: 0; }
.used-by-text strong { font-size: 13.5px; }
.used-by-text small { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.used-by-open { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--blue); font-size: 12.5px; }
.used-by-open .ico { width: 12px; height: 12px; margin: 0; }
/* Nothing to update: said quietly, where the button would be */
.tool-uptodate { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; color: var(--green); font-size: 12px; font-weight: 600; }
.tool-uptodate .ico { width: 13px; height: 13px; margin: 0; }
/* What uses a tool: the sites, unfolded under its row (a .NET version) or its card (Node.js), and in the dialog that changes it */
.tool-usage-item { list-style: none; }
.tool-usage-item:has(> .tool-usage[hidden]) { display: none; }
/* A list under what it belongs to: indented, hung on a line in the tool's colour, its rows lighter than the row above */
.tool-usage { display: grid; gap: 2px; margin: 0; padding: 2px 0 2px 12px; border-left: 2px solid color-mix(in srgb, var(--tone, var(--muted)) 55%, transparent); list-style: none; }
.tool-usage-item > .tool-usage { margin: -2px 0 6px 22px; }
.tool-usage[hidden] { display: none; }
.tool-usage-row { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 5px 10px; border-radius: 6px; font-size: 12px; }
.tool-usage-row::before { content: ""; position: absolute; top: 50%; left: -12px; width: 8px; border-top: 2px solid color-mix(in srgb, var(--tone, var(--muted)) 55%, transparent); }
.tool-usage-row.misfit { background: rgba(248, 81, 73, .08); }
/* The button that unfolds it: an arrow that turns, and the tool's colour while open */
.tool-usage-toggle .ico { width: 12px; height: 12px; margin: 0 0 0 4px; transition: transform .15s; }
.tool-usage-toggle[aria-expanded="true"] { border-color: color-mix(in srgb, var(--tone) 60%, var(--line)); }
.tool-usage-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
.tool-usage-row .muted { flex: 1; min-width: 0; }
.tool-usage-fit { padding: 1px 8px; border-radius: 999px; color: var(--muted); background: rgba(255, 255, 255, .06); font-size: 11.5px; font-weight: 600; }
.tool-usage-fit.ok { color: var(--green); background: rgba(63, 185, 80, .12); }
.tool-usage-fit.bad { color: var(--red); background: rgba(248, 81, 73, .12); }
.tool-card > .tool-usage { margin-left: 70px; }
/* Samba: its users under its shares, and who may log in to a share */
.tool-card > .tool-subhead { margin: 4px 0 -4px 48px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
/* A share's dialog: a field with its label above, three ways its files are written side by side, its options as three
   cards in a row, and its users as chips that are on or off */
.samba-field { display: grid; gap: 8px; margin-top: 18px; }
.samba-field-label { color: var(--muted); font-size: 13px; }
.samba-segments { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .2); }
dialog label.samba-segment { position: relative; display: grid; gap: 2px; margin: 0; padding: 9px 12px; border-radius: 9px; color: var(--text); text-align: center; cursor: pointer; transition: background .15s, box-shadow .15s; }
.samba-segment input { position: absolute; opacity: 0; pointer-events: none; }
.samba-segment strong { font-size: 13.5px; font-weight: 600; }
.samba-segment small { color: var(--muted); font-size: 11.5px; }
.samba-segment:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .04); }
dialog label.samba-segment:has(input:checked) { background: rgba(88, 166, 255, .18); box-shadow: inset 0 0 0 1px rgba(88, 166, 255, .6), 0 1px 8px rgba(88, 166, 255, .15); }
.samba-segment:has(input:checked) strong { color: #cfe3ff; }
.samba-segment:has(input:focus-visible) { outline: 2px solid rgba(88, 166, 255, .55); outline-offset: 1px; }
.samba-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
/* Every option's icon quiet until it is chosen: No login is red only when on */
.samba-options .action-option:not(:has(input:checked)) .sync-option-icon { color: var(--muted); }
.samba-options .sync-option-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.samba-options .sync-option { margin: 0; padding: 10px 12px; }
.samba-options .sync-option-icon { width: 30px; height: 30px; }
.samba-options .sync-option-title { font-size: 13.5px; }
.samba-options .sync-option-sub { font-size: 11.5px; }
.samba-chips { display: flex; flex-wrap: wrap; gap: 8px; }
dialog label.samba-chip { position: relative; display: inline-flex; flex-direction: row; align-items: center; gap: 6px; margin: 0; padding: 6px 12px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel2); color: var(--text); font-size: 13px; cursor: pointer; transition: border-color .15s, background .15s; }
.samba-chip input { position: absolute; opacity: 0; pointer-events: none; }
.samba-chip .ico { display: none; width: 13px; height: 13px; margin: 0; }
.samba-chip:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .45); }
dialog label.samba-chip { padding: 6px 14px; }
dialog label.samba-chip:has(input:checked) { padding-left: 10px; border-color: rgba(88, 166, 255, .65); background: rgba(88, 166, 255, .16); color: #cfe3ff; }
dialog label.samba-chip:has(input:checked) .ico { display: block; color: var(--blue); }
.samba-chip:has(input:focus-visible) { outline: 2px solid rgba(88, 166, 255, .55); outline-offset: 1px; }
.samba-field .hint { margin: 0; font-size: 12px; }
/* The description after the chips: the same air above it as between the other fields */
.samba-field + label, .samba-options + label { margin-top: 18px; }
@media (max-width: 560px) { .samba-options, .samba-segments { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .samba-segment, .samba-chip { transition: none; } }
.tool-impact { display: grid; gap: 8px; margin-top: 12px; }
.tool-impact .tool-usage { max-height: 240px; overflow-y: auto; }
@media (max-width: 720px) { .tool-card > .tool-usage { margin-left: 22px; } }
.server-action-note { margin: 0 0 14px; padding: 10px 12px; border: 1px solid rgba(210, 153, 34, .4); border-radius: 9px; background: rgba(210, 153, 34, .08); color: #e3c27a; font-size: 13px; line-height: 1.5; }

/* Scheduled jobs (root's crontab) */
.crontab-dialog .crontab-form { margin: 12px 24px 0; }
.crontab-list { display: grid; align-content: start; gap: 8px; min-height: 80px; padding: 0; list-style: none; }
/* Icon, text and buttons in a row of their own, the log under them: opening the log does not move them */
.crontab-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.crontab-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(57, 197, 187, .12); color: #39c5bb; }
.crontab-icon svg { width: 18px; height: 18px; }
.crontab-text { display: grid; flex: 1; gap: 4px; min-width: 0; }
.crontab-when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.crontab-when strong { font-size: 14px; }
.crontab-when code { color: var(--muted); font-size: 12px; }
.crontab-label { overflow-wrap: anywhere; }
.crontab-schedule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.crontab-schedule .ico { width: 13px; height: 13px; }
.crontab-schedule code { font-size: 12px; opacity: .8; }
.crontab-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 20px; }
.crontab-log-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.crontab-clear-log { padding: 4px 10px; font-size: 12px; }
.crontab-clear-log .ico { width: 14px; height: 14px; }
.crontab-command { overflow: hidden; color: var(--text); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
.crontab-actions { display: flex; flex: none; gap: 6px; }
/* Email alerts: their card above the jobs, and under each job whether it is watched and how its last run ended */
.crontab-alerts { margin: 0 0 12px; }
.crontab-alerts[hidden] { display: none; }
.crontab-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.crontab-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px;
	background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 18px; overflow-wrap: anywhere; }
.crontab-chip .ico { flex: none; width: 12px; height: 12px; margin: 0; }
.crontab-chip.watched { border-color: rgba(219, 97, 162, .4); background: rgba(219, 97, 162, .1); color: #f0a6cc; }
.crontab-chip.ok { border-color: rgba(63, 185, 80, .35); background: rgba(63, 185, 80, .08); color: #7ee787; }
.crontab-chip.warn { border-color: rgba(210, 153, 34, .4); background: rgba(210, 153, 34, .1); color: #e3b341; }
.crontab-chip.bad { border-color: rgba(248, 81, 73, .45); background: rgba(248, 81, 73, .1); color: #ff7b72; }
/* The alerts' dialog: each job a card to choose, what is a failure for it under it once chosen */
.cron-watch-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.cron-watch-job { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
.cron-watch-job > .sync-option { min-width: 0; }
.cron-watch-job .sync-option-sub { overflow: hidden; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.cron-watch-job .sync-option-text { min-width: 0; }
.cron-watch-job:has(.cron-watch-conditions:not([hidden])) > .sync-option { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.cron-watch-conditions { display: grid; gap: 8px; padding: 12px 14px 12px 60px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, .14); }
.cron-watch-conditions[hidden] { display: none; }
.cron-watch-conditions .crontab-field-hint { margin: 0; }
.cron-watch-title { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cron-watch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cron-watch-chips .cron-watch-chip:not([aria-pressed="true"]) { border-color: var(--line); background: var(--panel2); }
.cron-watch-chip:disabled { opacity: .4; cursor: not-allowed; }

.cron-watch-long { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; margin: 0 !important; color: var(--muted); font-size: 12px; }
.cron-watch-long[hidden] { display: none !important; }
.cron-watch-long input { width: 72px; height: 28px; padding: 0 8px; }
@media (max-width: 560px) { .cron-watch-conditions { padding-left: 14px; } .cron-watch-chip { flex: 1 1 calc(50% - 6px); justify-content: center; } }
/* A job's log, unfolded under it */
.crontab-log { display: grid; grid-column: 1 / -1; gap: 10px; min-width: 0; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.crontab-log p { margin: 0; }
.crontab-log-summary { display: flex; flex-wrap: wrap; gap: 8px; }
.crontab-log-runs { font-size: 12px; }
.crontab-log-block { display: grid; gap: 6px; min-width: 0; }
.crontab-log-block h4 { margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.crontab-log pre { max-height: 260px; margin: 0; padding: 10px 12px; overflow: auto; border-radius: 8px; background: rgba(0, 0, 0, .3); font: 12px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.crontab-log-errors { color: #ff9b94; border-left: 2px solid var(--red); }
/* Log while its log is read: the button says so, the row keeps still */
.crontab-log-button.loading { cursor: progress; opacity: .7; }
.crontab-runs { display: grid; gap: 8px; max-height: 420px; padding: 8px; overflow: auto; border-radius: 8px; background: rgba(0, 0, 0, .3); }
.crontab-run-out { min-width: 0; border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 8px; background: var(--panel2); }
.crontab-run-out.bad { border-left-color: var(--red); }
.crontab-run-out header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 6px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; }
.crontab-run-out header .ico { width: 13px; height: 13px; }
.crontab-run-tag { padding: 1px 7px; border-radius: 999px; background: color-mix(in srgb, var(--blue) 18%, transparent); color: var(--blue); font-size: 11px; }
.crontab-run-tag.bad { background: color-mix(in srgb, var(--red) 18%, transparent); color: #ff9b94; }
.crontab-log .crontab-run-out pre { max-height: none; padding: 8px 12px; overflow-x: auto; border-radius: 0 0 8px 8px; background: transparent; }
.crontab-log-button[aria-expanded="true"] { border-color: var(--blue); }
.crontab-actions button { padding: 4px 10px; font-size: 12.5px; }
dialog.newsite form.crontab-form { display: grid; gap: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.crontab-form-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.crontab-form-icon { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--purple); background: color-mix(in srgb, var(--purple) 16%, transparent); border: 1px solid color-mix(in srgb, var(--purple) 35%, transparent); }
.crontab-form-icon .ico { width: 20px; height: 20px; }
.crontab-form-head > div { display: grid; gap: 2px; min-width: 0; }
.crontab-form h3 { margin: 0; font-size: 16px; }
.crontab-form-head p { margin: 0; overflow: hidden; color: var(--muted); font-size: 12.5px; text-overflow: ellipsis; white-space: nowrap; }
.crontab-field { display: grid; align-content: start; gap: 8px; min-width: 0; }
.crontab-form label, .crontab-field-title { display: grid; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.crontab-field-hint { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; opacity: .85; }
.crontab-form input, .crontab-form textarea { font-weight: 400; }
.crontab-form label { margin: 0; }
/* While a job is edited the form fills the window, with its own Cancel and Save at the bottom */
dialog.newsite.crontab-dialog.editing form.crontab-form { margin: 0; padding: 20px 24px 24px; border: 0; border-radius: 0; background: transparent; }
/* The command and what belongs to it (Browse…, where its output goes) in one box */
.crontab-composer { display: grid; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel2); transition: border-color .15s; }
.crontab-composer:focus-within { border-color: rgba(88, 166, 255, .55); }
.crontab-form .crontab-composer textarea.mono { display: block; width: 100%; min-height: 44px; padding: 12px 14px; overflow: hidden; border: 0; border-radius: 10px 10px 0 0;
	background: transparent; line-height: 1.55; resize: none; overflow-wrap: anywhere; }
.crontab-composer-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 8px; border-top: 1px solid var(--line);
	border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, .18); }
.crontab-composer-bar .crontab-browse-button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; font-size: 13px; color: var(--text); }
.crontab-composer-bar .crontab-browse-button .ico { width: 15px; height: 15px; margin: 0; color: var(--blue); }
.crontab-output { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: rgba(0, 0, 0, .2); }
.crontab-output-title { padding: 0 8px 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.crontab-seg { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid transparent; border-radius: 7px; background: transparent;
	color: var(--muted); font-size: 12.5px; }
.crontab-seg .ico { width: 14px; height: 14px; margin: 0; }
.crontab-seg:hover:not(:where(:disabled, .disabled, .off)) { color: var(--text); background: var(--hover); }
.crontab-seg[aria-pressed="true"] { color: var(--text); border-color: color-mix(in srgb, var(--green) 45%, var(--line)); background: color-mix(in srgb, var(--green) 14%, var(--panel2)); }
.crontab-seg[aria-pressed="true"] .ico { color: var(--green); }
.crontab-output .crontab-seg:last-child[aria-pressed="true"] { border-color: color-mix(in srgb, var(--muted) 45%, var(--line)); background: var(--hover); }
.crontab-output .crontab-seg:last-child[aria-pressed="true"] .ico { color: var(--muted); }
.crontab-form :is(input, textarea).mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; color: var(--text); }
.crontab-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.crontab-presets .chip { padding: 5px 12px; border-radius: 999px; font-size: 12px; }
.crontab-said { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.crontab-said.known { color: #8ff0b4; font-weight: 500; }
.crontab-said .ico { flex: none; width: 13px; height: 13px; }
/* Browse… beside the command, and the folders it unfolds under it */
.crontab-browse { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .18); }
.crontab-browse[hidden] { display: none; }
.crontab-browse-head { display: flex; align-items: center; gap: 8px; }
.crontab-browse-path { flex: 1; min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.crontab-browse-list { display: grid; gap: 2px; max-height: 260px; margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.crontab-browse-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; text-align: left; }
.crontab-browse-item .ico { flex: none; width: 15px; height: 15px; margin: 0; color: var(--muted); }
.crontab-browse-item span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crontab-browse-empty { padding: 6px 8px; font-size: 12.5px; }
.crontab-form-actions { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.crontab-form-actions .primary { display: inline-flex; align-items: center; gap: 8px; }
.crontab-form-actions .primary .ico { width: 16px; height: 16px; margin: 0; }
.crontab-form-actions .cancel-link { margin-right: auto; }
/* In its dialog the job's Cancel and Save stay at the bottom while the form scrolls, as every dialog's buttons do */
#dlg-crontab-form .crontab-form-actions { position: sticky; bottom: 0; z-index: 3; margin: 0 -24px -24px; padding: 16px 24px 20px; background: var(--panel); }
@media (max-width: 720px) { .crontab-fields { grid-template-columns: minmax(0, 1fr); } dialog.newsite form.crontab-form { padding: 18px 16px; } .crontab-actions { grid-column: 1 / -1; margin-top: 10px; justify-content: flex-end; } }

/* A tool that cannot be used yet (the backups without SQL Server and the SQL tools): dimmed, its buttons still there */
.tool-card.unavailable .tool-head, .tool-card.unavailable .tool-rows { opacity: .5; }
.tool-card.unavailable .tool-text { color: var(--muted); }

/* Server tools: one column of groups, each with its buttons beside its state and its rows the full width */
#server-tools-list { grid-template-columns: minmax(0, 1fr); gap: 10px; }
#server-tools-list .tool-card { gap: 10px; padding: 12px 14px; }
#server-tools-list .tool-head { flex-wrap: wrap; row-gap: 8px; }
/* Buttons moved up into a card's head stand level with its state, wherever the card is (not pushed down as at its foot) */
.tool-head .tool-actions { flex: none; align-items: center; margin: 0; padding: 0; }
#server-tools-list .tool-text { margin-left: 48px; }
#server-tools-list .tool-rows { margin-left: 48px; }
#server-tools-list .tool-row { padding: 8px 12px; }
#server-tools-list .tool-row .tool-row-detail { white-space: normal; }
#server-tools-list .tool-row .tool-row-action.tool-danger { color: var(--red); border-color: rgba(248, 81, 73, .35); }
@media (max-width: 720px) {
	#server-tools-list .tool-text, #server-tools-list .tool-rows { margin-left: 0; }
	/* A phone: the icon, the name and the state on the first line; the buttons on a line of their own below, sharing
	   its width as the buttons of an environment's card do */
	#server-tools-list .tool-head .tool-title { flex: 1 1 0; }
	#server-tools-list .tool-head .tool-title small { white-space: normal; }
	#server-tools-list .tool-head .tool-actions { flex: 1 1 100%; }
	#server-tools-list .tool-head .tool-actions > button { flex: 1 1 auto; }
	/* A row: its name (and buttons) on the first line, what it says on the whole line below, so every row reads alike */
	#server-tools-list .tool-row { flex-wrap: wrap; row-gap: 4px; }
	#server-tools-list .tool-row > :is(.tool-row-detail, code) { order: 1; flex-basis: 100%; }
	#server-tools-list .tool-row:has(> .dot) > :is(.tool-row-detail, code) { padding-left: 17px; } /* under the name: the dot's 7px and the gap */
	#server-tools-list .tool-row > :is(button, .tool-row-actions) { margin-left: auto; }
}

/* Import from Windows: a row per folder in the share, and a filter above them */
.windows-list-button { justify-content: flex-end; }
.windows-list-button button { width: 100%; }
.windows-filter { display: grid; gap: 8px; margin-bottom: 10px; }
.windows-filter-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.windows-filter-kind { padding: 3px 10px; border-radius: 999px; font-size: 12px; background: rgba(255, 255, 255, .03); }
.windows-filter-kind.on { border-color: var(--blue); background: rgba(88, 166, 255, .15); color: var(--text); }
.windows-filter-kind .count { color: var(--muted); }
.windows-sites { display: flex; flex-direction: column; gap: 6px; max-height: 50vh; overflow-y: auto; margin-bottom: 12px; padding: 2px 4px 4px 0; }
.windows-site { position: relative; flex: none; display: grid; grid-template-columns: 22px minmax(0, 1fr) minmax(0, 240px); align-items: center; gap: 14px;
	box-sizing: border-box; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02);
	cursor: pointer; transition: border-color .15s, background .15s; }
.windows-site:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled))) { border-color: rgba(88, 166, 255, .45); }
.windows-site.chosen { border-color: var(--blue); background: rgba(88, 166, 255, .07); }
.windows-site[hidden] { display: none; }
.windows-site.off { opacity: .55; cursor: default; }
/* A checkbox of its own: rounded, blue with a white tick when chosen */
dialog .windows-check { appearance: none; -webkit-appearance: none; display: grid; place-content: center; width: 22px; height: 22px; min-height: 0;
	margin: 0; padding: 0; border: 1.5px solid var(--muted); border-radius: 7px; background: transparent; cursor: pointer; transition: background .15s, border-color .15s; }
dialog .windows-check::before { content: ""; width: 11px; height: 11px; transform: scale(0); transition: transform .12s;
	clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%); background: #fff; }
dialog .windows-check:checked { border-color: var(--blue); background: var(--blue); }
dialog .windows-check:checked::before { transform: scale(1); }
dialog .windows-check:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
dialog .windows-check:disabled { border-color: var(--line); cursor: default; }
.windows-site-text { display: grid; gap: 5px; min-width: 0; }
.windows-site-text strong { overflow-wrap: anywhere; font-size: 14px; }
.windows-site-meta { color: var(--muted); font-size: 12px; }
.windows-site-kind { position: absolute; top: 7px; right: 10px; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 600;
	letter-spacing: .02em; white-space: nowrap; background: rgba(255, 255, 255, .06); color: var(--muted); pointer-events: none; }
.windows-site { padding-top: 14px; }
.windows-site-kind.project { background: rgba(88, 166, 255, .15); color: var(--blue); }
.windows-site-kind.build { background: rgba(163, 113, 247, .15); color: var(--purple); }
.windows-site-kind.html { background: rgba(63, 185, 80, .15); color: var(--green); }
.windows-site-kind.framework { background: rgba(210, 153, 34, .15); color: #d29922; }
.windows-site-fields { display: grid; gap: 6px; cursor: default; }
dialog .windows-field { display: grid; gap: 2px; margin: 0; font-size: 11px; color: var(--muted); }
dialog .windows-field input, dialog .windows-field select { width: 100%; min-height: 0; padding: 5px 8px; font-size: 13px; }
@media (max-width: 700px) { .windows-site { grid-template-columns: 22px minmax(0, 1fr); } .windows-site-fields { grid-column: 2; } }
.windows-imported { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 10px 12px;
	border: 1px solid var(--line); border-radius: 10px; }
.windows-imported-text { display: grid; gap: 2px; font-size: 13px; min-width: 0; }

.windows-list { width: 100%; margin: 4px 0 6px; }
#windows-login-fields[hidden], .server-kind-fields[hidden] { display: none; }
.tool-icon.os-icon svg { width: 22px; height: 22px; }

/* A server chosen from Servers: its fields are hidden */
#prod-remote-fields[hidden], #prod-windows-fields[hidden], #copy-server-fields[hidden] { display: none; }
.server-picker-row { margin-bottom: 10px; }
/* The server picker at the top of Add environment, under the kind of server */
.server-pick { margin: 14px 0 22px; }
.server-pick[hidden], .ns-section[hidden] { display: none; }
.server-pick .server-picker-row { margin-bottom: 0; }
/* Copy and Import from Windows: the alias and its explanation come before the list, with room under them */
#form-windows-move .hint + .ns-section, #windows-sites-section > label + .ns-section { margin-top: 18px; }
/* What is copied or imported and not taken over yet: at the top of the dialog, before anything is chosen */
#windows-move-moved, #windows-imported { margin: 0 0 16px; }
/* A long step (a share's path) is cut with an ellipsis, never scrolled sideways */
.processes-menu { overflow-x: hidden; }
.menu .process-item { box-sizing: border-box; min-width: 0; max-width: 100%; }
.process-text { flex: 1 1 auto; overflow: hidden; }

/* Multi action: grouped choices, each with its icon, a clear chosen state */
#dlg-multi #multi-selection { margin: 4px 0 4px; padding: 10px; max-height: 112px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.02); }
#dlg-multi .multi-group { margin-top: 18px; }
#dlg-multi .multi-group[hidden] { display: none; }
#dlg-multi .multi-group-head { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
#dlg-multi .multi-group-head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#dlg-multi .multi-group-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #c4a5ff; background: rgba(163,113,247,.14); }
#dlg-multi .multi-group-icon .ico { width: 13px; height: 13px; }
#dlg-multi .multi-choices { margin-bottom: 0; gap: 10px; }
#dlg-multi .multi-choice { flex-direction: row; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 12px;
	background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.01)); transition: border-color .15s, background .15s, box-shadow .15s, transform .15s; }
#dlg-multi .multi-choice:hover:not(:where(:disabled, .disabled, .off, :has(input:disabled))) { border-color: rgba(163,113,247,.55); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.25); }
#dlg-multi .multi-choice .tc-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; color: #c4a5ff;
	background: rgba(163,113,247,.14); transition: background .15s, color .15s; }
#dlg-multi .multi-choice .tc-icon .ico { width: 17px; height: 17px; }
#dlg-multi .multi-choice .tc-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
#dlg-multi .multi-choice .tc-sub { line-height: 1.4; }
#dlg-multi .multi-choice:has(input:checked) { border-color: #a371f7; box-shadow: 0 0 0 1px #a371f7 inset, 0 8px 24px rgba(163,113,247,.18);
	background: linear-gradient(135deg, rgba(163,113,247,.2), rgba(88,101,242,.12)); }
#dlg-multi .multi-choice:has(input:checked) .tc-icon { color: #fff; background: linear-gradient(135deg, #8b5cf6, #6c7bff); }
#dlg-multi .multi-choice:has(input:checked)::after { content: ""; position: absolute; top: 10px; right: 10px; width: 16px; height: 16px; border-radius: 50%;
	background: #a371f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
#dlg-multi #multi-action-description:not(:empty) { margin-top: 16px; padding: 10px 12px; border-radius: 10px; color: var(--text); background: rgba(163,113,247,.08); border: 1px solid rgba(163,113,247,.25); }
#dlg-multi .multi-footnote { margin-top: 12px; }
@media (max-width: 640px) { #dlg-multi .multi-choice { padding: 12px; } }
/* Nothing looks chosen before a choice is made: no focus ring (the arrow keys move the choice, which shows) */
#dlg-multi:focus, #dlg-multi .multi-choice, #dlg-multi .multi-choice:focus-within { outline: none; }
#dlg-multi .multi-choice { gap: 11px; padding: 12px 14px; }
#dlg-multi .multi-choice .tc-icon { width: 30px; height: 30px; border-radius: 9px; }
#dlg-multi .multi-choice .tc-icon .ico { width: 16px; height: 16px; }
#dlg-multi .multi-choice .tc-title { font-size: 14px; }
#dlg-multi .multi-choice .tc-sub { font-size: 12px; color: var(--muted); }
#dlg-multi .multi-group { margin-top: 16px; }
/* Four in a row: the icon above the text, so the text has the card's width */
#dlg-multi .multi-choices-4 .multi-choice { flex-direction: column; gap: 9px; }
@media (max-width: 640px) { #dlg-multi .multi-choices-4 .multi-choice { flex-direction: row; } }

/* While the page loads its sites: a spinner, not an empty background */
.page-loading { position: fixed; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
	color: var(--muted); font-size: 14px; pointer-events: none; animation: page-loading-in .2s ease .15s both; }
.page-loading[hidden] { display: none; }
.page-loading p { margin: 0; letter-spacing: .02em; }
.page-loading-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(163,113,247,.2); border-top-color: #a371f7; animation: update-spin .8s linear infinite; }
@keyframes page-loading-in { from { opacity: 0; } to { opacity: 1; } }

/* Publish from your machine: the steps and the script to copy */
.local-publish-steps { margin: 4px 0 12px; padding-left: 20px; line-height: 1.6; color: var(--text); font-size: 13px; }
/* The note under the script: room between them */
#local-publish-note { margin: 12px 0 0; }
.local-publish-steps code, #local-publish-note code { font-size: 12px; padding: 1px 5px; border-radius: 5px; background: rgba(255,255,255,.06); }
.local-publish-script { max-height: 320px; margin: 0; padding: 12px 14px; overflow: auto; border: 1px solid var(--line); border-radius: 10px;
	background: #0b0d12; color: #d6deeb; font: 12px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre; user-select: all; }
/* New site: Published from an external source, across the C# options under the environment */
#csharp-options .external-choice { grid-column: 1 / -1; margin: 2px 0 10px; }
/* Publish from your machine: the publish token, easy to find above the script */
.local-publish-token { display: grid; gap: 10px; margin: 0 0 12px; padding: 12px 14px; border: 1px solid rgba(163,113,247,.3); border-radius: 12px; background: rgba(163,113,247,.07); }
.local-publish-token-head { display: flex; gap: 12px; align-items: flex-start; }
.local-publish-token-head > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.local-publish-token-head small { color: var(--muted); font-size: 12px; line-height: 1.45; }
.local-publish-token-icon { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: #fff; background: linear-gradient(135deg, #8b5cf6, #6c7bff); }
.local-publish-token-icon .ico { width: 16px; height: 16px; }
.local-publish-token-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.local-publish-token-save { max-height: none; white-space: pre-wrap; word-break: break-all; }
.local-publish-token > button { justify-self: start; }
/* Publish from your machine: which computer, and which access */
.local-publish-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2px 0 12px; }
.lp-choice { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lp-choice .choice-label { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.lp-choice label { flex: 1; display: flex; }
.lp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.lp-choice span:not(.choice-label) { flex: 1; text-align: center; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; font-size: 13px; color: var(--muted); background: rgba(255,255,255,.02); }
.lp-choice input:checked + span { color: var(--text); border-color: #a371f7; background: rgba(163,113,247,.15); box-shadow: 0 0 0 1px #a371f7 inset; }
.local-publish-token[hidden] { display: none; }
@media (max-width: 560px) { .local-publish-choices { grid-template-columns: 1fr; } }
.detail-title .detail-title-action[hidden] { display: none; }
/* Publish from your machine: as wide as the dialog, never wider. The script scrolls in its own box */
#dlg-local-publish { width: min(820px, 94vw); overflow-x: hidden; }
#dlg-local-publish form { min-width: 0; }
/* The script wraps its long lines: no sideways scrolling, and the header and footer keep the dialog's full width */
#dlg-local-publish .local-publish-script { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: hidden; overflow-y: auto; }
#dlg-local-publish .local-publish-choices { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* A user's: only their computer to choose, the publish token is theirs */
/* A user has one choice, their computer: on one line with its label, as wide as its two buttons, no empty half beside it */
#dlg-local-publish .local-publish-choices.single { grid-template-columns: minmax(0, 1fr); }
#dlg-local-publish .local-publish-choices.single .lp-choice { gap: 6px 8px; }
#dlg-local-publish .local-publish-choices.single .choice-label { flex: none; margin-right: 6px; font-size: 13px; }
#dlg-local-publish .local-publish-choices.single .lp-choice label { flex: 0 0 auto; }
#dlg-local-publish .local-publish-choices.single .lp-choice span:not(.choice-label) { min-width: 120px; padding: 6px 16px; }
#dlg-local-publish .lp-choice[hidden] { display: none; }
#dlg-local-publish .local-publish-steps code { overflow-wrap: anywhere; }
/* A password in a dialog: a plain text field holding only dots, the password kept by app.js (secretField), so no browser
   takes it for a password to save. The dots a little apart, as a password field shows them. */
input.masked-password { letter-spacing: .12em; }
/* A new site's temporary address: an option card, and a chip for each domain when there is more than one */
.temp-address { display: grid; gap: 10px; margin: 2px 0 12px; }
.temp-address[hidden], .temp-pick[hidden] { display: none; }
.temp-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-left: 4px; }
.temp-pick-label { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.temp-domain-chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.temp-domain-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(0, 0, 0, .15); color: var(--text); font-size: 12.5px; }
.temp-domain-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.temp-domain-chip .ico { flex: none; width: 13px; height: 13px; margin: 0; color: #39c5cf; }
.temp-domain-chip:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(57, 197, 207, .55); }
.temp-domain-chip.active { border-color: rgba(57, 197, 207, .7); background: rgba(57, 197, 207, .14); }
/* A binding made for a temporary address: shown, not typed in */
input.made-binding, input.made-binding:focus { border-style: dashed; border-color: rgba(57, 197, 207, .45); background: rgba(57, 197, 207, .05); color: #9fe3e8; cursor: default; }
/* Set up with HTTPS: only where it can be had, when the binding points here */
.https-choice[hidden] { display: none; }
/* A picture or PDF from the file browser: as large as the window allows, on a quiet ground */
.preview-body { display: grid; flex: 1; min-height: 0; place-items: center; overflow: auto; border: 1px solid var(--line); border-radius: 8px;
	background: repeating-conic-gradient(rgba(255, 255, 255, .035) 0 25%, transparent 0 50%) 0 0 / 20px 20px, rgba(0, 0, 0, .25); }
.preview-image { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.preview-pdf { width: 100%; height: 100%; border: 0; background: #fff; }
#preview-download .ico { width: 14px; height: 14px; margin: 0; }

/* Settings, Convert: a site with its environments under it, each with its database, what it kept, and Convert… */
#server-convert-list, #server-export-list { grid-template-columns: minmax(0, 1fr); }
#server-convert-list > .tool-card, #server-export-list > .tool-card { grid-column: 1 / -1; min-height: 0; }
/* Export Site's rows have Convert DB's first columns: the folder, the environment, the database and what it is */
#server-export-list .convert-entry { grid-template-columns: minmax(160px, 1fr) 140px 172px minmax(0, 1.6fr); }
.convert-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin: 4px 0 0; padding: 0; list-style: none; }
.convert-group { min-width: 0; }
.convert-group { padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .12); }
.convert-group-head { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px 4px 10px; }
.convert-group-head .convert-site-link { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.convert-group-icon { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: rgba(163, 113, 247, .14); color: var(--purple); }
.convert-group-icon .ico { width: 14px; height: 14px; margin: 0; }
.convert-rows { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
/* An environment's row and what it kept share one set of columns (subgrid): every database badge stands in one line */
.convert-entry, .convert-card > .convert-kept { display: grid; grid-template-columns: minmax(160px, 1fr) 140px 172px minmax(0, 1.6fr) 120px 132px; column-gap: 14px; }
.convert-entry { border-radius: 8px; background: rgba(0, 0, 0, .18); }
.convert-row { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-width: 0; padding: 8px 12px; font-size: 12.5px; }
.convert-unit { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); }
.convert-unit > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The bent arrow of an environment under its main site */
.convert-unit > .ico { flex: none; width: 14px; height: 14px; margin: 0 0 4px 4px; color: var(--muted); }
/* The server an environment runs on, when it is another one (or the main site's, for one managed from there): a quiet
   chip after its name, as the Kept chip is grey */
.convert-unit-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.convert-unit-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convert-where { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border: 1px solid var(--line);
	border-radius: 999px; background: var(--hover); color: var(--muted); font-size: 11px; font-weight: 600; }
.convert-where .ico { width: 12px; height: 12px; margin: 0; }
/* A kept database whose site is gone: the site it came from, under its name */
.convert-kept-name:has(.convert-kept-site) { flex-wrap: wrap; row-gap: 2px; }
.convert-kept-site { flex-basis: 100%; padding-left: 36px; color: var(--muted); font-size: 11.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis;
	white-space: nowrap; }
/* The filter beside Convert's heading, as the SQL Server page's beside its tabs */
#server-pane-convert .server-pane-head, #server-pane-export .server-pane-head { display: flex; align-items: center; gap: 16px; }
.convert-filter-box { flex: 0 1 340px; margin-left: auto; }
.convert-filter-box[hidden] { display: none; }
.convert-filter-box:has(.sql-filter:not(:placeholder-shown)) .search-clear { display: grid; }
@media (max-width: 800px) { #server-pane-convert .server-pane-head, #server-pane-export .server-pane-head { flex-wrap: wrap; } .convert-filter-box { flex: 1 1 100%; margin-left: 0; } }
/* The environment's badge centred in its column, as small as its word; the engine's dot and name from the start of its own */
.convert-env { display: flex; justify-content: center; min-width: 0; }
.convert-engine { display: flex; justify-content: flex-start; min-width: 0; }
/* Light: an environment's badge as small as its word; the engine a dot in its colour and its name as text */
.convert-env .badge { white-space: nowrap; }
.convert-engine .badge { display: inline-flex; align-items: center; gap: 7px; padding: 0; background: none; box-shadow: none; color: var(--text);
	font-size: 12.5px; font-weight: 500; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.convert-engine .badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.convert-engine .badge.engine-sqlite::before { background: var(--green); }
.convert-engine .badge.engine-mssql::before { background: #ff7b72; }
.convert-engine .badge.engine-postgres::before { background: #79b8ff; }
.convert-detail { min-width: 0; overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Why a site cannot be converted: read in full, over two lines at most, under the Kept and Convert… columns */
.convert-row > .convert-note.wide { grid-column: 5 / 7; }
/* Add connection… in Convert…'s place: as wide as its words, at the row's end, with the Kept chip before it */
.convert-end { grid-column: 5 / 7; display: flex; align-items: center; justify-content: flex-end; gap: 10px; min-width: 0; }
.convert-end > .convert-add { flex: none; white-space: nowrap; }
.convert-note { justify-self: end; max-width: 320px; overflow: hidden; color: var(--text); opacity: .75; font-size: 12px; line-height: 1.35;
	text-align: right; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.convert-row > button:last-child { justify-self: stretch; justify-content: center; }
.convert-kept-toggle { justify-self: center; }
/* Kept: a grey chip that unfolds what the environment ran on before. Grey, as the colours in these rows are the
   environments' and the engines' */
.convert-kept-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px;
	background: var(--hover); color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; }
.convert-kept-toggle .ico { width: 13px; height: 13px; margin: 0; }
.convert-kept-toggle .ico:last-child { transition: transform .15s; }
.convert-kept-toggle[aria-expanded="true"] .ico:last-child { transform: rotate(90deg); }
.convert-kept-toggle:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--muted); color: var(--text); }
.convert-kept-toggle[aria-expanded="true"] { color: var(--text); }
/* Kept: a box of its own under the environment's row, with its heading; its rows still in the row's columns (subgrid) */
.convert-kept { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; row-gap: 4px; margin: 0 12px 12px; padding: 10px; list-style: none;
	border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); box-shadow: 0 1px 0 rgba(255, 255, 255, .03) inset; }
.convert-kept-head { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 2px 4px 8px; margin-bottom: 4px;
	border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.convert-kept-head .ico { flex: none; width: 14px; height: 14px; margin: 0; }
.convert-kept-head strong { color: var(--text); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.convert-kept-head small { min-width: 0; overflow: hidden; margin-left: 4px; text-overflow: ellipsis; white-space: nowrap; }
.convert-kept-count { padding: 0 7px; border-radius: 999px; background: var(--hover); color: var(--text); font-size: 11px; font-weight: 700; line-height: 18px; }
.convert-kept[hidden] { display: none; }
.convert-kept-line { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; min-width: 0;
	padding: 6px 2px; border: 1px solid transparent; border-radius: 8px; font-size: 12.5px; }
.convert-kept-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--hover); color: var(--muted); }
.convert-kept-icon .ico { width: 14px; height: 14px; margin: 0; }
.convert-kept-line > .convert-kept-name { grid-column: 1; }
.convert-kept-line > .convert-env { grid-column: 2; }
.convert-kept-line > .convert-engine { grid-column: 3; }
.convert-kept-line > .convert-detail { grid-column: 4; }
.convert-kept-line > .convert-kept-actions { grid-column: 5 / 7; }
.convert-kept-name { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 600; }
.convert-kept-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.convert-kept-icon { flex: none; }
/* Where the site started: an outlined badge with a flag, in the text's own colour: no environment's colour, and not
   filled as an environment's badge is */
.badge.convert-original { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; color: var(--text);
	box-shadow: 0 0 0 1px var(--muted) inset; }
.badge.convert-original .ico { width: 12px; height: 12px; margin: 0; }
.convert-kept-actions { display: flex; justify-content: flex-end; gap: 8px; }
/* On its own card (its site is gone): the box has room round its lines, as a site's rows have, and Delete is as wide as
   Convert… above it, in the same place */
.convert-card > .convert-kept { margin: 0; padding: 8px 10px; }
.convert-card > .convert-kept > .convert-kept-line { padding: 6px 2px; }
.convert-card > .convert-kept .convert-kept-actions > button { min-width: 132px; justify-content: center; }
/* From and To at the top of Convert…: one panel, a side each with a tile in its engine's colour, an arrow between */
.convert-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 12px; margin: 0 0 20px; padding: 12px 14px;
	border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); }
.convert-side { display: flex; align-items: center; gap: 12px; min-width: 0; }
.convert-side-text { display: grid; gap: 2px; min-width: 0; }
.convert-side strong { overflow: hidden; color: var(--text); font-size: 13.5px; text-overflow: ellipsis; white-space: nowrap; }
/* Its engine and where, a line each (both sides alike), cut with … when narrow: the whole is its title */
.convert-side-sub { display: grid; gap: 1px; min-width: 0; }
.convert-side-sub[hidden] { display: none; }
.convert-side small { overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.convert-side.pending strong { color: var(--muted); font-weight: 500; }
.convert-tile { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border: 1px dashed var(--line); border-radius: 9px; color: var(--muted); }
.convert-tile .ico { width: 16px; height: 16px; margin: 0; }
.convert-tile.engine-sqlite { border: 0; background: rgba(63, 185, 80, .14); color: var(--green); }
.convert-tile.engine-mssql { border: 0; background: rgba(204, 41, 39, .16); color: #ff7b72; }
.convert-tile.engine-postgres { border: 0; background: rgba(51, 103, 145, .28); color: #79b8ff; }
.convert-arrow { display: grid; place-items: center; color: var(--muted); }
.convert-arrow .ico { width: 16px; height: 16px; margin: 0; }
@media (max-width: 560px) {
	.convert-flow { grid-template-columns: minmax(0, 1fr); }
	.convert-arrow { justify-self: start; margin-left: 9px; transform: rotate(90deg); }
}
/* The hint under the login stands apart from the notes; the last note and an empty error add no space above the buttons */
dialog.newsite .convert-form .hint { margin: 4px 0 16px; }
.convert-form > .server-action-note:not(:has(~ .server-action-note)) { margin-bottom: 0; }
.convert-form > .error:empty { display: none; }
.convert-form > .error { margin: 12px 0 0; }
/* The server to convert to (or read from) first: Servers' cards, each with its engine */
.convert-server-choice { margin: 0 0 16px; }
.convert-server-choice[hidden] { display: none; }
.convert-servers { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.convert-servers .server-card { padding: 12px 14px; }
.convert-servers .server-card.only { pointer-events: none; }
.server-card-icon.engine-mssql { background: rgba(204, 41, 39, .16); color: #ff7b72; }
.server-card-icon.engine-postgres { background: rgba(51, 103, 145, .28); color: #79b8ff; }
@media (max-width: 860px) {
	.convert-entry, .convert-card > .convert-kept { grid-template-columns: minmax(0, 1fr) auto auto; }
	#server-export-list .convert-entry { grid-template-columns: minmax(0, 1fr) auto; }
	.convert-detail, .convert-note, .convert-row > .convert-note.wide { grid-column: 1 / -1; justify-self: start; max-width: none; white-space: normal; text-align: left; }
	.convert-end { grid-column: 1 / -1; justify-content: stretch; }
	.convert-end > .convert-add { flex: 1; justify-content: center; }
	.convert-row > button:last-child, .convert-kept-toggle { grid-column: 1 / -1; justify-self: stretch; justify-content: center; }
	.convert-row > span:empty { display: none; }
	.convert-kept-line > .convert-kept-name { grid-column: 1; }
	.convert-kept-line > .convert-env { grid-column: 2; }
	.convert-kept-line > .convert-engine { grid-column: 3; }
	.convert-kept-line > .convert-detail, .convert-kept-line > .convert-kept-actions { grid-column: 1 / -1; }
	.convert-kept-actions > button { flex: 1; justify-content: center; }
	/* A site's head: its name and kind on the first line, its exports and Export… on one of their own, sharing it */
	.convert-group-head { flex-wrap: wrap; row-gap: 10px; }
	.convert-group-head .convert-site-link { flex: 0 1 auto; }
	.convert-group-head .export-site-action { flex: 1 1 100%; margin-left: 0; }
	.convert-group-head .export-site-action > button { flex: 1 1 0; justify-content: center; }
	.convert-card .tool-title small { white-space: normal; }
}
/* Health: the server now (a tile per measure), its charts over the last day or week, and its OS updates */
#server-health-list { grid-template-columns: minmax(0, 1fr); }
#server-health-list > .tool-card { grid-column: 1 / -1; min-height: 0; }
.health-range { display: flex; }
@media (max-width: 800px) { .health-range { flex: 1; } .health-range .crontab-seg { flex: 1; justify-content: center; } }
/* The tiles share the card's width, however many disks there are */
.health-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.health-tile { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .14); }
.health-tile-title { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; color: var(--muted); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.health-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.health-tile-value { font-size: 22px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.health-tile small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.health-bar { position: relative; height: 6px; border-radius: 999px; background: var(--hover); }
.health-bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.health-bar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; border-radius: 1px; background: var(--text); opacity: .55; }
/* Two charts a row; one left over on its own takes the whole row */
.health-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.health-chart-grid > .health-chart:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 560px) { .health-chart-grid { grid-template-columns: minmax(0, 1fr); } .health-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.health-chart { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .14); }
.health-chart figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; font-size: 13px; }
.health-chart-now { margin-left: auto; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.health-plot-wrap { position: relative; height: 120px; touch-action: pan-y; cursor: crosshair; }
.health-plot { display: block; width: 100%; height: 100%; overflow: visible; }
.health-grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .6; }
.health-area { opacity: .14; }
.health-line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.health-limit { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 5 4; vector-effect: non-scaling-stroke; }
.health-limit-label { position: absolute; right: 0; transform: translateY(-120%); padding: 0 4px; border-radius: 4px; background: var(--panel); color: var(--muted); font-size: 10.5px; pointer-events: none; }
.health-cross { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted); opacity: .7; pointer-events: none; }
.health-cross[hidden], .health-tip[hidden] { display: none; }
.health-cross > span { position: absolute; left: -4px; width: 9px; height: 9px; margin-top: -4.5px; border: 2px solid var(--panel); border-radius: 50%; }
.health-tip { position: absolute; top: -6px; z-index: 2; display: grid; gap: 1px; transform: translate(8px, -100%); padding: 5px 9px; border: 1px solid var(--line); border-radius: 8px;
	background: var(--panel2); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); font-size: 12px; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.health-tip.end { transform: translate(calc(-100% - 8px), -100%); }
.health-tip span { color: var(--muted); font-size: 11px; }
.health-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.health-update-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.health-packages { display: grid; gap: 4px; max-height: 280px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.health-packages[hidden] { display: none; }
.health-packages li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 5px 10px; border-radius: 7px; background: rgba(0, 0, 0, .14); font-size: 12.5px; }
.health-packages code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.health-packages li > span:not(.crontab-chip) { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The health alerts' dialog: the three limits side by side, the updates as a segmented control */
.health-limit-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 560px) { .health-limit-fields { grid-template-columns: minmax(0, 1fr); } }
.health-limit-field { display: grid; gap: 4px; min-width: 0; }
.health-limit-field small { margin: 0; }
.health-percent { display: flex; align-items: center; gap: 6px; }
.health-percent input { min-width: 0; }
.health-percent span { color: var(--muted); }
.health-updates-choice { display: flex; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 560px) { .health-updates-choice .crontab-seg { flex: 1 1 auto; justify-content: center; } }
#server-updates-list .convert-kept-toggle { align-self: flex-start; }
#server-updates-list .tool-card-wide { grid-column: 1 / -1; }
#server-health-list .tool-title small { white-space: normal; }
.os-update-scope { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 8px; }
@media (max-width: 560px) { .os-update-scope { grid-template-columns: minmax(0, 1fr); } }
.os-update-scope .type-card.disabled { opacity: .45; pointer-events: none; }
.os-update-restarts { display: grid; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.os-update-restarts li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .14); font-size: 13px; }
.os-update-restarts .ico { flex: none; width: 14px; height: 14px; margin: 0; color: var(--muted); }
.health-tile.past { border-color: rgba(248, 81, 73, .55); background: rgba(248, 81, 73, .06); }
.health-open { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.health-open li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 12px; border: 1px solid rgba(248, 81, 73, .35); border-radius: 9px; background: rgba(248, 81, 73, .07); font-size: 13px; }
.health-open .ico { flex: none; width: 15px; height: 15px; margin: 0; color: #ff7b72; }
.health-open li > span { color: var(--text); opacity: .85; }
.health-open small { margin-left: auto; color: var(--muted); font-size: 12px; }
.health-open button { padding: 3px 10px; font-size: 12px; }
/* Needs attention, above the cards: what is wrong now, each with a way straight to it */
.site-attention { margin: 0 0 14px; border: 1px solid rgba(248, 81, 73, .35); border-radius: 12px; overflow: hidden;
	background: linear-gradient(110deg, rgba(248, 81, 73, .07), transparent 60%), var(--panel); }
.site-attention[hidden] { display: none; }
.site-attention-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: #ff7b72; }
.site-attention-head .ico { width: 16px; height: 16px; margin: 0; }
.site-attention-head strong { color: var(--text); font-size: 14px; }
.site-attention-count { padding: 0 7px; border-radius: 999px; background: rgba(248, 81, 73, .18); font-size: 11.5px; font-weight: 700; }
.site-attention-row { display: grid; grid-template-columns: 10px minmax(120px, 220px) auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.site-attention-row:last-child { border-bottom: 0; }
.site-attention-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--red); }
.site-attention-row.warn .site-attention-dot { background: #d29922; }
.site-attention-site, .site-attention-why { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-attention-row .badge { justify-self: start; font-size: 10px; }
.site-attention-row small { color: var(--muted); white-space: nowrap; }
.site-attention-actions { display: flex; justify-content: flex-end; gap: 6px; }
.site-attention-row button { padding: 4px 11px; font-size: 12.5px; }
.site-attention-more { margin: 0; padding: 8px 14px; color: var(--muted); font-size: 12px; }
@media (max-width: 700px) {
	.site-attention-row { grid-template-columns: 10px minmax(0, 1fr) auto auto; row-gap: 4px; }
	.site-attention-row .badge { grid-row: 1; grid-column: 3; }
	.site-attention-actions { grid-row: 1; grid-column: 4; }
	.site-attention-why { grid-column: 2 / -1; white-space: normal; }
	.site-attention-row small { grid-column: 2 / -1; }
}
/* A card in the grid of environments is never wider than its column */
.envs > .env, .env-targets > .env { min-width: 0; }
/* A fact with an action of its own at its right, as a link in the button's own icon and colour (Backoffice login…
   beside the backoffice) */
.meta dd.meta-with-action { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
button.meta-action, button.meta-action[data-tone] { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 0; border: 0;
	background: none; color: var(--tone, var(--blue)); font: inherit; font-size: 13px; font-weight: 600; box-shadow: none; }
button.meta-action .ico { width: 14px; height: 14px; margin: 0; }
button.meta-action:hover:not(:where(:disabled, .disabled, .off)), button.meta-action[data-tone]:hover:not(:where(:disabled, .disabled, .off)) { background: none; border: 0; text-decoration: underline; }
/* Apache's config test, as its result: a line that says it, then what apache2ctl said, coloured */
.configtest-result { --t: var(--green); display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--t) 40%, var(--line));
	border-radius: 10px; background: color-mix(in srgb, var(--t) 9%, var(--panel2)); }
.configtest-result.warn { --t: #d29922; } .configtest-result.bad { --t: var(--red); }
.configtest-result strong { display: block; color: var(--text); font-size: 14px; }
.configtest-result small { color: var(--muted); font-size: 12.5px; }
.configtest-icon { display: grid; flex: none; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--t) 18%, transparent); color: var(--t); }
.configtest-icon .ico { width: 18px; height: 18px; margin: 0; }
.configtest-lines { max-height: 300px; margin: 0; padding: 10px 12px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; background: rgba(0, 0, 0, .25);
	color: var(--muted); font: 12px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.configtest-lines .ok { color: var(--green); } .configtest-lines .warn { color: #e3b341; } .configtest-lines .bad { color: #ff7b72; }
/* A row whose only button waits for its check (Fix permissions) is not shown meanwhile */
.env .actions.only-hidden { display: none; }
/* Usage: the server's own limit on a site or database, a small link beside its name */
/* Set limit…: a button of its own in blue, found at a glance; a limit set, in the limits' amber; above the site's limit, red */
.usage-limit-link { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 3px 11px; border: 1px solid rgba(88, 166, 255, .5); border-radius: 999px;
	background: rgba(88, 166, 255, .08); color: #79b8ff; font: inherit; font-size: 12px; font-weight: 600; line-height: 1.4; cursor: pointer; transition: background .15s, border-color .15s; }
.usage-limit-link.share-out { border-color: rgba(163, 113, 247, .5); background: rgba(163, 113, 247, .1); color: #c9a7ff; }
.usage-limit-link.share-out:hover:not(:where(:disabled, .disabled, .off)) { border-color: #c9a7ff; background: rgba(163, 113, 247, .22); color: #e0ccff; }
.share-out-how { margin-bottom: 14px; }
.share-out-rows { display: grid; gap: 6px; }
.share-out-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 80px; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid var(--line);
	border-radius: 10px; background: rgba(255, 255, 255, .02); font-size: 13px; }
.share-out-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.share-out-name strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.share-out-uses { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.share-out-share { color: #f0c35a; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .share-out-row { grid-template-columns: minmax(0, 1fr) auto; } .share-out-uses { display: none; } }
.usage-limit-link .ico { width: 13px; height: 13px; margin: 0; }
.usage-limit-link.set { border-color: rgba(210, 153, 34, .65); background: rgba(210, 153, 34, .18); color: #f0c35a; }
.usage-limit-link.set.unreachable { border-color: rgba(248, 81, 73, .6); color: var(--red); background: rgba(248, 81, 73, .12); }
.usage-limit-link:hover:not(:where(:disabled, .disabled, .off)) { border-color: #79b8ff; background: rgba(88, 166, 255, .2); color: #a8d1ff; }
.usage-limit-link.set:hover:not(:where(:disabled, .disabled, .off)) { border-color: #e3b341; background: rgba(210, 153, 34, .28); color: #ffd772; }
.usage-limit-link.set.unreachable:hover:not(:where(:disabled, .disabled, .off)) { border-color: var(--red); background: rgba(248, 81, 73, .2); color: #ff8a82; }

/* ---- DNS (phase 14): the domains on the left, the chosen one's records on the right in the SQL page's table */
.dns-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 16px; align-items: start; }
.dns-zones-panel { position: sticky; top: 84px; display: grid; gap: 12px; padding: 14px; }
.dns-zones-head { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.dns-zones-head .tool-icon { width: 32px; height: 32px; border-radius: 9px; }
.dns-zones-head .tool-icon .ico { width: 16px; height: 16px; }
.dns-zones-panel .targets-search-box { flex: none; min-width: 0; margin-left: 0; }
/* The list scrolls on its own: at its end, the page does not scroll with it */
.dns-zones { display: grid; gap: 2px; max-height: calc(100vh - 250px); overflow-y: auto; overscroll-behavior: contain; margin: 0 -4px; padding: 0 4px; }
.dns-zone { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px;
	background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.dns-zone .ico { flex: none; width: 15px; height: 15px; margin: 0; color: var(--muted); }
.dns-zone span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-zone:hover:not(:where(:disabled, .disabled, .off)) { background: var(--hover); }
.dns-zone.active { border-color: rgba(240, 136, 62, .5); background: rgba(240, 136, 62, .12); }
.dns-zone.active .ico { color: #ffb37a; }
.dns-zone-status { margin-left: auto; color: #e3b341; font-size: 11px; }
.dns-zones-none { padding: 8px 10px; margin: 0; }
.dns-title { display: grid; gap: 2px; min-width: 0; }
.dns-panel .sql-databases-actions { flex-wrap: nowrap; align-items: center; }
.dns-panel .sql-databases-actions .targets-search-box { flex: 0 1 300px; min-width: 160px; margin-left: 0; }
.dns-panel .sql-databases-actions > button { flex: none; white-space: nowrap; }
.dns-layout > .dns-zones-panel, .dns-layout > .dns-panel { margin-top: 18px; }
@media (max-width: 1100px) { .dns-panel .sql-databases-actions { flex-wrap: wrap; } }
.dns-title h3 { margin: 0; overflow-wrap: anywhere; }
.dns-title small { font-size: 12.5px; }
@media (max-width: 900px) {
	.dns-layout { grid-template-columns: minmax(0, 1fr); }
	.dns-zones-panel { position: static; }
	.dns-zones { max-height: 240px; }
}
.dns-icon { color: #ffb37a; background: rgba(240, 136, 62, .14); }
/* The domain's name large at the head, its counts as chips under it */
.dns-title h2 { margin: 0; font-size: 22px; overflow-wrap: anywhere; }
.dns-title-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.cf-part-bar > .dns-title-chips { margin-top: 0; }
/* A group per type, framed as the sites' parts on Usage: its head, then a line per record */
.dns-group { margin: 12px 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .025); overflow: hidden; }
.dns-group[hidden] { display: none; }
.dns-group-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.dns-group-head strong { font-size: 14px; }
.dns-group-head small { color: var(--muted); font-size: 12.5px; }
.dns-group-count { margin-left: auto; padding: 1px 9px; border-radius: 999px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12px; font-weight: 600; }
.dns-record { display: grid; grid-template-columns: minmax(140px, 1fr) 18px minmax(0, 2fr) 230px 140px; align-items: center; gap: 12px; padding: 10px 16px; }
.dns-record[hidden] { display: none; }
.dns-record + .dns-record { border-top: 1px solid rgba(255, 255, 255, .05); }
.dns-record:hover:not(:where(:disabled, .disabled, .off)) { background: rgba(255, 255, 255, .025); }
.dns-record-name { display: grid; min-width: 0; }
.dns-record-name strong, .dns-record-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dns-record-name strong { font-size: 14px; }
.dns-record-name small { color: var(--muted); font-size: 11.5px; }
.dns-record-arrow { display: inline-flex; color: var(--muted); }
.dns-record-arrow { justify-content: center; font-size: 15px; }
.dns-record-content { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 5px 10px; border-radius: 8px;
	background: rgba(0, 0, 0, .25); color: #c9d1d9; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.dns-record-chips { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 6px; }
.dns-record-actions { display: flex; justify-content: flex-end; }
.dns-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: rgba(139, 148, 158, .12); color: #c9d1d9;
	font-size: 12px; font-weight: 600; white-space: nowrap; }
.dns-chip .ico { width: 13px; height: 13px; margin: 0; color: var(--muted); }
.dns-chip.proxied { background: rgba(240, 136, 62, .16); color: #ffb37a; }
.dns-chip.proxied .ico { color: #ffb37a; }
/* Proxied as a toggle: a chip that reacts to the pointer as a button */
button.dns-chip.dns-proxy-toggle { border: 1px solid transparent; font-family: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
button.dns-chip.dns-proxy-toggle:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(139, 148, 158, .45); }
button.dns-chip.dns-proxy-toggle.proxied:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(240, 136, 62, .55); background: rgba(240, 136, 62, .22); }
/* Busy: the icon a spinner in the button's own colour, the button still and not reacting to the pointer */
.btn-spinner { display: inline-block; flex: none; width: 13px; height: 13px; box-sizing: border-box; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: activity-spin .7s linear infinite; }
@media (prefers-reduced-motion: reduce) { .btn-spinner { animation-duration: 2s; } }
button.busy { cursor: progress; pointer-events: none; }
button.busy:disabled { opacity: 1; }
button.dns-chip.dns-proxy-toggle:focus-visible { outline: 2px solid #f0883e; outline-offset: 2px; }
.dns-none { padding: 18px 4px; }
@media (max-width: 900px) {
	.dns-record { grid-template-columns: minmax(0, 1fr) auto; }
	.dns-record-arrow { display: none; }
	.dns-record-content { grid-column: 1 / -1; grid-row: 2; }
	.dns-record-chips { grid-column: 1; justify-content: flex-start; }
	.dns-record-actions { grid-row: 1; grid-column: 2; min-width: 0; }
}
.badge.dns-type { display: inline-block; min-width: 52px; text-align: center; font-size: 11px; background: rgba(139, 148, 158, .16); color: #c9d1d9; }
.badge.dns-type-a, .badge.dns-type-aaaa { background: rgba(88, 166, 255, .16); color: #79b8ff; }
.badge.dns-type-cname { background: rgba(163, 113, 247, .16); color: #c9a7ff; }
.badge.dns-type-mx { background: rgba(57, 197, 187, .16); color: #5fd4cb; }
.badge.dns-type-txt { background: rgba(210, 153, 34, .16); color: #e3b341; }
.badge.dns-type-ns, .badge.dns-type-ptr { background: rgba(240, 136, 62, .16); color: #ffb37a; }
.dns-proxy-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; background: rgba(139, 148, 158, .12); color: var(--muted); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.dns-proxy-chip.on { background: rgba(240, 136, 62, .16); color: #ffb37a; }
.dns-proxy-chip .ico, .dns-locked .ico { width: 13px; height: 13px; margin: 0; }
.dns-locked { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; white-space: nowrap; }
@media (max-width: 860px) {
	.dns-panel .dns-table th:nth-child(4), .dns-panel .dns-table td:nth-child(4) { display: none; }
	.dns-content code { max-width: 220px; }
}
/* The record dialog in two columns, as Settings: the types as a list on the left, the chosen one's fields on the right
   with what it is at their head. A record changed has its type alone: no list */
.dns-dialog { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 22px; align-items: start; }
.dns-dialog.one-type { grid-template-columns: minmax(0, 1fr); }
.dns-dialog.one-type .dns-type-list, .dns-dialog.one-type .dns-type-head { display: none; }
.dns-type-list { display: grid; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, .18); }
#form-dialog dialog label.dns-type-item, dialog .dns-type-list label.dns-type-item { position: relative; display: flex; flex-direction: row; justify-content: flex-start; text-align: left; align-items: center; gap: 10px; margin: 0; padding: 8px 10px; border: 1px solid transparent; border-radius: 9px;
	color: var(--muted); font-size: 13px; cursor: pointer; transition: background .15s, color .15s; }
.dns-type-item input { position: absolute; opacity: 0; pointer-events: none; }
dialog .dns-type-list label.dns-type-item:hover:not(:where(:disabled, .disabled, .off)) { background: var(--hover); color: var(--text); }
dialog .dns-type-list label.dns-type-item:not(:has(input:checked)) { background: transparent; }
dialog .dns-type-list label.dns-type-item:has(input:checked) { border-color: rgba(88, 166, 255, .45); background: rgba(88, 166, 255, .12); color: var(--text); font-weight: 600; }
dialog .dns-type-list label.dns-type-item:has(input:focus-visible) { outline: 2px solid rgba(88, 166, 255, .55); }
.dns-type-item .badge.dns-type { min-width: 50px; }
.dns-dialog-main { display: grid; gap: 14px; min-width: 0; }
.dns-dialog.one-type .dns-dialog-main { gap: 12px; }
.dns-type-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
	background: linear-gradient(135deg, rgba(88, 166, 255, .08), transparent 60%), rgba(255, 255, 255, .02); }
.dns-type-head .badge.dns-type { min-width: 58px; padding: 5px 8px; font-size: 12px; }
.dns-type-head-text { display: grid; gap: 2px; }
.dns-type-head-text strong { color: var(--text); font-size: 15px; }
.dns-type-head-text small { color: var(--muted); font-size: 12.5px; }
.dns-field { display: grid; gap: 6px; min-width: 0; }
.dns-field .hint { margin: 0; }
.dns-name-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
#form-dialog .dns-dialog input:not([type=radio]):not([type=checkbox]) { box-sizing: border-box; height: 42px; }
.dns-field > .pselect { width: 100%; }
.dns-type-fields { display: grid; gap: 14px; }
/* Fields side by side start at the same line, also when one has a hint under it and the other not */
.dns-grid-narrow { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.dns-grid-four { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 2fr); align-items: start; }
.dns-ttl-select .pselect-trigger, .dns-caa-tag .pselect-trigger { width: 100%; height: 42px; }
.dns-name-input { display: flex; align-items: stretch; }
.dns-name-input input { flex: 1; min-width: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.dns-name-suffix { display: inline-flex; align-items: center; max-width: 55%; padding: 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
	border: 1px solid var(--line); border-left: 0; border-radius: 0 8px 8px 0; background: rgba(255, 255, 255, .03); color: var(--muted); font-size: 13px; }
#form-dialog textarea[name=dns_text] { resize: none; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.dns-proxy-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 0; padding: 11px 14px;
	border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); cursor: pointer; }
.dns-proxy-row[hidden] { display: none; }
.dns-proxy-row:has(input:checked) { border-color: rgba(240, 136, 62, .5); background: rgba(240, 136, 62, .08); }
dialog .dns-proxy-row .switch:checked { border-color: #f0883e; background: #f0883e; }
.dns-proxy-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: #ffb37a; background: rgba(240, 136, 62, .14); }
.dns-proxy-icon .ico { width: 16px; height: 16px; margin: 0; }
.dns-proxy-text { display: grid; gap: 2px; }
.dns-proxy-text strong { color: var(--text); font-size: 13px; }
.dns-proxy-text small { color: var(--muted); font-size: 12px; }
@media (max-width: 640px) {
	.dns-dialog { grid-template-columns: minmax(0, 1fr); }
	.dns-type-list { display: flex; overflow-x: auto; overscroll-behavior: contain; }
	dialog .dns-type-list label.dns-type-item { flex: none; }
	.dns-type-item .dns-type-title { display: none; }
	.dns-name-row, .dns-grid-narrow, .dns-grid-four { grid-template-columns: minmax(0, 1fr); }
}
/* Settings, DNS: how Harbor logs in to Cloudflare, and its fields */
.dns-auth-fields { display: grid; gap: 8px; margin-top: 14px; }
.dns-auth-fields[hidden] { display: none; }

/* Cloudflare's parts of a domain: tabs as the SQL page's, a bar over a part's list, and each setting a card with its
   choices as segments */
.cf-tabs { margin: 4px 0 16px; }
.cf-tabs[hidden] { display: none; }
.cf-tabs .sql-tab .ico { width: 15px; height: 15px; margin: 0; }
.cf-part[hidden] { display: none; }
.cf-part { display: grid; gap: 12px; }
.cf-part-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; }
.cf-part-bar .targets-search-box { flex: 0 1 320px; min-width: 160px; margin-left: 0; }
.cf-part-bar > button { margin-left: auto; }
#cf-part-dns > #dns-records { min-width: 0; }
.cf-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px 24px; padding: 14px 16px;
	border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .025); }
.cf-setting-text { display: grid; gap: 3px; min-width: 0; }
.cf-setting-text strong { font-size: 14px; }
.cf-setting-text small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.cf-segments { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, .22); }
.cf-segment { padding: 6px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.cf-segment:hover:not(:where(:disabled, .disabled, .off)) { color: var(--text); background: rgba(255, 255, 255, .06); }
.cf-segment.active { background: rgba(240, 136, 62, .18); color: #ffb37a; box-shadow: inset 0 0 0 1px rgba(240, 136, 62, .55); }
.cf-segment.danger.active { background: rgba(248, 81, 73, .18); color: #ff8a82; box-shadow: inset 0 0 0 1px rgba(248, 81, 73, .6); }
.cf-segment:disabled { opacity: .5; cursor: default; }
.cf-purge { grid-template-columns: minmax(0, 1fr); }
.cf-purge-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; }
.cf-purge-body textarea { resize: none; height: 84px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.cf-purge-actions { display: grid; gap: 8px; }
.cf-rule.off { opacity: .6; }
.cf-option { margin-top: 0; grid-template-columns: minmax(0, 1fr) auto; }
.cf-part-chips { margin-bottom: 4px; }
@media (max-width: 900px) {
	.cf-setting, .cf-purge-body { grid-template-columns: minmax(0, 1fr); }
}
.cf-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
/* One option shown takes the row; none shown, no row */
.cf-options:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
.cf-options:not(:has(> :not([hidden]))) { display: none; }
@media (max-width: 640px) { .cf-options { grid-template-columns: minmax(0, 1fr); } }
.add-first-card.cf-first { width: 100%; min-height: 190px; padding: 32px 24px; gap: 14px; }
/* Rules: each kind a section of its own, built the same, a line between them */
.cf-rule-section { display: grid; gap: 12px; min-width: 0; }
.cf-rule-section + .cf-rule-section { margin-top: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.add-first-card.cf-first.small { min-height: 150px; padding: 24px; }
/* A low card in a row, where there is more than one kind on the page with none yet: the plus, then what it adds */
.add-first-card.row { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 0; padding: 12px 16px; text-align: left; }
.add-first-card.row .add-first-icon { flex: none; width: 34px; height: 34px; border-radius: 10px; }
.add-first-card.row .add-first-icon .ico { width: 16px; height: 16px; }
.add-first-card.row .add-first-text { justify-items: start; gap: 2px; max-width: none; }
.add-first-card.row .add-first-text strong { font-size: 13.5px; }
.cf-used { margin-left: 10px; vertical-align: 2px; font-size: 11px; }
.cf-used.full { background: rgba(210, 153, 34, .16); color: #e3b341; }
.cf-full { margin: 0; font-size: 12.5px; }
/* A rule's match as cards (wildcard, every request, own expression): three side by side, one under another on a phone */
.type-cards.cf-match { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .type-cards.cf-match { grid-template-columns: minmax(0, 1fr); } }
#form-dialog .dns-field textarea { resize: none; min-height: 76px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
/* How * and $1 / ${1} work: a line of what they do, and an address it matches with each * a part of its own colour,
   and where it goes with the same parts */
.cf-wild { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid rgba(88, 166, 255, .25); border-radius: 10px; background: rgba(88, 166, 255, .06); }
.cf-wild[hidden] { display: none; }
.cf-wild-text { display: flex; align-items: flex-start; gap: 9px; color: #c9d1d9; font-size: 12.5px; line-height: 1.5; }
.cf-wild-text .ico { flex: none; width: 15px; height: 15px; margin: 2px 0 0; color: var(--blue); }
.cf-wild-example { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0; }
.cf-wild-example small { flex: 1 1 100%; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cf-wild-example code { min-width: 0; padding: 4px 8px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: var(--text); font-size: 12.5px; overflow-wrap: anywhere; }
.cf-wild-arrow { color: var(--muted); }
.cf-wild-part { padding: 0 3px; border-radius: 4px; color: #0d1117; font-weight: 600; }
.cf-wild-part.p0 { background: #79c0ff; } .cf-wild-part.p1 { background: #d2a8ff; } .cf-wild-part.p2 { background: #7ee787; } .cf-wild-part.p3 { background: #ffa657; }
.cf-own-target { margin: 0; overflow-wrap: anywhere; }
/* A page rule's settings: a card each with its name, what it does, its value and a remove; added from a list */
.cf-page-actions { display: grid; gap: 10px; }
.cf-page-actions:empty { display: none; }
.cf-page-action { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); }
.cf-page-action-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cf-page-remove { display: grid; place-items: center; flex: none; width: 28px; height: 28px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; }
.cf-page-remove .ico { width: 13px; height: 13px; margin: 0; }
.cf-page-remove:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(248, 81, 73, .5); color: var(--red); }
.cf-page-action .cf-segments { justify-self: start; flex-wrap: wrap; }
.cf-page-action > .pselect { max-width: 260px; }
.cf-page-novalue { font-size: 12.5px; }
.cf-forward { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
@media (max-width: 640px) { .cf-forward { grid-template-columns: minmax(0, 1fr); } }
/* A page rule converted: what it becomes as cards, its new rule's settings or target in code under each */
.cf-convert-to { justify-self: start; max-width: 100%; padding: 5px 9px; border-radius: 6px; background: rgba(0, 0, 0, .25); color: var(--text); font-size: 12.5px; overflow-wrap: anywhere; }
.cf-convert-note { margin: 0; }
.cf-page-add { display: grid; gap: 10px; }
.cf-page-add:empty { display: none; }
.cf-page-add .pselect { width: 100%; }
.cf-page-add .hint { margin: 0; }
/* A setting's icon in its colour: in its card, its quick pick, and the rule's on/off */
.cf-page-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; color: var(--blue); background: rgba(88, 166, 255, .12); }
.cf-page-icon .ico { width: 17px; height: 17px; margin: 0; }
.cf-page-icon.small { width: 30px; height: 30px; border-radius: 8px; }
.cf-page-icon.small .ico { width: 15px; height: 15px; }
.cf-page-icon.tone-green { color: var(--green); background: rgba(63, 185, 80, .13); }
.cf-page-icon.tone-orange { color: #ffb37a; background: rgba(240, 136, 62, .14); }
.cf-page-icon.tone-purple { color: #d2a8ff; background: rgba(163, 113, 247, .15); }
.cf-page-icon.tone-red { color: #ff8a82; background: rgba(248, 81, 73, .13); }
.cf-page-action-head .cf-setting-text { flex: 1; }
/* An empty rule's quick picks: two side by side, one under another on a phone */
.cf-page-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cf-page-quick-card { display: flex; align-items: flex-start; gap: 12px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
	background: rgba(255, 255, 255, .02); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cf-page-quick-card:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(88, 166, 255, .55); background: rgba(88, 166, 255, .05); }
.cf-page-quick-card:focus-visible { outline: none; border-color: rgba(88, 166, 255, .7); }
dialog .cf-page-quick-card { white-space: normal; }
.cf-page-quick-card .cf-setting-text { flex: 1; }
.cf-page-quick-card .cf-setting-text strong { font-size: 13.5px; }
.cf-page-quick-card .cf-setting-text small { font-size: 12px; }
@media (max-width: 640px) { .cf-page-quick { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .cf-page-quick-card { transition: none; } }
/* The rule on or off: a low row with a switch, under a line of its own */
dialog.newsite label.cf-page-on { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px; margin: 6px 0 0; padding: 12px 14px;
	border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .02); color: inherit; font-size: inherit; text-align: left; cursor: pointer;
	transition: border-color .15s, background .15s; }
.cf-page-on .switch { flex: none; }
.cf-page-on .cf-setting-text { flex: 1; }
.cf-page-on .cf-setting-text strong { font-size: 13.5px; }
.cf-page-on .cf-setting-text small { font-size: 12px; }
.cf-page-on:has(.switch:checked) { border-color: rgba(63, 185, 80, .4); background: rgba(63, 185, 80, .06); }
.cf-page-on:not(:has(.switch:checked)) .cf-page-icon { color: var(--muted); background: rgba(255, 255, 255, .06); }
dialog .cf-page-on .switch:checked { border-color: var(--green); background: var(--green); }
@media (prefers-reduced-motion: reduce) { .cf-page-on { transition: none; } }
.cf-group-head { margin-top: 6px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cf-setting.off .cf-setting-text { opacity: .6; }
.dns-chip.on { background: rgba(63, 185, 80, .16); color: #56d364; }
.dns-chip.converted { background: rgba(163, 113, 247, .16); color: #d2a8ff; }
.cf-none { margin: 0; }
/* Analytics: the totals as Health's tiles, and a bar a day */
.cf-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
/* What the traffic was made of: cards two by two, a line a name with its bar */
.cf-breakdown { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cf-breakdown-card { grid-template-columns: minmax(0, 1fr); align-content: start; }
.cf-breakdown-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cf-lines { display: grid; gap: 7px; }
.cf-line { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr) 76px 52px; align-items: center; gap: 12px; min-height: 22px; font-size: 13px; }
.cf-line-name { display: flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--text); }
.cf-line-name > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.cf-line-track { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.cf-line-fill { display: block; height: 100%; border-radius: 3px; }
.cf-line-value { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text); text-align: right; white-space: nowrap; }
.cf-line-detail { overflow: hidden; color: var(--muted); font-size: 11.5px; text-align: right; white-space: nowrap; text-overflow: ellipsis; }
.cf-country-code { flex: none; min-width: 26px; padding: 1px 5px; border-radius: 5px; background: rgba(88, 166, 255, .12); color: #9ecbff; font: 600 10.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.cf-kinds-bar { display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; }
.cf-kinds-bar > span { min-width: 3px; }
.cf-kinds { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--muted); }
.cf-kind { display: inline-flex; align-items: center; gap: 6px; }
.cf-kind b { color: var(--text); font-variant-numeric: tabular-nums; }
.cf-kind-dot { width: 9px; height: 9px; border-radius: 3px; }
.cf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; }
.cf-code { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px; font-size: 12.5px; }
.cf-code-number { padding: 1px 0; border: 1px solid; border-radius: 6px; font: 600 11.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.cf-code-name { overflow: hidden; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.cf-code-count { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.cf-protocols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cf-protocols > div { display: grid; gap: 8px; align-content: start; }
.cf-protocols-head { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cf-lines-none { margin: 0; font-size: 13px; }
/* Narrower than that, the cards one under another: names and numbers kept whole */
@media (max-width: 1240px) { .cf-breakdown { grid-template-columns: minmax(0, 1fr); } }
/* The period a segmented row: beside the heading, and on a phone a whole row under it, never one button a line */
.keep-alive-interval.cf-period { flex-wrap: nowrap; margin-top: 0; }
@media (max-width: 640px) { .cf-part-bar:has(> .cf-period) { flex-direction: column; align-items: stretch; } .keep-alive-interval.cf-period { width: 100%; } .keep-alive-interval.cf-period button { flex: 1; } }
@media (max-width: 1080px) { .cf-protocols { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .cf-codes { grid-template-columns: minmax(0, 1fr); } .cf-line { grid-template-columns: minmax(0, 1fr) auto 52px; row-gap: 5px; } .cf-line-track { grid-column: 1 / -1; grid-row: 2; } }
.cf-chart { grid-template-columns: minmax(0, 1fr); }
.cf-bars { display: flex; align-items: flex-end; gap: 6px; height: 180px; padding-top: 8px; }
.cf-bar { flex: 1; display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; min-width: 0; text-align: center; }
.cf-bar-total { position: relative; align-self: end; display: flex; align-items: flex-end; min-height: 2px; border-radius: 5px 5px 2px 2px; background: rgba(88, 166, 255, .55); overflow: hidden; }
.cf-bar-cached { display: block; width: 100%; background: #f0883e; opacity: .9; }
.cf-bar small { color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; }
.cf-bars:has(.cf-bar:nth-child(15)) .cf-bar small { visibility: hidden; }
.cf-bars:has(.cf-bar:nth-child(15)) .cf-bar:nth-child(5n + 1) small { visibility: visible; }
.cf-key { display: inline-block; width: 10px; height: 10px; margin: 0 5px 0 10px; border-radius: 3px; vertical-align: -1px; }
.cf-key.total { margin-left: 0; background: rgba(88, 166, 255, .55); }
.cf-key.cached { background: #f0883e; }
@media (max-width: 1100px) { .cf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* An administrator's lock of a record for users: an icon button before Edit, red when locked */
.dns-record-actions { gap: 8px; align-items: center; }
.dns-lock-toggle { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line); border-radius: 9px; background: rgba(255, 255, 255, .03); color: var(--muted); cursor: pointer; }
.dns-lock-toggle .ico { width: 15px; height: 15px; margin: 0; }
.dns-lock-toggle:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(255, 255, 255, .2); color: var(--text); }
.dns-lock-toggle.locked { border-color: rgba(248, 81, 73, .5); background: rgba(248, 81, 73, .1); color: #ff8a82; }
/* Cloudflare on a phone: the tabs a row that scrolls on its own (never the page), the bar's filter and button on one
   line, a group's head without its line of explanation, and a record's chips side by side */
@media (max-width: 640px) {
	.cf-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; max-width: 100%; }
	.cf-tabs::-webkit-scrollbar { display: none; }
	.cf-tabs button { flex: none; }
	.cf-tabs button .ico { display: none; }
	.cf-part-bar { flex-wrap: wrap; }
	.cf-part-bar .targets-search-box { flex: 1 1 0; min-width: 0; }
	/* DNS's counts on a line of their own under its filter and New record */
	.cf-part-bar > .dns-title-chips { order: 3; flex-basis: 100%; }
	.cf-part-bar > button { flex: none; }
	.dns-group-head small { display: none; }
	.dns-group-head { padding: 10px 12px; }
	.dns-record { padding: 10px 12px; }
	.dns-record-chips { flex-direction: row; flex-wrap: wrap; }
	.dns-panel { padding: 14px; }
	.dns-title h2 { font-size: 20px; }
	.view-switch button { padding-left: 9px; padding-right: 9px; }
	.view-switch button:not(#switch-server) .ico { display: none; }
}
/* Cloudflare's welcome, with no domain chosen: as Harbor's other empty pages, the account's counts, and the domains
   opened last as cards */
.cf-welcome { display: flex; flex-direction: column; align-items: center; padding: 48px 20px 40px; text-align: center; }
.cf-welcome-icon { border-color: rgba(240, 136, 62, .35); color: #ffb37a; background: linear-gradient(135deg, rgba(240, 136, 62, .18), rgba(163, 113, 247, .16)); box-shadow: 0 0 60px rgba(240, 136, 62, .12); }
.cf-welcome h2 { margin: 0 0 8px; font-size: 26px; }
.cf-welcome > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.cf-welcome-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 18px; }
.cf-recent-head { margin: 32px 0 12px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.cf-recent-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 760px; }
.cf-recent { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px;
	background: rgba(255, 255, 255, .03); color: var(--text); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.cf-recent:hover:not(:where(:disabled, .disabled, .off)) { border-color: rgba(240, 136, 62, .5); background: rgba(240, 136, 62, .08); }
.cf-recent-icon { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 8px; color: #ffb37a; background: rgba(240, 136, 62, .14); }
.cf-recent-icon .ico, .cf-recent > .ico { width: 15px; height: 15px; margin: 0; }
.cf-recent > .ico { margin-left: auto; color: var(--muted); transform: rotate(90deg); }
.cf-recent-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cf-part-bar[hidden], .dns-panel-head[hidden] { display: none; }
@media (max-width: 900px) { .cf-recent-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cf-recent-list { grid-template-columns: minmax(0, 1fr); } }
