@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Lalezar&family=VT323&display=swap');

/* Base reset (same starting point the design was built on). */
@layer base {
  *, ::after, ::before, ::backdrop, ::file-selector-button { box-sizing: border-box; margin: 0; padding: 0; border: 0 solid; }
  html, :host { line-height: 1.5; -webkit-text-size-adjust: 100%; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; -webkit-tap-highlight-color: transparent; }
  hr { height: 0; color: inherit; border-top-width: 1px; }
  h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }
  a { color: inherit; -webkit-text-decoration: inherit; text-decoration: inherit; }
  b, strong { font-weight: bolder; }
  small { font-size: 80%; }
  ol, ul, menu { list-style: none; }
  img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; }
  img, video { max-width: 100%; height: auto; }
  button, input, select, optgroup, textarea, ::file-selector-button { font: inherit; font-feature-settings: inherit; font-variation-settings: inherit; letter-spacing: inherit; color: inherit; border-radius: 0; background-color: transparent; opacity: 1; }
  ::placeholder { opacity: 1; color: color-mix(in oklab, currentcolor 50%, transparent); }
  textarea { resize: vertical; }
  button, input:where([type="button"], [type="reset"], [type="submit"]), ::file-selector-button { appearance: button; }
  [hidden]:where(:not([hidden="until-found"])) { display: none !important; }
}


:root {
  --ink: #101012;
  --paper: #f5f4f0;
  --paper-2: #ebe9e3;
  --muted: #74716b;
  --line: rgba(16,16,18,.12);
  --lime: #d7ff4f;
  --violet: #b89cff;
  --orange: #ff9d5c;
  --blue: #8dc9ff;
  --pink: #ff8bc8;
  --serif: Georgia, serif;
}

