@font-face { font-family:Merriweather; src:url("fonts/Merriweather.woff2") format("woff2"); font-style:normal; font-weight:300 700; font-display:swap; }
@font-face { font-family:"Judiro Lucide"; src:url("fonts/JudiroLucide.woff2") format("woff2"); font-style:normal; font-weight:100 700; font-display:block; }
.material-symbols-outlined {
  font-family: 'Judiro Lucide';
  font-weight: normal;
  font-style: normal;

  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}
:root {
  --ui-font: -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --g-ink:#191a2c; --g-muted:#545a70; --g-quiet:#666d83; --g-line:rgba(77,80,119,.16);
  --g-edge:rgba(255,255,255,.84); --g-frame:rgba(246,246,255,.63); --g-panel:rgba(253,253,255,.72);
  --g-soft:rgba(248,250,255,.65); --g-solid:#f9faff; --g-pill:#1c1b30; --g-on-pill:#fff;
  --g-focus:#5e52ba; --g-shadow:0 24px 80px -40px #48447670, inset 0 1px 0 #ffffffa8;
  --g-sky:radial-gradient(ellipse at 77% 10%,#fff3de 0%,transparent 42%),radial-gradient(ellipse at 16% 85%,#b8c6ef 0%,transparent 58%),linear-gradient(140deg,#d2ceeb,#e7f1fb 48%,#c8c9e6);
}
html.dark {
  --g-ink:#f1f1fb; --g-muted:#bec1d6; --g-quiet:#a5aac3; --g-line:rgba(185,194,239,.17);
  --g-edge:rgba(208,216,255,.2); --g-frame:rgba(28,31,50,.79); --g-panel:rgba(36,40,64,.79);
  --g-soft:rgba(55,59,83,.76); --g-solid:#25283d; --g-pill:#e2e3ff; --g-on-pill:#1b1c30;
  --g-focus:#beb8ff; --g-shadow:0 25px 80px -35px #030611aa,inset 0 1px 0 #d7dcff15;
  --g-sky:radial-gradient(ellipse at 78% 5%,#49404c 0%,transparent 40%),radial-gradient(ellipse at 10% 90%,#303c64 0%,transparent 54%),linear-gradient(140deg,#212237,#1b2339 48%,#33314e);
}
.glass-app,.drafting-glass { margin:0; background:var(--g-sky) !important; color:var(--g-ink); font-family:var(--ui-font); }
.glass-app { height:100dvh; display:flex; flex-direction:column; overflow:hidden; padding:0; box-sizing:border-box; }
.glass-icon { display:inline-block; width:19px; height:19px; flex:none; fill:none; stroke:currentColor; stroke-width:1.65; stroke-linecap:round; stroke-linejoin:round; vertical-align:middle; }
.glass-frame { width:100%; min-height:0; position:relative; display:flex; flex:1; overflow:hidden; background:var(--g-frame); }
.glass-main { min-width:0; min-height:0; background:var(--g-panel); overflow:hidden; }
.glass-content { min-height:0; overscroll-behavior:contain; }
.glass-topbar { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:54px; height:auto; padding:8px clamp(16px,2vw,32px); background:transparent !important; border:0; border-bottom:1px solid var(--g-line); color:var(--g-ink); }
.glass-header-actions { display:flex; align-items:center; gap:10px; }
.appearance-toggle { display:inline-grid; place-items:center; flex:none; width:38px; height:38px; border:1px solid var(--g-line); border-radius:50%; background:var(--g-soft); color:var(--g-ink); cursor:pointer; }
.appearance-toggle { padding:0; line-height:0; }
.appearance-toggle > span { grid-area:1 / 1; display:grid; place-items:center; line-height:0; }
.appearance-toggle .glass-icon { display:block; width:17px; height:17px; }
.appearance-toggle .dark-icon, .dark .appearance-toggle .light-icon { display:none; }
.dark .appearance-toggle .dark-icon { display:grid; }
.glass-app :is(a,button,summary):focus-visible,.drafting-glass :is(a,button,summary):focus-visible { outline:2px solid var(--g-focus); outline-offset:2px; }
.glass-app :is(.rail-link,.appearance-toggle,.dash-button,.tool-link):active,.drafting-glass .appearance-toggle:active { transform:scale(.97); }
#dashboard-sidebar { flex:none; width:76px; color:var(--g-ink); border:0; border-inline-end:1px solid var(--g-line); background:var(--g-frame); }
#dashboard-sidebar > div { display:flex; flex-direction:column; height:100%; align-items:center; padding:15px 0 8px; gap:10px; }
.rail-brand a,.rail-link,#rail-more summary { display:flex; align-items:center; justify-content:center; flex:none; text-decoration:none; gap:10px; }
.rail-brand { display:none; }
.rail-label,#sidebar-close { display:none; }
.rail-link { height:40px; width:40px; border-radius:50%; background:var(--g-soft); color:var(--g-muted); border:1px solid var(--g-edge); }
.rail-link:hover,.appearance-toggle:hover { background:var(--g-solid); color:var(--g-ink); }
.rail-link.active { background:var(--g-pill); color:var(--g-on-pill); }
#sidebar-nav { flex:1; min-height:0; width:100%; display:flex; align-items:center; flex-direction:column; gap:8px; overflow-y:auto; }
#sidebar-nav .sidebar-link::before { display:none; }
#rail-more summary { list-style:none; cursor:pointer; } #rail-more summary::-webkit-details-marker { display:none; }
.rail-flyout,.glass-app #dashboard-user-menu { position:absolute; z-index:60; min-width:175px; padding:6px; border:1px solid var(--g-edge); border-radius:16px; color:var(--g-ink); background:var(--g-solid); box-shadow:0 12px 35px #14142d36; }
.rail-flyout { top:min(335px,32%); left:65px; }
.rail-flyout .rail-link { width:100%; justify-content:flex-start; border:0; background:none; border-radius:9px; padding:8px 12px; }
.rail-flyout .rail-link:hover { background:var(--g-soft); }
.rail-flyout .rail-label { display:block; font-size:13px; }
.rail-account { width:100%; padding:6px!important; border:0!important; }
#dashboard-user-toggle { display:flex; align-items:center; justify-content:flex-start; gap:9px; width:100%; padding:5px; text-align:start; }
.rail-account-copy { display:flex; flex:1; min-width:0; flex-direction:column; }
.rail-account-chevron { display:grid; place-items:center; flex:none; color:var(--ui-secondary); }
.rail-account-chevron .glass-icon { width:14px; height:14px; }
#user-avatar-initials { flex:none; }
@media(min-width:768px){
  #dashboard-sidebar:not(.expanded) #dashboard-user-toggle { flex-direction:column; gap:3px; }
  #dashboard-sidebar:not(.expanded) .rail-account-copy { flex:none; width:100%; text-align:center; }
  #dashboard-sidebar:not(.expanded) #dashboard-user-name { font-size:.69rem; line-height:1.2; font-weight:500; }
  #dashboard-sidebar:not(.expanded) :is(#dashboard-user-email,.rail-account-chevron) { display:none; }
}
#user-avatar-initials { background:var(--g-pill); color:var(--g-on-pill); border-radius:50%; width:38px; height:38px; }
.glass-app #dashboard-user-menu { bottom:0; left:62px; right:auto; min-width:210px; }
.glass-app #profile-modal > div { background:var(--g-solid); border-color:var(--g-edge); }
.glass-app :is(#profile-modal,#profile-modal-backdrop,#dashboard-user-menu,#mobile-backdrop).hidden { display:none; }
@media (min-width:768px) { #dashboard-sidebar { position:static; transform:none; } }
@media (max-width:767px) {

  #dashboard-sidebar { position:fixed; inset:0 auto 0 0; z-index:45; width:min(272px,86vw); background:var(--g-solid); box-shadow:10px 0 40px #15182426; }
  #dashboard-sidebar.-translate-x-full { transform:translateX(-105%); visibility:hidden; }
  #dashboard-sidebar > div { align-items:stretch; padding:14px; gap:6px; }
  .rail-brand { display:flex; justify-content:space-between; align-items:center; }
  .rail-label,#sidebar-close { display:block; } #sidebar-close { width:40px; height:40px; }
  #sidebar-nav { align-items:stretch; gap:3px; } .rail-link,#rail-more summary { width:100%; min-height:40px; justify-content:flex-start; padding:0 12px; border:0; border-radius:10px; }
  .rail-flyout { position:static; box-shadow:none; background:none; border:0; }
  .glass-app #dashboard-user-menu { bottom:100%; left:0; right:0; }
  .glass-topbar { padding-inline:14px; }
}
@media (max-height:620px) and (min-width:768px) { #sidebar-nav { gap:4px; } .rail-link { width:34px; height:34px; } }
@media (prefers-reduced-motion:reduce) { .glass-app *,.drafting-glass * { scroll-behavior:auto!important; transition-duration:0s!important; animation-duration:.01ms!important; } }
@media (prefers-reduced-transparency:reduce) { .glass-frame,.glass-main { backdrop-filter:none; background:var(--g-solid); } }

/* Keep the editing surface and the controls on the same appearance as the dashboard. */
.drafting-glass { padding:0; }
.drafting-glass .workspace { --ink:var(--g-ink); --muted:var(--g-muted); --line:var(--g-line); --violet:var(--g-pill); --tint:var(--g-soft); height:100dvh; overflow:hidden; background:var(--g-panel); }
.drafting-glass .topbar,.drafting-glass .tabs,.drafting-glass .edit-bar { background:var(--g-frame); }
.drafting-glass .workspace .appearance-toggle { background:var(--g-soft); border:1px solid var(--g-line); color:var(--g-ink); }
.drafting-glass :is(.workspace .starters button,.icon-button,.popover,.language-control select,#composer,.paper) { background:var(--g-solid); color:var(--g-ink); border-color:var(--g-line); }
.drafting-glass :is(.canvas,.doc-status) { background:var(--g-soft); }
.drafting-glass .composer-wrap { background:transparent; }
.drafting-glass .workspace :is(.primary,.send) { background:var(--g-pill); color:var(--g-on-pill); }
.drafting-glass :is(.panel-head h1,.language-control,.attach,.empty-page h2,#editor,.context,.thinking) { color:var(--g-ink); }
.drafting-glass .workspace .welcome h2,.drafting-glass .workspace .empty-page h2 { font-family:var(--ui-font); font-weight:580; letter-spacing:-.046em; }
.dark .drafting-glass :is(.small-mark,.doc-icon,.quill,.paper-symbol,.starters button i) { background:#373b55; color:#c7c9f2; border-color:var(--g-line); }
.dark .drafting-glass .paper-lines i { background:#3a3c51; }
.dark #setup-dialog,.dark #disclaimer { background:var(--g-solid); color:var(--g-ink); border-color:var(--g-edge); }
.dark .setup-grid input,.dark .setup-actions button { background:#30334a; color:var(--g-ink); border-color:var(--g-line); }
.dark #setup-context { color:var(--g-muted); }
@media (max-width:799px) { .drafting-glass { padding:0; } .drafting-glass .workspace { height:100dvh; border:0; border-radius:0; } }
.glass-main .cm-card,.glass-main .dcard,.glass-main .pcard,.glass-main .glass-card,.glass-main .billing-glass {
  background-color:var(--g-panel); border-color:var(--g-line); box-shadow:inset 0 1px 0 var(--g-edge),0 4px 15px #15172d08;
}
.glass-main #mobile-menu,.glass-app #sidebar-close { color:var(--g-ink); }
.rail-flyout .rail-link.active { background:var(--g-soft); color:var(--g-ink); }

/* The screen itself supplies the tinted underlay. Controls use static highlights
   so long lists can scroll without recompositing a blurred window. */
.glass-topbar { background:var(--g-panel)!important; }
.workspace-wordmark { display:inline-flex; align-items:center; flex:none; font:720 clamp(1.12rem,1rem + .48vw,1.5rem)/1 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing:-.055em; color:var(--g-ink); text-decoration:none; }
.topbar-location { display:flex; align-items:center; gap:clamp(7px,1vw,15px); min-width:0; }
.topbar-page { min-width:0; padding-inline-start:clamp(8px,1vw,14px); border-inline-start:1px solid var(--g-line); color:var(--g-muted); font-size:clamp(.76rem,.7rem + .22vw,.92rem); }
.topbar-page:empty { display:none; }
.header-menu-button { display:inline-grid; place-items:center; width:38px; height:40px; flex:none; color:var(--g-ink); border-radius:9px; cursor:pointer; }
.header-menu-button:hover { background:var(--g-soft); }
.drafting-nav .popover { inset-inline-start:0; inset-inline-end:auto; }
.drafting-glass .topbar { gap:clamp(5px,1.1vw,16px); }
.drafting-glass .breadcrumb { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.drafting-glass .topbar nav { gap:clamp(4px,1vw,14px); }
.rail-divider { width:32px; border:0; border-top:1px solid var(--g-line); margin:4px 0; }
.rail-primary { color:var(--g-ink); }
.rail-label { font-size:clamp(.83rem,.78rem + .18vw,.94rem); font-weight:520; line-height:1.25; }
#dashboard-user-menu button,#dashboard-user-menu a { font-size:clamp(.79rem,.75rem + .18vw,.91rem); }
@media (min-width:768px) {
  #dashboard-sidebar:not(.expanded) .rail-primary { width:70px; height:54px; flex-direction:column; gap:3px; background:none; border:0; border-radius:12px; }
  #dashboard-sidebar:not(.expanded) .rail-primary.active { background:var(--g-soft); color:var(--g-ink); }
  #dashboard-sidebar:not(.expanded) .rail-primary .rail-label { display:block; font-size:.65rem; }
  #dashboard-sidebar.expanded { width:clamp(188px,16vw,244px); }
  #dashboard-sidebar.expanded #sidebar-nav { padding:0 10px; align-items:stretch; gap:4px; }
  #dashboard-sidebar.expanded .rail-label { display:block; }
  #dashboard-sidebar.expanded .rail-link { justify-content:flex-start; width:100%; min-height:40px; padding:0 12px; border:0; border-radius:10px; background:transparent; }
  #dashboard-sidebar.expanded .rail-link:hover { background:var(--g-soft); }
  #dashboard-sidebar.expanded .rail-link.active { background:var(--g-pill); }
  #dashboard-sidebar.expanded .rail-divider { width:100%; }
  #dashboard-sidebar.expanded .rail-flyout { position:static; min-width:0; box-shadow:none; background:none; border:0; }
  #dashboard-sidebar.expanded #dashboard-user-menu { bottom:100%; left:0; }
}
@media (max-width:767px) {
  #dashboard-sidebar { width:min(clamp(220px,62vw,268px),85vw); }
  #dashboard-sidebar .rail-brand { padding:0 4px 6px; }
  #sidebar-nav .rail-link { font-size:.875rem; background:transparent; min-height:42px; }
  #sidebar-nav .rail-primary { background:var(--g-soft); font-weight:600; }
  #sidebar-nav .rail-link.active { background:var(--g-pill); }
  .rail-divider { width:100%; }
  .glass-topbar { padding-inline:8px; }
}

.community-heading { margin-bottom:16px; }
.community-heading-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.community-heading-row h1 { min-width:0; }
.community-heading-row #cm-open-composer { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:34px; flex:none; padding:6px 11px; border:1px solid var(--ui-border); border-radius:10px; background:var(--ui-active); color:var(--ui-action); font:550 .8rem/1.2 var(--ui-font); }
.community-heading-row #cm-open-composer .glass-icon { width:15px; height:15px; stroke-width:1.7; }
.community-heading-row #cm-open-composer:hover { border-color:var(--ui-action); }
@media(max-width:767px) { .topbar-page:has(.community-crumb) { display:none; } }
.community-heading h1 { margin:0; font-weight:650; font-size:clamp(1.45rem,1.08rem + 1.7vw,2.65rem); letter-spacing:-.045em; line-height:1.15; }
.community-heading p { margin:4px 0 0; color:var(--g-muted); font-size:clamp(.8rem,.73rem + .24vw,.95rem); }
.glass-main :is(.template-card,.dcard,.pcard,.billing-glass,.cm-card,.article-card>div,.section-card.bg-white) { background:linear-gradient(128deg,transparent,#a3b5d80d),var(--g-panel); border-color:var(--g-line); box-shadow:inset 0 1px 0 var(--g-edge),0 2px 8px #20233b08; }
@media (max-width:480px) {
  .glass-topbar,.glass-header-actions,.topbar-location { gap:5px; }
  .topbar-page { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
  .glass-header-actions { flex-shrink:0; }
}

/* Community feed header */
.community-heading .feed-actions { display:flex; align-items:center; gap:6px; }
.feed-actions>button,.feed-filters>summary { display:inline-flex; align-items:center; justify-content:center; gap:5px; min-height:36px; border-radius:8px; color:var(--ui-secondary); font-size:.815rem; cursor:pointer; }
.feed-actions #cm-show-search { width:36px; }
.feed-actions :is(button,summary)>.glass-icon { width:17px; height:17px; }
.feed-filters { position:relative; }.feed-filters>summary { list-style:none; padding-inline:8px; }
.feed-filters>summary::-webkit-details-marker { display:none; }
.feed-filters[open]>summary,.feed-actions #cm-show-search[aria-expanded=true] { background:var(--ui-active); color:var(--ui-action); }
.feed-filter-panel { position:absolute; z-index:15; inset-inline-end:0; top:calc(100% + 4px); width:min(246px,calc(100vw - 32px)); padding:14px; border:1px solid var(--ui-border); border-radius:12px; background:var(--ui-paper); box-shadow:0 5px 18px #0d203519; }
.feed-filter-panel label { display:block; margin-bottom:6px; color:var(--ui-text); font-weight:550; }
#cm-category-filter { width:100%; border:1px solid var(--ui-border);border-radius:7px;background-color:var(--ui-canvas);color:var(--ui-text);font-size:.875rem; }
.feed-topic-list:not(:empty) { display:flex; flex-wrap:wrap; gap:4px; margin-top:8px; }
.feed-search-row:not([hidden]) { display:flex; align-items:center; gap:8px; padding:0 9px; margin-top:10px; border:1px solid var(--ui-border); border-radius:9px; background:var(--ui-paper); color:var(--ui-secondary); }
.feed-search-row:focus-within { outline:2px solid var(--ui-action); outline-offset:0; }
#cm-search,#cm-search:focus { flex:1; min-width:0; color:var(--ui-text); background:transparent; box-shadow:none; border:0; outline:none; padding:8px 0; }
#cm-search-clear { min-width:30px; min-height:30px; }
#cm-sort-row { display:flex; align-items:center; gap:clamp(12px,3.5vw,26px); margin-top:7px; border-bottom:1px solid var(--ui-border); }
#cm-sort-row button { position:relative; min-height:37px; padding:4px 2px; color:var(--ui-secondary); font-size:.825rem; font-weight:480; }
#cm-sort-row .active { color:var(--ui-action); font-weight:580; }
#cm-sort-row .active::after { content:''; position:absolute; inset:auto 0 -1px; height:2px; background:var(--ui-action); border-radius:2px; }
@media(max-width:767px){.community-heading-row #cm-open-composer{display:none} #cm-search{font-size:16px}}

.feed-empty { padding:clamp(16px,2vw,26px); border:1px solid var(--ui-border); border-radius:14px; background:var(--ui-paper); }
.feed-empty h2 { margin:0; }
.feed-empty p { margin:5px 0 12px; max-width:47ch; color:var(--ui-secondary); font-size:var(--ui-body); }
#cm-empty-cta { min-height:34px; padding:5px 11px; border-radius:8px; color:var(--ui-action); background:var(--ui-active); font-size:.83rem; font-weight:550; }

#cm-composer-close { display:grid; place-items:center; flex:none; padding:0; line-height:0; }
#cm-composer-close .glass-icon { display:block; width:18px; height:18px; stroke-width:1.8; }
