/* Kiri Plugins: modern runkiri.com flat design.
   Flat surfaces, 1px lines, still harbour patterns, no animation. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --bg:#F6F2EA; --bg-alt:#EFE9DD; --surface:#FFFDF8; --surface-2:#F3EEE4;
  --ink:#0F1419; --text-2:#3A424C; --muted:#5E6773; --line:#E1D9CA; --line-strong:#CFC5B3;
  --ember:#8A6A00; --ember-lid:#A88300; --ember-text:#6E5400; --on-ember:#FFFFFF;
  --ember-soft:color-mix(in srgb, var(--ember) 10%, transparent);
  --ember-hover:color-mix(in srgb, var(--ember) 86%, #000);
  --moss:#1F7656; --crit:#A23B2E;
  --term-bg:#0F1419; --term-fg:#E7E3DA; --term-line:#222B34; --term-muted:#6F7A86;
  --kiri-eyes:#0F1419;
  --app-3d:inset 0 1px 0 rgb(255 255 255 / .7), 0 1px 0 rgb(15 20 25 / .10);
  --app-3d-p:inset 0 1px 0 rgb(255 255 255 / .28), 0 1px 0 rgb(15 20 25 / .18);
  --f-text:"Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono:"JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap:1120px; --gut:24px;
  --r:6px; --r-s:4px; --r-l:10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:#0F1419; --bg-alt:#131920; --surface:#171E26; --surface-2:#1D252E;
    --ink:#F6F2EA; --text-2:#C9CDD2; --muted:#9AA3AE; --line:#26303A; --line-strong:#34404C;
    --ember:#E0B420; --ember-lid:#F2CF5B; --ember-text:#E8C04A; --on-ember:#1A1400;
    --ember-soft:color-mix(in srgb, var(--ember) 12%, transparent);
    --ember-hover:color-mix(in srgb, var(--ember) 88%, #fff);
    --moss:#5CC99A; --crit:#D3675A; --term-bg:#0A0E12;
    --app-3d:inset 0 1px 0 rgb(255 255 255 / .07), 0 1px 0 rgb(0 0 0 / .4);
    --app-3d-p:inset 0 1px 0 rgb(255 255 255 / .35), 0 1px 0 rgb(0 0 0 / .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:#0F1419; --bg-alt:#131920; --surface:#171E26; --surface-2:#1D252E;
  --ink:#F6F2EA; --text-2:#C9CDD2; --muted:#9AA3AE; --line:#26303A; --line-strong:#34404C;
  --ember:#E0B420; --ember-lid:#F2CF5B; --ember-text:#E8C04A; --on-ember:#1A1400;
  --ember-soft:color-mix(in srgb, var(--ember) 12%, transparent);
  --ember-hover:color-mix(in srgb, var(--ember) 88%, #fff);
  --moss:#5CC99A; --crit:#D3675A; --term-bg:#0A0E12;
  --app-3d:inset 0 1px 0 rgb(255 255 255 / .07), 0 1px 0 rgb(0 0 0 / .4);
  --app-3d-p:inset 0 1px 0 rgb(255 255 255 / .35), 0 1px 0 rgb(0 0 0 / .45);
}

/* ---------- base ---------- */
* { box-sizing:border-box; }
html, body { margin:0; overflow-x:clip; }
body {
  background:var(--bg);
  color:var(--ink);
  font:400 15px/1.6 var(--f-text);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
main { flex:1; }
a { color:inherit; text-decoration:none; }
code, kbd, pre { font-family:var(--f-mono); }
code { font-size:.9em; border-radius:var(--r-s); }
h1, h2, h3, h4 { margin:0; font-weight:500; letter-spacing:-.02em; }
p, ul, ol, dl, dd, figure { margin:0; }
ul, ol { padding:0; list-style:none; }
img, svg { display:block; }
::selection { background:color-mix(in srgb, var(--ember) 35%, transparent); }
:focus-visible { outline:2px solid var(--ember); outline-offset:2px; }
[hidden] { display:none !important; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.skip { position:absolute; left:16px; top:-60px; z-index:100; background:var(--ink); color:var(--bg); padding:8px 12px; font-size:13px; border-radius:var(--r-s); }
.skip:focus { top:12px; }
.wrap { max-width:calc(var(--wrap) + 2 * var(--gut)); margin:0 auto; padding:0 var(--gut); }
@media (max-width:640px) { :root { --gut:16px; } }

/* colour transitions only, and only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  a, .btn, .icon-btn, .cell-link { transition:color .12s, background-color .12s, border-color .12s; }
}

/* icons */
.ic { width:16px; height:16px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.ic.fill { fill:currentColor; stroke:none; }
.lg { width:16px; height:16px; flex:none; fill:currentColor; }

/* ---------- type ---------- */
.d1 { font-size:clamp(34px, 4.8vw, 56px); line-height:1.04; letter-spacing:-.042em; font-weight:500; }
.d2 { font-size:clamp(26px, 3.1vw, 36px); line-height:1.1; letter-spacing:-.032em; font-weight:500; }
.d3 { font-size:19px; line-height:1.3; letter-spacing:-.02em; font-weight:500; }
.lead { font-size:16.5px; line-height:1.6; color:var(--text-2); max-width:620px; }
.body { font-size:14px; line-height:1.65; color:var(--text-2); }
.lead code, .body code, .note code { color:var(--ink); }
.muted { color:var(--muted); }
.k { font:400 10.5px/1.3 var(--f-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); }
.note { font-size:13.5px; color:var(--muted); line-height:1.55; }
.note a, .lead a, .body a { color:var(--ink); border-bottom:1px solid var(--line-strong); }
.note a:hover, .lead a:hover, .body a:hover { border-color:var(--ember); }

/* ---------- buttons: App raised tiles (runkiri.com) ---------- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font:600 12.5px/1 var(--f-text);
  height:32px; padding:0 14px; border-radius:var(--r);
  border:1px solid var(--line-strong);
  background:var(--surface); color:var(--ink);
  box-shadow:var(--app-3d);
  cursor:pointer; white-space:nowrap;
}
.btn:hover { background:var(--surface-2); }
.btn:active { transform:translateY(1px); box-shadow:none; }
.btn-p {
  background:var(--ember); color:var(--on-ember);
  border-color:color-mix(in srgb, var(--ember) 78%, #000);
  box-shadow:var(--app-3d-p);
}
.btn-p:hover { background:var(--ember-hover); }
.btn-o { background:var(--surface); color:var(--ink); border-color:var(--line-strong); }
.btn-sm { height:28px; padding:0 11px; font-size:12px; }
.btn-lg { height:40px; padding:0 18px; font-size:13.5px; border-radius:7px; }
.more { display:inline-flex; align-items:center; gap:8px; font:400 11.5px/1 var(--f-mono); color:var(--ember-text); }
.more::after { content:"→"; }
.more:hover { color:var(--ink); }
.acts { display:flex; flex-wrap:wrap; align-items:center; gap:10px 12px; }

/* ---------- header ---------- */
.nav { position:relative; z-index:50; background:var(--bg); border-bottom:1px solid var(--line); }
.nav-in { height:56px; display:flex; align-items:center; gap:24px; }
.brand { display:flex; align-items:center; gap:8px; color:var(--ink); flex:none; }
.brand .m { width:24px; height:24px; }
.brand .w { width:auto; height:15px; }
.brand .beta {
  font:400 9.5px/1 var(--f-mono); letter-spacing:.1em; text-transform:uppercase;
  color:var(--muted); border:1px solid var(--line-strong); padding:3px 5px; margin-left:2px;
}
.menu { display:flex; align-items:center; gap:2px; margin:0 auto 0 8px; font-size:13px; color:var(--text-2); }
.menu a { display:block; padding:8px 9px; white-space:nowrap; }
.menu a:hover { color:var(--ink); }
.menu a[aria-current="page"], .menu a.is-current { color:var(--ink); box-shadow:inset 0 -1px 0 var(--ink); }
.menu .sep { width:1px; height:16px; background:var(--line); margin:0 6px; }
.nav-r { display:flex; align-items:center; gap:8px; margin-left:auto; flex:none; }
.gh { display:inline-flex; align-items:center; gap:7px; font-size:12.5px; color:var(--text-2); padding:7px 6px; white-space:nowrap; }
.gh:hover { color:var(--ink); }
.gh .lg { width:15px; height:15px; }
.gh-n { font:400 11px/1 var(--f-mono); color:var(--muted); border-left:1px solid var(--line); padding-left:7px; }
.icon-btn { display:inline-grid; place-items:center; width:32px; height:32px; border:1px solid transparent; border-radius:var(--r-s); background:none; color:var(--text-2); cursor:pointer; padding:0; }
.icon-btn:hover { color:var(--ink); border-color:var(--line); }
.icon-btn .ic { width:16px; height:16px; }
.menu-btn { display:none; }
.theme-toggle .moon { display:none; }
:root[data-theme="light"] .theme-toggle .sun { display:none; }
:root[data-theme="light"] .theme-toggle .moon { display:block; }

/* Platforms menu */
.plat { position:relative; }
.plat-btn { display:flex; align-items:center; gap:6px; padding:8px 9px; font:inherit; color:inherit; background:none; border:0; cursor:pointer; white-space:nowrap; }
.plat-btn:hover, .plat.open .plat-btn { color:var(--ink); }
.plat-btn .chev { width:9px; height:6px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; opacity:.65; }
.plat.open .plat-btn .chev { transform:rotate(180deg); }
.plat-menu { display:none; position:absolute; z-index:60; left:-8px; top:calc(100% + 8px); width:264px; padding:6px; background:var(--surface); border:1px solid var(--line-strong); border-radius:var(--r); }
.plat-menu::before { content:""; position:absolute; left:0; right:0; top:-10px; height:10px; }
.plat.open .plat-menu { display:block; }
@media (hover:hover) and (min-width:1081px) { .plat:hover .plat-menu { display:block; } .plat:hover .plat-btn { color:var(--ink); } }
.plat-menu a { display:flex; align-items:flex-start; gap:12px; padding:9px 10px; border-radius:var(--r-s); color:var(--text-2); }
.plat-menu a:hover, .plat-menu a:focus-visible { background:var(--surface-2); color:var(--ink); }
.plat-menu .lg { margin-top:1px; color:var(--ink); }
.plat-menu b { display:block; font-weight:500; font-size:13px; line-height:1.3; color:var(--ink); }
.plat-menu small { display:block; margin-top:2px; font-size:12px; line-height:1.4; color:var(--muted); }
.plat-menu .plat-all { display:block; margin:6px -6px -6px; padding:10px 16px; border-top:1px solid var(--line); border-radius:0 0 var(--r) var(--r); font-size:12px; }
.plat-menu .plat-all::after { content:" →"; color:var(--ember-text); }

@media (max-width:1080px) {
  .menu { display:none; position:absolute; left:0; right:0; top:100%; margin:0; flex-direction:column; align-items:stretch; gap:0; background:var(--bg); border-bottom:1px solid var(--line); padding:6px var(--gut) 12px; font-size:14px; }
  .menu a { padding:11px 0; border-bottom:1px solid var(--line); }
  .menu a:last-child { border-bottom:0; }
  .menu a[aria-current="page"], .menu a.is-current { box-shadow:none; color:var(--ember-text); }
  .menu .sep { display:none; }
  .nav.open .menu { display:flex; }
  .menu-btn { display:inline-grid; }
  .plat, .menu .plat-menu, .plat.open .plat-menu { display:contents; }
  .plat-btn, .plat-menu::before, .plat-menu small, .plat-menu .plat-all { display:none; }
  .plat-menu a { align-items:center; padding:11px 0; border-radius:0; border-bottom:1px solid var(--line); background:none; }
  .plat-menu a:hover, .plat-menu a:focus-visible { background:none; }
  .plat-menu b { font-size:14px; font-weight:400; }
}
@media (max-width:520px) {
  .nav-in { gap:10px; }
  .gh { gap:5px; padding:7px 4px; }
  .gh-t { display:none; }
  .gh-n { padding-left:5px; }
  .brand .beta { display:none; }
}

/* ---------- sections and harbour patterns ---------- */
main > section { position:relative; isolation:isolate; }
.pat-wrap { position:absolute; inset:0; z-index:-1; pointer-events:none; overflow:hidden; }
.pat-wrap svg { width:100%; height:100%; display:block; }
.pat-wrap svg * { vector-effect:non-scaling-stroke; }
.pat-wrap.art {
  opacity:.2;
  -webkit-mask-image:linear-gradient(to right, transparent 34%, rgba(0,0,0,.5) 58%, #000 84%);
  mask-image:linear-gradient(to right, transparent 34%, rgba(0,0,0,.5) 58%, #000 84%);
}
@media (max-width:760px) {
  .pat-wrap.art {
    -webkit-mask-image:linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.4) 100%);
    mask-image:linear-gradient(to bottom, transparent 20%, rgba(0,0,0,.4) 100%);
    opacity:.16;
  }
}

.phero { padding:64px 0 56px; border-bottom:1px solid var(--line); }
main > .phero {
  background:
    radial-gradient(55% 75% at 82% 18%, color-mix(in srgb, var(--ember) 10%, transparent), transparent 70%),
    radial-gradient(45% 60% at 8% 100%, color-mix(in srgb, #3D8BFF 6%, transparent), transparent 70%),
    linear-gradient(to bottom, var(--bg-alt), var(--bg));
}
.phero .d1 { margin:18px 0 16px; max-width:760px; }
.phero .note { margin-top:14px; max-width:620px; }
.phero .acts { margin-top:24px; }
.crumb { font:400 11px/1 var(--f-mono); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.crumb a:hover { color:var(--ink); }
.crumb span { margin:0 8px; color:var(--line-strong); }
@media (max-width:640px) { .phero { padding:44px 0 40px; } }

.sec { padding:80px 0; border-bottom:1px solid var(--line); }
.sec.alt { background:var(--bg-alt); }
.sec.slim { padding:52px 0; }
.head { display:grid; grid-template-columns:minmax(0, 1.1fr) minmax(0, .9fr); gap:56px; align-items:end; margin-bottom:36px; }
.head > p { font-size:15.5px; line-height:1.65; color:var(--text-2); }
.head > p code { color:var(--ink); }
.head.solo { grid-template-columns:minmax(0, 1fr); max-width:720px; gap:14px; }
@media (max-width:900px) {
  .sec { padding:56px 0; }
  .sec.slim { padding:44px 0; }
  .head { grid-template-columns:minmax(0, 1fr); gap:14px; margin-bottom:26px; }
}

/* plain sections: yard tile fading in from the right */
:root { --sec-tile:url("data:image/svg+xml,%3Csvg fill='%23E1D9CA' fill-opacity='.55' xmlns='http://www.w3.org/2000/svg' width='264' height='93'%3E%3Crect x='0' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='60' width='38' height='15' rx='1.5'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sec-tile:url("data:image/svg+xml,%3Csvg fill='%2326303A' fill-opacity='.55' xmlns='http://www.w3.org/2000/svg' width='264' height='93'%3E%3Crect x='0' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='60' width='38' height='15' rx='1.5'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] { --sec-tile:url("data:image/svg+xml,%3Csvg fill='%2326303A' fill-opacity='.55' xmlns='http://www.w3.org/2000/svg' width='264' height='93'%3E%3Crect x='0' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='0' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='20' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='210' y='40' width='38' height='15' rx='1.5'/%3E%3Crect x='0' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='42' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='84' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='126' y='60' width='38' height='15' rx='1.5'/%3E%3Crect x='168' y='60' width='38' height='15' rx='1.5'/%3E%3C/svg%3E"); }
main > section.sec:not(.alt)::before {
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(to left, transparent 0%, color-mix(in srgb, var(--bg) 40%, transparent) 30%, var(--bg) 70%), var(--sec-tile) right 24px top 24px repeat;
}

/* grey sections: ribbed container wall + top row of stacked boxes */
main > section.sec.alt {
  background-image:repeating-linear-gradient(90deg, transparent 0 14px, color-mix(in srgb, var(--ink) 3.5%, transparent) 14px 17px, transparent 17px 20px);
}
main > section.sec.alt::before {
  content:""; position:absolute; left:0; right:0; top:0; height:20px; z-index:-1; opacity:.55; pointer-events:none;
  background:
    repeating-linear-gradient(90deg, var(--line-strong) 0 46px, transparent 46px 50px) 0 0 / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 25px, var(--line-strong) 25px 71px, transparent 71px 75px) 0 11px / 100% 9px no-repeat;
}

/* ---------- status chips ---------- */
.chip {
  display:inline-flex; align-items:center; gap:6px;
  font:400 10px/1 var(--f-mono); letter-spacing:.08em; text-transform:uppercase;
  color:var(--text-2); border:1px solid var(--line-strong); border-radius:var(--r-s);
  padding:4px 7px; white-space:nowrap;
}
.chip.hot {
  color:var(--ember-text);
  background:var(--ember-soft);
  border-color:color-mix(in srgb, var(--ember) 55%, var(--line));
}

/* ---------- yellow-label card grids (.cells) ---------- */
.cells {
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr));
  border:1px solid var(--line-strong); border-radius:var(--r); overflow:hidden;
  background:var(--surface);
}
.cells > * {
  padding:24px 24px 26px;
  border-right:1px solid var(--line-strong);
  border-bottom:1px solid var(--line-strong);
  margin:0 -1px -1px 0;
  min-width:0;
}
.cells.c2 { grid-template-columns:repeat(2, minmax(0, 1fr)); }
.cells.c1 { grid-template-columns:minmax(0, 1fr); max-width:560px; }
.cells .k { display:flex; align-items:center; gap:10px; margin-bottom:16px; color:var(--ember-text); }
.cells .k .ic { width:15px; height:15px; }
.cells h3 { font-size:16px; margin-bottom:8px; color:var(--ink); }
.cells p { font-size:14.5px; color:var(--text-2); line-height:1.6; }
.cells p code { color:var(--ink); font-size:13.5px; }
.cells p a:not(.more) { color:var(--ink); border-bottom:1px solid var(--line-strong); }
.cells p a:not(.more):hover { border-color:var(--ember); }
.cells .more { margin-top:14px; }
.cells > a.cell-link { display:flex; flex-direction:column; color:inherit; }
.cell-link:hover { background:var(--surface-2); }
.cell-link:hover .more { color:var(--ink); }
.cell-link:focus-visible { outline:2px solid var(--ember); outline-offset:-2px; }
@media (max-width:900px) { .cells { grid-template-columns:repeat(2, minmax(0, 1fr)); } }
@media (max-width:560px) { .cells, .cells.c2 { grid-template-columns:minmax(0, 1fr); } .cells > * { padding:20px 18px 22px; } }

/* ---------- small plugin cards (home and browse) ---------- */
.plugin-card { gap:0; }
.plugin-card-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.plugin-mark {
  width:34px; height:34px; flex:none; display:grid; place-items:center;
  border:1px solid var(--line-strong); border-radius:var(--r-s);
  background:var(--bg); color:var(--ink);
}
.plugin-mark svg { width:20px; height:20px; fill:currentColor; }
.plugin-mark.lg-mark { width:44px; height:44px; border-radius:var(--r); background:var(--surface); }
.plugin-mark.lg-mark svg { width:26px; height:26px; }
.plugin-card h3 { font-size:17px; margin-bottom:6px; }
.plugin-card p { font-size:14.5px; color:var(--text-2); line-height:1.55; }
.plugin-card .more { margin-top:auto; padding-top:16px; }
.more-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:12px 24px; margin-bottom:24px; }
.more-head.c1 { max-width:560px; }

/* ---------- plugin detail hero ---------- */
.plugin-hero-in {
  display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 480px);
  gap:56px; align-items:start;
}
.plugin-title-row {
  display:flex; flex-wrap:wrap; align-items:center; gap:12px 14px;
  margin:18px 0 16px;
}
.plugin-title-row .d1 { margin:0; }
@media (max-width:1000px) {
  .plugin-hero-in { grid-template-columns:minmax(0, 1fr); gap:40px; }
  .plugin-hero-in > .panel-figure { max-width:540px; }
}

/* ---------- install command bar (marked Coming) ---------- */
.cmd {
  display:flex; gap:10px; align-items:center;
  margin:22px 0 0; padding:10px 12px; max-width:460px;
  background:var(--term-bg); color:var(--term-fg);
  border:1px solid var(--line-strong); border-radius:var(--r);
  font:12px/1.5 var(--f-mono);
  min-width:0;
}
.cmd::before { content:"$"; color:#E0B420; flex:none; }
.cmd code { font-size:inherit; flex:1; min-width:0; overflow-x:auto; white-space:nowrap; }
.coming-tag {
  flex:none; margin:-3px -4px -3px 0;
  font:400 10px/1 var(--f-mono); letter-spacing:.08em; text-transform:uppercase;
  color:#E8C04A; background:rgba(224, 180, 32, 0.14);
  border:1px solid rgba(224, 180, 32, 0.42); border-radius:var(--r-s);
  padding:5px 7px; white-space:nowrap;
}

/* ---------- Kiri-window panel mock (flat style, offset container box) ---------- */
.panel-figure { margin:0; display:grid; gap:18px; min-width:0; }
.panel-figure figcaption { font-size:13px; color:var(--muted); line-height:1.5; }
@media (max-width:640px) { .panel-figure .kw { margin-right:9px; } }
.kw {
  --w-bg:#0F1419;
  --w-side:#131920;
  --w-panel:#171E26;
  --w-input:#0A0E12;
  --w-line:#26303A;
  --w-text:#F6F2EA;
  --w-muted:#9AA3AE;
  --w-moss:#5CC99A;
  --w-ember:#E0B420;
  border-radius:var(--r);
  overflow:hidden;
  background:var(--w-bg);
  color:var(--w-text);
  border:1px solid var(--line-strong);
  box-shadow:9px 9px 0 -1px var(--surface-2), 9px 9px 0 0 var(--line-strong);
  font:400 12.5px/1.4 var(--f-text);
  min-width:0;
}
.kw-bar {
  display:flex; align-items:center; gap:7px; height:34px; padding:0 12px;
  background:var(--w-side); border-bottom:1px solid var(--w-line);
}
.kw-dots { display:inline-flex; gap:6px; }
.kw-dots i { width:8px; height:8px; border-radius:50%; background:#28313B; display:block; }
.kw-bar-title { margin-left:6px; font:500 11.5px/1 var(--f-mono); color:var(--w-muted); }
.kw-bar-tag {
  margin-left:auto; font:400 9.5px/1 var(--f-mono); text-transform:uppercase; letter-spacing:.08em;
  color:var(--w-muted); padding:3px 6px; border-radius:var(--r-s); border:1px solid var(--w-line);
}
.kw-body { display:grid; grid-template-columns:44px minmax(0, 1fr); }
.kw-rail {
  display:flex; flex-direction:column; align-items:center; gap:6px;
  padding:12px 0; background:var(--w-side); border-right:1px solid var(--w-line);
}
.kw-rail-item {
  width:28px; height:28px; border-radius:var(--r-s);
  display:grid; place-items:center; color:var(--w-muted);
}
.kw-rail-item svg { width:15px; height:15px; fill:currentColor; }
.kw-rail-item.is-active {
  color:var(--w-ember); background:rgba(224, 180, 32, 0.14);
  border:1px solid rgba(224, 180, 32, 0.36);
}
.kw-pane { padding:14px; display:grid; gap:12px; min-width:0; }
.kw-head { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.kw-head-title { display:inline-flex; align-items:center; gap:8px; font-weight:500; font-size:14px; color:var(--w-text); }
.kw-head-title svg { width:16px; height:16px; fill:currentColor; }
.kw-status {
  display:inline-flex; align-items:center; gap:6px;
  font:400 10px/1 var(--f-mono); text-transform:uppercase; letter-spacing:.08em;
  padding:4px 7px; border-radius:var(--r-s);
  color:var(--w-moss); background:rgba(92, 201, 154, 0.12); border:1px solid rgba(92, 201, 154, 0.36);
}
.kw-status i { width:5px; height:5px; border-radius:50%; background:var(--w-moss); display:block; }
.kw-fields { display:grid; gap:10px; min-width:0; }
.kw-field { display:grid; gap:4px; min-width:0; }
.kw-label { font:400 10px/1.2 var(--f-mono); text-transform:uppercase; letter-spacing:.08em; color:var(--w-muted); }
.kw-input {
  display:flex; align-items:center; justify-content:space-between; gap:6px 10px;
  padding:7px 10px; border-radius:var(--r-s);
  background:var(--w-input); border:1px solid var(--w-line);
  font:12px/1.35 var(--f-mono); color:var(--w-text);
  min-width:0; overflow:hidden;
}
.kw-input span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.kw-input em { font-style:normal; color:var(--w-muted); font-size:10.5px; flex:none; }
.kw-input-wrap { flex-wrap:wrap; }
.kw-input-wrap span { flex:none; }
.kw-input-wrap em { overflow-wrap:anywhere; flex:0 1 auto; }
.kw-row2 { display:grid; grid-template-columns:minmax(0, 1fr) 82px; gap:8px; min-width:0; }
@media (max-width:420px) { .kw-row2 { grid-template-columns:1fr; } }

.kw-list {
  list-style:none; margin:0; padding:0;
  border-radius:var(--r-s); border:1px solid var(--w-line); background:var(--w-panel);
  overflow:hidden;
}
.kw-list li {
  display:flex; align-items:center; gap:8px; padding:7px 10px;
  font-size:12px; min-width:0;
}
.kw-list li + li { border-top:1px solid var(--w-line); }
.kw-check {
  width:14px; height:14px; border-radius:3px; flex:none;
  border:1px solid var(--w-line); background:var(--w-input);
  display:grid; place-items:center; font:600 10px/1 var(--f-mono);
}
.kw-check.on { background:var(--w-ember); border-color:var(--w-ember); color:#1A1400; }
.kw-cname { font-weight:500; color:var(--w-text); }
.kw-cimg { font-family:var(--f-mono); font-size:11px; color:var(--w-muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; flex:1; min-width:0; }
.kw-cport { font-family:var(--f-mono); font-size:11px; color:var(--w-muted); flex:none; }
.kw-list li.is-off { opacity:.55; }

.kw-foot {
  display:flex; align-items:center; justify-content:space-between; gap:8px; flex-wrap:wrap;
  padding-top:9px; border-top:1px solid var(--w-line);
  font:400 11px/1.4 var(--f-mono); color:var(--w-muted);
}
.kw-foot-addr { color:var(--w-text); overflow-wrap:anywhere; }

/* ---------- footer (harbour skyline on water, runkiri.com) ---------- */
:root { --harbour:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='96'%3E%3Crect x='0' y='81' width='40' height='13' rx='1'/%3E%3Crect x='0' y='66' width='40' height='13' rx='1'/%3E%3Crect x='43' y='81' width='40' height='13' rx='1'/%3E%3Crect x='43' y='66' width='40' height='13' rx='1'/%3E%3Crect x='43' y='51' width='40' height='13' rx='1'/%3E%3Crect x='43' y='36' width='40' height='13' rx='1'/%3E%3Crect x='86' y='81' width='40' height='13' rx='1'/%3E%3Crect x='86' y='66' width='40' height='13' rx='1'/%3E%3Crect x='86' y='51' width='40' height='13' rx='1'/%3E%3Crect x='129' y='81' width='40' height='13' rx='1'/%3E%3Crect x='172' y='81' width='40' height='13' rx='1'/%3E%3Crect x='172' y='66' width='40' height='13' rx='1'/%3E%3Crect x='172' y='51' width='40' height='13' rx='1'/%3E%3Crect x='172' y='36' width='40' height='13' rx='1'/%3E%3Crect x='172' y='21' width='40' height='13' rx='1'/%3E%3Crect x='215' y='81' width='40' height='13' rx='1'/%3E%3Crect x='215' y='66' width='40' height='13' rx='1'/%3E%3Crect x='215' y='51' width='40' height='13' rx='1'/%3E%3Crect x='258' y='81' width='40' height='13' rx='1'/%3E%3Crect x='258' y='66' width='40' height='13' rx='1'/%3E%3Crect x='301' y='81' width='40' height='13' rx='1'/%3E%3Crect x='301' y='66' width='40' height='13' rx='1'/%3E%3Crect x='301' y='51' width='40' height='13' rx='1'/%3E%3Crect x='301' y='36' width='40' height='13' rx='1'/%3E%3Crect x='387' y='81' width='40' height='13' rx='1'/%3E%3Crect x='387' y='66' width='40' height='13' rx='1'/%3E%3Crect x='387' y='51' width='40' height='13' rx='1'/%3E%3Crect x='430' y='81' width='40' height='13' rx='1'/%3E%3Crect x='430' y='66' width='40' height='13' rx='1'/%3E%3Crect x='430' y='51' width='40' height='13' rx='1'/%3E%3Crect x='430' y='36' width='40' height='13' rx='1'/%3E%3Crect x='430' y='21' width='40' height='13' rx='1'/%3E%3Crect x='473' y='81' width='40' height='13' rx='1'/%3E%3Crect x='473' y='66' width='40' height='13' rx='1'/%3E%3Crect x='516' y='81' width='40' height='13' rx='1'/%3E%3Crect x='516' y='66' width='40' height='13' rx='1'/%3E%3Crect x='516' y='51' width='40' height='13' rx='1'/%3E%3Crect x='516' y='36' width='40' height='13' rx='1'/%3E%3Crect x='559' y='81' width='40' height='13' rx='1'/%3E%3Crect x='602' y='81' width='40' height='13' rx='1'/%3E%3Crect x='602' y='66' width='40' height='13' rx='1'/%3E%3Crect x='602' y='51' width='40' height='13' rx='1'/%3E%3Crect x='348' y='14' width='4' height='82'/%3E%3Crect x='378' y='14' width='4' height='82'/%3E%3Crect x='328' y='10' width='86' height='5'/%3E%3Crect x='366' y='15' width='2' height='26'/%3E%3Crect x='352' y='41' width='30' height='11' rx='1'/%3E%3C/svg%3E"); }
.foot { position:relative; padding:150px 0 36px; font-size:13.5px; color:var(--muted); margin-top:auto; }
.foot::before {
  content:""; position:absolute; left:0; right:0; top:0; height:96px; pointer-events:none;
  background:var(--line-strong); opacity:.5;
  -webkit-mask-image:var(--harbour); mask-image:var(--harbour);
  -webkit-mask-repeat:repeat-x; mask-repeat:repeat-x;
  -webkit-mask-position:center bottom; mask-position:center bottom;
}
.foot::after {
  content:""; position:absolute; left:0; right:0; top:96px; height:22px; pointer-events:none;
  background:
    repeating-linear-gradient(90deg, color-mix(in srgb, var(--muted) 35%, transparent) 0 18px, transparent 18px 26px) 0 4px / 100% 2px no-repeat,
    repeating-linear-gradient(90deg, transparent 0 9px, color-mix(in srgb, var(--muted) 25%, transparent) 9px 22px, transparent 22px 26px) 0 12px / 100% 2px no-repeat,
    color-mix(in srgb, var(--muted) 10%, transparent);
}
.foot-g { display:grid; grid-template-columns:1.5fr repeat(4, minmax(0, 1fr)); gap:28px; }
.foot-g > div:first-child p { margin-top:14px; max-width:260px; line-height:1.55; }
.foot h2 { font:400 10.5px/1 var(--f-mono); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:14px; }
.foot li a { display:block; color:var(--text-2); padding:4px 0; }
.foot li a:hover { color:var(--ink); }
.foot-b { margin-top:44px; padding-top:20px; border-top:1px solid var(--line); line-height:1.6; }
@media (max-width:900px) {
  .foot-g { grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .foot-g > div:first-child { grid-column:1 / -1; }
}