* { box-sizing: border-box; }
html, body, #root { min-height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: 'IBM Plex Sans Arabic', system-ui, sans-serif; }
button, input { font: inherit; }
button { border: 0; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.archive-app { min-height: 100vh; overflow: hidden; position: relative; background: var(--paper); }
.dark .archive-app { --paper: #0e0e10; --paper-2: #18181b; --ink: #f1f0ea; --muted: #97958f; --line: rgba(255,255,255,.14); background: #0e0e10; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .04; z-index: 10; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E"); }

.topbar { max-width: 1480px; margin: 0 auto; padding: 28px 5vw 22px; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.brand-lockup { display: flex; gap: 12px; align-items: center; cursor: pointer; }
.brand-mark { width: 36px; height: 36px; background: var(--ink); color: var(--lime); display: grid; place-items: center; position: relative; border-radius: 9px 3px 9px 3px; transform: rotate(-6deg); box-shadow: 4px 4px 0 var(--lime); }
.brand-mark span { font-family: Space Grotesk, sans-serif; font-size: 11px; font-weight: 700; transform: rotate(6deg); letter-spacing: -.08em; }
.brand-mark i { width: 5px; height: 5px; background: var(--lime); border-radius: 50%; position: absolute; right: 6px; top: 6px; }
.brand-name { font: 700 13px/1 Space Grotesk, sans-serif; letter-spacing: .08em; }
.brand-kicker { color: var(--muted); font-size: 10px; margin-top: 5px; letter-spacing: .06em; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.icon-button, .language-button, .avatar-button { background: transparent; border: 1px solid var(--line); color: var(--ink); height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; transition: .2s ease; }
.icon-button { width: 34px; }
.language-button { padding: 0 11px; gap: 7px; font-size: 12px; }
.avatar-button { width: 34px; background: var(--ink); color: var(--paper); border-color: var(--ink); font-weight: 700; position: relative; }
.avatar-button span { position: absolute; background: var(--lime); color: var(--ink); width: 13px; height: 13px; border-radius: 50%; font-size: 10px; line-height: 13px; right: -4px; top: -5px; }
.icon-button:hover, .language-button:hover { background: var(--paper-2); transform: translateY(-2px); }

.hero-section { max-width: 1480px; min-height: 310px; margin: 0 auto; padding: 35px 5vw 40px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(350px, .88fr); align-items: center; gap: 40px; position: relative; }
.hero-copy { max-width: 670px; position: relative; z-index: 1; }
.eyebrow-line, .section-overline { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font: 500 10px/1.4 Space Grotesk, sans-serif; display: flex; gap: 9px; align-items: center; }
.eyebrow-line svg { color: #cc75ff; }
.hero-copy h1 { margin: 17px 0 11px; font-size: clamp(45px, 7vw, 90px); line-height: .95; letter-spacing: -.075em; font-weight: 700; max-width: 720px; }
.hero-copy h1 span { color: transparent; -webkit-text-stroke: 1.4px var(--ink); }
.dark .hero-copy h1 span { -webkit-text-stroke-color: var(--ink); }
.tagline { font-family: var(--serif); font-style: italic; font-size: 20px; margin: 0 0 9px; }
.hero-description { color: var(--muted); font-size: 14px; max-width: 500px; margin: 0; line-height: 1.8; }
.hero-actions { display: flex; gap: 10px; margin-top: 25px; }
.primary-action, .ghost-action { border-radius: 8px; min-height: 40px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: .22s ease; font-size: 13px; font-weight: 600; }
.primary-action { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--lime); }
.primary-action:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--lime); }
.ghost-action { border: 1px solid var(--line); color: var(--ink); background: transparent; }
.ghost-action:hover { background: var(--paper-2); transform: translateY(-2px); }
.full-width { width: 100%; margin-top: 10px; }

.hero-collage { min-height: 260px; position: relative; max-width: 480px; justify-self: end; width: 100%; }
.collage-card { position: absolute; box-shadow: 10px 12px 0 rgba(16,16,18,.15); }
.collage-main { height: 215px; width: 240px; background: linear-gradient(140deg, #c9d3a6, #677557 72%); left: 22%; top: 17px; transform: rotate(7deg); padding: 16px; }
.collage-main::before { content: ''; position: absolute; inset: 9px; border: 1px solid rgba(255,255,255,.55); }
.collage-main span { position: absolute; bottom: 13px; left: 17px; color: white; font: 600 10px Space Grotesk, sans-serif; letter-spacing: .15em; }
.collage-silhouette { color: rgba(255,255,255,.7); position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); }
.collage-note { width: 120px; min-height: 115px; background: var(--lime); color: #222; right: 2%; bottom: 0; padding: 16px; font: 600 18px/1.1 Georgia, serif; transform: rotate(-8deg); }
.collage-note b { font-size: 25px; font-family: Space Grotesk, sans-serif; }
.stamp { position: absolute; right: 5%; top: 2%; z-index: 2; color: var(--ink); font: 600 9px/1.2 Space Grotesk, sans-serif; border: 2px solid var(--ink); padding: 8px 9px; transform: rotate(13deg); letter-spacing: .08em; }
.stamp b { font-size: 12px; }
.collage-tape { position: absolute; width: 100px; height: 24px; background: rgba(238,219,170,.6); left: 31%; top: 1px; transform: rotate(-11deg); }
.collage-orbit { position: absolute; border: 1px solid var(--lime); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 290px; height: 130px; top: 60px; left: 17%; transform: rotate(-17deg); }
.orbit-two { width: 380px; height: 75px; top: 90px; left: 4%; transform: rotate(12deg); border-color: rgba(16,16,18,.28); }

.archive-layout { max-width: 1480px; margin: 0 auto; padding: 0 5vw 64px; display: grid; grid-template-columns: 185px minmax(0, 1fr); gap: clamp(24px, 4vw, 65px); position: relative; z-index: 1; }
.sidebar-panel { padding-top: 8px; border-inline-end: 1px solid var(--line); padding-inline-end: 22px; min-height: 500px; display: flex; flex-direction: column; }
.sidebar-label { text-transform: uppercase; font: 600 10px Space Grotesk, sans-serif; letter-spacing: .12em; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 16px; }
.count-pill { font-size: 9px; min-width: 20px; padding: 3px 5px; background: var(--lime); color: var(--ink); border-radius: 99px; text-align: center; }
.collection-nav { display: grid; gap: 3px; }
.nav-filter, .mini-collection { display: flex; align-items: center; gap: 9px; background: transparent; color: var(--muted); font-size: 12px; padding: 8px 6px; width: 100%; border-radius: 6px; text-align: start; transition: .18s; }
.nav-filter span, .mini-collection em { margin-inline-start: auto; font: 10px Space Grotesk, sans-serif; color: var(--muted); font-style: normal; }
.nav-filter:hover, .nav-filter.active, .mini-collection:hover, .mini-collection.active { color: var(--ink); background: var(--paper-2); }
.nav-filter.active { font-weight: 700; }
.sidebar-divider { border-top: 1px solid var(--line); margin: 18px 0 13px; }
.mini-list { display: grid; gap: 2px; }
.mini-collection { padding: 7px 6px; }
.mini-dot { width: 7px; height: 7px; border-radius: 2px; display: block; }
.dot-lime { background: var(--lime); }.dot-violet { background: var(--violet); }.dot-orange { background: var(--orange); }.dot-blue { background: var(--blue); }.dot-pink { background: var(--pink); }
.sidebar-create { border-top: 1px solid var(--line); margin-top: 18px; padding: 15px 6px; background: transparent; text-align: start; color: var(--muted); font-size: 11px; display: flex; gap: 7px; align-items: center; }
.sidebar-create:hover { color: var(--ink); }
.sidebar-footer { color: var(--muted); font: 9px Space Grotesk, sans-serif; display: flex; gap: 7px; align-items: center; margin-top: auto; padding-top: 20px; }

.board-area { min-width: 0; }
.board-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.board-heading h2 { margin: 7px 0 0; font-size: clamp(20px, 2.2vw, 29px); letter-spacing: -.04em; line-height: 1.25; max-width: 520px; }
.board-tools { display: flex; gap: 7px; align-items: center; }
.search-box { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); color: var(--muted); padding: 7px 2px; width: 180px; }
.search-box input { background: transparent; border: 0; width: 100%; color: var(--ink); outline: none; font-size: 11px; }
.filter-button { display: flex; align-items: center; gap: 6px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 6px; padding: 8px 9px; font-size: 11px; }
.filter-button:hover { background: var(--paper-2); }

.memory-map { min-height: 480px; border: 1px solid var(--line); background: var(--paper-2); position: relative; overflow: hidden; border-radius: 10px; }
.memory-map::before { content: ''; position: absolute; inset: 0; opacity: .38; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 45px 45px; }
.map-lines { position: absolute; inset: 0; pointer-events: none; }
.map-lines span { position: absolute; height: 1px; background: var(--ink); opacity: .2; transform-origin: left; }
.map-lines span:nth-child(1) { width: 27%; left: 32%; top: 44%; transform: rotate(26deg); }.map-lines span:nth-child(2) { width: 24%; left: 43%; top: 42%; transform: rotate(-28deg); }.map-lines span:nth-child(3) { width: 26%; left: 46%; top: 50%; transform: rotate(43deg); }.map-lines span:nth-child(4) { width: 31%; left: 32%; top: 54%; transform: rotate(-53deg); }
.map-node { position: absolute; width: 160px; text-align: start; background: transparent; color: var(--ink); padding: 0; z-index: 2; cursor: pointer; transition: transform .25s ease; }
.map-node:hover { transform: translateY(-7px) rotate(-1deg); }
.node-1 { left: 10%; top: 14%; }.node-2 { right: 9%; top: 13%; }.node-3 { left: 11%; bottom: 12%; }.node-4 { right: 11%; bottom: 12%; }.node-5 { left: 50%; top: 67%; transform: translateX(-50%); }.node-5:hover { transform: translateX(-50%) translateY(-7px) rotate(-1deg); }
.node-index { position: absolute; top: -17px; inset-inline-end: 3px; font: 10px Space Grotesk, sans-serif; color: var(--muted); }
.node-cover { height: 110px; width: 143px; position: relative; border: 7px solid var(--paper); background: var(--ink); transform: rotate(-4deg); box-shadow: 7px 7px 0 rgba(16,16,18,.16); overflow: hidden; }
.node-2 .node-cover { transform: rotate(5deg); }.node-3 .node-cover { transform: rotate(3deg); }.node-4 .node-cover { transform: rotate(-6deg); }.node-5 .node-cover { transform: rotate(2deg); }
.node-cover img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.8) contrast(1.05); }
.abstract-cover { width: 100%; height: 100%; display: grid; place-items: center; background: repeating-linear-gradient(135deg, rgba(255,255,255,.12) 0 2px, transparent 2px 11px), linear-gradient(135deg, #242426, #5d6068); color: var(--lime); font: 700 27px Space Grotesk, sans-serif; }
.accent-violet .abstract-cover { background: linear-gradient(135deg, #39234f, #b89cff); color: #fff; }.accent-orange .abstract-cover { background: linear-gradient(135deg, #642c18, #ff9d5c); color: #35180e; }.accent-blue .abstract-cover { background: linear-gradient(135deg, #1d4361, #8dc9ff); color: #0d2738; }.accent-pink .abstract-cover { background: linear-gradient(135deg, #5b1e49, #ff8bc8); color: #35102b; }
.node-hover { opacity: 0; position: absolute; inset: 0; background: rgba(16,16,18,.48); color: var(--lime); display: grid; place-items: center; transition: .2s; }.map-node:hover .node-hover { opacity: 1; }
.node-meta { padding-top: 10px; padding-inline-start: 2px; display: grid; gap: 3px; }.node-meta strong { font-size: 15px; }.node-meta small { color: var(--muted); font-size: 10px; }.node-tag { color: var(--muted); text-transform: uppercase; font: 9px Space Grotesk, sans-serif; letter-spacing: .1em; }
.map-center { position: absolute; z-index: 3; left: 50%; top: 48%; transform: translate(-50%, -50%); width: 88px; height: 88px; background: var(--ink); border-radius: 50%; color: var(--lime); display: grid; place-items: center; align-content: center; box-shadow: 0 0 0 10px rgba(215,255,79,.09), 0 0 0 1px var(--lime); }.map-center span { font: 700 21px Space Grotesk, sans-serif; letter-spacing: -.1em; }.map-center small { font: 7px Space Grotesk, sans-serif; letter-spacing: .12em; color: rgba(255,255,255,.65); }.center-pulse { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); top: 10px; right: 18px; box-shadow: 0 0 0 5px rgba(215,255,79,.2); }
.map-caption { position: absolute; left: 21px; bottom: 18px; display: flex; gap: 9px; color: var(--muted); font: 9px Space Grotesk, sans-serif; letter-spacing: .08em; text-transform: uppercase; }

.collection-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }.back-link, .collection-actions button { background: transparent; color: var(--muted); font-size: 11px; display: inline-flex; gap: 7px; align-items: center; padding: 6px 4px; }.back-link:hover, .collection-actions button:hover { color: var(--ink); }.collection-actions { display: flex; gap: 9px; }.collection-actions button:last-child { background: var(--ink); color: var(--paper); border-radius: 6px; padding: 8px 11px; }
.subcollections { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }.subcollections button { display: inline-flex; gap: 6px; align-items: center; border: 1px dashed var(--line); color: var(--muted); background: transparent; padding: 7px 10px; border-radius: 5px; font-size: 11px; }.subcollections button:hover { border-color: var(--lime); color: var(--ink); }
.media-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }.media-card { cursor: pointer; min-width: 0; transition: transform .22s ease; }.media-card:hover { transform: translateY(-5px); }.media-thumb { aspect-ratio: 1.18; background: var(--paper-2); position: relative; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); }.media-thumb img, .media-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }.favorite-button { position: absolute; top: 9px; inset-inline-end: 9px; width: 29px; height: 29px; border-radius: 50%; background: rgba(16,16,18,.55); color: white; display: grid; place-items: center; opacity: 0; transition: .18s; }.media-card:hover .favorite-button, .favorite-button.is-favorite { opacity: 1; }.favorite-button.is-favorite { color: var(--lime); }.drag-hint { position: absolute; bottom: 8px; inset-inline-start: 8px; color: white; opacity: 0; transition: .2s; }.media-card:hover .drag-hint { opacity: .8; }.video-badge { position: absolute; bottom: 9px; inset-inline-end: 9px; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; color: var(--ink); background: var(--lime); }.media-info { padding: 9px 2px; display: flex; flex-direction: column; gap: 2px; }.media-info strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.media-info span { font: 9px Space Grotesk, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.empty-state { grid-column: 1/-1; border: 1px dashed var(--line); min-height: 260px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); border-radius: 8px; padding: 30px; }.empty-icon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink); margin-bottom: 7px; }.empty-state h3 { margin: 4px 0; color: var(--ink); font-size: 17px; }.empty-state p { margin: 3px 0 15px; font-size: 12px; }

