/* Dark violet liquid glass, rendered with CSS and native SVG icons. */
:root {
  color-scheme: dark;
  --bg: #0b0714;
  --ink: #f3edff;
  --muted: #b3a6cb;
  --accent: #c2a4ff;
  --line: rgba(217, 195, 255, .15);
  --glass: rgba(37, 25, 63, .5);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; background: linear-gradient(160deg, #140e25, #0b0714 75%); }
.orb { position: absolute; border-radius: 50%; filter: blur(65px); opacity: .48; }
.orb-one { width: 330px; height: 370px; background: #6a36b2; top: -130px; right: -95px; }
.orb-two { width: 280px; height: 280px; background: #492794; top: 470px; left: -185px; }
.orb-three { width: 260px; height: 320px; background: #8a3574; bottom: -180px; right: -180px; opacity: .22; }
.glass { background: linear-gradient(135deg, rgba(206, 176, 255, .085), rgba(120, 91, 168, .025)), var(--glass); border: 1px solid var(--line); backdrop-filter: blur(24px) saturate(140%); -webkit-backdrop-filter: blur(24px) saturate(140%); box-shadow: inset 0 1px 0 rgba(238, 219, 255, .075), 0 12px 35px rgba(0, 0, 0, .1); }
main { max-width: 620px; margin: auto; padding: calc(22px + env(safe-area-inset-top)) 20px 120px; }
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -.7px; line-height: 1.2; }
.brand small { display: block; font-size: 10px; color: var(--muted); font-weight: 400; letter-spacing: .8px; margin-top: 4px; }
.logo { width: 44px; height: 44px; border-radius: 15px; background: linear-gradient(145deg, #cfb5ff, #8d57dc); color: #291446; display: grid; place-items: center; box-shadow: inset 0 1px 2px #f4e8ff90, 0 4px 20px #9254ea30; }
.logo svg { width: 25px; height: 25px; stroke-width: 1.9; }
.avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #b790fa15; border: 1px solid var(--line); color: #e0caff; font-size: 13px; }
.hero { border-radius: 26px; padding: 24px 22px 16px; position: relative; overflow: hidden; }
.hero::before { content: ""; width: 220px; height: 220px; border-radius: 50%; position: absolute; top: -120px; right: -90px; background: radial-gradient(circle, #d7baff24, transparent 70%); pointer-events: none; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: 1.9px; color: var(--muted); }
h1 { font-size: clamp(28px, 7.4vw, 38px); letter-spacing: -1.3px; line-height: 1.16; font-weight: 650; margin: 14px 0 10px; }
h1 span { color: var(--accent); }
.intro { color: var(--muted); font-size: 12px; margin: 0; line-height: 1.6; }
.hero-icon { position: absolute; right: 15px; top: 49px; transform: rotate(12deg); width: 70px; height: 80px; display: grid; place-items: center; color: #d0b1ff; background: linear-gradient(145deg, #c5a2ff1c, #8252c90a); border: 1px solid #ddc4ff20; border-radius: 23px; box-shadow: inset 1px 1px 1px #d9b9ff20, 0 10px 35px #9854ef18; opacity: .4; }
.hero-icon svg { width: 41px; height: 41px; }
.status { display: flex; align-items: center; gap: 7px; color: #d3c3ef; font-size: 10px; margin-top: 19px; padding-top: 13px; border-top: 1px solid #c8abff12; position: relative; z-index: 1; }
.dot, .footer-dot { width: 5px; height: 5px; border-radius: 50%; background: #bb98f2; box-shadow: 0 0 9px #c39bff70; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0 26px; }
.stats>div { padding: 14px; border-radius: 19px; position: relative; overflow: hidden; }
.stat-icon { display: block; color: #b39bdb; margin-bottom: 9px; }
.stat-icon svg { width: 17px; height: 17px; }
.stats strong { display: block; font-size: 25px; font-weight: 600; line-height: 1.1; letter-spacing: -.6px; }
.stats>div>span:last-child { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
h2 { font-size: 17px; letter-spacing: -.4px; font-weight: 600; margin: 0; }
.section-label { font-size: 7px; letter-spacing: 1.2px; color: #a089c0; white-space: nowrap; }
.search { display: flex; align-items: center; padding: 13px 15px; border-radius: 16px; gap: 10px; color: #ab92cf; }
.search svg { width: 18px; height: 18px; }
input[type=search] { width: 100%; color: var(--ink); font: inherit; font-size: 12px; border: 0; outline: 0; background: none; }
input::placeholder { color: #a798bd; }
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 14px 0 3px; scrollbar-width: none; }
button { font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.chips button { display: flex; align-items: center; gap: 5px; white-space: nowrap; background: #b794ef08; border: 1px solid #ceb2fc14; color: #bdb0d6; padding: 8px 12px; border-radius: 12px; font-size: 10px; transition: background .18s, color .18s; }
.chips svg { width: 13px; height: 13px; }
.chips .selected { color: #f3e9ff; background: linear-gradient(140deg, #a26ee448, #734fa144); border-color: #ceb2fc45; box-shadow: inset 0 1px 0 #efdcff18, 0 2px 12px #9d69da10; }
.notice { font-size: 12px; color: var(--muted); line-height: 1.7; margin: 17px 3px 11px; }
.notice:empty { display: none; }
.message { width: 100%; text-align: left; color: var(--ink); padding: 17px; border-radius: 21px; margin-top: 12px; transition: border-color .18s, transform .18s; }
.message:hover { border-color: #cfaeff45; transform: translateY(-2px); }
.row-top { display: flex; align-items: center; gap: 10px; }
.chat-icon { width: 35px; height: 35px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: #e5d0ff; background: linear-gradient(135deg, #b88afa2a, #74579624); border: 1px solid #dfc5ff16; font-size: 13px; }
.chat-meta { flex: 1; min-width: 0; }
.chat-meta strong { display: block; font-weight: 600; font-size: 12px; overflow-wrap: anywhere; }
.chat-meta small { color: #a594bf; font-size: 10px; }
.time { color: #9f8bb8; font-size: 9px; white-space: nowrap; }
.body { font-size: 12px; line-height: 1.6; color: #d9cfe9; margin: 14px 0 15px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row-bottom { display: flex; justify-content: space-between; align-items: center; }
.badge { display: flex; gap: 5px; align-items: center; font-size: 9px; color: #bf9ddf; background: #b385e415; border: 1px solid #c5a0ef0f; border-radius: 7px; padding: 4px 7px; }
.badge::before { content: ""; width: 3px; height: 3px; background: #b68cd9; border-radius: 50%; }
.kind { color: #ad98c7; font-size: 9px; display: flex; align-items: center; gap: 5px; }
.kind svg { width: 13px; height: 13px; }
.load, .save { width: 100%; border: 1px solid #dcc3ff35; border-radius: 15px; padding: 14px; background: linear-gradient(135deg, #b686f0, #9261d2); color: #1b102b; font-weight: 650; margin-top: 20px; box-shadow: inset 0 1px 0 #f6eaff4d, 0 8px 30px #864ed325; display: flex; justify-content: center; align-items: center; gap: 12px; }
.save svg { width: 18px; height: 18px; }
.hidden { display: none!important; }
nav { position: fixed; z-index: 4; bottom: calc(16px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 40px); max-width: 420px; border-radius: 23px; padding: 7px; display: flex; gap: 7px; background-color: #1a112de6!important; box-shadow: inset 0 1px 0 #e8cfff15, 0 15px 45px #0006!important; }
nav button { width: 50%; padding: 11px 15px; border: 1px solid transparent; background: none; color: #a995c1; border-radius: 17px; display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 11px; }
nav svg { width: 18px; height: 18px; }
nav button.active { color: #e2c8ff; background: linear-gradient(135deg, #b189ee26, #ad7cef12); border-color: #c9a7fb22; box-shadow: inset 0 1px 0 #dfc8ff0d; }
footer { display: flex; justify-content: center; align-items: center; gap: 7px; font-size: 7px; letter-spacing: 1.5px; color: #8f7aa8; margin-top: 28px; }
.footer-dot { width: 3px; height: 3px; opacity: .6; }
.settings-heading { padding: 7px 1px 14px; }
.settings-heading h1 { font-size: 36px; }
.panel { border-radius: 23px; padding: 20px; margin: 14px 0; }
.panel label { font-size: 14px; font-weight: 600; }
.panel p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0 14px; }
select { width: 100%; border: 1px solid #caa6ff25; border-radius: 13px; padding: 13px; background: #221731; color: #dfc9ff; font: inherit; font-size: 12px; }
.privacy { display: flex; align-items: flex-start; gap: 12px; border-radius: 20px; padding: 17px; margin-top: 25px; color: #a08bb9; }
.privacy>svg { color: #c9a6f4; width: 20px; height: 20px; margin-top: 3px; }
.privacy p { margin: 0; font-size: 11px; line-height: 1.7; }
dialog { color: var(--ink); border-radius: 26px; width: calc(100% - 32px); max-width: 530px; max-height: 85vh; padding: 27px; overflow: auto; background-color: #1f142de8!important; }
dialog::backdrop { background: #090311ae; backdrop-filter: blur(9px); -webkit-backdrop-filter: blur(9px); }
#close-detail { float: right; border: 0; background: #bc95f71a; width: 30px; height: 30px; border-radius: 50%; font-size: 21px; line-height: 1; color: #c9b3e5; }
#detail-title { margin-top: 15px; font-size: 24px; }
#detail-date { color: var(--muted); font-size: 11px; margin: 8px 0 20px; }
#detail-body { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; color: #dfd4ef; }
#detail-media img, #detail-media video { width: 100%; border-radius: 15px; margin-top: 20px; }
#detail-media audio { width: 100%; margin-top: 20px; }
#detail-media a { display: inline-block; color: #d4b1ff; margin-top: 20px; }
#save-status { color: #d4b1ff; line-height: 1.6; font-size: 12px; }
button:disabled { opacity: .5; cursor: wait; }
@supports not (backdrop-filter: blur(1px)) { .glass { background-color: #251933; } }
@media (min-width: 500px) { .hero { padding: 28px; } .hero-icon { opacity: .8; right: 27px; top: 55px; } .stats>div { padding: 17px; } .stats strong { font-size: 29px; } }
@media (max-width: 360px) { main { padding-left: 16px; padding-right: 16px; } .hero { padding: 19px 16px 14px; } h1 { font-size: 27px; } .hero-icon { right: -15px; opacity: .2; } .section-label { display: none; } .time { font-size: 8px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none!important; } }
