:root {
  color-scheme: dark;
  --bg: #080910;
  --panel: #0d0f18;
  --panel-2: #10121d;
  --line: #24283a;
  --line-soft: rgba(130, 137, 178, 0.14);
  --text: #d9d8f5;
  --muted: #9699bf;
  --purple: #9b7aea;
  --purple-bright: #b397ff;
  --purple-wash: rgba(103, 74, 177, 0.26);
  --chrome-height: 106px;
  --sidebar-width: 254px;
  --rail-width: 345px;
  --cursor-normal: url("./assets/cursors/frames/normal/00.png") 1 1, auto;
  --cursor-link: url("./assets/cursors/frames/link/00.png") 4 1, pointer;
  --cursor-text: url("./assets/cursors/frames/text/00.png") 15 15, text;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; min-width: 320px; min-height: 100%; background: #06070c; }
body {
  min-height: 100vh;
  overflow: hidden;
  color: var(--text);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: .005em;
}
body.custom-cursor-on, body.custom-cursor-on * { cursor: var(--cursor-normal) !important; }
body.custom-cursor-on button,
body.custom-cursor-on a,
body.custom-cursor-on label,
body.custom-cursor-on [role="button"] { cursor: var(--cursor-link) !important; }
body.custom-cursor-on input,
body.custom-cursor-on textarea,
body.custom-cursor-on [contenteditable="true"] { cursor: var(--cursor-text) !important; }
button, input { font: inherit; }
button { color: inherit; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.symbol-library { position: fixed; width: 0; height: 0; overflow: hidden; }

.ambient { position: fixed; border-radius: 50%; filter: blur(90px); opacity: .12; pointer-events: none; }
.ambient-one { width: 480px; height: 480px; top: -260px; left: 16%; background: #6e4ce1; }
.ambient-two { width: 520px; height: 520px; right: -300px; bottom: -260px; background: #6a45b9; }

.browser-shell { width: 100vw; height: 100vh; min-height: 640px; overflow: hidden; background: radial-gradient(circle at 54% 28%, rgba(39, 30, 69, .13), transparent 34%), linear-gradient(150deg, #090a11, #080910 56%, #0b0c14); }
.browser-chrome { height: var(--chrome-height); border-bottom: 1px solid #202333; background: linear-gradient(180deg, #0b0c14, #0e1019); box-shadow: 0 12px 38px rgba(0,0,0,.18); position: relative; z-index: 20; }
.tab-row { height: 54px; display: flex; align-items: flex-end; border-bottom: 1px solid rgba(121, 125, 162, .08); padding: 0 16px; }
.brand-mark { width: 42px; height: 53px; margin-right: 14px; border: 0; background: transparent; position: relative; }
.mini-crystal { position: relative; display: inline-block; width: 23px; height: 30px; filter: drop-shadow(0 0 10px rgba(129, 83, 255, .3)); }
.brand-mark .mini-crystal { position: absolute; }
.crystal-face { position: absolute; inset: 0; clip-path: polygon(52% 0, 86% 18%, 100% 64%, 66% 100%, 17% 84%, 0 39%, 25% 10%); background: linear-gradient(135deg,#9c6dff,#2b1163); }
.crystal-face.b { clip-path: polygon(52% 0, 86% 18%, 58% 41%, 25% 10%); background: #7047d5; }
.crystal-face.c { clip-path: polygon(58% 41%, 100% 64%, 66% 100%, 48% 65%); background: #311368; opacity: .94; }
.tabs { height: 43px; display: flex; align-items: flex-end; gap: 6px; overflow: hidden; max-width: calc(100% - 250px); }
.tab { width: 268px; height: 43px; flex: 0 0 auto; border: 1px solid transparent; border-bottom: 0; border-radius: 11px 11px 0 0; background: transparent; display: flex; align-items: center; gap: 10px; padding: 0 13px 0 16px; color: #b7b8d7; }
.tab.active { background: linear-gradient(180deg, #191b27, #161824); border-color: #202333; color: #f1efff; box-shadow: 0 -8px 25px rgba(0,0,0,.12); }
.tiny-gem { width: 14px; height: 17px; flex: 0 0 auto; display: inline-block; background: linear-gradient(135deg,#b18aff,#351276); clip-path: polygon(55% 0, 90% 26%, 100% 70%, 55% 100%, 8% 76%, 0 30%, 35% 8%); }
.tab-label { flex: 1; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-close { width: 18px; height: 18px; color: #aaaaca; }
.icon-button { width: 38px; height: 38px; border: 0; background: transparent; border-radius: 9px; display: grid; place-items: center; color: #a7aacb; font-size: 22px; }
.icon-button:hover { background: rgba(126, 103, 196, .12); color: #d8d2ff; }
.new-tab { height: 43px; margin-left: 7px; align-self: flex-end; }
.window-controls { margin-left: auto; height: 50px; display: flex; align-items: center; gap: 30px; padding: 0 4px 0 30px; color: #9b9dbf; font-size: 20px; }

.address-row { height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 20px; }
.nav-controls { display: flex; align-items: center; gap: 2px; }
.nav-controls .icon-button { font-size: 27px; }
.muted { opacity: .46; }
.address-bar { height: 42px; flex: 1; display: flex; align-items: center; gap: 12px; padding: 0 8px 0 14px; border-radius: 24px; background: #0b0d16; border: 1px solid #2a2d42; box-shadow: inset 0 1px rgba(255,255,255,.02), 0 4px 18px rgba(0,0,0,.15); }
.address-bar:focus-within { border-color: rgba(159, 119, 246, .55); box-shadow: 0 0 0 3px rgba(117, 77, 206, .12); }
.address-bar > svg { width: 20px; height: 20px; color: #9496bb; }
.address-bar input { flex: 1; border: 0; outline: 0; color: #d6d4ef; background: transparent; min-width: 0; }
.address-bar input::placeholder { color: #9b9cbf; opacity: 1; }
.address-action { width: 34px; height: 34px; border: 0; display: grid; place-items: center; background: transparent; color: #989abf; border-radius: 50%; }
.address-action.active svg { fill: rgba(152, 112, 245, .32); color: #b191ff; }
.shield { color: #9f72ef; }
.shield.off { color: #686b83; opacity: .7; }

.browser-body { height: calc(100vh - var(--chrome-height)); display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--rail-width); }
.sidebar { min-width: 0; border-right: 1px solid #1d202e; background: linear-gradient(180deg, rgba(11,12,21,.94), rgba(12,14,22,.88)); padding: 28px 15px 20px; display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-brand { height: 51px; display: flex; align-items: center; gap: 11px; padding: 0 14px; }
.mini-crystal.large { width: 24px; height: 31px; }
.brand-name { font-size: 10px; letter-spacing: .23em; color: #9086b9; opacity: 0; transition: opacity .2s; }
.sidebar:hover .brand-name { opacity: .75; }
.nav-list { display: grid; gap: 5px; margin-top: 6px; }
.nav-item { width: 100%; height: 42px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 17px; padding: 0 13px; color: #a4a6c9; text-align: left; }
.nav-item svg { width: 23px; height: 23px; }
.nav-item:hover { color: #d6d2f2; background: rgba(80, 72, 118, .12); }
.nav-item.active { color: #d9caff; background: linear-gradient(90deg, rgba(92, 69, 155, .38), rgba(85, 67, 142, .31)); }
.sidebar-divider { height: 1px; background: #262938; margin: 18px 8px 21px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; color: #878aaa; padding: 0 10px 12px; }
.workspace-heading button { border: 0; background: transparent; color: #989abe; font-size: 23px; }
.workspace-list { display: grid; gap: 3px; }
.workspace { height: 38px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 13px; color: #b3b5d5; padding: 0 10px 0 12px; }
.workspace:hover, .workspace.active { background: rgba(115, 91, 170, .09); color: #ddd9f8; }
.workspace i { width: 12px; height: 12px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 14px color-mix(in srgb, var(--dot) 55%, transparent); }
.workspace span { flex: 1; text-align: left; }
.workspace svg { width: 16px; height: 16px; color: #747792; }
.settings-button { height: 42px; margin-top: auto; border: 0; background: transparent; display: flex; align-items: center; gap: 17px; color: #9295b8; padding: 0 13px; border-radius: 8px; }
.settings-button:hover { background: rgba(115, 91, 170, .1); color: #d9d5f0; }

.content-stage { position: relative; min-width: 0; overflow: hidden; background: radial-gradient(circle at 50% 31%, rgba(45, 32, 80, .16), transparent 25%); }
.home-view { width: 100%; height: 100%; position: relative; overflow: auto; scrollbar-width: none; }
.home-view::-webkit-scrollbar { display: none; }
.mountains { position: absolute; top: 92px; left: 0; width: 100%; height: 390px; opacity: .78; filter: drop-shadow(0 22px 34px rgba(47, 25, 84, .1)); }
.hero { min-height: 100%; position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 128px 58px 72px; text-align: center; }
.obsidian-gem { width: 126px; height: 178px; position: relative; margin-bottom: 25px; animation: hover-gem 6s ease-in-out infinite; filter: drop-shadow(0 26px 34px rgba(69, 36, 134, .21)); }
.obsidian-gem svg { width: 100%; height: 100%; overflow: visible; stroke-width: 1; }
.gem-aura { position: absolute; inset: 25% 14% 5%; border-radius: 50%; background: rgba(107, 68, 205, .16); filter: blur(31px); z-index: -1; }
@keyframes hover-gem { 0%, 100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-8px) rotate(.7deg); } }
.eyebrow { display: none; margin: 0 0 9px; color: #8f75ce; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(25px, 2.1vw, 32px); line-height: 1.2; font-weight: 650; letter-spacing: -.025em; text-shadow: 0 1px 18px rgba(112, 85, 188, .18); }
.hero-copy { margin: 12px 0 31px; color: #9699bf; font-size: 18px; }
.hero-search { width: min(100%, 774px); height: 58px; display: flex; align-items: center; gap: 15px; border: 1px solid #292d42; border-radius: 15px; background: rgba(9, 10, 18, .67); padding: 0 10px 0 18px; backdrop-filter: blur(15px); box-shadow: 0 11px 44px rgba(0,0,0,.13); }
.hero-search:focus-within { border-color: rgba(154, 116, 242, .55); box-shadow: 0 0 0 4px rgba(113, 79, 193, .1), 0 18px 55px rgba(0,0,0,.2); }
.hero-search > svg { width: 23px; height: 23px; color: #9698c5; }
.hero-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #e0def4; }
.hero-search input::placeholder { color: #9699bf; opacity: 1; }
.hero-search button { width: 39px; height: 39px; border: 0; border-radius: 50%; display: grid; place-items: center; color: #9395bd; background: transparent; }
.hero-search button:hover { color: #cdbdff; background: rgba(126, 91, 211, .12); }
.speed-dial { width: min(100%, 747px); margin-top: 29px; display: grid; grid-template-columns: repeat(6, minmax(88px, 1fr)); gap: 25px; }
.speed-card { height: 94px; min-width: 0; border: 1px solid #242838; border-radius: 18px; background: linear-gradient(150deg, rgba(21,23,34,.78), rgba(13,14,23,.88)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #9da0c2; box-shadow: 0 12px 30px rgba(0,0,0,.12), inset 0 1px rgba(255,255,255,.02); transition: .18s ease; }
.speed-card:hover { transform: translateY(-4px); border-color: rgba(142, 106, 225, .46); color: #ddd6fa; background: linear-gradient(145deg, rgba(40,31,63,.82), rgba(18,18,30,.92)); }
.site-icon { width: 30px; height: 30px; display: block; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(0,0,0,.28)); }
.youtube { color: #fff; background: #f11629; }
.github { color: #0b0c13; background: #e9e9f5; border-radius: 50%; }
.reddit { color: #fff; background: #f04420; border-radius: 50%; }
.notion { color: #eaeaf4; background: transparent; border: 2px solid #e3e3ee; border-radius: 2px; font-family: Georgia, serif; }
.wikipedia { color: #dfdfec; background: transparent; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.add-card svg { width: 27px; height: 27px; color: #8588ad; }

.right-rail { min-width: 0; border-left: 1px solid #1d202e; background: rgba(10,11,19,.55); padding: 20px 20px 22px; overflow-y: auto; }
.right-rail::-webkit-scrollbar { width: 6px; }
.right-rail::-webkit-scrollbar-thumb { background: #272a3c; border-radius: 9px; }
.widget { border: 1px solid #292c3e; background: linear-gradient(145deg, rgba(18,20,31,.77), rgba(11,12,21,.76)); border-radius: 17px; padding: 15px 14px 13px; box-shadow: 0 14px 35px rgba(0,0,0,.14), inset 0 1px rgba(255,255,255,.018); }
.widget + .widget { margin-top: 18px; }
.widget-heading { min-height: 31px; display: flex; align-items: center; justify-content: space-between; }
.widget-heading > div { display: flex; align-items: center; gap: 12px; }
.widget-heading h2 { margin: 0; font-size: 16px; font-weight: 560; color: #c9c8e4; }
.widget-heading svg { width: 22px; height: 22px; color: #8986bd; }
.widget-heading button, button.widget-heading { border: 0; background: transparent; }
.widget-heading button svg { width: 18px; height: 18px; color: #787c9f; }
.link-list { display: grid; gap: 2px; margin-top: 10px; }
.link-list button { min-height: 36px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 14px; padding: 3px 10px; color: #aaaed0; text-align: left; }
.link-list button:hover { background: rgba(111, 85, 177, .12); color: #dbd7f3; }
.link-logo { width: 21px; height: 21px; flex: 0 0 auto; display: block; object-fit: contain; font-size: 12px; font-weight: 700; }
.link-logo.obsidian { color: #b08aff; background: transparent; font-size: 20px; filter: drop-shadow(0 0 5px rgba(142,94,255,.35)); }
.link-logo.chatgpt { color: #ecebf5; background: transparent; font-size: 21px; }
.link-logo.youtube { width: 22px; height: 16px; border-radius: 5px; font-size: 9px; }
.link-logo.github { width: 20px; height: 20px; }
.link-logo.notion { width: 20px; height: 20px; font-size: 13px; }
.link-logo.wikipedia { width: 21px; height: 21px; font-size: 19px; }
.link-logo.verge { color: #b174ff; background: transparent; font-size: 18px; }
.recent-widget .link-list button { min-height: 35px; }
.notes-widget { padding: 14px 16px 17px; }
button.notes-open { width: 100%; padding: 0; }
.mini-note { min-height: 121px; margin: 14px 4px 0; outline: none; color: #b1b4d2; line-height: 1.6; font-size: 14px; }
.mini-note:focus { color: #d6d4eb; }
.note-footer { display: flex; align-items: center; justify-content: space-between; color: #777b9e; font-size: 12px; margin-top: 3px; }
.note-footer svg { width: 17px; height: 17px; color: #8e66d8; }

.section-view { height: 100%; overflow: auto; padding: 58px clamp(30px, 6vw, 86px); }
.proxy-view { position: absolute; inset: 0; z-index: 8; background: #080910; }
.proxy-mount, .scramjet-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.proxy-loading { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: radial-gradient(circle at 50% 43%, rgba(72,45,129,.23), transparent 25%), #090a11; color: #cbc6e8; transition: opacity .24s ease, visibility .24s ease; }
.proxy-loading.done { opacity: 0; visibility: hidden; }
.proxy-loading small { color: #8588aa; }
.proxy-gem { position: relative; width: 40px; height: 50px; margin-bottom: 10px; animation: hover-gem 1.8s ease-in-out infinite; }
.proxy-gem span { position: absolute; inset: 0; clip-path: polygon(52% 0, 88% 22%, 100% 65%, 62% 100%, 16% 82%, 0 35%, 28% 8%); background: linear-gradient(135deg,#ad82ff,#32106d); filter: drop-shadow(0 0 13px rgba(136,84,255,.45)); }
.proxy-gem span:nth-child(2) { clip-path: polygon(52% 0, 88% 22%, 57% 48%, 28% 8%); background: #7545db; }
.proxy-gem span:nth-child(3) { clip-path: polygon(57% 48%, 100% 65%, 62% 100%); background: #36136d; }
body.proxy-active .browser-body { grid-template-columns: var(--sidebar-width) minmax(0, 1fr) 0; }
body.proxy-active .right-rail { display: none; }
.section-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 23px; border-bottom: 1px solid var(--line-soft); }
.section-kicker { color: #8d72d3; text-transform: uppercase; letter-spacing: .14em; font-size: 11px; margin-bottom: 8px; }
.section-header h1 { margin: 0; font-size: 33px; letter-spacing: -.03em; }
.section-header p { margin: 8px 0 0; color: var(--muted); }
.section-count { border: 1px solid #2b2d41; padding: 8px 12px; border-radius: 99px; color: #8e91b6; font-size: 12px; }
.section-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px; margin-top: 24px; }
.section-card { min-height: 96px; display: flex; align-items: center; gap: 16px; padding: 17px; border: 1px solid #25293b; border-radius: 15px; background: linear-gradient(145deg, rgba(18,20,31,.76), rgba(11,12,20,.82)); }
.section-card:hover { border-color: rgba(143,106,225,.4); background: rgba(45,34,73,.25); }
.section-icon { width: 45px; height: 45px; flex: 0 0 auto; border-radius: 13px; display: grid; place-items: center; background: rgba(110,79,187,.18); color: #af8bf5; }
.section-card h3 { margin: 0; font-size: 15px; font-weight: 580; }
.section-card p { margin: 6px 0 0; color: #8387a7; font-size: 13px; }
.notes-editor { min-height: 310px; margin-top: 24px; padding: 23px; outline: none; border: 1px solid #292c40; border-radius: 16px; color: #c8c8df; background: rgba(11,12,20,.64); line-height: 1.7; }

.modal { width: min(92vw, 450px); border: 1px solid #38324d; border-radius: 18px; color: var(--text); background: linear-gradient(145deg, #171522, #0e0f18); padding: 0; box-shadow: 0 28px 90px rgba(0,0,0,.62); }
.modal::backdrop { background: rgba(3,4,8,.7); backdrop-filter: blur(5px); }
.modal form { padding: 22px; }
.modal-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.modal-heading > div { display: flex; align-items: center; gap: 11px; }
.modal-heading h2 { margin: 0; font-size: 19px; }
.modal-heading button { border: 0; background: transparent; color: #8e90ad; }
.modal-heading svg { width: 20px; height: 20px; }
.modal label:not(.toggle-row) { display: grid; gap: 8px; margin-top: 15px; color: #aaaac8; font-size: 13px; }
.modal input:not([type=checkbox]) { width: 100%; height: 43px; padding: 0 12px; border: 1px solid #2d3043; border-radius: 10px; background: #0a0c14; outline: 0; color: #dedcf1; }
.modal input:focus { border-color: #795ab7; box-shadow: 0 0 0 3px rgba(121,90,183,.15); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.button { height: 39px; border-radius: 10px; padding: 0 16px; }
.button.secondary { border: 1px solid #303346; background: transparent; color: #aaaac5; }
.button.primary { border: 1px solid #7958c0; background: linear-gradient(135deg,#6e47bb,#553396); color: #fff; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(133,136,166,.12); }
.toggle-row span { display: grid; gap: 4px; }
.toggle-row strong { font-size: 14px; font-weight: 600; }
.toggle-row small { color: #8688a5; line-height: 1.4; }
.toggle-row input { width: 38px; height: 20px; accent-color: #7e57cb; }
.credit { color: #777a98; font-size: 11px; line-height: 1.5; }
.credit a { color: #a787ed; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 24px); opacity: 0; pointer-events: none; border: 1px solid #3a3450; background: rgba(18,16,28,.92); color: #cfcae8; padding: 10px 15px; border-radius: 10px; box-shadow: 0 14px 40px rgba(0,0,0,.4); transition: .22s ease; }
.toast.visible { transform: translate(-50%, 0); opacity: 1; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition-duration: .01ms !important; }

@media (max-width: 1200px) {
  :root { --rail-width: 305px; --sidebar-width: 220px; }
  .speed-dial { gap: 12px; }
  .hero { padding-inline: 38px; }
}
@media (max-width: 1000px) {
  :root { --rail-width: 0px; }
  .right-rail { display: none; }
  .hero { padding-top: 98px; }
}
@media (max-width: 730px) {
  :root { --sidebar-width: 70px; }
  .sidebar { padding-inline: 10px; }
  .sidebar-brand { padding: 0; justify-content: center; }
  .sidebar-brand .brand-name, .nav-item span, .workspace-heading span, .workspace span, .workspace svg, .settings-button span, .sidebar:hover .brand-name { display: none; }
  .nav-item, .settings-button { justify-content: center; padding: 0; }
  .workspace-heading { justify-content: center; padding-inline: 0; }
  .workspace { justify-content: center; padding: 0; }
  .workspace i { width: 13px; height: 13px; }
  .hero { padding: 70px 24px 55px; }
  .obsidian-gem { width: 102px; height: 146px; }
  .hero-copy { font-size: 15px; }
  .speed-dial { grid-template-columns: repeat(3, minmax(78px,1fr)); max-width: 420px; }
  .window-controls { display: none; }
  .tabs { max-width: calc(100% - 105px); }
  .tab { width: 210px; }
  .address-row { gap: 4px; padding-inline: 8px; }
  .address-row > .icon-button:not(.shield), .nav-controls .muted { display: none; }
  .nav-controls .icon-button { display: grid; }
  .section-grid { grid-template-columns: 1fr; }
}
@media (max-height: 760px) and (min-width: 731px) {
  .hero { padding-top: 42px; }
  .obsidian-gem { width: 82px; height: 118px; margin-bottom: 15px; }
  .hero-copy { margin-bottom: 20px; }
  .speed-dial { margin-top: 18px; }
}
@media (pointer: coarse) {
  body.custom-cursor-on, body.custom-cursor-on * { cursor: auto !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
