/* AKENO website: dark navy, violet-to-blue accents, rounded cards (the same tokens as the Windows app). */
:root {
  --bg: #060d1c; --bg-2: #071020; --card: #0d192b; --card-2: #101d33; --border: #1c2a42; --border-hi: #263a5a;
  --border-btn: #354a70; --text: #f4f6ff; --dim: #97a9c7; --muted: #7d8aa3; --blue: #168eff; --violet: #8e42ff;
  --violet-deep: #4e31d5; --cyan: #12c7ff; --green: #20d991; --amber: #ffc847; --red: #ff5b73;
  --radius: 14px; --radius-sm: 9px; --shadow: 0 18px 50px rgba(0, 0, 0, .35);
  --font: "Segoe UI Variable Text", "Segoe UI", Inter, "Noto Sans", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Mono", Consolas, "DejaVu Sans Mono", ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 15px; line-height: 1.55; color: var(--text);
  background: radial-gradient(1200px 600px at 85% -10%, rgba(142, 66, 255, .20), transparent 60%),
              radial-gradient(900px 500px at -10% 10%, rgba(22, 142, 255, .14), transparent 60%), var(--bg);
}
a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card-2); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; z-index: 10; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: .3px; }
h2 { font-size: 1.25rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 650; }
p { margin: 0 0 .8em; }
.dim { color: var(--dim); }
.muted { color: var(--muted); font-size: .9em; }
.mono, code { font-family: var(--mono); font-size: .92em; }
code { background: rgba(255, 255, 255, .05); padding: 1px 6px; border-radius: 6px; }

/* layout */
.topbar { position: sticky; top: 0; z-index: 5; backdrop-filter: blur(12px); background: rgba(6, 13, 28, .78);
  border-bottom: 1px solid var(--border); }