.modal-backdrop, .viewer-backdrop { position: fixed; inset: 0; z-index: 20; background: rgba(10,10,12,.78); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 22px; }.create-modal { width: min(430px, 100%); background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 30px; position: relative; box-shadow: 12px 12px 0 var(--lime); }.modal-close, .viewer-close { background: transparent; color: var(--muted); position: absolute; top: 13px; inset-inline-end: 13px; }.modal-kicker, .viewer-type { color: var(--muted); font: 10px Space Grotesk, sans-serif; letter-spacing: .12em; }.create-modal h3 { font-size: 30px; margin: 10px 0 4px; letter-spacing: -.05em; }.create-modal p { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 20px; }.create-modal form { display: grid; gap: 12px; }.create-modal label { display: grid; gap: 5px; font-size: 11px; color: var(--muted); }.create-modal input { height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); color: var(--ink); padding: 0 11px; font-size: 12px; }
.upload-tray { position: fixed; z-index: 16; bottom: 18px; inset-inline-end: 18px; width: min(350px, calc(100vw - 36px)); background: var(--ink); color: var(--paper); padding: 15px; border-radius: 9px; box-shadow: 6px 6px 0 var(--lime); }.tray-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; margin-bottom: 14px; }.tray-head span { display: flex; gap: 7px; align-items: center; }.tray-head button { background: transparent; color: var(--paper); }.upload-row { margin-top: 10px; }.upload-name { display: flex; gap: 7px; align-items: center; font-size: 10px; }.upload-name span { width: 17px; height: 17px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 700; }.upload-name strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; max-width: 230px; font-weight: 500; }.upload-name em { margin-inline-start: auto; color: var(--lime); font: 9px Space Grotesk, sans-serif; font-style: normal; }.progress-track { height: 3px; background: rgba(255,255,255,.2); margin-top: 6px; border-radius: 9px; overflow: hidden; }.progress-fill { height: 100%; background: var(--lime); transition: width .2s ease; }.progress-fill.error { background: #ff6c72; }
.viewer-backdrop { padding: 0; }.viewer-shell { position: relative; width: min(1000px, 100%); max-height: 100vh; color: white; display: flex; flex-direction: column; padding: 26px; }.viewer-close { color: white; position: static; align-self: end; margin-bottom: 9px; }.viewer-media { min-height: 240px; max-height: 68vh; display: grid; place-items: center; }.viewer-media-stage { max-width: 86%; max-height: 68vh; display: grid; place-items: center; transition: transform .18s ease; }.viewer-media-stage img, .viewer-media-stage video { max-width: 100%; max-height: 68vh; object-fit: contain; border-radius: 5px; }.viewer-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; color: white; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; z-index: 2; }.viewer-nav:hover { background: var(--lime); color: var(--ink); }.viewer-prev { inset-inline-start: 4px; }.viewer-next { inset-inline-end: 4px; }.viewer-zoom-controls { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; padding: 5px; background: rgba(10,10,12,.72); border: 1px solid rgba(255,255,255,.2); border-radius: 7px; color: white; font: 10px Space Grotesk, sans-serif; }.viewer-zoom-controls button { background: transparent; color: white; display: inline-flex; gap: 4px; align-items: center; padding: 4px 7px; border-radius: 4px; }.viewer-zoom-controls button:hover { background: var(--lime); color: var(--ink); }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: 68vh; object-fit: contain; border-radius: 5px; }.viewer-caption { display: flex; justify-content: space-between; gap: 20px; align-items: end; margin-top: 22px; }.viewer-caption h3 { margin: 7px 0 3px; font-size: 24px; }.viewer-caption p { color: rgba(255,255,255,.65); font-size: 12px; margin: 0; }.viewer-actions { display: flex; gap: 8px; }.viewer-actions button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.25); color: white; background: transparent; border-radius: 6px; display: grid; place-items: center; }.viewer-actions button:hover, .viewer-actions button.is-favorite { background: var(--lime); color: var(--ink); border-color: var(--lime); }.viewer-move { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.65); font-size: 11px; margin-top: 10px; }.viewer-move select { background: rgba(255,255,255,.1); color: white; border: 1px solid rgba(255,255,255,.25); border-radius: 5px; padding: 5px 8px; font-size: 11px; }.viewer-move option { color: #111; }
.viewer-footer { border-top: 1px solid rgba(255,255,255,.2); margin-top: 15px; padding-top: 10px; display: flex; justify-content: space-between; color: rgba(255,255,255,.45); font: 10px Space Grotesk, sans-serif; }

@media (max-width: 900px) { .hero-section { grid-template-columns: 1fr; padding-top: 22px; }.hero-collage { justify-self: start; min-height: 215px; max-width: 430px; margin-inline-start: auto; margin-inline-end: auto; }.archive-layout { grid-template-columns: 1fr; gap: 26px; }.sidebar-panel { min-height: auto; border-inline-end: 0; padding: 0; border-bottom: 1px solid var(--line); padding-bottom: 17px; }.collection-nav, .mini-list { display: flex; overflow-x: auto; gap: 5px; }.nav-filter, .mini-collection { width: auto; white-space: nowrap; border: 1px solid var(--line); }.sidebar-divider, .sidebar-footer { display: none; }.sidebar-create { border: 0; padding: 12px 5px 0; }.board-heading { align-items: start; flex-direction: column; }.board-tools { width: 100%; }.search-box { flex: 1; }.memory-map { min-height: 540px; } }
@media (max-width: 600px) { .topbar { padding: 20px 18px 12px; }.brand-name { font-size: 11px; }.brand-kicker { font-size: 8px; }.language-button { padding: 0 8px; }.hero-section { padding: 24px 18px 26px; min-height: 0; }.hero-copy h1 { font-size: 49px; }.hero-description { font-size: 13px; }.hero-collage { transform: scale(.82); transform-origin: top center; margin-bottom: -38px; }.archive-layout { padding: 0 18px 45px; }.memory-map { min-height: 570px; }.map-node { width: 125px; }.node-cover { width: 115px; height: 90px; border-width: 5px; }.node-1 { left: 11%; top: 13%; }.node-2 { right: 8%; top: 14%; }.node-3 { left: 11%; bottom: 12%; }.node-4 { right: 8%; bottom: 12%; }.node-5 { top: 67%; }.map-center { width: 73px; height: 73px; }.node-meta strong { font-size: 13px; }.node-meta small { font-size: 9px; }.map-caption { left: 12px; bottom: 10px; flex-wrap: wrap; max-width: 160px; }.media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }.collection-toolbar { align-items: start; flex-direction: column; gap: 10px; }.collection-actions { width: 100%; justify-content: space-between; }.viewer-shell { padding: 12px; }.viewer-caption { align-items: start; flex-direction: column; }.viewer-caption h3 { font-size: 19px; }.viewer-actions { align-self: end; }.create-modal { padding: 24px; }.top-actions { gap: 5px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Brand-first loading state */
.brand-splash { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 12px; background: radial-gradient(circle at 50% 40%, #2c2342 0%, #0e0e10 55%); color: #f5f4f0; text-align: center; }
.splash-mark { width: 72px; height: 72px; display: grid; place-items: center; position: relative; border-radius: 18px 6px 18px 6px; background: #d7ff4f; color: #0e0e10; box-shadow: 7px 7px 0 #ff8bc8; transform: rotate(-6deg); }
.splash-mark span { font: 700 24px Space Grotesk, sans-serif; letter-spacing: -.12em; transform: rotate(6deg); }
.splash-mark i { width: 8px; height: 8px; border-radius: 50%; background: #ff8bc8; position: absolute; right: 11px; top: 11px; }
.splash-name { font: 700 28px Space Grotesk, 'IBM Plex Sans Arabic', sans-serif; letter-spacing: -.05em; color: #f5f4f0; }
.splash-tagline { font: italic 17px Georgia, serif; color: #f5f4f0; }
.splash-loader { width: 130px; height: 3px; overflow: hidden; background: rgba(255,255,255,.16); border-radius: 5px; margin-top: 9px; }
.splash-loader span { display: block; width: 48%; height: 100%; background: #d7ff4f; animation: splash-load 1.2s ease-in-out infinite alternate; }
@keyframes splash-load { from { transform: translateX(-100%); } to { transform: translateX(210%); } }

.timeline-bar { display: flex; align-items: center; gap: 6px; overflow-x: auto; white-space: nowrap; margin: -8px 0 18px; padding-bottom: 4px; scrollbar-width: thin; }
.timeline-label { color: var(--muted); font: 10px Space Grotesk, sans-serif; text-transform: uppercase; letter-spacing: .12em; margin-inline-end: 4px; }
.timeline-bar button { color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 99px; padding: 6px 10px; font-size: 11px; transition: .18s; }
.timeline-bar button:hover, .timeline-bar button.active { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.timeline-bar button.year { font-family: Space Grotesk, sans-serif; font-weight: 700; }
.timeline-divider { height: 18px; border-inline-start: 1px solid var(--line); margin: 0 3px; }

/* Reference-inspired radial memory map */
.network-map { background: radial-gradient(circle at 50% 50%, #50335d 0%, #2d1e45 42%, #171324 100%); border-color: rgba(255,255,255,.16); }
.network-map::before { opacity: .12; background-image: radial-gradient(rgba(255,255,255,.45) 1px, transparent 1px); background-size: 26px 26px; }
.network-map .map-lines { width: 100%; height: 100%; opacity: 1; z-index: 1; overflow: visible; }
.network-map .map-lines line { stroke: #ff79bf; stroke-width: .28; stroke-dasharray: 1 1; opacity: .78; vector-effect: non-scaling-stroke; }
.network-map .map-node { width: 126px; transform: translate(-50%, -50%); z-index: 3; touch-action: none; cursor: grab; }
.network-map .map-node:active { cursor: grabbing; }
.network-map .map-node:hover { transform: translate(-50%, calc(-50% - 6px)) rotate(-1deg); }
.network-map .node-cover { width: 66px; height: 66px; margin: 0 auto; border: 3px solid rgba(255,255,255,.85); border-radius: 50%; box-shadow: 0 0 0 5px rgba(255,255,255,.12), 5px 6px 0 rgba(10,6,20,.3); transform: none; }
.network-map .node-cover::after { content: ''; position: absolute; inset: -8px; border: 1px solid rgba(255,139,200,.6); border-radius: 50%; transform: rotate(25deg); }
.network-map .node-meta { text-align: center; color: white; padding-top: 8px; text-shadow: 0 2px 4px rgba(0,0,0,.4); }
.network-map .node-meta strong { font-size: 13px; }.network-map .node-meta small { color: rgba(255,255,255,.64); }.network-map .node-tag { color: #ffb4da; }
.network-map .abstract-cover { border-radius: 50%; font-size: 16px; }
.network-map .node-index { color: rgba(255,255,255,.55); top: -16px; inset-inline-end: 11px; }
.network-map .node-hover { border-radius: 50%; }
.network-map .map-center { box-shadow: 0 0 0 10px rgba(255,139,200,.12), 0 0 0 1px #ff8bc8; }
.network-map .center-pulse { background: #ff8bc8; box-shadow: 0 0 0 5px rgba(255,139,200,.2); }
.network-map .map-caption { color: rgba(255,255,255,.55); }

.upload-cancel { margin-inline-start: auto; border: 0; background: transparent; color: rgba(255,255,255,.65); padding: 1px; display: grid; place-items: center; }
.upload-cancel:hover { color: #ff8bc8; }

@media (max-width: 600px) {
  .network-map .map-node { width: 100px; }
  .network-map .node-cover { width: 56px; height: 56px; }
  .network-map .node-meta strong { font-size: 11px; }
  .timeline-bar { margin-top: -2px; }
}

html, body { overflow-x: hidden; }
@media (max-width: 600px) {
  .archive-app, .hero-section, .archive-layout, .board-area { width: 100%; max-width: 100vw; min-width: 0; overflow-x: hidden; }
  .network-map { width: 100%; min-width: 0; min-height: 520px; }
  .network-map .map-node { max-width: 92px; }
  .network-map .node-meta { overflow: hidden; }
  .network-map .node-meta strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .board-tools { min-width: 0; }
  .search-box { min-width: 0; }
}

.dark .hero-copy h1,
.dark .hero-copy h1 span,
.dark .tagline { color: #f5f4f0; -webkit-text-stroke: 0; }

.dark .board-heading h2 { color: #f5f4f0; }
.dark .map-center { background: #242018; color: #ffe84f; border-color: #ffe84f; box-shadow: 0 0 0 10px rgba(255,232,79,.14), 0 0 0 1px #ffe84f; }
.dark .map-center .center-pulse { background: #ffe84f; box-shadow: 0 0 0 5px rgba(255,232,79,.24); }
.mini-collection-row { display: flex; align-items: center; gap: 2px; }
.mini-collection-row > .mini-collection { flex: 1; }
.mini-order { display: flex; opacity: 0; transition: opacity .16s; }
.mini-collection-row:hover .mini-order, .mini-collection-row:focus-within .mini-order { opacity: 1; }
.mini-order button { background: transparent; color: var(--muted); padding: 4px 2px; }
.mini-order button:hover { color: var(--ink); background: var(--paper-2); }
.bulk-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: -8px 0 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2); }
.bulk-toolbar strong { margin-inline-end: auto; font-size: 12px; }
.bulk-toolbar button { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 5px; padding: 6px 8px; font-size: 11px; }
.bulk-toolbar button:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.media-card.selected { outline: 2px solid var(--lime); outline-offset: 3px; }
.media-select { position: absolute; inset-inline-start: 9px; top: 9px; width: 18px; height: 18px; accent-color: var(--lime); z-index: 3; }
.map-settings-panel { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin: -8px 0 14px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper-2); }
.map-settings-panel label { display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.map-settings-panel select { min-width: 120px; }
.map-settings-panel input[type="range"] { accent-color: var(--lime); }
.collage-main { cursor: pointer; border: 0; }
.collage-main.revealed { animation: note-pop .4s ease; }
.secret-names { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 8px; background: rgba(15,17,20,.86); color: #f5f4f0; font: 700 18px/1.1 "Comic Sans MS", "Bradley Hand", cursive; letter-spacing: .04em; transform: rotate(-3deg); }
.secret-names strong:first-child { transform: rotate(-4deg); }.secret-names strong:last-child { transform: rotate(3deg); }
@keyframes note-pop { 0% { transform: rotate(7deg) scale(.92); opacity: .4; } 100% { transform: rotate(7deg) scale(1); opacity: 1; } }
@media (max-width: 700px) { .bulk-toolbar button { padding: 6px; }.mini-order { opacity: 1; }.map-settings-panel { overflow-x: auto; flex-wrap: nowrap; }.map-settings-panel label { min-width: 115px; } }
.nav-filter { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nav-filter svg { flex: 0 0 auto; }
@media (max-width: 600px) { .nav-filter { font-size: 10px; gap: 5px; padding-inline: 3px; } .nav-filter span { font-size: 9px; } }

.dark .archive-app, .dark .archive-app button, .dark .archive-app input, .dark .archive-app select { color: #f5f4f0; }
.dark .archive-app .primary-action { background: #f5f4f0; color: #101012; }
.dark .archive-app .primary-action svg { color: #101012; }
.plans-panel { border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); padding: 18px; margin-bottom: 18px; animation: panel-in .25s ease; }
.plans-heading { display: flex; justify-content: space-between; align-items: end; gap: 14px; }.plans-heading h2 { margin: 6px 0 0; color: var(--ink); }
.plan-compose { display: flex; gap: 6px; margin: 18px 0 12px; }.plan-compose input { flex: 1; min-width: 0; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); color: var(--ink); padding: 0 10px; }.plan-compose button { width: 38px; border-radius: 6px; background: var(--lime); color: #111; }
.plan-list { display: grid; gap: 7px; }.plan-card { display: flex; align-items: start; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }.plan-card > input { margin-top: 3px; accent-color: var(--lime); }.plan-card > div { flex: 1; min-width: 0; }.plan-card strong { color: var(--ink); }.plan-card p { margin: 3px 0; color: var(--muted); font-size: 11px; }.plan-card small { color: var(--muted); font-size: 10px; }.plan-card a, .collection-map-link { color: var(--violet); text-decoration: underline; }.plan-card > button { color: var(--muted); background: transparent; }.plan-card.done strong { color: var(--muted); text-decoration: line-through; }.collection-actions .collection-map-link { display: inline-flex; align-items: center; padding: 6px 4px; font-size: 11px; }
.map-settings-panel button { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 5px; padding: 7px 9px; font-size: 10px; }
.network-map { resize: both; min-width: 280px; min-height: 420px; }
.map-node, .media-card, .nav-filter, .primary-action, .ghost-action, .filter-button { transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease; }
.map-node:hover { filter: drop-shadow(0 7px 10px rgba(255,139,200,.24)); }.media-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,.14); }
@keyframes panel-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 700px) { .plans-heading { align-items: start; flex-direction: column; }.plans-heading .primary-action { width: 100%; }.network-map { resize: none; } }
.collection-map-preview { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 12px; align-items: stretch; margin: 0 0 16px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }.collection-map-preview > div { display: grid; align-content: center; gap: 7px; }.collection-map-preview a { color: var(--violet); font-size: 11px; text-decoration: underline; }.collection-map-preview iframe { width: 100%; height: 150px; border: 0; border-radius: 6px; filter: saturate(.8); }.plan-media-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 6px; }.plan-media-actions button, .plan-attach { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); padding: 4px 6px; font-size: 10px; }.plan-media-actions button:hover, .plan-attach:hover { color: var(--ink); background: var(--lime); }.drag-grip { cursor: grab; color: var(--muted); padding: 5px; font-size: 16px; line-height: 1; }.drag-grip:active { cursor: grabbing; }
@media (max-width: 600px) { .collection-map-preview { grid-template-columns: 1fr; }.collection-map-preview iframe { height: 180px; } }
.location-picker-backdrop { z-index: 40; padding: 14px; }.location-picker-modal { width: min(900px, 100%); max-height: min(94vh, 820px); overflow: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 22px; position: relative; box-shadow: 12px 12px 0 var(--lime); }.location-picker-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }.location-picker-head h3 { margin: 7px 0 16px; font-size: 27px; }.location-search { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; padding: 0 11px; background: var(--paper-2); color: var(--muted); z-index: 3; }.location-search input { flex: 1; min-width: 0; border: 0; height: 42px; background: transparent; color: var(--ink); outline: 0; }.location-search span { font-size: 9px; color: var(--muted); white-space: nowrap; }.location-map-wrap { position: relative; height: min(52vh, 480px); min-height: 300px; margin-top: 10px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper-2); }.location-map-canvas { width: 100%; height: 100%; }.location-loading, .location-error { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; align-content: center; gap: 9px; color: var(--muted); background: color-mix(in srgb, var(--paper-2) 88%, transparent); text-align: center; }.location-error { color: #e56f72; }.location-selection { display: flex; align-items: center; gap: 10px; padding: 12px 2px 4px; min-height: 58px; }.location-selection-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: #111; flex: 0 0 auto; }.location-selection-copy { min-width: 0; flex: 1; display: grid; gap: 3px; }.location-selection-copy a { color: #3182ce; text-decoration: underline; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.location-selection-copy span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.location-picker-error { color: #e56f72; font-size: 11px; margin: 4px 0; }.location-picker-actions, .plan-editor-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }.location-picker-actions button:disabled, .plan-editor-actions button:disabled { opacity: .45; cursor: not-allowed; }.spin { animation: spin .9s linear infinite; }.plan-editor-modal { width: min(600px, 100%); max-height: min(90vh, 760px); overflow: auto; background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 28px; position: relative; box-shadow: 10px 10px 0 var(--lime); }.plan-editor-modal h3 { margin: 8px 0 18px; font-size: 28px; }.plan-editor-form { display: grid; gap: 12px; }.plan-editor-form label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }.plan-editor-form input:not([type="color"]), .plan-editor-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); color: var(--ink); padding: 9px 10px; font-size: 12px; }.plan-editor-form textarea { min-height: 68px; resize: vertical; }.note-color-field { display: flex !important; align-items: center; flex-direction: row; justify-content: space-between; }.note-color-field input { width: 52px; height: 30px; padding: 2px; border: 1px solid var(--line); background: transparent; }.plan-editor-location, .plan-editor-media { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); background: var(--paper-2); border-radius: 7px; padding: 10px; }.plan-editor-location > div, .plan-editor-media > div:first-child { min-width: 0; display: grid; gap: 3px; }.plan-editor-location strong, .plan-editor-media strong { font-size: 12px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.plan-editor-location span, .plan-editor-media span { color: var(--muted); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.plan-editor-location .ghost-action, .plan-editor-media-actions button { flex: 0 0 auto; padding: 7px 9px; font-size: 10px; }.plan-editor-media-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }.plan-editor-media-actions button { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--muted); }.plan-editor-media-actions button:hover { background: var(--lime); color: #111; }.plan-notes { white-space: pre-wrap; font-size: 11px; font-style: italic; }.plan-edit { color: var(--muted); background: transparent; }.plan-edit:hover { color: var(--ink); background: var(--paper-2); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .location-picker-modal, .plan-editor-modal { padding: 16px; }.location-picker-head h3, .plan-editor-modal h3 { font-size: 23px; }.location-search span { display: none; }.location-map-wrap { min-height: 330px; height: 52vh; }.plan-editor-location, .plan-editor-media { align-items: stretch; flex-direction: column; }.plan-editor-media-actions { justify-content: flex-start; }.location-picker-actions, .plan-editor-actions { position: sticky; bottom: 0; padding-top: 10px; background: var(--paper); } }
.collection-location-actions, .plan-location-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }.collection-location-actions .ghost-action, .plan-location-actions .ghost-action { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); border: 1px solid var(--line); background: transparent; border-radius: 5px; padding: 7px 9px; font-size: 10px; }.collection-location-actions .ghost-action:hover, .plan-location-actions .ghost-action:hover { background: var(--lime); color: #111; }


/* ---- additions for the standalone version ---- */
.login-screen .splash-name { margin-top: 6px; }
.login-card { width: min(340px, 86vw); margin-top: 26px; display: grid; gap: 10px; text-align: start; }
.login-card label { display: inline-flex; align-items: center; gap: 6px; color: var(--muted, #97958f); font-size: 11px; letter-spacing: .04em; }
.login-card input { width: 100%; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(255,255,255,.06); color: inherit; padding: 0 12px; font-size: 14px; }
.login-card input:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.login-card .primary-action { justify-content: center; height: 44px; }
.login-card .primary-action:disabled { opacity: .5; cursor: not-allowed; }
.login-error { color: #ff8f92; font-size: 12px; line-height: 1.6; }
.brand-splash .ghost-action { margin-top: 18px; }
.splash-error-detail { max-width: 460px; margin-top: 10px; color: #ff8f92; font-size: 11px; direction: ltr; overflow-wrap: anywhere; text-align: center; }

.toast-stack { position: fixed; inset-inline: 0; bottom: 22px; z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 14px; }
.toast-item { pointer-events: auto; max-width: min(520px, 100%); padding: 10px 16px; border-radius: 9px; background: #18181b; color: #f1f0ea; border: 1px solid rgba(255,255,255,.16); box-shadow: 4px 4px 0 var(--lime); font-size: 12.5px; line-height: 1.5; animation: toast-in .22s ease-out; overflow-wrap: anywhere; }
.toast-error { box-shadow: 4px 4px 0 #e56f72; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.ask-backdrop { z-index: 70; }
.ask-modal { display: grid; gap: 10px; }
.ask-modal label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; }
.ask-modal input, .ask-modal textarea, .ask-modal select { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); color: var(--ink); padding: 9px 10px; font-size: 13px; }
.ask-modal textarea { min-height: 70px; }
.ask-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.danger-action { background: #e5484d !important; color: #fff !important; }

.demo-banner { position: fixed; top: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; z-index: 60; padding: 5px 11px; border-radius: 99px; background: var(--lime); color: #111; font-size: 10.5px; font-weight: 600; box-shadow: 2px 2px 0 #111; pointer-events: none; }

.location-search-host { flex: 1; min-width: 0; }
.location-search:not(.has-widget) .location-search-host { display: none; }
.location-search.has-widget { padding: 4px 8px; }
.location-search-host gmp-place-autocomplete { width: 100%; }
.location-search-go { flex: 0 0 auto; height: 28px; padding: 0 12px; border-radius: 5px; background: var(--lime); color: #111; font-size: 11px; font-weight: 600; cursor: pointer; }
.location-map-wrap.is-unavailable { height: auto; min-height: 120px; }
.location-map-wrap.is-unavailable .location-error { position: static; padding: 26px 18px; line-height: 1.7; }
.location-map-wrap.is-unavailable .location-map-canvas { display: none; }
.location-manual { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: end; margin-top: 10px; }
.location-manual label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; min-width: 0; }
.location-manual input { width: 100%; height: 38px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); color: var(--ink); padding: 0 10px; font-size: 12px; }
.location-manual .ghost-action { height: 38px; }
@media (max-width: 640px) { .location-manual { grid-template-columns: 1fr; } }
.media-thumb img, .node-cover img { object-fit: cover; }
.dark .ask-backdrop, .dark .toast-stack { --paper: #0e0e10; --paper-2: #18181b; --ink: #f1f0ea; --muted: #97958f; --line: rgba(255,255,255,.14); }
/* Dark mode: light and lime surfaces keep dark text (these were unreadable before). */
.dark .archive-app .collection-actions button:last-child,
.dark .archive-app .upload-tray button,
.dark .archive-app .timeline-bar button:hover, .dark .archive-app .timeline-bar button.active,
.dark .archive-app .viewer-nav:hover, .dark .archive-app .viewer-zoom-controls button:hover,
.dark .archive-app .viewer-actions button:hover, .dark .archive-app .viewer-actions button.is-favorite,
.dark .archive-app .bulk-toolbar button:hover,
.dark .archive-app .plan-media-actions button:hover, .dark .archive-app .plan-attach:hover,
.dark .archive-app .count-pill, .dark .archive-app .upload-name span { color: #101012; }

/* ============ 90s theme: camcorder tape + cassettes + Memphis confetti ============ */
:root { --lime: #F2B21B; --violet: #8E7BE8; --orange: #E0431A; --blue: #2EAF96; --pink: #E0457B; --paper: #EFE3C8; --paper-2: #E4D5B3; --ink: #2A1D18; --muted: #7A6657; --line: rgba(42,29,24,.2); --osd: 'VT323', 'Space Grotesk', 'IBM Plex Sans Arabic', monospace; --stripes: linear-gradient(90deg, #2EAF96 0 20%, #A3D6B4 20% 40%, #F2B21B 40% 60%, #E0431A 60% 80%, #8C0F2C 80%); }
.dark .archive-app, .dark .ask-backdrop, .dark .toast-stack { --paper: #17110F; --paper-2: #241A16; --ink: #EFE3C8; --muted: #A8957F; --line: rgba(239,227,200,.16); }
.dark .archive-app { background: #17110F; }
.dark .archive-app, .dark .archive-app button, .dark .archive-app input, .dark .archive-app select { color: #EFE3C8; }
.dark .archive-app .primary-action { background: #EFE3C8; color: #2A1D18; }
.dark .tagline, .dark .board-heading h2 { color: #EFE3C8; }
body { background: var(--paper); }
/* scanlines over everything, like a tape on a tube TV */
.noise { opacity: 1; background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.11) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.dark .noise { background-image: repeating-linear-gradient(0deg, rgba(0,0,0,.28) 0 1px, transparent 1px 3px); mix-blend-mode: normal; }
/* retro stripe under the top bar */
.topbar::after { content: ''; position: absolute; inset-inline: 5vw; bottom: 6px; height: 5px; background: var(--stripes); border-radius: 3px; }
.brand-mark { border-radius: 4px; }
.brand-name, .eyebrow-line, .section-overline, .node-index, .node-tag, .map-caption, .sidebar-footer, .modal-kicker, .stamp, .viewer-type, .viewer-footer, .sidebar-label { font-family: var(--osd); letter-spacing: .06em; }
.brand-name { font-size: 19px; font-weight: 400; }
.eyebrow-line, .section-overline, .modal-kicker, .viewer-type { font-size: 15px; }
.node-index, .node-tag, .map-caption, .sidebar-footer, .viewer-footer { font-size: 13px; }
.sidebar-label { font-size: 15px; font-weight: 400; }
.eyebrow-line svg { color: var(--pink); }
.hero-copy h1 { font-family: 'Lalezar', 'IBM Plex Sans Arabic', sans-serif; font-weight: 400; letter-spacing: 0; line-height: 1.02; text-shadow: 4px 4px 0 var(--orange); }
.hero-copy h1 span { color: var(--lime); -webkit-text-stroke: 0; }
.dark .hero-copy h1 span { -webkit-text-stroke: 0; }
.tagline { font-family: inherit; font-style: normal; font-weight: 600; }
.primary-action, .ghost-action { border-radius: 4px; }
.primary-action { box-shadow: 4px 4px 0 var(--orange); }
.primary-action:hover { box-shadow: 7px 7px 0 var(--orange); }
/* the hero card is a paused camcorder frame */
.collage-main { background: linear-gradient(180deg, #2b2350 0%, #4a3a78 46%, #8a5a7a 72%, #c98a5a 100%); border-radius: 6px; overflow: hidden; }
.collage-main::before { inset: 0; border: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 1px, transparent 1px 3px); }
.collage-main::after { content: ''; position: absolute; left: 0; right: 0; bottom: 26%; height: 9px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55) 20%, rgba(120,220,255,.5) 55%, transparent); filter: blur(1px); animation: tracking 5s linear infinite; }
@keyframes tracking { 0% { bottom: -6%; } 100% { bottom: 106%; } }
.collage-main span { display: none; }
.osd { position: absolute; z-index: 2; color: #fff; font: 400 19px/1 var(--osd); letter-spacing: .05em; text-shadow: 0 0 6px rgba(255,255,255,.6), 2px 0 0 rgba(255,60,90,.5), -2px 0 0 rgba(60,200,255,.5); direction: ltr; text-align: left; white-space: nowrap; }
.osd-tl { left: 14px; top: 13px; } .osd-tr { right: 14px; top: 13px; text-align: right; } .osd-bl { left: 14px; bottom: 12px; }
.osd-rec::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; margin-right: 6px; animation: rec 1.2s steps(2) infinite; }
@keyframes rec { 50% { opacity: 0; } }
.collage-silhouette { color: rgba(255,255,255,.85); }
.collage-note { background: var(--lime); font-family: var(--osd); font-size: 24px; border-radius: 3px; }
.collage-note b { font-family: var(--osd); font-size: 34px; }
.collage-tape { background: rgba(46,175,150,.75); }
.collage-orbit { border-color: var(--pink); border-style: dashed; }
.orbit-two { border-color: var(--blue); }
.stamp { font-size: 14px; border-color: var(--orange); color: var(--orange); }
.stamp b { font-size: 17px; }
.count-pill { font-family: var(--osd); font-size: 13px; }
/* map: black board with Memphis confetti, collections are cassette tapes */
.memory-map.network-map .node-cover { height: 74px; width: 112px; margin: 0 auto; border: 0; border-radius: 8px; background: var(--lime); box-shadow: 5px 5px 0 rgba(0,0,0,.5), inset 0 0 0 2px rgba(0,0,0,.28); overflow: hidden; transform: rotate(-3deg); }
.memory-map.network-map .map-node:nth-of-type(even) .node-cover { transform: rotate(3deg); }
.memory-map.network-map .accent-violet .node-cover { background: var(--violet); } .memory-map.network-map .accent-orange .node-cover { background: var(--orange); } .memory-map.network-map .accent-blue .node-cover { background: var(--blue); } .memory-map.network-map .accent-pink .node-cover { background: var(--pink); }
.memory-map.network-map .node-cover > img, .memory-map.network-map .node-cover > .abstract-cover { position: absolute; left: 7px; top: 6px; width: calc(100% - 14px); height: 34px; border-radius: 3px; box-shadow: 0 0 0 2px rgba(0,0,0,.3); }
.memory-map.network-map .abstract-cover { background: repeating-linear-gradient(0deg, transparent 0 9px, rgba(42,29,24,.22) 9px 10px), #EFE3C8; color: #2A1D18; font: 400 22px/1 var(--osd); }
.memory-map.network-map .node-cover::after { content: ''; position: absolute; inset: auto 22% 7px 22%; height: 20px; border: 0; border-radius: 10px; transform: none; background: radial-gradient(circle at 17% 50%, #EFE3C8 0 3px, #17110F 3px 7px, transparent 7.5px), radial-gradient(circle at 83% 50%, #EFE3C8 0 3px, #17110F 3px 7px, transparent 7.5px), rgba(23,17,15,.82); box-shadow: inset 0 0 0 2px rgba(0,0,0,.35); }
.memory-map.network-map .node-hover { z-index: 2; border-radius: 8px; }
.memory-map.network-map .map-node { width: 136px; }
.memory-map.network-map .node-meta strong { font-size: 15px; color: #EFE3C8; }
.memory-map.network-map .node-tag { color: var(--lime); font-size: 13px; }
.memory-map.network-map .node-index { color: rgba(239,227,200,.6); inset-inline-end: 6px; }
.memory-map.network-map .map-lines line { stroke: rgba(239,227,200,.5); }
.memory-map.network-map { border: 2px solid var(--ink); border-radius: 6px; }
.memory-map.network-map::before { opacity: .6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cpath d='M28 40l26 8-20 18z' fill='%23E0457B'/%3E%3Cpath d='M190 30l30 6-22 22z' fill='%232EAF96'/%3E%3Cpath d='M120 200l22 30-34 2z' fill='%23F2B21B'/%3E%3Cpath d='M60 150q8-14 16 0t16 0 16 0' fill='none' stroke='%238E7BE8' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M170 120q7-12 14 0t14 0' fill='none' stroke='%23E0431A' stroke-width='4' stroke-linecap='round'/%3E%3Crect x='214' y='188' width='14' height='14' fill='%23E0457B' transform='rotate(24 221 195)'/%3E%3Crect x='100' y='70' width='30' height='5' rx='2.5' fill='%232EAF96' transform='rotate(-32 115 72)'/%3E%3Ccircle cx='40' cy='220' r='7' fill='%23EFE3C8'/%3E%3Cg fill='%23EFE3C8'%3E%3Ccircle cx='150' cy='40' r='1.6'/%3E%3Ccircle cx='82' cy='104' r='1.6'/%3E%3Ccircle cx='226' cy='96' r='1.6'/%3E%3Ccircle cx='18' cy='128' r='1.6'/%3E%3Ccircle cx='190' cy='236' r='1.6'/%3E%3Ccircle cx='132' cy='140' r='1.6'/%3E%3Ccircle cx='70' cy='16' r='1.6'/%3E%3Ccircle cx='244' cy='150' r='1.6'/%3E%3C/g%3E%3C/svg%3E"); background-size: 260px 260px; }
/* the vault in the middle is a CD */
.archive-app .memory-map.network-map .map-center { width: 104px; height: 104px; border: 0; background: radial-gradient(circle, #17110F 0 31%, rgba(255,255,255,.65) 31.5% 33%, transparent 33.5%), conic-gradient(from 20deg, #8E7BE8, #E0457B, #F2B21B, #7fe3ff, #8E7BE8, #c9b6ff, #2EAF96, #8E7BE8); color: #EFE3C8; box-shadow: 0 0 0 2px rgba(255,255,255,.25), 0 0 34px rgba(142,123,232,.5); }
.archive-app .map-center span { font: 400 20px/1 var(--osd); letter-spacing: 0; } .archive-app .map-center small, .archive-app .map-center .center-pulse { display: none; }
@media (max-width: 600px) { .memory-map.network-map .node-cover { width: 88px; height: 58px; } .memory-map.network-map .node-cover > img, .memory-map.network-map .node-cover > .abstract-cover { height: 26px; left: 5px; top: 5px; width: calc(100% - 10px); font-size: 17px; } .memory-map.network-map .node-cover::after { height: 16px; bottom: 5px; } .memory-map.network-map .map-node { width: 100px; } .archive-app .memory-map.network-map .map-center { width: 78px; height: 78px; } }
/* media cards read as photo prints with a date stamp feel */
.media-thumb { border-radius: 3px; border: 5px solid var(--paper-2); }
.media-info strong { font-weight: 600; }
.create-modal, .plan-editor-modal, .location-picker-modal { border-radius: 4px; box-shadow: 10px 10px 0 var(--orange); border: 2px solid var(--ink); }
.upload-tray { box-shadow: 6px 6px 0 var(--orange); border-radius: 4px; }
.toast-item { border-radius: 4px; box-shadow: 4px 4px 0 var(--lime); background: #241A16; color: #EFE3C8; font-family: inherit; }
.timeline-bar button { font-family: var(--osd); font-size: 15px; }
/* splash and password screen */
.brand-splash { background: #17110F; color: #EFE3C8; position: relative; overflow: hidden; }
.brand-splash::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cpath d='M28 40l26 8-20 18z' fill='%23E0457B'/%3E%3Cpath d='M190 30l30 6-22 22z' fill='%232EAF96'/%3E%3Cpath d='M120 200l22 30-34 2z' fill='%23F2B21B'/%3E%3Cpath d='M60 150q8-14 16 0t16 0 16 0' fill='none' stroke='%238E7BE8' stroke-width='4' stroke-linecap='round'/%3E%3Cpath d='M170 120q7-12 14 0t14 0' fill='none' stroke='%23E0431A' stroke-width='4' stroke-linecap='round'/%3E%3Crect x='214' y='188' width='14' height='14' fill='%23E0457B' transform='rotate(24 221 195)'/%3E%3Crect x='100' y='70' width='30' height='5' rx='2.5' fill='%232EAF96' transform='rotate(-32 115 72)'/%3E%3Ccircle cx='40' cy='220' r='7' fill='%23EFE3C8'/%3E%3Cg fill='%23EFE3C8'%3E%3Ccircle cx='150' cy='40' r='1.6'/%3E%3Ccircle cx='82' cy='104' r='1.6'/%3E%3Ccircle cx='226' cy='96' r='1.6'/%3E%3Ccircle cx='18' cy='128' r='1.6'/%3E%3Ccircle cx='190' cy='236' r='1.6'/%3E%3Ccircle cx='132' cy='140' r='1.6'/%3E%3Ccircle cx='70' cy='16' r='1.6'/%3E%3Ccircle cx='244' cy='150' r='1.6'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 260px 260px; opacity: .35; pointer-events: none; }
.brand-splash::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: var(--stripes); }
.brand-splash > * { position: relative; }
.splash-mark { background: #F2B21B; box-shadow: 7px 7px 0 #E0431A; border-radius: 6px; } .splash-mark i { background: #E0431A; }
.splash-mark span { font-family: var(--osd); font-weight: 400; font-size: 34px; letter-spacing: 0; }
.splash-name { font: 400 44px/1.1 'Lalezar', 'IBM Plex Sans Arabic', sans-serif; letter-spacing: 0; color: #EFE3C8; text-shadow: 3px 3px 0 #E0431A; }
.splash-tagline { font: 500 16px 'IBM Plex Sans Arabic', sans-serif; color: #EFE3C8; }
.login-card input { border-radius: 4px; border: 2px solid rgba(239,227,200,.35); background: rgba(0,0,0,.35); }
.login-card .primary-action { background: #EFE3C8; color: #2A1D18; }
.demo-banner { font-family: var(--osd); font-size: 14px; border-radius: 3px; }
@media (max-width: 600px) { .hero-copy h1 { text-shadow: 3px 3px 0 var(--orange); } .osd { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { .collage-main::after { display: none; } }
.brand-name, .eyebrow-line, .section-overline, .node-index, .node-tag, .map-caption, .sidebar-footer, .modal-kicker, .stamp, .viewer-type, .viewer-footer, .sidebar-label { letter-spacing: 0; }
.demo-banner { font-family: inherit; font-size: 11px; }
@media (max-width: 600px) { .brand-name { font-size: 15px; } .demo-banner { font-size: 9.5px; padding: 3px 8px; } }
/* bucket list */
.plans-panel { border-radius: 6px; border: 2px solid var(--ink); }
.plan-progress { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.plan-progress strong { font: 400 20px/1 var(--osd); color: var(--ink); } .plan-progress em { font-style: normal; }
.plan-progress-track { flex: 1; height: 12px; border: 2px solid var(--ink); border-radius: 3px; background: var(--paper); overflow: hidden; }
.plan-progress-track span { display: block; height: 100%; background: repeating-linear-gradient(90deg, var(--blue) 0 10px, var(--lime) 10px 20px, var(--orange) 20px 30px, var(--pink) 30px 40px); transition: width .4s ease; }
.plan-tabs { display: flex; gap: 6px; margin: 0 0 10px; }
.archive-app .plan-tabs button { display: inline-flex; gap: 6px; align-items: center; padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: var(--muted); font-size: 12px; }
.archive-app .plan-tabs button.active { background: var(--lime); color: #2A1D18; border-color: var(--lime); font-weight: 600; }
.plan-tabs button span { font: 400 14px/1 var(--osd); }
.plan-empty { color: var(--muted); font-size: 12px; line-height: 1.8; padding: 6px 2px 2px; }
.plan-card { border-radius: 4px; padding: 12px; }
.plan-card > input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--blue); flex: 0 0 auto; }
.plan-card strong { font-size: 14px; }
.plan-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.archive-app .plan-photo { position: relative; width: 58px; height: 58px; border-radius: 3px; overflow: hidden; border: 3px solid var(--paper-2); background: var(--paper-2); display: grid; place-items: center; color: var(--muted); padding: 0; cursor: pointer; transition: transform .15s ease; }
.archive-app .plan-photo:hover { transform: rotate(-3deg) scale(1.06); }
.plan-photo img { width: 100%; height: 100%; object-fit: cover; }
.plan-photo i { position: absolute; inset-inline-end: 3px; bottom: 3px; width: 15px; height: 15px; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; display: grid; place-items: center; }
.archive-app .plan-photo-add { width: auto; min-width: 58px; padding: 0 10px; border: 1px dashed var(--line); background: transparent; display: inline-flex; gap: 6px; align-items: center; font-size: 11px; }
.archive-app .plan-photo-add:hover { border-color: var(--lime); color: var(--ink); transform: none; }
.plan-editor-form select { width: 100%; border: 1px solid var(--line); border-radius: 6px; background: var(--paper-2); color: var(--ink); padding: 9px 10px; font-size: 12px; }
.dark .archive-app .plan-compose button { color: #2A1D18; }
