/* Inner pages — same tokens as aveelon.com / Aveelon ID / My Aveelon */
:root {
  --bg: #f8f8f8; --surface: #ffffff; --surface-2: #f2f2f3; --ink: #232222; --ink-strong: #141416; --ink-2: rgba(41, 41, 41, .72);
  --muted: #8a8a8f; --line: #e4e7ec; --accent: #de3b38; --accent-hover: #cf3532; --accent-soft: rgba(222, 59, 56, .1);
  --link: #1a4fd1; --shadow: 0 4px 24px rgba(0, 0, 0, .06); --tile-mix: 12%; --r: 20px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #111111; --surface: #1c1c1e; --surface-2: #262628; --ink: #f3f3f3; --ink-strong: #ffffff; --ink-2: rgba(243, 243, 243, .72);
    --muted: #9a9aa0; --line: #2e2e31; --accent-soft: rgba(222, 59, 56, .18); --link: #8ab4ff; --shadow: none; --tile-mix: 22%;
    color-scheme: dark;
  }
}
/* the website keeps the theme chosen on the page */
:root[data-theme='dark'] {
    --bg: #111111; --surface: #1c1c1e; --surface-2: #262628; --ink: #f3f3f3; --ink-strong: #ffffff; --ink-2: rgba(243, 243, 243, .72);
    --muted: #9a9aa0; --line: #2e2e31; --accent-soft: rgba(222, 59, 56, .18); --link: #8ab4ff; --shadow: none; --tile-mix: 22%;
    color-scheme: dark;
}
:root.incognito {
  --bg: #15102a; --surface: #211a3b; --surface-2: #2a2342; --ink: #f1eefc; --ink-strong: #fff; --ink-2: rgba(241, 238, 252, .75);
  --muted: #a49cc4; --line: #3a3257; --accent-soft: rgba(222, 59, 56, .22); --link: #b7a8ff; --shadow: none; --tile-mix: 24%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink);
  font: 15px/1.45 Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
#app { flex: 1; display: flex; flex-direction: column; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink-strong); margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- header ---- */
.top { display: flex; align-items: center; gap: 20px; height: 76px; }
.top.slim { height: 72px; border-bottom: 1px solid var(--line); max-width: none; padding: 0 28px; }
.logo { display: flex; color: var(--ink-strong); flex: none; }
.tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.seg { display: flex; padding: 3px; border-radius: 11px; background: var(--surface-2); }
.seg button { height: 32px; min-width: 38px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 13px Inter, system-ui, sans-serif; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink-strong); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; flex: none; }
.icon-btn.ghost { border-color: transparent; background: none; color: var(--muted); width: 32px; height: 32px; }
.icon-btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; flex: none; background: var(--accent); color: #fff; font-weight: 700; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.incog-chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--surface-2); font-weight: 600; font-size: 14px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; font: 700 15px Inter, system-ui, sans-serif;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); }
.btn:disabled { opacity: .6; cursor: default; }

/* ---- search box ---- */
.search { flex: 1; max-width: 640px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 5px 0 15px; border-radius: 14px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--muted); }
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.search.big { max-width: 720px; width: 100%; height: 64px; padding: 0 8px 0 22px; border-radius: 20px; box-shadow: var(--shadow); margin-top: 26px; }
.search.big input { font-size: 18px; }