.topbar .inner { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a { color: var(--dim); text-decoration: none; padding: 7px 12px; border-radius: 9px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(142, 66, 255, .18); }
.nav form { margin: 0; }
.lang { display: flex; gap: 2px; }
.lang a { padding: 4px 8px; font-size: .85em; }
main { max-width: 1240px; margin: 0 auto; padding: 28px 20px 60px; }
main.narrow { max-width: 520px; }
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: .88em; }
footer .inner { max-width: 1240px; margin: 0 auto; padding: 18px 20px; display: flex; gap: 16px; flex-wrap: wrap; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.split { display: grid; gap: 22px; grid-template-columns: 220px minmax(0, 1fr); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .grid.two { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* cards */
.card { background: linear-gradient(160deg, var(--card-2), var(--card)); border: 1px solid var(--border-hi);
  border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); min-width: 0; }
.card.flat { box-shadow: none; }
.card h2 { display: flex; align-items: center; gap: 10px; }
.stat { font-size: 1.9rem; font-weight: 800; }
.stat small { font-size: .9rem; color: var(--dim); font-weight: 600; }
.hero { display: grid; gap: 30px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center;
  padding: 40px 0 26px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero .lead { font-size: 1.12rem; color: #d6ddf5; max-width: 60ch; }
.gradient-text { background: linear-gradient(90deg, var(--cyan), var(--blue) 40%, var(--violet) 80%, #d78aff);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.feature h3 { color: var(--text); }
.feature p { color: var(--dim); margin: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .82em;
  font-weight: 700; border: 1px solid var(--border-hi); background: rgba(255, 255, 255, .04); white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.badge.ok::before { background: var(--green); } .badge.warn::before { background: var(--amber); }
.badge.fail::before { background: var(--red); } .badge.info::before { background: var(--blue); }

/* forms */
label { display: block; font-weight: 600; color: var(--dim); margin: 12px 0 5px; font-size: .92em; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #091427; border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm); padding: 9px 11px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(142, 66, 255, .25); }
input[type="checkbox"] { width: auto; margin-right: 8px; accent-color: var(--violet); }
.check { display: flex; align-items: center; color: var(--text); font-weight: 500; }
textarea { min-height: 90px; resize: vertical; }
.hint { color: var(--muted); font-size: .86em; margin-top: 4px; }
.inline { display: flex; gap: 8px; align-items: end; flex-wrap: wrap; }
.inline > * { flex: 1 1 140px; }
.inline > .btn, .inline > button { flex: 0 0 auto; }
form.inline-form { display: inline; margin: 0; }
.btn, button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 650;
  color: #e7edff; background: #142340; border: 1px solid var(--border-btn); border-radius: var(--radius-sm);
  padding: 9px 16px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover, button:hover { background: #20345b; border-color: #6b5dfa; color: var(--text); }
.btn.primary, button.primary { background: linear-gradient(90deg, var(--violet-deep), var(--violet)); border-color: #8958fc;
  color: #fff; }
.btn.primary:hover, button.primary:hover { background: linear-gradient(90deg, #5f43e8, #a066ff); }
.btn.danger, button.danger { border-color: var(--red); color: #ffd6dd; }
.btn.small, button.small { padding: 5px 10px; font-size: .88em; }
.btn.link, button.link { background: none; border: none; color: var(--cyan); padding: 2px 4px; }
.code-input { font-family: var(--mono); letter-spacing: 1.5px; text-transform: uppercase; }

/* messages */
.flash { border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 18px; border: 1px solid; font-weight: 600; }
.flash.ok { border-color: rgba(32, 217, 145, .45); background: rgba(32, 217, 145, .10); }
.flash.error { border-color: rgba(255, 91, 115, .5); background: rgba(255, 91, 115, .10); }
.flash.warn { border-color: rgba(255, 200, 71, .5); background: rgba(255, 200, 71, .08); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border-hi); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .93em; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--dim); font-weight: 650; background: var(--card-2); position: sticky; top: 0; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: rgba(255, 255, 255, .02); }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
dl.kv dt { color: var(--dim); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }
.pager { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.side { display: flex; flex-direction: column; gap: 4px; }
.side a { color: var(--dim); text-decoration: none; padding: 9px 12px; border-radius: 9px; font-weight: 600;
  border-left: 3px solid transparent; }
.side a:hover { background: rgba(22, 142, 255, .12); color: var(--text); }
.side a[aria-current="page"] { background: linear-gradient(90deg, rgba(142, 66, 255, .45), rgba(22, 142, 255, .04));
  color: var(--text); border-left-color: var(--violet); }
@media (max-width: 860px) { .side { flex-direction: row; flex-wrap: wrap; } }
.codes { font-family: var(--mono); font-size: 1.02rem; background: #091427; border: 1px solid var(--border-hi);
  border-radius: var(--radius-sm); padding: 12px 14px; line-height: 1.9; white-space: pre-wrap; user-select: all; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; }
.qr svg { display: block; width: 200px; height: 200px; }
.chart { width: 100%; height: 160px; display: block; }
.chart .bar { fill: #7a4dff; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.mt { margin-top: 14px; } .mt-s { margin-top: 10px; } .mt-l { margin-top: 20px; }
.wrap-any { overflow-wrap: anywhere; } .narrow-cell { max-width: 340px; }
.side-foot { margin: 12px 0 0 12px; } .check-offset { margin-top: 34px; }
details summary { cursor: pointer; color: var(--dim); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .btn, button, .nav a, .side a { transition: background .15s, border-color .15s; } }
.nowrap { white-space: nowrap; }

/* Release management uses the site's existing dark surfaces and accent colors. */
.release-heading h1 { margin-bottom: .6rem; }
.release-drop { display:flex; flex-direction:column; align-items:center; gap:.8rem; text-align:center;
  border:1px dashed #7562b5; border-radius:14px; padding:2.2rem 1rem; background:rgba(151,117,255,.055);
  cursor:pointer; transition:background .16s,border-color .16s; }
.release-drop.dragging,.release-drop:focus-within { border-color:#c8b5ff; background:rgba(151,117,255,.15); }
.release-drop input { max-width:100%; width:auto; }
.release-fields { margin:1.3rem 0; }
.release-fields label { min-width:0; }
.release-notes { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.release-item { padding:1.4rem 0; border-top:1px solid rgba(180,165,220,.16); }
.release-item h3 { margin:0; }
.release-item details,.release-summary details { margin-top:.8rem; }
#release-progress { width:100%; height:.7rem; margin-top:1rem; accent-color:#b099ff; }
button:disabled { opacity:.45; cursor:not-allowed; }
.empty { padding:2.5rem 1rem; text-align:center; }
