/* FilltheRest portal. Brand: Fill blue, the orange, Rest green. Light and dark themes. */
:root {
  --fill: #144EDB; --the: #F37115; --rest: #0C8B35; --red: #DC2626;
  --bg: #F6F8FC; --panel: #FFFFFF; --text: #111827; --muted: #5B6475; --line: #E3E8F0;
  --fill-soft: #E8EFFF; --the-soft: #FFF1E6; --rest-soft: #E5F6EB; --red-soft: #FDECEC;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fill: #5B8CFF; --the: #FF9A4D; --rest: #34C46A; --red: #F87171;
    --bg: #0E1420; --panel: #161E2E; --text: #E8ECF4; --muted: #9AA4B8; --line: #263247;
    --fill-soft: #1A2A4F; --the-soft: #3A2615; --rest-soft: #12321F; --red-soft: #3B1616;
  }
}
:root[data-theme="dark"] {
  --fill: #5B8CFF; --the: #FF9A4D; --rest: #34C46A; --red: #F87171;
  --bg: #0E1420; --panel: #161E2E; --text: #E8ECF4; --muted: #9AA4B8; --line: #263247;
  --fill-soft: #1A2A4F; --the-soft: #3A2615; --rest-soft: #12321F; --red-soft: #3B1616;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); }
body { margin: 0; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; top: 0 !important; line-height: 1.5; }
a { color: var(--fill); }
h1 { font-size: 1.8rem; margin: .2em 0 .5em; }
h2 { font-size: 1.3rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: absolute; inset-inline-start: 8px; top: 8px; background: var(--panel); padding: 8px; z-index: 9; }
.c-fill { color: var(--fill); } .c-the { color: var(--the); } .c-rest { color: var(--rest); }

.top { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--panel); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-size: 1.25rem; }
.links { display: flex; align-items: center; gap: 14px; margin-left: auto; flex-wrap: wrap; }
.links a { text-decoration: none; font-weight: 600; }
.admin-link { color: var(--the) !important; }
.tools { display: flex; gap: 8px; align-items: center; }
.lang { max-width: 150px; }
.theme { border: 1px solid var(--line); background: var(--panel); color: var(--text); border-radius: 10px; width: 36px; height: 34px; cursor: pointer; }
main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 24px 16px 48px; flex: 1; }
.foot { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 16px; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card.narrow { max-width: 460px; margin: 24px auto; }
.grid2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 24px 0; }
.hero { padding: 32px 0 8px; }
.hero h1 { font-size: 2.4rem; line-height: 1.15; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

label { display: block; font-weight: 600; margin: 12px 0 4px; }
input, select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.lang, .inline select { width: auto; padding: 6px 8px; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--fill) 45%, transparent); outline-offset: 1px; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 400; } .check input { width: auto; }
.btn, button.btn { display: inline-block; background: var(--fill); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-weight: 700; text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; }
.btn.small { padding: 6px 12px; color: #fff !important; }
.btn.ghost { background: transparent; color: var(--fill); border: 1px solid var(--fill); }
.btn.green { background: var(--rest); } .btn.orange { background: var(--the); } .btn.red { background: var(--red); }
.btn.wide { width: 100%; margin-top: 16px; }
button.link { background: none; border: 0; color: var(--fill); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
form.inline { display: inline; margin: 0; }
.mini { padding: 4px 10px; font-size: .8rem; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; }
.mini.red { color: var(--red); border-color: var(--red); } .mini.green { color: var(--rest); border-color: var(--rest); }

.alert { padding: 12px 14px; border-radius: 10px; margin: 12px 0; font-weight: 600; }
.alert.ok { background: var(--rest-soft); color: var(--rest); }
.alert.err { background: var(--red-soft); color: var(--red); }
.alert.info { background: var(--fill-soft); color: var(--fill); }
.validation-message { color: var(--red); font-size: .85rem; }

.stats { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 16px 0; }
.stat { display: flex; flex-direction: column; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--fill); text-decoration: none; color: var(--text); }
.stat.orange { border-top-color: var(--the); } .stat.green { border-top-color: var(--rest); } .stat.red { border-top-color: var(--red); }
.stat .v { font-size: 1.7rem; font-weight: 800; } .stat .l { color: var(--muted); font-size: .9rem; }

.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.subnav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; background: var(--panel); border: 1px solid var(--line); font-weight: 600; }
.subnav a.on { background: var(--fill); color: #fff; border-color: var(--fill); }

.tablewrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.wrap { max-width: 360px; word-break: break-word; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--fill-soft); color: var(--fill); }
.tag.green { background: var(--rest-soft); color: var(--rest); } .tag.orange { background: var(--the-soft); color: var(--the); } .tag.red { background: var(--red-soft); color: var(--red); } .tag.gray { background: var(--line); color: var(--muted); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.filters input, .filters select { width: auto; min-width: 160px; }
.pager { display: flex; gap: 14px; justify-content: center; margin: 14px 0; }
pre, code.block { white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: .8rem; max-height: 420px; overflow: auto; }
.meter { height: 12px; border-radius: 999px; background: var(--line); overflow: hidden; margin: 8px 0; }
.meter > span { display: block; height: 100%; background: linear-gradient(90deg, var(--fill), var(--rest)); }
.meter.full > span { background: var(--red); }
.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.plan { display: flex; flex-direction: column; }
.plan .price { font-size: 2rem; font-weight: 800; }
.plan ul { padding-inline-start: 18px; flex: 1; }
.plan.current { border: 2px solid var(--rest); }

/* Google website translator: keep its banner out of the way. */
.gt-holder { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
html.translated-rtl body { direction: rtl; }

@media (max-width: 640px) {
  .top { padding: 10px 12px; } .links { margin-left: 0; width: 100%; } .hero h1 { font-size: 1.8rem; }
}

/* Version number and version history */
.foot .ver { color: var(--muted); text-decoration: none; }
.foot .ver:hover { color: var(--fill); text-decoration: underline; }
.changelog .release { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 16px; }
.changelog .release h2 { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.changelog .release h3 { font-size: 1rem; color: var(--rest); margin: 12px 0 4px; }
.changelog .pill { background: var(--rest-soft); color: var(--rest); border-radius: 999px; padding: 2px 10px; font-size: .75rem; }
.changelog code, .version-card code { background: var(--fill-soft); padding: 1px 5px; border-radius: 4px; }
.version-card { margin-top: 16px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