/* ---- start page ---- */
.home { flex: 1; display: flex; flex-direction: column; gap: 40px; padding-bottom: 40px; }
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 6vh; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.hero .muted { margin-top: 8px; font-size: 17px; }
.hint { margin-top: 16px; color: var(--muted); font-size: 14px; }
.hint a { color: var(--accent); font-weight: 600; }
.incog-note { display: flex; gap: 16px; align-items: flex-start; margin-top: 8px; padding: 20px 22px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.incog-note p { color: var(--ink-2); margin-top: 4px; }
h2 { font-size: 20px; margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line);
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0, 0, 0, .08); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); }
.tile b { margin-top: 10px; font-size: 16px; color: var(--ink-strong); }
.tile small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.tile-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in srgb, var(--c) var(--tile-mix), transparent); flex: none; }
.tile-icon.sm { width: 42px; height: 42px; border-radius: 12px; }
.marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: -12px; }
.mark { display: flex; align-items: center; gap: 8px; max-width: 220px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.mark span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fav { width: 22px; height: 22px; display: grid; place-items: center; flex: none; color: var(--muted); }
.fav img { width: 16px; height: 16px; border-radius: 3px; }
.fav.big { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; padding-top: 18px; padding-bottom: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.foot a:hover { color: var(--accent); }
.foot .muted { margin-left: auto; }
.noads { display: inline-flex; align-items: center; gap: 6px; color: #1f9d6b; font-weight: 600; }

/* ---- start page like aveelon.com: logo + search ---- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero { padding-top: 14vh; }
.hero-logo { color: var(--ink-strong); line-height: 0; }
.greet { margin-top: 14px; font-size: 17px; }
.create { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.create a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.create a:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.create-ic { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) var(--tile-mix), transparent); }
.hero .marks { margin-top: 14px; }

/* ---- ⋮⋮⋮ launcher ---- */
.launch { position: relative; }
.icon-btn.round { border-radius: 50%; }
.launch-pop { position: absolute; right: 0; top: 48px; z-index: 20; width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 140px); overflow: auto;
  padding: 16px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 60px rgba(0, 0, 0, .18); text-align: left; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.chip { height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font: 500 13px Inter, system-ui, sans-serif; cursor: pointer; }
.chip.on { background: var(--ink-strong); border-color: var(--ink-strong); color: var(--surface); }
.chip.biz:not(.on) { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; }
.app:hover { background: var(--surface-2); }
.app-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) var(--tile-mix), transparent); }
.app-name { font-weight: 600; font-size: 14px; color: var(--ink-strong); }
.app small { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.apps-h { display: flex; align-items: center; gap: 8px; margin: 16px 4px 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }

/* ---- search results ---- */
.results { padding-top: 22px; padding-bottom: 60px; padding-left: 196px; max-width: 1100px; margin: 0; }
.col { max-width: 680px; display: flex; flex-direction: column; gap: 28px; }
.results h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.own { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.own-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.own-card:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--line)); }
.own-card b { display: block; color: var(--ink-strong); }
.own-card small { color: var(--muted); font-size: 13px; }
.hit { padding: 4px 0 22px; }
.hit-site { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.hit-site img, .hit-site svg { width: 18px; height: 18px; border-radius: 4px; padding: 1px; background: var(--surface); }
.hit-title { display: block; margin-top: 4px; font-size: 19px; line-height: 1.3; color: var(--link); }
.hit-title:hover { text-decoration: underline; }
.hit p { margin-top: 4px; color: var(--ink-2); font-size: 14.5px; }
.note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); margin-bottom: 18px; font-size: 14px; }
.note.soft { flex-wrap: nowrap; background: var(--accent-soft); border-color: transparent; color: var(--ink); }
.note.soft svg { color: var(--accent); flex: none; }
.more { width: 100%; }
.empty { padding: 30px 0; }
.skeleton { height: 76px; margin-bottom: 18px; border-radius: 12px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---- history / bookmarks / downloads / settings ---- */
.list-page { display: flex; gap: 32px; padding-top: 26px; padding-bottom: 60px; }
.side { width: 210px; flex: none; display: flex; flex-direction: column; gap: 2px; }
.side a { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 14px; border-radius: 12px; color: var(--ink-2); font-weight: 500; }
.side a:hover { background: var(--surface-2); }
.side a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.list-main { flex: 1; min-width: 0; max-width: 820px; }
.list-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.list-head h1 { display: flex; align-items: center; gap: 12px; font-size: 26px; }
.list-actions { display: flex; gap: 10px; margin-left: auto; }
.filter { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.filter input { border: 0; background: none; outline: none; font: inherit; color: var(--ink); width: 200px; }
.day { font-size: 14px; color: var(--muted); margin: 18px 0 6px; }
.row { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 8px 0 12px; border-radius: 12px; }
.row:hover { background: var(--surface); }
.when { width: 46px; flex: none; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.row-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-strong); }
.row-url { max-width: 40%; color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-row { display: flex; align-items: center; gap: 14px; padding: 14px; margin-bottom: 10px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.dl-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl-main b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-actions { display: flex; gap: 8px; align-items: center; }
.bar { display: block; height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--accent); }
.card { padding: 20px 22px; margin-bottom: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.card h3 { font-size: 17px; margin-bottom: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 11px; border: 1.5px solid var(--line); cursor: pointer; font-weight: 500; }
.choice input { display: none; }
.choice.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 10px 0; border-top: 1px solid var(--line); }
.switch-row:first-of-type { border-top: 0; }
.switch-row small { display: block; margin-top: 2px; font-size: 13px; }
.switch { appearance: none; width: 44px; height: 26px; flex: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .15s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(18px); }
.acct { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.acct > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; }
.acct > .muted:first-child { flex: 1; }

@media (max-width: 860px) {
  .results { padding-left: 28px; }
  .side { display: none; }
  .seg { display: none; }
}

/* ---- website browser.aveelon.com: download the app ---- */
.get-app { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; margin-top: 34px; padding: 18px 22px; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); text-align: left; max-width: 720px; }
.get-app img { width: 52px; height: 52px; }
.get-app div { flex: 1; min-width: 220px; }
.get-app b { display: block; color: var(--ink-strong); font-size: 16px; }
.get-app small { color: var(--muted); font-size: 13.5px; }
.get-app .btns { display: flex; gap: 8px; flex-wrap: wrap; flex: none; min-width: 0; }
.btn.soon { opacity: .55; pointer-events: none; }
