:root { color-scheme: dark; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0f1419; color: #e6edf3;
}
main { max-width: 1040px; margin: 0 auto; padding: 2rem 1.25rem; }
h1 { font-size: 1.5rem; margin: 0 0 1.5rem; }
h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8b98a5; margin: 0 0 .5rem; }
#login { max-width: 360px; padding-top: 12vh; }
form { display: grid; gap: 1rem; }
label { display: grid; gap: .35rem; font-size: .9rem; color: #8b98a5; }
input {
  padding: .6rem .7rem; font-size: 1rem; color: #e6edf3;
  background: #1a2129; border: 1px solid #2d3742; border-radius: 6px;
}
input:focus { outline: 2px solid #3b82f6; border-color: transparent; }
button {
  padding: .6rem 1rem; font-size: 1rem; cursor: pointer;
  color: #fff; background: #2563eb; border: 0; border-radius: 6px;
}
button:hover { background: #1d4ed8; }
#logout { padding: .3rem .7rem; font-size: .85rem; background: #2d3742; margin-left: .5rem; }
#login-error { color: #f87171; min-height: 1.2em; margin: 0; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
header h1 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.card { background: #1a2129; border: 1px solid #2d3742; border-radius: 8px; padding: 1rem; }
.card p { margin: 0; font-size: 1.05rem; }
.muted { color: #8b98a5; font-size: .85rem; margin-top: 1.5rem; }

.block { margin-top: 2rem; }
.block > p { margin: 0 0 .5rem; }
form.inline { display: flex; gap: .5rem; margin-bottom: .75rem; }
form.inline input { flex: 1; }
#site-message { min-height: 1.3em; margin: 0 0 .75rem; }
#site-message.ok { color: #4ade80; }
#site-message.error { color: #f87171; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid #2d3742; font-size: .92rem; }
th { color: #8b98a5; font-weight: 500; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
td:last-child { text-align: right; }
button.danger { padding: .3rem .7rem; font-size: .85rem; background: #7f1d1d; }
button.danger:hover { background: #991b1b; }
button.secondary { padding: .3rem .7rem; font-size: .85rem; background: #2d3742; }
button.secondary:hover { background: #3a4654; }
button:disabled { opacity: .6; cursor: wait; }

#db-message { min-height: 1.3em; margin: 0 0 .75rem; }
#db-message.ok { color: #4ade80; }
#db-message.error { color: #f87171; }
td.actions { white-space: normal; text-align: right; }   /* many buttons wrap instead of widening the page */
td.actions button { margin: .2rem 0 .2rem .35rem; white-space: nowrap; }
.credentials { background: #1a2129; border: 1px solid #a16207; border-radius: 8px; padding: 1rem; margin: 0 0 1rem; }
.credentials dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .75rem 0; }
.credentials dt { color: #8b98a5; }
.credentials dd { margin: 0; }
.credentials code { font-size: 1rem; user-select: all; word-break: break-all; }
.credentials button { margin-right: .5rem; }
.pma-box { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0 0 1rem; }

.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .75rem; }
#backup-message { min-height: 1.3em; margin: 0 0 .75rem; }
#backup-message.ok { color: #4ade80; }
#backup-message.error { color: #f87171; }
#offsite-box { margin-top: 1.5rem; }
h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8b98a5; margin: 0 0 .5rem; }
#alerts-message { min-height: 1.3em; margin: 0 0 .75rem; }
#alerts-message.ok { color: #4ade80; }
#alerts-message.error { color: #f87171; }

/* ---- overview: the first screen ---- */
.overview { margin-bottom: 1.5rem; }
.banner { display: grid; grid-template-columns: auto 1fr; column-gap: 1rem; align-items: center; padding: 1rem 1.25rem;
  border-radius: 10px; border: 1px solid #2d3742; border-left-width: 6px; background: #1a2129; }
.banner > svg.icon { grid-row: span 2; }
.banner > :not(svg) { grid-column: 2; }
.banner.ok > svg.icon { color: #4ade80; }
.banner.warn > svg.icon { color: #fbbf24; }
.banner.bad > svg.icon { color: #f87171; }
.banner.unknown > svg.icon { color: #8b98a5; }
.banner strong { font-size: 1.15rem; display: block; }
.banner span { color: #8b98a5; font-size: .9rem; }
.banner.ok { border-left-color: #22c55e; background: #10231a; }
.banner.warn { border-left-color: #f59e0b; background: #261d0b; }
.banner.bad { border-left-color: #ef4444; background: #2a1213; }
.banner.unknown { border-left-color: #6b7785; }
.problems { margin: .75rem 0 0; padding: .75rem 1.25rem .75rem 2.25rem; background: #2a1213; border: 1px solid #5b2022; border-radius: 8px; color: #fca5a5; }
.problems li { margin: .25rem 0; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin-top: .75rem; }
.tile { background: #1a2129; border: 1px solid #2d3742; border-left-width: 5px; border-radius: 8px; padding: .8rem 1rem; }
.tile h2 { margin: 0 0 .35rem; }
.tile .big { margin: 0; font-size: 1.15rem; font-weight: 600; }
.tile .note { margin: .25rem 0 0; font-size: .82rem; color: #8b98a5; min-height: 1.1em; }
.tile.ok { border-left-color: #22c55e; }
.tile.warn { border-left-color: #f59e0b; }
.tile.bad { border-left-color: #ef4444; }
.tile.off { border-left-color: #4b5563; }
.tile.unknown { border-left-color: #6b7785; }
.tile.ok .big { color: #86efac; }
.tile.warn .big { color: #fcd34d; }
.tile.bad .big { color: #fca5a5; }
.tile.off .big, .tile.unknown .big { color: #cbd5e1; }

/* ---- pages (tabs) ---- */
[hidden] { display: none !important; }
.tabs { display: flex; gap: .25rem; margin: 0 0 1.25rem; border-bottom: 1px solid #2d3742; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: .5rem; background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #8b98a5; padding: .6rem 1rem; font-size: 1rem; cursor: pointer; white-space: nowrap; }
.tab:hover { color: #e6edf3; background: none; }
.tab.active { color: #fff; border-bottom-color: #3b82f6; font-weight: 600; }
.tab:focus-visible { outline: 2px solid #3b82f6; outline-offset: -2px; }
/* three tiles per row instead of a 4+2 split */
.tiles { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .tiles { grid-template-columns: 1fr; } }

/* the server's IP next to the title */
.server-ip { font-size: .95rem; font-weight: 400; color: #8b98a5; margin-left: .5rem; font-family: ui-monospace, monospace; }

/* backups: one list, grouped by domain (headings in backups.css) */
#bk-items { grid-template-columns: 1fr; }
.bk-items .bk-group:first-child { margin-top: 0; }

/* ---- in-page dialog ---- */
dialog { background: #1a2129; color: #e6edf3; border: 1px solid #2d3742; border-radius: 12px; padding: 1.25rem 1.5rem; width: min(30rem, calc(100vw - 2rem)); }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
dialog p { margin: 0 0 1rem; color: #b6c0ca; line-height: 1.45; }
#dialog-text { white-space: pre-line; }
.os-retention { display: flex; gap: 1rem; }
.os-retention label { flex: 1; }
#os-keys-box { margin-bottom: 1rem; }
#os-keys-box summary { cursor: pointer; margin-bottom: .75rem; color: #b6c0ca; }
#os-message.error { color: #f47067; }
dialog label { display: block; margin-bottom: 1rem; }
dialog label span { display: block; margin-bottom: .35rem; font-size: .9rem; color: #8b98a5; }
dialog input, dialog select { width: 100%; box-sizing: border-box; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: .5rem; }
.dialog-buttons button:disabled { opacity: .45; cursor: not-allowed; }
.updraft-sets { max-height: 16rem; overflow-y: auto; margin-bottom: 1rem; }
.updraft-sets label { display: flex; gap: .6rem; align-items: baseline; margin-bottom: .5rem; }
.updraft-sets input[type=radio] { width: auto; flex: none; margin: 0; }
.updraft-sets label span { margin: 0; color: inherit; font-size: .95rem; }
.updraft-sets label.unusable span { color: #8b98a5; }
.si-step { margin: .8rem 0 .4rem; }
.si-key code { display: block; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem;
  word-break: break-all; background: #0d1117; border: 1px solid #30363d; border-radius: 6px; padding: .5rem .6rem; }
.si-grid { display: grid; grid-template-columns: 1fr 7rem; gap: 0 .8rem; }
.si-status { white-space: pre-line; }
.si-status.error { color: #f87171; }
dialog h3 { text-transform: none; letter-spacing: normal; color: #e6edf3; font-size: 1.15rem; }

#acc-message { min-height: 1.3em; margin: 0 0 .75rem; }
#acc-message.ok { color: #4ade80; }
#acc-message.error { color: #f87171; }
#pw-form { max-width: 26rem; margin-bottom: .75rem; }
.block h3 { margin-top: 1.5rem; }

/* ---- icons, icon buttons, badges, states ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.icon { flex: none; }
button.with-icon { display: inline-flex; align-items: center; gap: .4rem; }
button.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; padding: 0; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: .4rem; }
td.actions .row-actions button { margin: 0; }
.row-actions button.danger { margin-left: .4rem; }
.row-actions .add-app { padding: .3rem .7rem; font-size: .85rem; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 999px; font-size: .75rem; background: #1e293b; color: #bfdbfe; border: 1px solid #334155; }
.badge.empty { background: none; color: #8b98a5; border: 1px dashed #3a4654; }
.site-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.site-sub { margin-top: .2rem; font-size: .78rem; color: #8b98a5; font-family: ui-monospace, Menlo, Consolas, monospace; }
.state { display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap; }
.state.ok { color: #4ade80; }
.state.warn { color: #fbbf24; }
.state.bad { color: #f87171; }
tr.problem td:first-child { box-shadow: inset 3px 0 0 #f59e0b; padding-left: .75rem; }

/* ---- long lists: search box, count, pages ---- */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin: .5rem 0 .75rem; }
.list-count { color: #8b98a5; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
label.search { display: flex; flex-direction: row; align-items: center; gap: .5rem; flex: 0 1 22rem; padding: 0 .7rem;
  background: #1a2129; border: 1px solid #2d3742; border-radius: 8px; color: #8b98a5; }
label.search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .55rem 0; }
label.search input:focus { outline: 0; }
label.search:focus-within { outline: 2px solid #3b82f6; border-color: transparent; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .75rem; font-size: .9rem; color: #8b98a5; }
.pager-buttons { display: inline-flex; align-items: center; gap: .4rem; }
.pager-page { color: #e6edf3; padding: 0 .3rem; }
button.icon-after svg { order: 2; }

/* ---- small drop-down menu ("Add app") ---- */
.menu { position: absolute; z-index: 50; min-width: 15rem; padding: .35rem; background: #1a2129; border: 1px solid #3a4654;
  border-radius: 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, .45); }
.menu-heading { padding: .4rem .6rem .2rem; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: #8b98a5; }
.menu-line { height: 1px; margin: .35rem .25rem; background: #2d3742; }
button.menu-item { display: block; width: 100%; text-align: left; padding: .5rem .6rem; font-size: .9rem; background: none; color: #e6edf3; border-radius: 6px; }
button.menu-item:hover, button.menu-item:focus-visible { background: #2d3742; }

/* ---- phones ---- */
@media (max-width: 640px) {
  main { padding: 1rem .75rem 2rem; }
  h1 { font-size: 1.3rem; }
  header { flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
  .block { margin-top: 1.25rem; }
  .tabs { gap: 0; }
  .tab { padding: .7rem .4rem; font-size: .9rem; }  /* all five tabs fit on a 390 px screen */

  /* bigger touch targets */
  button, button.secondary, button.danger { min-height: 2.75rem; padding: .55rem 1rem; font-size: 1rem; }
  #logout { min-height: 2.25rem; }
  input { min-height: 2.75rem; }
  form.inline { flex-direction: column; }
  .toolbar { flex-direction: column; }
  .toolbar button { width: 100%; }
  .credentials button { width: 100%; margin: 0 0 .5rem; }
  .credentials dl { grid-template-columns: 1fr; gap: .1rem; }
  .credentials dt { margin-top: .5rem; }

  /* tables become one card per row, with the column name in front of each value (see labelCells in app.js) */
  table, tbody, tr, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }  /* hidden visually, still read by screen readers */
  tr { background: #1a2129; border: 1px solid #2d3742; border-radius: 8px; margin: 0 0 .75rem; padding: .35rem .75rem; }
  td, td:last-child { display: flex; justify-content: space-between; gap: 1rem; text-align: right; border-bottom: 1px solid #232c36; padding: .5rem 0; overflow-wrap: anywhere; }
  td::before { content: attr(data-label); color: #8b98a5; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; text-align: left; flex: none; }
  td:last-child { border-bottom: 0; }
  td.actions { white-space: normal; flex-wrap: wrap; justify-content: flex-end; }
  td.actions::before { display: none; }
  td.actions button { margin: .25rem 0 .25rem .35rem; flex: 1 1 auto; }
  td.actions .row-actions { width: 100%; }
  button.icon-btn { width: 2.75rem; height: 2.75rem; flex: none; }
  label.search { flex: 1 1 100%; }
  .tab svg { display: none; }   /* the words fit a phone; the icons don't */
  td.site-cell { display: block; text-align: left; }
  td.site-cell::before { display: none; }
  td:empty { display: none; }
}

/* ---- "working on it" spinner, shown before any status message that ends in "..." ---- */
.busy::before {
  content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .5em; vertical-align: -.1em;
  border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%;
  animation: panel-spin .8s linear infinite;
}
@keyframes panel-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .busy::before { animation-duration: 2.4s; } }
dialog.wide { width: min(40rem, calc(100vw - 2rem)); }
#import-folders { margin-bottom: 1rem; font-size: .9rem; }
#import-folders tbody { display: block; max-height: 14rem; overflow-y: auto; }
#import-folders thead, #import-folders tbody tr { display: table; width: 100%; table-layout: fixed; }
#import-message.error { color: #f87171; }
.import-status { display: block; font-size: .8rem; color: #8b98a5; margin-top: .2rem; }
.import-status.running { color: #60a5fa; }
.import-status.failed { color: #f87171; }
.import-status.done { color: #4ade80; }
#phpx-message { min-height: 1.3em; margin: 0 0 .75rem; }
#phpx-message.ok { color: #4ade80; }
#phpx-message.error { color: #f87171; }
#phpx td:nth-child(2) { color: #b6c0ca; font-size: .9rem; }

/* Maintenance page */
.mt-toolbar { margin-top: .75rem; }
.mt-message.ok { color: #4ade80; }
.mt-message.error { color: #f87171; }
.mt-pkg-box { margin-bottom: .75rem; }
.mt-pkg-box summary { cursor: pointer; color: #8b98a5; }
.mt-pkgs { max-height: 16rem; overflow-y: auto; margin: .5rem 0; padding-left: 1.2rem; font-size: .85rem;
  font-family: ui-monospace, Menlo, Consolas, monospace; }
.mt-pkgs li.security { color: #fbbf24; }
.mt-clean { display: grid; gap: .4rem; }
.mt-clean label { display: flex; gap: .7rem; align-items: baseline; padding: .55rem .75rem; border: 1px solid #30363d;
  border-radius: 8px; background: #1c2128; }
.mt-clean input[type=checkbox] { width: auto; flex: none; margin: 0; }
.mt-clean .mt-size { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.mt-clean .mt-detail { display: block; color: #8b98a5; font-size: .85rem; }
.mt-clean label.empty { opacity: .55; }
.mt-logbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: flex-end; }
.mt-logbar label { margin: 0; }
.mt-logbar label span { display: block; font-size: .85rem; color: #8b98a5; margin-bottom: .3rem; }
.mt-log-note { margin-top: .5rem; }
.mt-log { max-height: 32rem; overflow: auto; background: #0d1117; border: 1px solid #30363d; border-radius: 8px;
  padding: .75rem; font-size: .78rem; line-height: 1.45; white-space: pre; }

/* File manager */
dialog.fm { width: min(70rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); display: flex; flex-direction: column; }
dialog.fm:not([open]) { display: none; }
.fm-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .5rem; }
.fm-head h3 { margin: 0; }
.fm-crumbs { margin: 0 0 .5rem; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .9rem; }
button.link { background: none; border: none; padding: 0; color: #58a6ff; cursor: pointer; font: inherit; }
button.link:hover { text-decoration: underline; }
.fm-table-wrap { overflow: auto; max-height: calc(100vh - 16rem); border: 1px solid #30363d; border-radius: 8px; }
.fm-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.fm-table th { position: sticky; top: 0; background: #1a2129; text-align: left; }
.fm-table td, .fm-table th { padding: .35rem .6rem; border-bottom: 1px solid #262c34; }
.fm-table .fm-dir { font-weight: 600; }
.fm-num, .fm-perm { white-space: nowrap; font-variant-numeric: tabular-nums; }
.fm-perm { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: #8b98a5; }
.fm-when { white-space: nowrap; color: #8b98a5; }
.muted-cell { color: #8b98a5; }
.fm-table td.actions a.button { display: inline-block; margin: .2rem 0 .2rem .35rem; text-decoration: none;
  padding: .3rem .7rem; font-size: .85rem; color: #fff; background: #2d3742; border-radius: 6px; white-space: nowrap; }
.fm-table td.actions a.button:hover { background: #3a4654; }
.fm-file-name { font-family: ui-monospace, Menlo, Consolas, monospace; margin-bottom: .5rem; }
.fm-warning { color: #fbbf24; border-left: 4px solid #f59e0b; padding-left: .6rem; }
.fm-text { width: 100%; box-sizing: border-box; height: calc(100vh - 20rem); min-height: 16rem; resize: vertical;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; line-height: 1.45; tab-size: 4;
  background: #0d1117; color: #e6edf3; border: 1px solid #30363d; border-radius: 8px; padding: .6rem; }
.fm-edit-bar { margin-top: .6rem; align-items: center; }
.fm-hint { margin: 0; }
.fm-message { min-height: 1.2rem; margin: .6rem 0 0; }
.fm-message.ok { color: #4ade80; }
.fm-message.error { color: #f87171; }

/* ---- Overview, Databases, Maintenance, Account: the same icon look as Sites, Backups and Mail ---- */
.tile { display: flex; align-items: flex-start; gap: .75rem; }
.tile-text { min-width: 0; }
.tile-icon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem;
             border-radius: 8px; background: #22303f; color: #93c5fd; margin-top: .1rem; }
.tile.ok .tile-icon { background: #0f2a1a; color: #86efac; }
.tile.warn .tile-icon { background: #2a210b; color: #fcd34d; }
.tile.bad .tile-icon { background: #2a0f0f; color: #fca5a5; }
.tile.off .tile-icon, .tile.unknown .tile-icon { background: #222b35; color: #8b98a5; }
.card h2 { display: flex; align-items: center; gap: .4rem; }
.card h2 .icon { color: #93c5fd; }
.card-note { font-size: .8rem !important; color: #8b98a5; margin-top: .35rem !important; }
.meter { height: 6px; border-radius: 3px; background: #2d3742; overflow: hidden; margin-top: .55rem; }
.meter > div { height: 6px; width: 0; background: #3b82f6; transition: width .4s; }
.meter.warn > div { background: #f59e0b; }
.meter.bad > div { background: #ef4444; }
.alerts-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; padding: .75rem 1rem;
              background: #1a2129; border: 1px solid #2d3742; border-radius: 8px; }
.alerts-icon { display: inline-flex; color: #93c5fd; }
.alerts-status { flex: 1 1 18rem; margin: 0; color: #c9d1d9; font-size: .92rem; }

h3.with-icon, h2[data-icon] { display: flex; align-items: center; gap: .45rem; }
h3.with-icon .icon { color: #93c5fd; }

.db-tools label.search { flex: 1 1 18rem; }
table.databases th.actions-head { text-align: right; }
.db-name { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.db-name strong { font-weight: 600; overflow-wrap: anywhere; }
.db-facts { display: block; font-size: .78rem; color: #8b98a5; margin-top: .15rem; }

.acc-card { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: .9rem 1rem; margin: .5rem 0 1rem;
            background: #1a2129; border: 1px solid #2d3742; border-radius: 10px; }
.acc-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem;
            border-radius: 50%; background: #22303f; color: #93c5fd; flex: none; }
.acc-info { flex: 1 1 12rem; min-width: 0; }
.acc-info strong { display: block; font-size: 1.05rem; }
.acc-sessions { display: block; font-size: .85rem; color: #8b98a5; margin-top: .1rem; }
.admin-name { display: inline-flex; align-items: center; gap: .5rem; }
.admin-name .icon { color: #8b98a5; }

@media (max-width: 640px) {
  td.db-cell { display: block; text-align: left; }
  td.db-cell::before { display: none; }
}

/* Paperless: import an export */
.pli-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.pli-result { margin: .5rem 0 1rem; }
.pli-result p { margin: .35rem 0; }
.pli-result .error { color: #f87171; }
.pli-result .ok { color: #4ade80; }
.pli-result .warn-text { color: #fbbf24; }
.pli-facts { list-style: none; padding: .6rem .8rem; margin: 0; background: #1a2129; border: 1px solid #2d3742; border-radius: 8px; }
.pli-facts li { margin: .15rem 0; overflow-wrap: anywhere; }
.pli-delete { display: flex; gap: .5rem; align-items: baseline; }
.pli-delete input { width: auto; flex: none; margin: 0; }
.pli-delete span { margin: 0; color: inherit; }
