/* My search (/my/): the axi0 family look. True black, Instrument Sans, the orange core as the one accent.
   No inline styles anywhere (the page runs under style-src 'self'); the wallpaper presets repeat search.css's values
   (keep the two in step: test-mine checks them). */
@font-face {
  font-family: "Instrument Sans";
  src: url(/axi0/fonts/instrument-sans-latin-var.woff2) format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
:root {
  --core: #f6a04d; --ink: #f5f5f7; --text: #d6d6dc; --mute: #8e8e98; --line: #1c1c21; --line2: #2a2a31;
  --panel: #0a0a0c; --hover: #141418; --danger: #ff8f78;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: #000; }
body {
  margin: 0; min-height: 100vh; color: var(--text); background: transparent;
  font: 15px/1.55 "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
}
a { color: var(--core); text-underline-offset: 3px; }
::selection { background: rgba(246, 160, 77, .35); }
[hidden] { display: none !important; }
.is-locked .when-unlocked, .is-unlocked .when-locked { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; padding: 8px 14px; border-radius: 999px; background: var(--core); color: #000; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }

/* the wallpaper you chose, behind everything (same presets as the search page) */
.wall { position: fixed; inset: 0; z-index: -1; pointer-events: none; transition: opacity .5s ease; }
.wall-ember, .sw-ember {
  background: radial-gradient(58% 46% at 16% 6%, rgba(246, 160, 77, .2), rgba(246, 160, 77, 0) 72%),
              radial-gradient(48% 40% at 88% 92%, rgba(226, 98, 46, .15), rgba(226, 98, 46, 0) 70%);
}
.wall-horizon, .sw-horizon {
  background: radial-gradient(130% 58% at 50% 112%, rgba(246, 160, 77, .3), rgba(246, 160, 77, .07) 48%, rgba(246, 160, 77, 0) 72%);
}
.wall-glacier, .sw-glacier {
  background: radial-gradient(64% 48% at 84% 4%, rgba(92, 168, 255, .18), rgba(92, 168, 255, 0) 70%),
              radial-gradient(56% 44% at 8% 96%, rgba(118, 216, 236, .1), rgba(118, 216, 236, 0) 70%);
}
.wall-signal, .sw-signal {
  background: linear-gradient(rgba(255, 255, 255, .05) 1px, rgba(0, 0, 0, 0) 1px) 0 0 / 56px 56px,
              linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, rgba(0, 0, 0, 0) 1px) 0 0 / 56px 56px;
}
.wall-signal {
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 40%, #000 30%, transparent 100%);
}
.wall-own {
  background: radial-gradient(ellipse 70% 60% at 50% 42%, rgba(0, 0, 0, .55), rgba(0, 0, 0, .1) 100%),
              var(--own, none) center / cover no-repeat;
  opacity: .42;
}
/* the swatches show the same light a little stronger, so a 64px tile reads */
.sw { position: relative; display: block; height: 64px; border-radius: 12px; border: 1px solid var(--line2); background-color: #000; overflow: hidden; }
.sw-ember::after, .sw-horizon::after, .sw-glacier::after { content: ""; position: absolute; inset: 0; background: inherit; }
.sw-signal { background-size: 14px 14px, 14px 14px; }

/* ---- header ------------------------------------------------------------------------------------------------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1080px; margin: 0 auto; padding: 22px 20px 8px; }
.mark { display: inline-flex; align-items: baseline; gap: .12em; color: #fff; text-decoration: none; font-size: 26px; font-weight: 600; letter-spacing: -.045em; white-space: nowrap; }
.mark-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--core); box-shadow: 0 0 9px var(--core); transform: translateY(-2px); }
.mark-s { color: var(--mute); font-weight: 500; }
.mark-my { margin-left: .6em; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--core); }
.top-nav { display: flex; gap: 20px; }
.top-nav a { color: #b4b4bd; text-decoration: none; font-size: 14px; }
.top-nav a:hover { color: #fff; text-decoration: underline; }

/* ---- layout ------------------------------------------------------------------------------------------------- */
main { max-width: 1080px; margin: 0 auto; padding: 4px 20px 32px; }
h1 { margin: 22px 0 8px; color: #fff; font-size: clamp(32px, 5vw, 44px); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.lede { max-width: 46em; margin: 0; color: #a3a3ad; }
.sync { display: flex; align-items: center; gap: 8px; min-height: 22px; margin: 12px 0 0; color: var(--mute); font-size: 13px; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3a3a42; flex: none; }
.sync:empty::before { display: none; }
.sync.is-ok::before { background: var(--core); box-shadow: 0 0 7px rgba(246, 160, 77, .8); }
.sync.is-busy::before { background: #b9b9c2; }
.sync.is-bad { color: var(--danger); }
.sync.is-bad::before { background: var(--danger); }
.card { margin-top: 18px; padding: 22px 24px 24px; border: 1px solid var(--line); border-radius: 20px; background: rgba(10, 10, 12, .9); }
.grid { display: grid; grid-template-columns: 1fr; gap: 18px; margin-top: 18px; }
.grid > .card { margin-top: 0; }
@media (min-width: 960px) { .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
h2 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; color: #fff; font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
h3 { margin: 22px 0 6px; color: #fff; font-size: 15px; font-weight: 600; }
.card > p { margin: 0 0 10px; }
.count { color: var(--mute); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.teaser { margin-top: 18px; padding: 0 4px; color: #a3a3ad; font-size: 14px; }
.teaser strong { color: #fff; font-weight: 600; }

/* ---- form controls ------------------------------------------------------------------------------------------- */
label { display: block; margin: 16px 0 6px; color: #fff; font-size: 14px; }
.opt { color: var(--mute); font-weight: 400; }
input[type="text"], textarea, select {
  width: 100%; min-height: 42px; padding: 9px 13px; border: 1px solid var(--line2); border-radius: 12px;
  background: #050506; color: #fff; font: inherit; font-size: 15px;
}
textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
select { width: auto; min-width: 140px; }
input::placeholder, textarea::placeholder { color: #7c7c87; }
input[type="text"]:focus, textarea:focus, select:focus { outline: none; border-color: var(--core); box-shadow: 0 0 0 3px rgba(246, 160, 77, .18); }
fieldset.field { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin: 0 0 6px; color: #fff; font-size: 14px; }
.hint { margin: 6px 0 0; color: var(--mute); font-size: 13px; }
.error { margin: 6px 0 0; color: var(--danger); font-size: 13px; }
.error:empty, .note:empty { display: none; }
.note { color: var(--core); font-size: 13px; }
.warn { color: #fff; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.row.tight { flex-wrap: nowrap; margin-top: 0; }
.row.tight input { flex: 1 1 auto; min-width: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 16px; margin: 0;
  border: 1px solid var(--line2); border-radius: 999px; background: var(--panel); color: #fff; font: inherit; font-size: 14px;
  white-space: nowrap; cursor: pointer; transition: border-color .15s, background .15s;
}
.btn:hover { border-color: rgba(246, 160, 77, .7); }
.btn.primary { border-color: var(--core); background: var(--core); color: #000; font-weight: 600; }
.btn.primary:hover { background: #ffb26a; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn[aria-pressed="true"] { border-color: var(--core); }
.btn.file { position: relative; overflow: hidden; }
.btn.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.btn.file:focus-within { outline: 2px solid var(--core); outline-offset: 2px; }
.check { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 14px; color: var(--text); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--core); }
.when-unlocked > .check { margin-top: 16px; }

/* ---- the Key ---------------------------------------------------------------------------------------------- */
.key .new { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.key .new h3 { margin-top: 0; }
.keyline { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0; }
.keyname { color: var(--mute); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
code, .keytext { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #fff; font-size: 14px; letter-spacing: .02em; overflow-wrap: anywhere; }
.keytext { margin: 10px 0 0; padding: 14px 16px; border: 1px dashed rgba(246, 160, 77, .55); border-radius: 12px; background: rgba(246, 160, 77, .05); font-size: 15px; user-select: all; }
.fresh .warn { margin: 0; }
.sunset { margin-top: 6px; }

/* ---- chips --------------------------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
.chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 2px; padding: 3px 3px 3px 12px; border: 1px solid rgba(246, 160, 77, .42);
  border-radius: 999px; background: rgba(246, 160, 77, .07); color: #f1f1f4; font-size: 13.5px;
}
.chip button { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: none; color: #b9b9c2; cursor: pointer; }
.chip button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.chip svg { width: 12px; height: 12px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line2); border-radius: 999px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; color: #b9b9c2; font-size: 14px; cursor: pointer; }
.seg input:checked + span { background: var(--core); color: #000; font-weight: 600; }
.seg input:focus-visible + span { outline: 2px solid var(--core); outline-offset: 2px; }

/* ---- lists (saved, history) ----------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.filters:empty { display: none; }
.filters button { min-height: 30px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: #b9b9c2; font: inherit; font-size: 13px; cursor: pointer; }
.filters button[aria-pressed="true"] { border-color: var(--core); color: #fff; background: rgba(246, 160, 77, .08); }
.list { margin: 4px 0 0; padding: 0; list-style: none; }
.list li { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list .main { flex: 1 1 auto; min-width: 0; }
.run { display: block; max-width: 100%; padding: 2px 0; border: 0; background: none; color: #fff; font: inherit; font-size: 15px; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.run:hover { color: var(--core); text-decoration: underline; text-underline-offset: 3px; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; color: var(--mute); font-size: 12.5px; }
.tag { padding: 0 8px; border: 1px solid var(--line2); border-radius: 999px; color: #b9b9c2; font-size: 12px; line-height: 20px; }
.pinned-mark { color: var(--core); }
.icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: none; color: #9a9aa4; cursor: pointer; }
.icon:hover { background: var(--hover); color: #fff; }
.icon svg { width: 17px; height: 17px; }
.icon[aria-pressed="true"] { color: var(--core); }
.tag-edit { display: flex; gap: 8px; margin-top: 8px; }
.tag-edit input { flex: 1 1 auto; min-width: 0; min-height: 36px; }
.tag-edit .btn { min-height: 36px; }
.empty { margin: 10px 0 0; color: var(--mute); font-size: 14px; }
.add { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.add .row.tight input:first-of-type { flex: 2 1 auto; }
.confirm { margin-top: 12px; padding: 14px 16px; border: 1px solid rgba(255, 143, 120, .4); border-radius: 14px; }
.confirm p { margin: 0; color: #fff; }
.switch-row { display: flex; align-items: center; gap: 12px; margin: 4px 0 4px; }
.switch-row label { margin: 0; cursor: pointer; }
.switch { position: relative; flex: none; width: 48px; height: 28px; padding: 0; border: 1px solid #3a3a42; border-radius: 999px; background: #18181d; cursor: pointer; transition: background .2s, border-color .2s; }
.switch .knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #c8c8d0; transition: transform .2s, background .2s; }
.switch[aria-checked="true"] { border-color: var(--core); background: rgba(246, 160, 77, .3); }
.switch[aria-checked="true"] .knob { transform: translateX(20px); background: var(--core); }

/* ---- wallpaper ------------------------------------------------------------------------------------------------ */
.walls { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; margin-top: 12px; }
.wall-opt { position: relative; margin: 0; cursor: pointer; }
.wall-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.wall-opt .wl { display: block; margin-top: 6px; color: #b9b9c2; font-size: 13px; }
.wall-opt input:checked + .sw { border-color: var(--core); box-shadow: 0 0 0 1px var(--core); }
.wall-opt input:checked ~ .wl { color: #fff; }
.wall-opt input:focus-visible + .sw { outline: 2px solid var(--core); outline-offset: 2px; }
.own { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.own-preview { width: 168px; height: 96px; border: 1px solid var(--line2); border-radius: 12px; background: #000 var(--own, none) center / cover no-repeat; }
.own-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* ---- footer ------------------------------------------------------------------------------------------------ */
.foot { max-width: 1080px; margin: 0 auto; padding: 8px 20px 44px; color: #868692; font-size: 12.5px; }
.foot p { margin: 0 0 6px; max-width: 60em; }
.foot a { color: #c4c4cc; text-decoration: underline; text-decoration-color: rgba(196, 196, 204, .45); }
.foot a:hover { text-decoration-color: currentColor; }

@media (max-width: 600px) {
  .top { padding: 16px 16px 4px; }
  .mark { font-size: 22px; }
  .mark-my { font-size: 10.5px; }
  .top-nav { gap: 14px; }
  main { padding: 0 14px 24px; }
  .card { padding: 18px 16px 20px; border-radius: 18px; }
  .row.tight { flex-wrap: wrap; }
  .row.tight input { flex-basis: 100%; }
  .seg { display: flex; }
  .seg label { flex: 1 1 0; }
  .seg span { justify-content: center; width: 100%; }
  .foot { padding: 8px 16px 36px; }
}
@media (prefers-reduced-motion: reduce) { .wall, .switch, .switch .knob { transition: none; } }
