:root {
    color-scheme: dark;
    --bg: #050c12;
    --bg-deep: #03080d;
    --surface: #0a151e;
    --surface-2: #0d1c27;
    --surface-3: #102430;
    --line: rgba(149, 194, 215, .14);
    --line-strong: rgba(149, 213, 235, .25);
    --text: #f3f7f8;
    --muted: #94a9b4;
    --muted-2: #657b87;
    --cyan: #14d9e7;
    --cyan-soft: #8af5f3;
    --accent-rgb: 20, 217, 231;
    --accent-ink: #032126;
    --accent-from: #18dce4;
    --accent-to: #85f7ef;
    --avatar-from: #7af7f3;
    --avatar-to: #12adc2;
    --amber: #f6ba55;
    --amber-soft: #ffe09c;
    --blue: #57a8ff;
    --danger: #ff776f;
    --radius: 22px;
    --shadow: 0 26px 70px rgba(0, 0, 0, .28);
    --font: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
    --app-background: radial-gradient(circle at 74% -10%, rgba(13, 111, 137, .17), transparent 32rem), var(--bg);
    --sidebar-background: rgba(4, 12, 18, .9);
    --topbar-background: rgba(5, 12, 18, .78);
    --stage-background: #071018;
    --heading-background: rgba(11,39,51,.55);
    --banner-background: linear-gradient(110deg, rgba(10,154,167,.5), rgba(8,27,37,.92) 44%);
    --dice-background: rgba(5,22,30,.92);
    --empty-background: linear-gradient(145deg,#061923,#061018);
}

* { box-sizing: border-box; }
html { overflow-x: hidden; background: var(--bg-deep); scroll-behavior: smooth; }
body { overflow-x: hidden; margin: 0; min-width: 320px; min-height: 100vh; background: var(--app-background); color: var(--text); font-family: var(--font); font-size: 15px; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ui-icon { display: block; flex: 0 0 auto; }

.app-shell { min-height: 100vh; color:var(--text); background:var(--app-background); }
.app-shell.theme-amethyst { --bg:#0d0914; --bg-deep:#07050c; --surface:#151020; --surface-2:#1b1429; --surface-3:#261d38; --line:rgba(190,164,224,.16); --line-strong:rgba(205,174,245,.29); --text:#fbf8ff; --muted:#b4a7c2; --muted-2:#7e718d; --cyan:#a970ff; --cyan-soft:#dbc2ff; --accent-rgb:169,112,255; --accent-ink:#190d25; --accent-from:#9358ef; --accent-to:#d8b8ff; --avatar-from:#dfc8ff; --avatar-to:#8f52e8; --amber:#efb765; --amber-soft:#ffe0a6; --blue:#8fa8ff; --app-background:radial-gradient(circle at 74% -10%,rgba(128,69,205,.25),transparent 34rem),var(--bg); --sidebar-background:rgba(12,8,19,.92); --topbar-background:rgba(13,9,20,.82); --stage-background:#100a19; }
.app-shell.theme-aurora { --bg:#07110f; --bg-deep:#040a09; --surface:#0c1b18; --surface-2:#10251f; --surface-3:#173229; --line:rgba(133,207,177,.15); --line-strong:rgba(145,225,190,.27); --text:#f2fbf7; --muted:#96b5a8; --muted-2:#647f74; --cyan:#46d99a; --cyan-soft:#a9f2d2; --accent-rgb:70,217,154; --accent-ink:#062118; --accent-from:#37cb8c; --accent-to:#a5f1cf; --avatar-from:#b2f7d8; --avatar-to:#31ae79; --amber:#f1bd62; --amber-soft:#ffe2a8; --blue:#63b8c5; --app-background:radial-gradient(circle at 74% -10%,rgba(40,142,102,.22),transparent 34rem),var(--bg); --sidebar-background:rgba(5,14,12,.92); --topbar-background:rgba(7,17,15,.82); --stage-background:#091713; }
.app-shell.theme-sunset { --bg:#140a0d; --bg-deep:#0b0507; --surface:#211116; --surface-2:#2b171d; --surface-3:#3a2028; --line:rgba(232,159,166,.16); --line-strong:rgba(246,174,180,.29); --text:#fff8f8; --muted:#c3a5a9; --muted-2:#8f7076; --cyan:#ff7d89; --cyan-soft:#ffc1c6; --accent-rgb:255,125,137; --accent-ink:#2b0d12; --accent-from:#f26472; --accent-to:#ffc0b9; --avatar-from:#ffd0ca; --avatar-to:#e65f6e; --amber:#f6bd62; --amber-soft:#ffe0a0; --blue:#a994ff; --app-background:radial-gradient(circle at 74% -10%,rgba(186,71,86,.24),transparent 34rem),var(--bg); --sidebar-background:rgba(17,7,10,.92); --topbar-background:rgba(20,10,13,.82); --stage-background:#190c10; }
.app-shell:not(.theme-ocean) { --heading-background:var(--surface-2); --banner-background:linear-gradient(110deg,rgba(var(--accent-rgb),.3),var(--surface-2) 54%); --dice-background:var(--surface); --empty-background:linear-gradient(145deg,var(--surface-3),var(--surface)); }
.desktop-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 20; width: 250px; display: flex; flex-direction: column; padding: 32px 22px 24px; background: var(--sidebar-background); border-right: 1px solid var(--line); backdrop-filter: blur(22px); }
.brand { display: inline-flex; align-items: center; gap: 8px; width: max-content; }
.brand img { display:block; flex:none; object-fit:contain; }
.brand-symbol { width:45px; height:31px; }
.brand-wordmark { width:99px; height:27px; }
.side-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 54px; }
.side-nav a { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 13px; min-height: 48px; padding: 0 14px; color: var(--muted); border: 1px solid transparent; border-radius: 14px; transition: .2s ease; }
.side-nav a:hover { color: var(--text); background: rgba(255,255,255,.03); }
.side-nav a.active { color: var(--cyan-soft); background: linear-gradient(90deg, rgba(var(--accent-rgb), .14), rgba(var(--accent-rgb), .025)); border-color: rgba(var(--accent-rgb), .16); }
.side-nav a small { display: grid; place-items: center; min-width: 23px; height: 21px; padding: 0 6px; border-radius: 10px; background: rgba(255,255,255,.055); color: var(--muted); font-size: 11px; }
.nav-divider { height: 1px; margin: 13px 8px; background: var(--line); }
.space-card { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: auto; padding: 14px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 17px; }
.space-card > div:nth-child(2) { min-width: 0; }
.space-card small, .space-card strong { display: block; }
.space-card small { color: var(--muted-2); font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.space-card strong { margin-top: 2px; white-space: nowrap; font-size: 13px; }
.online-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.avatar-pair { display: flex; align-items: center; }
.avatar-pair .avatar + .avatar { margin-left: -8px; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; border: 2px solid var(--bg); border-radius: 50%; font-size: 12px; font-weight: 750; font-style: normal; }
.avatar-g { color: var(--accent-ink); background: linear-gradient(145deg, var(--avatar-from), var(--avatar-to)); }
.avatar-r { color: #251504; background: linear-gradient(145deg, #ffe29e, #d88b29); }
.avatar-pair.small .avatar { width: 29px; height: 29px; font-size: 10px; }
.avatar.xl { width: 78px; height: 78px; border-width: 3px; font-size: 24px; box-shadow: 0 0 35px rgba(var(--accent-rgb),.1); }

.main-shell { min-height: 100vh; margin-left: 250px; }
.app-topbar { position: sticky; top: 0; z-index: 15; height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 64px); border-bottom: 1px solid var(--line); background: var(--topbar-background); backdrop-filter: blur(22px); }
.mobile-brand { display: none; }
.topbar-copy span, .topbar-copy small { display: block; }
.topbar-copy span { font-weight: 670; }
.topbar-copy small { margin-top: 3px; color: var(--muted); font-size: 12px; }
.topbar-actions { display: flex; align-items: center; gap: 16px; }
.icon-button { position: relative; display: grid; place-items: center; width: 41px; height: 41px; padding: 0; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(12, 29, 40, .75); cursor: pointer; transition: .2s; }
.icon-button:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.icon-button.mini { width: 31px; height: 31px; border: 0; background: transparent; }
.notification-dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border: 1px solid var(--surface); border-radius: 50%; background: var(--amber); }
.content-frame { width: min(1260px, 100%); margin: 0 auto; padding: 42px clamp(24px, 4vw, 64px) 80px; }
.mobile-nav { display: none; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-size: 10px; font-weight: 750; letter-spacing: .16em; }
.live-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .1); }
.page-heading { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 19px; margin-bottom: 30px; }
.heading-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid rgba(var(--accent-rgb),.26); border-radius: 18px; color: var(--cyan); background: linear-gradient(145deg, rgba(var(--accent-rgb),.14), var(--heading-background)); box-shadow: inset 0 1px rgba(255,255,255,.06); }
.page-heading h1 { margin: 3px 0 4px; font-size: clamp(27px, 3vw, 39px); line-height: 1.05; letter-spacing: -.035em; }
.page-heading p { margin: 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 43px; padding: 0 18px; border: 1px solid transparent; border-radius: 14px; font-weight: 670; cursor: pointer; transition: transform .2s, border-color .2s, background .2s; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.button-primary { color: var(--accent-ink); border-color: var(--cyan-soft); background: linear-gradient(110deg, var(--accent-from), var(--accent-to)); box-shadow: 0 10px 28px rgba(var(--accent-rgb), .14); }
.button-ghost { color: var(--text); border-color: var(--line-strong); background: rgba(8, 24, 33, .68); }
.button-light { color: #111a1c; border-color: rgba(255,255,255,.35); background: #f4f9f8; }
.button-danger { color:#fff; border-color:#dc665f; background:linear-gradient(110deg,#d95049,#f07870); }
.button-danger-outline { color:#ff938c; border-color:rgba(255,119,111,.35); background:rgba(255,119,111,.055); }
.button-large { min-height: 50px; padding-inline: 28px; }

.home-hero { position: relative; min-height: 345px; display: flex; align-items: flex-end; overflow: hidden; padding: clamp(28px, 5vw, 55px); border: 1px solid var(--line-strong); border-radius: 30px; background: linear-gradient(90deg, rgba(3,12,18,.97) 6%, rgba(3,13,19,.82) 42%, rgba(3,13,19,.15) 80%), url('../assets/colife-evening.png') center/cover; box-shadow: var(--shadow); isolation: isolate; }
.home-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 52%, rgba(8,23,31,.65)); }
.hero-content h1 { max-width: 590px; margin: 13px 0 10px; font-size: clamp(36px, 5.2vw, 66px); line-height: .98; letter-spacing: -.055em; }
.hero-content > p { color: #c0cdd2; font-size: 16px; }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; }
.hero-date { position: absolute; top: 27px; right: 29px; display: grid; place-items: center; width: 78px; padding: 10px; border: 1px solid rgba(255,255,255,.22); border-radius: 18px; background: rgba(4,14,20,.63); backdrop-filter: blur(12px); }
.hero-date span { color: var(--amber); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.hero-date strong { font-size: 31px; line-height: 1.1; }
.hero-date small { color: var(--muted); text-transform: capitalize; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin: 17px 0; }
.quick-card { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; min-height: 85px; padding: 14px; border: 1px solid var(--line); border-radius: 19px; background: linear-gradient(145deg, var(--surface-2), rgba(8,19,27,.8)); transition: .2s; }
.quick-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.quick-card strong, .quick-card small { display: block; }
.quick-card small { margin-top: 4px; color: var(--muted); }
.quick-card > .ui-icon { color: var(--muted-2); }
.quick-card-featured { min-height: 104px; padding: 18px; }
.quick-card-featured > div { min-width: 0; }
.quick-card-featured .eyebrow { margin-bottom: 4px; font-size: 8px; }
.quick-card-featured strong { font-size: 16px; }
.quick-card-featured .amber-text { color: var(--amber); }
.quick-link { display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.quick-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 14px; }
.quick-icon.cyan { color: var(--cyan); background: rgba(var(--accent-rgb),.08); }
.quick-icon.amber { color: var(--amber); background: rgba(246,186,85,.08); }
.quick-icon.blue { color: var(--blue); background: rgba(87,168,255,.08); }
.draw-banner { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; overflow: hidden; margin: 26px 0 43px; padding: 25px 27px; border: 1px solid rgba(var(--accent-rgb),.35); border-radius: 23px; background: radial-gradient(circle at 90% 180%, rgba(246,186,85,.65), transparent 42%), var(--banner-background); }
.draw-banner::after { content: ""; position: absolute; right: -50px; bottom: -85px; width: 210px; height: 210px; border: 26px solid rgba(255,255,255,.08); border-radius: 50%; }
.draw-banner h2 { margin: 4px 0; font-size: 25px; }
.draw-banner p { margin: 0; color: #aec0c8; }
.draw-banner .button { position: relative; z-index: 2; }
.draw-orb { display: grid; place-items: center; width: 66px; height: 66px; color: var(--accent-ink); border-radius: 20px; background: linear-gradient(145deg, var(--accent-to), var(--accent-from)); transform: rotate(-6deg); box-shadow: 0 13px 35px rgba(var(--accent-rgb),.22); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin: 27px 2px 16px; }
.section-heading h2 { margin: 4px 0 0; font-size: 25px; letter-spacing: -.025em; }
.section-heading > a { display: flex; gap: 3px; align-items: center; color: var(--cyan); font-size: 13px; }
.section-heading > small { color: var(--muted); }
.memory-preview-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.memory-preview { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: .2s; }
.memory-preview:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cover-art { position: relative; height: 135px; display: flex; align-items: flex-end; padding: 13px; background-size: cover; background-position: center; }
.cover-art::after, .memory-thumb::after, .poster::after, .place-photo::after, .result-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(1,6,9,.88)); pointer-events: none; }
.cover-art span, .poster span, .place-photo > span, .memory-thumb span, .result-art span { position: relative; z-index: 1; color: rgba(255,255,255,.86); font-size: 9px; font-weight: 760; letter-spacing: .14em; }
.memory-preview-body { padding: 16px; }
.memory-preview-body > small { color: var(--muted-2); }
.memory-preview-body h3 { margin: 5px 0 7px; }
.memory-preview-body p { min-height: 39px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.mini-ratings, .row-ratings { display: flex; gap: 7px; margin-top: 13px; }
.rating-g, .rating-r { padding: 5px 8px; border-radius: 8px; font-size: 11px; font-weight: 780; }
.rating-g { color: var(--cyan-soft); background: rgba(var(--accent-rgb),.09); }
.rating-r { color: var(--amber-soft); background: rgba(246,186,85,.1); }

.toolbar { display: flex; gap: 13px; align-items: center; margin-bottom: 15px; }
.compact-toolbar { justify-content: space-between; margin-top: 29px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted-2); background: rgba(9,24,33,.75); }
.search-box:focus-within { border-color: rgba(var(--accent-rgb),.45); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.search-box input::placeholder { color: var(--muted-2); }
.segmented { display: flex; padding: 4px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.segmented button { min-height: 38px; padding: 0 17px; border: 0; border-radius: 11px; color: var(--muted); background: transparent; cursor: pointer; }
.segmented button.active { color: var(--text); background: var(--surface-3); box-shadow: 0 4px 14px rgba(0,0,0,.17); }
.subfilters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.watch-filter-panel, .place-filter-panel { margin: 0 0 20px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(145deg, rgba(13,30,40,.8), rgba(7,19,27,.8)); }
.watch-filter-heading, .place-filter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.watch-filter-heading > span, .place-filter-heading > span { display: inline-flex; align-items: center; gap: 7px; color: var(--cyan-soft); font-size: 12px; font-weight: 750; }
.watch-filter-fields, .place-filter-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.watch-filter-fields .field, .place-filter-fields .field { min-width: 0; }
.watch-filter-fields select, .place-filter-fields select { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.watch-trait-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; }
.watch-trait-filters > span { margin-right: 5px; color: var(--muted-2); font-size: 10px; font-weight: 700; }
.watch-trait-filters .chip { min-height: 32px; padding-inline: 10px; font-size: 11px; }
.place-feature-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 13px; }
.place-feature-filters > span { margin-right: 5px; color: var(--muted-2); font-size: 10px; font-weight: 700; }
.place-feature-filters .chip { min-height: 32px; padding-inline: 10px; font-size: 11px; }
.watch-plan-success { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; padding: 13px 15px; border: 1px solid rgba(var(--accent-rgb),.35); border-radius: 14px; color: var(--cyan-soft); background: rgba(var(--accent-rgb),.08); font-size: 12px; }
.watch-plan-success span { min-width: 0; flex: 1; }
.watch-plan-success a { display: inline-flex; align-items: center; gap: 3px; color: var(--text); white-space: nowrap; }
.watch-plan-success > button { display: grid; place-items: center; border: 0; color: var(--muted); background: transparent; cursor: pointer; }
.chip { display: inline-flex; align-items: center; gap: 7px; min-height: 37px; padding: 0 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: rgba(10,25,35,.65); cursor: pointer; }
.chip:hover, .chip.active { color: var(--cyan-soft); border-color: rgba(var(--accent-rgb),.38); background: rgba(var(--accent-rgb),.085); }
.chip span { display: grid; place-items: center; min-width: 20px; height: 20px; border-radius: 7px; background: rgba(255,255,255,.06); font-size: 10px; }
.watch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.watch-card { display: grid; grid-template-columns: 138px 1fr; min-height: 224px; overflow: hidden; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg, var(--surface-2), rgba(7,17,24,.95)); }
.watch-card:hover { border-color: var(--line-strong); }
.poster { position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 5px; min-height: 100%; padding: 15px; background-position: center; background-size: cover; isolation: isolate; }
.poster-button { width: 100%; border: 0; color: var(--text); text-align: left; cursor: pointer; }
.poster-button:hover { filter: brightness(1.08); }
.poster::after { z-index: -1; }
.poster-fallback-icon { position:relative; z-index:1; flex:1; width:100%; display:grid; place-items:center; color:rgba(185,245,246,.78); filter:drop-shadow(0 0 18px rgba(var(--accent-rgb),.23)); }
.poster-fallback-icon .ui-icon { max-width:100%; }
.watch-body { display: flex; flex-direction: column; min-width: 0; padding: 16px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.type-label { color: var(--cyan); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.watch-body h2 { margin: 3px 0 2px; font-size: 20px; }
.watch-title-action { display: block; width: 100%; padding: 0; border: 0; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.watch-title-action:hover h2 { color: var(--cyan-soft); }
.watch-trait-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 9px; }
.watch-trait-badges span { padding: 3px 6px; border: 1px solid rgba(246,186,85,.2); border-radius: 7px; color: var(--amber-soft); background: rgba(246,186,85,.06); font-size: 9px; }
.muted { color: var(--muted); }
.watch-body .muted { margin-bottom: 8px; font-size: 12px; }
.meta-row { display: flex; align-items: center; gap: 8px; color: #c5d1d5; font-size: 12px; }
.meta-row i { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }
.description { color: var(--muted); line-height: 1.45; }
.watch-body .description { display: -webkit-box; overflow: hidden; margin: 10px 0; font-size: 12px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.watch-plan-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: auto; }
.watch-plan-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; min-height: 37px; padding: 7px 9px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--text); background: rgba(3,13,19,.55); font-size: 11px; font-weight: 720; cursor: pointer; }
.watch-plan-actions .watch-now-action { border-color: rgba(var(--accent-rgb),.55); color: var(--accent-ink); background: linear-gradient(120deg, var(--cyan), var(--cyan-soft)); }
.watch-plan-actions .watch-now-action:hover { filter: brightness(1.07); }
.watch-plan-actions .watch-schedule-action:hover { color: var(--cyan-soft); border-color: var(--cyan); }
.watch-card-tools { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.watch-metadata-action { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 33px; padding: 0 8px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: transparent; font-size: 10px; cursor: pointer; }
.watch-metadata-action:hover { color: var(--cyan-soft); border-color: var(--cyan); }
.watch-card-tools .draw-toggle { flex: 1; width: auto; min-width: 0; min-height: 33px; margin: 0; font-size: 10px; }
.draw-toggle { width: 100%; min-height: 36px; display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--muted); background: rgba(2,12,18,.5); cursor: pointer; }
.draw-toggle > span { margin-left: auto; font-size: 18px; }
.draw-toggle.selected { color: var(--cyan-soft); border-color: var(--cyan); background: rgba(var(--accent-rgb),.07); box-shadow: inset 0 0 20px rgba(var(--accent-rgb),.025); }
.status { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 6px 10px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.status-done { color: var(--cyan-soft); border: 1px solid rgba(var(--accent-rgb),.28); background: rgba(var(--accent-rgb),.08); }
.status-warn { color: var(--amber-soft); border: 1px solid rgba(246,186,85,.3); background: rgba(246,186,85,.08); }
.status-cancelled { color:#ffaaa4; border:1px solid rgba(255,119,111,.34); background:rgba(255,119,111,.09); }
.empty-state { display: grid; justify-items: center; margin-top: 20px; padding: 55px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--muted); text-align: center; }
.empty-state h3 { margin: 12px 0 4px; color: var(--text); }
.empty-state p { margin: 0; }

.category-strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 18px; padding-bottom: 3px; scrollbar-width: none; }
.category-pill { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); background: var(--surface); cursor: pointer; }
.category-pill span { color: var(--muted-2); font-size: 10px; }
.category-pill.active { color: #042328; border-color: var(--cyan); background: var(--cyan-soft); }
.category-pill.active span { color: #174a4c; }
.place-feature { display: grid; grid-template-columns: minmax(280px, .72fr) 1fr; overflow: hidden; min-height: 268px; border: 1px solid var(--line-strong); border-radius: 24px; background: var(--surface); }
.place-feature-art { position: relative; min-height: 260px; padding: 22px; background-size: cover; background-position: center; }
.place-feature-art::after { content:""; position:absolute; inset:0; background:linear-gradient(90deg, transparent 60%, var(--surface)); }
.place-feature-art span { position: relative; z-index: 1; color: white; }
.place-feature-body { display: flex; flex-direction: column; justify-content: center; padding: 28px; }
.place-feature-body h2 { margin: 12px 0 8px; font-size: 29px; }
.plan-info { display: flex; flex-wrap: wrap; gap: 17px; margin: 6px 0 19px; color: #c0d0d5; font-size: 13px; }
.plan-info span, .place-location { display: flex; align-items: center; gap: 6px; }
.feature-actions { display: flex; gap: 9px; }
.places-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.place-card { overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.place-photo { position: relative; height: 155px; display: flex; align-items: flex-end; padding: 13px; background-position: center; background-size: cover; }
.favorite-button { position: absolute; z-index: 2; top: 11px; right: 11px; display: grid; place-items: center; width: 37px; height: 37px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: white; background: rgba(4,12,18,.52); backdrop-filter: blur(8px); cursor: pointer; }
.favorite-button.selected { color: var(--amber); border-color: rgba(246,186,85,.55); background: rgba(70,43,7,.58); }
.favorite-button.selected svg { fill: currentColor; }
.place-body { display:flex; flex-direction:column; min-width:0; padding:15px; }
.place-body h3 { margin: 5px 0 6px; font-size: 17px; }
.place-location { margin: 0 0 8px; color: #bdcbd0; font-size: 12px; }
.place-body .description { min-height: 52px; margin-bottom: 13px; font-size: 12px; }
.place-title-action { display:block; width:100%; padding:0; border:0; color:var(--text); background:transparent; text-align:left; cursor:pointer; }
.place-title-action:hover h2 { color:var(--cyan-soft); }
.place-plan-actions { margin-top:auto; }
.place-body .draw-toggle { margin-top:8px; }
.place-plan-map { display:block; width:max-content; max-width:100%; margin-top:5px; color:var(--cyan-soft); font-size:10px; text-decoration:underline; text-underline-offset:2px; }
.price { color: var(--amber); font-size: 12px; letter-spacing: .08em; }

.draw-workspace { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; min-height: 490px; border: 1px solid var(--line); border-radius: 27px; background: var(--surface); box-shadow: var(--shadow); }
.draw-controls { padding: 32px; border-right: 1px solid var(--line); background: linear-gradient(150deg, var(--surface-2), #08131b); }
.mode-cards { display: grid; gap: 9px; margin: 17px 0 21px; }
.mode-card { display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 1px 12px; min-height: 68px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 15px; color: var(--muted); text-align: left; background: rgba(4,13,19,.5); cursor: pointer; }
.mode-card .ui-icon { grid-row: 1 / 3; }
.mode-card strong { color: var(--text); }
.mode-card small { color: var(--muted-2); }
.mode-card.active { color: var(--cyan); border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.075); box-shadow: inset 3px 0 var(--cyan); }
.draw-summary { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0; border: 1px solid var(--line); border-radius: 14px; }
.draw-category-filters { display:flex; flex-wrap:wrap; gap:7px; margin:12px 0 18px; }
.draw-category-filters .chip { min-height:32px; padding:0 10px; font-size:10px; }
.draw-summary span { padding: 11px 8px; color: var(--muted); font-size: 10px; text-align: center; }
.draw-summary span + span { border-left: 1px solid var(--line); }
.draw-summary b { display: block; color: var(--text); font-size: 19px; }
.fair-note { display: flex; gap: 11px; padding: 14px; border-radius: 14px; color: var(--amber); background: rgba(246,186,85,.06); }
.fair-note strong { font-size: 12px; }
.fair-note p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.draw-stage { position: relative; display: grid; place-items: center; min-height: 490px; overflow: hidden; padding: 36px; background: radial-gradient(circle at center, rgba(var(--accent-rgb),.095), transparent 52%), var(--stage-background); }
.draw-stage::before { content:""; position:absolute; inset:0; opacity:.21; background-image: radial-gradient(rgba(126,215,226,.32) .8px, transparent .8px); background-size: 26px 26px; }
.dice-machine { position: relative; z-index: 1; display: grid; justify-items: center; gap: 24px; color: var(--muted); }
.dice-core { position: relative; z-index: 2; display: grid; place-items: center; width: 126px; height: 126px; border: 1px solid rgba(var(--accent-rgb),.55); border-radius: 37px; color: var(--cyan-soft); background: linear-gradient(145deg, rgba(var(--accent-rgb),.24), var(--dice-background)); box-shadow: 0 0 70px rgba(var(--accent-rgb),.16), inset 0 0 25px rgba(var(--accent-rgb),.1); transform: rotate(-7deg); }
.orbit { position: absolute; top: 63px; left: 50%; border: 1px solid rgba(var(--accent-rgb),.15); border-radius: 50%; transform: translate(-50%,-50%); }
.orbit-one { width: 205px; height: 205px; }
.orbit-two { width: 285px; height: 285px; border-style: dashed; }
.spinning .dice-core { animation: dice-spin .7s ease-in-out infinite alternate; }
@keyframes dice-spin { to { transform: rotate(11deg) scale(1.08); box-shadow: 0 0 95px rgba(var(--accent-rgb),.35); } }
.draw-result { position: relative; z-index: 1; width: min(470px, 100%); text-align: center; }
.result-art { position: relative; height: 160px; display: flex; align-items: flex-end; margin-bottom: 21px; padding: 14px; border: 1px solid var(--line-strong); border-radius: 21px; background-size: cover; background-position: center; text-align: left; overflow: hidden; }
.result-art-watch { align-items: stretch; padding: 11px; }
.result-art-watch::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,9,14,.05), rgba(2,9,14,.84) 72%); pointer-events: none; }
.result-poster { position: relative; z-index: 1; flex: none; height: 100%; width: auto; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; box-shadow: 9px 6px 28px rgba(0,0,0,.55); }
.result-art-watch > span { align-self: flex-end; margin-left: auto; }
.result-art .place-photo-credit { z-index: 2; }
.draw-result h2 { margin: 7px 0 3px; font-size: 32px; }
.draw-result > p { color: var(--muted); }
.draw-result .result-meta { color: var(--amber); font-size: 12px; }
.result-actions { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.success-message { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; padding: 11px; border-radius: 12px; color: var(--cyan-soft); background: rgba(var(--accent-rgb),.08); font-size: 11px; }
.eligible-list { margin-top: 22px; }
.eligible-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.eligible-chips > span { display: grid; grid-template-columns: 27px auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; padding: 7px 12px 7px 7px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); font-size: 12px; }
.eligible-chips i { grid-row: 1 / 3; width: 27px; height: 27px; border-radius: 8px; background-size: cover; }
.eligible-chips small { color: var(--muted-2); font-size: 9px; }

.calendar-shell { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.calendar-header { display: flex; align-items: center; gap: 15px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.calendar-header > div:nth-child(2) { flex: 1; }
.calendar-header h2 { margin: 3px 0 0; font-size: 17px; text-transform: capitalize; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 7px; padding: 13px; }
.day-button { position: relative; display: grid; place-items: center; gap: 5px; min-height: 84px; border: 1px solid transparent; border-radius: 14px; color: var(--muted); background: transparent; cursor: pointer; }
.day-button span { font-size: 10px; text-transform: uppercase; }
.day-button strong { color: var(--text); font-size: 20px; }
.day-button i { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); }
.day-button.today { border-color: var(--line); }
.day-button.active { color: #062228; border-color: var(--cyan); background: var(--cyan-soft); }
.day-button.active strong { color: #062228; }
.day-button.active i { background: #0b5b62; }
.agenda-layout { display: grid; grid-template-columns: 1fr 320px; gap: 17px; margin-top: 18px; }
.day-agenda, .agenda-side { padding: 5px 20px 20px; border: 1px solid var(--line); border-radius: 21px; background: rgba(10,21,30,.7); }
.agenda-card { display: grid; grid-template-columns: 53px 58px 1fr auto; align-items: center; gap: 14px; min-height: 100px; padding: 13px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); }
.agenda-card + .agenda-card { margin-top: 9px; }
.agenda-card > time { color: var(--amber); font-size: 13px; font-weight: 750; }
.agenda-art { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 15px; color: white; background-position: center; background-size: cover; }
.agenda-body h3 { margin: 5px 0; }
.agenda-body p { display: flex; align-items: center; gap: 5px; margin: 0; color: var(--muted); font-size: 11px; }
.agenda-body .cancel-inline { margin-top:5px; color:#e98e87; }
.agenda-actions { display:flex; gap:7px; }
.agenda-actions .button { min-height:36px; padding-inline:12px; font-size:11px; }
.agenda-actions .button:only-child { width:100%; }
.agenda-side { padding: 24px 17px; }
.agenda-side h2 { margin: 4px 0 18px; }
.agenda-side > button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 11px 5px; border: 0; border-bottom: 1px solid var(--line); color: inherit; text-align: left; background: transparent; cursor: pointer; }
.agenda-side button > div strong, .agenda-side button > div small { display: block; }
.agenda-side button > div small { overflow: hidden; max-width: 175px; margin-top: 3px; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.date-square { display: grid; place-items: center; width: 43px; height: 45px; border: 1px solid var(--line); border-radius: 11px; }
.date-square b { font-size: 16px; line-height: 1; }
.date-square small { color: var(--cyan); font-size: 8px; text-transform: uppercase; }
.empty-state.compact { margin-top: 0; padding: 38px 20px; }
.empty-state.compact .button { margin-top: 16px; }

.memory-spotlight { position: relative; min-height: 330px; display: flex; align-items: flex-end; overflow: hidden; padding: 38px; border: 1px solid rgba(246,186,85,.35); border-radius: 26px; background: linear-gradient(90deg, rgba(3,11,16,.96), rgba(4,14,20,.65) 52%, transparent), linear-gradient(0deg, rgba(4,13,18,.35), transparent), linear-gradient(130deg, transparent, rgba(246,186,85,.18)), url('../assets/colife-evening.png') center/cover; box-shadow: var(--shadow); }
.spotlight-content { max-width: 620px; }
.spotlight-content .eyebrow { color: var(--amber); }
.spotlight-content h2 { margin: 8px 0; font-size: clamp(32px, 4vw, 48px); }
.spotlight-content > p { color: #c2ced2; line-height: 1.6; }
.large-ratings { display: flex; gap: 12px; margin-top: 20px; }
.large-ratings > span { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 9px; min-width: 114px; padding: 8px 12px 8px 8px; border: 1px solid var(--line-strong); border-radius: 14px; background: rgba(4,13,18,.67); }
.large-ratings .avatar { grid-row: 1 / 3; width: 36px; height: 36px; }
.large-ratings b { font-size: 18px; }
.large-ratings small { color: var(--muted); font-size: 9px; }
.spotlight-place { position: absolute; right: 25px; top: 25px; padding: 11px 13px; border: 1px solid rgba(255,255,255,.19); border-radius: 13px; color: white; background: rgba(3,12,18,.56); backdrop-filter: blur(12px); }
.spotlight-place .ui-icon { display: inline-block; vertical-align: middle; }
.spotlight-place small { color: var(--muted); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.stats-row > div { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; justify-content: center; align-items: center; column-gap: 10px; padding: 20px; }
.stats-row > div + div { border-left: 1px solid var(--line); }
.stats-row .ui-icon { grid-row: 1 / 3; color: var(--cyan); }
.stats-row > div:nth-child(2) .ui-icon, .stats-row > div:nth-child(3) .ui-icon { color: var(--amber); }
.stats-row strong { font-size: 23px; }
.stats-row span { color: var(--muted); font-size: 11px; }
.memory-filters { margin-bottom: 0; }
.sort-select { min-height: 39px; padding: 0 32px 0 13px; border: 1px solid var(--line); border-radius: 12px; color: var(--muted); background: var(--surface); }
.memory-list { display: grid; gap: 9px; }
.memory-row { width: 100%; display: grid; grid-template-columns: 105px minmax(0, 1fr) auto auto; align-items: center; gap: 16px; min-height: 108px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 18px; color: inherit; text-align: left; background: var(--surface); cursor: pointer; transition: .2s; }
.memory-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.memory-thumb { position: relative; align-self: stretch; display: flex; align-items: flex-end; min-height: 90px; padding: 9px; border-radius: 12px; background-size: cover; background-position: center; overflow: hidden; }
.memory-row-body { min-width: 0; }
.memory-row-body h3 { margin: 5px 0; }
.memory-row-body p { overflow: hidden; margin: 0; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.memory-row .row-ratings { margin: 0; }
.memory-detail-art { min-height: 210px; display: flex; flex-direction: column; justify-content: flex-end; margin-bottom: 20px; padding: 24px; border-radius: 19px; background-size: cover; background-position: center; box-shadow: inset 0 -130px 90px -60px rgba(1,6,9,.95); }
.memory-detail-art span { color: var(--cyan-soft); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.memory-detail-art h2 { margin: 6px 0 0; font-size: 29px; }
.memory-summary { color: var(--muted); line-height: 1.6; }
.review-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.review-cards article { padding: 15px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); }
.review-cards article > div { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.review-cards article b { color: var(--cyan); font-size: 18px; }
.review-cards article:nth-child(2) b { color: var(--amber); }
.review-cards p { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

.panel { border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.profile-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: 16px; }
.profile-main { padding: 35px; }
.profile-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.profile-pair > div { display: grid; justify-items: center; gap: 7px; text-align: center; }
.profile-pair small { color: var(--muted); font-size: 10px; }
.connection-line { display: flex; align-items: center; gap: 6px; color: var(--muted-2); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.connection-line i { width: 38px; height: 1px; background: var(--line-strong); }
.invite-box { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 31px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface-2); }
.invite-box strong, .invite-box small { display: block; }
.invite-box strong { margin: 5px 0; font-size: 21px; letter-spacing: .08em; }
.invite-box small { color: var(--muted); }
.profile-settings { padding: 25px; }
.profile-settings h2 { margin-bottom: 12px; }
.profile-settings button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 0; border: 0; border-bottom: 1px solid var(--line); color: inherit; text-align: left; background: transparent; }
.profile-settings button > span { display: flex; align-items: center; gap: 11px; }
.profile-settings i { font-style: normal; }
.profile-settings strong, .profile-settings small { display: block; }
.profile-settings small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.switch { position: relative; width: 34px; height: 20px; border-radius: 11px; background: var(--muted-2); }
.switch::after { content:""; position:absolute; top:3px; left:3px; width:14px; height:14px; border-radius:50%; background:white; transition:.2s; }
.switch.on { background: var(--cyan); }
.switch.on::after { left: 17px; }
.about-panel { display: flex; align-items: center; gap: 20px; margin-top: 16px; padding: 24px; }
.about-panel > div { flex: 1; }
.about-panel h2 { margin-bottom: 4px; font-size: 17px; }
.about-panel p { margin: 0; color: var(--muted); }
.about-panel > span { color: var(--muted-2); }
.catalog-credits { display:flex; align-items:center; gap:15px; margin-top:12px; padding:19px 24px; }
.catalog-credits > a { display:block; flex:0 0 34px; width:34px; height:34px; }
.catalog-credits img { display:block; width:100%; height:100%; object-fit:contain; }
.catalog-credits > div { min-width:0; }
.catalog-credits h2 { margin:0 0 4px; font-size:13px; }
.catalog-credits p,.catalog-credits small { display:block; margin:0; color:var(--muted); font-size:11px; line-height:1.45; overflow-wrap:anywhere; }
.catalog-credits small { color:var(--muted-2); }

.back-link { display:inline-flex; margin-bottom:16px; color:var(--muted); font-size:12px; }
.back-link:hover { color:var(--cyan); }
.plan-detail-hero { position:relative; min-height:310px; display:flex; align-items:flex-end; overflow:hidden; border:1px solid var(--line-strong); border-radius:27px; background-size:cover; background-position:center; box-shadow:var(--shadow); isolation:isolate; }
.plan-detail-hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(3,11,16,.96),rgba(3,12,18,.7) 58%,rgba(3,12,18,.18)),linear-gradient(0deg,rgba(3,10,15,.75),transparent 70%); }
.plan-detail-overlay { width:100%; padding:38px; }
.detail-title-line { display:flex; align-items:center; gap:12px; color:var(--muted); font-size:11px; text-transform:uppercase; letter-spacing:.1em; }
.plan-detail-overlay h1 { max-width:720px; margin:10px 0 5px; font-size:clamp(36px,5vw,60px); line-height:1; letter-spacing:-.05em; }
.plan-detail-overlay > p { color:#c6d3d7; }
.detail-hero-actions { display:flex; gap:9px; margin-top:24px; }
.button-dark-glass { color:white; border-color:rgba(255,255,255,.24); background:rgba(4,13,18,.62); backdrop-filter:blur(10px); }
.detail-date { position:absolute; top:24px; right:24px; display:grid; justify-items:center; min-width:76px; padding:11px; border:1px solid rgba(255,255,255,.25); border-radius:17px; background:rgba(3,11,16,.63); backdrop-filter:blur(12px); }
.detail-date span { color:var(--amber); font-size:10px; font-weight:800; }
.detail-date strong { font-size:30px; line-height:1.1; }
.detail-date small { color:var(--muted); text-transform:capitalize; }
.plan-details-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:16px; margin-top:17px; }
.plan-main-column { display:grid; gap:16px; }
.plan-side-column { display:flex; flex-direction:column; gap:16px; }
.detail-panel { padding:24px; border:1px solid var(--line); border-radius:21px; background:var(--surface); }
.detail-section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:15px; margin-bottom:19px; }
.detail-section-heading h2 { margin:4px 0 0; font-size:22px; }
.text-button { display:inline-flex; align-items:center; gap:6px; padding:0; border:0; color:var(--cyan); background:transparent; cursor:pointer; font-size:11px; }
.information-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.information-item { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:12px; min-height:84px; padding:13px; border:1px solid var(--line); border-radius:15px; background:var(--surface-2); }
.information-item.wide { grid-column:1 / -1; }
.information-icon { display:grid; place-items:center; width:43px; height:43px; border:1px solid var(--line-strong); border-radius:12px; color:var(--muted); background:rgba(255,255,255,.025); }
.information-icon.cyan { color:var(--cyan); background:rgba(var(--accent-rgb),.06); }
.information-icon.amber { color:var(--amber); background:rgba(246,186,85,.06); }
.information-item small,.information-item strong,.information-item em { display:block; }
.information-item small { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.1em; }
.information-item strong { margin-top:4px; font-size:13px; text-transform:capitalize; }
.information-item p { margin:3px 0 0; color:var(--muted); font-size:11px; }
.information-item em { margin-top:5px; color:var(--muted-2); font-size:8px; font-style:normal; }
.information-item > a { display:flex; align-items:center; gap:3px; color:var(--cyan); font-size:10px; }
.content-source { padding:5px 8px; border-radius:8px; color:var(--muted); background:rgba(255,255,255,.04); font-size:9px; }
.content-detail { display:grid; grid-template-columns:150px 1fr; gap:22px; }
.detail-poster { display:flex; flex-direction:column; justify-content:flex-end; min-height:210px; padding:16px; border-radius:16px; background-size:cover; background-position:center; box-shadow:inset 0 -100px 70px -50px rgba(0,0,0,.9); }
.detail-poster span { color:var(--cyan-soft); font-size:9px; font-weight:750; letter-spacing:.1em; text-transform:uppercase; }
.detail-poster strong { margin-top:5px; font-size:19px; line-height:1; text-transform:uppercase; }
.content-detail-body { align-self:center; }
.content-detail-body h3 { margin:7px 0 9px; font-size:25px; }
.content-detail-body > p,.detail-description { color:var(--muted); line-height:1.6; }
.content-facts { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin-top:17px; }
.content-facts span { min-width:0; padding:10px; border:1px solid var(--line); border-radius:11px; background:var(--surface-2); }
.content-facts small,.content-facts strong { display:block; }
.content-facts small { color:var(--muted-2); font-size:8px; text-transform:uppercase; }
.content-facts strong { overflow:hidden; margin-top:3px; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.notes-grid { display:grid; grid-template-columns:.65fr 1.35fr; gap:9px; }
.notes-grid > div { display:flex; align-items:flex-start; gap:10px; min-height:68px; padding:13px; border:1px solid var(--line); border-radius:13px; color:var(--cyan); background:var(--surface-2); }
.notes-grid small,.notes-grid strong { display:block; }
.notes-grid small { color:var(--muted); font-size:9px; text-transform:uppercase; }
.notes-grid strong { margin-top:4px; color:var(--text); font-size:11px; line-height:1.45; }
.participants-panel h2 { margin:4px 0 15px; }
.participant { display:grid; grid-template-columns:auto 1fr auto; align-items:center; gap:10px; padding:10px 0; border-top:1px solid var(--line); }
.participant strong,.participant small { display:block; }
.participant small { margin-top:2px; color:var(--cyan); font-size:9px; }
.participant > .ui-icon { color:var(--cyan); }
.plan-meta-panel { display:grid; gap:13px; }
.plan-meta-panel > div { display:flex; justify-content:space-between; gap:12px; }
.plan-meta-panel small { color:var(--muted); }
.plan-meta-panel strong { font-size:11px; }
.complete-detail-button { width:100%; }
.plan-state-actions { display:grid; gap:9px; }
.plan-state-actions .button { width:100%; }
.availability-copy { display:flex; align-items:center; justify-content:center; gap:6px; padding:4px 6px; color:var(--muted); font-size:9px; text-align:center; }
.cancellation-banner { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:14px; margin-top:16px; padding:18px 21px; border:1px solid rgba(255,119,111,.3); border-radius:18px; background:linear-gradient(110deg,rgba(255,119,111,.09),rgba(10,21,30,.85)); }
.information-icon.danger { color:#ff938c; border-color:rgba(255,119,111,.3); background:rgba(255,119,111,.08); }
.cancellation-banner .eyebrow { color:#ff938c; }
.cancellation-banner h2 { margin:4px 0; font-size:17px; }
.cancellation-banner p { margin:0; color:var(--muted); font-size:11px; }
.cancel-warning { display:flex; align-items:center; gap:12px; margin-bottom:17px; padding:14px; border:1px solid rgba(255,119,111,.22); border-radius:13px; color:#ff938c; background:rgba(255,119,111,.06); }
.cancel-warning strong { color:var(--text); }
.cancel-warning p { margin:3px 0 0; color:var(--muted); font-size:11px; }
.cancel-help { margin:13px 0 0; color:var(--muted); font-size:10px; line-height:1.5; }
.field-legend { display:flex; justify-content:space-between; gap:10px; margin-bottom:17px; padding:10px 12px; border-radius:11px; color:var(--muted); background:rgba(var(--accent-rgb),.05); font-size:10px; }
.field-legend b { color:var(--cyan); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(1,6,9,.78); backdrop-filter: blur(12px); animation: fade-in .18s ease; }
.modal-card { width: min(610px, 100%); max-height: calc(100vh - 36px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 23px; background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: 0 30px 100px rgba(0,0,0,.55); animation: modal-in .22s ease; }
.modal-card > header { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 22px 24px 17px; border-bottom: 1px solid var(--line); background: rgba(10,21,30,.94); backdrop-filter: blur(15px); }
.modal-card header h2 { margin: 4px 0 0; font-size: 23px; }
.modal-body { padding: 23px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 650; }
.field.full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { width: 100%; min-height: 45px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; outline: 0; color: var(--text); background: rgba(3,13,19,.66); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: rgba(var(--accent-rgb),.5); }
.field input:disabled { color: var(--muted); opacity: .72; cursor: not-allowed; }
.plan-when-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.plan-when-option { display: grid; grid-template-columns: 25px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 2px 9px; min-height: 66px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 13px; color: var(--muted); background: rgba(3,13,19,.55); text-align: left; cursor: pointer; }
.plan-when-option .ui-icon { grid-row: 1 / 3; }
.plan-when-option strong { min-width: 0; color: var(--text); font-size: 13px; }
.plan-when-option small { min-width: 0; color: var(--muted-2); font-size: 10px; line-height: 1.3; }
.plan-when-option:hover, .plan-when-option.active { color: var(--cyan-soft); border-color: rgba(var(--accent-rgb),.5); background: rgba(var(--accent-rgb),.08); }
.plan-now-hint { color: var(--cyan-soft); font-size: 10px; font-weight: 500; }
.watch-plan-intro { display: flex; align-items: center; gap: 13px; min-width: 0; margin-bottom: 19px; }
.watch-plan-intro .catalog-thumb { flex: none; }
.watch-plan-intro > div { min-width: 0; }
.watch-plan-intro h3 { margin: 4px 0; font-size: 18px; overflow-wrap: anywhere; }
.watch-plan-intro small { color: var(--muted); font-size: 11px; }
.watch-trait-editor { display: grid; gap: 8px; margin: 16px 0 8px; color: var(--muted); font-size: 11px; font-weight: 650; }
.watch-trait-choices { display: flex; flex-wrap: wrap; gap: 7px; }
.watch-trait-choices .chip { min-height: 34px; font-size: 11px; }
.watch-trait-editor > small { color: var(--muted-2); font-size: 10px; font-weight: 500; }
.watch-suggest-action { margin-top: 10px; }
.watch-plan-modal .modal-actions { position: sticky; z-index: 1; bottom: -17px; padding: 11px 0 2px; background: linear-gradient(180deg, rgba(11,24,33,.9), var(--surface-2) 40%); }
.field textarea { min-height: 95px; resize: vertical; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.review-intro { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.review-intro h3, .review-intro p { margin: 3px 0; }
.review-intro p { color: var(--muted); }
.privacy-note { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 13px; border-radius: 11px; color: var(--muted); background: rgba(var(--accent-rgb),.05); font-size: 11px; }
@keyframes fade-in { from { opacity:0; } }
@keyframes modal-in { from { opacity:0; transform:translateY(12px) scale(.98); } }

.art-dune { background-image: linear-gradient(155deg, transparent 20%, rgba(72,30,4,.3)), radial-gradient(circle at 70% 28%, #f7ad4c 0 6%, transparent 7%), linear-gradient(155deg, #55220c, #e47a23 52%, #241007); }
.art-severance { background-image: linear-gradient(160deg, rgba(7,34,36,.1), rgba(3,16,17,.75)), repeating-linear-gradient(90deg, #b9d5c5 0 12px, #344c46 13px 14px, #819d91 15px 28px); }
.art-arcane { background-image: radial-gradient(circle at 28% 30%, #e34384, transparent 18%), radial-gradient(circle at 70% 72%, #14a3b5, transparent 23%), linear-gradient(145deg, #1a1638, #551b4b 55%, #071a32); }
.art-bear { background-image: radial-gradient(circle at 55% 20%, rgba(255,204,154,.8), transparent 10%), linear-gradient(145deg, #5c3a24, #201812 45%, #9b6846); }
.art-past { background-image: linear-gradient(160deg, rgba(4,20,28,.1), rgba(3,15,23,.55)), linear-gradient(135deg, #eaa46c, #467997 50%, #111c2b); }
.art-last { background-image: linear-gradient(160deg, transparent, rgba(3,12,10,.85)), linear-gradient(135deg, #62725c, #24382d 50%, #080d0b); }
.art-cyan { background-image: linear-gradient(135deg, #076c7b, #0b2938 55%, #13cbd7); }
.art-amber { background-image: linear-gradient(135deg, #56320d, #1d2023 50%, #d98f2d); }
.place-cafe { background-image: linear-gradient(160deg, rgba(10,20,12,.1), rgba(13,8,3,.55)), radial-gradient(circle at 70% 28%, #ffce76 0 3%, transparent 4%), linear-gradient(135deg, #68503a, #172b20 52%, #b47b40); }
.place-rooftop { background-image: linear-gradient(180deg, rgba(2,8,12,.05), rgba(1,8,12,.7)), radial-gradient(circle at 75% 20%, #ffb74d 0 2%, transparent 3%), linear-gradient(135deg, #172932, #895628 50%, #081219); }
.place-museum { background-image: linear-gradient(130deg, rgba(7,15,18,.1), rgba(4,14,18,.75)), linear-gradient(110deg, #b7a895 0 25%, #364850 26% 48%, #7896a1 49% 62%, #161f25 63%); }
.place-island, .memory-santorini { background-image: linear-gradient(180deg, transparent, rgba(4,17,22,.4)), linear-gradient(145deg, #7bcce3, #f0d0a5 45%, #176b86 46% 68%, #f3f6ee 69%); }
.place-park { background-image: linear-gradient(180deg, transparent, rgba(4,14,8,.55)), linear-gradient(140deg, #7ab0c0, #438155 47%, #16492b 65%, #9d8355); }
.place-bar { background-image: radial-gradient(circle at 70% 25%, #efbf68, transparent 5%), linear-gradient(135deg, #49220e, #151011 52%, #9c4b27); }
.place-new { background-image: linear-gradient(135deg, #155c62, #132d35 50%, #bf8539); }
.memory-dinner { background-image: radial-gradient(circle at 50% 35%, #ffe099, transparent 7%), linear-gradient(145deg, #723f1d, #171518 55%, #af784a); }
.memory-canyon { background-image: linear-gradient(160deg, transparent, rgba(2,19,22,.4)), linear-gradient(135deg, #bf8158, #1ea6b8 46%, #116678 60%, #71452b); }

#blazor-error-ui { display: none; position: fixed; inset: auto 15px 15px 15px; z-index: 999; padding: 12px; color: #2b120d; background: #ffd4cc; border-radius: 10px; }
.loading-progress { position:absolute; width:64px; height:64px; inset:calc(50% - 32px); }
.loading-progress circle { fill:none; stroke:var(--surface-3); stroke-width:5px; transform-origin:50% 50%; transform:rotate(-90deg); }
.loading-progress circle:last-child { stroke:var(--cyan); stroke-dasharray:calc(3.141 * var(--blazor-load-percentage, 0%) * .8), 500%; transition:stroke-dasharray .05s ease-in-out; }
.loading-progress-text { position:absolute; inset:calc(50% + 45px) 0 auto; text-align:center; color:var(--muted); }

@media (max-width: 1050px) {
    .desktop-sidebar { width: 82px; align-items: center; padding-inline: 14px; }
    .desktop-sidebar .brand-wordmark, .side-nav a span, .side-nav a small, .space-card > div:not(.avatar-pair), .online-dot { display:none; }
    .side-nav a { display:grid; grid-template-columns:1fr; place-items:center; width:50px; padding:0; }
    .space-card { display:block; padding:9px; }
    .main-shell { margin-left:82px; }
    .places-grid { grid-template-columns:repeat(2,1fr); }
    .agenda-layout { grid-template-columns:1fr; }
    .agenda-side { display:none; }
    .profile-grid { grid-template-columns:1fr; }
}

@media (max-width: 760px) {
    body { font-size:14px; }
    .desktop-sidebar { display:none; }
    .main-shell { margin-left:0; padding-bottom:calc(88px + env(safe-area-inset-bottom, 0px)); }
    .app-topbar { height:68px; padding:0 16px; }
    .mobile-brand { display:block; }
    .mobile-brand .brand-symbol { width:39px; height:27px; }
    .mobile-brand .brand-wordmark { width:88px; height:24px; }
    .topbar-copy { display:none; }
    .topbar-actions { gap:9px; }
    .topbar-actions .icon-button { width:36px; height:36px; }
    .topbar-actions .avatar { width:34px; height:34px; }
    .content-frame { padding:24px 15px 32px; }
    .mobile-nav { position:fixed; z-index:50; inset:auto 0 -1px; display:grid; grid-template-columns:repeat(5,1fr); height:calc(74px + env(safe-area-inset-bottom, 0px)); margin:0; padding:7px max(7px, env(safe-area-inset-right, 7px)) max(6px, env(safe-area-inset-bottom, 6px)) max(7px, env(safe-area-inset-left, 7px)); border-top:1px solid var(--line-strong); background:#061019; box-shadow:0 -12px 30px rgba(0,0,0,.32); }
    .mobile-nav a { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--muted); font-size:9px; }
    .mobile-nav a.active { color:var(--cyan); }
    .draw-nav-icon { display:grid; place-items:center; width:43px; height:43px; margin-top:-24px; border:1px solid var(--cyan); border-radius:15px; color:var(--accent-ink); background:linear-gradient(145deg,var(--cyan-soft),var(--cyan)); box-shadow:0 8px 25px rgba(var(--accent-rgb),.22); transform:rotate(-5deg); }
    .draw-nav.active .draw-nav-icon { color:white; }
    .page-heading { grid-template-columns:auto 1fr; gap:13px; margin-bottom:21px; }
    .heading-icon { width:48px; height:48px; border-radius:15px; }
    .page-heading h1 { font-size:25px; }
    .page-heading p { font-size:12px; }
    .heading-action { grid-column:1 / -1; width:100%; }
    .home-hero { min-height:390px; align-items:flex-end; padding:25px 21px; border-radius:24px; background-image:linear-gradient(0deg,rgba(3,12,18,.98) 2%,rgba(3,13,19,.74) 53%,rgba(3,13,19,.08) 88%),url('../assets/colife-evening.png'); background-position:66% center; }
    .hero-content h1 { max-width:300px; font-size:38px; }
    .hero-content > p { font-size:13px; }
    .hero-content { width:100%; }
    .hero-actions { width:100%; flex-direction:column; align-items:center; }
    .hero-actions .button { width:min(100%, 260px); }
    .hero-date { top:17px; right:17px; width:67px; }
    .quick-grid { grid-template-columns:1fr; gap:9px; }
    .quick-card { min-height:70px; }
    .quick-card-featured { min-height:88px; padding:14px; }
    .quick-link { display:none; }
    .draw-banner { grid-template-columns:auto 1fr; padding:19px; margin-bottom:34px; }
    .draw-orb { width:51px; height:51px; border-radius:16px; }
    .draw-banner h2 { font-size:20px; }
    .draw-banner p { font-size:11px; }
    .draw-banner .button { grid-column:1 / -1; }
    .memory-preview-grid { display:flex; overflow-x:auto; margin-inline:-15px; padding:0 15px 5px; scroll-snap-type:x mandatory; scrollbar-width:none; }
    .memory-preview { flex:0 0 78vw; scroll-snap-align:start; }
    .toolbar { align-items:stretch; flex-direction:column; }
    .segmented { width:100%; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); }
    .segmented button { padding:0 8px; }
    .watch-filter-fields, .place-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .place-scope-filter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .watch-grid { min-width:0; grid-template-columns:minmax(0,1fr); }
    .watch-card { width:100%; max-width:100%; grid-template-columns:108px minmax(0,1fr); min-height:210px; }
    .draw-toggle { min-width:0; white-space:normal; }
    .watch-body h2 { font-size:18px; }
    .category-strip { margin-inline:-15px; padding-inline:15px; }
    .place-feature { grid-template-columns:1fr; }
    .place-feature-art { min-height:180px; }
    .place-feature-art::after { background:linear-gradient(180deg,transparent 50%,var(--surface)); }
    .place-feature-body { padding:20px; }
    .place-feature-body h2 { font-size:24px; }
    .feature-actions { display:grid; grid-template-columns:1fr 1fr; }
    .places-grid { grid-template-columns:1fr; }
    .place-photo { height:180px; }
    .compact-toolbar { align-items:stretch; }
    .draw-workspace { grid-template-columns:1fr; }
    .draw-controls { padding:22px; border:0; border-bottom:1px solid var(--line); }
    .mode-cards { grid-template-columns:repeat(3,1fr); }
    .mode-card { grid-template-columns:1fr; justify-items:center; min-width:0; padding:11px 5px; text-align:center; }
    .mode-card .ui-icon { grid-row:auto; }
    .mode-card small { display:none; }
    .draw-stage { min-height:430px; padding:25px 18px; }
    .result-actions { flex-direction:column; }
    .calendar-header { padding:13px 11px; gap:8px; }
    .calendar-header h2 { font-size:13px; }
    .week-strip { gap:2px; padding:7px; }
    .day-button { min-height:67px; padding:3px; }
    .day-button strong { font-size:17px; }
    .day-agenda { padding:3px 10px 13px; }
    .agenda-card { grid-template-columns:44px 1fr; gap:9px; }
    .agenda-art { width:44px; height:44px; }
    .agenda-body { min-width:0; }
    .agenda-card > time { align-self:start; padding-top:14px; }
    .agenda-card .agenda-art { display:none; }
    .agenda-actions { grid-column:2; display:grid; grid-template-columns:1fr 1fr; }
    .agenda-actions .button:only-child { grid-column:1 / -1; }
    .finish-button { width:100%; }
    .memory-spotlight { min-height:420px; padding:25px 20px; background-image:linear-gradient(0deg,rgba(3,11,16,.98),rgba(4,14,20,.55) 70%,transparent),url('../assets/colife-evening.png'); background-position:65% center; }
    .spotlight-place { top:14px; right:14px; font-size:11px; }
    .large-ratings { margin-top:15px; }
    .stats-row > div { grid-template-columns:1fr; grid-template-rows:auto auto auto; justify-items:center; padding:14px 5px; }
    .stats-row .ui-icon { grid-row:auto; width:18px; }
    .stats-row strong { font-size:19px; }
    .stats-row span { font-size:8px; }
    .memory-filters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:2px; }
    .memory-row { grid-template-columns:78px 1fr auto; gap:10px; min-height:100px; }
    .memory-row-body p { max-width:51vw; }
    .memory-row .row-ratings { grid-column:2; margin-top:4px; }
    .memory-row > .ui-icon { grid-column:3; grid-row:1 / 3; }
    .review-cards { grid-template-columns:1fr; }
    .plan-detail-hero { min-height:360px; }
    .plan-detail-hero::before { background:linear-gradient(0deg,rgba(3,11,16,.98),rgba(3,12,18,.55) 75%,rgba(3,12,18,.12)); }
    .plan-detail-overlay { padding:24px 20px; }
    .plan-detail-overlay h1 { max-width:280px; font-size:39px; }
    .detail-hero-actions { flex-direction:column; align-items:stretch; }
    .detail-date { top:15px; right:15px; }
    .plan-details-layout { grid-template-columns:1fr; }
    .plan-side-column { display:grid; }
    .detail-panel { padding:18px 14px; }
    .information-grid { grid-template-columns:1fr; }
    .information-item.wide { grid-column:auto; }
    .information-item > a { grid-column:2; }
    .content-detail { grid-template-columns:105px 1fr; gap:13px; }
    .detail-poster { min-height:180px; padding:11px; }
    .detail-poster strong { font-size:14px; }
    .content-detail-body h3 { font-size:20px; }
    .content-detail-body > p { display:-webkit-box; overflow:hidden; font-size:11px; -webkit-box-orient:vertical; -webkit-line-clamp:4; }
    .content-facts { grid-template-columns:1fr 1fr; }
    .notes-grid { grid-template-columns:1fr; }
    .profile-main { padding:22px 14px; }
    .connection-line i { width:14px; }
    .invite-box { align-items:stretch; flex-direction:column; }
    .about-panel .brand-wordmark { display:none; }
    .form-grid { grid-template-columns:1fr; }
    .field.full { grid-column:auto; }
    .modal-card > header { padding:17px; }
    .modal-body { padding:17px; }
}

@media (max-width: 390px) {
    .watch-filter-fields, .place-filter-fields { grid-template-columns: minmax(0, 1fr); }
    .watch-trait-filters > span { width: 100%; }
    .place-feature-filters > span { width: 100%; }
    .watch-card { grid-template-columns:92px minmax(0,1fr); }
    .watch-body { padding:13px 11px; }
    .watch-body .description { display:none; }
    .watch-plan-actions { grid-template-columns: minmax(0, 1fr); }
    .watch-card-tools { flex-wrap: wrap; }
    .watch-card-tools .draw-toggle { flex-basis: 100%; }
    .mode-card strong { font-size:11px; }
    .draw-summary span { padding-inline:4px; }
    .profile-pair { grid-template-columns:1fr 38px 1fr; }
    .connection-line i { display:none; }
}

@media (max-width: 360px) {
    .watch-plan-modal > header { padding: 13px; }
    .watch-plan-modal header h2 { font-size: 20px; }
    .watch-plan-modal .modal-body { padding: 13px; }
    .watch-plan-modal .watch-plan-intro { margin-bottom: 10px; }
    .watch-plan-modal .watch-plan-intro .catalog-thumb { width: 46px; height: 56px; }
    .watch-plan-modal .form-grid { gap: 9px; }
    .watch-plan-modal .plan-when-option { min-height: 57px; padding: 7px 8px; }
    .watch-plan-modal .field input { min-height: 41px; padding: 7px 10px; }
    .watch-plan-modal .modal-actions { bottom: -13px; margin-top: 11px; }
}

/* Authenticated application and provider import flows */
.app-loading { min-height:100dvh; display:grid; place-content:center; justify-items:center; gap:18px; color:var(--muted); background:radial-gradient(circle at 50% 40%,rgba(var(--accent-rgb),.1),transparent 35%),var(--bg); }
.state-error { position:sticky; z-index:40; top:0; display:flex; justify-content:space-between; align-items:center; gap:15px; padding:10px 18px; color:#ffd0cc; border-bottom:1px solid rgba(239,103,94,.35); background:rgba(76,24,24,.96); font-size:12px; }
.state-error button { border:0; color:inherit; background:transparent; font-size:20px; cursor:pointer; }
.online-dot.offline { background:#68767d; box-shadow:none; }

.auth-shell { min-height:100dvh; display:grid; grid-template-columns:minmax(330px,.85fr) minmax(480px,1.15fr); background:var(--bg); }
.auth-brand-panel { min-height:100dvh; display:flex; flex-direction:column; justify-content:space-between; padding:52px; border-right:1px solid var(--line); background:linear-gradient(145deg,rgba(4,17,24,.45),rgba(4,12,18,.96)),url('../assets/colife-evening.png') center/cover; }
.auth-brand-panel > div { max-width:490px; }
.auth-brand-panel h1 { margin:12px 0 16px; font-size:clamp(42px,5vw,72px); line-height:.98; letter-spacing:-.055em; }
.auth-brand-panel p { max-width:420px; color:#c0ced3; font-size:15px; line-height:1.6; }
.auth-brand-panel > small { color:var(--muted); letter-spacing:.08em; text-transform:uppercase; }
.auth-content { display:grid; place-items:center; padding:38px; }
.auth-card { width:min(440px,100%); padding:34px; border:1px solid var(--line); border-radius:24px; background:var(--surface); box-shadow:var(--shadow); }
.auth-card h1 { margin:8px 0; font-size:31px; }
.auth-card > p { margin:0 0 25px; color:var(--muted); line-height:1.5; }
.auth-card form { display:grid; gap:15px; }
.auth-card .field input { margin-top:7px; }
.auth-card .field .validation-message { display:block; margin-top:5px; color:#ef8a82; font-size:10px; }
.policy-links { display:flex; justify-content:center; gap:20px; margin-top:16px; font-size:11px; }
.policy-links a,.policy-card a,.catalog-credits a { color:var(--cyan); }
.policy-card { width:min(620px,100%); }
.policy-card > p { margin:0 0 15px; font-size:13px; }
.policy-card h2 { margin:19px 0 8px; font-size:15px; }
.policy-card .policy-back { display:inline-block; margin-top:14px; font-size:12px; }
.remember-field { display:flex; align-items:center; gap:9px; color:var(--muted); font-size:11px; }
.remember-field input { accent-color:var(--cyan); }
.auth-submit { width:100%; margin-top:5px; }
.auth-switch { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); color:var(--muted); text-align:center; font-size:12px; }
.auth-switch a { color:var(--cyan); font-weight:750; }
.form-error { margin:0 0 15px; padding:11px 13px; border:1px solid rgba(239,103,94,.35); border-radius:12px; color:#ffc4bf; background:rgba(239,103,94,.08); font-size:11px; }

.import-tabs { display:grid; grid-template-columns:1fr 1fr; gap:5px; margin-bottom:17px; padding:4px; border:1px solid var(--line); border-radius:13px; background:var(--surface-2); }
.import-tabs button { min-height:39px; border:0; border-radius:9px; color:var(--muted); background:transparent; cursor:pointer; }
.import-tabs button.active { color:#052126; background:var(--cyan-soft); font-weight:800; }
.import-tabs button:disabled { color:var(--muted-2); opacity:.58; cursor:not-allowed; }
.provider-setup-notice { display:flex; gap:11px; align-items:flex-start; margin-bottom:15px; padding:13px; border:1px solid rgba(246,186,85,.27); border-radius:13px; color:var(--amber-soft); background:rgba(246,186,85,.07); }
.provider-setup-notice .ui-icon { margin-top:2px; }
.provider-setup-notice div { min-width:0; }
.provider-setup-notice strong,.provider-setup-notice small { display:block; overflow-wrap:anywhere; }
.provider-setup-notice strong { font-size:12px; }
.provider-setup-notice small { margin-top:4px; color:var(--muted); font-size:11px; line-height:1.45; }
.import-help { margin:0 0 15px; color:var(--muted); font-size:12px; line-height:1.55; }
.location-option { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; margin:-4px 0 13px; }
.location-button { display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border:1px solid var(--line); border-radius:999px; background:rgba(255,255,255,.025); color:var(--muted); font-size:11px; cursor:pointer; }
.location-button:hover,.location-button.active { border-color:rgba(68,220,225,.5); color:var(--cyan); background:rgba(68,220,225,.07); }
.location-button:disabled { opacity:.7; cursor:wait; }
.location-option small { color:var(--muted-2); font-size:10px; line-height:1.3; }
.catalog-search { display:grid; grid-template-columns:1fr auto; gap:8px; margin-bottom:13px; }
.catalog-search .search-box { width:100%; }
.catalog-results { max-height:410px; display:grid; gap:7px; overflow-y:auto; padding-right:3px; }
.catalog-result { width:100%; display:grid; grid-template-columns:55px 1fr auto; align-items:center; gap:12px; min-height:74px; padding:8px; border:1px solid var(--line); border-radius:14px; color:var(--text); text-align:left; background:var(--surface-2); cursor:pointer; }
.catalog-result:hover { border-color:rgba(var(--accent-rgb),.4); background:rgba(var(--accent-rgb),.045); }
.catalog-result > span:nth-child(2) { min-width:0; }
.catalog-result strong,.catalog-result small,.catalog-result em { display:block; }
.catalog-result small { margin-top:3px; color:var(--cyan); font-size:10px; }
.catalog-result em { overflow:hidden; margin-top:4px; color:var(--muted); font-size:10px; font-style:normal; text-overflow:ellipsis; white-space:nowrap; }
.catalog-thumb { width:55px; height:64px; display:grid; place-items:center; overflow:hidden; border-radius:10px; color:var(--cyan); background:linear-gradient(145deg,#0c3b48,#08151d); }
.catalog-thumb img { width:100%; height:100%; object-fit:cover; }
.catalog-thumb.place-thumb { color:var(--amber); }
.provider-credit { display:block; margin-top:13px; color:var(--muted-2); font-size:9px; line-height:1.4; }
.google-credit { display:block; color:var(--muted-2); font-size:10px; line-height:1.4; }
.google-maps-attribution { display:inline-block; color:#fff; font-family:Roboto,Arial,sans-serif; font-size:12px; font-style:normal; font-weight:400; letter-spacing:normal; white-space:nowrap; line-height:1.4; }
.place-attribution { display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; margin:8px 0 12px; }
.place-attribution small,.place-attribution a { color:var(--muted-2); font-size:10px; line-height:1.4; }
.place-attribution a { color:var(--cyan); }
.import-preview { display:grid; gap:14px; }
.import-preview > p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.import-preview-head { display:flex; align-items:center; gap:13px; padding:13px; border:1px solid var(--line); border-radius:14px; background:var(--surface-2); }
.import-preview-head .catalog-thumb { flex:none; width:72px; height:90px; }
.import-preview-head h3 { margin:0 0 5px; font-size:18px; }
.import-preview-head p,.import-preview-head small { display:block; margin:3px 0; color:var(--muted); font-size:11px; line-height:1.45; }
.check-field { display:flex; align-items:center; gap:9px; }
.check-field input[type=checkbox] { width:18px; min-height:18px; height:18px; padding:0; accent-color:var(--cyan); }
.check-field span { color:var(--text); }

/* Text resilience: compact cards preview content; detail views keep it readable. */
.space-card strong { overflow:hidden; text-overflow:ellipsis; }
.page-heading h1,.spotlight-content h2,.memory-detail-art h2,.plan-detail-overlay h1 { overflow-wrap:anywhere; }
.watch-body h2,.place-body h2,.memory-row-body h3,.agenda-body h3 {
    display:-webkit-box; min-width:0; overflow:hidden; overflow-wrap:anywhere;
    -webkit-box-orient:vertical; -webkit-line-clamp:2;
}
.detail-poster strong { overflow-wrap:anywhere; }
.watch-body .meta-row,.place-address,.agenda-body p,.information-item > div { min-width:0; overflow-wrap:anywhere; }
.card-topline .source-badge { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.eligible-chips > span { min-width:0; max-width:100%; grid-template-columns:27px minmax(0,1fr); overflow-wrap:anywhere; }
.eligible-chips small { grid-column:2; min-width:0; }
.information-item strong { text-transform:none; overflow-wrap:anywhere; }
.information-item strong::first-letter { text-transform:uppercase; }
.profile-main,.profile-settings,.profile-pair > div,.invite-box > div,.join-space > div { min-width:0; }
.profile-pair { grid-template-columns:minmax(0,1fr) auto minmax(0,1fr); }
.profile-pair strong { max-width:100%; overflow-wrap:anywhere; }
.profile-pair small { display:block; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.invite-box .button { flex-shrink:0; white-space:nowrap; }
.join-space { grid-template-columns:minmax(0,1fr); }
.join-form { width:100%; min-width:0; }
.join-form input { flex:1; min-width:0; }
.join-form button { flex:none; white-space:nowrap; }

@media (max-width:620px) {
    .memory-filters { flex-wrap:wrap; overflow:visible; padding-bottom:0; }
    .profile-pair { grid-template-columns:minmax(0,1fr) 38px minmax(0,1fr); align-items:start; }
    .connection-line { margin-top:36px; }
}
@media (max-width:390px) {
    .join-form { flex-direction:column; }
    .join-form button { width:100%; }
}
.source-badge { color:var(--muted-2); font-size:8px; text-transform:uppercase; letter-spacing:.08em; }
.poster,.place-cover,.memory-thumb,.cover-art,.detail-poster,.memory-detail-art { background-size:cover; background-position:center; }

.place-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.place-cover { position:relative; height:170px; display:flex; align-items:flex-end; padding:14px; }
.place-cover > span { color:#fff; font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.place-photo-credit { display:flex; flex-direction:column; gap:5px; min-width:0; color:#fff; font-size:11px; line-height:1.35; }
.place-photo-credit.compact { position:absolute; right:11px; bottom:9px; max-width:66%; padding:6px 8px; border-radius:8px; background:rgba(2,9,14,.9); box-shadow:0 3px 14px rgba(0,0,0,.22); }
.place-photo-author { display:flex; align-items:center; gap:5px; min-width:0; overflow-wrap:anywhere; }
.place-photo-author img { width:18px; height:18px; flex:none; border-radius:50%; object-fit:cover; }
.place-photo-author a,.place-photo-original { text-decoration:underline; text-underline-offset:2px; }
.place-photo-original { color:var(--cyan-soft); }
.place-provider-attributions { display:block; min-width:0; color:var(--muted); font-size:11px; line-height:1.4; overflow-wrap:anywhere; }
.place-provider-attributions a { color:var(--cyan-soft); text-decoration:underline; text-underline-offset:2px; }
.favorite-button.active { color:var(--amber); border-color:rgba(246,186,85,.55); background:rgba(70,43,7,.58); }
.favorite-button.active svg { fill:currentColor; }
.place-body h2 { margin:7px 0; font-size:19px; }
.place-address { min-height:34px; display:flex; gap:5px; margin:0 0 8px; color:var(--muted); font-size:11px; line-height:1.45; }
.public-rating { display:flex; align-items:center; gap:5px; margin:0 0 9px; color:var(--amber); }
.empty-hero { background-image:radial-gradient(circle at 80% 20%,rgba(var(--accent-rgb),.18),transparent 35%),var(--empty-background); }

.setting-row { min-height:69px; display:flex; justify-content:space-between; align-items:center; gap:12px; padding:14px 0; border-bottom:1px solid var(--line); }
.setting-row > span:first-child { display:flex; align-items:center; gap:11px; }
.setting-row i { font-style:normal; }
.setting-row strong,.setting-row small { display:block; }
.setting-row small { margin-top:3px; color:var(--muted); font-size:10px; }
.profile-name-action { cursor:pointer; transition:color .18s ease; }
.profile-name-action:hover,.profile-name-action:focus-visible { color:var(--cyan-soft); }
.profile-name-action > span,.profile-name-action i { min-width:0; }
.profile-name-action > .ui-icon { flex:none; color:var(--muted); }
.profile-name-action small { max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.profile-quick-edit { display:none; align-items:center; gap:5px; min-height:27px; padding:4px 8px; border:1px solid rgba(var(--accent-rgb),.25); border-radius:9px; color:var(--cyan-soft); background:rgba(var(--accent-rgb),.06); font-size:10px; font-weight:700; white-space:nowrap; cursor:pointer; }
.profile-quick-edit:hover,.profile-quick-edit:focus-visible { border-color:var(--cyan); background:rgba(var(--accent-rgb),.12); }
.profile-name-help { margin:12px 0 18px; color:var(--muted); font-size:12px; line-height:1.55; }
.theme-settings { margin-top:20px; padding:26px; }
.theme-settings-heading { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-bottom:22px; }
.theme-settings-heading h2 { margin:6px 0 8px; font-size:23px; }
.theme-settings-heading p { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.theme-saved { display:flex; align-items:center; gap:6px; flex:none; color:var(--cyan-soft); font-size:11px; }
.theme-options { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.theme-option { --preview-bg:#081820; --preview-accent:#14d9e7; --preview-soft:#8af5f3; --preview-warm:#f6ba55; position:relative; display:flex; flex-direction:column; gap:16px; min-width:0; padding:13px 13px 16px; border:1px solid var(--line); border-radius:17px; background:var(--bg); cursor:pointer; transition:border-color .18s ease,transform .18s ease; }
.theme-option:hover { border-color:var(--line-strong); transform:translateY(-2px); }
.theme-option.active { border-color:var(--cyan); box-shadow:0 0 0 1px rgba(var(--accent-rgb),.1); }
.theme-option:has(.theme-input:focus-visible) { outline:2px solid var(--cyan-soft); outline-offset:3px; }
.theme-option:has(.theme-input:disabled) { cursor:wait; }
.theme-input { position:absolute; width:1px; height:1px; opacity:0; }
.theme-preview-amethyst { --preview-bg:#191026; --preview-accent:#a970ff; --preview-soft:#dbc2ff; --preview-warm:#efb765; }
.theme-preview-aurora { --preview-bg:#0c211b; --preview-accent:#46d99a; --preview-soft:#a9f2d2; --preview-warm:#f1bd62; }
.theme-preview-sunset { --preview-bg:#2b151c; --preview-accent:#ff7d89; --preview-soft:#ffc1c6; --preview-warm:#f6bd62; }
.theme-preview { display:flex; align-items:center; justify-content:center; height:82px; padding:14px; border:1px solid rgba(255,255,255,.06); border-radius:11px; background:radial-gradient(ellipse at 70% 0%,color-mix(in srgb,var(--preview-accent) 25%,transparent),transparent 85%),var(--preview-bg); }
.theme-preview i { display:block; flex:none; width:30px; height:30px; border:3px solid var(--preview-bg); border-radius:50%; box-shadow:0 5px 13px rgba(0,0,0,.25); background:var(--preview-accent); }
.theme-preview i + i { margin-left:-8px; }
.theme-preview i:nth-child(2) { background:var(--preview-soft); }
.theme-preview i:nth-child(3) { background:var(--preview-warm); }
.theme-preview i:nth-child(4) { background:var(--preview-bg); border-color:color-mix(in srgb,var(--preview-soft) 24%,var(--preview-bg)); }
.theme-option-copy { display:block; padding-right:22px; }
.theme-option-copy strong { display:block; font-size:14px; }
.theme-option-copy small { display:block; margin-top:6px; color:var(--muted); font-size:10px; line-height:1.55; }
.theme-selection { position:absolute; right:13px; bottom:17px; display:grid; place-items:center; width:20px; height:20px; color:var(--cyan-soft); }
.theme-selection > i { width:15px; height:15px; border:1px solid var(--line-strong); border-radius:50%; }
.app-shell:not(.theme-ocean) .button-ghost { background:var(--surface-2); }
.app-shell:not(.theme-ocean) :is(.quick-card,.watch-card,.draw-controls) { background:linear-gradient(145deg,var(--surface-2),var(--surface)); }
.app-shell:not(.theme-ocean) :is(.watch-filter-panel,.place-filter-panel,.mode-card) { background:var(--surface); }
.app-shell:not(.theme-ocean) .mode-card.active { background:rgba(var(--accent-rgb),.075); }
.app-shell:not(.theme-ocean) .mobile-nav { background:var(--stage-background); }
.app-shell:not(.theme-ocean) .catalog-thumb { background:linear-gradient(145deg,var(--surface-3),var(--surface)); }
.app-shell:not(.theme-ocean) .day-button.active i { background:color-mix(in srgb,var(--cyan) 28%,var(--surface)); }
.app-shell:not(.theme-ocean) .draw-banner p { color:var(--muted); }
.app-shell:not(.theme-ocean) .quick-icon.blue { background:color-mix(in srgb,var(--blue) 8%,transparent); }
@media (max-width:1050px) { .theme-options { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:620px) { .theme-settings { padding:18px; } .theme-settings-heading { flex-direction:column; align-items:flex-start; gap:10px; } .theme-settings-heading h2 { font-size:20px; } .theme-options { gap:10px; } .theme-option { padding:10px 10px 14px; } .theme-preview { padding:10px; height:72px; } .theme-option-copy { padding-right:0; padding-bottom:16px; } .theme-selection { right:10px; bottom:10px; } }
.profile-settings .profile-logout { justify-content:center; margin-top:18px; padding:0 16px; border:1px solid rgba(239,103,94,.35); }
.join-space { display:grid; grid-template-columns:minmax(0,1fr); align-items:end; gap:18px; margin-top:17px; padding:18px; border:1px solid rgba(var(--accent-rgb),.2); border-radius:16px; background:rgba(var(--accent-rgb),.035); }
.join-space h3 { margin:5px 0; }
.join-space p { margin:0; color:var(--muted); font-size:11px; }
.join-form { display:flex; gap:7px; }
.join-form input { min-height:43px; padding:0 12px; border:1px solid var(--line); border-radius:11px; color:var(--text); background:var(--surface-2); text-transform:uppercase; }
.review-pending { display:block; margin-top:12px; color:var(--muted); }
.review-form { margin-top:18px; }

@media (max-width: 900px) {
    .auth-shell { grid-template-columns:1fr; }
    .auth-brand-panel { min-height:260px; padding:30px; }
    .auth-brand-panel h1 { font-size:42px; }
    .auth-brand-panel > small { display:none; }
    .auth-content { padding:24px 16px 40px; }
    .place-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 620px) {
    .profile-quick-edit { display:inline-flex; }
    .auth-brand-panel { min-height:210px; }
    .auth-brand-panel p { display:none; }
    .auth-card { padding:24px 18px; }
    .auth-card h1 { font-size:26px; }
    .catalog-search { grid-template-columns:1fr; }
    .catalog-search .button { width:100%; }
    .catalog-results { max-height:340px; }
    .place-grid { grid-template-columns:1fr; }
    .place-cover { height:190px; }
    .join-space { grid-template-columns:1fr; }
    .join-form { display:grid; }
}
