/* DIMSE • shared screen styles */
html[data-dimse-ui] {
  --ds-cream: #faf6e9;
  --ds-card: #fffdf6;
  --ds-ink: #1c1c2e;
  --ds-muted: #535850;
  --ds-teal: #175e69;
  --ds-wash: #e6efea;
  --ds-gold: #d4821a;
  --ds-line: #d7cbb6;
  --ds-field: #9b9586;
  --ds-serif: Georgia, "Times New Roman", serif;
  --ds-sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}
html[data-dimse-ui]:is(.dark,[data-theme="dark"]) {
  --ds-cream: #191923; --ds-card: #242531; --ds-ink: #f7f1e4;
  --ds-muted: #ccc8bd; --ds-teal: #98d4d5; --ds-wash: #293c43;
  --ds-gold: #edac54; --ds-line: #4e505b; --ds-field: #92949a;
}
html:root[data-dimse-ui="app"]:not(.dark) {
  --background: var(--ds-cream); --foreground: var(--ds-ink);
  --card: var(--ds-card); --card-foreground: var(--ds-ink);
  --popover: var(--ds-card); --popover-foreground: var(--ds-ink);
  --primary: var(--ds-teal); --primary-foreground: #fff;
  --secondary: #eee6d4; --secondary-foreground: var(--ds-ink);
  --muted: #eee9dc; --muted-foreground: var(--ds-muted);
  --accent: var(--ds-wash); --accent-foreground: #114c54;
  --border: var(--ds-line); --input: var(--ds-field); --ring: var(--ds-teal);
  --sidebar: #f1ead8; --sidebar-foreground: var(--foreground); --sidebar-border: var(--ds-line);
  --sidebar-accent: var(--ds-wash); --sidebar-accent-foreground: var(--accent-foreground);
  --sidebar-primary: var(--primary); --sidebar-primary-foreground: #fff; --sidebar-ring: var(--ring);
}
html[data-dimse-ui="app"] body {background:var(--background);color:var(--foreground);font-family:var(--ds-sans)}
html[data-dimse-ui] .ds-brand-bar {box-sizing:border-box;margin:0;padding:.6rem clamp(1rem,4vw,3.5rem);display:flex;align-items:center;min-height:3.4rem;background:var(--ds-cream);border-bottom:1px solid var(--ds-line)}
html[data-dimse-ui] .ds-brand {display:inline-flex;align-items:center;gap:.53rem;color:var(--ds-ink);font:normal 1.95rem/1 var(--ds-serif);letter-spacing:-.055em;text-decoration:none}
html[data-dimse-ui] .ds-brand img {width:1.9rem;height:2rem;display:block;object-fit:contain}
html[data-dimse-ui] .ds-brand:focus-visible {outline:2px solid var(--ds-teal);outline-offset:4px}
html[data-dimse-ui="app"] :is(main h1, .profile-page h1,.mail-heading h1, [data-slot="card-title"],[data-dimse-member] h1, h1[data-dimse-member]) {
  color:var(--foreground);font-family:var(--ds-serif);font-weight:500;letter-spacing:-.035em;line-height:1.15;
}
html[data-dimse-ui="app"] :is(main h1,h1[data-dimse-member]) {font-size:clamp(1.9rem,3.3vw,2.85rem)}
html[data-dimse-ui="app"] :is(.profile-card, .mail-layout, li.bg-card, [data-slot="card"]) {border-radius:1rem;border-color:var(--border);background-color:var(--card);box-shadow:0 3px 16px color-mix(in srgb,var(--foreground) 5%,transparent)}
html[data-dimse-ui="app"] :is(.profile-card h2, li.bg-card h2) {font:500 clamp(1.35rem,2vw,1.7rem)/1.2 var(--ds-serif);letter-spacing:-.025em}
html[data-dimse-ui="app"] .tags li {background:var(--muted);color:var(--foreground)}
html[data-dimse-ui="app"] nav[aria-label="Разделы знакомств"] {border-color:var(--border);row-gap:.45rem}
html[data-dimse-ui="app"] nav[aria-label="Разделы знакомств"] a {padding-block:.45rem}
html[data-dimse-ui="app"] nav[aria-label="Разделы знакомств"] a[aria-current="page"] {color:var(--ds-teal);border-bottom:2px solid var(--ds-teal)}
html[data-dimse-ui="app"] .mail-layout {border-top:3px solid var(--ds-teal)}
html[data-dimse-ui="app"] .mail-layout article.mine time {color:inherit;opacity:.85}
html[data-dimse-ui="app"]:not(.dark) :is(button.bg-primary[type="submit"], .profile-page .action.primary, .mail-page form button[type="submit"]):not(:disabled) {background:var(--ds-gold);border-color:var(--ds-gold);color:var(--ds-ink)}
html[data-dimse-ui="app"] a.underline {text-underline-offset:.22em}
html[data-dimse-ui="app"]:not(.dark) a.underline {color:var(--ds-teal)}
html[data-dimse-ui="app"] [data-sidebar="header"] a:is([data-sidebar="menu-button"],[data-slot="sidebar-menu-button"]):is([href="/dashboard"],[href="/"],[href$="//dimse.world/dashboard"]) {display:flex;gap:.55rem;align-items:center;color:var(--ds-ink);font:normal 1.65rem/1 var(--ds-serif)}
html[data-dimse-ui="app"] [data-sidebar="header"] a:is([data-sidebar="menu-button"],[data-slot="sidebar-menu-button"]):is([href="/dashboard"],[href="/"],[href$="//dimse.world/dashboard"])::before {content:"";flex:0 0 1.65rem;height:1.8rem;background:url("/dimse-mark-fe5106bda4ca.svg") center/contain no-repeat}
html[data-dimse-ui="app"] [data-sidebar="header"] a:is([data-sidebar="menu-button"],[data-slot="sidebar-menu-button"]):is([href="/dashboard"],[href="/"],[href$="//dimse.world/dashboard"])::after {content:"Dimse";letter-spacing:-.05em}
html[data-dimse-ui="app"] [data-sidebar="header"] a:is([data-sidebar="menu-button"],[data-slot="sidebar-menu-button"]):is([href="/dashboard"],[href="/"],[href$="//dimse.world/dashboard"]) > * {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
html[data-dimse-ui="app"] [data-collapsible="icon"] [data-sidebar="header"] a[data-sidebar="menu-button"]::after {display:none}
@media(min-width:48rem){
 html[data-dimse-ui="app"] body:has([data-sidebar="header"] a:is([data-sidebar="menu-button"],[data-slot="sidebar-menu-button"]):is([href="/dashboard"],[href="/"],[href$="//dimse.world/dashboard"])) > .ds-brand-bar {display:none}
}
html[data-dimse-ui="app"] [data-sidebar="menu-button"][data-active="true"] {box-shadow:inset 2px 0 var(--ds-teal)}
html[data-dimse-ui="app"]:not(.dark) :is(.dimse-auth,.auth-page,.auth-shell,.auth-layout) {background-color:var(--ds-cream);color:var(--ds-ink)}
html[data-dimse-ui="app"]:not(.dark) :is(.dimse-auth,.auth-page,.auth-shell,.auth-layout) :is(form,.auth-card,[data-slot="card"]) {border-color:var(--ds-line)}
html[data-dimse-ui="app"]:not(.dark) :is(.dimse-auth,.auth-page,.auth-shell,.auth-layout) button[type="submit"] {background:var(--ds-gold);color:var(--ds-ink)}
html[data-dimse-ui="app"] .ds-brand-bar + :is(#app,[data-page]) :is(.min-h-svh,.min-h-screen) {min-height:calc(100svh - 3.4rem)}
@media(min-width:48rem) {
 html[data-dimse-ui="app"] body:has([data-sidebar="header"]) :is([data-slot="sidebar-wrapper"],[data-slot="sidebar-inset"]) {min-height:100svh}
}
html[data-dimse-ui="safety"] body {background:var(--ds-cream);color:var(--ds-ink);font-family:var(--ds-sans)}
html[data-dimse-ui="safety"] .dimse-public-inner {max-width:54rem;padding:1.8rem clamp(1rem,4vw,3rem) 3.5rem}
html[data-dimse-ui="safety"] .dimse-public-copy :is(h1,h2) {color:var(--ds-ink);font-family:var(--ds-serif);font-weight:500;letter-spacing:-.035em}
html[data-dimse-ui="safety"] .dimse-public-copy h1 {margin:1.35rem 0 2rem}
html[data-dimse-ui="safety"] article section {border-top:1px solid var(--ds-line);padding-top:1.15rem}
html[data-dimse-ui="safety"] article h2 {font-size:clamp(1.35rem,3vw,1.65rem)}
html[data-dimse-ui="safety"] article p {color:var(--ds-muted)}
html[data-dimse-ui="safety"] .dimse-public-copy a {color:var(--ds-teal)}
html[data-dimse-ui="safety"] .dimse-public-copy .ds-brand {color:var(--ds-ink)}
html:root[data-dimse-ui="mod"] {--bg:var(--ds-cream);--paper:var(--ds-card);--ink:var(--ds-ink);--line:var(--ds-line);--muted:var(--ds-muted);--link:var(--ds-teal);--on:#fff}
html[data-dimse-ui="mod"][data-theme="dark"] {--on:#182128}
html[data-dimse-ui="mod"] body {font-family:var(--ds-sans)}
html[data-dimse-ui="mod"] main>header {border-bottom:2px solid var(--ds-teal)}
html[data-dimse-ui="mod"] h1 {font:500 clamp(1.95rem,4vw,2.65rem)/1.15 var(--ds-serif);letter-spacing:-.035em}
html[data-dimse-ui="mod"] nav a[aria-current="page"] {text-decoration-color:var(--ds-teal);text-underline-offset:.35em}
html[data-dimse-ui="errors"] body {background:var(--ds-cream);color:var(--ds-ink);font-family:var(--ds-sans)}
html[data-dimse-ui="app"] .profile-page .portrait {background:var(--ds-wash);color:var(--ds-teal)}
html[data-dimse-ui="app"]:not(.dark) #app:not(:has([data-sidebar="sidebar"])) :is(.min-h-svh,.min-h-screen,[class*="auth-container"],[class*="auth-shell"]):has(form) {background-color:var(--ds-cream);color:var(--ds-ink)}
html[data-dimse-ui="app"]:not(.dark) #app:not(:has([data-sidebar="sidebar"])) form:has(input[autocomplete="username"],input[autocomplete="new-password"],input[autocomplete="current-password"]) button[type="submit"]:not([class*="destructive"]):not([class*="danger"]) {background-color:var(--ds-gold);border-color:var(--ds-gold);color:var(--ds-ink)}
html[data-dimse-ui="app"] #app:not(:has([data-sidebar="sidebar"])) :is(h1,h2):has(+ p) {font-family:var(--ds-serif);letter-spacing:-.03em}
html[data-dimse-ui="app"] #app :is(h2.text-xl,h2.text-2xl,h2.text-lg) {font-family:var(--ds-serif);font-weight:500;letter-spacing:-.025em}
html[data-dimse-ui="app"] main nav a[aria-current="page"] {text-underline-offset:.3em}
html[data-dimse-ui="app"] :is([data-slot="sidebar-header"],[data-sidebar="header"]) {border-bottom:1px solid var(--border)}
html[data-dimse-ui="app"] .mail-layout .thread[aria-current="page"] {box-shadow:inset 2px 0 var(--ds-teal)}
html[data-dimse-ui="app"] [aria-label="Анкеты участников"] li.bg-card {overflow:hidden}
html[data-dimse-ui="errors"] body > .ds-brand-bar + div {background:var(--ds-cream);color:var(--ds-ink);min-height:calc(100vh - 3.4rem)}
html[data-dimse-ui="errors"] body .tracking-wider {color:var(--ds-ink);font-family:var(--ds-serif)}
@media(min-width:48rem) {
 html[data-dimse-ui="app"] body:has([data-sidebar="sidebar"]) > .ds-brand-bar {padding-inline-start:calc(var(--sidebar-width,16rem) + 1.25rem)}
}
html[data-dimse-ui="app"]:not(.dark) :is([class~="bg-[#faf5ed]" i],[class~="bg-[#f3eae0]" i]) {background-color:var(--ds-cream)}
html[data-dimse-ui="app"]:not(.dark) [class~="bg-[#fffdf9]" i] {background-color:var(--ds-card)}
html[data-dimse-ui="app"]:not(.dark) :is([class~="text-[#31251f]" i],[class~="text-[#332321]" i]) {color:var(--ds-ink)}
html[data-dimse-ui="app"]:not(.dark) :is([class~="text-[#792e47]" i],[class~="text-[#792e48]" i]) {color:var(--ds-teal)}
html[data-dimse-ui="app"]:not(.dark) :is([class~="bg-[#792e47]" i],[class~="bg-[#792e48]" i]) {background-color:var(--ds-teal);color:white}
html[data-dimse-ui="app"] .ds-brand-bar {background-image:linear-gradient(90deg,var(--ds-gold),var(--ds-teal));background-position:left bottom;background-size:4.2rem 2px;background-repeat:no-repeat}
html[data-dimse-ui="app"]:not(.dark) #app:not(:has([data-sidebar="sidebar"])) [class*="auth"]:has(form) {background-color:var(--ds-cream);color:var(--ds-ink)}
html[data-dimse-ui="app"]:not(.dark) #app:not(:has([data-sidebar="sidebar"])) [class*="auth"] :is(a[href="/login"],a[href="/register"],a[href="/forgot-password"]) {color:var(--ds-teal)}
html[data-dimse-ui="app"] #app a[href="/"].self-center:has(svg) svg {display:none}
html[data-dimse-ui="app"] #app a[href="/"].self-center:has(svg) > :first-child {background:url("/dimse-mark-fe5106bda4ca.svg") center/contain no-repeat;width:2.8rem;height:2.9rem}
