/* geist-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-cyrillic-ext-wght-normal-DjL33-gN.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* geist-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-cyrillic-wght-normal-BEAKL7Jp.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-vietnamese-wght-normal-6IgcOCM7.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* geist-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-latin-ext-wght-normal-DC-KSUi6.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-latin-wght-normal */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-latin-wght-normal-BgDaEnEv.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}/* geist-mono-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-cyrillic-ext-wght-normal-X_5orZeX.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* geist-mono-cyrillic-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-cyrillic-wght-normal-DiZS0aHC.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* geist-mono-symbols2-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-symbols2-wght-normal-CO5SzqOn.woff2) format('woff2-variations');
  unicode-range: U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F;
}

/* geist-mono-vietnamese-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-vietnamese-wght-normal-DadHysG0.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* geist-mono-latin-ext-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-latin-ext-wght-normal-Bwz-egvJ.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* geist-mono-latin-wght-normal */
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/assets/geist-mono-latin-wght-normal-XN7g48iV.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(139 117 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(139 117 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Geist Variable, Geist, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
  :root {
    --background: 0 0% 100%;
    --foreground: 0 0% 4%;
    --card: 0 0% 100%;
    --card-foreground: 0 0% 4%;
    --popover: 0 0% 100%;
    --popover-foreground: 0 0% 4%;
    --primary: 0 0% 9%;
    --primary-foreground: 0 0% 100%;
    --secondary: 0 0% 96%;
    --secondary-foreground: 0 0% 9%;
    --muted: 0 0% 96%;
    --muted-foreground: 0 0% 45%;
    --accent: 0 0% 96%;
    --accent-foreground: 0 0% 9%;
    --destructive: 0 72% 51%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 90%;
    --input: 0 0% 90%;
    --ring: 0 0% 9%;
    --radius: 0.375rem;
    --success: 142 71% 35%;
    --warning: 38 92% 50%;
    --chart-1: 12 76% 61%;
    --chart-2: 173 58% 39%;
    --chart-3: 197 37% 24%;
    --chart-4: 43 74% 66%;
    --chart-5: 27 87% 67%;
    --sidebar-background: 0 0% 98%;
    --sidebar-foreground: 0 0% 9%;
    --sidebar-primary: 0 0% 9%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 0 0% 96%;
    --sidebar-accent-foreground: 0 0% 9%;
    --sidebar-border: 0 0% 90%;
    --sidebar-ring: 0 0% 9%;
  }

  .dark {
    --background: 0 0% 4%;
    --foreground: 0 0% 98%;
    --card: 0 0% 4%;
    --card-foreground: 0 0% 98%;
    --popover: 0 0% 4%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 0 0% 4%;
    --secondary: 0 0% 15%;
    --secondary-foreground: 0 0% 98%;
    --muted: 0 0% 15%;
    --muted-foreground: 0 0% 64%;
    --accent: 0 0% 15%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 63% 40%;
    --destructive-foreground: 0 0% 100%;
    --border: 0 0% 20%;
    --input: 0 0% 20%;
    --ring: 0 0% 83%;
    --success: 142 70% 45%;
    --warning: 38 92% 50%;
    --chart-1: 220 70% 50%;
    --chart-2: 160 60% 45%;
    --chart-3: 30 80% 55%;
    --chart-4: 280 65% 60%;
    --chart-5: 340 75% 55%;
    --sidebar-background: 0 0% 7%;
    --sidebar-foreground: 0 0% 98%;
    --sidebar-primary: 0 0% 98%;
    --sidebar-primary-foreground: 0 0% 100%;
    --sidebar-accent: 0 0% 15%;
    --sidebar-accent-foreground: 0 0% 98%;
    --sidebar-border: 0 0% 20%;
    --sidebar-ring: 0 0% 83%;
  }
  * {
  border-color: hsl(var(--border));
}
  body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}
.\!container {
  width: 100% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
.pointer-events-none {
  pointer-events: none;
}
.pointer-events-auto {
  pointer-events: auto;
}
.\!visible {
  visibility: visible !important;
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}
.collapse {
  visibility: collapse;
}
.\!static {
  position: static !important;
}
.static {
  position: static;
}
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.sticky {
  position: sticky;
}
.inset-0 {
  inset: 0px;
}
.inset-x-0 {
  left: 0px;
  right: 0px;
}
.inset-y-0 {
  top: 0px;
  bottom: 0px;
}
.\!bottom-auto {
  bottom: auto !important;
}
.\!right-auto {
  right: auto !important;
}
.-bottom-1 {
  bottom: -0.25rem;
}
.-bottom-2 {
  bottom: -0.5rem;
}
.-bottom-4 {
  bottom: -1rem;
}
.-left-5 {
  left: -1.25rem;
}
.-left-6 {
  left: -1.5rem;
}
.-right-1 {
  right: -0.25rem;
}
.-right-2 {
  right: -0.5rem;
}
.-right-3 {
  right: -0.75rem;
}
.-right-4 {
  right: -1rem;
}
.-top-1 {
  top: -0.25rem;
}
.-top-3 {
  top: -0.75rem;
}
.-top-32 {
  top: -8rem;
}
.-top-4 {
  top: -1rem;
}
.bottom-0 {
  bottom: 0px;
}
.bottom-10 {
  bottom: 2.5rem;
}
.bottom-2 {
  bottom: 0.5rem;
}
.bottom-3 {
  bottom: 0.75rem;
}
.bottom-4 {
  bottom: 1rem;
}
.bottom-5 {
  bottom: 1.25rem;
}
.bottom-6 {
  bottom: 1.5rem;
}
.bottom-\[calc\(100\%\+8px\)\] {
  bottom: calc(100% + 8px);
}
.bottom-\[calc\(72px\+env\(safe-area-inset-bottom\2c 0px\)\)\] {
  bottom: calc(72px + env(safe-area-inset-bottom,0px));
}
.bottom-full {
  bottom: 100%;
}
.left-0 {
  left: 0px;
}
.left-1\/2 {
  left: 50%;
}
.left-10 {
  left: 2.5rem;
}
.left-2 {
  left: 0.5rem;
}
.left-2\.5 {
  left: 0.625rem;
}
.left-3 {
  left: 0.75rem;
}
.left-3\.5 {
  left: 0.875rem;
}
.left-9 {
  left: 2.25rem;
}
.left-\[50\%\] {
  left: 50%;
}
.left-full {
  left: 100%;
}
.right-0 {
  right: 0px;
}
.right-1 {
  right: 0.25rem;
}
.right-1\.5 {
  right: 0.375rem;
}
.right-2 {
  right: 0.5rem;
}
.right-2\.5 {
  right: 0.625rem;
}
.right-3 {
  right: 0.75rem;
}
.right-4 {
  right: 1rem;
}
.right-6 {
  right: 1.5rem;
}
.right-full {
  right: 100%;
}
.top-0 {
  top: 0px;
}
.top-1 {
  top: 0.25rem;
}
.top-1\.5 {
  top: 0.375rem;
}
.top-1\/2 {
  top: 50%;
}
.top-10 {
  top: 2.5rem;
}
.top-2 {
  top: 0.5rem;
}
.top-3 {
  top: 0.75rem;
}
.top-3\.5 {
  top: 0.875rem;
}
.top-4 {
  top: 1rem;
}
.top-5 {
  top: 1.25rem;
}
.top-6 {
  top: 1.5rem;
}
.top-9 {
  top: 2.25rem;
}
.top-\[50\%\] {
  top: 50%;
}
.top-\[73px\] {
  top: 73px;
}
.top-\[calc\(100\%\+8px\)\] {
  top: calc(100% + 8px);
}
.top-full {
  top: 100%;
}
.isolate {
  isolation: isolate;
}
.z-10 {
  z-index: 10;
}
.z-20 {
  z-index: 20;
}
.z-30 {
  z-index: 30;
}
.z-40 {
  z-index: 40;
}
.z-50 {
  z-index: 50;
}
.z-\[1\] {
  z-index: 1;
}
.z-\[44\] {
  z-index: 44;
}
.z-\[45\] {
  z-index: 45;
}
.z-\[80\] {
  z-index: 80;
}
.z-\[9998\] {
  z-index: 9998;
}
.z-\[9999\] {
  z-index: 9999;
}
.order-1 {
  order: 1;
}
.order-2 {
  order: 2;
}
.col-span-1 {
  grid-column: span 1 / span 1;
}
.col-span-12 {
  grid-column: span 12 / span 12;
}
.col-span-2 {
  grid-column: span 2 / span 2;
}
.col-span-3 {
  grid-column: span 3 / span 3;
}
.col-span-4 {
  grid-column: span 4 / span 4;
}
.col-span-5 {
  grid-column: span 5 / span 5;
}
.col-span-6 {
  grid-column: span 6 / span 6;
}
.col-span-7 {
  grid-column: span 7 / span 7;
}
.col-span-full {
  grid-column: 1 / -1;
}
.col-start-2 {
  grid-column-start: 2;
}
.\!m-0 {
  margin: 0px !important;
}
.m-0 {
  margin: 0px;
}
.m-3 {
  margin: 0.75rem;
}
.-mx-1 {
  margin-left: -0.25rem;
  margin-right: -0.25rem;
}
.-mx-1\.5 {
  margin-left: -0.375rem;
  margin-right: -0.375rem;
}
.-mx-2 {
  margin-left: -0.5rem;
  margin-right: -0.5rem;
}
.-mx-4 {
  margin-left: -1rem;
  margin-right: -1rem;
}
.-mx-6 {
  margin-left: -1.5rem;
  margin-right: -1.5rem;
}
.mx-0 {
  margin-left: 0px;
  margin-right: 0px;
}
.mx-0\.5 {
  margin-left: 0.125rem;
  margin-right: 0.125rem;
}
.mx-1 {
  margin-left: 0.25rem;
  margin-right: 0.25rem;
}
.mx-1\.5 {
  margin-left: 0.375rem;
  margin-right: 0.375rem;
}
.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
.mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}
.mx-3\.5 {
  margin-left: 0.875rem;
  margin-right: 0.875rem;
}
.mx-4 {
  margin-left: 1rem;
  margin-right: 1rem;
}
.mx-6 {
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.my-1 {
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}
.my-2 {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.my-3 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}
.my-4 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}
.my-5 {
  margin-top: 1.25rem;
  margin-bottom: 1.25rem;
}
.my-6 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}
.my-8 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.my-auto {
  margin-top: auto;
  margin-bottom: auto;
}
.\!mb-0 {
  margin-bottom: 0px !important;
}
.\!mt-2 {
  margin-top: 0.5rem !important;
}
.-mb-10 {
  margin-bottom: -2.5rem;
}
.-mb-3 {
  margin-bottom: -0.75rem;
}
.-mb-4 {
  margin-bottom: -1rem;
}
.-mb-5 {
  margin-bottom: -1.25rem;
}
.-mb-px {
  margin-bottom: -1px;
}
.-ml-1 {
  margin-left: -0.25rem;
}
.-ml-2 {
  margin-left: -0.5rem;
}
.-mr-1 {
  margin-right: -0.25rem;
}
.-mt-10 {
  margin-top: -2.5rem;
}
.-mt-3 {
  margin-top: -0.75rem;
}
.-mt-6 {
  margin-top: -1.5rem;
}
.-mt-9 {
  margin-top: -2.25rem;
}
.mb-0 {
  margin-bottom: 0px;
}
.mb-0\.5 {
  margin-bottom: 0.125rem;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-1\.5 {
  margin-bottom: 0.375rem;
}
.mb-10 {
  margin-bottom: 2.5rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mb-14 {
  margin-bottom: 3.5rem;
}
.mb-16 {
  margin-bottom: 4rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-2\.5 {
  margin-bottom: 0.625rem;
}
.mb-20 {
  margin-bottom: 5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-3\.5 {
  margin-bottom: 0.875rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-5 {
  margin-bottom: 1.25rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-7 {
  margin-bottom: 1.75rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-\[18px\] {
  margin-bottom: 18px;
}
.ml-0\.5 {
  margin-left: 0.125rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-1\.5 {
  margin-left: 0.375rem;
}
.ml-2 {
  margin-left: 0.5rem;
}
.ml-3 {
  margin-left: 0.75rem;
}
.ml-4 {
  margin-left: 1rem;
}
.ml-5 {
  margin-left: 1.25rem;
}
.ml-6 {
  margin-left: 1.5rem;
}
.ml-7 {
  margin-left: 1.75rem;
}
.ml-8 {
  margin-left: 2rem;
}
.ml-\[1px\] {
  margin-left: 1px;
}
.ml-auto {
  margin-left: auto;
}
.mr-1 {
  margin-right: 0.25rem;
}
.mr-1\.5 {
  margin-right: 0.375rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.mr-3 {
  margin-right: 0.75rem;
}
.mr-4 {
  margin-right: 1rem;
}
.mr-6 {
  margin-right: 1.5rem;
}
.mr-8 {
  margin-right: 2rem;
}
.mr-auto {
  margin-right: auto;
}
.mt-0 {
  margin-top: 0px;
}
.mt-0\.5 {
  margin-top: 0.125rem;
}
.mt-1 {
  margin-top: 0.25rem;
}
.mt-1\.5 {
  margin-top: 0.375rem;
}
.mt-10 {
  margin-top: 2.5rem;
}
.mt-11 {
  margin-top: 2.75rem;
}
.mt-12 {
  margin-top: 3rem;
}
.mt-16 {
  margin-top: 4rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-2\.5 {
  margin-top: 0.625rem;
}
.mt-20 {
  margin-top: 5rem;
}
.mt-3 {
  margin-top: 0.75rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-5 {
  margin-top: 1.25rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-7 {
  margin-top: 1.75rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-9 {
  margin-top: 2.25rem;
}
.mt-auto {
  margin-top: auto;
}
.line-clamp-1 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.line-clamp-2 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.block {
  display: block;
}
.inline-block {
  display: inline-block;
}
.\!inline {
  display: inline !important;
}
.inline {
  display: inline;
}
.\!flex {
  display: flex !important;
}
.flex {
  display: flex;
}
.inline-flex {
  display: inline-flex;
}
.\!table {
  display: table !important;
}
.table {
  display: table;
}
.\!grid {
  display: grid !important;
}
.grid {
  display: grid;
}
.contents {
  display: contents;
}
.hidden {
  display: none;
}
.aspect-\[3\/4\] {
  aspect-ratio: 3/4;
}
.aspect-square {
  aspect-ratio: 1 / 1;
}
.aspect-video {
  aspect-ratio: 16 / 9;
}
.\!size-3 {
  width: 0.75rem !important;
  height: 0.75rem !important;
}
.size-1\.5 {
  width: 0.375rem;
  height: 0.375rem;
}
.size-10 {
  width: 2.5rem;
  height: 2.5rem;
}
.size-2 {
  width: 0.5rem;
  height: 0.5rem;
}
.size-4 {
  width: 1rem;
  height: 1rem;
}
.size-7 {
  width: 1.75rem;
  height: 1.75rem;
}
.size-8 {
  width: 2rem;
  height: 2rem;
}
.size-9 {
  width: 2.25rem;
  height: 2.25rem;
}
.size-full {
  width: 100%;
  height: 100%;
}
.\!h-5 {
  height: 1.25rem !important;
}
.\!h-7 {
  height: 1.75rem !important;
}
.\!h-auto {
  height: auto !important;
}
.h-0\.5 {
  height: 0.125rem;
}
.h-1 {
  height: 0.25rem;
}
.h-1\.5 {
  height: 0.375rem;
}
.h-10 {
  height: 2.5rem;
}
.h-11 {
  height: 2.75rem;
}
.h-12 {
  height: 3rem;
}
.h-14 {
  height: 3.5rem;
}
.h-16 {
  height: 4rem;
}
.h-2 {
  height: 0.5rem;
}
.h-2\.5 {
  height: 0.625rem;
}
.h-20 {
  height: 5rem;
}
.h-24 {
  height: 6rem;
}
.h-28 {
  height: 7rem;
}
.h-3 {
  height: 0.75rem;
}
.h-3\.5 {
  height: 0.875rem;
}
.h-32 {
  height: 8rem;
}
.h-36 {
  height: 9rem;
}
.h-4 {
  height: 1rem;
}
.h-40 {
  height: 10rem;
}
.h-48 {
  height: 12rem;
}
.h-5 {
  height: 1.25rem;
}
.h-52 {
  height: 13rem;
}
.h-6 {
  height: 1.5rem;
}
.h-64 {
  height: 16rem;
}
.h-7 {
  height: 1.75rem;
}
.h-8 {
  height: 2rem;
}
.h-9 {
  height: 2.25rem;
}
.h-96 {
  height: 24rem;
}
.h-\[124px\] {
  height: 124px;
}
.h-\[18px\] {
  height: 18px;
}
.h-\[1px\] {
  height: 1px;
}
.h-\[20px\] {
  height: 20px;
}
.h-\[22px\] {
  height: 22px;
}
.h-\[260px\] {
  height: 260px;
}
.h-\[26px\] {
  height: 26px;
}
.h-\[300\%\] {
  height: 300%;
}
.h-\[300px\] {
  height: 300px;
}
.h-\[30px\] {
  height: 30px;
}
.h-\[360px\] {
  height: 360px;
}
.h-\[400\%\] {
  height: 400%;
}
.h-\[400px\] {
  height: 400px;
}
.h-\[42px\] {
  height: 42px;
}
.h-\[520px\] {
  height: 520px;
}
.h-\[52px\] {
  height: 52px;
}
.h-\[600px\] {
  height: 600px;
}
.h-\[calc\(100dvh-72px\)\] {
  height: calc(100dvh - 72px);
}
.h-\[calc\(100vh-100px\)\] {
  height: calc(100vh - 100px);
}
.h-\[min\(680px\2c calc\(100dvh-240px\)\)\] {
  height: min(680px, calc(100dvh - 240px));
}
.h-auto {
  height: auto;
}
.h-full {
  height: 100%;
}
.h-px {
  height: 1px;
}
.h-screen {
  height: 100vh;
}
.h-svh {
  height: 100svh;
}
.max-h-40 {
  max-height: 10rem;
}
.max-h-44 {
  max-height: 11rem;
}
.max-h-48 {
  max-height: 12rem;
}
.max-h-56 {
  max-height: 14rem;
}
.max-h-64 {
  max-height: 16rem;
}
.max-h-72 {
  max-height: 18rem;
}
.max-h-80 {
  max-height: 20rem;
}
.max-h-96 {
  max-height: 24rem;
}
.max-h-\[320px\] {
  max-height: 320px;
}
.max-h-\[50vh\] {
  max-height: 50vh;
}
.max-h-\[60vh\] {
  max-height: 60vh;
}
.max-h-\[80vh\] {
  max-height: 80vh;
}
.max-h-\[90vh\] {
  max-height: 90vh;
}
.max-h-\[92vh\] {
  max-height: 92vh;
}
.max-h-\[calc\(100dvh-2rem\)\] {
  max-height: calc(100dvh - 2rem);
}
.max-h-\[calc\(100dvh-32px\)\] {
  max-height: calc(100dvh - 32px);
}
.max-h-\[calc\(100vh-80px\)\] {
  max-height: calc(100vh - 80px);
}
.max-h-\[min\(480px\2c 70vh\)\] {
  max-height: min(480px, 70vh);
}
.max-h-\[min\(50vh\2c 360px\)\] {
  max-height: min(50vh, 360px);
}
.max-h-\[min\(60dvh\2c 24rem\)\] {
  max-height: min(60dvh, 24rem);
}
.max-h-\[min\(640px\2c 76vh\)\] {
  max-height: min(640px, 76vh);
}
.max-h-full {
  max-height: 100%;
}
.\!min-h-0 {
  min-height: 0px !important;
}
.\!min-h-8 {
  min-height: 2rem !important;
}
.min-h-0 {
  min-height: 0px;
}
.min-h-10 {
  min-height: 2.5rem;
}
.min-h-11 {
  min-height: 2.75rem;
}
.min-h-12 {
  min-height: 3rem;
}
.min-h-40 {
  min-height: 10rem;
}
.min-h-7 {
  min-height: 1.75rem;
}
.min-h-8 {
  min-height: 2rem;
}
.min-h-\[100px\] {
  min-height: 100px;
}
.min-h-\[112px\] {
  min-height: 112px;
}
.min-h-\[120px\] {
  min-height: 120px;
}
.min-h-\[132px\] {
  min-height: 132px;
}
.min-h-\[160px\] {
  min-height: 160px;
}
.min-h-\[176px\] {
  min-height: 176px;
}
.min-h-\[18px\] {
  min-height: 18px;
}
.min-h-\[360px\] {
  min-height: 360px;
}
.min-h-\[380px\] {
  min-height: 380px;
}
.min-h-\[400px\] {
  min-height: 400px;
}
.min-h-\[40px\] {
  min-height: 40px;
}
.min-h-\[420px\] {
  min-height: 420px;
}
.min-h-\[42px\] {
  min-height: 42px;
}
.min-h-\[440px\] {
  min-height: 440px;
}
.min-h-\[44px\] {
  min-height: 44px;
}
.min-h-\[480px\] {
  min-height: 480px;
}
.min-h-\[52px\] {
  min-height: 52px;
}
.min-h-\[60vh\] {
  min-height: 60vh;
}
.min-h-\[72px\] {
  min-height: 72px;
}
.min-h-\[78px\] {
  min-height: 78px;
}
.min-h-\[80px\] {
  min-height: 80px;
}
.min-h-\[88px\] {
  min-height: 88px;
}
.min-h-\[96px\] {
  min-height: 96px;
}
.min-h-\[calc\(100dvh-48px\)\] {
  min-height: calc(100dvh - 48px);
}
.min-h-full {
  min-height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}
.min-h-svh {
  min-height: 100svh;
}
.\!w-5 {
  width: 1.25rem !important;
}
.\!w-auto {
  width: auto !important;
}
.w-1 {
  width: 0.25rem;
}
.w-1\.5 {
  width: 0.375rem;
}
.w-1\/3 {
  width: 33.333333%;
}
.w-10 {
  width: 2.5rem;
}
.w-11 {
  width: 2.75rem;
}
.w-12 {
  width: 3rem;
}
.w-14 {
  width: 3.5rem;
}
.w-16 {
  width: 4rem;
}
.w-2 {
  width: 0.5rem;
}
.w-2\.5 {
  width: 0.625rem;
}
.w-20 {
  width: 5rem;
}
.w-24 {
  width: 6rem;
}
.w-28 {
  width: 7rem;
}
.w-3 {
  width: 0.75rem;
}
.w-3\.5 {
  width: 0.875rem;
}
.w-3\/4 {
  width: 75%;
}
.w-32 {
  width: 8rem;
}
.w-36 {
  width: 9rem;
}
.w-4 {
  width: 1rem;
}
.w-40 {
  width: 10rem;
}
.w-44 {
  width: 11rem;
}
.w-48 {
  width: 12rem;
}
.w-5 {
  width: 1.25rem;
}
.w-52 {
  width: 13rem;
}
.w-56 {
  width: 14rem;
}
.w-6 {
  width: 1.5rem;
}
.w-60 {
  width: 15rem;
}
.w-64 {
  width: 16rem;
}
.w-7 {
  width: 1.75rem;
}
.w-72 {
  width: 18rem;
}
.w-8 {
  width: 2rem;
}
.w-9 {
  width: 2.25rem;
}
.w-\[130px\] {
  width: 130px;
}
.w-\[140px\] {
  width: 140px;
}
.w-\[150px\] {
  width: 150px;
}
.w-\[160px\] {
  width: 160px;
}
.w-\[170px\] {
  width: 170px;
}
.w-\[180px\] {
  width: 180px;
}
.w-\[1px\] {
  width: 1px;
}
.w-\[220px\] {
  width: 220px;
}
.w-\[240px\] {
  width: 240px;
}
.w-\[300\%\] {
  width: 300%;
}
.w-\[30px\] {
  width: 30px;
}
.w-\[400\%\] {
  width: 400%;
}
.w-\[500px\] {
  width: 500px;
}
.w-\[600px\] {
  width: 600px;
}
.w-\[76px\] {
  width: 76px;
}
.w-\[84px\] {
  width: 84px;
}
.w-\[85\%\] {
  width: 85%;
}
.w-\[900px\] {
  width: 900px;
}
.w-\[min\(300px\2c 86vw\)\] {
  width: min(300px, 86vw);
}
.w-\[min\(320px\2c calc\(100vw-32px\)\)\] {
  width: min(320px, calc(100vw - 32px));
}
.w-\[min\(380px\2c calc\(100vw-32px\)\)\] {
  width: min(380px, calc(100vw - 32px));
}
.w-\[var\(--sidebar-width\)\] {
  width: var(--sidebar-width);
}
.w-auto {
  width: auto;
}
.w-fit {
  width: -moz-fit-content;
  width: fit-content;
}
.w-full {
  width: 100%;
}
.w-px {
  width: 1px;
}
.w-screen {
  width: 100vw;
}
.min-w-0 {
  min-width: 0px;
}
.min-w-12 {
  min-width: 3rem;
}
.min-w-5 {
  min-width: 1.25rem;
}
.min-w-\[110px\] {
  min-width: 110px;
}
.min-w-\[120px\] {
  min-width: 120px;
}
.min-w-\[130px\] {
  min-width: 130px;
}
.min-w-\[140px\] {
  min-width: 140px;
}
.min-w-\[160px\] {
  min-width: 160px;
}
.min-w-\[180px\] {
  min-width: 180px;
}
.min-w-\[18px\] {
  min-width: 18px;
}
.min-w-\[200px\] {
  min-width: 200px;
}
.min-w-\[20px\] {
  min-width: 20px;
}
.min-w-\[220px\] {
  min-width: 220px;
}
.min-w-\[240px\] {
  min-width: 240px;
}
.min-w-\[2rem\] {
  min-width: 2rem;
}
.min-w-\[3px\] {
  min-width: 3px;
}
.min-w-\[44px\] {
  min-width: 44px;
}
.min-w-\[48px\] {
  min-width: 48px;
}
.min-w-\[640px\] {
  min-width: 640px;
}
.min-w-\[720px\] {
  min-width: 720px;
}
.min-w-\[8rem\] {
  min-width: 8rem;
}
.min-w-\[var\(--radix-select-trigger-width\)\] {
  min-width: var(--radix-select-trigger-width);
}
.min-w-full {
  min-width: 100%;
}
.min-w-max {
  min-width: -moz-max-content;
  min-width: max-content;
}
.max-w-2xl {
  max-width: 42rem;
}
.max-w-32 {
  max-width: 8rem;
}
.max-w-3xl {
  max-width: 48rem;
}
.max-w-4xl {
  max-width: 56rem;
}
.max-w-5xl {
  max-width: 64rem;
}
.max-w-6xl {
  max-width: 72rem;
}
.max-w-7xl {
  max-width: 80rem;
}
.max-w-\[100px\] {
  max-width: 100px;
}
.max-w-\[1060px\] {
  max-width: 1060px;
}
.max-w-\[1080px\] {
  max-width: 1080px;
}
.max-w-\[130px\] {
  max-width: 130px;
}
.max-w-\[1400px\] {
  max-width: 1400px;
}
.max-w-\[140px\] {
  max-width: 140px;
}
.max-w-\[150px\] {
  max-width: 150px;
}
.max-w-\[160px\] {
  max-width: 160px;
}
.max-w-\[176px\] {
  max-width: 176px;
}
.max-w-\[1800px\] {
  max-width: 1800px;
}
.max-w-\[200px\] {
  max-width: 200px;
}
.max-w-\[220px\] {
  max-width: 220px;
}
.max-w-\[22ch\] {
  max-width: 22ch;
}
.max-w-\[240px\] {
  max-width: 240px;
}
.max-w-\[260px\] {
  max-width: 260px;
}
.max-w-\[280px\] {
  max-width: 280px;
}
.max-w-\[320px\] {
  max-width: 320px;
}
.max-w-\[340px\] {
  max-width: 340px;
}
.max-w-\[38ch\] {
  max-width: 38ch;
}
.max-w-\[42\%\] {
  max-width: 42%;
}
.max-w-\[42ch\] {
  max-width: 42ch;
}
.max-w-\[44ch\] {
  max-width: 44ch;
}
.max-w-\[480px\] {
  max-width: 480px;
}
.max-w-\[48ch\] {
  max-width: 48ch;
}
.max-w-\[520px\] {
  max-width: 520px;
}
.max-w-\[52ch\] {
  max-width: 52ch;
}
.max-w-\[55\%\] {
  max-width: 55%;
}
.max-w-\[560px\] {
  max-width: 560px;
}
.max-w-\[576px\] {
  max-width: 576px;
}
.max-w-\[60\%\] {
  max-width: 60%;
}
.max-w-\[600px\] {
  max-width: 600px;
}
.max-w-\[620px\] {
  max-width: 620px;
}
.max-w-\[640px\] {
  max-width: 640px;
}
.max-w-\[68ch\] {
  max-width: 68ch;
}
.max-w-\[70ch\] {
  max-width: 70ch;
}
.max-w-\[760px\] {
  max-width: 760px;
}
.max-w-\[800px\] {
  max-width: 800px;
}
.max-w-\[85\%\] {
  max-width: 85%;
}
.max-w-\[860px\] {
  max-width: 860px;
}
.max-w-\[90\%\] {
  max-width: 90%;
}
.max-w-\[var\(--skeleton-width\)\] {
  max-width: var(--skeleton-width);
}
.max-w-full {
  max-width: 100%;
}
.max-w-lg {
  max-width: 32rem;
}
.max-w-md {
  max-width: 28rem;
}
.max-w-none {
  max-width: none;
}
.max-w-sm {
  max-width: 24rem;
}
.max-w-xl {
  max-width: 36rem;
}
.max-w-xs {
  max-width: 20rem;
}
.flex-1 {
  flex: 1 1 0%;
}
.flex-none {
  flex: none;
}
.flex-shrink {
  flex-shrink: 1;
}
.flex-shrink-0 {
  flex-shrink: 0;
}
.shrink {
  flex-shrink: 1;
}
.shrink-0 {
  flex-shrink: 0;
}
.grow {
  flex-grow: 1;
}
.basis-\[220px\] {
  flex-basis: 220px;
}
.table-fixed {
  table-layout: fixed;
}
.caption-bottom {
  caption-side: bottom;
}
.border-collapse {
  border-collapse: collapse;
}
.border-separate {
  border-collapse: separate;
}
.border-spacing-0 {
  --tw-border-spacing-x: 0px;
  --tw-border-spacing-y: 0px;
  border-spacing: var(--tw-border-spacing-x) var(--tw-border-spacing-y);
}
.origin-top {
  transform-origin: top;
}
.-translate-x-1\/2 {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-x-\[12\.5\%\] {
  --tw-translate-x: -12.5%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-x-\[16\.6\%\] {
  --tw-translate-x: -16.6%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-x-\[25\%\] {
  --tw-translate-x: -25%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-x-full {
  --tw-translate-x: -100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-x-px {
  --tw-translate-x: -1px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-0\.5 {
  --tw-translate-y: -0.125rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-1\/2 {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-\[12\.5\%\] {
  --tw-translate-y: -12.5%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-\[16\.6\%\] {
  --tw-translate-y: -16.6%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-translate-y-\[25\%\] {
  --tw-translate-y: -25%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-0 {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-3 {
  --tw-translate-x: 0.75rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-4 {
  --tw-translate-x: 1rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-\[-50\%\] {
  --tw-translate-x: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-x-px {
  --tw-translate-x: 1px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-0 {
  --tw-translate-y: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-1 {
  --tw-translate-y: 0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-2 {
  --tw-translate-y: 0.5rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-\[-50\%\] {
  --tw-translate-y: -50%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.translate-y-full {
  --tw-translate-y: 100%;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.-rotate-90 {
  --tw-rotate: -90deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.rotate-180 {
  --tw-rotate: 180deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.rotate-90 {
  --tw-rotate: 90deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-100 {
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-75 {
  --tw-scale-x: .75;
  --tw-scale-y: .75;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.scale-x-\[-1\] {
  --tw-scale-x: -1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
@keyframes bounce {

  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8,0,1,1);
  }

  50% {
    transform: none;
    animation-timing-function: cubic-bezier(0,0,0.2,1);
  }
}
.animate-bounce {
  animation: bounce 1s infinite;
}
@keyframes pulse {

  50% {
    opacity: .5;
  }
}
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes spin {

  to {
    transform: rotate(360deg);
  }
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.cursor-crosshair {
  cursor: crosshair;
}
.cursor-default {
  cursor: default;
}
.cursor-grab {
  cursor: grab;
}
.cursor-help {
  cursor: help;
}
.cursor-move {
  cursor: move;
}
.cursor-not-allowed {
  cursor: not-allowed;
}
.cursor-pointer {
  cursor: pointer;
}
.cursor-text {
  cursor: text;
}
.touch-none {
  touch-action: none;
}
.select-none {
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}
.select-all {
  -webkit-user-select: all;
     -moz-user-select: all;
          user-select: all;
}
.resize-none {
  resize: none;
}
.resize-y {
  resize: vertical;
}
.resize {
  resize: both;
}
.scroll-mt-4 {
  scroll-margin-top: 1rem;
}
.list-inside {
  list-style-position: inside;
}
.list-decimal {
  list-style-type: decimal;
}
.list-disc {
  list-style-type: disc;
}
.list-none {
  list-style-type: none;
}
.appearance-none {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.columns-1 {
  -moz-columns: 1;
       columns: 1;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-12 {
  grid-template-columns: repeat(12, minmax(0, 1fr));
}
.grid-cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid-cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.grid-cols-\[100px_minmax\(0\2c 1fr\)\] {
  grid-template-columns: 100px minmax(0,1fr);
}
.grid-cols-\[110px_minmax\(0\2c 1fr\)\] {
  grid-template-columns: 110px minmax(0,1fr);
}
.grid-cols-\[120px_1fr_52px\] {
  grid-template-columns: 120px 1fr 52px;
}
.grid-cols-\[140px_1fr\] {
  grid-template-columns: 140px 1fr;
}
.grid-cols-\[140px_minmax\(0\2c 1fr\)\] {
  grid-template-columns: 140px minmax(0,1fr);
}
.grid-cols-\[1fr_180px\] {
  grid-template-columns: 1fr 180px;
}
.grid-cols-\[1fr_20px_1fr\] {
  grid-template-columns: 1fr 20px 1fr;
}
.grid-cols-\[1fr_96px_60px_72px\] {
  grid-template-columns: 1fr 96px 60px 72px;
}
.grid-cols-\[220px_minmax\(0\2c 1fr\)\] {
  grid-template-columns: 220px minmax(0,1fr);
}
.grid-cols-\[280px_1fr_300px\] {
  grid-template-columns: 280px 1fr 300px;
}
.grid-cols-\[2rem_minmax\(0\2c 1fr\)\] {
  grid-template-columns: 2rem minmax(0,1fr);
}
.grid-cols-\[48px_1fr_300px\] {
  grid-template-columns: 48px 1fr 300px;
}
.grid-cols-\[84px_1fr_34px\] {
  grid-template-columns: 84px 1fr 34px;
}
.grid-cols-\[minmax\(0\2c 1fr\)_300px\] {
  grid-template-columns: minmax(0,1fr) 300px;
}
.grid-cols-\[minmax\(0\2c 1fr\)_minmax\(0\2c 1\.4fr\)\] {
  grid-template-columns: minmax(0,1fr) minmax(0,1.4fr);
}
.flex-row {
  flex-direction: row;
}
.flex-row-reverse {
  flex-direction: row-reverse;
}
.flex-col {
  flex-direction: column;
}
.flex-col-reverse {
  flex-direction: column-reverse;
}
.flex-wrap {
  flex-wrap: wrap;
}
.\!place-items-center {
  place-items: center !important;
}
.place-items-center {
  place-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.\!items-center {
  align-items: center !important;
}
.items-center {
  align-items: center;
}
.items-baseline {
  align-items: baseline;
}
.items-stretch {
  align-items: stretch;
}
.justify-start {
  justify-content: flex-start;
}
.justify-end {
  justify-content: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.\!gap-0 {
  gap: 0px !important;
}
.gap-0 {
  gap: 0px;
}
.gap-0\.5 {
  gap: 0.125rem;
}
.gap-1 {
  gap: 0.25rem;
}
.gap-1\.5 {
  gap: 0.375rem;
}
.gap-10 {
  gap: 2.5rem;
}
.gap-12 {
  gap: 3rem;
}
.gap-14 {
  gap: 3.5rem;
}
.gap-16 {
  gap: 4rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-2\.5 {
  gap: 0.625rem;
}
.gap-3 {
  gap: 0.75rem;
}
.gap-3\.5 {
  gap: 0.875rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-5 {
  gap: 1.25rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-7 {
  gap: 1.75rem;
}
.gap-8 {
  gap: 2rem;
}
.gap-\[3px\] {
  gap: 3px;
}
.gap-px {
  gap: 1px;
}
.gap-x-1\.5 {
  -moz-column-gap: 0.375rem;
       column-gap: 0.375rem;
}
.gap-x-12 {
  -moz-column-gap: 3rem;
       column-gap: 3rem;
}
.gap-x-14 {
  -moz-column-gap: 3.5rem;
       column-gap: 3.5rem;
}
.gap-x-2 {
  -moz-column-gap: 0.5rem;
       column-gap: 0.5rem;
}
.gap-x-3 {
  -moz-column-gap: 0.75rem;
       column-gap: 0.75rem;
}
.gap-x-4 {
  -moz-column-gap: 1rem;
       column-gap: 1rem;
}
.gap-x-6 {
  -moz-column-gap: 1.5rem;
       column-gap: 1.5rem;
}
.gap-x-8 {
  -moz-column-gap: 2rem;
       column-gap: 2rem;
}
.gap-y-1 {
  row-gap: 0.25rem;
}
.gap-y-1\.5 {
  row-gap: 0.375rem;
}
.gap-y-10 {
  row-gap: 2.5rem;
}
.gap-y-2 {
  row-gap: 0.5rem;
}
.gap-y-2\.5 {
  row-gap: 0.625rem;
}
.gap-y-3 {
  row-gap: 0.75rem;
}
.gap-y-4 {
  row-gap: 1rem;
}
.gap-y-8 {
  row-gap: 2rem;
}
.-space-x-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(-0.375rem * var(--tw-space-x-reverse));
  margin-left: calc(-0.375rem * calc(1 - var(--tw-space-x-reverse)));
}
.-space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(-0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(-0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.25rem * var(--tw-space-x-reverse));
  margin-left: calc(0.25rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.5rem * var(--tw-space-x-reverse));
  margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(0.75rem * var(--tw-space-x-reverse));
  margin-left: calc(0.75rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1rem * var(--tw-space-x-reverse));
  margin-left: calc(1rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-x-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-x-reverse: 0;
  margin-right: calc(1.5rem * var(--tw-space-x-reverse));
  margin-left: calc(1.5rem * calc(1 - var(--tw-space-x-reverse)));
}
.space-y-0 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0px * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0px * var(--tw-space-y-reverse));
}
.space-y-0\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.125rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.125rem * var(--tw-space-y-reverse));
}
.space-y-1 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.25rem * var(--tw-space-y-reverse));
}
.space-y-1\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.375rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.375rem * var(--tw-space-y-reverse));
}
.space-y-10 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2.5rem * var(--tw-space-y-reverse));
}
.space-y-2 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.625rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.625rem * var(--tw-space-y-reverse));
}
.space-y-28 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(7rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(7rem * var(--tw-space-y-reverse));
}
.space-y-3 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(0.75rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.75rem * var(--tw-space-y-reverse));
}
.space-y-4 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1rem * var(--tw-space-y-reverse));
}
.space-y-5 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.25rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.25rem * var(--tw-space-y-reverse));
}
.space-y-6 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
}
.space-y-8 > :not([hidden]) ~ :not([hidden]) {
  --tw-space-y-reverse: 0;
  margin-top: calc(2rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(2rem * var(--tw-space-y-reverse));
}
.divide-x > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-x-reverse: 0;
  border-right-width: calc(1px * var(--tw-divide-x-reverse));
  border-left-width: calc(1px * calc(1 - var(--tw-divide-x-reverse)));
}
.divide-y > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-y-reverse: 0;
  border-top-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
  border-bottom-width: calc(1px * var(--tw-divide-y-reverse));
}
.divide-black\/5 > :not([hidden]) ~ :not([hidden]) {
  border-color: rgb(0 0 0 / 0.05);
}
.divide-border > :not([hidden]) ~ :not([hidden]) {
  border-color: hsl(var(--border));
}
.divide-border\/60 > :not([hidden]) ~ :not([hidden]) {
  border-color: hsl(var(--border) / 0.6);
}
.divide-gray-100 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(243 244 246 / var(--tw-divide-opacity, 1));
}
.divide-red-100 > :not([hidden]) ~ :not([hidden]) {
  --tw-divide-opacity: 1;
  border-color: rgb(254 226 226 / var(--tw-divide-opacity, 1));
}
.self-start {
  align-self: flex-start;
}
.self-end {
  align-self: flex-end;
}
.\!self-center {
  align-self: center !important;
}
.self-center {
  align-self: center;
}
.self-stretch {
  align-self: stretch;
}
.justify-self-start {
  justify-self: start;
}
.overflow-auto {
  overflow: auto;
}
.overflow-hidden {
  overflow: hidden;
}
.overflow-visible {
  overflow: visible;
}
.overflow-x-auto {
  overflow-x: auto;
}
.overflow-y-auto {
  overflow-y: auto;
}
.overflow-x-hidden {
  overflow-x: hidden;
}
.scroll-smooth {
  scroll-behavior: smooth;
}
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.text-ellipsis {
  text-overflow: ellipsis;
}
.whitespace-normal {
  white-space: normal;
}
.whitespace-nowrap {
  white-space: nowrap;
}
.whitespace-pre-line {
  white-space: pre-line;
}
.whitespace-pre-wrap {
  white-space: pre-wrap;
}
.text-wrap {
  text-wrap: wrap;
}
.text-balance {
  text-wrap: balance;
}
.break-words {
  overflow-wrap: break-word;
}
.break-all {
  word-break: break-all;
}
.\!rounded {
  border-radius: 0.25rem !important;
}
.\!rounded-none {
  border-radius: 0px !important;
}
.rounded {
  border-radius: 0.25rem;
}
.rounded-2xl {
  border-radius: 1rem;
}
.rounded-3xl {
  border-radius: 1.5rem;
}
.rounded-\[5px\] {
  border-radius: 5px;
}
.rounded-\[8px\] {
  border-radius: 8px;
}
.rounded-full {
  border-radius: 9999px;
}
.rounded-lg {
  border-radius: var(--radius);
}
.rounded-md {
  border-radius: calc(var(--radius) - 2px);
}
.rounded-none {
  border-radius: 0px;
}
.rounded-sm {
  border-radius: calc(var(--radius) - 4px);
}
.rounded-xl {
  border-radius: 0.75rem;
}
.rounded-b-xl {
  border-bottom-right-radius: 0.75rem;
  border-bottom-left-radius: 0.75rem;
}
.rounded-t-lg {
  border-top-left-radius: var(--radius);
  border-top-right-radius: var(--radius);
}
.rounded-tl-sm {
  border-top-left-radius: calc(var(--radius) - 4px);
}
.rounded-tr-sm {
  border-top-right-radius: calc(var(--radius) - 4px);
}
.\!border-0 {
  border-width: 0px !important;
}
.border {
  border-width: 1px;
}
.border-0 {
  border-width: 0px;
}
.border-2 {
  border-width: 2px;
}
.border-8 {
  border-width: 8px;
}
.border-x-0 {
  border-left-width: 0px;
  border-right-width: 0px;
}
.border-y {
  border-top-width: 1px;
  border-bottom-width: 1px;
}
.border-b {
  border-bottom-width: 1px;
}
.border-b-0 {
  border-bottom-width: 0px;
}
.border-b-2 {
  border-bottom-width: 2px;
}
.border-l {
  border-left-width: 1px;
}
.border-l-2 {
  border-left-width: 2px;
}
.border-l-4 {
  border-left-width: 4px;
}
.border-r {
  border-right-width: 1px;
}
.border-r-0 {
  border-right-width: 0px;
}
.border-t {
  border-top-width: 1px;
}
.border-t-0 {
  border-top-width: 0px;
}
.border-t-2 {
  border-top-width: 2px;
}
.border-dashed {
  border-style: dashed;
}
.border-none {
  border-style: none;
}
.border-\[\#635BFF\] {
  --tw-border-opacity: 1;
  border-color: rgb(99 91 255 / var(--tw-border-opacity, 1));
}
.border-\[hsl\(var\(--border-strong\)\)\] {
  border-color: hsl(var(--border-strong));
}
.border-amber-100 {
  --tw-border-opacity: 1;
  border-color: rgb(254 243 199 / var(--tw-border-opacity, 1));
}
.border-amber-200 {
  --tw-border-opacity: 1;
  border-color: rgb(253 230 138 / var(--tw-border-opacity, 1));
}
.border-amber-300 {
  --tw-border-opacity: 1;
  border-color: rgb(252 211 77 / var(--tw-border-opacity, 1));
}
.border-amber-400 {
  --tw-border-opacity: 1;
  border-color: rgb(251 191 36 / var(--tw-border-opacity, 1));
}
.border-amber-500 {
  --tw-border-opacity: 1;
  border-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}
.border-background\/20 {
  border-color: hsl(var(--background) / 0.2);
}
.border-black\/5 {
  border-color: rgb(0 0 0 / 0.05);
}
.border-blue-100 {
  --tw-border-opacity: 1;
  border-color: rgb(237 233 254 / var(--tw-border-opacity, 1));
}
.border-blue-200 {
  --tw-border-opacity: 1;
  border-color: rgb(221 214 254 / var(--tw-border-opacity, 1));
}
.border-border {
  border-color: hsl(var(--border));
}
.border-border\/40 {
  border-color: hsl(var(--border) / 0.4);
}
.border-border\/50 {
  border-color: hsl(var(--border) / 0.5);
}
.border-cyan-200 {
  --tw-border-opacity: 1;
  border-color: rgb(165 243 252 / var(--tw-border-opacity, 1));
}
.border-cyan-500 {
  --tw-border-opacity: 1;
  border-color: rgb(6 182 212 / var(--tw-border-opacity, 1));
}
.border-cyan-600 {
  --tw-border-opacity: 1;
  border-color: rgb(8 145 178 / var(--tw-border-opacity, 1));
}
.border-destructive {
  border-color: hsl(var(--destructive));
}
.border-destructive\/20 {
  border-color: hsl(var(--destructive) / 0.2);
}
.border-destructive\/30 {
  border-color: hsl(var(--destructive) / 0.3);
}
.border-destructive\/40 {
  border-color: hsl(var(--destructive) / 0.4);
}
.border-destructive\/50 {
  border-color: hsl(var(--destructive) / 0.5);
}
.border-destructive\/60 {
  border-color: hsl(var(--destructive) / 0.6);
}
.border-emerald-100 {
  --tw-border-opacity: 1;
  border-color: rgb(209 250 229 / var(--tw-border-opacity, 1));
}
.border-emerald-200 {
  --tw-border-opacity: 1;
  border-color: rgb(167 243 208 / var(--tw-border-opacity, 1));
}
.border-emerald-300 {
  --tw-border-opacity: 1;
  border-color: rgb(110 231 183 / var(--tw-border-opacity, 1));
}
.border-emerald-400 {
  --tw-border-opacity: 1;
  border-color: rgb(52 211 153 / var(--tw-border-opacity, 1));
}
.border-emerald-500 {
  --tw-border-opacity: 1;
  border-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
}
.border-emerald-600 {
  --tw-border-opacity: 1;
  border-color: rgb(5 150 105 / var(--tw-border-opacity, 1));
}
.border-foreground {
  border-color: hsl(var(--foreground));
}
.border-gray-200 {
  --tw-border-opacity: 1;
  border-color: rgb(229 231 235 / var(--tw-border-opacity, 1));
}
.border-gray-400 {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}
.border-gray-50 {
  --tw-border-opacity: 1;
  border-color: rgb(249 250 251 / var(--tw-border-opacity, 1));
}
.border-gray-500 {
  --tw-border-opacity: 1;
  border-color: rgb(107 114 128 / var(--tw-border-opacity, 1));
}
.border-gray-700 {
  --tw-border-opacity: 1;
  border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
}
.border-gray-900 {
  --tw-border-opacity: 1;
  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
}
.border-green-200 {
  --tw-border-opacity: 1;
  border-color: rgb(167 243 208 / var(--tw-border-opacity, 1));
}
.border-green-300 {
  --tw-border-opacity: 1;
  border-color: rgb(110 231 183 / var(--tw-border-opacity, 1));
}
.border-green-500\/15 {
  border-color: rgb(16 185 129 / 0.15);
}
.border-indigo-200 {
  --tw-border-opacity: 1;
  border-color: rgb(199 210 254 / var(--tw-border-opacity, 1));
}
.border-indigo-300 {
  --tw-border-opacity: 1;
  border-color: rgb(165 180 252 / var(--tw-border-opacity, 1));
}
.border-inherit {
  border-color: inherit;
}
.border-input {
  border-color: hsl(var(--input));
}
.border-muted {
  border-color: hsl(var(--muted));
}
.border-muted-foreground\/25 {
  border-color: hsl(var(--muted-foreground) / 0.25);
}
.border-muted\/50 {
  border-color: hsl(var(--muted) / 0.5);
}
.border-orange-100 {
  --tw-border-opacity: 1;
  border-color: rgb(255 237 213 / var(--tw-border-opacity, 1));
}
.border-orange-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 215 170 / var(--tw-border-opacity, 1));
}
.border-orange-300 {
  --tw-border-opacity: 1;
  border-color: rgb(253 186 116 / var(--tw-border-opacity, 1));
}
.border-orange-500 {
  --tw-border-opacity: 1;
  border-color: rgb(249 115 22 / var(--tw-border-opacity, 1));
}
.border-primary {
  border-color: hsl(var(--primary));
}
.border-primary\/20 {
  border-color: hsl(var(--primary) / 0.2);
}
.border-primary\/30 {
  border-color: hsl(var(--primary) / 0.3);
}
.border-primary\/40 {
  border-color: hsl(var(--primary) / 0.4);
}
.border-primary\/50 {
  border-color: hsl(var(--primary) / 0.5);
}
.border-purple-200 {
  --tw-border-opacity: 1;
  border-color: rgb(233 213 255 / var(--tw-border-opacity, 1));
}
.border-purple-300 {
  --tw-border-opacity: 1;
  border-color: rgb(216 180 254 / var(--tw-border-opacity, 1));
}
.border-red-100 {
  --tw-border-opacity: 1;
  border-color: rgb(254 226 226 / var(--tw-border-opacity, 1));
}
.border-red-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.border-red-300 {
  --tw-border-opacity: 1;
  border-color: rgb(252 165 165 / var(--tw-border-opacity, 1));
}
.border-red-400 {
  --tw-border-opacity: 1;
  border-color: rgb(248 113 113 / var(--tw-border-opacity, 1));
}
.border-red-500 {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.border-red-500\/40 {
  border-color: rgb(239 68 68 / 0.4);
}
.border-rose-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 205 211 / var(--tw-border-opacity, 1));
}
.border-sidebar-border {
  border-color: hsl(var(--sidebar-border));
}
.border-sky-200 {
  --tw-border-opacity: 1;
  border-color: rgb(186 230 253 / var(--tw-border-opacity, 1));
}
.border-slate-200 {
  --tw-border-opacity: 1;
  border-color: rgb(226 232 240 / var(--tw-border-opacity, 1));
}
.border-slate-700 {
  --tw-border-opacity: 1;
  border-color: rgb(51 65 85 / var(--tw-border-opacity, 1));
}
.border-teal-500 {
  --tw-border-opacity: 1;
  border-color: rgb(20 184 166 / var(--tw-border-opacity, 1));
}
.border-transparent {
  border-color: transparent;
}
.border-violet-200 {
  --tw-border-opacity: 1;
  border-color: rgb(221 214 254 / var(--tw-border-opacity, 1));
}
.border-violet-300 {
  --tw-border-opacity: 1;
  border-color: rgb(196 181 253 / var(--tw-border-opacity, 1));
}
.border-white {
  --tw-border-opacity: 1;
  border-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}
.border-white\/10 {
  border-color: rgb(255 255 255 / 0.1);
}
.border-white\/15 {
  border-color: rgb(255 255 255 / 0.15);
}
.border-white\/20 {
  border-color: rgb(255 255 255 / 0.2);
}
.border-white\/30 {
  border-color: rgb(255 255 255 / 0.3);
}
.border-white\/40 {
  border-color: rgb(255 255 255 / 0.4);
}
.border-white\/60 {
  border-color: rgb(255 255 255 / 0.6);
}
.border-white\/\[0\.06\] {
  border-color: rgb(255 255 255 / 0.06);
}
.border-yellow-200 {
  --tw-border-opacity: 1;
  border-color: rgb(254 240 138 / var(--tw-border-opacity, 1));
}
.border-yellow-300 {
  --tw-border-opacity: 1;
  border-color: rgb(253 224 71 / var(--tw-border-opacity, 1));
}
.border-yellow-500 {
  --tw-border-opacity: 1;
  border-color: rgb(234 179 8 / var(--tw-border-opacity, 1));
}
.border-l-amber-400 {
  --tw-border-opacity: 1;
  border-left-color: rgb(251 191 36 / var(--tw-border-opacity, 1));
}
.border-l-amber-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(245 158 11 / var(--tw-border-opacity, 1));
}
.border-l-blue-400 {
  --tw-border-opacity: 1;
  border-left-color: rgb(167 139 250 / var(--tw-border-opacity, 1));
}
.border-l-emerald-400 {
  --tw-border-opacity: 1;
  border-left-color: rgb(52 211 153 / var(--tw-border-opacity, 1));
}
.border-l-emerald-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
}
.border-l-gray-300 {
  --tw-border-opacity: 1;
  border-left-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}
.border-l-primary {
  border-left-color: hsl(var(--primary));
}
.border-l-red-400 {
  --tw-border-opacity: 1;
  border-left-color: rgb(248 113 113 / var(--tw-border-opacity, 1));
}
.border-l-red-500 {
  --tw-border-opacity: 1;
  border-left-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.border-r-gray-900 {
  --tw-border-opacity: 1;
  border-right-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
}
.border-t-blue-500 {
  --tw-border-opacity: 1;
  border-top-color: rgb(139 117 246 / var(--tw-border-opacity, 1));
}
.border-t-primary {
  border-top-color: hsl(var(--primary));
}
.border-t-transparent {
  border-top-color: transparent;
}
.border-t-white {
  --tw-border-opacity: 1;
  border-top-color: rgb(255 255 255 / var(--tw-border-opacity, 1));
}
.\!bg-accent {
  background-color: hsl(var(--accent)) !important;
}
.\!bg-background {
  background-color: hsl(var(--background)) !important;
}
.\!bg-black\/80 {
  background-color: rgb(0 0 0 / 0.8) !important;
}
.\!bg-muted {
  background-color: hsl(var(--muted)) !important;
}
.\!bg-popover {
  background-color: hsl(var(--popover)) !important;
}
.\!bg-primary {
  background-color: hsl(var(--primary)) !important;
}
.\!bg-transparent {
  background-color: transparent !important;
}
.bg-\[\#101116\] {
  --tw-bg-opacity: 1;
  background-color: rgb(16 17 22 / var(--tw-bg-opacity, 1));
}
.bg-\[\#1E1B47\] {
  --tw-bg-opacity: 1;
  background-color: rgb(30 27 71 / var(--tw-bg-opacity, 1));
}
.bg-\[\#635BFF\] {
  --tw-bg-opacity: 1;
  background-color: rgb(99 91 255 / var(--tw-bg-opacity, 1));
}
.bg-\[\#f9fafb\] {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-\[hsl\(var\(--memory-about\)\/0\.10\)\] {
  background-color: hsl(var(--memory-about)/0.10);
}
.bg-\[hsl\(var\(--memory-about\)\/0\.16\)\] {
  background-color: hsl(var(--memory-about)/0.16);
}
.bg-\[hsl\(var\(--memory-events\)\/0\.10\)\] {
  background-color: hsl(var(--memory-events)/0.10);
}
.bg-\[hsl\(var\(--memory-events\)\/0\.12\)\] {
  background-color: hsl(var(--memory-events)/0.12);
}
.bg-\[hsl\(var\(--memory-events\)\/0\.16\)\] {
  background-color: hsl(var(--memory-events)/0.16);
}
.bg-\[hsl\(var\(--memory-rules\)\)\] {
  background-color: hsl(var(--memory-rules));
}
.bg-\[hsl\(var\(--memory-rules\)\/0\.10\)\] {
  background-color: hsl(var(--memory-rules)/0.10);
}
.bg-\[hsl\(var\(--memory-rules\)\/0\.16\)\] {
  background-color: hsl(var(--memory-rules)/0.16);
}
.bg-\[var\(--doska-accent\)\] {
  background-color: var(--doska-accent);
}
.bg-accent {
  background-color: hsl(var(--accent));
}
.bg-accent\/40 {
  background-color: hsl(var(--accent) / 0.4);
}
.bg-accent\/50 {
  background-color: hsl(var(--accent) / 0.5);
}
.bg-accent\/60 {
  background-color: hsl(var(--accent) / 0.6);
}
.bg-amber-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));
}
.bg-amber-100\/60 {
  background-color: rgb(254 243 199 / 0.6);
}
.bg-amber-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(251 191 36 / var(--tw-bg-opacity, 1));
}
.bg-amber-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.bg-amber-50\/70 {
  background-color: rgb(255 251 235 / 0.7);
}
.bg-amber-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}
.bg-amber-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(217 119 6 / var(--tw-bg-opacity, 1));
}
.bg-background {
  background-color: hsl(var(--background));
}
.bg-background\/10 {
  background-color: hsl(var(--background) / 0.1);
}
.bg-background\/60 {
  background-color: hsl(var(--background) / 0.6);
}
.bg-background\/70 {
  background-color: hsl(var(--background) / 0.7);
}
.bg-background\/80 {
  background-color: hsl(var(--background) / 0.8);
}
.bg-background\/90 {
  background-color: hsl(var(--background) / 0.9);
}
.bg-background\/95 {
  background-color: hsl(var(--background) / 0.95);
}
.bg-black {
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}
.bg-black\/10 {
  background-color: rgb(0 0 0 / 0.1);
}
.bg-black\/40 {
  background-color: rgb(0 0 0 / 0.4);
}
.bg-black\/50 {
  background-color: rgb(0 0 0 / 0.5);
}
.bg-black\/60 {
  background-color: rgb(0 0 0 / 0.6);
}
.bg-black\/80 {
  background-color: rgb(0 0 0 / 0.8);
}
.bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(221 214 254 / var(--tw-bg-opacity, 1));
}
.bg-blue-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(167 139 250 / var(--tw-bg-opacity, 1));
}
.bg-blue-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 243 255 / var(--tw-bg-opacity, 1));
}
.bg-blue-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(139 117 246 / var(--tw-bg-opacity, 1));
}
.bg-blue-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(99 91 255 / var(--tw-bg-opacity, 1));
}
.bg-border {
  background-color: hsl(var(--border));
}
.bg-border\/30 {
  background-color: hsl(var(--border) / 0.3);
}
.bg-card {
  background-color: hsl(var(--card));
}
.bg-current {
  background-color: currentColor;
}
.bg-cyan-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(207 250 254 / var(--tw-bg-opacity, 1));
}
.bg-cyan-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 254 255 / var(--tw-bg-opacity, 1));
}
.bg-cyan-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(6 182 212 / var(--tw-bg-opacity, 1));
}
.bg-cyan-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(8 145 178 / var(--tw-bg-opacity, 1));
}
.bg-destructive {
  background-color: hsl(var(--destructive));
}
.bg-destructive\/10 {
  background-color: hsl(var(--destructive) / 0.1);
}
.bg-destructive\/40 {
  background-color: hsl(var(--destructive) / 0.4);
}
.bg-destructive\/5 {
  background-color: hsl(var(--destructive) / 0.05);
}
.bg-emerald-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}
.bg-emerald-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(167 243 208 / var(--tw-bg-opacity, 1));
}
.bg-emerald-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(52 211 153 / var(--tw-bg-opacity, 1));
}
.bg-emerald-400\/60 {
  background-color: rgb(52 211 153 / 0.6);
}
.bg-emerald-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}
.bg-emerald-50\/40 {
  background-color: rgb(236 253 245 / 0.4);
}
.bg-emerald-50\/50 {
  background-color: rgb(236 253 245 / 0.5);
}
.bg-emerald-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}
.bg-emerald-500\/10 {
  background-color: rgb(16 185 129 / 0.1);
}
.bg-emerald-500\/15 {
  background-color: rgb(16 185 129 / 0.15);
}
.bg-emerald-500\/80 {
  background-color: rgb(16 185 129 / 0.8);
}
.bg-emerald-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(5 150 105 / var(--tw-bg-opacity, 1));
}
.bg-foreground {
  background-color: hsl(var(--foreground));
}
.bg-foreground\/70 {
  background-color: hsl(var(--foreground) / 0.7);
}
.bg-gray-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}
.bg-gray-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.bg-gray-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}
.bg-gray-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(75 85 99 / var(--tw-bg-opacity, 1));
}
.bg-gray-800 {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.bg-gray-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(17 24 39 / var(--tw-bg-opacity, 1));
}
.bg-green-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}
.bg-green-400\/80 {
  background-color: rgb(52 211 153 / 0.8);
}
.bg-green-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}
.bg-green-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}
.bg-green-500\/10 {
  background-color: rgb(16 185 129 / 0.1);
}
.bg-green-500\/15 {
  background-color: rgb(16 185 129 / 0.15);
}
.bg-green-500\/5 {
  background-color: rgb(16 185 129 / 0.05);
}
.bg-indigo-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(224 231 255 / var(--tw-bg-opacity, 1));
}
.bg-indigo-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(238 242 255 / var(--tw-bg-opacity, 1));
}
.bg-indigo-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(99 102 241 / var(--tw-bg-opacity, 1));
}
.bg-indigo-500\/10 {
  background-color: rgb(99 102 241 / 0.1);
}
.bg-lime-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(132 204 22 / var(--tw-bg-opacity, 1));
}
.bg-muted {
  background-color: hsl(var(--muted));
}
.bg-muted-foreground {
  background-color: hsl(var(--muted-foreground));
}
.bg-muted-foreground\/30 {
  background-color: hsl(var(--muted-foreground) / 0.3);
}
.bg-muted-foreground\/40 {
  background-color: hsl(var(--muted-foreground) / 0.4);
}
.bg-muted\/10 {
  background-color: hsl(var(--muted) / 0.1);
}
.bg-muted\/15 {
  background-color: hsl(var(--muted) / 0.15);
}
.bg-muted\/20 {
  background-color: hsl(var(--muted) / 0.2);
}
.bg-muted\/30 {
  background-color: hsl(var(--muted) / 0.3);
}
.bg-muted\/40 {
  background-color: hsl(var(--muted) / 0.4);
}
.bg-muted\/50 {
  background-color: hsl(var(--muted) / 0.5);
}
.bg-muted\/60 {
  background-color: hsl(var(--muted) / 0.6);
}
.bg-muted\/80 {
  background-color: hsl(var(--muted) / 0.8);
}
.bg-orange-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 237 213 / var(--tw-bg-opacity, 1));
}
.bg-orange-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 215 170 / var(--tw-bg-opacity, 1));
}
.bg-orange-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(251 146 60 / var(--tw-bg-opacity, 1));
}
.bg-orange-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 247 237 / var(--tw-bg-opacity, 1));
}
.bg-orange-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(249 115 22 / var(--tw-bg-opacity, 1));
}
.bg-orange-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 88 12 / var(--tw-bg-opacity, 1));
}
.bg-pink-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(253 242 248 / var(--tw-bg-opacity, 1));
}
.bg-pink-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(236 72 153 / var(--tw-bg-opacity, 1));
}
.bg-popover {
  background-color: hsl(var(--popover));
}
.bg-primary {
  background-color: hsl(var(--primary));
}
.bg-primary\/10 {
  background-color: hsl(var(--primary) / 0.1);
}
.bg-primary\/15 {
  background-color: hsl(var(--primary) / 0.15);
}
.bg-primary\/5 {
  background-color: hsl(var(--primary) / 0.05);
}
.bg-primary\/70 {
  background-color: hsl(var(--primary) / 0.7);
}
.bg-primary\/\[0\.02\] {
  background-color: hsl(var(--primary) / 0.02);
}
.bg-primary\/\[0\.03\] {
  background-color: hsl(var(--primary) / 0.03);
}
.bg-primary\/\[0\.04\] {
  background-color: hsl(var(--primary) / 0.04);
}
.bg-purple-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}
.bg-purple-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(233 213 255 / var(--tw-bg-opacity, 1));
}
.bg-purple-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(250 245 255 / var(--tw-bg-opacity, 1));
}
.bg-purple-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(147 51 234 / var(--tw-bg-opacity, 1));
}
.bg-red-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.bg-red-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 202 202 / var(--tw-bg-opacity, 1));
}
.bg-red-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(252 165 165 / var(--tw-bg-opacity, 1));
}
.bg-red-400 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 113 113 / var(--tw-bg-opacity, 1));
}
.bg-red-400\/80 {
  background-color: rgb(248 113 113 / 0.8);
}
.bg-red-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.bg-red-50\/30 {
  background-color: rgb(254 242 242 / 0.3);
}
.bg-red-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.bg-red-500\/10 {
  background-color: rgb(239 68 68 / 0.1);
}
.bg-red-500\/20 {
  background-color: rgb(239 68 68 / 0.2);
}
.bg-red-500\/5 {
  background-color: rgb(239 68 68 / 0.05);
}
.bg-red-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(220 38 38 / var(--tw-bg-opacity, 1));
}
.bg-rose-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 228 230 / var(--tw-bg-opacity, 1));
}
.bg-rose-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}
.bg-rose-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(244 63 94 / var(--tw-bg-opacity, 1));
}
.bg-secondary {
  background-color: hsl(var(--secondary));
}
.bg-secondary\/60 {
  background-color: hsl(var(--secondary) / 0.6);
}
.bg-sidebar {
  background-color: hsl(var(--sidebar-background));
}
.bg-sidebar-accent {
  background-color: hsl(var(--sidebar-accent));
}
.bg-sidebar-border {
  background-color: hsl(var(--sidebar-border));
}
.bg-sky-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(224 242 254 / var(--tw-bg-opacity, 1));
}
.bg-sky-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 249 255 / var(--tw-bg-opacity, 1));
}
.bg-sky-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(14 165 233 / var(--tw-bg-opacity, 1));
}
.bg-slate-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(241 245 249 / var(--tw-bg-opacity, 1));
}
.bg-slate-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(248 250 252 / var(--tw-bg-opacity, 1));
}
.bg-slate-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(100 116 139 / var(--tw-bg-opacity, 1));
}
.bg-slate-950 {
  --tw-bg-opacity: 1;
  background-color: rgb(2 6 23 / var(--tw-bg-opacity, 1));
}
.bg-success {
  background-color: hsl(var(--success));
}
.bg-teal-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(204 251 241 / var(--tw-bg-opacity, 1));
}
.bg-teal-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(240 253 250 / var(--tw-bg-opacity, 1));
}
.bg-teal-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(20 184 166 / var(--tw-bg-opacity, 1));
}
.bg-teal-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(13 148 136 / var(--tw-bg-opacity, 1));
}
.bg-transparent {
  background-color: transparent;
}
.bg-violet-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
}
.bg-violet-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(245 243 255 / var(--tw-bg-opacity, 1));
}
.bg-violet-50\/40 {
  background-color: rgb(245 243 255 / 0.4);
}
.bg-violet-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(139 92 246 / var(--tw-bg-opacity, 1));
}
.bg-violet-500\/10 {
  background-color: rgb(139 92 246 / 0.1);
}
.bg-violet-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(124 58 237 / var(--tw-bg-opacity, 1));
}
.bg-white {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.bg-white\/10 {
  background-color: rgb(255 255 255 / 0.1);
}
.bg-white\/15 {
  background-color: rgb(255 255 255 / 0.15);
}
.bg-white\/20 {
  background-color: rgb(255 255 255 / 0.2);
}
.bg-white\/5 {
  background-color: rgb(255 255 255 / 0.05);
}
.bg-white\/60 {
  background-color: rgb(255 255 255 / 0.6);
}
.bg-white\/95 {
  background-color: rgb(255 255 255 / 0.95);
}
.bg-white\/\[0\.03\] {
  background-color: rgb(255 255 255 / 0.03);
}
.bg-yellow-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}
.bg-yellow-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 240 138 / var(--tw-bg-opacity, 1));
}
.bg-yellow-300 {
  --tw-bg-opacity: 1;
  background-color: rgb(253 224 71 / var(--tw-bg-opacity, 1));
}
.bg-yellow-400\/15 {
  background-color: rgb(250 204 21 / 0.15);
}
.bg-yellow-400\/60 {
  background-color: rgb(250 204 21 / 0.6);
}
.bg-yellow-400\/80 {
  background-color: rgb(250 204 21 / 0.8);
}
.bg-yellow-50 {
  --tw-bg-opacity: 1;
  background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));
}
.bg-yellow-500 {
  --tw-bg-opacity: 1;
  background-color: rgb(234 179 8 / var(--tw-bg-opacity, 1));
}
.bg-yellow-600 {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}
.bg-zinc-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(244 244 245 / var(--tw-bg-opacity, 1));
}
.bg-zinc-900 {
  --tw-bg-opacity: 1;
  background-color: rgb(24 24 27 / var(--tw-bg-opacity, 1));
}
.bg-opacity-20 {
  --tw-bg-opacity: 0.2;
}
.bg-opacity-50 {
  --tw-bg-opacity: 0.5;
}
.bg-opacity-90 {
  --tw-bg-opacity: 0.9;
}
.bg-gradient-to-b {
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}
.bg-gradient-to-l {
  background-image: linear-gradient(to left, var(--tw-gradient-stops));
}
.bg-gradient-to-r {
  background-image: linear-gradient(to right, var(--tw-gradient-stops));
}
.bg-gradient-to-t {
  background-image: linear-gradient(to top, var(--tw-gradient-stops));
}
.from-amber-50 {
  --tw-gradient-from: #fffbeb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 251 235 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-100 {
  --tw-gradient-from: #EDE9FE var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(237 233 254 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-50 {
  --tw-gradient-from: #F5F3FF var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(245 243 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-500 {
  --tw-gradient-from: #8B75F6 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(139 117 246 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-600 {
  --tw-gradient-from: #635BFF var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(99 91 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-blue-600\/20 {
  --tw-gradient-from: rgb(99 91 255 / 0.2) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(99 91 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-cyan-50 {
  --tw-gradient-from: #ecfeff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(236 254 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-cyan-600 {
  --tw-gradient-from: #0891b2 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(8 145 178 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-gray-100 {
  --tw-gradient-from: #f3f4f6 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(243 244 246 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-gray-50 {
  --tw-gradient-from: #f9fafb var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-gray-600 {
  --tw-gradient-from: #4b5563 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(75 85 99 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-muted\/20 {
  --tw-gradient-from: hsl(var(--muted) / 0.2) var(--tw-gradient-from-position);
  --tw-gradient-to: hsl(var(--muted) / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-100 {
  --tw-gradient-from: #f3e8ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(243 232 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-purple-50 {
  --tw-gradient-from: #faf5ff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(250 245 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-red-50 {
  --tw-gradient-from: #fef2f2 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(254 242 242 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-slate-800\/50 {
  --tw-gradient-from: rgb(30 41 59 / 0.5) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(30 41 59 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-slate-950 {
  --tw-gradient-from: #020617 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(2 6 23 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-teal-100 {
  --tw-gradient-from: #ccfbf1 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(204 251 241 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-violet-50\/60 {
  --tw-gradient-from: rgb(245 243 255 / 0.6) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(245 243 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-white {
  --tw-gradient-from: #fff var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.from-white\/20 {
  --tw-gradient-from: rgb(255 255 255 / 0.2) var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.via-blue-50 {
  --tw-gradient-to: rgb(245 243 255 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #F5F3FF var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.via-blue-950 {
  --tw-gradient-to: rgb(30 27 71 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #1E1B47 var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.via-white {
  --tw-gradient-to: rgb(255 255 255 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #fff var(--tw-gradient-via-position), var(--tw-gradient-to);
}
.to-amber-100 {
  --tw-gradient-to: #fef3c7 var(--tw-gradient-to-position);
}
.to-background {
  --tw-gradient-to: hsl(var(--background)) var(--tw-gradient-to-position);
}
.to-blue-100 {
  --tw-gradient-to: #EDE9FE var(--tw-gradient-to-position);
}
.to-blue-200 {
  --tw-gradient-to: #DDD6FE var(--tw-gradient-to-position);
}
.to-blue-50 {
  --tw-gradient-to: #F5F3FF var(--tw-gradient-to-position);
}
.to-blue-600 {
  --tw-gradient-to: #635BFF var(--tw-gradient-to-position);
}
.to-blue-700 {
  --tw-gradient-to: #5145CD var(--tw-gradient-to-position);
}
.to-gray-100 {
  --tw-gradient-to: #f3f4f6 var(--tw-gradient-to-position);
}
.to-gray-50 {
  --tw-gradient-to: #f9fafb var(--tw-gradient-to-position);
}
.to-gray-700 {
  --tw-gradient-to: #374151 var(--tw-gradient-to-position);
}
.to-indigo-50 {
  --tw-gradient-to: #eef2ff var(--tw-gradient-to-position);
}
.to-indigo-600 {
  --tw-gradient-to: #4f46e5 var(--tw-gradient-to-position);
}
.to-muted\/40 {
  --tw-gradient-to: hsl(var(--muted) / 0.4) var(--tw-gradient-to-position);
}
.to-orange-50 {
  --tw-gradient-to: #fff7ed var(--tw-gradient-to-position);
}
.to-purple-600\/20 {
  --tw-gradient-to: rgb(147 51 234 / 0.2) var(--tw-gradient-to-position);
}
.to-slate-900 {
  --tw-gradient-to: #0f172a var(--tw-gradient-to-position);
}
.to-slate-900\/50 {
  --tw-gradient-to: rgb(15 23 42 / 0.5) var(--tw-gradient-to-position);
}
.to-teal-200 {
  --tw-gradient-to: #99f6e4 var(--tw-gradient-to-position);
}
.to-teal-50 {
  --tw-gradient-to: #f0fdfa var(--tw-gradient-to-position);
}
.to-teal-600 {
  --tw-gradient-to: #0d9488 var(--tw-gradient-to-position);
}
.to-transparent {
  --tw-gradient-to: transparent var(--tw-gradient-to-position);
}
.fill-amber-400 {
  fill: #fbbf24;
}
.fill-current {
  fill: currentColor;
}
.fill-popover {
  fill: hsl(var(--popover));
}
.object-contain {
  -o-object-fit: contain;
     object-fit: contain;
}
.object-cover {
  -o-object-fit: cover;
     object-fit: cover;
}
.\!p-0 {
  padding: 0px !important;
}
.p-0 {
  padding: 0px;
}
.p-0\.5 {
  padding: 0.125rem;
}
.p-1 {
  padding: 0.25rem;
}
.p-1\.5 {
  padding: 0.375rem;
}
.p-10 {
  padding: 2.5rem;
}
.p-12 {
  padding: 3rem;
}
.p-2 {
  padding: 0.5rem;
}
.p-2\.5 {
  padding: 0.625rem;
}
.p-3 {
  padding: 0.75rem;
}
.p-4 {
  padding: 1rem;
}
.p-5 {
  padding: 1.25rem;
}
.p-6 {
  padding: 1.5rem;
}
.p-7 {
  padding: 1.75rem;
}
.p-8 {
  padding: 2rem;
}
.p-\[3px\] {
  padding: 3px;
}
.\!px-2 {
  padding-left: 0.5rem !important;
  padding-right: 0.5rem !important;
}
.\!py-0 {
  padding-top: 0px !important;
  padding-bottom: 0px !important;
}
.px-0 {
  padding-left: 0px;
  padding-right: 0px;
}
.px-0\.5 {
  padding-left: 0.125rem;
  padding-right: 0.125rem;
}
.px-1 {
  padding-left: 0.25rem;
  padding-right: 0.25rem;
}
.px-1\.5 {
  padding-left: 0.375rem;
  padding-right: 0.375rem;
}
.px-10 {
  padding-left: 2.5rem;
  padding-right: 2.5rem;
}
.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.px-2\.5 {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
.px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.px-3\.5 {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.px-7 {
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}
.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}
.px-\[13px\] {
  padding-left: 13px;
  padding-right: 13px;
}
.py-0 {
  padding-top: 0px;
  padding-bottom: 0px;
}
.py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}
.py-10 {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-14 {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}
.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-2\.5 {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}
.py-3 {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.py-3\.5 {
  padding-top: 0.875rem;
  padding-bottom: 0.875rem;
}
.py-32 {
  padding-top: 8rem;
  padding-bottom: 8rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-5 {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
.py-7 {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}
.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}
.py-\[3px\] {
  padding-top: 3px;
  padding-bottom: 3px;
}
.pb-0 {
  padding-bottom: 0px;
}
.pb-0\.5 {
  padding-bottom: 0.125rem;
}
.pb-1 {
  padding-bottom: 0.25rem;
}
.pb-1\.5 {
  padding-bottom: 0.375rem;
}
.pb-10 {
  padding-bottom: 2.5rem;
}
.pb-12 {
  padding-bottom: 3rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-2\.5 {
  padding-bottom: 0.625rem;
}
.pb-20 {
  padding-bottom: 5rem;
}
.pb-24 {
  padding-bottom: 6rem;
}
.pb-3 {
  padding-bottom: 0.75rem;
}
.pb-3\.5 {
  padding-bottom: 0.875rem;
}
.pb-32 {
  padding-bottom: 8rem;
}
.pb-4 {
  padding-bottom: 1rem;
}
.pb-48 {
  padding-bottom: 12rem;
}
.pb-5 {
  padding-bottom: 1.25rem;
}
.pb-6 {
  padding-bottom: 1.5rem;
}
.pb-\[calc\(6px\+env\(safe-area-inset-bottom\2c 0px\)\)\] {
  padding-bottom: calc(6px + env(safe-area-inset-bottom,0px));
}
.pl-10 {
  padding-left: 2.5rem;
}
.pl-12 {
  padding-left: 3rem;
}
.pl-14 {
  padding-left: 3.5rem;
}
.pl-2 {
  padding-left: 0.5rem;
}
.pl-2\.5 {
  padding-left: 0.625rem;
}
.pl-3 {
  padding-left: 0.75rem;
}
.pl-4 {
  padding-left: 1rem;
}
.pl-5 {
  padding-left: 1.25rem;
}
.pl-6 {
  padding-left: 1.5rem;
}
.pl-7 {
  padding-left: 1.75rem;
}
.pl-8 {
  padding-left: 2rem;
}
.pl-9 {
  padding-left: 2.25rem;
}
.pr-0 {
  padding-right: 0px;
}
.pr-0\.5 {
  padding-right: 0.125rem;
}
.pr-1 {
  padding-right: 0.25rem;
}
.pr-1\.5 {
  padding-right: 0.375rem;
}
.pr-10 {
  padding-right: 2.5rem;
}
.pr-12 {
  padding-right: 3rem;
}
.pr-2 {
  padding-right: 0.5rem;
}
.pr-3 {
  padding-right: 0.75rem;
}
.pr-4 {
  padding-right: 1rem;
}
.pr-6 {
  padding-right: 1.5rem;
}
.pr-7 {
  padding-right: 1.75rem;
}
.pr-8 {
  padding-right: 2rem;
}
.pt-0 {
  padding-top: 0px;
}
.pt-0\.5 {
  padding-top: 0.125rem;
}
.pt-1 {
  padding-top: 0.25rem;
}
.pt-1\.5 {
  padding-top: 0.375rem;
}
.pt-10 {
  padding-top: 2.5rem;
}
.pt-11 {
  padding-top: 2.75rem;
}
.pt-2 {
  padding-top: 0.5rem;
}
.pt-20 {
  padding-top: 5rem;
}
.pt-24 {
  padding-top: 6rem;
}
.pt-28 {
  padding-top: 7rem;
}
.pt-3 {
  padding-top: 0.75rem;
}
.pt-3\.5 {
  padding-top: 0.875rem;
}
.pt-32 {
  padding-top: 8rem;
}
.pt-4 {
  padding-top: 1rem;
}
.pt-5 {
  padding-top: 1.25rem;
}
.pt-6 {
  padding-top: 1.5rem;
}
.pt-7 {
  padding-top: 1.75rem;
}
.pt-8 {
  padding-top: 2rem;
}
.pt-9 {
  padding-top: 2.25rem;
}
.pt-\[12vh\] {
  padding-top: 12vh;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.align-top {
  vertical-align: top;
}
.align-middle {
  vertical-align: middle;
}
.align-super {
  vertical-align: super;
}
.align-\[1px\] {
  vertical-align: 1px;
}
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.font-sans {
  font-family: Geist Variable, Geist, system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}
.\!text-xs {
  font-size: 0.75rem !important;
  line-height: 1rem !important;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
.text-5xl {
  font-size: 3rem;
  line-height: 1;
}
.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}
.text-7xl {
  font-size: 4.5rem;
  line-height: 1;
}
.text-\[10\.5px\] {
  font-size: 10.5px;
}
.text-\[10px\] {
  font-size: 10px;
}
.text-\[11px\] {
  font-size: 11px;
}
.text-\[12px\] {
  font-size: 12px;
}
.text-\[13px\] {
  font-size: 13px;
}
.text-\[14px\] {
  font-size: 14px;
}
.text-\[15px\] {
  font-size: 15px;
}
.text-\[16px\] {
  font-size: 16px;
}
.text-\[17px\] {
  font-size: 17px;
}
.text-\[18px\] {
  font-size: 18px;
}
.text-\[20px\] {
  font-size: 20px;
}
.text-\[22px\] {
  font-size: 22px;
}
.text-\[24px\] {
  font-size: 24px;
}
.text-\[26px\] {
  font-size: 26px;
}
.text-\[28px\] {
  font-size: 28px;
}
.text-\[30px\] {
  font-size: 30px;
}
.text-\[48px\] {
  font-size: 48px;
}
.text-\[56px\] {
  font-size: 56px;
}
.text-\[7px\] {
  font-size: 7px;
}
.text-\[8px\] {
  font-size: 8px;
}
.text-\[9\.5px\] {
  font-size: 9.5px;
}
.text-\[9px\] {
  font-size: 9px;
}
.text-\[clamp\(20px\2c 2\.4vw\2c 32px\)\] {
  font-size: clamp(20px, 2.4vw, 32px);
}
.text-\[clamp\(24px\2c 3vw\2c 40px\)\] {
  font-size: clamp(24px, 3vw, 40px);
}
.text-\[clamp\(26px\2c 3\.2vw\2c 40px\)\] {
  font-size: clamp(26px, 3.2vw, 40px);
}
.text-\[clamp\(26px\2c 3\.2vw\2c 44px\)\] {
  font-size: clamp(26px, 3.2vw, 44px);
}
.text-\[clamp\(28px\2c 3\.4vw\2c 48px\)\] {
  font-size: clamp(28px, 3.4vw, 48px);
}
.text-\[clamp\(28px\2c 3\.5vw\2c 48px\)\] {
  font-size: clamp(28px, 3.5vw, 48px);
}
.text-\[clamp\(30px\2c 3\.8vw\2c 52px\)\] {
  font-size: clamp(30px, 3.8vw, 52px);
}
.text-\[clamp\(32px\2c 4\.5vw\2c 56px\)\] {
  font-size: clamp(32px, 4.5vw, 56px);
}
.text-\[clamp\(32px\2c 4\.5vw\2c 60px\)\] {
  font-size: clamp(32px, 4.5vw, 60px);
}
.text-\[clamp\(32px\2c 4vw\2c 52px\)\] {
  font-size: clamp(32px, 4vw, 52px);
}
.text-\[clamp\(34px\2c 4vw\2c 54px\)\] {
  font-size: clamp(34px, 4vw, 54px);
}
.text-\[clamp\(40px\2c 5vw\2c 64px\)\] {
  font-size: clamp(40px, 5vw, 64px);
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.\!font-medium {
  font-weight: 500 !important;
}
.font-bold {
  font-weight: 700;
}
.font-extrabold {
  font-weight: 800;
}
.font-medium {
  font-weight: 500;
}
.font-normal {
  font-weight: 400;
}
.font-semibold {
  font-weight: 600;
}
.uppercase {
  text-transform: uppercase;
}
.lowercase {
  text-transform: lowercase;
}
.capitalize {
  text-transform: capitalize;
}
.normal-case {
  text-transform: none;
}
.italic {
  font-style: italic;
}
.ordinal {
  --tw-ordinal: ordinal;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.tabular-nums {
  --tw-numeric-spacing: tabular-nums;
  font-variant-numeric: var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction);
}
.leading-5 {
  line-height: 1.25rem;
}
.leading-6 {
  line-height: 1.5rem;
}
.leading-7 {
  line-height: 1.75rem;
}
.leading-\[1\.02\] {
  line-height: 1.02;
}
.leading-\[1\.03\] {
  line-height: 1.03;
}
.leading-\[1\.04\] {
  line-height: 1.04;
}
.leading-\[1\.05\] {
  line-height: 1.05;
}
.leading-\[1\.08\] {
  line-height: 1.08;
}
.leading-\[1\.0\] {
  line-height: 1.0;
}
.leading-\[1\.1\] {
  line-height: 1.1;
}
.leading-\[1\.2\] {
  line-height: 1.2;
}
.leading-\[1\.4\] {
  line-height: 1.4;
}
.leading-\[1\.5\] {
  line-height: 1.5;
}
.leading-\[1\.6\] {
  line-height: 1.6;
}
.leading-\[1\.75\] {
  line-height: 1.75;
}
.leading-\[1\.7\] {
  line-height: 1.7;
}
.leading-\[1\.8\] {
  line-height: 1.8;
}
.leading-\[1\] {
  line-height: 1;
}
.leading-none {
  line-height: 1;
}
.leading-relaxed {
  line-height: 1.625;
}
.leading-snug {
  line-height: 1.375;
}
.leading-tight {
  line-height: 1.25;
}
.tracking-\[-0\.02em\] {
  letter-spacing: -0.02em;
}
.tracking-\[-0\.035em\] {
  letter-spacing: -0.035em;
}
.tracking-\[-0\.2px\] {
  letter-spacing: -0.2px;
}
.tracking-\[-0\.3px\] {
  letter-spacing: -0.3px;
}
.tracking-\[-0\.5px\] {
  letter-spacing: -0.5px;
}
.tracking-\[-0\.7px\] {
  letter-spacing: -0.7px;
}
.tracking-\[-1\.5px\] {
  letter-spacing: -1.5px;
}
.tracking-\[-1px\] {
  letter-spacing: -1px;
}
.tracking-\[-2\.5px\] {
  letter-spacing: -2.5px;
}
.tracking-\[-2px\] {
  letter-spacing: -2px;
}
.tracking-\[0\.08em\] {
  letter-spacing: 0.08em;
}
.tracking-\[0\.12em\] {
  letter-spacing: 0.12em;
}
.tracking-\[0\.14em\] {
  letter-spacing: 0.14em;
}
.tracking-\[0\.15em\] {
  letter-spacing: 0.15em;
}
.tracking-\[0\.1em\] {
  letter-spacing: 0.1em;
}
.tracking-\[0\.5px\] {
  letter-spacing: 0.5px;
}
.tracking-\[0\.6px\] {
  letter-spacing: 0.6px;
}
.tracking-\[0\.8px\] {
  letter-spacing: 0.8px;
}
.tracking-\[1\.5px\] {
  letter-spacing: 1.5px;
}
.tracking-\[1px\] {
  letter-spacing: 1px;
}
.tracking-\[2px\] {
  letter-spacing: 2px;
}
.tracking-normal {
  letter-spacing: 0em;
}
.tracking-tight {
  letter-spacing: -0.025em;
}
.tracking-wide {
  letter-spacing: 0.025em;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.tracking-widest {
  letter-spacing: 0.1em;
}
.\!text-muted-foreground {
  color: hsl(var(--muted-foreground)) !important;
}
.text-\[\#1F2023\] {
  --tw-text-opacity: 1;
  color: rgb(31 32 35 / var(--tw-text-opacity, 1));
}
.text-\[\#4A154B\] {
  --tw-text-opacity: 1;
  color: rgb(74 21 75 / var(--tw-text-opacity, 1));
}
.text-\[\#635BFF\] {
  --tw-text-opacity: 1;
  color: rgb(99 91 255 / var(--tw-text-opacity, 1));
}
.text-\[\#a5a7b0\] {
  --tw-text-opacity: 1;
  color: rgb(165 167 176 / var(--tw-text-opacity, 1));
}
.text-\[hsl\(var\(--memory-about\)\)\] {
  color: hsl(var(--memory-about));
}
.text-\[hsl\(var\(--memory-events\)\)\] {
  color: hsl(var(--memory-events));
}
.text-\[hsl\(var\(--memory-rules\)\)\] {
  color: hsl(var(--memory-rules));
}
.text-\[var\(--doska-warning\2c \#e0a325\)\] {
  color: var(--doska-warning,#e0a325);
}
.text-amber-400 {
  --tw-text-opacity: 1;
  color: rgb(251 191 36 / var(--tw-text-opacity, 1));
}
.text-amber-500 {
  --tw-text-opacity: 1;
  color: rgb(245 158 11 / var(--tw-text-opacity, 1));
}
.text-amber-600 {
  --tw-text-opacity: 1;
  color: rgb(217 119 6 / var(--tw-text-opacity, 1));
}
.text-amber-700 {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}
.text-amber-800 {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}
.text-amber-900 {
  --tw-text-opacity: 1;
  color: rgb(120 53 15 / var(--tw-text-opacity, 1));
}
.text-background {
  color: hsl(var(--background));
}
.text-background\/40 {
  color: hsl(var(--background) / 0.4);
}
.text-background\/50 {
  color: hsl(var(--background) / 0.5);
}
.text-background\/75 {
  color: hsl(var(--background) / 0.75);
}
.text-background\/80 {
  color: hsl(var(--background) / 0.8);
}
.text-background\/90 {
  color: hsl(var(--background) / 0.9);
}
.text-blue-100 {
  --tw-text-opacity: 1;
  color: rgb(237 233 254 / var(--tw-text-opacity, 1));
}
.text-blue-200\/60 {
  color: rgb(221 214 254 / 0.6);
}
.text-blue-200\/70 {
  color: rgb(221 214 254 / 0.7);
}
.text-blue-400 {
  --tw-text-opacity: 1;
  color: rgb(167 139 250 / var(--tw-text-opacity, 1));
}
.text-blue-500 {
  --tw-text-opacity: 1;
  color: rgb(139 117 246 / var(--tw-text-opacity, 1));
}
.text-blue-600 {
  --tw-text-opacity: 1;
  color: rgb(99 91 255 / var(--tw-text-opacity, 1));
}
.text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(81 69 205 / var(--tw-text-opacity, 1));
}
.text-blue-800 {
  --tw-text-opacity: 1;
  color: rgb(67 56 166 / var(--tw-text-opacity, 1));
}
.text-blue-900 {
  --tw-text-opacity: 1;
  color: rgb(54 47 127 / var(--tw-text-opacity, 1));
}
.text-border {
  color: hsl(var(--border));
}
.text-card-foreground {
  color: hsl(var(--card-foreground));
}
.text-current {
  color: currentColor;
}
.text-cyan-600 {
  --tw-text-opacity: 1;
  color: rgb(8 145 178 / var(--tw-text-opacity, 1));
}
.text-cyan-700 {
  --tw-text-opacity: 1;
  color: rgb(14 116 144 / var(--tw-text-opacity, 1));
}
.text-destructive {
  color: hsl(var(--destructive));
}
.text-destructive-foreground {
  color: hsl(var(--destructive-foreground));
}
.text-emerald-400 {
  --tw-text-opacity: 1;
  color: rgb(52 211 153 / var(--tw-text-opacity, 1));
}
.text-emerald-500 {
  --tw-text-opacity: 1;
  color: rgb(16 185 129 / var(--tw-text-opacity, 1));
}
.text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.text-emerald-600\/80 {
  color: rgb(5 150 105 / 0.8);
}
.text-emerald-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.text-emerald-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / var(--tw-text-opacity, 1));
}
.text-emerald-900 {
  --tw-text-opacity: 1;
  color: rgb(6 78 59 / var(--tw-text-opacity, 1));
}
.text-foreground {
  color: hsl(var(--foreground));
}
.text-foreground\/60 {
  color: hsl(var(--foreground) / 0.6);
}
.text-foreground\/70 {
  color: hsl(var(--foreground) / 0.7);
}
.text-foreground\/80 {
  color: hsl(var(--foreground) / 0.8);
}
.text-gray-100 {
  --tw-text-opacity: 1;
  color: rgb(243 244 246 / var(--tw-text-opacity, 1));
}
.text-gray-400 {
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}
.text-gray-500 {
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}
.text-gray-600 {
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}
.text-gray-700 {
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}
.text-gray-800 {
  --tw-text-opacity: 1;
  color: rgb(31 41 55 / var(--tw-text-opacity, 1));
}
.text-gray-900 {
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}
.text-green-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.text-green-700 {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.text-green-800 {
  --tw-text-opacity: 1;
  color: rgb(6 95 70 / var(--tw-text-opacity, 1));
}
.text-indigo-600 {
  --tw-text-opacity: 1;
  color: rgb(79 70 229 / var(--tw-text-opacity, 1));
}
.text-indigo-700 {
  --tw-text-opacity: 1;
  color: rgb(67 56 202 / var(--tw-text-opacity, 1));
}
.text-indigo-800 {
  --tw-text-opacity: 1;
  color: rgb(55 48 163 / var(--tw-text-opacity, 1));
}
.text-muted-foreground {
  color: hsl(var(--muted-foreground));
}
.text-muted-foreground\/20 {
  color: hsl(var(--muted-foreground) / 0.2);
}
.text-muted-foreground\/30 {
  color: hsl(var(--muted-foreground) / 0.3);
}
.text-muted-foreground\/35 {
  color: hsl(var(--muted-foreground) / 0.35);
}
.text-muted-foreground\/40 {
  color: hsl(var(--muted-foreground) / 0.4);
}
.text-muted-foreground\/50 {
  color: hsl(var(--muted-foreground) / 0.5);
}
.text-muted-foreground\/60 {
  color: hsl(var(--muted-foreground) / 0.6);
}
.text-muted-foreground\/70 {
  color: hsl(var(--muted-foreground) / 0.7);
}
.text-orange-500 {
  --tw-text-opacity: 1;
  color: rgb(249 115 22 / var(--tw-text-opacity, 1));
}
.text-orange-600 {
  --tw-text-opacity: 1;
  color: rgb(234 88 12 / var(--tw-text-opacity, 1));
}
.text-orange-700 {
  --tw-text-opacity: 1;
  color: rgb(194 65 12 / var(--tw-text-opacity, 1));
}
.text-orange-800 {
  --tw-text-opacity: 1;
  color: rgb(154 52 18 / var(--tw-text-opacity, 1));
}
.text-orange-900 {
  --tw-text-opacity: 1;
  color: rgb(124 45 18 / var(--tw-text-opacity, 1));
}
.text-pink-600 {
  --tw-text-opacity: 1;
  color: rgb(219 39 119 / var(--tw-text-opacity, 1));
}
.text-popover-foreground {
  color: hsl(var(--popover-foreground));
}
.text-primary {
  color: hsl(var(--primary));
}
.text-primary-foreground {
  color: hsl(var(--primary-foreground));
}
.text-primary\/70 {
  color: hsl(var(--primary) / 0.7);
}
.text-purple-500 {
  --tw-text-opacity: 1;
  color: rgb(168 85 247 / var(--tw-text-opacity, 1));
}
.text-purple-600 {
  --tw-text-opacity: 1;
  color: rgb(147 51 234 / var(--tw-text-opacity, 1));
}
.text-purple-700 {
  --tw-text-opacity: 1;
  color: rgb(126 34 206 / var(--tw-text-opacity, 1));
}
.text-purple-800 {
  --tw-text-opacity: 1;
  color: rgb(107 33 168 / var(--tw-text-opacity, 1));
}
.text-purple-900 {
  --tw-text-opacity: 1;
  color: rgb(88 28 135 / var(--tw-text-opacity, 1));
}
.text-red-200 {
  --tw-text-opacity: 1;
  color: rgb(254 202 202 / var(--tw-text-opacity, 1));
}
.text-red-300\/80 {
  color: rgb(252 165 165 / 0.8);
}
.text-red-400 {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.text-red-500 {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.text-red-600 {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.text-red-700 {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.text-red-800 {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}
.text-red-900 {
  --tw-text-opacity: 1;
  color: rgb(127 29 29 / var(--tw-text-opacity, 1));
}
.text-rose-400 {
  --tw-text-opacity: 1;
  color: rgb(251 113 133 / var(--tw-text-opacity, 1));
}
.text-rose-500 {
  --tw-text-opacity: 1;
  color: rgb(244 63 94 / var(--tw-text-opacity, 1));
}
.text-rose-600 {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
}
.text-rose-700 {
  --tw-text-opacity: 1;
  color: rgb(190 18 60 / var(--tw-text-opacity, 1));
}
.text-secondary-foreground {
  color: hsl(var(--secondary-foreground));
}
.text-sidebar-accent-foreground {
  color: hsl(var(--sidebar-accent-foreground));
}
.text-sidebar-foreground {
  color: hsl(var(--sidebar-foreground));
}
.text-sidebar-foreground\/70 {
  color: hsl(var(--sidebar-foreground) / 0.7);
}
.text-sky-600 {
  --tw-text-opacity: 1;
  color: rgb(2 132 199 / var(--tw-text-opacity, 1));
}
.text-sky-700 {
  --tw-text-opacity: 1;
  color: rgb(3 105 161 / var(--tw-text-opacity, 1));
}
.text-sky-800 {
  --tw-text-opacity: 1;
  color: rgb(7 89 133 / var(--tw-text-opacity, 1));
}
.text-slate-600 {
  --tw-text-opacity: 1;
  color: rgb(71 85 105 / var(--tw-text-opacity, 1));
}
.text-slate-700 {
  --tw-text-opacity: 1;
  color: rgb(51 65 85 / var(--tw-text-opacity, 1));
}
.text-slate-800 {
  --tw-text-opacity: 1;
  color: rgb(30 41 59 / var(--tw-text-opacity, 1));
}
.text-success {
  color: hsl(var(--success));
}
.text-teal-600 {
  --tw-text-opacity: 1;
  color: rgb(13 148 136 / var(--tw-text-opacity, 1));
}
.text-violet-300 {
  --tw-text-opacity: 1;
  color: rgb(196 181 253 / var(--tw-text-opacity, 1));
}
.text-violet-500 {
  --tw-text-opacity: 1;
  color: rgb(139 92 246 / var(--tw-text-opacity, 1));
}
.text-violet-600 {
  --tw-text-opacity: 1;
  color: rgb(124 58 237 / var(--tw-text-opacity, 1));
}
.text-violet-700 {
  --tw-text-opacity: 1;
  color: rgb(109 40 217 / var(--tw-text-opacity, 1));
}
.text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.text-white\/20 {
  color: rgb(255 255 255 / 0.2);
}
.text-white\/25 {
  color: rgb(255 255 255 / 0.25);
}
.text-white\/30 {
  color: rgb(255 255 255 / 0.3);
}
.text-white\/35 {
  color: rgb(255 255 255 / 0.35);
}
.text-white\/40 {
  color: rgb(255 255 255 / 0.4);
}
.text-white\/45 {
  color: rgb(255 255 255 / 0.45);
}
.text-white\/50 {
  color: rgb(255 255 255 / 0.5);
}
.text-white\/55 {
  color: rgb(255 255 255 / 0.55);
}
.text-white\/60 {
  color: rgb(255 255 255 / 0.6);
}
.text-white\/65 {
  color: rgb(255 255 255 / 0.65);
}
.text-white\/70 {
  color: rgb(255 255 255 / 0.7);
}
.text-white\/75 {
  color: rgb(255 255 255 / 0.75);
}
.text-white\/80 {
  color: rgb(255 255 255 / 0.8);
}
.text-white\/85 {
  color: rgb(255 255 255 / 0.85);
}
.text-yellow-400 {
  --tw-text-opacity: 1;
  color: rgb(250 204 21 / var(--tw-text-opacity, 1));
}
.text-yellow-500 {
  --tw-text-opacity: 1;
  color: rgb(234 179 8 / var(--tw-text-opacity, 1));
}
.text-yellow-600 {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}
.text-yellow-700 {
  --tw-text-opacity: 1;
  color: rgb(161 98 7 / var(--tw-text-opacity, 1));
}
.text-yellow-800 {
  --tw-text-opacity: 1;
  color: rgb(133 77 14 / var(--tw-text-opacity, 1));
}
.text-yellow-900 {
  --tw-text-opacity: 1;
  color: rgb(113 63 18 / var(--tw-text-opacity, 1));
}
.text-zinc-300 {
  --tw-text-opacity: 1;
  color: rgb(212 212 216 / var(--tw-text-opacity, 1));
}
.text-zinc-600 {
  --tw-text-opacity: 1;
  color: rgb(82 82 91 / var(--tw-text-opacity, 1));
}
.text-opacity-60 {
  --tw-text-opacity: 0.6;
}
.text-opacity-75 {
  --tw-text-opacity: 0.75;
}
.underline {
  text-decoration-line: underline;
}
.line-through {
  text-decoration-line: line-through;
}
.no-underline {
  text-decoration-line: none;
}
.underline-offset-2 {
  text-underline-offset: 2px;
}
.underline-offset-4 {
  text-underline-offset: 4px;
}
.antialiased {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.placeholder-gray-400::-moz-placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(156 163 175 / var(--tw-placeholder-opacity, 1));
}
.placeholder-gray-400::placeholder {
  --tw-placeholder-opacity: 1;
  color: rgb(156 163 175 / var(--tw-placeholder-opacity, 1));
}
.placeholder-white\/30::-moz-placeholder {
  color: rgb(255 255 255 / 0.3);
}
.placeholder-white\/30::placeholder {
  color: rgb(255 255 255 / 0.3);
}
.accent-amber-500 {
  accent-color: #f59e0b;
}
.accent-blue-600 {
  accent-color: #635BFF;
}
.accent-primary {
  accent-color: hsl(var(--primary));
}
.accent-slate-700 {
  accent-color: #334155;
}
.\!opacity-100 {
  opacity: 1 !important;
}
.opacity-0 {
  opacity: 0;
}
.opacity-100 {
  opacity: 1;
}
.opacity-20 {
  opacity: 0.2;
}
.opacity-25 {
  opacity: 0.25;
}
.opacity-30 {
  opacity: 0.3;
}
.opacity-40 {
  opacity: 0.4;
}
.opacity-50 {
  opacity: 0.5;
}
.opacity-60 {
  opacity: 0.6;
}
.opacity-70 {
  opacity: 0.7;
}
.opacity-75 {
  opacity: 0.75;
}
.opacity-80 {
  opacity: 0.8;
}
.opacity-90 {
  opacity: 0.9;
}
.opacity-\[0\.04\] {
  opacity: 0.04;
}
.\!shadow-none {
  --tw-shadow: 0 0 #0000 !important;
  --tw-shadow-colored: 0 0 #0000 !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}
.shadow {
  --tw-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-2xl {
  --tw-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --tw-shadow-colored: 0 25px 50px -12px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_0_0_1px_var\(--sidebar-border\)\] {
  --tw-shadow: 0 0 0 1px var(--sidebar-border);
  --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_16px_56px_rgba\(74\2c 66\2c 219\2c \.3\)\] {
  --tw-shadow: 0 16px 56px rgba(74,66,219,.3);
  --tw-shadow-colored: 0 16px 56px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_32px_96px_rgba\(0\2c 0\2c 0\2c \.14\)\] {
  --tw-shadow: 0 32px 96px rgba(0,0,0,.14);
  --tw-shadow-colored: 0 32px 96px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-\[0_8px_40px_rgba\(0\2c 0\2c 0\2c \.08\)\] {
  --tw-shadow: 0 8px 40px rgba(0,0,0,.08);
  --tw-shadow-colored: 0 8px 40px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-lg {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-md {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-none {
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-xl {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.shadow-violet-100 {
  --tw-shadow-color: #ede9fe;
  --tw-shadow: var(--tw-shadow-colored);
}
.shadow-violet-200 {
  --tw-shadow-color: #ddd6fe;
  --tw-shadow: var(--tw-shadow-colored);
}
.\!outline-none {
  outline: 2px solid transparent !important;
  outline-offset: 2px !important;
}
.outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.outline {
  outline-style: solid;
}
.ring {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-0 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-1 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-2 {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.ring-\[\#635BFF\]\/20 {
  --tw-ring-color: rgb(99 91 255 / 0.2);
}
.ring-\[var\(--doska-surface\)\] {
  --tw-ring-color: var(--doska-surface);
}
.ring-blue-100 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(237 233 254 / var(--tw-ring-opacity, 1));
}
.ring-blue-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(221 214 254 / var(--tw-ring-opacity, 1));
}
.ring-blue-400 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(167 139 250 / var(--tw-ring-opacity, 1));
}
.ring-foreground {
  --tw-ring-color: hsl(var(--foreground));
}
.ring-primary\/10 {
  --tw-ring-color: hsl(var(--primary) / 0.1);
}
.ring-red-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(254 202 202 / var(--tw-ring-opacity, 1));
}
.ring-ring {
  --tw-ring-color: hsl(var(--ring));
}
.ring-sidebar-ring {
  --tw-ring-color: hsl(var(--sidebar-ring));
}
.ring-yellow-200 {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(254 240 138 / var(--tw-ring-opacity, 1));
}
.ring-offset-1 {
  --tw-ring-offset-width: 1px;
}
.ring-offset-2 {
  --tw-ring-offset-width: 2px;
}
.ring-offset-background {
  --tw-ring-offset-color: hsl(var(--background));
}
.blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.blur-3xl {
  --tw-blur: blur(64px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.drop-shadow {
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.grayscale {
  --tw-grayscale: grayscale(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.invert {
  --tw-invert: invert(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.sepia {
  --tw-sepia: sepia(100%);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.\!filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow) !important;
}
.filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
.\!backdrop-blur-none {
  --tw-backdrop-blur:   !important;
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia) !important;
}
.backdrop-blur {
  --tw-backdrop-blur: blur(8px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-blur-md {
  --tw-backdrop-blur: blur(12px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-blur-sm {
  --tw-backdrop-blur: blur(4px);
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.backdrop-filter {
  backdrop-filter: var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);
}
.transition {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[left\2c right\2c width\] {
  transition-property: left,right,width;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[margin\2c opacity\] {
  transition-property: margin,opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[width\2c height\2c padding\] {
  transition-property: width,height,padding;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-\[width\] {
  transition-property: width;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-none {
  transition-property: none;
}
.transition-opacity {
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-shadow {
  transition-property: box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.transition-transform {
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
.duration-100 {
  transition-duration: 100ms;
}
.duration-200 {
  transition-duration: 200ms;
}
.duration-300 {
  transition-duration: 300ms;
}
.duration-500 {
  transition-duration: 500ms;
}
.ease-in-out {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-linear {
  transition-timing-function: linear;
}
.ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
@keyframes enter {

  from {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
  }
}
@keyframes exit {

  to {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
  }
}
.animate-in {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.fade-in-0 {
  --tw-enter-opacity: 0;
}
.fade-out {
  --tw-exit-opacity: 0;
}
.zoom-in {
  --tw-enter-scale: 0;
}
.zoom-in-95 {
  --tw-enter-scale: .95;
}
.slide-in-from-right-full {
  --tw-enter-translate-x: 100%;
}
.duration-100 {
  animation-duration: 100ms;
}
.duration-200 {
  animation-duration: 200ms;
}
.duration-300 {
  animation-duration: 300ms;
}
.duration-500 {
  animation-duration: 500ms;
}
.ease-in-out {
  animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.ease-linear {
  animation-timing-function: linear;
}
.ease-out {
  animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
.\!running {
  animation-play-state: running !important;
}
.running {
  animation-play-state: running;
}
.paused {
  animation-play-state: paused;
}
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
.scrollbar-hide::-webkit-scrollbar {
    display: none;
  }
.\[animation-delay\:140ms\] {
  animation-delay: 140ms;
}
.\[animation-delay\:280ms\] {
  animation-delay: 280ms;
}
.\!\[background-image\:none\] {
  background-image: none !important;
}
.\[color-scheme\:inherit\] {
  color-scheme: inherit;
}
.\[grid-template-columns\:repeat\(auto-fill\2c minmax\(260px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
}
.\[grid-template-columns\:repeat\(auto-fill\2c minmax\(280px\2c 1fr\)\)\] {
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
}
.\[mask-image\:linear-gradient\(to_bottom\2c black_45\%\2c transparent_100\%\)\] {
  -webkit-mask-image: linear-gradient(to bottom,black 45%,transparent 100%);
          mask-image: linear-gradient(to bottom,black 45%,transparent 100%);
}
.\[overflow-wrap\:anywhere\] {
  overflow-wrap: anywhere;
}

/* Landing page scroll-reveal animation — defined globally so inline \3c style> rerenders don't restart it */
@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(16px) }
  to   { opacity: 1; transform: translateY(0) }
}
.lp-fade-up {
  animation: lp-fade-up 0.52s cubic-bezier(0.22, 0.68, 0, 1.05) both;
}
/* Marquee animations */
@keyframes lp-marquee  { from { transform: translateX(0) }    to { transform: translateX(-50%) } }
@keyframes lp-marquee2 { from { transform: translateX(-50%) } to { transform: translateX(0) }    }
.lp-marquee  { animation: lp-marquee  60s linear infinite; }
.lp-marquee2 { animation: lp-marquee2 72s linear infinite; }
.lp-marquee:hover, .lp-marquee2:hover { animation-play-state: paused; }
.first-letter\:uppercase::first-letter {
  text-transform: uppercase;
}
.file\:border-0::file-selector-button {
  border-width: 0px;
}
.file\:bg-transparent::file-selector-button {
  background-color: transparent;
}
.file\:text-sm::file-selector-button {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.file\:font-medium::file-selector-button {
  font-weight: 500;
}
.placeholder\:text-muted-foreground::-moz-placeholder {
  color: hsl(var(--muted-foreground));
}
.placeholder\:text-muted-foreground::placeholder {
  color: hsl(var(--muted-foreground));
}
.placeholder\:text-muted-foreground\/20::-moz-placeholder {
  color: hsl(var(--muted-foreground) / 0.2);
}
.placeholder\:text-muted-foreground\/20::placeholder {
  color: hsl(var(--muted-foreground) / 0.2);
}
.placeholder\:text-muted-foreground\/30::-moz-placeholder {
  color: hsl(var(--muted-foreground) / 0.3);
}
.placeholder\:text-muted-foreground\/30::placeholder {
  color: hsl(var(--muted-foreground) / 0.3);
}
.placeholder\:text-muted-foreground\/40::-moz-placeholder {
  color: hsl(var(--muted-foreground) / 0.4);
}
.placeholder\:text-muted-foreground\/40::placeholder {
  color: hsl(var(--muted-foreground) / 0.4);
}
.placeholder\:text-muted-foreground\/50::-moz-placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}
.placeholder\:text-muted-foreground\/50::placeholder {
  color: hsl(var(--muted-foreground) / 0.5);
}
.after\:absolute::after {
  content: var(--tw-content);
  position: absolute;
}
.after\:-inset-2::after {
  content: var(--tw-content);
  inset: -0.5rem;
}
.after\:inset-y-0::after {
  content: var(--tw-content);
  top: 0px;
  bottom: 0px;
}
.after\:left-1\/2::after {
  content: var(--tw-content);
  left: 50%;
}
.after\:w-\[2px\]::after {
  content: var(--tw-content);
  width: 2px;
}
.first\:border-t-0:first-child {
  border-top-width: 0px;
}
.first\:pt-0:first-child {
  padding-top: 0px;
}
.first\:pt-1:first-child {
  padding-top: 0.25rem;
}
.last\:mb-0:last-child {
  margin-bottom: 0px;
}
.last\:border-0:last-child {
  border-width: 0px;
}
.last\:border-b-0:last-child {
  border-bottom-width: 0px;
}
.last\:pb-0:last-child {
  padding-bottom: 0px;
}
.focus-within\:ring-1:focus-within {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-within\:ring-ring:focus-within {
  --tw-ring-color: hsl(var(--ring));
}
.hover\:scale-110:hover {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.hover\:border:hover {
  border-width: 1px;
}
.hover\:border-\[\#635BFF\]\/40:hover {
  border-color: rgb(99 91 255 / 0.4);
}
.hover\:border-\[hsl\(var\(--border-strong\)\)\]:hover {
  border-color: hsl(var(--border-strong));
}
.hover\:border-amber-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(251 191 36 / var(--tw-border-opacity, 1));
}
.hover\:border-blue-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(167 139 250 / var(--tw-border-opacity, 1));
}
.hover\:border-border:hover {
  border-color: hsl(var(--border));
}
.hover\:border-border\/80:hover {
  border-color: hsl(var(--border) / 0.8);
}
.hover\:border-emerald-500:hover {
  --tw-border-opacity: 1;
  border-color: rgb(16 185 129 / var(--tw-border-opacity, 1));
}
.hover\:border-foreground\/20:hover {
  border-color: hsl(var(--foreground) / 0.2);
}
.hover\:border-foreground\/30:hover {
  border-color: hsl(var(--foreground) / 0.3);
}
.hover\:border-gray-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}
.hover\:border-muted-foreground\/40:hover {
  border-color: hsl(var(--muted-foreground) / 0.4);
}
.hover\:border-muted-foreground\/50:hover {
  border-color: hsl(var(--muted-foreground) / 0.5);
}
.hover\:border-primary:hover {
  border-color: hsl(var(--primary));
}
.hover\:border-primary\/30:hover {
  border-color: hsl(var(--primary) / 0.3);
}
.hover\:border-primary\/40:hover {
  border-color: hsl(var(--primary) / 0.4);
}
.hover\:border-primary\/50:hover {
  border-color: hsl(var(--primary) / 0.5);
}
.hover\:border-purple-400:hover {
  --tw-border-opacity: 1;
  border-color: rgb(192 132 252 / var(--tw-border-opacity, 1));
}
.hover\:border-red-200:hover {
  --tw-border-opacity: 1;
  border-color: rgb(254 202 202 / var(--tw-border-opacity, 1));
}
.hover\:border-red-500:hover {
  --tw-border-opacity: 1;
  border-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}
.hover\:border-teal-500:hover {
  --tw-border-opacity: 1;
  border-color: rgb(20 184 166 / var(--tw-border-opacity, 1));
}
.hover\:border-violet-300:hover {
  --tw-border-opacity: 1;
  border-color: rgb(196 181 253 / var(--tw-border-opacity, 1));
}
.hover\:\!bg-accent:hover {
  background-color: hsl(var(--accent)) !important;
}
.hover\:\!bg-sidebar-accent:hover {
  background-color: hsl(var(--sidebar-accent)) !important;
}
.hover\:\!bg-transparent:hover {
  background-color: transparent !important;
}
.hover\:bg-\[\#5145CD\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(81 69 205 / var(--tw-bg-opacity, 1));
}
.hover\:bg-\[\#635BFF\]:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(99 91 255 / var(--tw-bg-opacity, 1));
}
.hover\:bg-accent:hover {
  background-color: hsl(var(--accent));
}
.hover\:bg-accent\/30:hover {
  background-color: hsl(var(--accent) / 0.3);
}
.hover\:bg-accent\/50:hover {
  background-color: hsl(var(--accent) / 0.5);
}
.hover\:bg-accent\/70:hover {
  background-color: hsl(var(--accent) / 0.7);
}
.hover\:bg-amber-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 243 199 / var(--tw-bg-opacity, 1));
}
.hover\:bg-amber-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(253 230 138 / var(--tw-bg-opacity, 1));
}
.hover\:bg-amber-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 251 235 / var(--tw-bg-opacity, 1));
}
.hover\:bg-amber-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(180 83 9 / var(--tw-bg-opacity, 1));
}
.hover\:bg-background:hover {
  background-color: hsl(var(--background));
}
.hover\:bg-background\/10:hover {
  background-color: hsl(var(--background) / 0.1);
}
.hover\:bg-background\/60:hover {
  background-color: hsl(var(--background) / 0.6);
}
.hover\:bg-black\/10:hover {
  background-color: rgb(0 0 0 / 0.1);
}
.hover\:bg-black\/\[0\.02\]:hover {
  background-color: rgb(0 0 0 / 0.02);
}
.hover\:bg-blue-400\/10:hover {
  background-color: rgb(167 139 250 / 0.1);
}
.hover\:bg-blue-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(81 69 205 / var(--tw-bg-opacity, 1));
}
.hover\:bg-cyan-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(236 254 255 / var(--tw-bg-opacity, 1));
}
.hover\:bg-destructive\/10:hover {
  background-color: hsl(var(--destructive) / 0.1);
}
.hover\:bg-destructive\/5:hover {
  background-color: hsl(var(--destructive) / 0.05);
}
.hover\:bg-destructive\/80:hover {
  background-color: hsl(var(--destructive) / 0.8);
}
.hover\:bg-destructive\/90:hover {
  background-color: hsl(var(--destructive) / 0.9);
}
.hover\:bg-emerald-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}
.hover\:bg-emerald-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(167 243 208 / var(--tw-bg-opacity, 1));
}
.hover\:bg-emerald-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}
.hover\:bg-emerald-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(5 150 105 / var(--tw-bg-opacity, 1));
}
.hover\:bg-emerald-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(4 120 87 / var(--tw-bg-opacity, 1));
}
.hover\:bg-foreground\/80:hover {
  background-color: hsl(var(--foreground) / 0.8);
}
.hover\:bg-gray-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}
.hover\:bg-gray-800:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}
.hover\:bg-muted:hover {
  background-color: hsl(var(--muted));
}
.hover\:bg-muted-foreground\/40:hover {
  background-color: hsl(var(--muted-foreground) / 0.4);
}
.hover\:bg-muted\/20:hover {
  background-color: hsl(var(--muted) / 0.2);
}
.hover\:bg-muted\/30:hover {
  background-color: hsl(var(--muted) / 0.3);
}
.hover\:bg-muted\/40:hover {
  background-color: hsl(var(--muted) / 0.4);
}
.hover\:bg-muted\/50:hover {
  background-color: hsl(var(--muted) / 0.5);
}
.hover\:bg-muted\/60:hover {
  background-color: hsl(var(--muted) / 0.6);
}
.hover\:bg-muted\/70:hover {
  background-color: hsl(var(--muted) / 0.7);
}
.hover\:bg-muted\/80:hover {
  background-color: hsl(var(--muted) / 0.8);
}
.hover\:bg-orange-200:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 215 170 / var(--tw-bg-opacity, 1));
}
.hover\:bg-orange-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(234 88 12 / var(--tw-bg-opacity, 1));
}
.hover\:bg-orange-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(194 65 12 / var(--tw-bg-opacity, 1));
}
.hover\:bg-primary\/10:hover {
  background-color: hsl(var(--primary) / 0.1);
}
.hover\:bg-primary\/5:hover {
  background-color: hsl(var(--primary) / 0.05);
}
.hover\:bg-primary\/80:hover {
  background-color: hsl(var(--primary) / 0.8);
}
.hover\:bg-primary\/90:hover {
  background-color: hsl(var(--primary) / 0.9);
}
.hover\:bg-purple-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(243 232 255 / var(--tw-bg-opacity, 1));
}
.hover\:bg-purple-100\/60:hover {
  background-color: rgb(243 232 255 / 0.6);
}
.hover\:bg-purple-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(126 34 206 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 226 226 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.hover\:bg-red-500\/30:hover {
  background-color: rgb(239 68 68 / 0.3);
}
.hover\:bg-red-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(185 28 28 / var(--tw-bg-opacity, 1));
}
.hover\:bg-rose-50:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}
.hover\:bg-secondary\/80:hover {
  background-color: hsl(var(--secondary) / 0.8);
}
.hover\:bg-sidebar-accent:hover {
  background-color: hsl(var(--sidebar-accent));
}
.hover\:bg-transparent:hover {
  background-color: transparent;
}
.hover\:bg-violet-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
}
.hover\:bg-violet-700:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(109 40 217 / var(--tw-bg-opacity, 1));
}
.hover\:bg-white:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.hover\:bg-white\/10:hover {
  background-color: rgb(255 255 255 / 0.1);
}
.hover\:bg-white\/15:hover {
  background-color: rgb(255 255 255 / 0.15);
}
.hover\:bg-white\/20:hover {
  background-color: rgb(255 255 255 / 0.2);
}
.hover\:bg-white\/30:hover {
  background-color: rgb(255 255 255 / 0.3);
}
.hover\:bg-white\/5:hover {
  background-color: rgb(255 255 255 / 0.05);
}
.hover\:bg-white\/50:hover {
  background-color: rgb(255 255 255 / 0.5);
}
.hover\:bg-white\/90:hover {
  background-color: rgb(255 255 255 / 0.9);
}
.hover\:bg-yellow-100:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(254 249 195 / var(--tw-bg-opacity, 1));
}
.hover\:bg-yellow-600:hover {
  --tw-bg-opacity: 1;
  background-color: rgb(202 138 4 / var(--tw-bg-opacity, 1));
}
.hover\:from-cyan-700:hover {
  --tw-gradient-from: #0e7490 var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(14 116 144 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.hover\:to-teal-700:hover {
  --tw-gradient-to: #0f766e var(--tw-gradient-to-position);
}
.hover\:\!text-foreground:hover {
  color: hsl(var(--foreground)) !important;
}
.hover\:text-\[\#1F2023\]:hover {
  --tw-text-opacity: 1;
  color: rgb(31 32 35 / var(--tw-text-opacity, 1));
}
.hover\:text-accent-foreground:hover {
  color: hsl(var(--accent-foreground));
}
.hover\:text-amber-700:hover {
  --tw-text-opacity: 1;
  color: rgb(180 83 9 / var(--tw-text-opacity, 1));
}
.hover\:text-amber-800:hover {
  --tw-text-opacity: 1;
  color: rgb(146 64 14 / var(--tw-text-opacity, 1));
}
.hover\:text-amber-900:hover {
  --tw-text-opacity: 1;
  color: rgb(120 53 15 / var(--tw-text-opacity, 1));
}
.hover\:text-background:hover {
  color: hsl(var(--background));
}
.hover\:text-blue-300:hover {
  --tw-text-opacity: 1;
  color: rgb(196 181 253 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-500:hover {
  --tw-text-opacity: 1;
  color: rgb(139 117 246 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-700:hover {
  --tw-text-opacity: 1;
  color: rgb(81 69 205 / var(--tw-text-opacity, 1));
}
.hover\:text-blue-900:hover {
  --tw-text-opacity: 1;
  color: rgb(54 47 127 / var(--tw-text-opacity, 1));
}
.hover\:text-destructive:hover {
  color: hsl(var(--destructive));
}
.hover\:text-emerald-600:hover {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.hover\:text-emerald-700:hover {
  --tw-text-opacity: 1;
  color: rgb(4 120 87 / var(--tw-text-opacity, 1));
}
.hover\:text-emerald-900:hover {
  --tw-text-opacity: 1;
  color: rgb(6 78 59 / var(--tw-text-opacity, 1));
}
.hover\:text-foreground:hover {
  color: hsl(var(--foreground));
}
.hover\:text-foreground\/80:hover {
  color: hsl(var(--foreground) / 0.8);
}
.hover\:text-muted-foreground:hover {
  color: hsl(var(--muted-foreground));
}
.hover\:text-muted-foreground\/55:hover {
  color: hsl(var(--muted-foreground) / 0.55);
}
.hover\:text-orange-900:hover {
  --tw-text-opacity: 1;
  color: rgb(124 45 18 / var(--tw-text-opacity, 1));
}
.hover\:text-primary:hover {
  color: hsl(var(--primary));
}
.hover\:text-primary\/80:hover {
  color: hsl(var(--primary) / 0.8);
}
.hover\:text-red-100:hover {
  --tw-text-opacity: 1;
  color: rgb(254 226 226 / var(--tw-text-opacity, 1));
}
.hover\:text-red-400:hover {
  --tw-text-opacity: 1;
  color: rgb(248 113 113 / var(--tw-text-opacity, 1));
}
.hover\:text-red-500:hover {
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}
.hover\:text-red-600:hover {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.hover\:text-red-700:hover {
  --tw-text-opacity: 1;
  color: rgb(185 28 28 / var(--tw-text-opacity, 1));
}
.hover\:text-red-800:hover {
  --tw-text-opacity: 1;
  color: rgb(153 27 27 / var(--tw-text-opacity, 1));
}
.hover\:text-rose-500:hover {
  --tw-text-opacity: 1;
  color: rgb(244 63 94 / var(--tw-text-opacity, 1));
}
.hover\:text-rose-600:hover {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
}
.hover\:text-sidebar-accent-foreground:hover {
  color: hsl(var(--sidebar-accent-foreground));
}
.hover\:text-violet-600:hover {
  --tw-text-opacity: 1;
  color: rgb(124 58 237 / var(--tw-text-opacity, 1));
}
.hover\:text-violet-700:hover {
  --tw-text-opacity: 1;
  color: rgb(109 40 217 / var(--tw-text-opacity, 1));
}
.hover\:text-white:hover {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.hover\:text-white\/90:hover {
  color: rgb(255 255 255 / 0.9);
}
.hover\:underline:hover {
  text-decoration-line: underline;
}
.hover\:no-underline:hover {
  text-decoration-line: none;
}
.hover\:opacity-100:hover {
  opacity: 1;
}
.hover\:opacity-75:hover {
  opacity: 0.75;
}
.hover\:opacity-80:hover {
  opacity: 0.8;
}
.hover\:opacity-90:hover {
  opacity: 0.9;
}
.hover\:shadow-\[0_0_0_1px_var\(--sidebar-accent\)\]:hover {
  --tw-shadow: 0 0 0 1px var(--sidebar-accent);
  --tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-lg:hover {
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-md:hover {
  --tw-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-sm:hover {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-xl:hover {
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.hover\:shadow-blue-500\/10:hover {
  --tw-shadow-color: rgb(139 117 246 / 0.1);
  --tw-shadow: var(--tw-shadow-colored);
}
.hover\:after\:bg-sidebar-border:hover::after {
  content: var(--tw-content);
  background-color: hsl(var(--sidebar-border));
}
.focus\:border:focus {
  border-width: 1px;
}
.focus\:border-amber-300:focus {
  --tw-border-opacity: 1;
  border-color: rgb(252 211 77 / var(--tw-border-opacity, 1));
}
.focus\:border-border:focus {
  border-color: hsl(var(--border));
}
.focus\:border-gray-400:focus {
  --tw-border-opacity: 1;
  border-color: rgb(156 163 175 / var(--tw-border-opacity, 1));
}
.focus\:border-gray-900:focus {
  --tw-border-opacity: 1;
  border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
}
.focus\:border-primary:focus {
  border-color: hsl(var(--primary));
}
.focus\:border-primary\/40:focus {
  border-color: hsl(var(--primary) / 0.4);
}
.focus\:border-primary\/50:focus {
  border-color: hsl(var(--primary) / 0.5);
}
.focus\:border-primary\/60:focus {
  border-color: hsl(var(--primary) / 0.6);
}
.focus\:border-transparent:focus {
  border-color: transparent;
}
.focus\:border-violet-300:focus {
  --tw-border-opacity: 1;
  border-color: rgb(196 181 253 / var(--tw-border-opacity, 1));
}
.focus\:border-white\/40:focus {
  border-color: rgb(255 255 255 / 0.4);
}
.focus\:bg-accent:focus {
  background-color: hsl(var(--accent));
}
.focus\:bg-background:focus {
  background-color: hsl(var(--background));
}
.focus\:bg-destructive\/10:focus {
  background-color: hsl(var(--destructive) / 0.1);
}
.focus\:bg-emerald-50:focus {
  --tw-bg-opacity: 1;
  background-color: rgb(236 253 245 / var(--tw-bg-opacity, 1));
}
.focus\:bg-muted\/50:focus {
  background-color: hsl(var(--muted) / 0.5);
}
.focus\:bg-orange-50:focus {
  --tw-bg-opacity: 1;
  background-color: rgb(255 247 237 / var(--tw-bg-opacity, 1));
}
.focus\:bg-primary\/10:focus {
  background-color: hsl(var(--primary) / 0.1);
}
.focus\:bg-red-50:focus {
  --tw-bg-opacity: 1;
  background-color: rgb(254 242 242 / var(--tw-bg-opacity, 1));
}
.focus\:bg-rose-50:focus {
  --tw-bg-opacity: 1;
  background-color: rgb(255 241 242 / var(--tw-bg-opacity, 1));
}
.focus\:bg-yellow-50:focus {
  --tw-bg-opacity: 1;
  background-color: rgb(254 252 232 / var(--tw-bg-opacity, 1));
}
.focus\:text-accent-foreground:focus {
  color: hsl(var(--accent-foreground));
}
.focus\:text-destructive:focus {
  color: hsl(var(--destructive));
}
.focus\:text-emerald-600:focus {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.focus\:text-orange-600:focus {
  --tw-text-opacity: 1;
  color: rgb(234 88 12 / var(--tw-text-opacity, 1));
}
.focus\:text-primary:focus {
  color: hsl(var(--primary));
}
.focus\:text-red-600:focus {
  --tw-text-opacity: 1;
  color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}
.focus\:text-rose-600:focus {
  --tw-text-opacity: 1;
  color: rgb(225 29 72 / var(--tw-text-opacity, 1));
}
.focus\:text-yellow-600:focus {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}
.focus\:outline-none:focus {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus\:ring-1:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-amber-100:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(254 243 199 / var(--tw-ring-opacity, 1));
}
.focus\:ring-black\/10:focus {
  --tw-ring-color: rgb(0 0 0 / 0.1);
}
.focus\:ring-destructive\/40:focus {
  --tw-ring-color: hsl(var(--destructive) / 0.4);
}
.focus\:ring-gray-200:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(229 231 235 / var(--tw-ring-opacity, 1));
}
.focus\:ring-gray-300:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1));
}
.focus\:ring-gray-900\/20:focus {
  --tw-ring-color: rgb(17 24 39 / 0.2);
}
.focus\:ring-orange-500:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(249 115 22 / var(--tw-ring-opacity, 1));
}
.focus\:ring-primary:focus {
  --tw-ring-color: hsl(var(--primary));
}
.focus\:ring-primary\/10:focus {
  --tw-ring-color: hsl(var(--primary) / 0.1);
}
.focus\:ring-primary\/20:focus {
  --tw-ring-color: hsl(var(--primary) / 0.2);
}
.focus\:ring-primary\/40:focus {
  --tw-ring-color: hsl(var(--primary) / 0.4);
}
.focus\:ring-ring:focus {
  --tw-ring-color: hsl(var(--ring));
}
.focus\:ring-violet-100:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(237 233 254 / var(--tw-ring-opacity, 1));
}
.focus\:ring-white\/30:focus {
  --tw-ring-color: rgb(255 255 255 / 0.3);
}
.focus\:ring-offset-2:focus {
  --tw-ring-offset-width: 2px;
}
.focus-visible\:\!bg-accent:focus-visible {
  background-color: hsl(var(--accent)) !important;
}
.focus-visible\:bg-accent:focus-visible {
  background-color: hsl(var(--accent));
}
.focus-visible\:opacity-100:focus-visible {
  opacity: 1;
}
.focus-visible\:outline-none:focus-visible {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
.focus-visible\:ring-0:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-1:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-2:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus-visible\:ring-inset:focus-visible {
  --tw-ring-inset: inset;
}
.focus-visible\:ring-red-500:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(239 68 68 / var(--tw-ring-opacity, 1));
}
.focus-visible\:ring-ring:focus-visible {
  --tw-ring-color: hsl(var(--ring));
}
.focus-visible\:ring-violet-100:focus-visible {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(237 233 254 / var(--tw-ring-opacity, 1));
}
.focus-visible\:ring-offset-2:focus-visible {
  --tw-ring-offset-width: 2px;
}
.focus-visible\:ring-offset-background:focus-visible {
  --tw-ring-offset-color: hsl(var(--background));
}
.active\:scale-\[0\.98\]:active {
  --tw-scale-x: 0.98;
  --tw-scale-y: 0.98;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.active\:cursor-grabbing:active {
  cursor: grabbing;
}
.active\:bg-muted:active {
  background-color: hsl(var(--muted));
}
.active\:bg-sidebar-accent:active {
  background-color: hsl(var(--sidebar-accent));
}
.active\:text-sidebar-accent-foreground:active {
  color: hsl(var(--sidebar-accent-foreground));
}
.disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
.disabled\:cursor-help:disabled {
  cursor: help;
}
.disabled\:cursor-not-allowed:disabled {
  cursor: not-allowed;
}
.disabled\:bg-muted:disabled {
  background-color: hsl(var(--muted));
}
.disabled\:bg-muted-foreground\/30:disabled {
  background-color: hsl(var(--muted-foreground) / 0.3);
}
.disabled\:text-muted-foreground:disabled {
  color: hsl(var(--muted-foreground));
}
.disabled\:opacity-30:disabled {
  opacity: 0.3;
}
.disabled\:opacity-40:disabled {
  opacity: 0.4;
}
.disabled\:opacity-45:disabled {
  opacity: 0.45;
}
.disabled\:opacity-50:disabled {
  opacity: 0.5;
}
.disabled\:opacity-60:disabled {
  opacity: 0.6;
}
.disabled\:hover\:bg-transparent:hover:disabled {
  background-color: transparent;
}
.group[open] .group-open\:rotate-180 {
  --tw-rotate: 180deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group\/tip:focus-within .group-focus-within\/tip\:visible {
  visibility: visible;
}
.group:focus-within .group-focus-within\:grid {
  display: grid;
}
.group\/menu-item:focus-within .group-focus-within\/menu-item\:opacity-100 {
  opacity: 1;
}
.group\/tip:focus-within .group-focus-within\/tip\:opacity-100 {
  opacity: 1;
}
.group\/tip:hover .group-hover\/tip\:visible {
  visibility: visible;
}
.group:hover .group-hover\:visible {
  visibility: visible;
}
.group\/b:hover .group-hover\/b\:block {
  display: block;
}
.group\/b:hover .group-hover\/b\:grid {
  display: grid;
}
.group:hover .group-hover\:grid {
  display: grid;
}
.group:hover .group-hover\:translate-x-1 {
  --tw-translate-x: 0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group:hover .group-hover\:rotate-12 {
  --tw-rotate: 12deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group:hover .group-hover\:scale-110 {
  --tw-scale-x: 1.1;
  --tw-scale-y: 1.1;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group:hover .group-hover\:bg-blue-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
}
.group:hover .group-hover\:bg-blue-200 {
  --tw-bg-opacity: 1;
  background-color: rgb(221 214 254 / var(--tw-bg-opacity, 1));
}
.group:hover .group-hover\:bg-emerald-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(209 250 229 / var(--tw-bg-opacity, 1));
}
.group:hover .group-hover\:bg-muted {
  background-color: hsl(var(--muted));
}
.group:hover .group-hover\:bg-muted\/40 {
  background-color: hsl(var(--muted) / 0.4);
}
.group:hover .group-hover\:bg-primary\/15 {
  background-color: hsl(var(--primary) / 0.15);
}
.group:hover .group-hover\:bg-primary\/90 {
  background-color: hsl(var(--primary) / 0.9);
}
.group:hover .group-hover\:bg-teal-700 {
  --tw-bg-opacity: 1;
  background-color: rgb(15 118 110 / var(--tw-bg-opacity, 1));
}
.group:hover .group-hover\:bg-violet-100 {
  --tw-bg-opacity: 1;
  background-color: rgb(237 233 254 / var(--tw-bg-opacity, 1));
}
.group:hover .group-hover\:text-blue-700 {
  --tw-text-opacity: 1;
  color: rgb(81 69 205 / var(--tw-text-opacity, 1));
}
.group:hover .group-hover\:text-emerald-600 {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.group:hover .group-hover\:text-foreground\/80 {
  color: hsl(var(--foreground) / 0.8);
}
.group:hover .group-hover\:text-primary {
  color: hsl(var(--primary));
}
.group:hover .group-hover\:text-white\/40 {
  color: rgb(255 255 255 / 0.4);
}
.group:hover .group-hover\:underline {
  text-decoration-line: underline;
}
.group\/menu-item:hover .group-hover\/menu-item\:opacity-100 {
  opacity: 1;
}
.group\/tag:hover .group-hover\/tag\:opacity-100 {
  opacity: 1;
}
.group\/tip:hover .group-hover\/tip\:opacity-100 {
  opacity: 1;
}
.group:hover .group-hover\:opacity-100 {
  opacity: 1;
}
.peer\/menu-button:hover ~ .peer-hover\/menu-button\:text-sidebar-accent-foreground {
  color: hsl(var(--sidebar-accent-foreground));
}
.peer:disabled ~ .peer-disabled\:cursor-not-allowed {
  cursor: not-allowed;
}
.peer:disabled ~ .peer-disabled\:opacity-70 {
  opacity: 0.7;
}
.has-\[\>\[data-open\]\]\:\!grid-cols-1:has(>[data-open]) {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.aria-disabled\:pointer-events-none[aria-disabled="true"] {
  pointer-events: none;
}
.aria-disabled\:opacity-50[aria-disabled="true"] {
  opacity: 0.5;
}
.aria-expanded\:opacity-100[aria-expanded="true"] {
  opacity: 1;
}
.data-\[disabled\]\:pointer-events-none[data-disabled] {
  pointer-events: none;
}
.data-\[side\=bottom\]\:translate-y-1[data-side="bottom"] {
  --tw-translate-y: 0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[side\=left\]\:-translate-x-1[data-side="left"] {
  --tw-translate-x: -0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[side\=right\]\:translate-x-1[data-side="right"] {
  --tw-translate-x: 0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[side\=top\]\:-translate-y-1[data-side="top"] {
  --tw-translate-y: -0.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[state\=checked\]\:translate-x-5[data-state="checked"] {
  --tw-translate-x: 1.25rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[state\=unchecked\]\:translate-x-0[data-state="unchecked"] {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.data-\[drop-active\]\:border-foreground[data-drop-active] {
  border-color: hsl(var(--foreground));
}
.data-\[state\=active\]\:border-gray-800[data-state="active"] {
  --tw-border-opacity: 1;
  border-color: rgb(31 41 55 / var(--tw-border-opacity, 1));
}
.data-\[state\=active\]\:border-primary[data-state="active"] {
  border-color: hsl(var(--primary));
}
.data-\[active\=true\]\:bg-sidebar-accent[data-active="true"] {
  background-color: hsl(var(--sidebar-accent));
}
.data-\[active\]\:\!bg-sidebar-accent[data-active] {
  background-color: hsl(var(--sidebar-accent)) !important;
}
.data-\[active\]\:bg-accent[data-active] {
  background-color: hsl(var(--accent));
}
.data-\[active\]\:bg-secondary[data-active] {
  background-color: hsl(var(--secondary));
}
.data-\[drop-active\]\:bg-accent[data-drop-active] {
  background-color: hsl(var(--accent));
}
.data-\[open\]\:bg-accent[data-open] {
  background-color: hsl(var(--accent));
}
.data-\[state\=active\]\:bg-background[data-state="active"] {
  background-color: hsl(var(--background));
}
.data-\[state\=active\]\:bg-muted[data-state="active"] {
  background-color: hsl(var(--muted));
}
.data-\[state\=active\]\:bg-muted\/50[data-state="active"] {
  background-color: hsl(var(--muted) / 0.5);
}
.data-\[state\=active\]\:bg-transparent[data-state="active"] {
  background-color: transparent;
}
.data-\[state\=active\]\:bg-white[data-state="active"] {
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}
.data-\[state\=checked\]\:bg-primary[data-state="checked"] {
  background-color: hsl(var(--primary));
}
.data-\[state\=inactive\]\:bg-transparent[data-state="inactive"] {
  background-color: transparent;
}
.data-\[state\=open\]\:bg-accent[data-state="open"] {
  background-color: hsl(var(--accent));
}
.data-\[state\=open\]\:bg-secondary[data-state="open"] {
  background-color: hsl(var(--secondary));
}
.data-\[state\=selected\]\:bg-muted[data-state="selected"] {
  background-color: hsl(var(--muted));
}
.data-\[state\=unchecked\]\:bg-input[data-state="unchecked"] {
  background-color: hsl(var(--input));
}
.data-\[active\=true\]\:font-medium[data-active="true"] {
  font-weight: 500;
}
.data-\[active\]\:font-medium[data-active] {
  font-weight: 500;
}
.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active="true"] {
  color: hsl(var(--sidebar-accent-foreground));
}
.data-\[active\]\:text-foreground[data-active] {
  color: hsl(var(--foreground));
}
.data-\[listening\]\:text-destructive[data-listening] {
  color: hsl(var(--destructive));
}
.data-\[recording\]\:text-destructive[data-recording] {
  color: hsl(var(--destructive));
}
.data-\[state\=active\]\:text-foreground[data-state="active"] {
  color: hsl(var(--foreground));
}
.data-\[state\=active\]\:text-primary[data-state="active"] {
  color: hsl(var(--primary));
}
.data-\[state\=checked\]\:text-primary-foreground[data-state="checked"] {
  color: hsl(var(--primary-foreground));
}
.data-\[state\=inactive\]\:text-muted-foreground[data-state="inactive"] {
  color: hsl(var(--muted-foreground));
}
.data-\[state\=inactive\]\:text-muted-foreground\/60[data-state="inactive"] {
  color: hsl(var(--muted-foreground) / 0.6);
}
.data-\[state\=open\]\:text-muted-foreground[data-state="open"] {
  color: hsl(var(--muted-foreground));
}
.data-\[active\]\:opacity-100[data-active] {
  opacity: 1;
}
.data-\[disabled\]\:opacity-50[data-disabled] {
  opacity: 0.5;
}
.data-\[state\=open\]\:opacity-100[data-state="open"] {
  opacity: 1;
}
.data-\[state\=active\]\:shadow-none[data-state="active"] {
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.data-\[state\=active\]\:shadow-sm[data-state="active"] {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.data-\[drop-active\]\:ring-1[data-drop-active] {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.data-\[drop-active\]\:ring-inset[data-drop-active] {
  --tw-ring-inset: inset;
}
.data-\[drop-active\]\:ring-foreground[data-drop-active] {
  --tw-ring-color: hsl(var(--foreground));
}
.data-\[state\=closed\]\:duration-300[data-state="closed"] {
  transition-duration: 300ms;
}
.data-\[state\=open\]\:duration-500[data-state="open"] {
  transition-duration: 500ms;
}
.data-\[state\=open\]\:animate-in[data-state="open"] {
  animation-name: enter;
  animation-duration: 150ms;
  --tw-enter-opacity: initial;
  --tw-enter-scale: initial;
  --tw-enter-rotate: initial;
  --tw-enter-translate-x: initial;
  --tw-enter-translate-y: initial;
}
.data-\[state\=closed\]\:animate-out[data-state="closed"] {
  animation-name: exit;
  animation-duration: 150ms;
  --tw-exit-opacity: initial;
  --tw-exit-scale: initial;
  --tw-exit-rotate: initial;
  --tw-exit-translate-x: initial;
  --tw-exit-translate-y: initial;
}
.data-\[state\=closed\]\:fade-out-0[data-state="closed"] {
  --tw-exit-opacity: 0;
}
.data-\[state\=open\]\:fade-in-0[data-state="open"] {
  --tw-enter-opacity: 0;
}
.data-\[state\=closed\]\:zoom-out-95[data-state="closed"] {
  --tw-exit-scale: .95;
}
.data-\[state\=open\]\:zoom-in-95[data-state="open"] {
  --tw-enter-scale: .95;
}
.data-\[side\=bottom\]\:slide-in-from-top-2[data-side="bottom"] {
  --tw-enter-translate-y: -0.5rem;
}
.data-\[side\=left\]\:slide-in-from-right-2[data-side="left"] {
  --tw-enter-translate-x: 0.5rem;
}
.data-\[side\=right\]\:slide-in-from-left-2[data-side="right"] {
  --tw-enter-translate-x: -0.5rem;
}
.data-\[side\=top\]\:slide-in-from-bottom-2[data-side="top"] {
  --tw-enter-translate-y: 0.5rem;
}
.data-\[state\=closed\]\:slide-out-to-bottom[data-state="closed"] {
  --tw-exit-translate-y: 100%;
}
.data-\[state\=closed\]\:slide-out-to-left[data-state="closed"] {
  --tw-exit-translate-x: -100%;
}
.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state="closed"] {
  --tw-exit-translate-x: -50%;
}
.data-\[state\=closed\]\:slide-out-to-right[data-state="closed"] {
  --tw-exit-translate-x: 100%;
}
.data-\[state\=closed\]\:slide-out-to-top[data-state="closed"] {
  --tw-exit-translate-y: -100%;
}
.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state="closed"] {
  --tw-exit-translate-y: -48%;
}
.data-\[state\=open\]\:slide-in-from-bottom[data-state="open"] {
  --tw-enter-translate-y: 100%;
}
.data-\[state\=open\]\:slide-in-from-left[data-state="open"] {
  --tw-enter-translate-x: -100%;
}
.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state="open"] {
  --tw-enter-translate-x: -50%;
}
.data-\[state\=open\]\:slide-in-from-right[data-state="open"] {
  --tw-enter-translate-x: 100%;
}
.data-\[state\=open\]\:slide-in-from-top[data-state="open"] {
  --tw-enter-translate-y: -100%;
}
.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state="open"] {
  --tw-enter-translate-y: -48%;
}
.data-\[state\=closed\]\:duration-300[data-state="closed"] {
  animation-duration: 300ms;
}
.data-\[state\=open\]\:duration-500[data-state="open"] {
  animation-duration: 500ms;
}
.data-\[state\=open\]\:hover\:bg-sidebar-accent:hover[data-state="open"] {
  background-color: hsl(var(--sidebar-accent));
}
.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground:hover[data-state="open"] {
  color: hsl(var(--sidebar-accent-foreground));
}
.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\] {
  left: calc(var(--sidebar-width) * -1);
}
.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\] {
  right: calc(var(--sidebar-width) * -1);
}
.group[data-side="left"] .group-data-\[side\=left\]\:-right-4 {
  right: -1rem;
}
.group[data-side="right"] .group-data-\[side\=right\]\:left-0 {
  left: 0px;
}
.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:-mt-8 {
  margin-top: -2rem;
}
.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:hidden {
  display: none;
}
.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+1rem\)\] {
  width: calc(var(--sidebar-width-icon) + 1rem);
}
.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)\+1rem\+2px\)\] {
  width: calc(var(--sidebar-width-icon) + 1rem + 2px);
}
.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:w-\[var\(--sidebar-width-icon\)\] {
  width: var(--sidebar-width-icon);
}
.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:w-0 {
  width: 0px;
}
.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:translate-x-0 {
  --tw-translate-x: 0px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group[data-side="right"] .group-data-\[side\=right\]\:rotate-180 {
  --tw-rotate: 180deg;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:overflow-hidden {
  overflow: hidden;
}
.group[data-variant="floating"] .group-data-\[variant\=floating\]\:rounded-lg {
  border-radius: var(--radius);
}
.group[data-variant="floating"] .group-data-\[variant\=floating\]\:border {
  border-width: 1px;
}
.group[data-side="left"] .group-data-\[side\=left\]\:border-r {
  border-right-width: 1px;
}
.group[data-side="right"] .group-data-\[side\=right\]\:border-l {
  border-left-width: 1px;
}
.group[data-variant="floating"] .group-data-\[variant\=floating\]\:border-sidebar-border {
  border-color: hsl(var(--sidebar-border));
}
.group[data-collapsible="icon"] .group-data-\[collapsible\=icon\]\:opacity-0 {
  opacity: 0;
}
.group[data-variant="floating"] .group-data-\[variant\=floating\]\:shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.group[data-collapsible="offcanvas"] .group-data-\[collapsible\=offcanvas\]\:after\:left-full::after {
  content: var(--tw-content);
  left: 100%;
}
.group[data-collapsible="offcanvas"] .hover\:group-data-\[collapsible\=offcanvas\]\:bg-sidebar:hover {
  background-color: hsl(var(--sidebar-background));
}
.peer\/menu-button[data-size="default"] ~ .peer-data-\[size\=default\]\/menu-button\:top-1\.5 {
  top: 0.375rem;
}
.peer\/menu-button[data-size="lg"] ~ .peer-data-\[size\=lg\]\/menu-button\:top-2\.5 {
  top: 0.625rem;
}
.peer\/menu-button[data-size="sm"] ~ .peer-data-\[size\=sm\]\/menu-button\:top-1 {
  top: 0.25rem;
}
.peer\/menu-button[data-active="true"] ~ .peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground {
  color: hsl(var(--sidebar-accent-foreground));
}
@media (prefers-reduced-motion: reduce) {

  .motion-reduce\:animate-none {
    animation: none;
  }
}
.dark\:border-destructive:is(.dark *) {
  border-color: hsl(var(--destructive));
}
@media (max-width: 1100px) {

  .max-\[1100px\]\:mt-6 {
    margin-top: 1.5rem;
  }

  .max-\[1100px\]\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .max-\[1100px\]\:overflow-hidden {
    overflow: hidden;
  }

  .max-\[1100px\]\:rounded-md {
    border-radius: calc(var(--radius) - 2px);
  }

  .max-\[1100px\]\:border {
    border-width: 1px;
  }

  .max-\[1100px\]\:border-l-0 {
    border-left-width: 0px;
  }

  .max-\[1100px\]\:border-t {
    border-top-width: 1px;
  }
}
@media not all and (min-width: 768px) {

  .max-md\:sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }

  .max-md\:-left-24 {
    left: -6rem;
  }

  .max-md\:-mx-4 {
    margin-left: -1rem;
    margin-right: -1rem;
  }

  .max-md\:\!mb-0 {
    margin-bottom: 0px !important;
  }

  .max-md\:\!mt-0 {
    margin-top: 0px !important;
  }

  .max-md\:block {
    display: block;
  }

  .max-md\:\!flex {
    display: flex !important;
  }

  .max-md\:flex {
    display: flex;
  }

  .max-md\:hidden {
    display: none;
  }

  .max-md\:\!h-12 {
    height: 3rem !important;
  }

  .max-md\:h-10 {
    height: 2.5rem;
  }

  .max-md\:h-\[220px\] {
    height: 220px;
  }

  .max-md\:h-dvh {
    height: 100dvh;
  }

  .max-md\:h-full {
    height: 100%;
  }

  .max-md\:max-h-none {
    max-height: none;
  }

  .max-md\:\!min-h-0 {
    min-height: 0px !important;
  }

  .max-md\:min-h-0 {
    min-height: 0px;
  }

  .max-md\:min-h-\[160px\] {
    min-height: 160px;
  }

  .max-md\:min-h-\[64px\] {
    min-height: 64px;
  }

  .max-md\:\!w-\[min\(300px\2c 86vw\)\] {
    width: min(300px, 86vw) !important;
  }

  .max-md\:w-10 {
    width: 2.5rem;
  }

  .max-md\:w-\[110px\] {
    width: 110px;
  }

  .max-md\:w-\[130px\] {
    width: 130px;
  }

  .max-md\:w-auto {
    width: auto;
  }

  .max-md\:w-full {
    width: 100%;
  }

  .max-md\:min-w-\[45\%\] {
    min-width: 45%;
  }

  .max-md\:max-w-full {
    max-width: 100%;
  }

  .max-md\:max-w-none {
    max-width: none;
  }

  .max-md\:flex-1 {
    flex: 1 1 0%;
  }

  .max-md\:flex-none {
    flex: none;
  }

  .max-md\:basis-full {
    flex-basis: 100%;
  }

  .max-md\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .max-md\:flex-row {
    flex-direction: row;
  }

  .max-md\:\!items-center {
    align-items: center !important;
  }

  .max-md\:\!justify-between {
    justify-content: space-between !important;
  }

  .max-md\:gap-1 {
    gap: 0.25rem;
  }

  .max-md\:gap-2 {
    gap: 0.5rem;
  }

  .max-md\:overflow-x-auto {
    overflow-x: auto;
  }

  .max-md\:\!rounded-none {
    border-radius: 0px !important;
  }

  .max-md\:rounded-none {
    border-radius: 0px;
  }

  .max-md\:border-0 {
    border-width: 0px;
  }

  .max-md\:\!border-r {
    border-right-width: 1px !important;
  }

  .max-md\:border-b {
    border-bottom-width: 1px;
  }

  .max-md\:border-t-0 {
    border-top-width: 0px;
  }

  .max-md\:\!border-sidebar-border {
    border-color: hsl(var(--sidebar-border)) !important;
  }

  .max-md\:\!bg-sidebar {
    background-color: hsl(var(--sidebar-background)) !important;
  }

  .max-md\:p-0 {
    padding: 0px;
  }

  .max-md\:p-4 {
    padding: 1rem;
  }

  .max-md\:\!px-1 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  .max-md\:\!px-2 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .max-md\:\!py-0 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

  .max-md\:px-3 {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .max-md\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .max-md\:py-2 {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  .max-md\:py-6 {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .max-md\:\!pb-4 {
    padding-bottom: 1rem !important;
  }

  .max-md\:\!pt-0 {
    padding-top: 0px !important;
  }

  .max-md\:pb-\[max\(16px\2c env\(safe-area-inset-bottom\)\)\] {
    padding-bottom: max(16px, env(safe-area-inset-bottom));
  }

  .max-md\:pl-2\.5 {
    padding-left: 0.625rem;
  }

  .max-md\:pl-4 {
    padding-left: 1rem;
  }

  .max-md\:pr-2 {
    padding-right: 0.5rem;
  }

  .max-md\:pt-3 {
    padding-top: 0.75rem;
  }

  .max-md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .max-md\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .max-md\:opacity-100 {
    opacity: 1;
  }
}
@media not all and (min-width: 640px) {

  .max-sm\:flex-col {
    flex-direction: column;
  }

  .max-sm\:flex-wrap {
    flex-wrap: wrap;
  }
}
@media (max-width: 639px) {

  .max-\[639px\]\:max-w-full {
    max-width: 100%;
  }

  .max-\[639px\]\:basis-full {
    flex-basis: 100%;
  }

  .max-\[639px\]\:flex-wrap {
    flex-wrap: wrap;
  }
}
@media (min-width: 640px) {

  .sm\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .sm\:col-start-auto {
    grid-column-start: auto;
  }

  .sm\:mx-0 {
    margin-left: 0px;
    margin-right: 0px;
  }

  .sm\:mx-6 {
    margin-left: 1.5rem;
    margin-right: 1.5rem;
  }

  .sm\:mx-auto {
    margin-left: auto;
    margin-right: auto;
  }

  .sm\:ml-2 {
    margin-left: 0.5rem;
  }

  .sm\:mr-3 {
    margin-right: 0.75rem;
  }

  .sm\:mr-8 {
    margin-right: 2rem;
  }

  .sm\:mt-4 {
    margin-top: 1rem;
  }

  .sm\:inline {
    display: inline;
  }

  .sm\:flex {
    display: flex;
  }

  .sm\:table-cell {
    display: table-cell;
  }

  .sm\:hidden {
    display: none;
  }

  .sm\:h-10 {
    height: 2.5rem;
  }

  .sm\:h-5 {
    height: 1.25rem;
  }

  .sm\:max-h-\[90vh\] {
    max-height: 90vh;
  }

  .sm\:min-h-0 {
    min-height: 0px;
  }

  .sm\:w-10 {
    width: 2.5rem;
  }

  .sm\:w-5 {
    width: 1.25rem;
  }

  .sm\:w-56 {
    width: 14rem;
  }

  .sm\:w-64 {
    width: 16rem;
  }

  .sm\:w-\[180px\] {
    width: 180px;
  }

  .sm\:w-auto {
    width: auto;
  }

  .sm\:w-full {
    width: 100%;
  }

  .sm\:max-w-2xl {
    max-width: 42rem;
  }

  .sm\:max-w-4xl {
    max-width: 56rem;
  }

  .sm\:max-w-lg {
    max-width: 32rem;
  }

  .sm\:max-w-md {
    max-width: 28rem;
  }

  .sm\:max-w-sm {
    max-width: 24rem;
  }

  .sm\:max-w-xl {
    max-width: 36rem;
  }

  .sm\:flex-initial {
    flex: 0 1 auto;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sm\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .sm\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sm\:grid-cols-\[2rem_minmax\(0\2c 1fr\)_auto\] {
    grid-template-columns: 2rem minmax(0,1fr) auto;
  }

  .sm\:grid-cols-\[repeat\(auto-fill\2c minmax\(230px\2c 1fr\)\)\] {
    grid-template-columns: repeat(auto-fill,minmax(230px,1fr));
  }

  .sm\:flex-row {
    flex-direction: row;
  }

  .sm\:items-center {
    align-items: center;
  }

  .sm\:justify-end {
    justify-content: flex-end;
  }

  .sm\:justify-between {
    justify-content: space-between;
  }

  .sm\:gap-0 {
    gap: 0px;
  }

  .sm\:gap-2 {
    gap: 0.5rem;
  }

  .sm\:gap-3 {
    gap: 0.75rem;
  }

  .sm\:gap-4 {
    gap: 1rem;
  }

  .sm\:gap-6 {
    gap: 1.5rem;
  }

  .sm\:space-x-2 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-x-reverse: 0;
    margin-right: calc(0.5rem * var(--tw-space-x-reverse));
    margin-left: calc(0.5rem * calc(1 - var(--tw-space-x-reverse)));
  }

  .sm\:space-y-6 > :not([hidden]) ~ :not([hidden]) {
    --tw-space-y-reverse: 0;
    margin-top: calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));
    margin-bottom: calc(1.5rem * var(--tw-space-y-reverse));
  }

  .sm\:justify-self-end {
    justify-self: end;
  }

  .sm\:rounded-lg {
    border-radius: var(--radius);
  }

  .sm\:p-5 {
    padding: 1.25rem;
  }

  .sm\:p-6 {
    padding: 1.5rem;
  }

  .sm\:px-0 {
    padding-left: 0px;
    padding-right: 0px;
  }

  .sm\:px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .sm\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .sm\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .sm\:py-4 {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .sm\:text-left {
    text-align: left;
  }

  .sm\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .sm\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .sm\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .sm\:text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .sm\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .min-\[640px\]\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 768px) {

  .md\:\!sticky {
    position: sticky !important;
  }

  .md\:\!top-0 {
    top: 0px !important;
  }

  .md\:\!z-10 {
    z-index: 10 !important;
  }

  .md\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .md\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .md\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .md\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .md\:col-span-5 {
    grid-column: span 5 / span 5;
  }

  .md\:col-span-6 {
    grid-column: span 6 / span 6;
  }

  .md\:\!m-0 {
    margin: 0px !important;
  }

  .md\:\!mb-0 {
    margin-bottom: 0px !important;
  }

  .md\:\!mt-0 {
    margin-top: 0px !important;
  }

  .md\:block {
    display: block;
  }

  .md\:flex {
    display: flex;
  }

  .md\:table-cell {
    display: table-cell;
  }

  .md\:grid {
    display: grid;
  }

  .md\:hidden {
    display: none;
  }

  .md\:\!h-12 {
    height: 3rem !important;
  }

  .md\:\!h-\[100dvh\] {
    height: 100dvh !important;
  }

  .md\:h-36 {
    height: 9rem;
  }

  .md\:\!min-h-0 {
    min-height: 0px !important;
  }

  .md\:min-h-\[calc\(100dvh-160px\)\] {
    min-height: calc(100dvh - 160px);
  }

  .md\:min-h-\[calc\(100vh-96px\)\] {
    min-height: calc(100vh - 96px);
  }

  .md\:\!w-\[360px\] {
    width: 360px !important;
  }

  .md\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .md\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .md\:grid-cols-\[5fr_6fr\] {
    grid-template-columns: 5fr 6fr;
  }

  .md\:grid-cols-\[minmax\(0\2c 1fr\)_auto\] {
    grid-template-columns: minmax(0,1fr) auto;
  }

  .md\:grid-cols-\[minmax\(0\2c 1fr\)_minmax\(0\2c 1fr\)\] {
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  }

  .md\:grid-cols-\[repeat\(auto-fill\2c minmax\(200px\2c 1fr\)\)\] {
    grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  }

  .md\:grid-cols-\[repeat\(auto-fill\2c minmax\(220px\2c 1fr\)\)\] {
    grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:items-center {
    align-items: center;
  }

  .md\:justify-end {
    justify-content: flex-end;
  }

  .md\:gap-4 {
    gap: 1rem;
  }

  .md\:\!rounded-none {
    border-radius: 0px !important;
  }

  .md\:\!border-0 {
    border-width: 0px !important;
  }

  .md\:\!border-l {
    border-left-width: 1px !important;
  }

  .md\:border-r {
    border-right-width: 1px;
  }

  .md\:\!border-solid {
    border-style: solid !important;
  }

  .md\:\!border-border {
    border-color: hsl(var(--border)) !important;
  }

  .md\:\!bg-sidebar {
    background-color: hsl(var(--sidebar-background)) !important;
  }

  .md\:p-12 {
    padding: 3rem;
  }

  .md\:\!px-1 {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  .md\:\!py-0 {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
  }

  .md\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .md\:px-6 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .md\:\!pt-0 {
    padding-top: 0px !important;
  }

  .md\:pt-14 {
    padding-top: 3.5rem;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .md\:text-\[72px\] {
    font-size: 72px;
  }

  .md\:opacity-0 {
    opacity: 0;
  }

  .md\:\!shadow-none {
    --tw-shadow: 0 0 #0000 !important;
    --tw-shadow-colored: 0 0 #0000 !important;
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
  }

  .md\:after\:hidden::after {
    content: var(--tw-content);
    display: none;
  }

  .group:focus-within .md\:group-focus-within\:opacity-100 {
    opacity: 1;
  }

  .group:hover .md\:group-hover\:opacity-100 {
    opacity: 1;
  }

  .peer[data-variant="inset"] ~ .md\:peer-data-\[variant\=inset\]\:m-2 {
    margin: 0.5rem;
  }

  .peer[data-variant="inset"] ~ .md\:peer-data-\[variant\=inset\]\:ml-0 {
    margin-left: 0px;
  }

  .peer[data-variant="inset"][data-state="collapsed"] ~ .md\:peer-data-\[variant\=inset\]\:peer-data-\[state\=collapsed\]\:ml-2 {
    margin-left: 0.5rem;
  }

  .peer[data-variant="inset"] ~ .md\:peer-data-\[variant\=inset\]\:rounded-xl {
    border-radius: 0.75rem;
  }

  .peer[data-variant="inset"] ~ .md\:peer-data-\[variant\=inset\]\:shadow-sm {
    --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
    box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
  }
}
@media (min-width: 900px) {

  .min-\[900px\]\:columns-2 {
    -moz-columns: 2;
         columns: 2;
  }
}
@media (min-width: 1024px) {

  .lg\:static {
    position: static;
  }

  .lg\:sticky {
    position: sticky;
  }

  .lg\:top-24 {
    top: 6rem;
  }

  .lg\:order-1 {
    order: 1;
  }

  .lg\:order-2 {
    order: 2;
  }

  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }

  .lg\:col-span-10 {
    grid-column: span 10 / span 10;
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:col-span-3 {
    grid-column: span 3 / span 3;
  }

  .lg\:col-span-4 {
    grid-column: span 4 / span 4;
  }

  .lg\:col-span-7 {
    grid-column: span 7 / span 7;
  }

  .lg\:col-span-9 {
    grid-column: span 9 / span 9;
  }

  .lg\:mx-8 {
    margin-left: 2rem;
    margin-right: 2rem;
  }

  .lg\:block {
    display: block;
  }

  .lg\:table-cell {
    display: table-cell;
  }

  .lg\:grid {
    display: grid;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:h-8 {
    height: 2rem;
  }

  .lg\:translate-x-0 {
    --tw-translate-x: 0px;
    transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
  }

  .lg\:grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .lg\:grid-cols-\[1fr_1\.1fr\] {
    grid-template-columns: 1fr 1.1fr;
  }

  .lg\:grid-cols-\[1fr_480px\] {
    grid-template-columns: 1fr 480px;
  }

  .lg\:grid-cols-\[2fr_3fr\] {
    grid-template-columns: 2fr 3fr;
  }

  .lg\:grid-cols-\[minmax\(0\2c 1\.2fr\)_minmax\(0\2c 1fr\)\] {
    grid-template-columns: minmax(0,1.2fr) minmax(0,1fr);
  }

  .lg\:grid-cols-\[minmax\(0\2c 1\.5fr\)_minmax\(0\2c 1fr\)\] {
    grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  }

  .lg\:gap-20 {
    gap: 5rem;
  }

  .lg\:gap-24 {
    gap: 6rem;
  }

  .lg\:border-l {
    border-left-width: 1px;
  }

  .lg\:border-white\/10 {
    border-color: rgb(255 255 255 / 0.1);
  }

  .lg\:px-14 {
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }

  .lg\:px-16 {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  .lg\:px-32 {
    padding-left: 8rem;
    padding-right: 8rem;
  }

  .lg\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  .lg\:py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .lg\:py-24 {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }

  .lg\:pt-2 {
    padding-top: 0.5rem;
  }

  .lg\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .lg\:text-\[56px\] {
    font-size: 56px;
  }

  .lg\:text-\[62px\] {
    font-size: 62px;
  }
}
@media (min-width: 1100px) {

  .min-\[1100px\]\:fixed {
    position: fixed;
  }

  .min-\[1100px\]\:sticky {
    position: sticky;
  }

  .min-\[1100px\]\:bottom-0 {
    bottom: 0px;
  }

  .min-\[1100px\]\:right-0 {
    right: 0px;
  }

  .min-\[1100px\]\:top-12 {
    top: 3rem;
  }

  .min-\[1100px\]\:top-4 {
    top: 1rem;
  }

  .min-\[1100px\]\:top-8 {
    top: 2rem;
  }

  .min-\[1100px\]\:z-20 {
    z-index: 20;
  }

  .min-\[1100px\]\:line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .min-\[1100px\]\:hidden {
    display: none;
  }

  .min-\[1100px\]\:h-\[72px\] {
    height: 72px;
  }

  .min-\[1100px\]\:h-\[calc\(100dvh-96px\)\] {
    height: calc(100dvh - 96px);
  }

  .min-\[1100px\]\:w-\[360px\] {
    width: 360px;
  }

  .min-\[1100px\]\:grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .min-\[1100px\]\:grid-cols-\[280px_minmax\(0\2c 1fr\)\] {
    grid-template-columns: 280px minmax(0,1fr);
  }

  .min-\[1100px\]\:grid-cols-\[minmax\(0\2c 1fr\)_300px\] {
    grid-template-columns: minmax(0,1fr) 300px;
  }

  .min-\[1100px\]\:grid-cols-\[minmax\(0\2c 1fr\)_320px\] {
    grid-template-columns: minmax(0,1fr) 320px;
  }

  .min-\[1100px\]\:grid-cols-\[minmax\(0\2c 1fr\)_360px\] {
    grid-template-columns: minmax(0,1fr) 360px;
  }

  .min-\[1100px\]\:border-l {
    border-left-width: 1px;
  }

  .min-\[1100px\]\:pr-\[360px\] {
    padding-right: 360px;
  }
}
@media (min-width: 1280px) {

  .xl\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .xl\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .min-\[1280px\]\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1536px) {

  .\32xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .\32xl\:grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 1600px) {

  .min-\[1600px\]\:columns-3 {
    -moz-columns: 3;
         columns: 3;
  }
}
.\[\&\:has\(\[data-hide-create\=\'1\'\]\)_\[data-create\]\]\:hidden:has([data-hide-create='1']) [data-create] {
  display: none;
}
.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]) {
  padding-right: 0px;
}
.\[\&\>\*\+\*\]\:border-t>*+* {
  border-top-width: 1px;
}
.\[\&\>\*\+\*\]\:border-border>*+* {
  border-color: hsl(var(--border));
}
.\[\&\>\*\:not\(\:last-child\)\]\:hidden>*:not(:last-child) {
  display: none;
}
.\[\&\>\*\]\:truncate>* {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.\[\&\>\*\]\:border-t>* {
  border-top-width: 1px;
}
.\[\&\>\*\]\:border-border>* {
  border-color: hsl(var(--border));
}
.\[\&\>\*\]\:py-2>* {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.\[\&\>\*\]\:\!text-foreground>* {
  color: hsl(var(--foreground)) !important;
}
.\[\&\>button\[data-active\]\]\:bg-background>button[data-active] {
  background-color: hsl(var(--background));
}
.\[\&\>button\[data-active\]\]\:text-foreground>button[data-active] {
  color: hsl(var(--foreground));
}
.\[\&\>button\]\:right-4>button {
  right: 1rem;
}
.\[\&\>button\]\:top-4>button {
  top: 1rem;
}
.\[\&\>button\]\:hidden>button {
  display: none;
}
.\[\&\>button\]\:h-7>button {
  height: 1.75rem;
}
.\[\&\>button\]\:rounded-md>button {
  border-radius: calc(var(--radius) - 2px);
}
.\[\&\>button\]\:px-3>button {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
.\[\&\>button\]\:text-sm>button {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.\[\&\>button\]\:font-medium>button {
  font-weight: 500;
}
.\[\&\>button\]\:text-white\/70>button {
  color: rgb(255 255 255 / 0.7);
}
.\[\&\>button\]\:hover\:text-white:hover>button {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
.\[\&\>div\]\:bg-amber-500>div {
  --tw-bg-opacity: 1;
  background-color: rgb(245 158 11 / var(--tw-bg-opacity, 1));
}
.\[\&\>div\]\:bg-emerald-500>div {
  --tw-bg-opacity: 1;
  background-color: rgb(16 185 129 / var(--tw-bg-opacity, 1));
}
.\[\&\>div\]\:bg-red-500>div {
  --tw-bg-opacity: 1;
  background-color: rgb(239 68 68 / var(--tw-bg-opacity, 1));
}
.\[\&\>section\]\:\!mt-0>section {
  margin-top: 0px !important;
}
.\[\&\>section\]\:mb-6>section {
  margin-bottom: 1.5rem;
}
.\[\&\>section\]\:break-inside-avoid>section {
  -moz-column-break-inside: avoid;
       break-inside: avoid;
}
.\[\&\>span\:first-child\]\:text-xs>span:first-child {
  font-size: 0.75rem;
  line-height: 1rem;
}
.\[\&\>span\:first-child\]\:font-medium>span:first-child {
  font-weight: 500;
}
.\[\&\>span\:first-child\]\:text-muted-foreground>span:first-child {
  color: hsl(var(--muted-foreground));
}
.\[\&\>span\:last-child\]\:truncate>span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.\[\&\>span\]\:line-clamp-1>span {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.\[\&\>span\]\:h-4>span {
  height: 1rem;
}
.\[\&\>span\]\:w-4>span {
  width: 1rem;
}
.\[\&\>span\]\:shadow-none>span {
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
.data-\[state\=checked\]\:\[\&\>span\]\:translate-x-4>span[data-state="checked"] {
  --tw-translate-x: 1rem;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div {
  --tw-translate-y: -3px;
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
.\[\&\>svg\]\:absolute>svg {
  position: absolute;
}
.\[\&\>svg\]\:left-4>svg {
  left: 1rem;
}
.\[\&\>svg\]\:top-4>svg {
  top: 1rem;
}
.\[\&\>svg\]\:size-4>svg {
  width: 1rem;
  height: 1rem;
}
.\[\&\>svg\]\:shrink-0>svg {
  flex-shrink: 0;
}
.\[\&\>svg\]\:text-destructive>svg {
  color: hsl(var(--destructive));
}
.\[\&\>svg\]\:text-emerald-600>svg {
  --tw-text-opacity: 1;
  color: rgb(5 150 105 / var(--tw-text-opacity, 1));
}
.\[\&\>svg\]\:text-foreground>svg {
  color: hsl(var(--foreground));
}
.\[\&\>svg\]\:text-sidebar-accent-foreground>svg {
  color: hsl(var(--sidebar-accent-foreground));
}
.\[\&\>svg\]\:text-yellow-600>svg {
  --tw-text-opacity: 1;
  color: rgb(202 138 4 / var(--tw-text-opacity, 1));
}
.\[\&\>svg\~\*\]\:pl-7>svg~* {
  padding-left: 1.75rem;
}
.\[\&\>td\]\:px-4>td {
  padding-left: 1rem;
  padding-right: 1rem;
}
.\[\&\>td\]\:py-2\.5>td {
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
}
.\[\&\>th\]\:px-4>th {
  padding-left: 1rem;
  padding-right: 1rem;
}
.\[\&\>th\]\:pb-2\.5>th {
  padding-bottom: 0.625rem;
}
.\[\&\>th\]\:pt-3\.5>th {
  padding-top: 0.875rem;
}
.\[\&\>th\]\:font-medium>th {
  font-weight: 500;
}
.\[\&\>tr\]\:last\:border-b-0:last-child>tr {
  border-bottom-width: 0px;
}
.\[\&\[data-detail-mode\]_\.doska-integrations-grid\]\:max-w-\[760px\][data-detail-mode] .doska-integrations-grid {
  max-width: 760px;
}
.\[\&\[data-detail-mode\]_\.doska-integrations-grid\]\:\!grid-cols-1[data-detail-mode] .doska-integrations-grid {
  grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
}
.\[\&\[data-detail-mode\]_\.doska-integrations-group-block\:not\(\:has\(\[data-open\]\)\)\]\:\!hidden[data-detail-mode] .doska-integrations-group-block:not(:has([data-open])) {
  display: none !important;
}
.\[\&\[data-detail-mode\]_\.doska-settings-card\:not\(\[data-open\]\)\]\:\!hidden[data-detail-mode] .doska-settings-card:not([data-open]) {
  display: none !important;
}
.\[\&\[data-detail-mode\]_\[data-group-label\]\]\:\!hidden[data-detail-mode] [data-group-label] {
  display: none !important;
}
.\[\&_\.doska-ai-chat\]\:\!static .doska-ai-chat {
  position: static !important;
}
.\[\&_\.doska-ai-chat\]\:\!m-0 .doska-ai-chat {
  margin: 0px !important;
}
.\[\&_\.doska-ai-chat\]\:\!h-full .doska-ai-chat {
  height: 100% !important;
}
.\[\&_\.doska-ai-chat\]\:\!w-full .doska-ai-chat {
  width: 100% !important;
}
.\[\&_\.doska-ai-chat\]\:\!max-w-none .doska-ai-chat {
  max-width: none !important;
}
.\[\&_\.doska-ai-chat\]\:\!rounded-md .doska-ai-chat {
  border-radius: calc(var(--radius) - 2px) !important;
}
.\[\&_\.doska-ai-chat\]\:\!rounded-none .doska-ai-chat {
  border-radius: 0px !important;
}
.\[\&_\.doska-ai-chat\]\:\!border .doska-ai-chat {
  border-width: 1px !important;
}
.\[\&_\.doska-ai-chat\]\:\!border-0 .doska-ai-chat {
  border-width: 0px !important;
}
.\[\&_\.doska-ai-chat\]\:\!border-solid .doska-ai-chat {
  border-style: solid !important;
}
.\[\&_\.doska-ai-chat\]\:\!border-border .doska-ai-chat {
  border-color: hsl(var(--border)) !important;
}
.\[\&_\.doska-ai-chat\]\:\!shadow-none .doska-ai-chat {
  --tw-shadow: 0 0 #0000 !important;
  --tw-shadow-colored: 0 0 #0000 !important;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow) !important;
}
@media (min-width: 768px) {

  .md\:\[\&_\.doska-collection-folder-chip\[data-active\]\]\:\!font-medium .doska-collection-folder-chip[data-active] {
    font-weight: 500 !important;
  }
}
.\[\&_p\]\:leading-relaxed p {
  line-height: 1.625;
}
.\[\&_svg\]\:pointer-events-none svg {
  pointer-events: none;
}
.\[\&_svg\]\:mt-0\.5 svg {
  margin-top: 0.125rem;
}
.\[\&_svg\]\:\!size-3\.5 svg {
  width: 0.875rem !important;
  height: 0.875rem !important;
}
.\[\&_svg\]\:size-3 svg {
  width: 0.75rem;
  height: 0.75rem;
}
.\[\&_svg\]\:size-3\.5 svg {
  width: 0.875rem;
  height: 0.875rem;
}
.\[\&_svg\]\:size-4 svg {
  width: 1rem;
  height: 1rem;
}
.\[\&_svg\]\:size-5 svg {
  width: 1.25rem;
  height: 1.25rem;
}
.\[\&_svg\]\:size-6 svg {
  width: 1.5rem;
  height: 1.5rem;
}
.\[\&_svg\]\:size-\[18px\] svg {
  width: 18px;
  height: 18px;
}
.\[\&_svg\]\:size-\[22px\] svg {
  width: 22px;
  height: 22px;
}
.\[\&_svg\]\:flex-none svg {
  flex: none;
}
.\[\&_svg\]\:shrink-0 svg {
  flex-shrink: 0;
}
.\[\&_svg\]\:text-muted-foreground svg {
  color: hsl(var(--muted-foreground));
}
.\[\&_tr\:last-child\]\:border-0 tr:last-child {
  border-width: 0px;
}
.\[\&_tr\]\:border-b tr {
  border-bottom-width: 1px;
}
@media(hover:none) {

  .\[\@media\(hover\:none\)\]\:grid {
    display: grid;
  }

  .\[\@media\(hover\:none\)\]\:opacity-100 {
    opacity: 1;
  }
}
[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2 {
  right: -0.5rem;
}
[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize {
  cursor: e-resize;
}
[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2 {
  left: -0.5rem;
}
[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize {
  cursor: w-resize;
}
/* Geist fonts are self-hosted from the Vercel-authored OFL variable font packages imported in main.tsx. */

.doska-root {
  /* Compatibility aliases for domain layout styles. Source colors are owned by Geist tokens. */
  --doska-section-bg: hsl(var(--background));
  --doska-canvas: hsl(var(--background));
  --doska-surface: hsl(var(--card));
  --doska-surface-raised: hsl(var(--card));
  --doska-hairline: hsl(var(--border));
  --doska-hairline-strong: hsl(var(--border-strong));
  --doska-hover: hsl(var(--accent) / 0.5);
  --doska-selected: hsl(var(--accent));
  --doska-text: hsl(var(--foreground));
  --doska-text-muted: hsl(var(--muted-foreground));
  --doska-accent: hsl(var(--primary));
  --doska-accent-soft: hsl(var(--primary) / 0.1);
  --doska-accent-ink: hsl(var(--primary));
  --doska-accent-contrast: hsl(var(--primary-foreground));
  --doska-accent-brand: hsl(var(--primary));
  --doska-danger: var(--doska-destructive);
  --doska-success: hsl(var(--success));
  --doska-avatar-gray: hsl(var(--muted-foreground));
  /* RGB triplet (no rgb()/rgba() wrapper) so call sites compose their own alpha via
     rgba(var(--doska-glass-rgb), X) for frosted-glass floating panels (popovers, the annotate
     toolbar, free text annotations) — the alpha varies per panel, only the tint needs theming. */
  --doska-glass-rgb: 27, 30, 36;

  /* Data-category colors for canvas objects; they do not define the interface theme. */
  --doska-glow-location: hsl(162 45% 58%);
  --doska-glow-color: hsl(32 60% 62%);
  --doska-glow-look: hsl(342 50% 68%);
  --doska-glow-pose: hsl(252 48% 70%);
  --doska-glow-default: hsl(252 16% 58%);

  /* Сетка отступов 8pt — per direct request («перейдём на 8px систему отступов и размерностей,
     шаги 8, 16, 24, 32… и всё выровним по ней строго»). Токены объявлены здесь, чтобы новые
     правила брали шаг отсюда, а не подбирали числа на глаз. Радиусы оставлены как есть: 16 уже
     кратно 8, а 10 и 4 — это скругления мелких элементов, где шаг сетки не про них. */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-5: 40px;
  --s-6: 48px;
  /* Ширина РАСКРЫТОЙ левой панели. Одно число на три места: сама панель, левый край карточки
     содержимого (панель fixed и из потока выпала) и отступ строки поиска. До появления переменной
     это число было зашито трижды, и правка в одном месте молча роняла раскладку в двух других
     (см. комментарии там же). 240, а не 280 — per direct request «левый рейл в раскрытом виде
     можно меньше по ширине»: дерево папок давно уехало в соседнюю колонку, и здесь остались
     короткие названия разделов, которым 280 не нужны. Затем 240 → 216 по повторной просьбе
     «левом рейле в раскрытом виде сделай меньше по ширине», 216 → 248 по обратной просьбе «рейл
     панель можно пошире в развернутом виде», и снова 248 → 224 по повторной просьбе «рейл в
     раскрытом виде можно уменьшить ширину». */
  --doska-pane-w: 224px;
  /* Geist material radii: 6px for compact controls and 12px for larger surfaces. */
  --doska-radius-sm: 6px;
  --doska-radius-md: 6px;
  --doska-radius-lg: 12px;
  --doska-space: 4px;

  --doska-font-ui: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  /* Geist Variable is shared by body text and headings; display remains a separate token for hierarchy. */
  --doska-font-display: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --doska-font-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --doska-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: fixed;
  inset: 0;
  background: var(--doska-canvas);
  color: var(--doska-text);
  font-family: var(--doska-font-ui);
  /* Geist body text: 14px with a 1.5 line height. */
  font-size: 14px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  isolation: isolate;
}

/* Light theme — same token set, just redefined. Higher specificity than the bare `.doska-root`
   block above wins regardless of source order, so this only needs to override what actually
   differs (glow/radius/font/ease tokens stay shared). Toggled via ProfileMenu's TOGGLE_THEME
   action, which sets `theme` on the reducer's AppState and is mirrored onto this element's own
   `data-theme` attribute in DoskaPage.tsx (not a global `<html>` attribute — Doska is one feature
   inside the larger Brana app, which has its own separate light design system). */
.doska-root[data-theme='light'] {
  --doska-canvas: hsl(var(--background));
  --doska-surface: hsl(var(--card));
  --doska-surface-raised: hsl(var(--card));
  --doska-section-panel: hsl(var(--background));
  --doska-hover: hsl(var(--accent) / 0.5);
  --doska-selected: hsl(var(--accent));
  --doska-hairline: hsl(var(--border));
  --doska-hairline-strong: hsl(var(--border-strong));
  --doska-text: hsl(var(--foreground));
  --doska-text-muted: hsl(var(--muted-foreground));
  --doska-accent: hsl(var(--primary));
  --doska-accent-soft: hsl(var(--primary) / 0.1);
  --doska-accent-ink: hsl(var(--primary));
  --doska-accent-contrast: hsl(var(--primary-foreground));
  --doska-accent-brand: hsl(var(--primary));
  --doska-danger: var(--doska-destructive);
  --doska-success: hsl(var(--success));
  --doska-glass-rgb: 255, 255, 255;
  --doska-avatar-gray: hsl(var(--muted-foreground));
}

.doska-root * {
  box-sizing: border-box;
}

.doska-root ::-moz-selection {
  background: var(--doska-accent-soft);
}

.doska-root ::selection {
  background: var(--doska-accent-soft);
}

/* :where() keeps the reset weak so Tailwind utilities and shared UI primitives define appearance. */
:where(.doska-root) button {
  font-family: inherit;
  color: inherit;
  background: none;
  /* border-width, а не border: none — иначе гасится border-style: solid из Tailwind, и класс border не рисует рамку. */
  border-width: 0;
  cursor: pointer;
}
.doska-root button:focus { outline: none; }
/* No border-radius override here (was --doska-radius-sm, a flat 4px) — per direct report
   ("поправить выравнивание по табам"), confirmed live: forcing every focused button's outline to
   a sharp 4px corner regardless of its OWN shape drew a boxy ring around round/pill buttons (e.g.
   the "Все заметки" tab), reading as broken/misaligned rather than a focus ring. Modern browsers
   already curve `outline` to match whatever border-radius the element itself has, so leaving this
   unset lets a pill button get a pill-shaped ring, a square one a square ring — no override needed
   at all. */
.doska-root button:focus-visible {
  outline: 1.5px solid var(--doska-accent);
  outline-offset: 2px;
}
/* Аудит по Web Interface Guidelines (2026-09-20): у полей был снят фокус без замены
   (`outline: none`), и поля без собственного :focus-стиля теряли фокус вовсе. Кольцо в 1px цветом
   акцента с отрицательным смещением ложится ровно на рамку поля: у полей, которые уже красят рамку
   акцентом при фокусе, вид не меняется, у остальных фокус наконец виден. */
.doska-root input:focus-visible,
.doska-root textarea:focus-visible,
.doska-root select:focus-visible {
  outline: 1px solid var(--doska-accent);
  outline-offset: -1px;
}
/* Задержка двойного тапа на телефоне снимается со всех кнопок и ссылок разом (аудит, пункт 1). */
.doska-root button,
.doska-root a,
.doska-root [role="button"],
.doska-root input,
.doska-root select,
.doska-root textarea,
.doska-root label { touch-action: manipulation; }

.doska-display {
  font-family: var(--doska-font-display);
  /* Geist Variable provides a native 600 weight. */
  font-weight: 600;
  letter-spacing: -0.02em;
}

.doska-mono {
  font-family: var(--doska-font-mono);
  font-variant-numeric: tabular-nums;
}

.doska-scrollbar {
  scrollbar-width: thin;
  scrollbar-color: var(--doska-hairline-strong) transparent;
}
.doska-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.doska-scrollbar::-webkit-scrollbar-thumb { background: var(--doska-hairline-strong); border-radius: var(--doska-radius-sm); }
.doska-scrollbar::-webkit-scrollbar-track { background: transparent; }

@media (prefers-reduced-motion: reduce) {
  .doska-root * {
    animation-duration: 0.001ms !important;
    /* Бесконечные анимации (спиннеры, пульсация FAB) при микродлительности не исчезают, а
       мерцают: один проход и стоп (аудит, пункт 7). */
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- canvas ---------- */

.doska-canvas-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Plain drag now rubber-band-selects by default (Space+drag pans instead), so the resting
     cursor shouldn't promise a grab-to-pan gesture anymore — only while Space is actually held. */
  cursor: default;
  touch-action: none;
}
.doska-canvas-viewport[data-space-held] { cursor: grab; }
.doska-canvas-viewport[data-space-held]:active { cursor: grabbing; }
/* Dot grid, per direct reference (Miro/FigJam-style infinite canvas) — background-size/-position
   are set inline in Canvas.tsx, recomputed from the live pan/zoom transform so the dots read as
   attached to canvas space rather than the screen. A dedicated layer (not a background-image on
   .doska-canvas-viewport itself, which this used to be) — per direct report ("вижу что при зуме
   меняться прозрачность и исчезает что есть на холсте и панель для заметок"): opacity on the
   VIEWPORT faded its own background AND every real child inside it (cards, toolbars, everything —
   CSS opacity always dims a whole subtree, not just an element's own background), so the intended
   "fade the dots out when zoomed way out" effect was quietly taking the entire board down with it.
   This layer only ever holds the dots and nothing else, so fading IT can't touch real content. */
.doska-canvas-dot-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--doska-hairline-strong) 1px, transparent 1px);
}

.doska-canvas-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  transform-origin: 0 0;
  will-change: transform;
  transition: filter 180ms var(--doska-ease);
}
.doska-canvas-content[data-drag-dim] {
  filter: brightness(0.6) blur(2px);
}

.doska-graph-edges {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: visible;
  pointer-events: none;
}
.doska-graph-edges line { transition: opacity 150ms var(--doska-ease); }

.doska-link-drag-path {
  stroke: var(--doska-accent);
  stroke-width: 1.5px;
  filter: none;
}

/* ---------- card ---------- */

.doska-card-root {
  touch-action: none;
  will-change: transform;
}

.doska-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--doska-radius-md);
  overflow: hidden;
  background: var(--doska-surface-raised);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px transparent;
  transition: box-shadow 140ms var(--doska-ease), transform 140ms var(--doska-ease);
}
.doska-card[data-type='location'],
.doska-card[data-type='item'],
.doska-card[data-type='shoot'],
.doska-card[data-type='embed'],
.doska-card[data-type='bookmark'] {
  box-shadow: inset 0 0 0 1.5px var(--card-glow, var(--doska-glow-default));
  opacity: 0.92;
}
/* Per direct report ("нужно показывать выделенный объект при клике что он активен... более явно
   с обводкой") — an INSET shadow sits right at the card's own edge, where it can get visually
   swallowed by whatever's in the photo right up against that border. A real outline sits clear of
   the card entirely, offset outward, so it reads as its own distinct ring regardless of what's
   underneath — plus a soft glow behind it for extra "this is the active one" emphasis. */
.doska-card[data-selected] {
  outline: 2.5px solid var(--doska-accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px rgba(0, 0, 0, 0.2);
}
.doska-card[data-highlighted] { box-shadow: inset 0 0 0 2px var(--doska-accent); }
.doska-card[data-drop-target] {
  box-shadow: inset 0 0 0 2px var(--doska-accent);
  transform: scale(1.03);
}
.doska-card[data-proposal='pending'] { box-shadow: inset 0 0 0 2px var(--doska-glow-color); }
.doska-card[data-proposal='approved'] { box-shadow: inset 0 0 0 2px var(--doska-glow-location); }

/* A card an unattended pipeline (Telegram) just dropped in, not yet looked at — dashed instead
   of solid so it visually reads as "not yet organized" rather than just another card. Clears the
   instant the user drags it (SET_POSITION in store.tsx clears sourcePending), not on a timer and
   not behind a confirm dialog — see doska pivot plan, trust/control step. */
.doska-card[data-source-pending] {
  box-shadow: none;
  outline: 1.5px dashed var(--doska-accent);
  outline-offset: -1.5px;
}
.doska-draft-badge {
  /* Top-right, not bottom-left — the media-plate caption (title/siteName) for bookmark/embed/file
     cards lives bottom-left (see .doska-plate--media .doska-plate-text below) and the two used to
     render on top of each other. */
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  padding: 3px 7px;
  border-radius: 6px;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}

.doska-card-media {
  position: absolute;
  inset: 0;
}
.doska-card-media img {
  width: 100%;
  height: 100%;
  /* contain, not cover — per direct report ("зарезал картинки при вставке"), sizeFor()'s own
     Math.max(140, ...) height floor (nodeSize.ts) means a wide/short image (a text-list
     screenshot, a banner) gets a box TALLER than its real aspect ratio, and cover would crop the
     sides off to fill it. contain never crops (worst case: a bit of letterboxing on an extreme
     aspect ratio) — visually identical to cover whenever the box already matches the image's own
     aspect, which is the common case since sizeFor derives height FROM that aspect to begin with. */
  -o-object-fit: contain;
     object-fit: contain;
  background: var(--doska-surface);
  display: block;
}
.doska-minimap { width: 100%; height: 100%; display: block; }

.doska-card-source-link {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 12px);
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15, 15, 18, 0.62);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doska-card-source-link svg { flex-shrink: 0; }
.doska-card-source-link:hover {
  background: rgba(15, 15, 18, 0.85);
  text-decoration: underline;
}

.doska-card-skeleton {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 20, 26, 0.72);
  backdrop-filter: blur(8px);
}
.doska-card-skeleton::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 50%, transparent 65%);
  background-size: 220% 100%;
  animation: doska-scan-sweep 1.7s linear infinite;
}
@keyframes doska-scan-sweep {
  from { background-position: 160% 0; }
  to { background-position: -60% 0; }
}
.doska-card-status {
  font-size: 11px;
  color: var(--doska-text-muted);
  letter-spacing: 0.02em;
  animation: doska-pulse 1.6s ease-in-out infinite;
}
@keyframes doska-pulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

.doska-card-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 100ms var(--doska-ease);
}
.doska-card-root:hover .doska-card-overlay { opacity: 1; transition-delay: 120ms; }

/* the link-creation handles — one small node per side of the card (top/right/bottom/left),
   sitting just OUTSIDE the card's own border (not overlapping its content), and completely
   invisible at rest — shown once the card is hovered OR selected (clicked), same as
   Figma/Miro's connection points (hover = transient peek, selected = stays visible so you don't
   have to keep the mouse hovering just to grab a handle). */
.doska-link-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--doska-accent-soft, var(--doska-surface));
  /* Just the accent ring now — per direct report ("слишком грязные тени при наведении, можно
     без теней"), the drop shadow + filter combo here read as muddy, especially at the 1.25x hover
     scale below. */
  box-shadow: inset 0 0 0 2px var(--doska-accent);
  opacity: 0;
  transition: opacity 140ms var(--doska-ease), background 150ms, transform 140ms var(--doska-ease);
  cursor: crosshair;
  z-index: 4;
  touch-action: none;
}
/* -28px = the dot's own half-width (8px) plus PORT_OUTSET (20px) — its CENTER ends up exactly
   PORT_OUTSET beyond the card, matching smoothConnectorPath's port math in utils/layout.ts so a
   connector's line lands precisely on this dot, not the card's border. Per direct report
   ("подальше от рамки не вплотную") — was sitting nearly flush against the edge. */
.doska-link-handle[data-side="right"] { top: 50%; right: -28px; transform: translateY(-50%); }
.doska-link-handle[data-side="left"] { top: 50%; left: -28px; transform: translateY(-50%); }
.doska-link-handle[data-side="top"] { left: 50%; top: -28px; transform: translateX(-50%); }
.doska-link-handle[data-side="bottom"] { left: 50%; bottom: -28px; transform: translateX(-50%); }
/* A note's handles are a CHILD of the sticky/text div (no overflow:hidden to escape, unlike
   .doska-card), rendered only while selected — the JSX conditional already gates visibility, so
   there's no hover/selected sibling rule to opt into here the way the card handles need. */
.doska-link-handle--note { opacity: 1; }
.doska-card-root:hover .doska-link-handle,
.doska-card[data-selected] ~ .doska-link-handle,
/* while a connector is being dragged, the card currently magnet-locked as the target lights up
   its own ports too — not just the generic "you could drop here" glow — so it's clear exactly
   where the line will attach the instant you release. */
.doska-card[data-drop-target] ~ .doska-link-handle { opacity: 1; }
.doska-link-handle:hover { background: var(--doska-accent); }
/* Per direct report ("она постоянно дергается когда навел", "еще проще нужно") — the old hover
   state played a discrete 4-keyframe "tug" (translate out + overshoot scale + settle), which
   restarts from 0% on every fresh mouseenter; a cursor sitting near the dot while the canvas
   itself moves under it (panning/zooming) re-triggers mouseenter/mouseleave rapidly, so the
   bounce kept restarting mid-flight instead of playing once — read as constant jitter. A plain
   transform transition instead just eases toward whatever the current hover state is, so rapid
   re-triggering looks like a small wobble, not a repeating bounce — simpler by construction, not
   just smaller numbers. Each pair keeps the base rule's own centering translate (Y for left/
   right, X for top/bottom) so the scale doesn't also drag the dot off its anchored position. */
.doska-link-handle[data-side="right"]:hover,
.doska-link-handle[data-side="left"]:hover { transform: translateY(-50%) scale(1.25); }
.doska-link-handle[data-side="top"]:hover,
.doska-link-handle[data-side="bottom"]:hover { transform: translateX(-50%) scale(1.25); }

/* Per-card AI bubble — hover-revealed like the link handles above, top-right corner. Opens a
   chat scoped to just this one card's content (see Card.tsx's onOpenAi / Canvas.tsx's single
   shared scope='node' AiChatPanel instance). */
.doska-node-ai-bubble {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  /* Hover-revealed, same as .doska-card-ai-edit-btn's own sibling treatment right below — per
     direct follow-up ("икнока ии видна только при наведении. а сейчас видна все время. поправить")
     reversing an earlier attempt at this that went the other way (opacity: 1 always) off a report
     that read as "should always show" but actually meant the opposite: this was ALWAYS meant to be
     hover-only, matching every other per-card overlay button (•••, resize handles, AI photo edit)
     — the always-on state just looked cluttered with every card's badge showing at once. */
  opacity: 0;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  transition: opacity 140ms var(--doska-ease), transform 140ms var(--doska-ease), box-shadow 140ms var(--doska-ease), filter 140ms var(--doska-ease);
  z-index: 6;
}
.doska-card-root:hover .doska-node-ai-bubble { opacity: 1; }
/* Flat --doska-accent-brand — same brand violet as every other AI bubble in the app (.doska-stash-card-ai-
   bubble/.doska-stash-ai-fab/.doska-ai-chat-avatar/etc, see each one's own comment), per direct
   follow-up ("смена цветов заливки также касается и этих баблов. приведи заливку к #4800f").
   Doubled selector — same `.doska-root button { background: none }` specificity trap documented
   elsewhere in this file. */
.doska-node-ai-bubble.doska-node-ai-bubble { background: var(--doska-accent-brand); }
/* color:#fff on the base rule above was ALSO losing to that same `.doska-root button { color:
   inherit }` trap (0,1,1 beating the base rule's 0,1,0) — the background half of this exact fix
   got doubled already, this half never did, so the icon kept inheriting a dark color from its
   card ancestor instead of actually turning white (confirmed live with a screenshot, "икнока все
   еще черная"). */
.doska-node-ai-bubble.doska-node-ai-bubble { color: #fff; }
.doska-node-ai-bubble:hover {
  transform: scale(1.12);
  filter: brightness(1.1);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24);
}

/* Per direct request ("нужно уметь менять размеры картинок если их добавил", later "тоже могу
   уыеличивать изображения через узлы") — 8-point resize (4 corners + 4 edges), photo cards only,
   same "small square on the selection box" convention as .doska-annotation-resize-handle. Hover-
   revealed like the AI-edit button, not always-on like the AI bubble — resizing is a less
   frequently reached-for action. */
.doska-card-resize-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: var(--doska-radius-sm);
  background: var(--doska-surface-raised);
  /* Ring only, no blur — same "муддy при кластеризации" fix as .doska-annotation-resize-handle. */
  box-shadow: 0 0 0 1px var(--doska-hairline-strong);
  opacity: 0;
  transition: opacity 140ms var(--doska-ease), background 140ms var(--doska-ease);
  z-index: 6;
}
.doska-card-root:hover .doska-card-resize-handle,
.doska-card[data-selected] ~ .doska-card-resize-handle { opacity: 1; }
.doska-card-resize-handle:hover { background: var(--doska-accent); }
.doska-card-resize-handle[data-handle='nw'] { top: -5px; left: -5px; cursor: nwse-resize; }
.doska-card-resize-handle[data-handle='n']  { top: -5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.doska-card-resize-handle[data-handle='ne'] { top: -5px; right: -5px; cursor: nesw-resize; }
.doska-card-resize-handle[data-handle='e']  { top: 50%; right: -5px; transform: translateY(-50%); cursor: ew-resize; }
.doska-card-resize-handle[data-handle='se'] { bottom: -5px; right: -5px; cursor: nwse-resize; }
.doska-card-resize-handle[data-handle='s']  { bottom: -5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.doska-card-resize-handle[data-handle='sw'] { bottom: -5px; left: -5px; cursor: nesw-resize; }
.doska-card-resize-handle[data-handle='w']  { top: 50%; left: -5px; transform: translateY(-50%); cursor: ew-resize; }

/* AI photo editing — mirrors .doska-node-ai-bubble exactly but top-LEFT, so the two hover-revealed
   corner buttons don't collide. */
.doska-card-ai-edit-wrap { position: absolute; top: -8px; left: -8px; z-index: 6; }
.doska-card-ai-edit-btn {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-accent);
  box-shadow: 0 0 0 1px var(--doska-hairline-strong);
  opacity: 0; transition: opacity 140ms var(--doska-ease), transform 140ms var(--doska-ease);
}
.doska-card-root:hover .doska-card-ai-edit-btn,
.doska-card[data-selected] ~ .doska-card-ai-edit-wrap .doska-card-ai-edit-btn { opacity: 1; }
.doska-card-ai-edit-btn:hover { background: var(--doska-accent); color: var(--doska-accent-contrast); transform: scale(1.1); }
.doska-card-ai-edit-popover {
  position: absolute; top: calc(100% + 8px); left: 0; width: 220px; z-index: 7;
  display: flex; flex-direction: column; gap: 6px; padding: 8px;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
}
.doska-card-ai-edit-popover input {
  font-size: 12px; color: var(--doska-text); background: var(--doska-surface);
  border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius-sm); padding: 6px 8px;
}
.doska-card-ai-edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.doska-card-ai-edit-revert {
  width: 26px; height: 26px; border-radius: var(--doska-radius-sm);
  display: flex; align-items: center; justify-content: center; color: var(--doska-text-muted);
}
.doska-card-ai-edit-revert:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-card-ai-edit-submit {
  padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--doska-accent); color: var(--doska-accent-contrast);
}
.doska-card-ai-edit-submit:disabled { opacity: 0.5; cursor: default; }

/* the "socket" every eligible target lights up with the instant a link-drag starts */
.doska-link-target-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 3;
  box-shadow: 0 0 0 2px var(--doska-accent);
  background: radial-gradient(circle, rgba(0, 0, 0, 0.25) 0%, transparent 70%);
}
.doska-link-target-marker::before, .doska-link-target-marker::after {
  content: '';
  position: absolute;
  background: var(--doska-accent);
}
.doska-link-target-marker::before { top: 50%; left: 7px; right: 7px; height: 1.5px; transform: translateY(-50%); }
.doska-link-target-marker::after { left: 50%; top: 7px; bottom: 7px; width: 1.5px; transform: translateX(-50%); }

.doska-card[data-linkable]:not([data-drop-target]) {
  animation: doska-linkable-glow 1.4s ease-in-out infinite;
}
@keyframes doska-linkable-glow {
  0%, 100% { box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.35); }
  50% { box-shadow: inset 0 0 0 2px var(--doska-accent); }
}

.doska-link-drag-tip {
  fill: var(--doska-accent);
  filter: none;
}
.doska-link-drag-tip[data-locked] {
  fill: #fff;
  stroke: var(--doska-accent);
  stroke-width: 2px;
}
/* an expanding, fading ring pulsing outward from the exact port — the "yes, right here" cue
   once the drag has snapped to a specific point, not just "somewhere on this card". */
.doska-link-drag-lock-ring {
  fill: none;
  stroke: var(--doska-accent);
  stroke-width: 2px;
  pointer-events: none;
}

.doska-link-drag-tooltip {
  position: fixed;
  z-index: 45;
  transform: translate(18px, 18px);
  font-size: 12px;
  color: var(--doska-text);
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong);
  padding: 6px 10px;
  border-radius: var(--doska-radius-md);
  pointer-events: none;
  box-shadow: none;
  white-space: nowrap;
}
/* color: --doska-accent-ink below, not raw --doska-accent — this label's actual small text
   (12px) sits on --doska-surface-raised, where raw accent blue only measures ~3.4:1 in dark
   theme (under the 4.5:1 AA bar for normal text). Flagged in an accent-color audit sweep after
   the lime->blue swap: lime was bright enough to double as its own dark-theme text color, but
   this blue isn't — same root cause as --doska-accent-ink's own comment up top, just never
   applied at this and ~20 other individual call sites when the token was first introduced.
   border-color stays raw --doska-accent (a border/fill, not text — 3:1 is the right bar there,
   and flat accent already clears it against any of this app's dark surfaces). */
.doska-link-drag-tooltip[data-locked] { color: var(--doska-accent-ink); border-color: var(--doska-accent); }

.doska-tap-link-banner {
  position: fixed;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 45;
  font-size: 13px;
  /* --doska-accent-ink — same accent-audit fix as .doska-link-drag-tooltip above (~3.4:1 raw
     accent on this surface-raised banner, under 4.5:1 AA). */
  color: var(--doska-accent-ink);
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-accent);
  padding: 8px 14px;
  border-radius: 999px;
  box-shadow: none;
  pointer-events: none;
  white-space: nowrap;
  max-width: calc(100vw - 32px);
  text-overflow: ellipsis;
  overflow: hidden;
  animation: doska-tap-link-banner-pulse 1.6s ease-in-out infinite;
}
@keyframes doska-tap-link-banner-pulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: none; }
}

/* shimmer sweep — plays once when a new link lands on this card */
.doska-card[data-shimmer]::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.35) 48%, transparent 66%);
  background-size: 250% 100%;
  animation: doska-shimmer-sweep 0.8s var(--doska-ease);
  pointer-events: none;
}
@keyframes doska-shimmer-sweep {
  from { background-position: 160% 0; }
  to { background-position: -60% 0; }
}

.doska-tag-hatch {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 3;
  display: flex;
  gap: 4px;
  pointer-events: none;
}
.doska-tag-hatch-chip {
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--doska-surface);
  color: var(--doska-text-muted);
  box-shadow: 0 0 0 1px var(--doska-hairline);
}

.doska-location-info {
  position: absolute;
  left: 8px; right: 8px; bottom: 8px;
  padding: 5px 8px;
  background: var(--doska-surface);
  border-radius: var(--doska-radius-sm);
  pointer-events: none;
  display: flex; flex-direction: column; gap: 1px;
  max-width: calc(100% - 16px);
}
.doska-location-name {
  font-size: 11px; font-weight: 600; color: var(--doska-text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doska-location-address {
  font-size: 10px; color: var(--doska-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* the location hub's "group collapsed" indicator — deliberately NOT inside .doska-card-overlay
   (which is hover-gated): this is exactly what a zoomed-out board should show without hovering. */
.doska-group-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--doska-accent-contrast);
  background: var(--doska-accent);
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: none;
  pointer-events: none;
}

/* "Живые порты" — colored dots living on the card's top border, one per link, tinted by
   link kind. Always visible (not hover-gated) so a whole canvas reads as a heatmap. */
.doska-card-ports {
  position: absolute;
  top: -3px;
  left: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
  pointer-events: none;
}
.doska-card-port {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--port-color);
  box-shadow: 0 0 0 1.5px var(--doska-canvas);
  flex-shrink: 0;
}
.doska-card-ports[data-flash] .doska-card-port { box-shadow: 0 0 0 1.5px var(--doska-canvas); }
.doska-card-port-overflow {
  font-size: 10px;
  font-family: var(--doska-font-mono);
  color: var(--doska-text-muted);
  background: var(--doska-canvas);
  border-radius: 999px;
  padding: 0 3px;
  line-height: 1.4;
}

.doska-plate {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.doska-plate-bar { width: 3px; align-self: stretch; background: var(--card-glow); flex-shrink: 0; }
.doska-plate-icon {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-left: 10px; flex-shrink: 0;
  border-radius: 999px; background: var(--doska-accent-soft); color: var(--card-glow, var(--doska-accent));
}
.doska-plate-text { padding: 6px 10px; overflow: hidden; }
.doska-plate-title {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.doska-plate-subtitle {
  font-size: 11px;
  color: var(--doska-text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* embed/bookmark cards: a full-bleed preview photo behind the caption instead of a flat bar —
   the bar/icon/text row from .doska-plate above is repositioned into a bottom caption strip. */
.doska-plate--media { display: block; }
.doska-plate--media .doska-plate-bar { display: none; }
/* Per direct request ("хочу видеть тут все изображение целиком в карточке") — cover cropped an
   embed/bookmark's og:image preview to fill this fixed-shape plate, hiding whatever fell outside
   its aspect ratio; contain always shows the whole preview, letterboxed on .doska-card's own
   background (--doska-surface-raised) when the ratios don't match. Reference/photo cards aren't
   affected by this — those size themselves to their own image's real aspect ratio at add-time
   (sizeFor) and stay locked to it through resize (Canvas.tsx's cardResizeRectFor always derives
   h = w / aspect), so cover vs contain was never actually different there. */
.doska-plate-media-img { position: absolute; inset: 0; width: 100%; height: 100%; -o-object-fit: contain; object-fit: contain; }
/* No real preview image (no og:image found, or the URL 404'd) — an aesthetic gradient plate
   instead of a broken-image icon. */
.doska-plate-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.doska-plate-media-fallback-icon { color: rgba(255, 255, 255, 0.85); }
.doska-plate-media-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 14, 0.85) 0%, rgba(10, 10, 14, 0.3) 55%, transparent 100%);
}
.doska-plate--media .doska-plate-icon {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  margin: 0;
  width: 22px;
  height: 22px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  backdrop-filter: blur(3px);
}
.doska-plate--media .doska-plate-text { position: absolute; left: 36px; right: 8px; bottom: 6px; z-index: 1; padding: 0; }
.doska-plate--media .doska-plate-title { color: #fff; }
.doska-plate--media .doska-plate-subtitle { color: rgba(255, 255, 255, 0.85); }
/* Room for the download button below — only file cards have one, so only they need the text
   narrower than the other media-plate types (bookmark/embed) share this same class for. */
.doska-card[data-type="file"] .doska-plate-text { right: 32px; }
.doska-file-card-download {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 999px;
  background: rgba(0, 0, 0, 0.55); color: #fff; backdrop-filter: blur(3px);
}
.doska-file-card-download:hover { background: var(--doska-accent); }

/* ---------- Project Hub: the board's root entity ---------- */

.doska-hub-plate {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  background: linear-gradient(160deg, var(--doska-surface-raised) 0%, var(--doska-surface) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.doska-hub-plate-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.doska-hub-kicker {
  font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  /* accent-ink — 9.5px is nowhere near the ~18.66px bold cutoff for WCAG's large-text exemption,
     and raw accent only measures ~3.4:1 on this plate's surface-raised/surface gradient. */
  color: var(--doska-accent-ink);
}
.doska-hub-avatars { display: flex; }
.doska-hub-avatar {
  width: 20px; height: 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--doska-accent-contrast);
  background: var(--doska-accent);
  box-shadow: 0 0 0 2px var(--doska-surface);
  margin-left: -6px;
}
.doska-hub-avatar:first-child { margin-left: 0; }
.doska-hub-title {
  font-size: 18px; line-height: 1.2; margin-bottom: 8px;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.doska-hub-summary {
  font-size: 12px; line-height: 1.45; color: var(--doska-text-muted);
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  flex: 1;
}
.doska-hub-counters { display: flex; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--doska-hairline); }
.doska-hub-counters span {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--doska-text-muted);
}
.doska-hub-counters svg { color: var(--doska-accent); }

/* ---------- chrome: wordmark, rail, search, topbar ---------- */

.doska-loading-screen {
  position: absolute; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  color: var(--doska-text-muted); font-size: 13px;
  background: var(--doska-canvas);
}

/* ---------- project tabs (Overview/Board/Tasks/Карты/Референсы/Календарь) ---------- */
/* Plain underline tabs (Stays/Restaurants/Attractions… reference) — per direct request. Desktop
   drops the icon entirely (text only, generous gap, no pill/box), active tab goes bold with a
   accent-colored underline, per a later follow-up ("линия цветная", "внизу отступ больше") —
   more room between the label and its line, and the line itself uses the brand accent instead of
   plain text color so the active tab actually pops. No background/blur anymore either. */
.doska-project-tabs {
  position: absolute; top: 116px; right: 0; z-index: 29;
  display: flex; align-items: center; gap: 6px; padding: 0 16px;
}
/* Per direct request ("нужно сделать меню как тут", Airtable reference — tabs inline in the same
   row as the title) — desktop tabs moved into ProjectHeader's own title row (see
   .doska-project-title-tabs below); this standalone floating bar now only ever renders for the
   mobile bottom nav, so it's hidden outright above that breakpoint rather than left as a second,
   redundant tab row. */
@media (min-width: 769px) {
  .doska-project-tabs { display: none; }
}
/* Own glass backdrop bar behind the pills — per direct report ("плохо видно табы, под ними
   контент"): on the Холст (Canvas) view there's no reserved content-area background the way
   Карта/План get from .doska-project-tab-content — cards can sit anywhere, including right under
   this row, and a plain-text inactive tab label with no background of its own read as illegible
   against whatever happened to be underneath. Same glass treatment .doska-annotate-toolbar
   already uses for exactly this "floating chrome over the live canvas" situation. */
.doska-project-tabs-bar {
  display: flex; align-items: center; gap: 6px;
  background: rgba(var(--doska-glass-rgb), 0.88); backdrop-filter: blur(18px);
  border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius-lg, var(--doska-radius-md));
  padding: 4px; box-shadow: none;
}
/* Pill/segmented style, chosen over an underline — the underline kept getting silently zeroed
   by the .doska-root button { border: none } specificity trap (0,1,1 beating a single-class
   0,1,0; see the doubled-selector pattern used elsewhere in this file), and even the fixed
   version read as too subtle per direct feedback ("не понятно что выбрано"). A filled pill
   reuses the same accent-soft treatment .doska-chip--accent/.doska-inline-action already use
   elsewhere, so the active tab is unambiguous without depending on a 3px border surviving. */
.doska-project-tab {
  display: flex; align-items: center; gap: 6px; padding: 16px 14px; font-size: 16px; font-weight: 500;
  color: var(--doska-text-muted); border-radius: var(--doska-radius-md);
}
.doska-project-tab-icon { display: none; }
.doska-project-tab:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-project-tab.doska-project-tab[data-active] {
  /* accent-ink — 15.5px/700 is still short of the ~18.66px bold cutoff for WCAG's large-text
     exemption, and raw accent on this tab's own accent-soft fill measures well under 4.5:1. */
  color: var(--doska-accent-ink); font-weight: 600; background: var(--doska-accent-soft);
}
.doska-project-tab-content {
  /* ProjectHeader is a single 52px-tall row, inset 10px from the top edge (same gap
     ProjectsRail/AiBoardPanel use) plus its own 1px border — content clears that box. */
  /* z-index 8 -> 31 (just above .doska-project-header's own 30) — position:absolute + z-index here
     makes this its own stacking context, which TRAPS every descendant inside it for stacking
     purposes, including position:fixed, z-index:70 modal backdrops (.doska-stash-create-backdrop,
     .doska-stash-modal-backdrop) mounted deep inside StashTab. Their high z-index only ever won
     within this trapped context — the header, a stacking-context SIBLING at z-index:30, still
     painted as a whole layer above the ENTIRE z-index:8 layer regardless, so those "70" backdrops
     visibly failed to dim the header at all (confirmed live: the project title/breadcrumb stayed
     bright and legible right through the create-note modal's own 88%-opaque backdrop, most visible
     on mobile where the modal's own heading happened to land at the same y as the hero title
     behind it, reading as raw overlapping text). This box sits BELOW the header in normal layout
     (top offset below it) either way, so raising its z-index changes nothing about ordinary
     scrolling — only lets its own fixed-position overlays actually escape to the top like they're
     supposed to. */
  position: absolute; top: 53px; left: 0; right: 0; bottom: 0; z-index: 31;
  overflow-y: auto; background: var(--doska-canvas);
}

/* Per direct request ("сделай на моб версии табы внизу") — a bottom tab bar within thumb reach,
   the standard mobile-app placement, instead of the desktop top-bar position. DoskaPage passes
   ProjectTabs a forced offset={0} on mobile so it always spans full width here regardless of the
   canvas rail's own (desktop-only) collapsed/expanded state. */
@media (max-width: 768px) {
  .doska-project-tabs {
    top: auto; bottom: 0; left: 0 !important; right: 0 !important;
    padding: 4px 4px calc(4px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--doska-hairline); border-bottom: none;
    background: var(--doska-canvas);
  }
  /* Neutralized on mobile — the outer .doska-project-tabs above already IS the solid full-width
     bottom bar here (own background/border-top), so the desktop glass-pill treatment would just
     be a redundant nested box fighting its own padding/justify-content. */
  .doska-project-tabs-bar {
    width: 100%; justify-content: space-around; gap: 0;
    background: none; backdrop-filter: none; border: none; box-shadow: none; padding: 0;
  }
  .doska-project-tab {
    flex: 1; flex-direction: column; gap: 2px; padding: 6px 4px; font-size: 10px; font-weight: 500;
    border-bottom: none;
  }
  .doska-project-tab-icon { display: block; }
  /* Doubled selector to outrank the desktop .doska-project-tab.doska-project-tab[data-active]
     rule above (0,3,0) — otherwise its border-bottom-style:solid would leak onto mobile, where
     the active state is meant to be color-only, no underline. */
  /* accent-ink here too (see the desktop rule above) — mobile's tab label is even smaller
     (10px), so the same raw-accent contrast shortfall applies a fortiori. */
  .doska-project-tab.doska-project-tab[data-active] { border-bottom: none; color: var(--doska-accent-ink); font-weight: 600; }
  /* Content used to start right below the top tab bar and fill to the screen's own bottom edge —
     now nothing occupies the top slot, and the bar itself sits fixed at the bottom instead.
     top: 53px clears ProjectHeader's own single 52px-tall row (title/tabs/actions all merged
     into it now — see the desktop rule above, same reasoning applies here).
     left: 0 !important overrides AuthorBoard's inline `left: railOffset` style — ProjectsRail is
     display:none on mobile (see above), so the offset it'd otherwise reserve must collapse too.
     right: 0 !important does the same for `right: aiPanelOffset` — AiBoardPanel repositions to a
     fixed FAB/overlay on mobile (see .doska-ai-chat--persistent's own mobile block) rather than
     staying a docked column, so nothing should be reserving layout space for it here either. */
  /* bottom used to reserve calc(54px + safe-area) for the mobile bottom tab bar — that bar was
     removed (DoskaPage.tsx, "убрать снизу таб") but this reservation stayed, shrinking this
     container's own box. Because it's an overflow-y:auto scroll ancestor, its own (now too-short)
     box clipped any position:fixed descendant painted past that boundary — StashTab's floating
     "Создать заметку"/AI buttons kept getting cut off ("низ все еще зарезан") no matter how their
     own `bottom` offset was tuned, since the clip came from this ancestor, not their own offset.
     bottom: 0 lets the container reach the true screen edge again. */
  /* top grows from 53px to clear .doska-project-hero too (see that rule, defined unconditionally
     below) — a generous estimate of its real rendered height (icon+title+actions, no topics row
     anymore), not measured live. Slightly too tall leaves harmless empty space above the grid;
     too short would clip the hero's own bottom edge, so this errs on the taller side. Bumped from
     257 to 320 alongside the hero's own bigger icon/title ("шапку нужно крупнее"). */
  /* 310 -> 385: that "generous estimate" measured short live — a 2-line wrapped title (any
     reasonably long project name at 390px, e.g. "Входящее (Telegram)") pushes .doska-project-hero-
     actions' own bottom edge to y:367, past the old 310px offset by 57px. Harmless while
     .doska-project-tab-content sat BEHIND the header (z-index 8 vs the header's 30) — the overlap
     just silently clipped under the header, invisible — but now that it's stacked ABOVE the header
     (see that rule's own z-index comment, needed so this tab's own modals can actually dim the
     header instead of leaving it undimmed underneath them), the same overlap started eating clicks
     meant for the hero row's "···"/Share/Invite buttons instead (confirmed live: the project menu
     button stopped responding, .doska-stash-toolbar was intercepting the click). 385 clears the
     worst 2-line case measured (367) with ~18px to spare.
     Doubled selector (0,2,0) — same .doska-root button specificity-trap pattern as elsewhere in
     this file, needed here for a different reason: the desktop `.doska-project-tab-content { top:
     310px }` rule further down is unconditional (no media query) and equal specificity at a single
     class, so being LATER in source order it was silently winning here too, at any width — this
     385px mobile value never actually applied until this doubled it. */
  /* 385 itself turned out to be one more guessed constant with the same failure mode it replaced
     — nav-review round 3 found a 3-line title ("Однодневное путешествие в Рыбинск" at 390px, an
     unremarkable real project name) blow past even THIS budget and reopen the identical bug
     ("···" unclickable again). Now reads --doska-project-header-h, the same live-measured
     variable the desktop rule below uses (see its own comment) — 385px only still matters as the
     fallback for the one frame before ProjectHeader's ResizeObserver has measured anything. */
  /* top: 0 (was var(--doska-project-header-h, 385px)) — ProjectHeader now renders as this
     container's own first in-flow child (see DoskaPage.tsx's `embedded` prop) instead of an
     absolute overlay sitting on top of it, so no top offset needs reserving for it anymore; the
     header just takes its own natural space at the top of the scrollable content, same as any
     other row, and scrolls away with the rest (per direct report "шапку можно будет
     проскроливать"). --doska-project-header-h itself is unused now — the only other reader,
     the desktop rule below, drops it the same way. */
  /* padding-bottom: content's own trailing clearance for the docked mobile action bar (search/
     create/comments/profile — see .doska-mobile-action-bar's own mobile rule and comment) sitting
     fixed over the true bottom edge now; without it the last row of a scrolled Хранилка/Карта/План
     tab renders underneath that bar instead of above it. 76px covers the bar's own ~64px height
     plus a small gap; safe-area is folded into the bar's OWN bottom padding already, so it isn't
     double-counted here. */
  .doska-project-tab-content.doska-project-tab-content { top: 0; bottom: 0; left: 0 !important; right: 0 !important; padding-bottom: 76px; }
  /* Same reasoning for the board header's own inline left/right offsets (ProjectHeader.tsx). */
  .doska-project-header { left: 0 !important; right: 0 !important; }
}
/* Per direct reference (a Mobbin-style app detail page: icon, then title, then a Platform/Rating/
   Category meta row, then a Save/Rate/••• action row, all left-aligned — "выравнивание по левому
   краю как на рефе" / "точно передать структуру рефа") — adapted since none of the three meta
   fields have a real equivalent here: the meta row becomes the project's own top note topics
   instead ("мета-ряд — категории/темы заметок"), the action row is just "Создать заметку" plus
   the same "···" menu (moved down here from the compact row above — see the hidden rules below —
   per direct follow-up "три точки управлять проект"). Started mobile-only, then per direct
   follow-up ("крупная шапка и на вебе должна быть") made unconditional — same treatment on
   desktop too, not just a narrow-viewport adaptation. */
/* background used to be var(--doska-surface) (a lighter panel shade than the page's own
   var(--doska-canvas)) with its own border-bottom — read as a translucent card floating over
   the page rather than part of it ("убери прозрачную подложку под шапкой проекта, нужно чтобы
   был однородный верный фон" / "Черный"). transparent lets the true page background show
   through uniformly instead. */
/* Scaled up from an earlier, more compact pass — per direct follow-up ("шапку нужно крупнее как
   тут", reference screenshot in hand) — bigger cover swatch, bigger title, more breathing room.
   .doska-project-tab-content's own top offset below grows to match. */
/* Per direct request ("на первой вложенности проекта, хлеб должен быть над обложкой") — desktop-
   only path strip (see ProjectHeader.tsx's own isMobile gate), sitting above the hero rather than
   inside StashTab's content column, so it stays visible even at folder depths where the hero
   itself is hidden. Reuses .doska-stash-breadcrumb-item's own visual language (muted/active/hover
   states) under a new class rather than the same one — genuinely different DOM position/parent
   (padding here comes from .doska-project-header-top's own side padding, not this element), and
   keeping them distinct avoids one CSS change silently affecting the other's now-mobile-only job. */
.doska-project-header-breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 13px;
  /* max-width 1464 + auto margin — same centering as .doska-project-hero and .doska-stash-
     folders-layout (see the hero's own "1400 + 32 + 32 = 1464" comment). Without this the
     breadcrumb stayed pinned to a flat 32px from the true left edge while the hero/grid below it
     centered themselves on any viewport wider than 1464px, so the crumb's own text drifted left of
     the title's on a wide screen — confirmed live via screenshot ("начало хлебных крошек должно
     быть по линии с названием ниже по его первой букве"). Border-box (.doska-root's own default)
     keeps this element's own padding-left below included in the 1464 the same way the hero's is. */
  max-width: 1464px; margin: 0 auto;
  /* Top padding 10px -> 22px -> 12px -> 6px -> 2px. The 22px bump was for breathing room below the
     search bar that used to sit directly above this in the SAME card (.doska-project-header-top)
     — per direct follow-up ("давай эту часть выведем из под обводки") that whole row moved OUT to
     GlobalPageHeader, hoisted above the bordered card entirely, so this breadcrumb is now the
     FIRST thing inside the card again; the extra gap that made sense next to a search bar read as
     dead space once nothing was directly above it anymore. Two more direct follow-ups ("от хлеба
     выше сделать меньше отступ до верха", then "ещё выше") brought it down to 2px — kept just
     above 0 rather than flush so the crumb's own hover/active pill backgrounds (see
     .doska-project-header-breadcrumb-item below) don't visually clip against the card's rounded
     top corners. The remaining inset above the crumb is now almost entirely the parent
     .doska-project-header[data-embedded]'s own 10px padding-top, which stays untouched here — that
     value was itself a direct fix for the opposite complaint ("меню первого уровня прибито к верху
     сильно"), so cutting further into it would re-open that one instead of this one. */
  /* Per direct report ("хлебные крошки смещены вправо... должны быть выровнены по обложке, по её
     левой части") — an earlier pass here (see git history) deliberately lined the crumb's text up
     with .doska-project-hero-main's TITLE text (past the 64px icon + 14px gap, a +110px padding-
     left override on [data-has-hero]), reasoning the icon was "the wrong sibling" to align to.
     That reasoning was reversed by direct report: the crumb should sit flush with the COVER
     ICON's own left edge instead, matching how the no-hero (folder-depth) case already aligns the
     crumb with the plain title text below it. Verified live via getBoundingClientRect: with the
     override in place the crumb button sat at container-left+104 while .doska-project-hero-icon
     sat at container-left+32 — a 72px rightward drift, reproduced identically at every viewport
     width tested (1024/1280/1800/2200) since both boxes share the exact same max-width:1464 +
     margin:0 auto centering math, so this was never a resize/centering bug, just a flat wrong
     target. Removing the [data-has-hero] override (below) lets the base padding-left do the job
     at every depth, hero or not. */
  /* Each crumb button carries its own 6px horizontal padding for a real click target, so the
     first crumb's visible TEXT actually starts 6px further in than padding-left alone would put
     it (neither the plain title text nor the cover icon has such padding of their own). Folded
     straight into padding-left (32-6=26) instead of a separate margin-left — a margin-left
     longhand declared after the `margin: 0 auto` shorthand above silently wins over its own auto
     and pins this whole box 6px off the true left edge instead of centering it. Padding has no
     such conflict with margin, so this fold-in fixes the centering without losing the button-
     padding compensation, AND (per the above) happens to already land the text exactly flush with
     .doska-project-hero-icon's own left edge — no has-hero-specific override needed at all. */
  /* 2px -> 8px — per direct follow-up ("соответственно хлеб также поправить"), the matching +6px
     bump to .doska-sidebar-top's own padding-top above, so this crumb doesn't read as flush-to-top
     while the sidebar's "Все проекты" row right next to it now has real breathing room. */
  /* Bottom 0 -> 12px — per direct follow-up ("в папках больше сделай отступ от хлеба до
     заголовка вниз... сверху"): the crumb sat flush against the folder title right below it. */
  /* 26 -> 32 по левому краю: тот же вставной отступ, что у обложки, кнопок и заголовка «Заметки»
     (замер показывал текст «Все проекты» на 213 при 219 у всего остального). Значение стоит здесь,
     а не выше в блоке — более позднее объявление в том же правиле побеждает. */
  padding: 8px 32px 12px;
}
/* Мобилка: тот же расчёт, что и у базового правила, но от ДРУГОГО бокового отступа шапки.
   База — 26px = 32 (боковой отступ .doska-project-hero на десктопе) минус 6 (собственный
   horizontal padding кнопки-звена, из-за которого видимый ТЕКСТ начинается правее самой коробки).
   На мобилке отступ шапки стал 16px (правка «поправить вёрстку и отступы на мобилке»), а этот
   расчёт остался десктопным — хлеб уезжал правее обложки и названия ровно на 10px.
   16 - 6 = 10 (per direct request «поправить выравнивание хлеба слева на мобилке»). */
/* Иконки крупнее на мобилке — per direct request «нужно везде иконки сделать крупнее на мобиле».
   Размер иконок задаётся в JSX атрибутом size (lucide пишет его в width/height самого svg), то
   есть менять пришлось бы десятки мест во всех компонентах, и каждое новое место снова забывалось
   бы. Вместо этого одно правило по ширине экрана: svg внутри интерактивных элементов Doska
   масштабируется до 18px, в крупных круглых кнопках — до 20px. Атрибут size остаётся десктопным
   значением и служит запасным.
   Ограничено кнопками и ссылками НАМЕРЕННО: декоративные svg (логотип, иллюстрации пустых
   состояний, графики) трогать нельзя — у них своя осмысленная геометрия.
   Плюс исключения ниже: места, где иконка часть плотной строки и её рост ломает вёрстку. */
@media (max-width: 768px) {
  .doska-root button > svg,
  .doska-root a > svg { width: 18px; height: 18px; }
  .doska-pill-btn > svg,
  .doska-icon-rail-btn > svg,
  .doska-stash-modal-action-btn > svg { width: 18px; height: 18px; }
  .doska-sidebar-tree-label > svg,
  .doska-project-header-breadcrumb-item > svg,
  .doska-stash-folder-tab-menu-btn > svg { width: 15px; height: 15px; }
  /* Хлеб теперь живёт ВНУТРИ верхней строки, рядом с «···» (per direct request), а не отдельной
     полосой над обложкой. Значит собственные отступы и центрирование ему больше не нужны — их
     задаёт сама строка; иначе он добавлял бы к её отступам свои и уезжал вправо.
     nowrap + прокрутка вместо переноса: в одной строке с кнопкой перенос увеличил бы её высоту,
     а глубокий путь и так редкость — при нехватке места путь сдвигается, а не ломает строку.
     min-width: 0 обязателен: без него flex-элемент не может стать уже своего содержимого и
     вытолкнул бы «···» за край — ровно та же ловушка, что была с карточками папок. */
  .doska-project-header-breadcrumb {
    padding: 0; margin: 0; max-width: none;
    flex: 1 1 auto; min-width: 0;
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
  }
  .doska-project-header-breadcrumb::-webkit-scrollbar { display: none; }
  /* Звенья не сжимаются — сжимать нужно ленту целиком, а не отдельные названия до нечитаемости. */
  .doska-project-header-breadcrumb-item.doska-project-header-breadcrumb-item { flex-shrink: 0; }
}
.doska-project-header-breadcrumb-item.doska-project-header-breadcrumb-item {
  color: var(--doska-text-muted); padding: 4px 6px; border-radius: var(--doska-radius-sm); font-weight: 600;
}
.doska-project-header-breadcrumb-item:hover { color: var(--doska-text); background: var(--doska-hairline); }
.doska-project-header-breadcrumb-item[data-active].doska-project-header-breadcrumb-item { color: var(--doska-text); }
/* Per direct follow-up ("нужно уметь перетаскивать через хлебные крошки") — same drop-target
   highlight convention every other drag surface in this file uses.
   Bumped from a plain soft-tint background to a solid ring — per direct report ("убирать
   прозрачность, чтобы было видно, в какую хлебную крошку ты перетаскиваешь"): the browser's own
   semi-transparent native drag-ghost (not something CSS can turn off — it's the OS/browser's own
   rendering of the dragged element, per HTML5 DnD spec) sits right on top of whatever crumb is
   underneath the cursor, and the old subtle tint essentially disappeared under it. A solid
   box-shadow ring (same "cut a visible outline regardless of what's overlapping it" trick
   FolderCard's own [data-drag-over] already uses) reads clearly through the ghost instead. */
.doska-project-header-breadcrumb-item[data-drag-over].doska-project-header-breadcrumb-item {
  background: var(--doska-accent-soft); color: var(--doska-accent-ink);
  box-shadow: 0 0 0 2px var(--doska-accent); font-weight: 600;
}

.doska-project-hero {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  /* Bottom padding trimmed 22px -> 14px, same "уменьшить отступ" follow-up as .doska-stash-tab's
     own top-padding trim just below — the two stacked into a visibly large dead gap together. */
  /* Side padding 24px -> 32px, matching .doska-stash-tab's own bump just below — these two sit
     directly stacked (hero, then toolbar+grid) and shared the same left edge; leaving one at 24px
     while the other moved to 32px would have made the title visibly jog 8px right of the grid
     under it. Also the desktop "more side margin" pass generally — 24px read tight at 1440. */
  /* Top padding 28px -> 40px — per direct request ("от хлебных крошек больше отступ вниз до
     обложки"), more breathing room between the breadcrumb trail right above (its own bottom
     padding is 0 — see .doska-project-header-breadcrumb) and the cover icon/title here. */
  /* Обложка проекта как у подборки — per direct request («та же структура и обложка»). Цвет и
     чернила приходят из палитры коллекций (переменные ставит ProjectHeader), поэтому плитка проекта
     на полке и его шапка внутри окрашены одинаково. Скруглённый цветной блок вместо прежней
     прозрачной полосы. */
  /* Размеры один в один с .doska-collection-hero — per direct request («сама цветная плашка тоже
     по размеру должна быть так же, как в коллекции»): та же минимальная высота, те же поля, тот же
     отступ снизу. Содержимое прижато к низу, как там же: заголовок стоит на нижней кромке блока, а
     не парит по центру. */
  /* Название СВЕРХУ, факты внизу — per direct request с примером плитки подборки («обложка внутри
     проекта должна быть расположена подобным образом, как в коллекции»). Раньше содержимое было
     прижато к низу и верх плашки пустовал. */
  /* Отступы выровнены по одной линии — per direct report со скриншотом («поправить отступы»).
     Замер до правки: контейнеры совпадали (187…1651), но ЛЕВЫЕ КРАЯ ТЕКСТА расходились —
     «Все проекты» на 213, название на обложке на 215, «Заметки» на 219, а сам цветной блок
     начинался на 187, то есть заметно левее всего остального. Теперь блок вставлен на те же 32px,
     что и сетка: его край совпадает с началом заголовков, а текст внутри отбит собственным полем —
     ровно так же устроена обложка подборки. */
  /* КОМПАКТНАЯ ШАПКА вместо цветной плашки — per direct request со скриншотом-референсом
     («сделать аналогичную шапку внутри спейса, убрать обложку там»). Было: блок на 210px с фоном
     из палитры, названием и фактами по углам. Стало: одна строка «название + пилюли», а сразу за
     ней действия, как в присланном примере.
     Это отменяет прежние просьбы о размерах и расположении обложки (записи 29 и 31 в истории) —
     они описывали ровно ту плашку, которой больше нет. */
  min-height: 0; margin: 0 auto 10px; padding: 4px 0 0; border-bottom: none;
  max-width: 1400px; width: calc(100% - 64px);
  flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px;
  justify-content: flex-start;
  background: transparent;
  border-radius: 0;
  overflow: visible;
  /* max-width 1464 (not 1400) — this box's own padding (32px each side, .doska-root * is
     box-sizing:border-box) is INCLUDED in max-width here, unlike .doska-gallery-grid/.doska-
     stash-grid, which get their 32px inset from an ancestor's padding and cap only their own
     content at 1400. 1400 + 32 + 32 = 1464 lines this hero's title up with those grids' shared
     edge instead of running 64px narrower than them — per direct request ("такой же отступ ...
     как делал ранее в Мои проекты / Все заметки"), this project page's own hero/toolbar/grid
     column now matches the gallery pages' column exactly, not just its own left edge. */
}
/* Per direct request ("переместить напротив названия проекта в правом углу") — this row
   (Создать + Пригласить/Поделиться/···) moved back into .doska-project-hero-title-row itself
   (see ProjectHeader.tsx), sitting opposite the title rather than as its own separate line below
   it — the margin-bottom this used to carry for spacing below THAT separate line no longer
   applies (and would throw off align-items:center against the title if left in). */
.doska-project-hero-actions-row { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Compact 29x32 icon mark, not the wide wordmark — sized to sit comfortably in the same 18px
   slot the arrow used to fill. */
/* Mobile-only duplicate ProfileMenu trigger, a genuine sibling of the logo — hidden here by
   default (desktop keeps using the single instance down in .doska-header-group, unaffected), shown
   only inside the mobile media query below alongside hiding that original. See its own JSX comment
   in ProjectHeader.tsx (doska-header-mobile-profile) for the full "why two instances" reasoning. */
.doska-header-mobile-profile { display: none; }
/* Side-by-side again — per direct follow-up ("поделиться, шарить, три точки перенести в правый
   угол справа от названия проекта"), reversing the earlier stacked-column layout this same rule's
   own history describes. Title left, Invite/Share/"···"/Создать pinned to the right corner,
   vertically centered against the title. .doska-project-hero-main's own flex:1/min-width:0 (see
   that rule) is what lets a long title actually shrink and wrap to a second line instead of
   shoving the actions off the row's right edge once they're back to sharing it. */
.doska-project-hero-title-row { display: flex; flex-direction: row; align-items: center; gap: 14px; width: 100%; }
/* Хранилка's own folder browsing — per direct request ("внутри проекта сделать два таба:
   1. папки 2. сохранённые... табы-папки не нужны, будут просто папки в табе папки", then "давай
   слева сделаем такое дерево, которое показывает темы сразу"). Replaces the old flat horizontal
   pill-tabs row (StashTab.tsx's now-deleted FolderTab) entirely: a two-tab switcher
   (Папки/Сохранённые) sits where the pills used to, and Папки itself gets a real left-nav tree
   (desktop) / breadcrumb (mobile) plus a folder-card grid, since folders can now nest arbitrarily
   deep instead of staying one flat level. */
/* Per direct request ("давай объединим два таба в один в проекте") — the earlier two-tab switcher
   (Папки/Сохранённые, plain flat underline tabs) and the separate "Фильтры" toggle bar above the
   tree are both gone; the row now renders inline under each level's own title (see
   .doska-stash-folder-content-header) instead of behind a toggle in a sticky top bar. Was its own
   .doska-stash-filters-row wrapper (Тип/Темы's own row); merged into .doska-stash-folder-content-
   actions per a later direct request with a reference screenshot ("все баблы селекторы сделать в
   одну линию на мобилке как тут") — see StashTab.tsx's own JSX comment. */
/* Per direct request ("делаем вариант Б") — Тип/Темы's own dropdown-pill pair (StashTab.tsx) is
   wrapped in this shared container so it can be hidden as one unit above the breakpoint where
   .doska-stash-filter-rail (further below) takes over instead — same flex/gap shape its new parent
   row already uses, so the two dropdown buttons keep reading as one group either way. */
.doska-stash-typetopics-dropdowns { display: flex; align-items: center; gap: 8px; }
/* Per direct follow-up ("темы скрыть в проектах", then "внутри проекта сделать кнопку темы где
   они будут появляться в таком виде" with a real reference — a wrapping multi-row chip cloud
   opened from a button, not the old permanent .doska-stash-filter-rail this used to be hidden in
   favor of on desktop, and now-removed entirely). The Темы toggle (doska-stash-topics-dropdown,
   below) now stays visible at every width; only the Тип toggle is still mobile-only — its own
   filtering is covered by the "по типу" sort field on desktop (see .doska-stash-filter-rail's own
   removal comment in StashTab.tsx for that reasoning, unchanged). */
/* Was `@media (min-width: 769px)` — i.e. desktop-only hiding, leaving Тип as a MOBILE-only
   control. Per direct request ("на мобилке убрать фильтр тип") it's now hidden at every width, so
   the pill is gone from the phone strip too; filtering by type stays reachable through the "по
   типу" sort field. Doubled selector per gotcha #1 in CLAUDE.md — an unconditional display rule
   this far up the file would otherwise be at the mercy of any equal-specificity rule added later. */
.doska-stash-type-toggle-wrap.doska-stash-type-toggle-wrap { display: none; }
/* Per direct report ("на мобилке фильтры прилипают к верху когда скролишь и их видно") — sticks
   to the top of the page's own scroll container while scrolling past it, instead of scrolling out
   of view along with the rest of the level's content. Was scoped to the old standalone
   .doska-stash-filters-row; now that Тип/Темы live in .doska-stash-folder-content-header's own row
   instead (see above), the sticky behavior moved with them onto that whole row — title included,
   same "stays visible while scrolling" idea just covering one merged row instead of two. Desktop-
   only unaffected (not requested there, and the tree's own sticky-free scroll already keeps
   navigation visible on wide viewports anyway). */
@media (max-width: 900px) {
  .doska-stash-folder-content-header { position: sticky; top: 0; z-index: 5; background: var(--doska-section-bg); padding: 8px 0; }
}

/* ---------- Папки tab: left tree (desktop) + folder-card grid + breadcrumb (mobile) ---------- */

/* max-width + margin:auto — same centering shape .doska-stash-grid already uses. Missing this was
   a real bug back when a separate sticky tabs/filters bar sat above this layout with its own
   independent centering: the tree/folder-grid sat flush to the tab's own 32px edge while that bar
   stayed centered — a visible left-edge jog between the two, per direct report ("поправь
   выравнивание списка папок по табам"). No longer a two-box comparison at all now that bar is
   gone (see .doska-stash-filters-row's own comment above), but the centering itself still matters
   on its own. */
/* Two-column layout again — the left tree was removed per a direct follow-up ("древо папок убрать
   в папках"), then brought BACK per a later one with a reference screenshot ("давай добавим в таб
   папки древо структур папок вместо хлеба"). max-width + margin:auto now lives on THIS wrapper
   (same centering shape .doska-stash-grid uses) rather than on .doska-stash-folders-content alone,
   since that's a flex child of this row now, not the outermost box. */
.doska-stash-folders-layout { display: flex; align-items: flex-start; gap: 24px; max-width: 1400px; margin: 0 auto; }
.doska-stash-tree {
  flex-shrink: 0; width: 240px; max-height: calc(100vh - 220px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 1px; padding-right: 4px;
}
.doska-stash-folders-content { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
/* Project-scoped tree search — per direct request ("нужно первым в древе сделать поиск по
   папкам и заметкам по конкретному проекту"), first thing in .doska-stash-tree. Filled pill, no
   border — per direct follow-up with a reference screenshot ("такой стиль поиска ожидаю в
   древе"), matching that reference's flat light-gray fill + fully rounded corners instead of the
   earlier bordered/square-cornered box. */
.doska-stash-tree-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; margin-bottom: 8px;
  border: none; border-radius: 6px;
  background: var(--doska-surface-raised);
  color: var(--doska-text-muted);
  transition: background 140ms var(--doska-ease);
}
.doska-stash-tree-search:focus-within { background: var(--doska-hairline-strong); }
.doska-stash-tree-search input {
  flex: 1; min-width: 0; font-size: 13px; color: var(--doska-text);
  background: none; border: none; outline: none;
}
.doska-stash-tree-search input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-stash-tree-search input::placeholder { color: var(--doska-text-muted); }
.doska-stash-tree-search button { display: flex; flex-shrink: 0; color: var(--doska-text-muted); }
.doska-stash-tree-search button:hover { color: var(--doska-text); }
.doska-stash-tree-search-results { display: flex; flex-direction: column; gap: 1px; }
.doska-stash-tree-search-result {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: var(--doska-radius-sm);
  font-size: 13px; text-align: left;
}
/* Doubled selector — same .doska-root button { color: inherit } specificity trap as elsewhere in
   this file. */
.doska-stash-tree-search-result.doska-stash-tree-search-result { color: var(--doska-text); }
.doska-stash-tree-search-result:hover { background: var(--doska-hairline); }
.doska-stash-tree-search-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 768px) {
  /* Confirmed with the user — no room for a persistent left column on a phone; StashTab's own
     breadcrumb (.doska-stash-breadcrumb, hidden by default, shown below that same 768px cutoff)
     carries this same navigation there instead. Same breakpoint as useIsMobile — this class is
     already unreachable in JSX on desktop regardless (see StashTab's own hideTree), so this rule
     mostly matters as a defensive floor, but keeping the number identical avoids any doubt. */
  .doska-stash-tree { display: none; }
  .doska-stash-folders-layout { display: block; }
}

/* Tree row shell — shared by the fixed root row and every recursive FolderTreeRow. Count sits at
   the far right of the row (justify-content:space-between, not squeezed next to the label) — per
   the reference screenshot's own layout, a folder-tab's inline count badge doesn't read the same
   way once rows are this much wider than a pill. */
.doska-stash-tree-row {
  position: relative; display: flex; align-items: center; gap: 8px; padding: 7px 8px;
  border-radius: var(--doska-radius-sm);
}
.doska-stash-tree-row[data-drag-over] { background: var(--doska-accent-soft); box-shadow: 0 0 0 2px var(--doska-accent); }
.doska-stash-tree-row[data-spring-open] { animation: doska-folder-spring-blink 0.5s ease-in-out; }
/* Expand/collapse — per direct follow-up ("добавить возможность сворачивания каждого уровня в
   древе с папками стрелкой"). Same rotate-on-open pattern .doska-faq-chevron already uses
   elsewhere in this file. Space reserved even on a leaf (chevron-spacer, no children to expand)
   so every row's label starts at the same x regardless of whether it has a chevron. */
.doska-stash-tree-chevron {
  flex-shrink: 0; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
  color: var(--doska-text-muted); transition: transform 0.15s var(--doska-ease);
}
.doska-stash-tree-chevron[data-open] { transform: rotate(90deg); }
.doska-stash-tree-chevron-spacer { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.doska-stash-tree-label {
  display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0;
  font-size: 14px; font-weight: 600; color: var(--doska-text-muted); white-space: nowrap; overflow: hidden;
}
.doska-stash-tree-row:hover .doska-stash-tree-label.doska-stash-tree-label { color: var(--doska-text); }
.doska-stash-tree-row:hover { background: var(--doska-hairline); }
.doska-stash-tree-label-text { overflow: hidden; text-overflow: ellipsis; }
.doska-stash-tree-count { flex-shrink: 0; font-size: 13px; color: var(--doska-text-muted); }
/* Selected row — a light fill, not the solid accent block the tab switcher/active tab use
   elsewhere; the reference's own selected row is a subtle raised tint, not a loud color block, and
   this row already carries a folder icon + name + count all at once, enough going on without also
   inverting to high-contrast text. */
.doska-stash-tree-row[data-active] { background: var(--doska-surface-raised); }
.doska-stash-tree-row[data-active] .doska-stash-tree-label.doska-stash-tree-label,
.doska-stash-tree-row[data-active] .doska-stash-tree-count { color: var(--doska-text); }
.doska-stash-tree-row:hover .doska-stash-folder-tab-menu-btn {
  opacity: 1; pointer-events: auto;
}
/* Guide line — per the reference screenshot, a thin vertical line running the height of each
   nested group, offset to sit just past its own parent row's icon. Recurses for free: every
   depth wraps its own children in another .doska-stash-tree-children, so a 3rd-level folder gets
   two lines (one per ancestor) automatically, no depth-indexed math needed. */
.doska-stash-tree-children { margin-left: 18px; padding-left: 10px; border-left: 1px solid var(--doska-hairline-strong); }

/* Per direct request ("делаем вариант Б") — the desktop-only bubble filter rail (Тип/Темы) beside
   the folder-grid + item-grid, replacing the dropdown pair for anyone at >=769px (mobile keeps the
   dropdowns, see .doska-stash-typetopics-dropdowns above). Lives INSIDE .doska-stash-folders-
   content, its own column — not a second global sidebar competing with ProjectSidebar for the
   page's left edge, this one only spans the content area next to the grid. Single column (no
   split) below the breakpoint; the rail itself is hidden there so .doska-stash-content-main is the
   only visible child. */
/* In-project Темы toggle — per direct follow-up ("когда в проекте нажал темы, то они должны
   появляться по всей горизонтали в баблах. ниже... это меню где выбираю шире должно быть по всей
   ширине"), replacing a floating dropdown anchored to the toolbar button with a plain inline
   panel spanning the full content width right below the whole toolbar row. */
.doska-stash-topics-inline {
  display: flex; flex-direction: column; gap: 8px; margin: -4px 0 8px;
  padding: 12px 14px; border-radius: var(--doska-radius-md); background: var(--doska-surface);
  border: 1px solid var(--doska-hairline);
}
/* justify-content: flex-end, not space-between — per direct report ("слово темы тут убрать"), this
   header's own title span is gone (see StashTab.tsx's own comment), leaving "Сбросить все" as the
   only child; space-between would have pulled it back to the LEFT edge with nothing left to space
   against, so it's pinned to the right explicitly instead, keeping its original position. */
.doska-stash-topics-inline-header { display: flex; align-items: center; justify-content: flex-end; }
.doska-stash-topics-inline-reset { font-size: 12px; font-weight: 600; color: var(--doska-accent); }
.doska-stash-topics-inline-reset:disabled { color: var(--doska-text-muted); opacity: 0.6; }
.doska-stash-content-split { display: block; }
@media (min-width: 769px) {
  .doska-stash-content-split { display: flex; align-items: flex-start; gap: 24px; }
}
.doska-stash-filter-rail {
  display: none; flex-direction: column; gap: 18px;
  flex: 0 0 200px; width: 200px;
  padding-top: 4px;
}
@media (min-width: 769px) {
  .doska-stash-filter-rail { display: flex; }
}
/* --doska-row-gap объявлен рядом с самим gap и обязан ему равняться: ряд чипов вычитает его,
   чтобы свой отступ от поиска и до карточек считать самому, а не наследовать разный шаг у разных
   родителей (см. .doska-collection-folder-chips). */
.doska-stash-content-main { --doska-row-gap: var(--s-2); min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--doska-row-gap); }
/* Per direct report with a screenshot ("нужно вид список по всей ширине а не по центру") —
   .doska-stash-grid's own base rule carries `margin: 0 auto` (centers it within a wider page,
   the pre-rail layout's own reasoning) — auto margins on a flex item (which this now IS, a direct
   child of the flex column above) disable stretch and size the item to its own content instead,
   shrinking the list/grid away from the rail's full available width and centering the leftover
   gap. Only actually visible in list view (max-width:none there means there's real leftover width
   to visibly not-fill; grid view's own max-width:1400px rarely exceeds this column's real width,
   so the same shrink was there too, just invisible). Reset here, not on the base rule — an
   unwrapped .doska-stash-grid elsewhere (TrashView.tsx, standalone contexts) still centers itself
   the old way, this only covers the new rail layout. */
.doska-stash-content-main .doska-stash-grid { margin: 0; }
/* Per direct request ("когда выбрал фильтры, то над заметками нужно показывать такие баблы
   выбора") — active-filters summary row, same accent-soft pill language .doska-stash-topic-chip
   already established elsewhere in this file, with its own inline "x" to drop just that one
   filter without reopening the rail. */
.doska-stash-active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.doska-stash-active-filter-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 6px 4px 10px; border-radius: 6px;
  font-size: 12px; font-weight: 600; color: var(--doska-accent-ink); background: var(--doska-accent-soft);
}
.doska-stash-active-filter-chip button {
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; border-radius: 6px; color: inherit; opacity: 0.7;
}
.doska-stash-active-filter-chip button:hover { opacity: 1; background: rgba(0, 0, 0, 0.12); }
/* Current folder's own title — per direct report ("когда я нахожусь внутри папки, нужна справа
   давать её заголовок"). Negative margin-bottom folds it toward the folder-grid right below
   instead of doubling up with that grid's own gap from .doska-stash-folders-content's flex gap. */
/* justify-content:space-between — per direct report ("напротив Все файлы в правом углу вытащи из
   плюса кнопки новая папка и создать"): title on the left, actions pushed to the row's own right
   edge, not just sitting adjacent to the title. */
.doska-stash-folder-content-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 -4px; }
/* TrashView.tsx/StashArchiveView.tsx's own root wrapper — per direct report ("по отступам
   слишком близко к заметкам"). .doska-stash-folder-content-header's own -4px margin above is
   deliberately meant to fold into a `gap: 20px` flex-column ancestor (see that rule's own
   comment) — StashTab.tsx's "Все файлы" gets exactly that from .doska-stash-folders-content, but
   these two pages never had an equivalent wrapper, so the -4px became the ONLY thing between the
   header and the grid, landing them overlapping instead of apart. Same 20px value
   StashDashboardView.tsx's own .doska-dashboard already uses, for consistency across all three. */
/* Per direct report ("криво расположен заголовок «Корзина»") — this was missing the same
   max-width:1400 + margin:0 auto centering .doska-dashboard (StashDashboardView.tsx) already has;
   on a wide viewport (wider than 1400px content column + sidebar), GlobalPageHeader's own row
   above this (capped+centered at 1400) sat narrower than this content stretching to the full
   available width below it — invisible at a merely-wide test window but real on an actually large
   monitor, which is exactly what read as "crooked." */
/* max-width:1400px + margin:0 auto removed — same class of bug as .doska-board-shell--page's own
   (see that rule's comment): this inner wrapper re-capped-and-centered ITS OWN content a level
   deeper than the now-uncapped outer card, so "Создать" (GlobalAllNotes.tsx et al) still drifted
   left of the header's notifications/profile even after the outer card started tracking the true
   viewport edge. StashTab.tsx's own real board-browsing view (the "Проекты" reference behavior)
   has no equivalent cap at all — it just fills its card's own width — so this one comes off too,
   for the same "every desktop destination behaves like 'board'" reasoning. */
/* Ширина контентной зоны ОДИНАКОВАЯ на всех экранах — per direct request («сделай везде такую же
   ширину, как внутри проекта, эта устраивает»). Замер на 2560: внутри спейса содержимое ограничено
   1400 и отцентрировано (610…2010), а «Все заметки»/«Прочитать позже»/«Корзина» растягивались во
   всю ширину (2418) — строка поиска и сетка на широком мониторе расползались через весь экран.
   1400 — то же значение, что уже держит шапку спейса (1464 = 1400 + два поля по 32). */
.doska-stash-page-content {
  /* см. .doska-stash-content-main — переменная обязана равняться gap ниже */
  --doska-row-gap: var(--s-3);
  display: flex; flex-direction: column; gap: var(--doska-row-gap);
  width: 100%; max-width: 1400px; margin-left: auto; margin-right: auto;
}
/* «Все заметки» ШИРЕ остальных разделов — per direct request «контентную зону можно расширить в
   All notes». Причина не в прихоти: слева появилась панель тегов на 232px, и внутри прежних 1400
   сетке карточек остаётся 1144 — на широком мониторе это колонка посреди пустоты. Прибавляем
   ровно ширину панели и зазор (280 + 24), так что сама сетка снова 1400, как в других разделах,
   а панель встаёт рядом, а не за счёт содержимого. */
.doska-stash-page-content--wide { max-width: 1704px; }
/* Per direct bug report ("поправить отступы сверху от заголовка во Все заметки. сейчас слишком
   близко к дивайдеру") — this component was always built assuming its own parent supplies top
   spacing (.doska-board-shell--page's own padding:28px ... , used by the standalone state.viewMode
   'allNotes' route). Once GlobalAllNotes ALSO started rendering inside the bare .doska-board-shell
   (no padding of its own — see that class's own rule) for the NEW inline "Все заметки" row inside
   ProjectSidebar's tree (viewingAllNotes, DoskaPage.tsx), the heading had nothing pushing it down
   from .doska-project-with-sidebar's own top divider border at all. Scoped to exactly that bare
   context via :not() — the standalone --page route (unaffected here) already gets its spacing
   externally and doesn't need this too. 14px matches StashTab.tsx's own .doska-stash-tab padding,
   the other real content type that already renders correctly in this exact bare wrapper.
   position:absolute+inset:0+overflow-y:auto added per direct report ("во Все заметки не работает
   вертикальный скролл") — same gap as the padding above, but for scrolling instead: the bare
   .doska-board-shell (position:relative, no overflow of its own) never gave this content a scroll
   boundary the way .doska-board-shell--page's own overflow-y:auto does for the standalone route.
   Mirrors .doska-project-tab-content's own exact absolute-fill-plus-overflow-y-auto mechanism —
   the one already proven to make StashTab.tsx scroll correctly inside this same bare wrapper. */
.doska-board-shell:not(.doska-board-shell--page) > .doska-stash-page-content {
  padding: 14px 32px 0; position: absolute; inset: 0; overflow-y: auto;
}
/* GlobalTopics (DoskaPage.tsx) — per direct follow-up ("темы вынести в левую панель. улучшить
   раздел и сделать такой каталог тем"), rebuilt as a persistent two-pane catalog after a real
   reference screenshot (a mega-menu category page: left rail of top-level categories, right side
   split into labelled multi-column groups). Doska's topics are flat tags with no subcategory
   hierarchy, so item TYPE plays the "subcategory group" role on the right instead — the closest
   axis this data actually has. Left nav never goes away (no more chip-grid-then-drill-down/back-
   arrow — see GlobalTopics.tsx's own comment on why a permanent split beats that older shape). */
.doska-stash-topics-layout { display: flex; align-items: flex-start; gap: 28px; }
.doska-stash-topics-nav {
  width: 220px; flex-shrink: 0; display: flex; flex-direction: column; gap: 2px;
  max-height: 70vh; overflow-y: auto;
}
.doska-stash-topics-nav-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: var(--doska-radius-sm); text-align: left;
  font-size: 14px; font-weight: 600; color: var(--doska-text-muted);
}
.doska-stash-topics-nav-item:hover { background: var(--doska-secondary); color: var(--doska-text); }
.doska-stash-topics-nav-item[data-active] { background: var(--doska-accent-soft); color: var(--doska-accent); }
.doska-stash-topics-nav-item-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-stash-topics-nav-item-count {
  flex-shrink: 0; min-width: 20px; padding: 1px 6px; border-radius: 6px; text-align: center;
  font-size: 11px; font-weight: 600; background: var(--doska-hairline); color: var(--doska-text-muted);
}
.doska-stash-topics-nav-item[data-active] .doska-stash-topics-nav-item-count { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-stash-topics-panel { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.doska-stash-topics-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 20px; }
.doska-stash-topics-column { min-width: 0; }
.doska-stash-topics-column-header {
  display: flex; align-items: center; gap: 6px; margin: 0 0 10px;
  font-family: var(--doska-font-display); font-size: 14px; font-weight: 600; color: var(--doska-text);
}
.doska-stash-topics-column-header svg { color: var(--doska-text-muted); flex-shrink: 0; }
.doska-stash-topics-column-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--doska-text-muted); }
.doska-stash-topics-column-list { display: flex; flex-direction: column; gap: 2px; }
.doska-stash-topics-link-row {
  text-align: left; padding: 5px 0; font-size: 13px; color: var(--doska-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doska-stash-topics-link-row:hover { color: var(--doska-accent); text-decoration: underline; }
/* Narrow viewports (mobile's own 'topics' route, TopNav layout) — no room for a persistent side
   rail next to the content; stack nav above panel instead, same breakpoint doska.css already uses
   elsewhere for single-column collapses. */
@media (max-width: 720px) {
  .doska-stash-topics-layout { flex-direction: column; gap: 16px; }
  .doska-stash-topics-nav { width: 100%; flex-direction: row; flex-wrap: wrap; max-height: none; overflow: visible; }
  .doska-stash-topics-nav-item { flex: 0 0 auto; }
}
.doska-stash-folder-content-title {
  /* Крупнее — per direct request («увеличим шрифт для заголовка раздела „Коллекции“, „Проекты“,
     „Прочитать позже“, „Корзина“»). 22px читались как подпись над сеткой, а это название места,
     где человек находится: единственный текст, отвечающий на вопрос «где я». */
  font-family: var(--doska-font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em;
  color: var(--doska-text);
  margin: 0;
  display: flex; align-items: center; gap: 6px; justify-content: space-between;
}
/* Подписи разделов внутри проекта: «Папки» над сеткой папок и «Заметки» над сеткой карточек (per
   direct requests «внутри проекта над заметками введём заголовок заметки» + «также над папками
   заголовок папки»). Одна типографика на обе, чтобы читались как пара, но живут они в РАЗНЫХ
   местах разметки: «Папки» — самостоятельный h2 прямо над .doska-stash-folder-grid, «Заметки» —
   внутри .doska-stash-folder-content-title, потому что напротив него в той же строке стоят
   сортировки («фильтры по сортировке будут напротив заголовка Заметки»), а у той шапки эта
   раскладка уже есть. Размер меньше 22px самой шапки: это подписи разделов, а не название
   страницы. */
.doska-stash-notes-heading {
  font-family: var(--doska-font-display); font-size: 16px; font-weight: 600;
  color: var(--doska-text); letter-spacing: -0.01em; line-height: 1.2;
}

/* Табы «Все / Недавно просмотренные / Созданные мной» под заголовком «Все заметки» (per direct
   request). Горизонтальная лента, на телефоне прокручивается вбок вместо переноса: три подписи
   по-русски длиннее английских оригиналов и в 390px в одну строку не помещаются, а перенос на
   вторую строку читался бы как две группы табов.
   Полоска-подчёркивание, а не пилюля: рядом уже стоят пилюли сортировки и вида, и четвёртая
   визуально спорила бы с ними за то, что тут главный переключатель. */
/* Начиная с этой ширины три подписи заведомо помещаются — снимаем прокрутку совсем, чтобы ленту
   нельзя было сдвинуть даже случайно. Порог с запасом: измеренная ширина трёх табов ~390px. */
/* На узких телефонах (360px — распространённый Android) три подписи не помещались буквально на
   9px, и лента оставалась прокручиваемой — то есть баг «двигаются при зажатии» никуда бы не делся.
   Поджимаем горизонтальные отступы и промежуток: 3×4 + 2×2 = 16px экономии, расчётная ширина
   ленты 345 -> 329 при доступных 336. Вертикальные отступы не трогаем — высота нажатия остаётся
   прежней. */
/* Строка действий во «Все заметки» на мобилке: «Создать», сортировка и переключатель вида теперь
   в ОДНОМ ряду (per direct request «создать сделать в круге с плюсом рядом с сортировкой, в одной
   линии»), поэтому их размеры надо привести к общему — иначе кружок 44px стоит рядом с пилюлей
   сортировки другой высоты и переключателем вида третьей, и ряд выглядит собранным наспех.
   Общая высота 44px — минимум удобного нажатия пальцем, к нему и равняем всё остальное.
   Иконки внутри 18px: это то же значение, что задаёт общее мобильное правило для svg в кнопках,
   продублировано здесь адресно, потому что переключатель вида вкладывает svg на уровень глубже и
   под общий селектор `button > svg` не попадает. */
@media (max-width: 768px) {
  /* Внутри папки: «+» и «···» опускаются ПОД название и идут именно в таком порядке
     (per direct request «в папке на мобилке нужно плюс и три точки опустить под название папки,
     плюс первым идёт»).
     Механика та же, что в шапке проекта: заголовок уровня — flex-строка с space-between, поэтому
     разрешаем ей перенос и отдаём обеим половинам по 100% ширины; порядок задаём order'ом, а не
     перестановкой в разметке — в JSX «···» приходит первым, потому что extraActions по контракту
     рендерится последним, и менять контракт ради порядка на одной ширине не стоит.
     Размеры кругов приведены к проектным 44px — «они также должны быть как в проекте». */
  .doska-stash-folder-content-title { flex-wrap: wrap; row-gap: 12px; }
  .doska-stash-folder-title-actions {
    flex-basis: 100%; order: 2; gap: 8px; justify-content: flex-start;
  }
  .doska-stash-folder-title-actions > .doska-stash-folder-title-menu { order: 2; }
  /* Селектор ТРОЙНОЙ (0,3,0), а не просто удвоенный класс — готча №1 в чистом виде, из-за неё
     кружок «···» в папке на мобилке оставался 32px рядом с 44px «+» (per direct report «в папке
     на мобилке круг для три точки сделать такой же как и с плюсом... по размеру»). Ниже по файлу
     живёт `.doska-stash-folder-title-menu .doska-stash-folder-tab-menu-btn { width: 32px }` —
     ровно та же специфичность (0,2,0), что была здесь, и он ИДЁТ ПОЗЖЕ, поэтому выигрывал даже
     внутри медиазапроса (вложенность специфичность не повышает). Добавленный родительский класс
     поднимает это правило до (0,3,0) и снимает ничью. */
  .doska-stash-folder-title-menu .doska-stash-folder-tab-menu-btn.doska-stash-folder-tab-menu-btn,
  .doska-stash-folder-tab-menu-btn.doska-stash-folder-tab-menu-btn {
    width: 44px; height: 44px; border-radius: 6px;
    background: var(--doska-accent-soft); color: var(--doska-text);
    opacity: 1; pointer-events: auto;
  }
  .doska-stash-folder-content-actions { align-items: center; gap: 8px; }
  /* Сортировка и переключатель вида приведены к тому же виду, что «+» и «···» — per direct request
     «сделать сортировку и вид список/плитка аналогично». Были: пилюля с подписью и сегментированный
     переключатель другой высоты; стали: круглые кнопки 44x44 с одной иконкой, как остальные
     действия в этой строке.
     font-size: 0 гасит текстовую подпись, не трогая иконку: у svg внутри задана явная ширина/высота
     (см. общее мобильное правило для иконок), поэтому от кегля он не зависит. Это надёжнее, чем
     заворачивать каждую подпись в свой span — подписи тут в трёх разных компонентах. */
  .doska-stash-folder-content-actions .doska-stash-group-toggle {
    width: 44px; height: 44px; min-height: 44px; padding: 0;
    border-radius: 6px; justify-content: center; font-size: 0; gap: 0;
    background: var(--doska-accent-soft); border-color: transparent;
  }
  /* Переключатель вида — два отдельных круга вместо слитного сегмента, чтобы ряд читался как один
     набор одинаковых кнопок. */
  /* Тот же сегмент, что и на вебе (см. базовое правило .doska-stash-view-toggle), просто крупнее:
     40px кнопка + по 3px паддинга дорожки = 46px высоты, вровень с соседними 44-пиксельными
     кругами в этом ряду. Прежний вариант — две отдельные круглые кнопки с зазором 8px, активная
     залита accent — заменён по прямому запросу со скриншотом-референсом. */
  .doska-stash-folder-content-actions .doska-stash-view-toggle {
    height: auto; align-items: center; gap: 2px; border: none; padding: 3px;
    background: var(--doska-accent-soft); border-radius: 6px;
  }
  .doska-stash-folder-content-actions .doska-stash-view-toggle-btn {
    width: 40px; height: 40px; border-radius: 6px; padding: 0;
    background: none; color: var(--doska-text-muted);
  }
  .doska-stash-folder-content-actions .doska-stash-view-toggle-btn[data-active] {
    background: var(--doska-surface-raised); color: var(--doska-text);
    box-shadow: none;
  }
  .doska-stash-folder-content-actions svg { width: 18px; height: 18px; }
  /* Кружок «Создать» в этом же ряду — та же высота, что у соседей. */
  .doska-stash-folder-content-actions .doska-project-hero-mobile-create.doska-project-hero-mobile-create {
    width: 44px; height: 44px; flex-shrink: 0;
  }
}
/* flex-элемент внутри шапки: не даём подписи растягиваться и толкать сортировки — они должны
   стоять у правого края (см. .doska-stash-folder-content-title's space-between выше). */
.doska-stash-notes-heading { flex: 0 1 auto; min-width: 0; }
/* Per direct follow-up ("эту часть внутри папки, когда я нахожусь, нужно спустить на уровень
   ниже") — same stacked title-then-actions layout the mobile-only rule further down already uses,
   now also at desktop widths while browsing inside a folder specifically (root level keeps title/
   actions on one row — see StashTab.tsx's own JSX comment on this same attribute). */
.doska-stash-folder-content-header[data-in-folder] {
  flex-direction: column; align-items: flex-start; gap: 10px;
}
/* Both rows stretch to the header's own full width once stacked — needed for their own
   justify-content (space-between / flex-end below) to have any row width to actually push against;
   align-items:flex-start above only gives each row its own intrinsic content width otherwise. */
.doska-stash-folder-content-header[data-in-folder] .doska-stash-folder-content-title { width: 100%; }
/* Per direct follow-up ("а низ с фильтрами часть эту подвинуть в правый угол" /
   "это внутри папки подвинуть в карйний правй угол") — Темы/5 в ряд/Сортировка/Сетка-Список right-
   aligned under the title's own "•••"+Создать cluster, superseding this row's earlier left-aligned
   pass (see its own now-stale history above — the row only had ONE other item, Темы, when that
   first landed; now that Создать moved up into the title row too, right-aligned reads cleaner). */
.doska-stash-folder-content-header[data-in-folder] .doska-stash-folder-content-actions {
  width: 100%; justify-content: flex-end;
}

/* Шапка «Заметки» ВНУТРИ папки ведёт себя как в корне проекта: заголовок слева, фильтры напротив
   него справа, одной строкой (per direct request «в папках нужно как в проектах фильтры сделать на
   одной линии с заголовком заметки на вебе»).
   Правило [data-in-folder] выше раскладывает шапку в КОЛОНКУ — это верно для заголовка УРОВНЯ
   (имя папки плюс «···»), но не для строки с фильтрами, которая описывает сетку карточек под
   собой. Обе шапки рисует одна функция renderContentHeader, поэтому в разметку добавлен
   data-variant, чтобы CSS мог их различить.
   Селектор удвоен: у правила выше та же специфичность (0,2,0), и полагаться на порядок в файле
   нельзя (готча №1). */
.doska-stash-folder-content-header[data-variant="notes"][data-variant="notes"] {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
}
.doska-stash-folder-content-header[data-variant="notes"][data-variant="notes"] .doska-stash-folder-content-title {
  width: auto; flex: 1 1 auto; min-width: 0;
}
.doska-stash-folder-content-header[data-variant="notes"][data-variant="notes"] .doska-stash-folder-content-actions {
  width: auto; flex: 0 0 auto; justify-content: flex-end;
}

/* Шапка «Заметки» ВНУТРИ папки ведёт себя как в корне проекта: заголовок слева, фильтры напротив
   него справа, одной строкой. Правило [data-in-folder] выше раскладывает шапку в колонку — это
   верно для заголовка УРОВНЯ (имя папки плюс «···»), но не для строки с фильтрами, которая
   описывает сетку карточек под собой.
   Селектор с data-variant="notes" точнее, чем [data-in-folder] (0,2,0 против 0,2,0 — та же
   специфичность), поэтому дополнительно удвоен: порядок в файле решать не должен (готча №1). */
.doska-stash-folder-content-header[data-variant="notes"][data-variant="notes"] {
  flex-direction: row; align-items: center; justify-content: space-between; gap: 12px;
}
.doska-stash-folder-content-header[data-variant="notes"][data-variant="notes"] .doska-stash-folder-content-title {
  width: auto; flex: 1 1 auto; min-width: 0;
}
.doska-stash-folder-content-header[data-variant="notes"][data-variant="notes"] .doska-stash-folder-content-actions {
  width: auto; flex: 0 0 auto; justify-content: flex-end;
}

/* «Все заметки» на ДЕСКТОПЕ: заголовок, «Создать» и фильтры — одной строкой (per direct request
   «нужно чтобы фильтры были на одной строке с создать, перенеси правее кнопки создать»).
   Экран помечен [data-in-folder] (чтобы получить общую шапку с сортировками), а это правило выше
   раскладывает такую шапку в КОЛОНКУ: заголовок с «Создать» сверху, ряд фильтров отдельной
   строкой под ними — что и было на скриншоте. Возвращаем строку только для этого экрана.
   h2 остаётся flex:1 со своим space-between, поэтому «Создать» уезжает к правому краю СВОЕЙ
   коробки, то есть встаёт вплотную слева от фильтров — ровно «правее кнопки создать».
   Селектор утроен: правила [data-in-folder] выше — (0,2,0) и (0,3,0), та же специфичность, что
   дала бы пара классов, и они стоят выше по файлу (готча №1). */
@media (min-width: 769px) {
  .doska-allnotes-header.doska-allnotes-header.doska-allnotes-header {
    flex-direction: row; align-items: center; gap: 12px;
  }
  .doska-allnotes-header.doska-allnotes-header.doska-allnotes-header .doska-stash-folder-content-title {
    width: auto; flex: 1 1 auto; min-width: 0;
  }
  .doska-allnotes-header.doska-allnotes-header.doska-allnotes-header .doska-stash-folder-content-actions {
    width: auto; flex: 0 0 auto; justify-content: flex-end;
  }
}
/* Сортировка/вид — в правый угол ОДНОЙ строкой с заголовком на мобилке (per direct request «а
   сортировки в правый угол напротив заголовка на одну строку», затем «давай внутри проекта
   аналогично расположение сделаем этой части»).

   Область расширялась дважды. Сначала правило было сужено до одного экрана классом
   .doska-allnotes-header — из опасения, что внутри настоящей папки в той же строке живёт ещё
   кластер «•••» и станет тесно. Потом ограничение сняли до всех шапок [data-in-folder] («давай
   внутри проекта аналогично расположение сделаем этой части»). Теперь атрибут убран совсем: с
   появлением заголовка «Заметки» на КОРНЕВОМ уровне проекта (там [data-in-folder] нет по
   определению) сортировки должны стоять напротив него ровно так же («фильтры по сортировке
   которые есть будут напротив заголовка Заметки»). Класс .doska-allnotes-header в разметке
   оставлен — он ничего не стоит и пригодится, если экраны снова разойдутся.

   Это правило намеренно перекрывает ДВА более ранних мобильных блока: `flex-direction: column`
   (~строка 3291, «тут нужно фильтры перенести под название папки») и `flex: 1 0 100%` у
   заголовка (~строка 11109, из блока, где между заголовком и кнопками жила строка поиска — её на
   мобилке больше нет). Оба писались под другую наполненность строки.

   Заголовок сжимаемый (flex: 1 1 auto + min-width: 0), поэтому при длинном названии папки место
   отдаётся ему, а кнопки держат свою ширину (flex: 0 0 auto) и не переносятся.

   Селекторы утроены (готча №1): правила [data-in-folder] выше — это (0,2,0) и (0,3,0), ровно та
   же специфичность, что дала бы пара классов; при равенстве решал бы порядок в файле, а на него
   полагаться в девятитысячестрочном стиле нельзя. */
@media (max-width: 768px) {
  .doska-stash-folder-content-header.doska-stash-folder-content-header.doska-stash-folder-content-header {
    flex-direction: row; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px;
  }
  .doska-stash-folder-content-header.doska-stash-folder-content-header.doska-stash-folder-content-header .doska-stash-folder-content-title {
    width: auto; flex: 1 1 auto; min-width: 0;
    /* Кегль ГЛАВНОГО заголовка раздела («Все заметки», «Категории», «Проекты», «Прочитать позже»,
       «Корзина») — per direct request («речь про основные заголовки для основных разделов… сами
       заголовки „Все заметки“ и т.п.»). Замер до правки: 20px против 32px на десктопе — название
       раздела читалось мельче, чем заголовки секций внутри него (28px), то есть иерархия стояла
       вверх ногами. 30px возвращают порядок: раздел крупнее своих секций и при этом влезает в
       одну строку рядом с кнопками (заголовок сжимаемый, см. flex выше).
       Селектор утроен вслед за родительским правилом — иначе более поздние одиночные правила
       заголовка перебьют кегль (готча №1). */
    font-size: 30px; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05;
  }
  .doska-stash-folder-content-header.doska-stash-folder-content-header.doska-stash-folder-content-header .doska-stash-folder-content-actions {
    /* Сжимается СТРОКА ДЕЙСТВИЙ, а не заголовок — замер на «Категориях»: при трёх кнопках
       («Сначала большие», «Собрать категории», «Добавить заметку») заголовок обрезался
       многоточием. Кнопкам сжатие не вредит: у них своя горизонтальная прокрутка (см. правило
       выше в этом же медиазапросе), а название раздела обрезать нельзя — это единственный текст,
       отвечающий «где я». */
    width: auto; flex: 0 1 auto; min-width: 0; justify-content: flex-end; overflow-x: auto;
  }
}
/* "•••" + Создать, grouped as one flex item so .doska-stash-folder-content-title's own
   space-between (above) pushes both together to the row's far right edge — per direct follow-up
   ("кнопку создать перенести на уровень где три точки и подвинуть в правый угол. три точки тоже
   туда"). */
.doska-stash-folder-title-actions { display: flex; align-items: center; gap: 8px; }
/* Per direct report ("когда я нахожусь внутри папки, сейчас сюда нужно тоже добавить три точки,
   чтобы я смог удалять их") — this trigger is the ONLY rename/delete entry point once you've
   drilled into a folder (its own grid card isn't on screen anymore), so it can't stay behind the
   card's hover-only reveal (.doska-stash-folder-tab-menu-btn's own base opacity:0/pointer-events:
   none) the way FolderCard's copy does — same reasoning as that button's own mobile-always-visible
   fix just below in the file, just unconditional here instead of media-gated. */
/* Per direct follow-up ("поправить размер кружка три точки" + "и он должен быть в обводке виден,
   как в проекте аналогично", then "кружок с точкой сделай как в проекте. сейчас они разные по
   иконке и заливке") — the base 24px/transparent-until-hover/muted-gray circle (fine on a grid
   card, where hover is the ONLY way it's ever noticed) read as small, easy to miss, and visually
   off next to the much taller Создать pill. Matched to ProjectHeader.tsx's own Пригласить/
   Поделиться/"···" trio (.doska-inline-action) on every axis that trio itself is styled on: same
   28px circle (7px vertical padding around a 14px icon), same permanent accent-soft fill instead
   of hover-only, and same accent-colored icon instead of the base rule's own muted-gray — the
   base .doska-stash-folder-tab-menu-btn.doska-stash-folder-tab-menu-btn rule sets color:
   var(--doska-text-muted), which needs its own override here for the same reason the background
   does. The icon itself is MoreHorizontal now too (StashTab.tsx), not MoreVertical — the actual
   glyph the project's own trigger uses. */
.doska-stash-folder-title-menu .doska-stash-folder-tab-menu-btn {
  opacity: 1; pointer-events: auto;
}
/* Круг «···» и пилюля «Создать» рядом с ним — РОВНО одной высоты, per direct request «поправить
   размеры круг три точки в папках и в вебе и мобилке, высота нужна одинаковая».

   Прежде круг был жёстко 32px, а пилюля высоты вообще не имела: её высоту задавали 7px паддингов
   плюс строка текста 12.5px — живой замер давал ~32.75px. То есть «одинаково» держалось на
   совпадении шрифтовых метрик и разъезжалось от любой правки кегля или line-height. Теперь высота
   у обоих задана явным числом (34px), а у пилюли вертикальный паддинг убран, чтобы он эту высоту
   не переопределял; ширина пилюли по-прежнему по содержимому.

   Обёрнуто в @media (min-width: 769px) НАМЕРЕННО, а не написано с более высокой специфичностью:
   мобильное правило для этой же кнопки (44px, выше по файлу) — тоже (0,3,0), и при равенстве
   победил бы порядок в файле, то есть этот блок. Медиазапросы просто не пересекаются — гонки нет
   вообще (готча №1). */
@media (min-width: 769px) {
  .doska-stash-folder-title-menu .doska-stash-folder-tab-menu-btn {
    width: 34px; height: 34px; padding: 0;
  }
  .doska-stash-folder-title-actions .doska-stash-folder-content-action {
    height: 34px; padding-top: 0; padding-bottom: 0;
  }
}
.doska-stash-folder-title-menu .doska-stash-folder-tab-menu-btn.doska-stash-folder-tab-menu-btn {
  background: var(--doska-accent-soft); color: var(--doska-accent);
}
.doska-stash-folder-title-menu .doska-stash-folder-tab-menu-btn:hover { filter: brightness(1.1); background: var(--doska-accent-soft); }
/* Click-to-rename the folder's own title, right in the content header — per direct request
   ("папку имея могу также переименовать когда нажал на ее название. также как в имени проект такая
   же логика"). Same idiom as .doska-project-hero-title-edit/-input (ProjectHeader.tsx's own hero
   title), just at this row's smaller 22px scale instead of the hero's 40px — both explicitly repeat
   .doska-stash-folder-content-title's own font-family/size/weight/color rather than relying on
   inheritance, since .doska-root button's own reset only guarantees font-family/color, not size or
   weight, and would otherwise fall back to the browser's own default button metrics. */
.doska-stash-folder-title-edit {
  display: block; text-align: left; background: none; border-radius: var(--doska-radius-sm);
  font-family: var(--doska-font-display); font-size: 24px; font-weight: 600; color: var(--doska-text);
}
.doska-stash-folder-title-edit.doska-stash-folder-title-edit { cursor: text; font-family: var(--doska-font-display); }
.doska-stash-folder-title-edit:hover { color: var(--doska-text-muted); }
.doska-stash-folder-title-input {
  display: block; max-width: 420px; background: none; border: none; outline: none; padding: 0;
  font-family: var(--doska-font-display); font-size: 24px; font-weight: 600; color: var(--doska-text);
}
/* Новая папка/Создать — per the same direct report, pulled back out of the "+" popover they were
   briefly consolidated into (see this file's own git history / StashTab.tsx's comment on this
   header) into two plain, always-visible buttons. */
.doska-stash-folder-content-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* Тип/Темы moved into this row (mobile only) per direct request with a reference screenshot —
   see .doska-stash-typetopics-dropdowns' own comment below and StashTab.tsx's own JSX comment.
   flex-shrink:0 on every child keeps the mobile overflow-x:auto scroll (see the mobile media
   query further down) from squishing any of these instead of scrolling past them. */
.doska-stash-folder-content-actions > * { flex-shrink: 0; }
.doska-stash-folder-content-action {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--doska-radius-md); /* капсула → шкала: в «Графите» капсулу носят фильтры, действие имеет радиус 12 */ font-size: 13px; font-weight: 600; white-space: nowrap;
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file. "они
   черные" — flat black/white fill (var(--doska-accent) is the same theme-reactive near-black/
   near-white token every other primary action in this file uses, not a literal #000 that would go
   invisible-on-black in dark theme). */
.doska-stash-folder-content-action.doska-stash-folder-content-action { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-stash-folder-content-action:hover { filter: brightness(1.1); }
/* Сетка/Список — per direct report ("это нужно в правый угол, рядом друг с другом. но не над"),
   plain circular icon buttons (not the bordered .doska-stash-group-toggle pill Тип/Темы/etc. use
   further down) sitting right next to Новая папка/Создать on the same line. */
/* Сортировка — голая иконка без пилюли, по прямому запросу со скриншотом-референсом («сделать
   также для сортировки и вида»): на нём слева стоит просто значок «⇅», без фона и рамки, а весь
   вес строки забирает переключатель вида справа.
   Тройной селектор нужен из-за мобильного правила `.doska-stash-folder-content-actions
   .doska-stash-group-toggle` (0,2,0), которое красит эту же кнопку в круг с заливкой: тот же класс
   .doska-stash-group-toggle носит ещё и кнопка «Темы», и её круг трогать нельзя — поэтому
   отделяем именно сортировку через её обёртку .doska-stash-sort-wrap. Размеры (в том числе
   мобильные 44px) намеренно НЕ переопределяются: площадь нажатия остаётся прежней, снимается
   только фон. */
.doska-stash-sort-wrap .doska-stash-group-toggle.doska-stash-group-toggle {
  background: none; border-color: transparent; box-shadow: none;
}
.doska-stash-sort-wrap .doska-stash-group-toggle.doska-stash-group-toggle:hover {
  background: var(--doska-accent-soft);
}
/* Сегментированный переключатель «сетка/список» — по тому же референсу: серая дорожка-пилюля,
   внутри две иконки, активная сидит на светлой «таблетке». Раньше это были две отдельные круглые
   кнопки с зазором, и какая из них активна, читалось только по заливке — то есть выглядело как два
   независимых действия, а не как один переключатель из двух положений.
   Дорожка на --doska-accent-soft (8% чёрного в светлой теме, 14% белого в тёмной), а не на
   --doska-surface: панель, в которой стоит переключатель, сама бывает на surface, и тогда дорожка
   того же цвета просто исчезла бы. accent-soft видно на любом фоне в обеих темах. */
/* Скругления — та же шкала, что у переключателя вида в Задачах (.doska-task-views/-view: дорожка
   radius-md, кнопка radius-sm), а не полная пилюля: тот же смысл «переключатель из двух
   положений» читался двумя разными кривизнами в двух местах приложения. */
.doska-stash-view-toggle {
  display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0;
  padding: 3px; border-radius: var(--doska-radius-md); background: var(--doska-accent-soft);
}
.doska-stash-view-toggle-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: var(--doska-radius-sm);
}
/* Doubled selector — same .doska-root button { color: inherit } specificity trap as elsewhere in
   this file. */
.doska-stash-view-toggle-btn.doska-stash-view-toggle-btn { color: var(--doska-text-muted); }
.doska-stash-view-toggle-btn:hover { color: var(--doska-text); background: var(--doska-hairline); }
/* Активный сегмент — светлая «таблетка» поверх дорожки, а не ещё один accent-soft: на дорожке
   того же цвета он был бы неотличим от неподсвеченного соседа. */
.doska-stash-view-toggle-btn[data-active] {
  color: var(--doska-text); background: var(--doska-surface-raised);
  box-shadow: none;
}
/* Folder-card grid — per direct request ("в табе папки, в превью папки 4 карточки что там
   внутри"). Own class, deliberately NOT wired to gridDensity/useStashGridDensity — that setting
   is a content-card density preference, not a folder-count-per-row one.
   Per direct follow-up ("папки внутри проекта должны быть в горизонтальном скролле в линию") —
   was a wrapping grid (repeat(auto-fill, minmax(180px, 1fr))); a project with more than a
   row's worth of folders grew tall instead of staying a single scannable line. flex-wrap:nowrap
   + overflow-x turns it into one horizontally-scrolling row instead — each card needs its own
   explicit width now (flex-basis below) since a flex row, unlike the old grid, won't size
   children on its own. Desktop only — the @media(max-width:768px) override further down
   already redoes this as compact stacked rows for its own, unrelated reason (matching the
   sidebar tree's row language) and stays untouched. */
@keyframes doska-folder-spring-blink {
  0%, 50%, 100% { background: var(--doska-accent); }
  25%, 75% { background: var(--doska-accent-soft); }
}
/* Per direct request ("папки на мобилке сделать горизонтальный скролл") — reverting an earlier
   mobile treatment that stacked these into a full-width vertical row list (compact in theory, but
   per the follow-up screenshot the actual rows rendered far taller than intended, one per line
   eating most of the screen). Back to the SAME horizontal-scrolling tile shape the base rule above
   already gives desktop (icon/title/count centered, flex-wrap:nowrap + overflow-x:auto) — swipeable
   sideways instead of stacked, just a smaller flex-basis/min-height/padding so more of them fit on
   a phone-width screen without needing desktop's full 180px tile. */

/* МОБИЛКА: папки выглядят как в вебе — плитка с иконкой НАД названием НАД счётчиком (per direct
   request «на мобилке папки верни в их вид как в вебе», отменяющий предыдущую вертикальную
   раскладку строками).

   Вернут именно ВИД, а не механика прокрутки: базовое десктопное правило — это одна строка
   `flex-wrap: nowrap` + `overflow-x: auto`, и на телефоне такая строка снова дала бы горизонтальный
   скролл, который просили убрать отдельным запросом («без горизонтального скролла»). Поэтому здесь
   плитки ПЕРЕНОСЯТСЯ: `flex-wrap: wrap` + `overflow-x: visible`, по две в ряд
   (`calc((100% - 10px) / 2)` при gap 10px). Внутренний .doska-stash-folder-card-body не трогаем
   вовсе — он и так flex-column, то есть ровно десктопный вид плитки.

   Историческая заметка: раньше этот блок обязан был стоять ПОСЛЕ правила add-карточки
   (.doska-stash-folder-card-add), у которой селектор был удвоен и задавал свою min-height — самый
   первый мобильный блок сидел выше и молча проигрывал ей по порядку (готча №1). Сама add-карточка
   с тех пор удалена из разметки, а её осиротевшие правила вычищены при сплошной сверке классов;
   ограничение на порядок больше не действует, но пример того, как это ловится, оставлен. */
@media (max-width: 768px) {
  /* «и папки соответственно» (per direct request вместе с укрупнением названия проекта): заголовок
     уровня — имя открытой папки — и подписи разделов «Папки»/«Заметки» подтянуты вверх по размеру,
     чтобы иерархия читалась ступенькой (проект 34 → папка 20 → раздел 18), а не как три почти
     одинаковых размера подряд. */
  .doska-stash-folder-content-title { font-size: 20px; }
  .doska-stash-notes-heading { font-size: 18px; }
}

/* Per direct request ("под папками показать на мобилке пагинацию") — a swipe-carousel dot per
   folder, tracking StashTab.tsx's own scroll-position state (handleFolderGridScroll). Desktop
   never scrolls this row in practice (wide enough to show everything at once), so these dots are
   mobile-only, JS-gated (isMobile) rather than a bare CSS media hide — no point rendering/updating
   this state at all on a width where it'd never be visible anyway. */

/* Mobile-only again — per direct follow-up ("на первой вложенности проекта, хлеб должен быть над
   обложкой"): desktop's own "where am I" indicator moved to a NEW strip in ProjectHeader.tsx
   itself (.doska-project-header-breadcrumb, further down), sitting above the hero rather than
   down here in the content column — keeping both visible at once would just be two breadcrumbs
   saying the same thing. Mobile has no such strip (ProjectHeader's own is desktop-only, no room
   up top there), so this stays its one and only path indicator, same job it always did. */
/* 768px, not 900 — matching useIsMobile's own cutoff exactly (ProjectHeader.tsx's new strip
   gates on that same hook). A mismatched breakpoint here left a real 769-900px gap where BOTH
   breadcrumbs rendered at once — the exact "two breadcrumbs saying the same thing" this was
   meant to prevent, just not actually prevented by a 900px threshold on one side and 768px on
   the other. */
/* Per direct report ("внутри проекта на мобиле убрать хлебные крошки") — the mobile-only @media
   override that used to re-enable this (see this rule's own history just above) is gone; stays
   display:none unconditionally now. The back arrow up in .doska-project-header-top (one level at
   a time) and the folder cards themselves are what's left for "where am I / go back" on mobile. */
.doska-stash-breadcrumb { display: none; align-items: center; flex-wrap: wrap; gap: 2px; font-size: 13px; }
.doska-stash-breadcrumb-crumb { display: flex; align-items: center; gap: 2px; }
.doska-stash-breadcrumb-item.doska-stash-breadcrumb-item { color: var(--doska-text-muted); padding: 4px 6px; border-radius: var(--doska-radius-sm); font-weight: 600; }
.doska-stash-breadcrumb-item:hover { color: var(--doska-text); background: var(--doska-hairline); }
.doska-stash-breadcrumb-item[data-active].doska-stash-breadcrumb-item { color: var(--doska-text); }
/* The "Все" crumb specifically is also a drop target (see its own onDrop in StashTab.tsx, the
   left tree's old root row moved here) — same highlight treatment every other folder drop target
   in this file uses. Solid ring, not just a soft tint — per direct report ("убирать прозрачность,
   чтобы было видно, в какую хлебную крошку ты перетаскиваешь"), see
   .doska-project-header-breadcrumb-item's own matching comment for the full reasoning (the
   browser's own semi-transparent native drag-ghost sits on top of whatever's underneath the
   cursor; a subtle tint disappeared under it, a solid ring reads through). */
.doska-stash-breadcrumb-item[data-drag-over].doska-stash-breadcrumb-item {
  background: var(--doska-accent-soft); color: var(--doska-accent-ink);
  box-shadow: 0 0 0 2px var(--doska-accent); font-weight: 600;
}
.doska-stash-breadcrumb-sep { color: var(--doska-text-muted); }

/* FolderCard's own kebab "•••" trigger shape (rename/delete), ported from the old flat FolderTab
   pill's own version of this same menu button almost unchanged. */
.doska-stash-folder-tab-menu-btn {
  position: relative; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s var(--doska-ease), background 0.15s var(--doska-ease);
}
.doska-stash-folder-tab-menu-btn.doska-stash-folder-tab-menu-btn { color: var(--doska-text-muted); }
/* Per direct follow-up ("три точки сделать внутри папки по стилю, сейчас другая подложка") —
   matched to the accent-soft/accent pairing .doska-stash-folder-title-menu's own hover already
   uses (that rule's own comment has the full "why match ProjectHeader.tsx" reasoning): a plain
   neutral-gray hover fill here read as a different "style" of the same "•••" button once the
   title's own copy was already accent-tinted. Hover-reveal behavior itself (opacity:0 at rest,
   this .doska-stash-folder-card:hover-gated below) is untouched — a dense grid of folder cards
   still wants the corner button to stay quiet until actually hovered, only the color it reveals
   changes. */
.doska-stash-folder-tab-menu-btn:hover { background: var(--doska-accent-soft); color: var(--doska-accent); }
/* Mobile audit finding — this hover-gated opacity:0/pointer-events:none (base rule above) never
   gets revealed on a touch device (no hover), and unlike .doska-stash-card-menu-btn's own mobile
   neutralization, there's no drawer/detail-view fallback for a FOLDER's rename/delete — this menu
   is the only place those actions exist at all, so hiding it would leave a real dead end rather
   than "relocated one tap deeper". Same always-visible fix and same 30px size already applied to
   .doska-gallery-cover-btn for the identical hover-gate class of bug. Placed after the base rule
   (not inside the earlier @media block that repositions this button) and doubled-selector, since
   an equal-specificity rule earlier in the file loses to this one on source order otherwise. */
@media (max-width: 768px) {
  .doska-stash-folder-tab-menu-btn.doska-stash-folder-tab-menu-btn {
    opacity: 1; pointer-events: auto; width: 30px; height: 30px;
  }
}
.doska-stash-folder-tab-rename-input {
  font: inherit; color: inherit; background: transparent; border: 1px solid transparent; outline: none; width: 90px; padding: 0;
}
/* Same visible-focus-state gap and fix as .doska-stash-folder-card-rename-input above. */
.doska-stash-folder-tab-rename-input:focus { border-color: var(--doska-accent); }
/* Per direct report with a screenshot ("выделение будет черным") — the global .doska-root
   ::selection uses --doska-accent-soft (see that rule's own comment), which on a dark-filled
   active row reads as barely there. Explicit black/white, not a theme token — deliberately NOT
   theme-reactive, same as the AI chat bubble's own ::selection override this was matched to. */
.doska-stash-folder-tab-rename-input::-moz-selection { background: #000; color: #fff; }
.doska-stash-folder-tab-rename-input::selection { background: #000; color: #fff; }
/* flex:1 + min-width:0 — per direct follow-up ("название проекта если длинное и доходит до
   середины, переносить на вторую строку"). Flex items default to min-width:auto (can't shrink
   below their own content's intrinsic width), so a long single-line title would otherwise just
   keep growing and shove .doska-project-hero-actions off toward/past the row's right edge instead
   of wrapping. min-width:0 lets this box actually shrink to make room for the actions' own fixed
   width (that side gets flex-shrink:0 below); once it does, the title's normal (already default)
   white-space wraps onto a second line on its own — no extra text-wrap CSS needed. */
/* Per direct request ("сделай название рядом с обложкой") — row, not column: cover square LEFT,
   title to its right, vertically centered against each other (align-items:center). Was a column
   (icon stacked above the title) — see git history for that layout if it's ever wanted back. */
.doska-project-hero-main { display: flex; flex-direction: row; align-items: center; gap: 14px; flex: 1; min-width: 0; }
/* 64px -> 48px — per direct request ("обложку в проекте сделать поменьше"). */
/* Обложка на мобилке была ненадолго скрыта (запрос «убери на мобилке обложку рядом с заголовком
   проекта»), затем возвращена по прямому запросу «верни обложку на мобилке» — правило снято, а не
   переписано, так что мобилка снова наследует базовое 40x40 выше. */
/* 52px -> 40px — per direct request ("подбери правильный размер имени проекта по балансу. на
   вебе"): the earlier 52px (itself a bump from 32px, see the removed comment above — "fill the
   visual weight the cover used to carry") read as oversized next to the rest of the hero — a
   64px cover icon right beside it and a 13px Создать/Пригласить/Поделиться row right below. 40px
   sits between those two, still a clear headline but not dominating either neighbor. Mobile's own
   34px override (see this file's own mobile rule) is untouched — it was already independently
   tuned for a narrow viewport, not derived from this value. */
/* 40px -> 22px — per direct request ("размер текста для имени проекта сделай такой же как для
   имен папок"), matching .doska-stash-folder-content-title's own font-size exactly (that value is
   the reference point, not the other way around — the request named folder titles as the target
   to match). Font-weight/letter-spacing/line-height untouched — only size was asked for. */
/* Крупнее и цветом пары — как заголовок открытой подборки. Прежние 22px были рассчитаны на
   прозрачную полосу; на цветном блоке такой заголовок читается как подпись, а не как название
   места, где ты находишься. */
/* Удвоенный класс — готча №1, пойманная здесь живым замером: заголовок это <button>, и
   `.doska-root button` со специфичностью (0,1,1) перебивал цвет у одиночного класса (0,1,0).
   На экране это выглядело как «цвет не применился»: блок цветной, а название осталось серым. */
.doska-project-hero-title.doska-project-hero-title {
  /* Кегль как у заголовков остальных разделов (32px), цвет обычный текстовый: чернила из палитры
     нужны были только на цветном фоне, которого больше нет. */
  font-family: var(--doska-font-display); font-size: 30px; font-weight: 600;
  letter-spacing: -0.03em; line-height: 1.1; color: var(--doska-text);
  text-wrap: balance;
  /* Перенос на две строки — per direct report со скриншотом: длинное название («Стрит-фотография
     Saul Leiter в Москве») шло одной строкой, уезжало под картинку справа и обрывалось на полуслове.
     Ширина ограничена 58%, потому что картинка занимает правые 46% плашки: без ограничения текст
     переносился бы уже поверх снимка. Две строки — потолок: третья ломает высоту плашки, и ряд
     перестаёт быть рядом (та же логика, что у названия на плитке). */
  /* Ограничение в 58% снято вместе с картинкой справа — теперь заголовок делит строку с пилюлями
     и действиями обычным flex, а не обходит снимок. */
  white-space: normal; min-width: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* min-width:0 обязателен: без него flex-элемент не даёт тексту переноситься по своей ширине. */
.doska-project-hero-main { min-width: 0; }
@media (max-width: 768px) {
  /* На телефоне картинка занимает меньше места и текст важнее — ограничение снимаем. */
  .doska-project-hero-title.doska-project-hero-title { max-width: 100%; }
}
/* Click-to-rename — per direct report ("переименовать проект, могу когда кликнул на его
   название"). Both the resting <button> and the editing <input> keep the base rule above's own
   type-scale (font/size/weight/spacing) unchanged — .doska-project-hero-title stays on both, this
   only adds what a real form control/clickable-affordance still needs on top: reset the button's
   own text-align/background, and give the input real width + a caret-visible border. */
.doska-project-hero-title-edit { display: block; text-align: left; background: none; border-radius: var(--doska-radius-sm); }
/* Doubled selector — same `.doska-root button { cursor: pointer }` (0,1,1) specificity trap as
   everywhere else in this file (see doska-root button's own comment), just hitting `cursor` this
   time instead of the usual background/color/border. Per direct report ("когда навел мышь на
   название проекта, то курсор меняем на курсор когда работаешь с текстом") — hovering the title
   showed the pointer cursor from the reset instead of the text-caret this rule always intended,
   since it never actually won against that reset at (0,1,0). */
.doska-project-hero-title-edit.doska-project-hero-title-edit { cursor: text; }
/* Per direct request ("внутри проекта, должна быть аватарка того, кто создал этот проект, для
   понимания") — sits right after the title, same 26px circle size ReviewQueue.tsx's own author
   avatars already use, flex-shrink:0 so a long title can't squeeze it down. */
/* Полоска доступа в шапке спейса/папки (BoardAccessStrip): стопка аватаров и подпись «Создал(а)
   X · доступ у вас и ещё N». Рисуется только у чужих или общих мест. */
.doska-board-access { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; min-height: 24px; }
/* В крошках «Файлов» полоска стоит справа от пути, на той же строке. */
.doska-files-crumbs .doska-board-access { margin: 0 0 0 auto; padding-left: 16px; }
.doska-board-access-avatars { display: inline-flex; align-items: center; }
.doska-board-access-avatar {
  width: 22px; height: 22px; border-radius: 999px; overflow: hidden; display: inline-flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-text-muted); font-size: 10px; font-weight: 600;
  box-shadow: 0 0 0 2px var(--doska-section-bg, var(--doska-surface)); margin-left: -6px;
}
.doska-board-access-avatar:first-child { margin-left: 0; }
.doska-board-access-avatar img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.doska-board-access-avatar[data-creator] { box-shadow: 0 0 0 2px var(--doska-section-bg, var(--doska-surface)), 0 0 0 3px var(--doska-accent); }
.doska-board-access-more { font-size: 10px; }
.doska-board-access-leave {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font: inherit; font-size: 12px;
  border: 1px solid var(--doska-hairline); background: none; color: var(--doska-text-muted); cursor: pointer;
}
.doska-board-access-leave:hover { color: var(--doska-text); border-color: var(--doska-hairline-strong); }
/* Same trap again, this time on font-family — per direct report with a screenshot ("верни шрифт
   какой был"): `.doska-root button { font-family: inherit }` (0,1,1) was winning over
   .doska-project-hero-title's own `font-family: var(--doska-font-display)` (0,1,0) on this
   element (both classes sit on the same <button>), so the display-state title silently fell back
   to inherited UI sans-serif instead of the Fraunces serif every other title/heading uses. */
.doska-project-hero-title-edit.doska-project-hero-title-edit { font-family: var(--doska-font-display); }
.doska-project-hero-title-edit:hover { color: var(--doska-text-muted); }
/* Per direct request with a screenshot ("можно без дивайдера когда редактируешь название") — the
   underline read as an unwanted divider line under the hero title while editing, not a helpful
   "this is a text field" affordance; plain borderless text (same look as the non-editing state,
   just with a text cursor) matches ShootPanel's own EditableTitle convention right above it. */
.doska-project-hero-title-input {
  display: block; width: 100%; max-width: 640px; background: none; border: none;
  padding: 0; outline: none;
}
/* Shared row with Создать now — per direct follow-up ("кнопки сделать рядом с кнопкой создать"),
   see ProjectHeader.tsx's own comment on .doska-project-hero-actions-row for the JSX-level move.
   Own row spacing comes from .doska-project-hero-actions-row's own `gap` below now, not this
   row's — .doska-project-hero-actions itself still needs its OWN internal gap for Пригласить/
   Поделиться/"···" spaced from each other. */
.doska-project-hero-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
/* New wrapper — Создать + Invite/Share/"···" as one shared row below the title, replacing the
   split where Создать sat alone on its own line and these three sat up in the title row instead.
   align-items:center keeps the taller Создать pill and the smaller icon buttons vertically
   aligned against each other despite their different heights. */
.doska-project-hero-actions-row { display: flex; align-items: center; gap: 8px; }
/* "···" (ProjectMenu's trigger, .doska-pill-btn) still sat at its own generic 32px square —
   4px short of this row's other two buttons (Пригласить/Поделиться, ~36px once icon-only-squared
   below) — confirmed live as a visible size mismatch ("кнопку три точки тоже поправь размер").
   Scoped here too, not the shared base .doska-pill-btn, which is correctly 32px everywhere else
   it's used (search trigger, back arrow, etc.). Desktop-only (min-width) — mobile already bumps
   EVERY .doska-pill-btn to a 44x44 touch target further down this file; this rule's higher
   two-class specificity would otherwise silently win over that at any viewport and shrink this
   one back down on mobile too.
   Пригласить/Поделиться join it here now that their text label is gone entirely (see
   ProjectHeader.tsx's own comment, "В кнопках текст пригласить и поделиться - убрать") — square
   instead of a wide pill, which would otherwise leave a lot of empty space either side of a lone
   icon. Mobile keeps its own later, higher-specificity 44x44 override further down this file
   (targets .doska-inline-action directly, still matches these two), so this only ever governs
   the desktop size. */
@media (min-width: 769px) {
  .doska-project-hero-actions .doska-pill-btn { width: 36px; height: 36px; }
}
/* Centered-hero experiment reverted — per direct follow-up ("заголовок проекта, обложку и
   кнопку создать выровнить по левому краю"), back to plain left alignment for title/cover/
   Создать (Invite/Share/"···" were never part of this ask either way — already pinned to the
   right via .doska-project-hero-main's own flex:1 pushing them there, untouched by this revert).
   The grid-based centering this replaced is gone entirely rather than left as dead, unused CSS —
   see git history if it's ever wanted back. */
/* Own standalone rule now, not scoped under .doska-project-hero-actions — per direct follow-up
   ("кнопку создать на вебе перенести под название проекта"), Создать moved out of that row
   entirely into its own line below the title (see ProjectHeader.tsx's own comment on
   .doska-project-hero for where it renders now), so the old ancestor-scoped padding/color rules
   this button used to inherit from that row would have silently stopped applying. Padding/
   font-size carried over directly (was ".doska-project-hero-actions .doska-inline-action", the
   bigger 10px/16px/13px size Создать always had, back when Пригласить/Поделиться still shared
   this row at their own smaller default size — that comparison no longer applies since this
   button stands alone now, but the size itself is kept, just declared on its own class instead of
   inherited from a row it no longer sits in).
   var(--doska-accent) again — per direct follow-up ("заливку кнопки создать сделать черной"),
   reverting the violet back to black. Same theme-reactive token as the tabs' own active fill:
   near-black in light theme, near-white in dark theme, so it never goes invisible-on-black there
   the way a literal #000 would.
   Tripled selector (0,3,0), not doubled — per direct report with a screenshot ("нужно черную
   заливку", the button rendering as a washed-out gray pill): this button also carries the
   shared .doska-inline-action class for its base pill shape, and .doska-inline-action
   .doska-inline-action { background: var(--doska-accent-soft) } (a separate rule, further down
   this file) sits at the SAME (0,2,0) specificity — a tie that source order alone was
   deciding, and losing, since that generic rule happens to be declared later in the file.
   Three classes beats it outright instead of depending on file order. */
/* Padding/font-size matched to .doska-inline-action (Пригласить/Поделиться/"···", the SAME row's
   other three buttons) — per direct report ("конпка выбивается по высоте... выровнить внутри папок
   чтобы все было консистентно"): 10px/13px was visibly taller than their own 7px/12px, so the pill
   stood out against three same-row circles that all matched each other. Same 7px/12.5px
   .doska-stash-folder-content-action (the folder-view copy of this exact button) already used,
   for consistency across both places. */
.doska-project-hero-create-inline.doska-project-hero-create-inline.doska-project-hero-create-inline {
  /* font-weight выставлен явно — per direct report («на кнопке „Создать“ поправить толщину
     шрифта»): своей толщины у кнопки не было, она брала жирное начертание с глобального правила
     кнопок и выглядела тяжелее соседей по строке. 600 — ровно как у «Разбить на категории» и
     «Новая категория» рядом (.doska-stash-folder-content-action). */
  padding: 7px 12px; font-size: 13px; font-weight: 600;
  background: var(--doska-accent); color: var(--doska-accent-contrast);
}
/* Per direct report ("пропала кнопка добавить. поставить ее рядом с три точки") — the display:none
   this rule used to carry (see git history) was correct back when this button was redundant
   alongside a SECOND "Создать" still sitting in the Хранилка content toolbar below; that other copy
   is gone now (moved into FolderTitleMenu's own extraActions once inside a folder — see
   StashTab.tsx's own comment on that removal), so this hero-row copy is once again the ONLY
   "Создать" entry point at the root level and needs to actually render. */
.doska-project-hero-create-inline:hover { filter: brightness(1.1); }
/* Mobile-only stand-in for the whole Пригласить/Поделиться/··· row (see .doska-project-hero-
   actions, hidden on mobile further down) — per direct follow-up ("на мобиле кнопки пригласить,
   поделиться, три точки перенести кнопку создать, но создать там будет только заметку"). Hidden
   here by default (desktop); the mobile media query below both shows this and hides that row.
   Same pill shape/weight as .doska-header-create-btn (the level-1 header's own "Создать"). */
.doska-project-hero-mobile-create {
  display: none; align-items: center; gap: 6px; flex-shrink: 0;
  height: 36px; padding: 0 16px 0 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
/* Doubled selector — same .doska-root button { background: none; color: inherit } specificity
   trap as elsewhere in this file. Back to var(--doska-accent) — see the desktop Создать (above)
   for the same reversal and its reasoning ("заливку кнопки создать сделать черной"). */
.doska-project-hero-mobile-create.doska-project-hero-mobile-create { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-project-hero-mobile-create:hover { filter: brightness(1.08); }
/* Desktop's own content-area offset needs the same hero-height accounting the mobile media query
   above already does — the hero isn't sized any differently by viewport.
   Was a hand-measured constant (320, then 310) tuned against whichever title happened to be on
   screen at the time — nav-review round 3 found a perfectly ordinary longer title (3 lines at
   mobile width, see the mobile rule below) blowing straight through it and reintroducing the
   exact "toolbar eats the hero row's clicks" bug this offset exists to prevent. --doska-project-
   header-h is ProjectHeader.tsx's own live-measured height (ResizeObserver, see that component),
   so this now always clears the REAL header regardless of title length — the 310px fallback only
   matters for the one frame before that effect's first measurement lands. */
.doska-project-tab-content { top: 0; }
/* РАСКЛАДКА ПО СРОКУ (28.09.2026): список перестал быть одной колонкой в 760px. Слева корзины
   сроков панелями, справа узкая колонка закрытого. 760 осталось только для узких экранов, где
   вторая колонка всё равно уезжает вниз. */
.doska-tasks-tab { padding: 24px 28px 60px; max-width: 1180px; }
.doska-tasks-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-2); align-items: start;
}
.doska-tasks-main { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.doska-tasks-side { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
@media (max-width: 1000px) { .doska-tasks-layout { grid-template-columns: minmax(0, 1fr); } }
/* Каждая корзина — своя панель: без рамки шесть групп подряд читались одним полотном, и граница
   между «просрочено» и «сегодня» держалась только на подписи. */
.doska-tasks-panel {
  padding: 16px 18px; border-radius: var(--doska-radius-lg);
  border: 1px solid var(--doska-hairline); background: var(--doska-surface);
}
/* Просроченное — единственная корзина, которую видно до чтения подписи. Тёплый тон, а не сигнальный
   красный: сообщить надо спокойно, но заметно. */
.doska-tasks-panel[data-bucket="overdue"] { border-color: rgba(224, 122, 95, 0.45); }
.doska-tasks-panel[data-bucket="overdue"] .doska-tasks-group-heading { color: #e07a5f; }
/* На телефоне сводка уходит на свою строку под заголовок: замер на 390 — она разрывалась посреди
   фразы («1 просрочена ·» на первой строке, остальное на второй) и напирала на переключатель вида.
   Переключатель при этом прижимается к верху, а не к середине двухстрочного заголовка. */
@media (max-width: 640px) {
  .doska-tasks-header { align-items: flex-start; }
}
.doska-tasks-tab--board { max-width: none; }
/* Раскладку строки теперь задаёт общая шапка раздела; здесь остаётся только отбивка снизу. */
.doska-tasks-header { margin-bottom: 18px; }
/* Список/Доска — per direct request ("в задачах нужно сделать два вида отображения"). */
.doska-tasks-view-toggle { display: flex; gap: 2px; padding: 2px; background: var(--doska-surface-raised); border-radius: var(--doska-radius-md); }
.doska-tasks-view-toggle button {
  display: flex; align-items: center; gap: 5px; padding: 6px 10px; font-size: 12px;
  color: var(--doska-text-muted); border-radius: var(--doska-radius-sm);
}
.doska-tasks-view-toggle button:hover { color: var(--doska-text); }
.doska-tasks-view-toggle button[data-active] { background: var(--doska-surface); color: var(--doska-text); box-shadow: none; }
.doska-tasks-add-row { display: flex; gap: 8px; margin-bottom: 22px; }
.doska-tasks-add-row .doska-modal-input:first-child { flex: 1; }
.doska-tasks-group-heading {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--doska-text-muted); margin-bottom: 8px; padding: 0 4px;
}
.doska-tasks-group-count {
  display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 6px; background: var(--doska-surface); font-size: 11px; font-weight: 600;
  color: var(--doska-text-muted); font-variant-numeric: tabular-nums;
}

/* Ритм строк «Графита»: зазор 4, радиус 12, подложка при наведении на слой выше поверхности.
   Прежние 2/4/поверхность давали слипшийся список, в котором наведение почти не читалось. */
.doska-tasks-list { display: flex; flex-direction: column; gap: 4px; }
.doska-tasks-row { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--doska-radius-md); }
.doska-tasks-row:hover { background: var(--doska-secondary); }
.doska-tasks-row:hover .doska-refs-card-delete { opacity: 1; }

.doska-tasks-status-btn {
  flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px var(--doska-hairline-strong); color: transparent;
}
.doska-tasks-status-btn:hover { box-shadow: inset 0 0 0 1.5px var(--doska-accent); }
.doska-tasks-status-btn[data-status='in_progress'] { box-shadow: inset 0 0 0 1.5px var(--doska-accent); color: var(--doska-accent); }
.doska-tasks-status-btn[data-status='done'] { background: var(--doska-accent); box-shadow: none; color: var(--doska-accent-contrast); }

.doska-tasks-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 1px 0; }
.doska-tasks-row-title { font-size: 14px; color: var(--doska-text); line-height: 1.35; }
.doska-tasks-row[data-done] .doska-tasks-row-title { color: var(--doska-text-muted); text-decoration: line-through; }
.doska-tasks-row-desc { font-size: 12px; color: var(--doska-text-muted); line-height: 1.4; }

.doska-tasks-row .doska-refs-card-delete { flex: none; margin-top: 1px; opacity: 0; }

.doska-tasks-edit { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.doska-tasks-edit-desc { min-height: 44px; font-size: 13px; }
.doska-tasks-edit-actions { display: flex; align-items: center; gap: 8px; }
.doska-tasks-edit-cancel { font-size: 12px; color: var(--doska-text-muted); padding: 7px 10px; border-radius: 999px; }
.doska-tasks-edit-cancel:hover { background: var(--doska-secondary); color: var(--doska-text); }

/* Доска view — the same three statuses as columns instead of a stacked list. Status still
   changes via the row's own status-dot (cycleStatus), not drag-and-drop between columns. */
.doska-tasks-board { display: flex; gap: 16px; align-items: flex-start; overflow-x: auto; padding-bottom: 8px; }
.doska-tasks-board-col {
  flex: 1 0 240px; min-width: 240px; max-width: 320px;
  background: var(--doska-surface-raised); border-radius: var(--doska-radius-md); padding: 12px;
}
.doska-tasks-board-col-list { display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow-y: auto; }
.doska-tasks-board-empty { font-size: 12px; color: var(--doska-text-muted); padding: 8px 4px; }
@media (max-width: 768px) {
  .doska-tasks-board-col { flex-basis: 82vw; min-width: 82vw; }
}
/* Карта tab (MapsTab) — a real interactive Google Map, not the old one-iframe-per-location grid
   this replaced. Lives inside .doska-project-tab-content (already scrollable/absolutely
   positioned), so this only needs padding + an explicit map height, not its own positioning. */
.doska-maps-tab { padding: 0; height: 100%; }
.doska-maps-tab-loading { display: flex; align-items: center; justify-content: center; height: calc(100vh - 200px); color: var(--doska-text-muted); }

/* List-on-the-left, map-fills-the-rest — per direct request with reference screenshots (Airbnb
   Experiences, Turo, a trip planner's place drawer), replacing a full-bleed map with floating
   glass panels for search/saved-places. */
/* Top padding added — per direct report ("слишком прижато к меню 1го уровня"), the map sat flush
   against the header with zero breathing room above it. */
.doska-maps-split { display: flex; height: 100%; min-height: 420px; padding: 20px 28px 20px; gap: 16px; box-sizing: border-box; }
.doska-maps-list-col {
  /* Per direct request ("поисковая строка в картах надо сделать её широкой") — was 320px, which
     squeezed the search input (and every card's address line) down quite narrow. */
  width: 400px; flex-shrink: 0; display: flex; flex-direction: column;
  border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-md);
  background: var(--doska-surface); overflow: hidden;
}
.doska-maps-map-col { flex: 1; min-width: 0; position: relative; display: flex; flex-direction: column; gap: 10px; }
.doska-maps-canvas { width: 100%; flex: 1; min-height: 0; border-radius: var(--doska-radius-md); }

/* Below 768px (same breakpoint useIsMobile uses elsewhere): full-screen map with the search bar
   floating over it and the saved-places list as a tap-to-expand sheet, same layout Yandex/Google
   Maps' own mobile apps use — per direct request ("ожидаю карту на моб версии в полный экран")
   after an earlier stacked-columns attempt still left the map squeezed into a fixed-height half.
   MapsTab's own isMobile check both renders the sheet-toggle button and swaps focusLocation to
   collapse the sheet on tap, so the map (and the InfoWindow it just opened) is what you land on. */
@media (max-width: 768px) {
  .doska-maps-split { position: relative; height: 100%; min-height: 0; padding: 0; gap: 0; }
  .doska-maps-map-col { position: absolute; inset: 0; }
  .doska-maps-list-col {
    position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2;
    width: auto; max-height: calc(100% - 16px);
    box-shadow: none;
  }
  .doska-maps-sheet-toggle {
    display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-shrink: 0;
    width: 100%; padding: 10px 12px; margin: 0; font-size: 11px; font-weight: 600;
    letter-spacing: 0; text-transform: none; color: var(--doska-text-muted);
    border-top: 1px solid var(--doska-hairline);
  }
  .doska-maps-list-scroll { max-height: 0; padding: 0 10px; transition: max-height 0.2s ease; }
  .doska-maps-list-col[data-sheet-open] .doska-maps-list-scroll { max-height: 50vh; padding: 0 10px 10px; }
  /* No real hover on touch — a hover-revealed delete button is invisible until an accidental
     tap-and-hold, so just show it outright on mobile instead. */
  .doska-maps-card-remove { opacity: 1; }
}

/* Places Autocomplete search — per direct request ("поиск шире, и можно его отдельно вынести",
   then "поиск сделать отдельной панелью над картой") pulled out of the list column entirely into
   its own full-width panel sitting above the map (real layout space, not an overlay — the map
   just gets a bit shorter to make room), so its width isn't capped by the 400px sidebar anymore.
   Lives inside .doska-maps-map-col, which is now a column flexbox (panel, then canvas). */
.doska-maps-search-panel {
  flex-shrink: 0; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius-md);
  color: var(--doska-text-muted);
  /* Themes gmp-place-autocomplete's shadow DOM to match this pill instead of Google's own
     light-surface default — these custom properties are documented to pierce the shadow
     boundary by design, unlike a plain descendant selector which can't reach in at all.
     Per direct report ("сейчас темное поле на светлой теме") the input's own fill specifically
     stayed dark regardless — the Material 3 "filled text field" the element renders internally
     apparently reads its fill from a surface-container token, not the plain "surface" one alone,
     so this now covers every surface-container variant too (all pointing at the same theme-aware
     value) plus an explicit color-scheme hint, in case the element's own internal light-dark()
     fallbacks were the ones actually winning. */
  color-scheme: light dark;
  --gmp-mat-color-surface: transparent;
  --gmp-mat-color-surface-container: var(--doska-surface-raised);
  --gmp-mat-color-surface-container-high: var(--doska-surface-raised);
  --gmp-mat-color-surface-container-highest: var(--doska-surface-raised);
  --gmp-mat-color-on-surface: var(--doska-text);
  --gmp-mat-color-on-surface-variant: var(--doska-text-muted);
  --gmp-mat-color-outline: var(--doska-hairline-strong);
  --gmp-mat-color-outline-decorative: transparent;
  --gmp-mat-color-primary: var(--doska-accent);
}
.doska-maps-search-mount { flex: 1; min-width: 0; }
.doska-maps-search-input { width: 100%; --gmp-mat-font-body-medium: 12.5px; }

/* Category filter chips (Art and culture/Entertainment/… reference) — a horizontally scrolling
   row of pill toggles, per direct request ("под поиском локаций добавить фильтры в таком
   стиле"). Plain outline by default, filled accent when active, same convention as every other
   toggle-pill in this app (see .doska-maps-list-tabs' active state). */
.doska-maps-filter-bar { flex-shrink: 0; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.doska-maps-filter-chip {
  flex-shrink: 0; padding: 7px 14px; font-size: 13px; font-weight: 500; white-space: nowrap;
  border: 1px solid var(--doska-hairline-strong); border-radius: 6px;
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file. */
.doska-maps-filter-chip.doska-maps-filter-chip { color: var(--doska-text-muted); background: var(--doska-surface-raised); }
.doska-maps-filter-chip:hover { color: var(--doska-text); border-color: var(--doska-text-muted); }
.doska-maps-filter-chip[data-active] { background: var(--doska-accent); border-color: var(--doska-accent); color: var(--doska-accent-contrast); }

/* "Найди меня" geolocation button — floats over the map, separate from the search/filter panels
   up top. Per direct report ("найти меня и зум должны быть по разным углам") — bottom-right is
   where Google's own native zoom +/- control renders by default (zoomControl isn't disabled), so
   this used to stack directly on top of it. Bottom-left keeps both reachable without overlapping. */
.doska-maps-locate-btn {
  position: absolute; left: 16px; bottom: 16px; z-index: 3;
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--doska-hairline-strong);
  box-shadow: none;
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file. */
.doska-maps-locate-btn.doska-maps-locate-btn { background: var(--doska-surface-raised); color: var(--doska-text); }
.doska-maps-locate-btn:hover { color: var(--doska-accent); }
.doska-maps-locate-btn:disabled { opacity: 0.6; }
.doska-maps-list-scroll { flex: 1; overflow-y: auto; padding: 0 10px 10px; }
/* Google's own Сохранено/Недавние split — per direct follow-up. Recent is session-local (see
   MapsTab's recentIds) and only shows once something's actually been opened. Per a later request
   ("недавние и сохранено сделать через таб внутри выдачи") these switch via tabs now instead of
   both stacking in the same scroll area — same toggle-pill convention as Задачи's Список/Доска. */
.doska-maps-list-tabs { display: flex; gap: 2px; padding: 2px; margin: 12px 12px 8px; background: var(--doska-surface-raised); border-radius: var(--doska-radius-md); }
.doska-maps-list-tabs button {
  flex: 1; padding: 6px 10px; font-size: 12px; font-weight: 600;
  color: var(--doska-text-muted); border-radius: var(--doska-radius-sm);
}
.doska-maps-list-tabs button:hover { color: var(--doska-text); }
.doska-maps-list-tabs button[data-active] { background: var(--doska-surface); color: var(--doska-text); box-shadow: none; }
.doska-maps-list-empty { display: flex; align-items: center; gap: 6px; padding: 4px; font-size: 12px; color: var(--doska-text-muted); }
.doska-maps-card-list { display: flex; flex-direction: column; gap: 4px; }
.doska-maps-card {
  display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--doska-radius-sm);
  text-align: left; border: 1px solid transparent;
}
.doska-maps-card:hover { background: var(--doska-secondary); }
.doska-maps-card[data-selected] { background: var(--doska-accent-soft); border-color: var(--doska-accent); }
.doska-maps-card-thumb {
  width: 48px; height: 48px; flex-shrink: 0; border-radius: var(--doska-radius-sm); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-text-muted);
}
.doska-maps-card-thumb img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.doska-maps-card-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.doska-maps-card-name { font-size: 13px; font-weight: 500; color: var(--doska-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-maps-card-address { font-size: 11px; color: var(--doska-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-maps-card-row { display: flex; align-items: center; gap: 2px; }
.doska-maps-card-row .doska-maps-card { flex: 1; min-width: 0; }
.doska-maps-card-remove {
  flex-shrink: 0; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--doska-radius-sm); color: var(--doska-text-muted); opacity: 0; transition: opacity 0.12s;
}
.doska-maps-card-row:hover .doska-maps-card-remove { opacity: 1; }
.doska-maps-card-remove:hover { background: var(--doska-secondary); color: var(--doska-danger); }


/* ---------- "Хранилка" tab — universal stash inbox (StashTab.tsx/StashCards.tsx) ----------
   Per direct spec: zero-friction capture (paste/drop/one-click), no canvas/folders/manual
   tagging. Grid mirrors .doska-gallery-grid's own column logic (auto-fill/minmax) but drops its
   fixed aspect-ratio — a note/task/place/image card are heterogeneous by design here. */
/* Top padding trimmed 24px -> 14px — per direct follow-up ("уменьшить отступ до фильтров от
   кнопки создать заметку"), stacked on the hero's own bottom padding this read as too much dead
   space between the hero row and the toolbar below. */
/* Side padding 28px -> 32px — matches .doska-project-hero's own bump right above it (same left
   edge, was jogging 4px out of alignment with the hero's title/icon) and is the general "more
   desktop side margin" pass: measured only 28px of whitespace to the 1440px viewport edge, tight
   next to the grid it frames. Mobile keeps its own separate, deliberately tighter override below. */
.doska-stash-tab { padding: 14px 32px 60px; }
/* Fixed, not absolute — this tab's own root scrolls (doska-scrollbar) with a tall card grid, so an
   absolutely-positioned overlay would scroll away with it mid-drag instead of staying visible over
   the viewport the whole time a file is dragged over. Same dashed/pulse language as Canvas's own
   .doska-drop-overlay (visual precedent for "you're dragging something onto Doska"), just anchored
   differently since this container (unlike Canvas's fixed-size viewport) isn't itself positioned.
   Per direct report ("когда тащу на холст проекта, то экран должен реагировать что я тащу"). */
.doska-stash-drop-overlay {
  position: fixed; inset: 14px;
  z-index: 60;
  border: 2px dashed var(--doska-accent);
  border-radius: var(--doska-radius-lg);
  background: rgba(0, 0, 0, 0.06);
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
  animation: doska-inbox-pulse 1.6s ease-in-out infinite;
}
.doska-stash-drop-overlay span {
  font-size: 14px; font-weight: 600; color: var(--doska-accent-ink);
  background: var(--doska-surface);
  padding: 10px 18px; border-radius: var(--doska-radius-md);
  box-shadow: none;
}
/* Rendered via AllStashView inside ProjectGallery's own "Все заметки" tab — that page already
   provides its own top rhythm (.doska-gallery-header-row's own bottom margin), so this tab's own
   top padding on top of THAT was pure double-spacing, reported live as a big dead gap between the
   Мои проекты/Все заметки tab row and this tab's own toolbar row below it ("в одну линию как в
   мои проекты нужно" — read together as one connected header, not two stacked blocks). Bottom
   padding stays, this tab still needs its own bottom inner margin (scroll safe-area). */
/* Side padding zeroed too, same double-spacing bug the top padding fix above already covers —
   .doska-gallery-body (this tab's actual parent here) already contributes its own 32px side
   padding, so this tab's own 32px on top of that measured a 64px gutter here vs. 32px one tab over
   on "Мои проекты", a visible edge jump switching between the two despite both explicitly meant to
   "read together as one connected header." */
.doska-stash-tab[data-embedded] { padding-top: 0; padding-left: 0; padding-right: 0; }
/* Used to cap these at 720px — visibly indented/"padded" next to the full-width grid below,
   confirmed live ("убрать отступы по бокам"). Full width like everything else in this tab now. */

/* Same "Что создадим?" hero treatment ProjectGallery's own create-project box uses — per direct
   request ("нужно добавить вот эту секцию, чтобы она была так же хорошо видна... по аналогии со
   страницей проектов"), scaled down from that page's full-landing-page hero (44px title) to fit a
   tab that still has a working card grid below it. */
/* Per direct follow-up ("сделаем явную кнопку «Создать заметку», и при нажатии на нее у нас будет
   отдельный экран") — the hero below now only ever renders inside .doska-stash-create-modal, an
   on-demand overlay behind this compact trigger, not always pushing the grid down. Sized/placed
   to sit in .doska-stash-toolbar now (see that rule) — margin-left: auto there pushes it to the
   row's right edge as the one primary/filled action against По темам/Спросить ИИ's secondary
   pills, per direct follow-up ("перенеси... в правый угол и сделай primary"). */
/* Full pill (999px) — per direct follow-up ("у всех кнопок радиус скругления 100"), the app-wide
   button standard ended up being the OPPOSITE of an earlier pass on this exact button (which had
   changed it FROM 999px TO --doska-radius-md to match .doska-gallery-new-btn's THEN-current 10px
   corners). That earlier fix is now superseded — .doska-gallery-new-btn itself was changed back to
   999px in the same pass as this one, so both agree again, just at the other radius. */
/* .doska-stash-create-btn (the toolbar/floating "Создать заметку" trigger) is gone -- per direct
   request ("кнопку создать заметку переместить в меню первого уровня"), it now lives in the
   level-1 header bar instead (see .doska-header-create-btn in ProjectHeader.tsx/TopNav.tsx),
   dispatching the SAME state.pendingStashCreate flag this screen already listened for. The
   create MODAL itself (.doska-stash-create-backdrop/-modal just below, createOpen state) is
   completely unchanged -- only the toolbar's own trigger button is gone, not the feature. */
/* Same dim/z-index treatment as .doska-stash-modal-backdrop elsewhere in this file. */
.doska-stash-create-backdrop {
  /* Плотная подложка ВЕРНУЛАСЬ — per direct report «на этой подложке не надо трогать прозрачность,
     её там не нужно». Просьба о прозрачности касалась карточки заметки, а я разнёс правку на все
     подложки продукта заодно. Здесь другое дело: человек СОЗДАЁТ заметку, и список за окном ему в
     этот момент не нужен — сквозящий фон только отвлекает от ввода. */
  position: fixed; inset: 0; z-index: 70; background: rgba(6, 6, 9, 0.88);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
.doska-stash-create-modal {
  position: relative; width: 100%; max-width: 640px; padding: 40px 36px 32px; text-align: center;
  background: var(--doska-surface); border-radius: var(--doska-radius-lg);
  box-shadow: none;
  transition: box-shadow 140ms var(--doska-ease), background 140ms var(--doska-ease);
}
/* Per direct request ("форма Создать заметку [должна] реагировать когда перетаскиваешь на неё
   файл") — same accent-ring-plus-tint language .doska-stash-empty-dropzone--modal's own
   [data-drag-active] already established for the Файл tab's dropzone, applied to the whole modal
   here instead (see StashTab.tsx's own modalDragActive comment for why: the outer picker screen
   has no single dropzone-shaped element of its own). Inset ring, not a real border — doesn't
   shift the modal's own padding/content on activate the way swapping a border width would. */
.doska-stash-create-modal[data-drag-active] {
  box-shadow: inset 0 0 0 2px var(--doska-accent);
  background: var(--doska-accent-soft);
}
.doska-stash-create-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: var(--doska-text-muted); border-radius: 999px;
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file. */
.doska-stash-create-close.doska-stash-create-close { background: var(--doska-surface-raised); }
.doska-stash-create-close:hover { color: var(--doska-text); }
.doska-stash-hero-title { font-family: var(--doska-font-display); font-size: 28px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; color: var(--doska-text); margin: 0 0 8px; }
.doska-stash-hero-box {
  display: flex; align-items: flex-end; gap: 8px; text-align: left;
  background: var(--doska-surface); border: 1.5px solid var(--doska-accent);
  border-radius: var(--doska-radius-lg); padding: 14px 14px 14px 18px;
  box-shadow: 0 0 0 4px var(--doska-accent-soft);
}
.doska-stash-hero-input {
  flex: 1; resize: none; max-height: 160px; min-height: 26px; background: none; border: none; outline: none;
  font-size: 14px; line-height: 1.5; color: var(--doska-text); font-family: inherit;
}
.doska-stash-hero-input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-stash-hero-input::placeholder { color: var(--doska-text-muted); }
.doska-stash-content-back {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 16px;
  background: none; border: none; padding: 0; color: var(--doska-text-muted); font-size: 13px; font-weight: 600;
}
.doska-stash-content-back:hover { color: var(--doska-text); }
.doska-stash-hero-box--screen { align-items: stretch; flex-direction: column; margin-top: 12px; }
.doska-stash-hero-box--screen .doska-stash-hero-input { min-height: 80px; }
.doska-stash-content-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.doska-stash-content-mic.doska-stash-content-mic {
  display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px;
  background: var(--doska-canvas); border: 1.5px solid var(--doska-hairline-strong); color: var(--doska-text-muted);
}
.doska-stash-content-mic:hover { color: var(--doska-text); border-color: var(--doska-text-muted); }
.doska-stash-content-mic[data-recording] { color: #fff; background: var(--doska-danger); border-color: transparent; animation: doska-mic-pulse 1.2s ease-in-out infinite; }

/* Per direct follow-up with a reference screenshot ("для моб версии меню создания заметки нужно
   сделать более компактно... сейчас очень громоздко") — desktop's 3-up grid of tall square tiles
   (icon+check on top, label/sub stacked below, 14px padding all round) stacked into a single
   column at this width but each card STAYED just as tall, three of them reading as bulky. Redone
   as one compact row per card instead: icon in a small rounded-square badge on the left, label+sub
   stacked in the middle, the check circle on the far right — same reference's own "Product/Place/
   Content" row layout. */
/* Back-to-picker arrow, once a type's own dedicated screen is showing — plain muted text link,
   not a full button chrome, so it reads as secondary to the screen's own title right below it.
   Per direct request ("навигацию в левый угол надо") — pinned to the top-left corner, same
   position:absolute treatment as .doska-stash-create-close's own top-right corner, instead of
   sitting in-flow where .doska-stash-create-modal's own text-align:center centered it above the
   title. The modal's existing 40px top padding already clears this row (top:14 + this button's
   own ~20px height ends well above that), so no extra spacing needed now that it's out of flow. */
.doska-stash-create-back.doska-stash-create-back {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 5px; color: var(--doska-text-muted);
  font-size: 13px; font-weight: 600; padding: 2px 0;
}
.doska-stash-create-back:hover { color: var(--doska-text); }

/* classifyLink (inside addLinkFromUrl, reached via handleIncomingText) auto-detects map/video/
   image/website on submit regardless of which tab you typed it into, so this one field covers
   both Ссылка and Место. */
.doska-stash-link-field {
  display: flex; flex-direction: column; gap: 10px; margin-top: 12px;
}
.doska-stash-link-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--doska-radius-md);
  color: var(--doska-text-muted);
}
.doska-stash-link-input-row.doska-stash-link-input-row { background: var(--doska-canvas); border: 1.5px solid var(--doska-hairline-strong); }
.doska-stash-link-input-row:focus-within { border-color: var(--doska-accent-ink); }
/* Per direct report ("поле должно принимать только ссылки и проверять формат") — plain text used
   to silently become a note on submit; this makes an in-progress non-URL visibly rejected instead. */
.doska-stash-link-input-row[data-invalid] { border-color: var(--doska-danger); }
.doska-stash-link-input-row svg { flex-shrink: 0; }
.doska-stash-link-input-row input { flex: 1; background: none; border: none; outline: none; font-size: 13px; color: var(--doska-text); }
.doska-stash-link-input-row input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-stash-link-input-row input::placeholder { color: var(--doska-text-muted); }
.doska-stash-link-input-hint { font-size: 12px; color: var(--doska-danger); padding: 0 2px; }
/* Файл — per direct follow-up ("файл в что запомним перенести над кнопкой", then "добавить файл
   на что запомним должен быть так как на заглушке") — moved up above Продолжить, then restyled
   to reuse .doska-stash-empty-dropzone directly (see the JSX) rather than keeping its own small
   outline-tile rule here. */
/* Full-width "Continue", not a small square send-icon — per direct follow-up matching the
   reference screenshot's own bottom-of-card button. Renamed from .doska-stash-link-continue —
   per direct follow-up ("кнопка продолжить актуальная для всех трех табов и всегда видна снизу"),
   one shared button now sits below all three tab panes instead of living inside the Ссылка pane
   alone; margin-top gives it real separation from whichever pane happens to precede it. */
.doska-stash-create-continue {
  width: 100%; padding: 12px; margin-top: 16px; border-radius: var(--doska-radius-md);
  font-size: 14px; font-weight: 600;
  /* display/box-sizing/text-decoration added when this class started also getting reused on a
     real <a> (the "Презентовать" result's own "Открыть" link, doska-present-result-actions below)
     — <a> is inline by default, so width:100% alone silently does nothing on it, unlike a native
     <button> (already effectively block-level via UA stylesheets); harmless no-op on the existing
     button usages. */
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none;
}
/* Doubled selector for BOTH background and color — `.doska-root button { background: none;
   color: inherit }` (0,1,1) otherwise beats this single-class rule (0,1,0), same specificity trap
   hit repeatedly elsewhere in this file. Missed `color` here the first time (only doubled
   background) — per direct follow-up with a screenshot ("в кнопке не вижу текст"): text was
   inheriting the surrounding dark-modal text color instead of --doska-accent-contrast, near-
   invisible against this button's own light accent fill in dark mode. */
.doska-stash-create-continue.doska-stash-create-continue { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-stash-create-continue:disabled { opacity: 0.35; cursor: default; }
.doska-stash-create-continue:not(:disabled):hover { filter: brightness(1.1); }

/* "Презентовать" modal — per direct request. Narrower than .doska-stash-create-modal (a simple
   form + result screen, not a multi-tab capture flow) so it doesn't read as an oversized dialog
   for this little content. Reuses .doska-stash-create-backdrop/-close/-continue/.doska-stash-
   hero-title as-is (same modal chrome convention) — only the content in between is new. */
.doska-present-modal {
  position: relative; width: 100%; max-width: 440px; padding: 36px 28px 28px; text-align: center;
  background: var(--doska-surface); border-radius: var(--doska-radius-lg);
  box-shadow: none;
}
.doska-present-modal-sub { font-size: 13px; color: var(--doska-text-muted); margin: 0 0 18px; line-height: 1.5; }
.doska-present-format-row { display: flex; gap: 6px; justify-content: center; margin-bottom: 12px; }
.doska-present-format-pill {
  padding: 8px 15px; border-radius: var(--doska-radius-md); /* то же правило: действие, а не фильтр */ background: var(--doska-surface-raised);
  font-size: 13px; font-weight: 600; color: var(--doska-text-muted);
}
.doska-present-format-pill[data-active] { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-present-format-pill:not([data-active]):hover { background: var(--doska-hairline); }
.doska-present-prompt-input {
  width: 100%; box-sizing: border-box; resize: none; padding: 10px 12px; border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline); font-size: 14px;
  font-family: inherit; color: var(--doska-text);
}
.doska-present-prompt-input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-present-prompt-input::placeholder { color: var(--doska-text-muted); }
.doska-present-error { margin-top: 12px; font-size: 13px; color: var(--doska-danger); text-align: left; }
.doska-present-result-link {
  display: flex; gap: 8px; margin-bottom: 16px;
}
.doska-present-result-link input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline);
  font-size: 13px; color: var(--doska-text-muted);
}
.doska-present-result-link button {
  flex: 0 0 auto; padding: 0 14px; border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised); font-size: 13px; font-weight: 600;
}
.doska-present-result-link button:hover { background: var(--doska-hairline); }
.doska-present-result-actions { display: flex; flex-direction: column; gap: 8px; }
.doska-present-result-again {
  width: 100%; padding: 10px; border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised); font-size: 13px; font-weight: 600; color: var(--doska-text-muted);
}
.doska-present-result-again:hover { background: var(--doska-hairline); }
.doska-present-result-again:disabled { opacity: 0.5; cursor: default; }

.doska-stash-search {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; margin-bottom: 10px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-md); color: var(--doska-text-muted);
}
.doska-stash-search input { flex: 1; background: none; border: none; outline: none; font-size: 13px; color: var(--doska-text); }
.doska-stash-search input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-stash-search input::placeholder { color: var(--doska-text-muted); }
/* "По темам" / "Спросить ИИ" — pulled out of .doska-stash-search per direct request ("не должно
   их быть в поиске"); neither one filters or searches anything, so this is its own row now. */

/* The pulsing "Спросить ИИ" FAB is back (see .doska-stash-ai-fab below) — per later direct
   follow-up ("добавить снизу справа также круг с ИИ иконкой"), reversing the earlier removal this
   comment used to describe. It reclaims the primary bottom-right slot it had before; "Наверх" stacks
   above it now (its own bottom offset += the FAB's 54px height + a 12px gap) instead of having
   that corner to itself, same stacking relationship the two had originally. */
.doska-back-to-top {
  position: fixed; right: 24px; bottom: calc(106px + env(safe-area-inset-bottom, 0px)); z-index: 39;
  /* Mobile bottom offset bumped further down in the responsive section (see
     .doska-mobile-action-bar's own mobile rule) — the new docked search/create/comments/profile
     bar now occupies that same bottom-right-ish strip on narrow screens. */
  width: 44px; height: 44px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  color: var(--doska-text);
  box-shadow: none;
}
.doska-back-to-top:hover { background: var(--doska-hairline); }

/* Per direct request ("спросить ии перенеси в нижний правый угол... в кругу в цветной заливке и
   пульсировать... градиентная мэш"), then removed, then per a later direct follow-up ("добавить
   снизу справа также круг с ИИ иконкой которая открывает ИИ помощника") restored — same fixed
   bottom-right slot/size as before, moving mesh-gradient background (three soft color blobs
   sliding past each other) plus a slow breathing glow ring instead of a flat fill, so it reads as
   a distinct "ask AI about your Хранилка" affordance. .doska-back-to-top now stacks above it (see
   that rule's own comment) instead of sharing the same slot.
   Doubled selector for background — same .doska-root button { background: none } specificity trap
   fixed elsewhere in this file (0,1,1 beating this rule's own 0,1,0). */
/* Per direct request ("Assistant нужно на вебе писать в бабле, мобилку не трогать") — text label
   added next to the icon; the fixed 54px circle grows into a pill (width:auto + padding) to fit
   it instead of staying a strict circle. Mobile's own equivalent (.doska-mobile-ai-btn) is a
   separate class entirely (this FAB is already display:none there, see this file's own comment on
   that rule) — unaffected by this change. */
.doska-stash-ai-fab.doska-stash-ai-fab {
  position: fixed; right: 24px; bottom: calc(40px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: auto; height: 54px; padding: 0 20px 0 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  color: #fff;
  /* Flat --doska-accent-brand — per direct follow-up with a screenshot ("смена цветов заливки также касается
     и этих баблов. приведи заливку к #4800f"), replacing the earlier multi-layer mesh gradient
     (three soft violet blobs sliding past each other): at this 54px size the light highlight
     layers dominated the visible area, reading as pale lavender rather than the new flat brand
     violet every other AI bubble now uses. The mesh-slide animation is dropped along with it (a
     single flat color has nothing left to slide between); the breathing glow pulse below stays,
     now tinted to match this same flat color instead of the old mesh's tones. */
  background: var(--doska-accent-brand);
  animation: doska-stash-fab-pulse 2.6s ease-in-out infinite;
}
.doska-stash-ai-fab:hover { filter: brightness(1.08); }
/* На телефоне бабл — круг с иконкой, без подписи «Assistant» (per direct request «на мобилке
   ИИ-ассистент бабл нужно, чтобы был в правом нижнем углу всегда, поверх»): подпись растягивает
   его на треть ширины экрана и накрывает содержимое, ради которого человек и открыл список.
   Отступ снизу больше на высоту безопасной зоны — иначе на телефонах с жестовой полосой круг
   упирается в неё. */
@media (max-width: 768px) {
  .doska-stash-ai-fab.doska-stash-ai-fab {
    right: 16px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    width: 54px; padding: 0; gap: 0;
  }
  .doska-stash-ai-fab.doska-stash-ai-fab span { display: none; }
}

/* Кнопка «Спросить ИИ» в правом кластере мобильной шапки — та же фирменная заливка, что у бабла
   Assistant выше (per direct request «кнопка спросить ИИ такого же цвета должна быть как бабл
   внизу на вебе... то есть цвет как assistant»). Цвет взят тем же токеном --doska-accent-brand, а не
   var(--doska-accent): у бабла он тоже захардкожен (см. его комментарий про приведение заливки к
   этому значению), и разъехаться они не должны.
   Селектор УТРОЕН, и это не перестраховка: .doska-pill-btn задаёт фон правилом
   `.doska-pill-btn.doska-pill-btn` (строка ~5442) — та же специфичность (0,2,0), что дал бы
   двойной класс, и оно стоит НИЖЕ по файлу, поэтому побеждало бы по порядку. Проверено замером:
   с двойным селектором кнопка оставалась серой (rgb(23,23,28)) вместо фиолетовой. border-color
   тоже переопределяем — иначе поверх заливки остаётся hairline-обводка от базового правила.
   Анимации пульса здесь нет намеренно: рядом лупа и колокольчик, постоянное свечение в узкой
   строке отвлекает. */
.doska-header-ai-btn.doska-header-ai-btn.doska-header-ai-btn {
  background: var(--doska-accent-brand); color: #fff; border-color: var(--doska-accent-brand);
}
.doska-header-ai-btn.doska-header-ai-btn.doska-header-ai-btn:hover { filter: brightness(1.08); }

/* .doska-mobile-ai-btn — второй экземпляр той же кнопки «Спросить ИИ», в TopNav (экраны галереи,
   настроек, FAQ). Найден при сплошной сверке классов разметки со стилями: у него НЕ БЫЛО
   собственного правила вовсе, он опирался только на .doska-pill-btn — то есть оставался серым,
   пока кнопка на основном экране уже стала фирменной. Один и тот же элемент выглядел по-разному
   в зависимости от страницы. Тот же цвет, та же тройная специфичность (см. соседнее правило). */
.doska-mobile-ai-btn.doska-mobile-ai-btn.doska-mobile-ai-btn {
  background: var(--doska-accent-brand); color: #fff; border-color: var(--doska-accent-brand);
}
.doska-mobile-ai-btn.doska-mobile-ai-btn.doska-mobile-ai-btn:hover { filter: brightness(1.08); }

/* Подпись режима сортировки скрывается на телефоне, остаётся иконка ⇅ — правило, которое ДОЛЖНО
   было появиться вместе с возвратом сортировки на мобилку («на мобилке добавить сортировку»), но
   не появилось: в разметку span.doska-sort-label добавлен, а стиль — нет. Найдено сплошной
   сверкой классов разметки со стилями, глазами такое не видно: подпись просто оставалась на месте
   и отбирала ширину у заголовка в строке без переноса. */
@media (max-width: 768px) {
  .doska-sort-label { display: none; }
}
@keyframes doska-stash-fab-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163, 127, 255, 0.45); }
  50% { box-shadow: 0 0 0 9px rgba(163, 127, 255, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .doska-stash-ai-fab.doska-stash-ai-fab { animation: none; }
}


/* Pinterest-style "куда сохранить?" sheet — per direct reference screenshot: a search box + a
   scrollable list of board rows, each with a small cover thumbnail. Base rule is the STANDALONE
   floating case (paste/drop/AI-chat landing something while the create modal isn't even open);
   [data-embedded] resets that to a plain static block for when it's rendered inside
   .doska-stash-create-modal instead (see StashTab.tsx's renderProjectPickerScreen). */
.doska-stash-project-picker {
  position: fixed; top: calc(70px + env(safe-area-inset-top, 0px)); left: 50%; z-index: 45;
  transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 4px;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-lg); padding: 10px; width: 320px; max-width: calc(100vw - 32px);
  box-shadow: none;
  animation: doska-stash-toast-in 0.2s var(--doska-ease) forwards;
  text-align: left;
}
.doska-stash-project-picker[data-embedded] {
  position: static; transform: none; width: 100%; max-width: none;
  background: none; border: none; box-shadow: none; padding: 0; animation: none;
}
.doska-stash-project-picker-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px 6px 6px;
  font-size: 13px; font-weight: 600; color: var(--doska-text);
}
.doska-stash-saved-toast-close {
  background: none; border: none; padding: 2px; color: var(--doska-text-muted); cursor: pointer; flex-shrink: 0;
}
.doska-stash-saved-toast-close:hover { color: var(--doska-text); }
.doska-stash-project-picker-search {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-bottom: 4px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-sm);
  color: var(--doska-text-muted);
}
.doska-stash-project-picker-search input { flex: 1; background: none; border: none; outline: none; font-size: 13px; color: var(--doska-text); }
.doska-stash-project-picker-search input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-stash-project-picker-search input::placeholder { color: var(--doska-text-muted); }
.doska-stash-project-picker-list { display: flex; flex-direction: column; gap: 2px; max-height: 280px; overflow-y: auto; }
.doska-stash-project-row {
  display: flex; align-items: center; gap: 10px; text-align: left; background: none; border: none;
  padding: 6px 8px; border-radius: var(--doska-radius-md); color: var(--doska-text); font: inherit; font-weight: 500; font-size: 13px; cursor: pointer;
}
.doska-stash-project-row:hover { background: var(--doska-secondary); }
.doska-stash-project-row-thumb {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: var(--doska-radius-md); background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.doska-stash-project-picker-list .doska-empty-hint { padding: 7px 10px; font-weight: 400; }
/* AI destination suggestion (StashTab.tsx) — per direct request ("на вебе... агент мне также
   предлагает распределить это соответственно актуальным наличием аналогичного проекта, папки или
   предлагает создать новый"). Accent-tinted, same "this is AI-generated" language the rest of
   this file already uses (.doska-chip--accent, SourceGuide's own summary chips) so it reads as a
   distinct suggestion layer above the plain manual list, not just another row in it. */
.doska-stash-picker-ai-suggestion { margin-bottom: 4px; }
.doska-stash-picker-ai-loading {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  font-size: 13px; color: var(--doska-text-muted);
}
.doska-stash-picker-ai-loading svg { flex-shrink: 0; color: var(--doska-accent); animation: doska-spin-kf 1.4s linear infinite; }
.doska-stash-picker-ai-row {
  display: flex; align-items: flex-start; gap: 8px; width: 100%; text-align: left;
  background: var(--doska-accent-soft); border: 1px solid var(--doska-accent);
  border-radius: var(--doska-radius-md); padding: 8px 10px; color: var(--doska-accent-ink); cursor: pointer;
}
.doska-stash-picker-ai-row:hover { filter: brightness(1.08); }
.doska-stash-picker-ai-row svg { flex-shrink: 0; margin-top: 2px; color: var(--doska-accent); }
.doska-stash-picker-ai-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doska-stash-picker-ai-text strong { font-size: 13px; font-weight: 600; }
.doska-stash-picker-ai-reason { font-size: 12px; font-weight: 400; color: var(--doska-text-muted); }
@keyframes doska-stash-toast-in {
  from { opacity: 0; transform: translate(-50%, -6px); }
  to { opacity: 1; transform: translateX(-50%); }
}
/* Фильтры/Тип/Темы/Сортировка — bumped up from a fairly small 11.5px/5x10px pill per direct
   report ("фильтры сделать крупнее"). */
.doska-stash-group-toggle {
  display: flex; align-items: center; gap: 6px; flex-shrink: 0;
  padding: 8px 14px; border-radius: 6px; font-size: 14px; font-weight: 600;
  color: var(--doska-text-muted);
}
/* Doubled selector — same .doska-root button { border: none } specificity trap as elsewhere in
   this file (see e.g. .doska-project-hero-create.doska-project-hero-create's own comment). Per
   direct report ("фильтры должны быть в обводке") — these used to have no border at all, reading
   as flat text rather than distinct buttons against the toolbar's own now-opaque background. */
.doska-stash-group-toggle.doska-stash-group-toggle { border: 1px solid var(--doska-hairline-strong); }
.doska-stash-group-toggle:hover:not(:disabled) { background: var(--doska-secondary); color: var(--doska-text); }
.doska-stash-group-toggle:disabled { opacity: 0.4; cursor: default; }
/* --doska-accent-ink, same reasoning as .doska-stash-topic-chip just below — this is the
   Фильтры/Тип/Темы/Сортировка toggle's own "open or has an active filter" state, same
   text-on-accent-soft pairing that read as barely-there in light theme. */
.doska-stash-group-toggle[data-active] { background: var(--doska-accent-soft); color: var(--doska-accent-ink); }
.doska-stash-group-toggle[data-active].doska-stash-group-toggle { border-color: var(--doska-accent); }

.doska-stash-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  padding: 60px 20px; color: var(--doska-text-muted); font-size: 13px; text-align: center;
}

/* Skeleton placeholders for the item grid while listStashItems is in flight (StashTab.tsx's own
   loading branch) — per direct request ("когда заметка еще не прогрузилась, нужна милая
   лаконичная анимация"), replacing the old lone centered spinner. Same break-inside/margin/border/
   radius shape as the real .doska-stash-card so the masonry columns hold their geometry and cards
   land exactly where their placeholder stood. The shimmer is ONE slow soft gradient sweep per
   element (background-position keyframes over an oversized gradient) — quiet by design, no pulsing
   whole-card opacity. Reduced motion: the sweep stops, the tinted blocks just sit static. */
.doska-stash-skeleton-card {
  -moz-column-break-inside: avoid;
       break-inside: avoid; margin-bottom: 20px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-lg); overflow: hidden;
  padding: 10px; display: flex; flex-direction: column; gap: 8px;
}
.doska-stash-skeleton-media,
.doska-stash-skeleton-line {
  border-radius: var(--doska-radius-sm);
  background: linear-gradient(100deg, var(--doska-surface-raised) 40%, var(--doska-hairline) 50%, var(--doska-surface-raised) 60%);
  background-size: 300% 100%;
  animation: doska-skeleton-shimmer-kf 1.6s ease-in-out infinite;
}
.doska-stash-skeleton-media { height: 120px; }
.doska-stash-skeleton-card[data-variant="1"] .doska-stash-skeleton-media { height: 180px; }
.doska-stash-skeleton-card[data-variant="2"] .doska-stash-skeleton-media { height: 90px; }
.doska-stash-skeleton-line { height: 12px; }
.doska-stash-skeleton-line--short { width: 55%; }
@keyframes doska-skeleton-shimmer-kf {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .doska-stash-skeleton-media, .doska-stash-skeleton-line { animation: none; }
}
/* Retry button for the loadError branch of renderItemGrid (StashTab.tsx) — per direct report
   ("почему происходит когда обновил страницу и заметки пропадают?"). Same accent-soft pill
   language small secondary actions use elsewhere in this file. */
.doska-stash-empty-retry {
  margin-top: 2px; padding: 7px 16px; border-radius: var(--doska-radius-md);
  background: var(--doska-accent-soft); color: var(--doska-accent-ink); font-size: 13px; font-weight: 600;
}
.doska-stash-empty-retry:hover { filter: brightness(1.08); }

/* A brand-new project's first-ever screen — per direct report ("не понял что создавать на новом
   экране слишком пусто... все внимание по центру"): the center of the empty grid used to be a
   quiet icon + one line of text with no real action anywhere near it, so this is deliberately
   the same visual weight/position (still centered, still the main thing you see) but now WITH
   the actions themselves, not just a hint that some exist elsewhere in the toolbar. */
/* Padding trimmed 96px -> 56px, max-width widened 460px -> 520px — per direct report ("поправить
   вёрстку на заглушке в пустой папке"): this same placeholder renders for BOTH a brand-new empty
   project (where a tall, spacious welcome moment made sense) and any empty FOLDER reached from
   the sidebar (a much more common, lower-ceremony case now that folders are just a click away in
   ProjectSidebar.tsx) — the original spacing read as oversized/adrift for the latter, especially
   now that the desktop tree column is gone and this content area is noticeably wider than when
   these numbers were picked. */
.doska-stash-empty-hero {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 56px 20px; max-width: 520px; margin: 0 auto; width: 100%;
}
/* Per direct report ("сделай заглушку по аналогии с папками") — restyled to a plain, chrome-free
   language (big muted icon, no boxed/dashed card) instead of the earlier bordered "upload card"
   look, while staying the same functional drop target/click target it always was. */
.doska-stash-empty-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  width: 100%; padding: 0; margin-bottom: 4px;
  border-radius: var(--doska-radius-lg);
  transition: color 140ms var(--doska-ease);
}
/* Doubled selector — `.doska-root button { background: none; border: none; color: inherit }`
   (0,1,1) otherwise silently beats this single-class rule (0,1,0), same specificity trap hit
   repeatedly elsewhere in this file (see .doska-node-ai-bubble's own comment). */
.doska-stash-empty-dropzone.doska-stash-empty-dropzone { background: none; border: none; color: var(--doska-text-muted); }
.doska-stash-empty-dropzone:hover { color: var(--doska-text); }
.doska-stash-empty-dropzone-icon { display: flex; align-items: center; justify-content: center; color: var(--doska-text-muted); opacity: 0.5; }
.doska-stash-empty-dropzone-title { font-size: 15px; font-weight: 600; color: var(--doska-text); }
.doska-stash-empty-dropzone-sub { font-size: 13px; color: var(--doska-text-muted); }
/* Per direct report ("нужно лучше видеть визуальное поле, куда я перетаскиваю... обводку") —
   the ambient whole-tab drop overlay (.doska-stash-drop-overlay) sits behind this modal's own
   backdrop and never shows while dragging over it, so THIS one instance of .doska-stash-empty-
   dropzone gets its own visible dashed field back — the chrome-free base style above (border:
   none, per that rule's own comment) stays untouched everywhere else it's reused (the main empty-
   state hero). Doubled selector for the same specificity-trap reason as the base rule just above. */
.doska-stash-empty-dropzone--modal.doska-stash-empty-dropzone--modal {
  padding: 32px 16px; border: 1.5px dashed var(--doska-hairline-strong);
  transition: border-color 140ms var(--doska-ease), background 140ms var(--doska-ease);
}
.doska-stash-empty-dropzone--modal[data-drag-active] {
  border-color: var(--doska-accent); background: var(--doska-accent-soft);
}
.doska-stash-empty-dropzone--modal[data-drag-active] .doska-stash-empty-dropzone-icon,
.doska-stash-empty-dropzone--modal[data-drag-active] .doska-stash-empty-dropzone-title { color: var(--doska-text); opacity: 1; }
/* Shared "или" divider — used both here (between the dropzone and the action row) and by the
   create-modal's own type-picker screen (between the Link field and its secondary action row).
   Symmetric margin — per direct report ("поправить вёрстку"): the old 12px-top/4px-bottom split,
   stacked on top of the dropzone's own 4px margin-bottom just above it, added up to a 16px gap
   above "или" against only 4px below it — four times more space on one side than the other, so
   "или" read as glued to the button rather than sitting centered between the two things it
   actually separates. */
.doska-stash-hero-or {
  font-size: 12px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--doska-text-muted); margin: 10px 0;
}
/* Per direct report ("тут вместо заметка и ссылка будет кнопка создать") — Заметка/Ссылка fired
   the same setCreateOpen(true) handler either way (the modal has its own Заметка/Ссылка/Файл
   tabs), so this replaces that two-tile row with one button, same solid pill
   .doska-stash-folders-empty-cta's own CTA uses. */
.doska-stash-empty-hero-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
}
/* Doubled selector — same .doska-root button specificity trap as .doska-stash-folders-empty-cta's
   own fix elsewhere in this file. */
.doska-stash-empty-hero-cta.doska-stash-empty-hero-cta { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-stash-empty-hero-cta:hover { filter: brightness(1.1); }

/* CSS multi-column, not CSS Grid — a row-based grid sizes every row to its TALLEST card, leaving
   visible holes under every shorter card sharing that row (real screenshot: a video preview next
   to a two-line note left a big empty gap below the note). Columns stack each card directly under
   the previous one in the SAME column instead, so heights differ without ever leaving a gap — the
   standard CSS-only masonry trick, confirmed live as the fix for "не было таких дырок". Order is
   column-major (fills column 1 top-to-bottom before starting column 2, via column-fill: auto) —
   pinned-first still means pinned items cluster at the very top of column 1 onward. */
.doska-stash-grid {
  /* column-fill: auto (the earlier value here) only distributes content across columns when the
     container has a CONSTRAINED height — with height:auto (this container's real case) it instead
     piles everything into column 1 alone before ever starting column 2, confirmed live ("карточки
     друг под другом вместо ряда"). Default `balance` (omitting the property) is what actually
     spreads cards across all columns on an auto-height container. */
  /* --doska-stash-columns — set inline per-render from useStashGridDensity (StashTab.tsx/
     TrashView.tsx), per direct request ("рядом с сортировкой добавить настройку плитки по сколько
     заметок выводить"). 200px is just a floor so a high column count doesn't crush cards illegibly
     narrow on a laptop-width screen — the actual count still wins up to that point, same two-value
     `columns` semantics the old fixed `4 340px` already relied on, just with a user-controlled
     count instead of a hardcoded one and a smaller floor (was 340px) per the same follow-up
     ("карточки стали слишком крупные. уменьшить"). The fallback (4) only matters before JS hydrates
     the real value on first paint. */
  /* 8pt: промежуток между колонками — шаг сетки (был 20). */
  /* БЫЛО `columns: N 200px` — браузерная кладка. Порядок в ней колоночный: первая колонка
     заполняется сверху донизу и только потом начинается вторая. По прямому запросу «нет, надо чтобы
     рядом были» порядок должен читаться РЯДАМИ: при сортировке «по типу» однородное обязано стоять
     в одном ряду, а не вытягиваться в столбик.

     Колонки теперь строит разметка (components/StashGrid.tsx), а здесь только их расстановка.
     Кладка без дыр сохраняется: каждая колонка по-прежнему стопка, карточка встаёт прямо под
     предыдущей. Чем платим — колонки больше не выравниваются по высоте, одна может оказаться
     длиннее. Это осознанная цена: сортировка нужна для чтения, а не для ровного нижнего края. */
  display: flex; align-items: flex-start; gap: var(--s-3);
}
/* Per direct report ("карты запинены... находятся одна под другой, а должны быть по
   горизонтали... хочу видеть чтобы они были по горизонтали сперва") — see StashTab.tsx's own
   comment on why: `columns` is a masonry layout (flows DOWN each column), so pinned items, always
   sorted first, kept piling into the leading column(s) instead of sitting side by side. This is a
   REAL grid (row-major, guarantees left-to-right placement), reusing the same
   `--doska-stash-columns`/200px/20px sizing as the masonry grid below it (StashTab.tsx sets the
   custom property on both, from the same gridDensity value) so pinned cards read as the same size
   as everything else, just laid out differently. */
.doska-stash-pinned-row {
  display: grid;
  /* minmax(0, 1fr), а не minmax(200px, 1fr) — per direct report («во все заметки появился
     горизонтальный скролл»). Жёсткий минимум в 200px означает: колонка НЕ МОЖЕТ стать уже, и при
     плотности 6 ряд требует 6×200 + промежутки = 1300px независимо от того, сколько места есть.
     Замерено: в колонке контента шириной 936px ряд давал scrollWidth 1300 — переполнение 364px;
     при 696px переполнение 604px. Соседняя масонри-сетка такой проблемы не имеет: у неё
     `columns: N 200px`, где N — это МАКСИМУМ, и браузер сам рисует меньше колонок, когда не
     влезает. У grid-шаблона такой уступчивости нет, её и добавляем нулевым минимумом: число
     колонок остаётся ровно тем, что выбрал пользователь («N в ряд»), но они сжимаются вместо
     того, чтобы выпихивать страницу вбок.
     Это тот же дефект, что чинили утром на мобилке — там его лечили ограничением плотности до 2,
     то есть симптоматически; здесь снимается сама причина. */
  /* Число колонок = min(выбранное N, сколько влезает по 200px) — ровно та же арифметика, по
     которой работает масонри-сетка ниже (`columns: N 200px`, где N это МАКСИМУМ, а фактическое
     число определяет ширина). Раньше здесь стояло жёсткое `repeat(N, ...)`, из-за чего ряд то
     вылезал за экран (при minmax(200px,1fr) — исправлено ранее), то показывал 6 узких колонок
     там, где сетка под ним показывала 4 (per direct report «на разрешении 1000 нужно по 4 в ряд»).
     Как это считается: минимальная ширина трека = max(200px, доступная_ширина / N). При N=6 и
     ширине 936px это max(200, 139) = 200 → auto-fill укладывает 4 трека, как и сетка. При N=2 это
     max(200, 458) = 458 → ровно 2 трека. Вычитание промежутков в формуле обязательно, иначе на
     границе округление даёт на колонку меньше. */
  grid-template-columns: repeat(auto-fill, minmax(max(200px, calc((100% - (var(--doska-stash-columns, 4) - 1) * 24px) / var(--doska-stash-columns, 4))), 1fr));
  gap: var(--s-3);
  /* Своего поля нет: шаг между блоками страницы задаёт общий `gap` колонки (24 по сетке 8pt).
     Раньше 20 своих складывались с 20 общими и давали разнобой 12 / 40 / 30 по странице. */
  margin-bottom: 0;
}
/* Neutralizes .doska-stash-card's own margin-bottom (needed for masonry row-spacing below, not
   here — this container already spaces rows via `gap`) at HIGHER specificity than either the base
   rule or its own mobile override, so it wins regardless of source order (CLAUDE.md gotcha #1). */
.doska-stash-pinned-row .doska-stash-card { margin-bottom: 0; }
/* max-width:1400px + margin:0 auto REMOVED — per direct report with specific repro steps ("на
   разрешение 1550 происходит следующее... все заметки тип темы и ряды они остаются на месте хотя
   при этом карточки начинают двигаться... это должно так же идти вместе по краю с заметками").
   Confirmed live via getBoundingClientRect at 1550px: the header row above (.doska-stash-folder-
   content-header, uncapped per .doska-board-shell--page's own fix — see that rule's comment) left-
   aligned at x=101, matching the true viewport-derived edge, while THIS grid's own independent
   `margin: 0 auto` centered it at x=346 — a ~245px mismatch that only grows as the viewport widens
   past this box's own capped/centered width, exactly the "header stays put, cards drift" symptom
   reported. Same class of bug as .doska-stash-page-content's own now-removed cap (see that rule's
   own comment for the fuller history) — this rule re-capped-and-centered ITS OWN content a level
   deeper than the outer card/header already track, and was simply missed in that earlier pass.
   No cap at all now, same "grows full-bleed with the floating card's own margin" reference
   behavior every other uncapped rule in this file already settled on. */
/* ОТКЛЮЧЕНО вместе с самим перетаскиванием карточек (per direct request «отключи тогда
   перемещение, оно будет только через три точки»): атрибуты data-stash-dragging /
   data-drag-insert / data-drag-axis / data-touch-lifted больше никто не выставляет, поэтому
   правила ниже не срабатывают. Оставлены целиком, а не вырезаны, тем же порядком, что и скрытые
   пункты меню: вернуть перетаскивание — значит вернуть атрибуты в разметку, стили уже готовы. */
/* Manual drag-order mode's own drag handle affordance (StashTab.tsx's data-stash-dragging) — per
   direct request ("нужно уметь перетаскивать в ручную порядок карточек"). grab/grabbing, not the
   browser's default drag ghost cursor, so this reads as "reorder" rather than "drag out of the
   page" the way a plain draggable="true" element does by default. */
.doska-stash-grid [data-stash-dragging] { cursor: grab; }
.doska-stash-grid [data-stash-dragging]:active { cursor: grabbing; }
/* Per direct report ("нужно показывать линию куда планирует вставить" / "не нужно общий пунктир
   показывать, мне нужно только двигать карточки показывать в какое место перетаскиваю") — a real
   insertion-line indicator right on the card being hovered during a reorder drag, replacing "no
   feedback at all beyond the unrelated whole-tab external-file-drop overlay" (which already skips
   this case anyway, see isInternalReorderDrag in onDragEnterStash — that overlay was never meant
   for this gesture). position:relative on the wrapper itself (not .doska-stash-card, a CHILD of
   this — see StashTab.tsx's own [data-stash-dragging] wrapper) so the line anchors to the exact
   card being hovered regardless of which column the multi-column masonry placed it in. Canvas-
   colored ring around the line — same "cut a gap out of whatever's underneath" trick used for
   other small accent dots/badges in this file — keeps it legible over any card content/photo
   sitting right at that edge instead of blending in. */
/* Селекторы БЕЗ привязки к .doska-stash-grid — живой отчёт «плохо перемещается для запиненных».
   Ряд закреплённых это отдельный контейнер (.doska-stash-pinned-row), и правило, написанное под
   сетку, до него не доставало: карточки там стоят в ряд, а линия оставалась горизонтальной, то
   есть повторялась ровно та ошибка, что чинилась записью 95, только в другом месте. Индикатор
   нужен везде, где есть эти атрибуты, поэтому и условие теперь только про них. */
[data-stash-dragging] { position: relative; }
[data-stash-dragging][data-drag-insert]::after {
  content: ''; position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 999px;
  background: var(--doska-accent); box-shadow: 0 0 0 3px var(--doska-canvas);
  z-index: 5; pointer-events: none;
}
[data-stash-dragging][data-drag-insert="before"]::after { top: -2px; }
[data-stash-dragging][data-drag-insert="after"]::after { bottom: -2px; }
/* Линия вставки идёт ПО ТОЙ ЖЕ ОСИ, по которой принято решение (см. dropPlacementFor). Живой
   отчёт: «плохо работает перетаскивание заметок между собой внутри категорий». Замер показал, что
   порядок считался верно, а вот подсказка врала: карточки в плитке стоят бок о бок (одинаковый
   top, разный left), тянешь вбок, а линия рисуется горизонтально ПОД карточкой и читается как
   «встанет ниже». Теперь при решении по горизонтали линия вертикальная и стоит у того края, к
   которому подводят карточку. */
[data-stash-dragging][data-drag-axis="x"]::after {
  top: 4px; bottom: 4px; height: auto; width: 3px; left: auto; right: auto;
}
[data-stash-dragging][data-drag-axis="x"][data-drag-insert="before"]::after { left: -2px; }
[data-stash-dragging][data-drag-axis="x"][data-drag-insert="after"]::after { right: -2px; }
/* Per direct request ("юзер на мобиле через зажимание должен передвигать заметки") — the card
   actually picked up by a long-press (StashTab.tsx's own touchDragActive), not the OS's native
   drag-ghost (that path is deliberately never used on touch — see the wrapper's own comment) —
   a scale+lift+shadow reads as "this one is lifted" without needing a floating ghost element that
   follows the finger; the insertion line on whatever's underneath (data-drag-insert above,
   already shared with desktop drag) shows where it'll land. */
.doska-stash-grid [data-touch-lifted] {
  transform: scale(1.04); box-shadow: none; z-index: 6;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Per direct report ("тащит но анимация не внятная что захватил") — a bare scale(1.04)+shadow was
   too subtle to read as "picked up" at a glance, especially over a busy thumbnail. A visible
   accent ring makes which card is lifted unambiguous regardless of its own content/colors; dimming
   every OTHER card while a touch drag is active (StashTab.tsx's own data-touch-drag-active on the
   grid) is the same "spotlight the one thing that's moving" idea, cheap and immediate. */
.doska-stash-grid [data-touch-lifted] {
  box-shadow: 0 0 0 2px var(--doska-accent);
  /* ГЛАВНАЯ причина «перетаскивание не работает / захвата нет» (per direct report «плохо на
     мобилке работает перетаскивание, не с первого раза, иногда захвата нет»).
     Поднятая карточка едет ВСЛЕД ЗА ПАЛЬЦЕМ (inline transform в StashTab.tsx) и лежит поверх
     остальных (z-index: 6 выше). Обработчик touchmove ищет цель через
     document.elementFromPoint(палец) — и получал ровно эту же карточку, потому что она физически
     под пальцем и сверху всех. Дальше в коде стоит честная проверка «цель === то, что тащим →
     сбросить цель», то есть цель обнулялась на каждом движении: ни линии вставки, ни подсветки
     папки, ни переноса. Срабатывало только случайно — когда палец успевал оказаться у самого края
     карточки раньше, чем та доезжала за ним. Отсюда и «через раз».
     pointer-events: none делает поднятую карточку прозрачной для попадания, и elementFromPoint
     начинает видеть то, что под ней. Сам жест от этого не страдает: его ведут слушатели на window,
     а не на карточке. Правило захватывает и фазу возврата после отпускания (те же ~160мс с
     data-touch-lifted) — там попадания тоже не нужны. */
  pointer-events: none;
}
/* Per direct report ("дивайдеры, которые показывают область, куда я перетаскиваю... пропали") —
   this dimming rule was excluding only the LIFTED card, so the moment the finger hovered a
   DIFFERENT card to insert next to it, that target card (the one actually showing the
   data-drag-insert line) got dimmed to 0.55 right along with everything else, burying its own
   insertion line. Excluding [data-drag-insert] too keeps both the lifted card AND whichever card
   is currently the drop target at full opacity — everything ELSE still dims for contrast. */
.doska-stash-grid[data-touch-drag-active] [data-stash-card-id]:not([data-touch-lifted]):not([data-drag-insert]) {
  opacity: 0.55; transition: opacity 0.15s ease;
}
/* Per direct report ("на мобилке все еще не могу зажимать и перетаскивать") — the long-press
   handlers above (StashTab.tsx's own armTouchLongPress, a 450ms window-timer) were losing the race
   to the BROWSER's own native touch-and-hold behavior: with no touch-action/callout override at
   all, a sustained hold on a card's text or thumbnail triggers iOS/Android's own text-selection
   magnifier or long-press callout (Copy/Share/Save Image) well before the app's own timer fires,
   swallowing the gesture before touchDragActive ever gets set. touch-action stays pan-y (not
   none) — a normal vertical scroll swipe must keep working; onCardTouchMovePreArm's own 8px-
   movement threshold is what already tells "quick scroll" and "held-still long-press" apart, this
   only removes the OTHER native gesture that was intercepting the "held-still" case. Mobile-only
   (matches every other touch-specific rule in this file) — touch-action/callout/select have no
   effect on desktop mouse+native-drag, which stays completely untouched. */
@media (max-width: 768px) {
  .doska-stash-grid [data-stash-dragging] {
    touch-action: pan-y; -webkit-touch-callout: none; -webkit-user-select: none; -moz-user-select: none; user-select: none;
  }
}

/* The grid's own "+" first card — per direct follow-up, once the empty-state hero (with its big
   dropzone) is gone because real cards already exist, there was no add affordance living inside
   the grid itself anymore, only the toolbar's own "Создать" far above. Same masonry-column fit
   (break-inside/margin-bottom) as a real .doska-stash-card, dashed instead of solid so it always
   reads as "add", never as content. */
.doska-stash-add-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  width: 100%; -moz-column-break-inside: avoid; break-inside: avoid; margin-bottom: 20px;
  padding: 36px 16px; border-radius: var(--doska-radius-lg);
  font-size: 13px; font-weight: 600;
  transition: border-color 140ms var(--doska-ease), color 140ms var(--doska-ease), background 140ms var(--doska-ease);
}
/* Doubled selector for border/color — same `.doska-root button { border: none; color: inherit }`
   specificity trap as .doska-stash-empty-dropzone above (0,1,1 beating this rule's own 0,1,0).
   color was missed the first pass here too — see .doska-stash-link-continue's own comment
   ("в кнопке не вижу текст") for where this exact mistake was first caught live.
   A little fill instead of pure transparent — per direct follow-up with a screenshot ("тут можно
   немного серого фона добавить"), the tile read as a bare outline floating on the canvas color
   with nothing behind it. --doska-surface is a step up from --doska-surface-raised (the hover
   state below), so hovering still reads as a further lift, not a flatten. */
.doska-stash-add-card.doska-stash-add-card { border: 1.5px dashed var(--doska-hairline-strong); background: var(--doska-surface); color: var(--doska-text-muted); }
.doska-stash-add-card:hover { border-color: var(--doska-accent-ink); color: var(--doska-text); background: var(--doska-secondary); }
.doska-stash-add-card-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid currentColor;
}

.doska-stash-card {
  position: relative; -moz-column-break-inside: avoid; break-inside: avoid; margin-bottom: 20px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-lg); overflow: hidden; cursor: pointer;
  transition: transform 140ms var(--doska-ease), border-color 140ms var(--doska-ease);
}

/* Per direct reference (a Pinterest saved-pins screenshot: "вот как нужно чтобы выглядела сетка
   её шаг на мобильной версии") — the desktop rule's 300px column-width floor collapses to a
   single column on a phone-width viewport, nowhere near Pinterest's tight two-column masonry.
   Tighter floor + gap to match. Placed after the base .doska-stash-grid/.doska-stash-card rules
   above (equal specificity) so it actually wins on a narrow viewport instead of losing to them by
   source order.
   Was a hardcoded `columns: 2` — per direct follow-up ("в моб версии нужно также настраивать вид
   отображения карточек... по 1 или 2 в ряд") that ignored the density picker entirely on mobile
   (see useStashGridDensity.ts's own stashGridDensityOptionsFor), now reads the same
   --doska-stash-columns var the desktop rule already does, just with a much smaller 150px floor
   (desktop's 200px is too wide for 2 columns to ever fit a phone viewport) — 1 still renders as a
   single full-width column same as before, 2 now actually renders 2 instead of being forced. */
@media (max-width: 768px) {
  .doska-stash-grid { gap: 8px; }
  .doska-stash-card { margin-bottom: 8px; }
  /* Mirrors the masonry grid's own mobile column-width/gap tightening just above, so the pinned
     row above it doesn't look wider-spaced than the grid it sits on top of. */
  .doska-stash-pinned-row { grid-template-columns: repeat(var(--doska-stash-columns, 2), minmax(150px, 1fr)); gap: var(--s-1); margin-bottom: 0; }
  /* Per direct follow-up ("убрать отступы по краям, забирают место") — the desktop 28px side
     padding left noticeably less room for two already-narrow columns on a phone; each card
     gained real width once this dropped to match the Pinterest reference's own tight edges. */
  .doska-stash-tab { padding: 16px 12px 60px; }
  /* Per direct request ("все фильтры на мобилке сделать аналогично... в одну строку") — this row
     (title + Создать/Плитка/Сортировка) had no overflow handling at all, unlike Тип/Темы's own
     scroll-instead-of-wrap treatment elsewhere. A long folder name plus three action buttons has
     nowhere near enough room on a phone, and with the default flex-wrap:nowrap it would just
     overflow past the screen edge with no way to reach whatever fell off. Title truncates to make
     room first; the actions themselves get a scroll fallback for whatever's still left over after
     that — Тип/Темы joined this same row/scroll fallback right after, per a later direct request
     with a reference screenshot ("все баблы селекторы сделать в одну линию на мобилке как тут"). */
  /* column, not row — per direct report ("тут нужно фильтры перенести под название папки"): a
     real folder name plus Тип/Темы/Сортировка/Плитка all fighting for ONE row left them cramped
     together at 390px even with the title's own truncation below. Same stacked title-then-filters
     layout the ROOT level already had (see the data-title-empty rule right below for why THAT case
     needs one more tweak on top of just this). align-items:flex-start overrides the base rule's
     own align-items:center — that value centers cross-axis children for a ROW (vertical centering,
     what it was tuned for); in a COLUMN the cross axis is width, where centering would shrink each
     row to hug its own content width instead of letting it stretch — width:100% on the children
     below does the actual stretching, this is just clearing the center override out of the way. */
  .doska-stash-folder-content-header { flex-direction: column; align-items: flex-start; }
  .doska-stash-folder-content-title { min-width: 0; width: 100%; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Root level only (breadcrumbChain empty — see StashTab.tsx's own ternary) — blanked to an empty
     string there already (ProjectHeader's own compact title covers "which project" instead), but
     an empty h2 still reserves a line-height-tall "strut" above the actions row now that the two
     stack — confirmed live, a dead ~30px gap before Тип/Темы. display:none removes the row outright
     instead; nothing was visibly in it to hide either way. */
  .doska-stash-folder-content-header[data-title-empty] .doska-stash-folder-content-title { display: none; }
  .doska-stash-folder-content-actions {
    width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .doska-stash-folder-content-actions::-webkit-scrollbar { display: none; }
  /* Блок ниже стоит ПОСЛЕ правила о прокрутке строки действий намеренно: то задаёт
     `flex: 0 1 auto` с той же специфичностью, и при равенстве побеждает последнее объявление.
     Замер до перестановки: кнопки оставались в одной строке с заголовком. */
  /* КАТЕГОРИИ: три действия уезжают ПОД заголовок и становятся кружками с иконками — per direct
     request («на мобилке для раздела категории три кнопки под заголовком перенести под слово
     „Категории“, и они будут просто иконки в кружках»). В одну строку с заголовком они не влезали:
     замер показывал обрезанное многоточием название раздела.
     Подписи прячутся (.doska-action-label), у <select> текст рисует сам браузер — поэтому он
     становится прозрачным и накрывает собой кружок с иконкой, оставаясь настоящим нативным
     выпадающим списком: тап открывает системный выбор, как и раньше. */
  /* Специфичность (0,5,0) — замер показал, что правило `flex: 0 1 auto` у строки действий имеет
     (0,4,0) и побеждало: кнопки оставались в одной строке с заголовком, хотя перенос уже был
     разрешён. Готча №1 в чистом виде — считать специфичность, а не надеяться на порядок. */
  .doska-collections-header.doska-collections-header.doska-collections-header .doska-collections-actions.doska-collections-actions {
    flex: 1 0 100%; justify-content: flex-start; gap: 10px; margin-top: 10px; overflow: visible;
  }
  .doska-collections-actions .doska-action-label { display: none; }
  .doska-collections-actions .doska-stash-folder-content-action {
    width: 44px; height: 44px; padding: 0; border-radius: 6px; justify-content: center;
  }
  .doska-collections-sort-wrap {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 999px;
    background: var(--doska-accent-soft); color: var(--doska-accent);
  }
  .doska-collections-sort-wrap .doska-collections-sort.doska-collections-sort {
    position: absolute; inset: 0; width: 100%; height: 100%;
    padding: 0; border-radius: 999px; background: transparent; color: transparent; opacity: 0.01;
  }
  /* ВНУТРИ ПРОЕКТА: все кнопки строки действий — кружки с иконками, без подписей — per direct
     request («на мобилке внутри проекта поправить расположение кнопок; все кнопки должны быть с
     иконками без текста»). Строка стоит под обложкой и содержит СЕМЬ действий (Создать,
     Пригласить, Поделиться, «···», Разбить на категории, Новая категория, Сортировка) — с
     подписями они не помещались и переносились на три ряда, съедая экран.
     Порядок на телефоне — простой слева направо: правило `order`, разводящее группы по краям, для
     узкой строки бессмысленно и только путает. Не влезло — строка прокручивается вбок, как и
     остальные ряды действий на мобилке. */
  /* Удвоенные классы — готча №1: базовое правило строки (`flex-wrap: wrap`, `order` у групп)
     объявлено НИЖЕ этого медиазапроса и при равной специфичности побеждало. Замер показывал
     flex-wrap: wrap и три ряда кнопок вместо одного. */
  .doska-project-actions-bar.doska-project-actions-bar {
    flex-wrap: nowrap; gap: 8px; padding: 0 16px;
    overflow-x: auto; scrollbar-width: none;
  }
  .doska-project-actions-bar::-webkit-scrollbar { display: none; }
  .doska-project-actions-bar.doska-project-actions-bar > * { flex: 0 0 auto; order: 0; margin: 0; }
  .doska-project-actions-bar .doska-action-label,
  .doska-project-actions-bar .doska-inline-action-label,
  .doska-project-actions-bar .doska-sort-label,
  .doska-project-actions-bar .doska-project-hero-mobile-create-label { display: none; }
  .doska-project-actions-bar .doska-stash-folder-content-action,
  .doska-project-actions-bar .doska-inline-action,
  .doska-project-actions-bar .doska-stash-group-toggle,
  .doska-project-actions-bar .doska-project-hero-mobile-create {
    width: 44px; height: 44px; padding: 0; border-radius: 6px; justify-content: center; flex: 0 0 auto;
  }
  /* Группа доступа на телефоне не прижимается вправо: строка и так узкая, а `flex: 1` у неё
     растягивал пустоту между кнопками. */
  .doska-project-actions-bar .doska-project-hero-actions-row { flex: 0 0 auto; }
  .doska-project-actions-bar .doska-project-hero-actions { gap: 8px; width: auto; }
  .doska-project-actions-bar .doska-project-hero-create-inline { margin-right: 0; }
  /* СПЕЙСЫ: единственное действие раздела — кружок с плюсом, без подписи (per direct request).
     Строка остаётся напротив заголовка: одна кнопка помещается рядом с ним и не отбирает у него
     ширину, в отличие от трёх кнопок «Категорий». */
  .doska-projects-actions .doska-action-label { display: none; }
  .doska-projects-actions .doska-stash-folder-content-action {
    width: 44px; height: 44px; padding: 0; border-radius: 6px; justify-content: center;
  }
  /* «ВСЕ ЗАМЕТКИ»: та же раскладка, что у «Категорий» — кнопки уходят ПОД заголовок и становятся
     кружками с иконками (per direct request «на мобилке кнопки нужно сделать под словом „Все
     заметки“»). Правило отдельное, а не общее для всех шапок: внутри проекта и папки строка
     действий должна оставаться напротив названия — это было отдельной прямой просьбой раньше.
     Специфичность (0,5,0) по той же причине, что у «Категорий»: `flex: 0 1 auto` у строки действий
     имеет (0,4,0) и иначе побеждает. */
  .doska-allnotes-header.doska-allnotes-header.doska-allnotes-header { flex-wrap: wrap; }
  .doska-allnotes-header.doska-allnotes-header.doska-allnotes-header .doska-stash-folder-content-actions.doska-stash-folder-content-actions {
    flex: 1 0 100%; justify-content: flex-start; gap: 10px; margin-top: 10px; overflow: visible;
  }
  /* «Создать» — на строке заголовка, у правого края (per direct request «на мобилке „создать
     заметку“ расположить на уровне текста „Все заметки“ справа»). Заголовок здесь занимал всю
     ширину (замер: 342 при колонке 342) и сталкивал кнопку на следующую строку, поэтому он
     становится сжимаемым, а кнопка — нет. Специфичность (0,4,0)/(0,5,0) по той же причине, что у
     соседей: правило `flex: 1 0 100%` для заголовка стоит выше по файлу с (0,3,0). */
  .doska-allnotes-header.doska-allnotes-header.doska-allnotes-header .doska-stash-folder-content-title {
    flex: 1 1 auto; width: auto; min-width: 0;
  }
  /* Подписи прячем у всех трёх видов кнопок этой строки: у сортировки своя (.doska-sort-label),
     у «Создать» — своя (.doska-project-hero-mobile-create-label). */
  .doska-allnotes-header .doska-sort-label,
  .doska-allnotes-header .doska-project-hero-mobile-create-label { display: none; }
  .doska-allnotes-header .doska-stash-group-toggle,
  .doska-allnotes-header .doska-allnotes-create.doska-allnotes-create {
    width: 44px; height: 44px; padding: 0; border-radius: 6px; justify-content: center;
  }
  /* Шапка «Категорий» переносится: заголовок первой строкой, кружки второй. Селектор утроен по
     тому же правилу, что и соседние — иначе более раннее `flex-wrap: nowrap` у шапки победит. */
  .doska-collections-header.doska-collections-header.doska-collections-header { flex-wrap: wrap; }

}
.doska-stash-card:hover { transform: translateY(-2px); border-color: var(--doska-hairline-strong); }
.doska-stash-card[data-pinned] { border-color: var(--doska-accent); box-shadow: 0 0 0 1px var(--doska-accent-soft); }
/* List view — per direct request ("нужно добавить два вида отображения - сетка и список", then
   "вот что должно быть видно когда включил вид список: маленькое превью, название, три точки в
   правом углу, автор кто создал, last viewed, updated, created" with two reference screenshots —
   Craft's own sortable-columns file table and a Google-Drive-style row list). A real table now:
   a header row (.doska-stash-list-header, StashTab.tsx) shares the EXACT SAME grid-template-
   columns as every row so labels line up, columns:1 degenerates the masonry to a plain stack.
   No "Обновлено"/Updated column — a stash item has no updatedAt column in the data model at all
   (see StashSortMode's own comment in StashTab.tsx); faking one would just be wrong data, so this
   only shows the three timestamps that are actually real: Автор, Просмотрено, Создано.
   Column widths repeated identically on both the header and .doska-stash-card — keep them in
   sync if either ever changes. */
/* Per direct request ("заметки в виде списка делать по всей ширине") — the shared 1400px cap
   above exists to line the grid/card view up with the gallery pages' own column width, but list
   view is a plain top-to-bottom row stack, not a masonry that benefits from a narrower measure;
   with the desktop tree column gone (ProjectSidebar.tsx owns navigation there now, see StashTab's
   own hideTree), capping it left visible empty margins on a wide screen with nothing filling
   them. .doska-stash-list-header needs the identical override — it's this grid's own first CHILD
   (see that rule's own comment on why), so leaving IT capped would misalign the header from the
   now-full-width rows under it, the exact bug already fixed once this session. */
/* Режим списка: колонка одна (её строит StashGrid), поэтому здесь только убираем зазор и
   ограничение ширины — раскладка сама по себе уже вертикальная. */
.doska-stash-grid[data-view="list"] { gap: 0; max-width: none; }
.doska-stash-grid[data-view="list"] .doska-stash-list-header { max-width: none; margin: 0 0 4px; }
.doska-stash-list-header {
  display: grid; grid-template-columns: 26px 48px minmax(0, 1fr) 140px 110px 110px 32px; align-items: center; gap: 14px;
  padding: 6px 14px; margin: 0 auto 4px; max-width: 1400px;
  font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0;
  color: var(--doska-text-muted);
  border-bottom: 1px solid var(--doska-hairline);
}
/* First cell is the new checkbox column's own header slot (StashTab.tsx's leading empty <span />
   — per direct report "чекбоксы в листе должны быть рядом а не на изображении", a real grid
   column now, not an absolute overlay on the thumbnail), second is "Превью" — both stay
   unlabeled, same reasoning as before: neither the checkbox nor the thumbnail column needs a
   visible text header. */
.doska-stash-list-header span:first-child,
.doska-stash-list-header span:nth-child(2) { visibility: hidden; }
/* Flat rows, not individually-boxed cards — per direct report ("не нужны обводки просто через
   дивайдер в виде список как тут"), matching both reference screenshots (Craft's own file table,
   a Google-Drive-style row list): a divider between rows, no per-row border/rounded corners/
   raised surface. Doubled selector on background/border/border-radius — same .doska-root button
   specificity trap as elsewhere in this file, only actually hit here now that .doska-stash-card
   can render as a <button>-free plain div still losing this particular fight (border/background
   from the BASE .doska-stash-card rule are already single-class themselves, so this override
   needs one extra class to reliably beat them, not the trap). */
.doska-stash-grid[data-view="list"] .doska-stash-card.doska-stash-card {
  display: grid; grid-template-columns: 26px 48px minmax(0, 1fr) 140px 110px 110px 32px; align-items: center; gap: 14px;
  padding: 10px 14px; margin-bottom: 0;
  background: none; border: none; border-radius: 0;
}
/* Per direct report ("убрать дивайдеры по бокам листов и также лишние внутри") — the plain
   border-bottom this used to be (see git history) ran the row's own FULL box width, edge to edge
   of the list itself: touching the outer left/right margins on one side, and running underneath
   the checkbox+thumbnail columns on the other (real screen space, but nothing there for a divider
   to actually be separating). A positioned pseudo-element instead of the border lets both ends be
   pulled in independently — left:116px lines it up with where the title column itself starts
   (padding 14 + checkbox 26 + gap 14 + plate 48 + gap 14, the row's own grid-template-columns/gap
   just above), right:14px matches the row's own trailing padding instead of running past it. */
.doska-stash-grid[data-view="list"] .doska-stash-card.doska-stash-card::after {
  content: ''; position: absolute; left: 116px; right: 14px; bottom: 0; height: 1px;
  background: var(--doska-hairline);
}
.doska-stash-grid[data-view="list"] .doska-stash-card:hover { transform: none; background: var(--doska-secondary); }
/* Per direct report with a screenshot ("бабл источник мешает в виде списка") — the hover
   "Источник" pill is positioned for a tall GRID card's own empty bottom-left corner; a compact
   list row has no such corner, so it floated over the neighbouring row's thumbnail/text. List
   rows keep the same destination reachable through the row itself/«···» menu, so the pill is
   just noise here. Doubled selector — .doska-stash-card:hover .doska-stash-card-source-btn's own
   opacity:1 rule shares specificity and sits later in this file otherwise. */
.doska-stash-grid[data-view="list"] .doska-stash-card-source-btn.doska-stash-card-source-btn { display: none; }
.doska-stash-grid[data-view="list"] .doska-plate-media-img { position: absolute; inset: 0; width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
/* Per direct report ("заголовки не стоят над своими местами в таблице") — the 6-column template
   (140px+110px+110px fixed, on top of the thumbnail/text/menu columns) never had a narrow-
   viewport fallback at all: on anything phone-width, those three fixed columns alone already
   exceed the available width, so header and row could end up computing different actual column
   widths from each other depending on where each ran out of room — same "Плитка"-hidden-on-
   mobile breakpoint (900px) already used for the exact same "doesn't fit a phone" reason just
   above. Автор/Просмотрено/Создано drop out entirely below that width — thumbnail+title+menu
   only, which always has room to align correctly regardless of viewport. */
@media (max-width: 900px) {
  /* Fixed a real live bug here — per direct report with a screenshot ("огромное превью, текст
     обрезан до пары букв, «···» наезжает"): this used to collapse straight to a 3-track template
     (plate/text/menu), silently forgetting the CHECKBOX column also participates in this same grid
     (.doska-stash-card-select has its own `order:-1`, unconditional at every width — see that
     rule's own comment). With only 3 explicit tracks but 4 real grid items needing placement
     (checkbox, plate, text, menu — the three .doska-stash-list-meta divs are display:none below,
     genuinely removed from layout, so THEY were never the problem), CSS Grid auto-placement quietly
     shifted everything over by one: checkbox stole the plate's 48px track, the plate landed in the
     huge 1fr track meant for the title (exactly the oversized image in the screenshot), the title
     got squeezed into the menu's 32px track (the "Cli…" truncation), and the real menu button
     overflowed to an implicit second row. Keeping the checkbox's own 26px track (same width the
     desktop template already reserves for it) fixes the count back to 4-items/4-tracks. */
  .doska-stash-grid[data-view="list"] .doska-stash-card.doska-stash-card {
    grid-template-columns: 26px 48px minmax(0, 1fr) 32px;
  }
  /* Per direct report ("убрать лишние дивайдеры на мобилке") — every one of this header's own
     column labels (Название/Автор/Просмотрено/Создано) is hidden on mobile one way or another (see
     the rules this replaced, kept in git history), so the row itself was rendering as a blank strip
     of padding topped by its own border-bottom — a divider separating nothing from nothing, right
     above the first real row's own identical-looking divider, reading as one doubled-up line.
     Hiding the whole row outright removes that empty strip instead of just its already-invisible
     text. */
  .doska-stash-list-header { display: none; }
}
/* Always visible in list view — per direct request ("три точки в правом углу"), not the hover-
   only reveal grid view uses (a table row has no "hover to discover this exists" convention the
   way a dense photo grid does). Repositioned to vertically center in a now-much-shorter row
   instead of pinning to the top-left corner of a tall card. */
.doska-stash-grid[data-view="list"] .doska-stash-card-menu-btn { opacity: 1; top: 50%; transform: translateY(-50%); }
.doska-stash-grid[data-view="list"] .doska-stash-card-ai-bubble { display: none; }
/* Doubled selectors on both badges below (menu-btn/promote) — same .doska-root button
   { background: none; ... } specificity trap as .doska-gallery-cover-result/.doska-gallery-new-btn
   elsewhere in this file: a single class here is (0,1,0), losing to that reset's (0,1,1), so the
   dark translucent backdrop these badges depend on for legibility over arbitrary card content
   never actually rendered — confirmed live (computed background-color read back fully transparent),
   worst in light theme where the plain white icon then sat directly on a near-white card. */
/* Pin/Move/Share/Delete consolidated into one "•••" trigger — per direct request ("на карточке
   нужно чтобы это было в три точки"), replacing what used to be 3 separate always-competing
   hover-reveal icons (.doska-stash-card-delete/-pin, now gone) with one. The actual dropdown
   (.doska-stash-card-menu below) is portal-rendered to document.body, not a child of this card —
   see CardShell's own comment in StashCards.tsx for why. */
.doska-stash-card-menu-btn {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 6px; opacity: 0;
  backdrop-filter: blur(3px); transition: opacity 0.12s ease, color 0.12s ease;
}
/* Doubled selector — same .doska-root button { background: none; color: inherit } specificity
   trap as elsewhere in this file. color was still on the single-class rule above (0,1,0), losing
   to that reset's (0,1,1) — confirmed live: the "•••" icon inherited the surrounding dark text
   color instead of white, unreadable against its own dark circle ("не видно иконку... слишком
   темный круг"). background already had this fix; color needed it too. */
.doska-stash-card-menu-btn.doska-stash-card-menu-btn { background: rgba(0, 0, 0, 0.55); color: #fff; }
.doska-stash-card:hover .doska-stash-card-menu-btn { opacity: 1; }
.doska-stash-card-menu-btn:hover { color: var(--doska-accent); }
/* Menu actively open — real state, not hover-reveal-only. Per direct report ("для заметок,
   которые я запинил, не нужно постоянно выводить три точки... по наведению, а если ушёл с
   карточки — не нужно отображать"), pinned no longer forces this visible on its own — the
   always-on pin badge (.doska-stash-card-pin-badge) is the persistent signal now, this button
   goes back to the same hover-only reveal every other card gets. */
.doska-stash-card-menu-btn[data-active] { opacity: 1; background: var(--doska-accent); color: var(--doska-accent-contrast); }
/* Selected card itself reads as selected even once the cursor moves elsewhere — same solid-ring
   convention every other "this is the drop/selection target" state in this file uses (see
   .doska-project-header-breadcrumb-item[data-drag-over]'s own comment on why a ring beats a tint
   for staying legible). */
/* Per direct report with a screenshot ("зарезал обводку", confirmed "обводка выделения (rings)
   обрезается") — an OUTSET ring (0 0 0 2px, drawn 2px outside the card's own border box) got
   visually cut wherever a neighboring card (the folder-card grid sitting right above the item
   grid, in particular) painted over that 2px sliver with its own opaque background — masonry/
   grid neighbors sit close enough that there was no guaranteed clearance for anything drawn
   OUTSIDE a card's own box. inset draws the ring INSIDE the border box instead, so it can never
   overlap a neighbor regardless of gap sizing — same rounded shape, same visual "this one's
   selected" read, just structurally immune to this class of clipping. */
.doska-stash-card[data-selected] { box-shadow: inset 0 0 0 2px var(--doska-accent); border-color: transparent; }

/* Floating bulk-action bar (StashTab.tsx) — bottom-center, clear of .doska-stash-ai-fab's own
   bottom-RIGHT spot so the two never collide even on a narrow viewport. z-index above the fab
   (40) for the rare case a long grid's scroll position puts them close together. */
.doska-stash-bulk-bar {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 45;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 18px; border-radius: 999px;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  box-shadow: none;
  /* Per direct report with a screenshot ("на мобилке зарезано меню когда нажал чекбокс") — every
     child here is white-space:nowrap (count + two move buttons + delete, none allowed to wrap),
     so centering via left:50%/translateX(-50%) with no width ceiling let the bar grow wider than
     a narrow phone's own viewport and get clipped equally off both edges ("рано" instead of
     "Выбрано"). Capped to the viewport with room either side; the actions row below scrolls
     horizontally on its own if it's still too wide to fit at once, rather than clipping. */
  max-width: calc(100vw - 24px);
}
.doska-stash-bulk-bar-count { font-size: 13px; font-weight: 600; white-space: nowrap; flex: 0 0 auto; }
.doska-stash-bulk-bar-actions { display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.doska-stash-bulk-bar-actions::-webkit-scrollbar { display: none; }
.doska-stash-bulk-bar-btn {
  display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px;
  border-radius: 6px; background: var(--doska-surface); font-size: 13px; font-weight: 600;
  white-space: nowrap;
}
.doska-stash-bulk-bar-btn:hover { background: var(--doska-hairline); }
.doska-stash-bulk-bar-btn--danger { color: var(--doska-danger); }
/* Per direct follow-up ("можно не только в папку, но и в другие проекты") — "В папку"/"В другой
   проект" are two separate trigger buttons now (StashTab.tsx's own bulkMoveScreen), each opening
   its own list; this just marks whichever one is currently open, same "state beats plain hover"
   convention .doska-stash-card-menu-btn[data-active] above already uses. */
.doska-stash-bulk-bar-btn[data-active] { background: var(--doska-accent); color: var(--doska-accent-contrast); }
/* Position (top/bottom/left/right) is set inline via useDropdownRect + createPortal in
   StashTab.tsx — the wrap itself no longer anchors anything (portaled straight to document.body
   to escape .doska-stash-bulk-bar-actions' own overflow-x:auto clipping, see that hook's comment
   for the "меню не открывается" bug this fixed). Only sizing lives here now. */
.doska-stash-bulk-move-menu.doska-stash-bulk-move-menu {
  max-height: 260px; overflow-y: auto;
}
.doska-stash-bulk-bar-confirm {
  display: flex; align-items: center; gap: 8px; font-size: 13px; white-space: nowrap; padding: 0 4px;
}
.doska-stash-bulk-bar-confirm button {
  height: 30px; padding: 0 12px; border-radius: 6px; background: var(--doska-surface); font-size: 12px; font-weight: 600;
}
.doska-stash-bulk-bar-close {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 999px; color: var(--doska-text-muted);
}
.doska-stash-bulk-bar-close:hover { background: var(--doska-secondary); color: var(--doska-text); }

/* Per-card AI bubble -- per direct request ("при наведении на каждую карточку также будет виден ИИ
   бабл, при нажатии будет диалог по данной карточке"). Same gradient-circle look as Card.tsx's own
   .doska-node-ai-bubble (the equivalent per-node button on a Холст card) for a consistent "this is
   the AI entry point" visual language app-wide. Top-right, third slot in the same 30px-apart stack
   as .doska-stash-card-menu-btn (right:8) / -promote (right:38) -- per direct report ("плохо видно
   AI bubble перекрыто... нужно чтобы был справа в углу"): top-LEFT collided with
   .doska-stash-plate-link (the "Открыть карту"/"Открыть источник" badge LinkCard/PlaceCard render
   at that exact same 8px inset), invisible before this bubble stopped being hidden-until-hover.
   right:68 clears both. */
/* opacity: 0.9 (not 0) at rest -- per direct follow-up ("должно быть не только внутри заметки, а
   снаружи карточки видно при наведении что можно спросить ИИ про неё"): a fully-hidden-until-hover
   icon meant the only thing discoverable from outside the card was the browser's own plain title
   tooltip (which needs the cursor sitting still exactly on this 24px spot first) -- no visible
   affordance at all before that. Same fix Card.tsx's own .doska-node-ai-bubble already went through
   for the identical complaint ("иконка ИИ должна быть более заметна") -- always at least partly
   visible, brightening to full opacity + a slight lift on hover instead of appearing from nothing. */
/* Solid, vivid mesh-tone fill (same palette as the page-level .doska-stash-ai-fab, just static —
   no animation needed at 24px) — per direct report ("ии баблы должны быть в цветной заливке").
   Doubled selector on the background line — same `.doska-root button { background: none }`
   specificity trap (0,1,1) beating a single-class rule (0,1,0) documented elsewhere in this file:
   turns out the PREVIOUS gradient never actually painted at all (confirmed live via
   getComputedStyle — backgroundImage was literally "none"), so this bubble has had NO fill
   whatsoever since it first shipped, not just a muted one — box-shadow alone was carrying it. */
.doska-stash-card-ai-bubble {
  position: absolute; top: 8px; right: 38px; z-index: 2;
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  border-radius: 999px; color: #fff;
  /* Hover-revealed, same as its sibling .doska-stash-card-menu-btn just above — per direct
     follow-up ("икнока ии видна только при наведении. а сейчас видна все время. поправить")
     reversing an earlier "opacity: 1 always" attempt at this exact element that went the
     wrong direction off an ambiguous report. This was always meant to be hover-only, matching
     every other per-card overlay button; always-on just looked cluttered with every card's
     badge showing at once. */
  opacity: 0;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.28);
  transition: opacity 0.12s ease, transform 0.12s ease, filter 0.12s ease;
}
.doska-stash-card:hover .doska-stash-card-ai-bubble { opacity: 1; }
/* Fixed violet middle stop, not var(--doska-accent) — see .doska-node-ai-bubble's own comment on
   why that token (the theme's monochrome ink, near-white in dark mode) washed this out to a pale
   pearl blob instead of an actually colored badge. */
/* Darker than the first pass — see .doska-node-ai-bubble's own comment ("заливку нужно темнее"). */
.doska-stash-card-ai-bubble.doska-stash-card-ai-bubble { background: var(--doska-accent-brand); }
/* Same color:#fff-losing-to-`.doska-root button { color: inherit }` specificity trap as
   .doska-node-ai-bubble's own fix right above — the base rule's color:#fff (0,1,0) never actually
   won against that reset (0,1,1), so this icon was black too, not just the canvas one. */
.doska-stash-card-ai-bubble.doska-stash-card-ai-bubble { color: #fff; }
.doska-stash-card-ai-bubble:hover { transform: scale(1.12); filter: brightness(1.1); }
/* Тач-устройства разбираются в мобильном блоке ниже: там наведения нет вовсе, и кнопка «···»
   показана постоянно — кнопка закрепления ведёт себя так же (см. .doska-stash-card-pin-badge--off
   в медиазапросе max-width: 768px). */
/* Per direct request ("при ховере на заметку кнопку сразу на источник"), then a direct follow-up
   on the look/placement ("должна быть больше, похожа на нормальную кнопку, только серая и
   крупнее, и... на более видимом месте") — a real labelled pill (same height/padding/radius
   family as .doska-stash-empty-hero-cta's own "Создать" button, just gray instead of accent-
   filled), not another tiny icon circle squeezed into the already-crowded top-right corner
   (menu-btn/ai-bubble/pin-badge). Moved to bottom-left — the one corner nothing else on this card
   ever occupies (the select checkbox owns top-left, everything else lives top-right), so it reads
   as its own clear action instead of a 5th icon in a row of 4. Only ever rendered at all when
   item.sourceUrl exists (StashCards.tsx), so no `display:none` gate is needed here — the element
   itself is conditional. */
.doska-stash-card-source-btn {
  position: absolute; bottom: 10px; left: 10px; z-index: 2;
  display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 12px;
  border-radius: 999px; opacity: 0; font-size: 12px; font-weight: 600; white-space: nowrap;
  /* A real gray (per direct request, "только серая") rather than the other corner buttons' own
     near-black glass — still translucent + blurred so it stays legible sitting on top of an
     unpredictable photo either way. */
  background: rgba(142, 142, 153, 0.68); color: #fff;
  backdrop-filter: blur(4px); transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.doska-stash-card:hover .doska-stash-card-source-btn { opacity: 1; }
.doska-stash-card-source-btn:hover { background: rgba(160, 160, 172, 0.8); }

/* ---------- ProjectsHome ("Проекты" home — per direct request "давай сделаем главную страницу
   где будет по аналогии" with a real reference screenshot: big centred AI input up top, a
   projects grid below) ---------- */
.doska-projects-home { max-width: 1000px; margin: 0 auto; padding: 40px 2px 60px; display: flex; flex-direction: column; gap: 56px; }
.doska-projects-home-hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.doska-projects-home-title {
  font-family: var(--doska-font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; color: var(--doska-text);
}
.doska-projects-home-subtitle { max-width: 520px; font-size: 14px; color: var(--doska-text-muted); line-height: 1.5; margin: 0 0 12px; }
.doska-projects-home-input-wrap {
  /* align-items was flex-end — fine for a single fixed-height button, but per direct report
     ("поправить верстку поиска") it left the button glued to the wrap's own bottom padding edge
     rather than centered against the textarea's one line of text, reading as slightly off/
     bottom-heavy at the box's normal (rows=1) height. center keeps both buttons true to the text's
     own vertical middle regardless of height, and still holds up once the textarea grows past one
     line (buttons stay centered against the whole block rather than pinned to its last line). */
  width: 100%; display: flex; align-items: center; gap: 6px;
  /* 999px, не 22px — тот же смысл «пилюля», что и у остальных 253 мест файла; 22px совпадал с
     999px только визуально (≈ половина высоты поля), пока кто-то не увеличил бы padding. */
  padding: 10px 10px 10px 20px; border-radius: 999px; border: 1px solid var(--doska-hairline-strong);
  background: var(--doska-surface);
}
.doska-projects-home-input {
  flex: 1; min-width: 0; resize: none; max-height: 120px; background: none; border: none;
  color: var(--doska-text); font-size: 14px; line-height: 1.5; font-family: inherit;
}
.doska-projects-home-input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-projects-home-input::placeholder { color: var(--doska-text-muted); }
/* Same icon-button treatment as .doska-search-mic (SearchBar.tsx's own top-nav mic), sized to
   match .doska-projects-home-send-btn right next to it rather than that button's own smaller
   13px/no-fixed-box footprint — this pair sits inside a visibly larger pill, so both need to read
   as equally-weighted actions, not one prominent circle next to a bare icon glyph. */
.doska-projects-home-mic-btn {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 999px; color: var(--doska-text-muted);
}
.doska-projects-home-mic-btn:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-projects-home-mic-btn[data-recording] {
  color: #fff; background: var(--doska-danger); animation: doska-mic-pulse 1.2s ease-in-out infinite;
}
.doska-projects-home-send-btn {
  display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex-shrink: 0;
  border-radius: 6px; background: var(--doska-accent); color: var(--doska-accent-contrast);
}
.doska-projects-home-send-btn:disabled { opacity: 0.35; }
.doska-projects-home-send-btn:not(:disabled):hover { filter: brightness(1.1); }
.doska-projects-home-prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.doska-projects-home-prompt-chip {
  padding: 8px 14px; border-radius: 6px; border: 1px solid var(--doska-hairline); color: var(--doska-text-muted);
  font-size: 13px; font-weight: 500; background: var(--doska-surface);
}
.doska-projects-home-prompt-chip:hover { border-color: var(--doska-hairline-strong); color: var(--doska-text); background: var(--doska-secondary); }
/* Redirects, not AI prompts — per direct follow-up ("на главной снизу в плашках добавить разные
   возможности что можно сделать с редиректом"). Muted/ghost (no border, no background) so they
   read as a lighter-weight secondary row underneath the prompt chips above, not competing with
   them for attention — the icon prefix is what signals "this navigates" at a glance. */
.doska-projects-home-shortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 4px; }
.doska-projects-home-shortcut-chip {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 6px;
  color: var(--doska-text-muted); font-size: 12px; font-weight: 500;
}
.doska-projects-home-shortcut-chip:hover { color: var(--doska-text); background: var(--doska-secondary); }
@media (max-width: 720px) {
  .doska-projects-home-title { font-size: 24px; }
}

/* ---------- StashDashboardView ("Дашборд" — analytics only, per direct report: "здесь у меня
   только аналитика по моим категориям отображается, и ничего больше") ---------- */
/* 1400px — same content-column width every other Хранилка-family screen uses (.doska-stash-grid's
   own comment). Was capped at a narrow 560px, single flex column — read as misaligned/cramped
   next to "Все файлы"/"Корзина" sharing this same page shell at full width. */
.doska-dashboard { display: flex; flex-direction: column; gap: 20px; max-width: 1400px; margin: 0 auto; padding: 4px 2px 40px; }
/* Hero (big %) + the 3 weekly stat cards side by side in one row — was two separate stacked
   blocks each pinned to the narrow column's own width; now one visually cohesive summary band
   that actually uses the wider page. Wraps to a column below ~720px (see mobile section). */
.doska-dashboard-summary { display: flex; align-items: stretch; gap: 12px; }
.doska-dashboard-hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center;
  flex: 0 0 260px; padding: 24px 20px; border-radius: var(--doska-radius-lg); background: var(--doska-accent-soft);
}
.doska-dashboard-hero-value { font-size: 42px; font-weight: 600; letter-spacing: -0.02em; color: var(--doska-accent); line-height: 1; }
.doska-dashboard-hero-label { font-size: 13px; color: var(--doska-text-muted); }
.doska-dashboard-stats-row { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.doska-dashboard-stat {
  display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 14px 16px; border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-hairline); background: var(--doska-surface);
}
.doska-dashboard-stat-value { font-size: 24px; font-weight: 600; color: var(--doska-text); line-height: 1.1; }
.doska-dashboard-stat-label { font-size: 12px; color: var(--doska-text-muted); }
.doska-dashboard-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; margin-top: 2px; }
.doska-dashboard-delta[data-dir="up"] { color: #2fae5e; }
.doska-dashboard-delta[data-dir="down"] { color: var(--doska-text-muted); }
.doska-dashboard-delta[data-dir="flat"] { color: var(--doska-text-muted); }
.doska-dashboard-streak {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--doska-text-muted); margin-top: 2px;
}
.doska-dashboard-streak svg { color: #e8862e; }
/* Прогресс/Категории/Топ тем — real bordered cards (same surface+border+radius language
   .doska-dashboard-stat already uses) in a responsive grid, replacing the old flat
   border-top-divider "section" look, which read as a plain list rather than a dashboard. */
.doska-dashboard-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; align-items: start; }
.doska-dashboard-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: var(--doska-radius-lg);
  border: 1px solid var(--doska-hairline); background: var(--doska-surface);
}
.doska-dashboard-section-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doska-dashboard-section-header h3 { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--doska-text); }
/* Hero+stats row doesn't have room to sit side by side on a phone (.doska-dashboard-hero alone
   wants 260px) — stacks instead, hero first. */
@media (max-width: 720px) {
  .doska-dashboard-summary { flex-direction: column; }
  .doska-dashboard-hero { flex-basis: auto; }
}

/* Per direct request ("хочу трекать, какие категории я просматриваю больше всего... прогресс по
   изучению и по удалению") — ranked horizontal bars (StashDashboardView's own RankedBarList),
   width relative to the TOP row's own count rather than the grand total (see that component's own
   comment — research into Brana's own Analytics page/Geographic Distribution widget). */
.doska-dashboard-ranked-list { display: flex; flex-direction: column; gap: 8px; }
.doska-dashboard-ranked-row { display: flex; align-items: center; gap: 10px; }
.doska-dashboard-ranked-label { flex-shrink: 0; width: 100px; font-size: 12px; color: var(--doska-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-dashboard-ranked-bar-track { flex: 1; height: 6px; border-radius: 999px; background: var(--doska-hairline); overflow: hidden; }
.doska-dashboard-ranked-bar-fill { height: 100%; border-radius: 999px; transition: width 0.2s var(--doska-ease); }
.doska-dashboard-ranked-count { flex-shrink: 0; width: 28px; text-align: right; font-size: 12px; font-weight: 600; color: var(--doska-text-muted); font-variant-numeric: tabular-nums; }
.doska-dashboard-progress { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.doska-dashboard-progress:last-child { margin-bottom: 0; }
.doska-dashboard-progress-row { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; color: var(--doska-text); }
.doska-dashboard-progress-value { color: var(--doska-text-muted); font-variant-numeric: tabular-nums; }
/* Neglected-notes list (StashDashboardView's own NeglectedItemsList) — per direct request ("какие
   заметки я меньше всего просматриваю... чтобы юзер был в курсе и мог их очистить"), a real
   clickable row per item rather than a rollup number, same reasoning RankedBarList's own ranked
   bars exist for categories/topics but one level more specific. */
.doska-dashboard-neglected-list { display: flex; flex-direction: column; gap: 2px; }
.doska-dashboard-neglected-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left;
  padding: 7px 8px; border-radius: var(--doska-radius-sm);
}
.doska-dashboard-neglected-row:hover { background: var(--doska-secondary); }
.doska-dashboard-neglected-title { font-size: 13px; color: var(--doska-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-dashboard-neglected-age { flex-shrink: 0; font-size: 11px; color: var(--doska-text-muted); }

/* ---------- StashItemDrawer ("профиль карточки" — centered two-pane modal) ---------- */

/* Same dim/z-index treatment as .doska-lightbox-backdrop elsewhere in this file — the established
   full-screen-overlay convention, reused for consistency rather than inventing a new one. */
/* Подложка карточки заметки ПЛОТНАЯ, и это решение — per direct report «на этой подложке не надо
   трогать прозрачность, её там не нужно; речь про когда открыл заметку».
   Прозрачность просили для окон задачи и события (.doska-modal-backdrop): те открывают короткую
   карточку поверх списка, из которого пришли, и контекст рядом помогает. Заметку читают, а не
   сверяют с фоном: просвечивающий список за текстом мешает именно чтению. */
.doska-stash-modal-backdrop {
  position: fixed; inset: 0; z-index: 70; background: rgba(6, 6, 9, 0.88);
  display: flex; align-items: center; justify-content: center; padding: 40px;
}
/* Enlarged per direct follow-up ("страница должна быть больше и чтобы можно нормально было
   читать контент") — the original 980×720 felt cramped, especially once the preview pane stopped
   cropping (see .doska-stash-modal-preview img below) and needed real room to show a tall image
   without shrinking the whole modal down to fit it.
   Widened again per direct request with a reference screenshot (NotebookLM's own "Источники"
   panel: a wide, dedicated, always-visible reading column for a source's full text) — the text/
   transcript sections were reading as cramped even at 1200px total, squeezed into that pane's own
   380px cap next to the preview. See .doska-drawer-side-tabs and .doska-drawer-section--source
   below for the matching width/boxing fix.
   Narrowed back down per a later direct follow-up, once the drawer had gone through its whole
   same-day redesign chain above ("сделай окно не такое большое по ширине и меньше ширины правой
   части") — 1520px read as too wide for the now much simpler two-column (preview + one tabbed
   column) shape; .doska-drawer-side-tabs' own max-width came down to match (460px, see that
   rule). */
/* Фон карточки заметки плотный — по той же причине, что и её подложка выше: заметку читают, и
   просвечивающий сквозь текст список мешает чтению. Стеклянный фон остался у окон задачи и
   события, где карточка короткая и контекст рядом полезен. */
.doska-stash-modal {
  position: relative; display: flex; width: 100%; max-width: 1200px; height: min(880px, 100%);
  background: var(--doska-surface); border-radius: var(--doska-radius-lg); overflow: hidden;
  box-shadow: none;
}
/* ЛИСТЬЯ ДЕРЕВА (карточки внутри папок): та же строка, что у папки, чуть тише; активная
   подсвечивается как открытая папка. Отступ как у вложенного уровня. */
.doska-allnotes-space-tree-leaves { display: flex; flex-direction: column; }
/* Лист дерева это и ЗАМЕТКА, которую можно утащить в другую папку (см. TreeLeafRows): курсор
   говорит об этом заранее, иначе жест приходится угадывать. Перетаскивание не должно превращаться
   в выделение текста, поэтому подпись не выделяется. */
.doska-allnotes-space-tree-leaf { width: 100%; color: var(--doska-text-muted); padding-right: 2px; }
.doska-allnotes-space-tree-leaf[draggable="true"] { cursor: grab; -moz-user-select: none; user-select: none; -webkit-user-select: none; }
.doska-allnotes-space-tree-leaf[draggable="true"]:active { cursor: grabbing; }
/* У листа стрелки нет вовсе, поэтому его иконка занимает 16, а не 20: четыре пикселя уходят
   названию. Папки и спейсы сохраняют прежнюю колонку — по ней выровнена линия дерева. */
.doska-allnotes-space-tree-leaf .doska-allnotes-space-tree-slot { width: 16px; }
.doska-allnotes-space-tree-leaf[data-active] { color: var(--doska-text); background: var(--doska-hairline); border-radius: var(--doska-radius-md); }
.doska-allnotes-space-tree-leaf .doska-allnotes-space-tree-title { font-size: 13px; }
.doska-allnotes-space-tree-more { padding: 4px 10px 6px 34px; font-size: 12px; color: var(--doska-text-muted); }
/* КАРТОЧКА В ПОТОКЕ (StashItemDrawer inline, «Все заметки» на десктопе): без подложки, во всю
   ширину колонки содержимого, высота от содержимого в пределах окна; список под ней спрятан, а
   не размонтирован. Тень снята: карточка лежит на той же поверхности, что и раздел. */
/* Чистый вид по присланному примеру (Perisclaw): страница, а не карточка. Без рамки и тени, на
   всю ширину колонки содержимого (по прямому запросу «заметка должна использовать всю ширину»),
   превью сверху блоком, ниже заголовок, действия, таблица свойств между двумя линиями, секции
   «Суть» и «Заметка» без плашек с заголовками как у разделов. Ширина колонки содержимого при
   открытой карточке не ограничивается 1704. */
/* Открытая карточка встаёт на место списка на любой ширине (три колонки отменены 10.10.2026,
   см. listBeside в GlobalAllNotes). */
/* [data-inline-note] — обёртка открытой заметки на Tailwind (12.10.2026); класс doska-stash-inline с неё снят. */
.doska-allnotes-main[data-inline-item] > *:not(.doska-stash-inline):not([data-inline-note]) { display: none; }
.doska-shell-card:has(.doska-allnotes-main[data-inline-item]) .doska-stash-page-content--wide { max-width: none; }
.doska-stash-inline { min-width: 0; }
/* Колонка заметки ПО ЦЕНТРУ (по прямому запросу): читаемая ширина до 1120 и равные поля по бокам,
   как в примере; на узкой колонке занимает всё. */
.doska-stash-inline .doska-stash-modal {
  flex-direction: column; max-width: 1120px; width: 100%; height: auto; min-height: 0; margin: 0 auto;
  box-shadow: none; border: none; background: transparent; border-radius: 0; overflow: visible;
}
/* Картинка внутри превью позиционирована абсолютно (inset 0) и высоту контейнеру не даёт: в
   столбце превью схлопывалось в 0 (замер: 978×0 при загруженной картинке 1200px). Высота задаётся
   контейнеру явно, картинка вписывается целиком. */
.doska-stash-inline .doska-stash-modal-preview { flex: none; width: 100%; height: 460px; border-radius: var(--doska-radius-lg); margin-bottom: 8px; }
.doska-stash-inline .doska-stash-modal-preview img, .doska-stash-inline .doska-stash-modal-preview .doska-plate-media-img { position: absolute; inset: 0; width: 100%; height: 100%; -o-object-fit: contain; object-fit: contain; }
.doska-stash-inline .doska-drawer-side-tabs { max-width: none; min-width: 0; flex: none; overflow: visible; }
.doska-stash-inline .doska-drawer-side-tabs-header { padding: 24px 8px 0; }
.doska-stash-inline .doska-stash-modal-header { padding-right: 56px; margin-bottom: 8px; }
.doska-stash-inline .doska-stash-modal-header h2 { font-size: 30px; line-height: 1.2; letter-spacing: -0.01em; }
.doska-stash-inline .doska-stash-modal-header .doska-stash-modal-title-input { font-size: 30px; }
.doska-stash-inline .doska-drawer-hero-meta { display: none; }
.doska-stash-inline .doska-drawer-source-btn.doska-drawer-source-btn { background: transparent; color: var(--doska-text); border: 1px solid var(--doska-hairline); margin: 4px 0 10px; }
.doska-stash-inline .doska-drawer-side-tabs-header > .doska-stash-modal-project-link { display: none; }
.doska-stash-inline .doska-stash-modal-actions { margin: 4px 0 0; padding: 0 0 16px; border-bottom: 1px solid var(--doska-hairline); }
.doska-stash-inline .doska-stash-modal-action-btn.doska-stash-modal-action-btn { width: 34px; height: 34px; background: transparent; border: 1px solid var(--doska-hairline); color: var(--doska-text-muted); }
.doska-stash-inline .doska-stash-modal-action-btn.doska-stash-modal-action-btn:hover { color: var(--doska-text); background: var(--doska-hover); }
/* Секции без плашек: заголовок как «Summary» в примере, текст на полотне. */
.doska-stash-inline .doska-drawer-side-tabs-tabs:has(> [role="tab"]:only-child) { display: none; }
.doska-stash-inline .doska-drawer-side-tabs-body { padding: 16px 8px 40px; gap: 8px; overflow: visible; }
.doska-stash-inline .doska-drawer-side-tabs-body .doska-drawer-section--source { background: transparent; border: none; padding: 8px 0 0; }
.doska-stash-inline .doska-drawer-summary-head, .doska-stash-inline .doska-drawer-note-head, .doska-stash-inline .doska-drawer-side-tabs-body .doska-drawer-section--source .doska-drawer-section-title {
  font-size: 18px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--doska-text); margin-bottom: 10px; font-family: var(--doska-font-display);
}
.doska-stash-inline .doska-drawer-summary-head svg { display: none; }
.doska-stash-inline .doska-drawer-source-guide-summary { font-size: 16px; line-height: 1.6; max-width: 80ch; }
/* Note/task have no visual media at all — no .doska-stash-modal-preview column, just the one
   tabbed content column. Used to also force height:auto (a short note didn't need the full box) —
   dropped since a note's own text can be just as long as any other item's, or the Чат tab can need
   the full height regardless — same base height as every other variant now.
   max-width per direct report with a screenshot ("поправить верстку для текстовых заметок") — the
   1150px cap was tuned for the OLD two-column layout here (main content + a second column); once
   .doska-drawer-side-tabs became the ONLY column for a no-preview item, edge-to-edge with the
   modal itself (see that rule's own "правая часть тоже убрать" comment — no more margin around
   it), a too-wide modal just leaves a dead void to the right of that column's own max-width cap.
   Kept matching that column's own cap exactly (460px, per the later direct follow-up "сделай окно
   не такое большое по ширине и меньше ширины правой части") so the column always fills the modal
   exactly, no leftover space either way. */
/* 600 — per direct report «для текстовой заметки 560–640 px достаточно и читается лучше»; там же
   принцип «разная ширина для разных типов нормально: карточке со ссылкой нужно место под превью,
   текстовой нет». Прежние 460 были подогнаны под старый предел колонки, а он вырос до 560.
   Колонка внутри при этом отпускается на всю ширину окна, иначе справа остался бы пустой отступ. */
/* 960, а не 600 — по прямому запросу «сделай холст заметки шире как в notion». Прежние 600 были
   подобраны под короткую пометку «зачем сохранил»; теперь заметка это документ с таблицами и
   заголовками, и в 600 таблица из трёх колонок уже не читается. У Notion колонка около 900,
   960 даёт тот же воздух с учётом полей модалки. Ограничение 92vw ниже по-прежнему держит её на
   узких экранах. */
/* 1200, а не 960 — по прямому уточнению «текстовую заметку сделать шире»: столько же, сколько у
   карточки с превью, то есть текстовая заметка больше не уже остальных. Ниже по файлу 92vw
   по-прежнему держит её на узких экранах. */
.doska-stash-modal[data-no-preview] { max-width: 1200px; }
.doska-stash-modal[data-no-preview] .doska-drawer-side-tabs { max-width: none; }
.doska-stash-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  color: #fff; border-radius: 999px; backdrop-filter: blur(3px);
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file (only
   visible on image/link/place/voice items, which keep this white-on-photo close button — the
   [data-no-preview] override just below already wins on specificity via its own compound selector,
   so note/task items were never affected). */
.doska-stash-modal-close.doska-stash-modal-close { background: rgba(0, 0, 0, 0.45); }
.doska-stash-modal-close:hover { background: rgba(0, 0, 0, 0.65); }
.doska-stash-modal[data-no-preview] .doska-stash-modal-close { color: var(--doska-text-muted); background: var(--doska-surface-raised); }
.doska-stash-modal[data-no-preview] .doska-stash-modal-close:hover { color: var(--doska-text); }

.doska-stash-modal-preview {
  position: relative; flex: 1; min-width: 0; background: var(--doska-surface-raised);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
/* contain, not cover — per direct report ("не допускать зарезание картинки в профиле карточки"):
   the grid tile's own full-bleed `cover` crop (StashCards.tsx) is right for a small thumbnail, but
   here the whole point is actually SEEING the picture, so nothing gets cut off — letterboxed on
   this pane's own background instead when the aspect ratio doesn't match. */
.doska-stash-modal-preview img { position: absolute; inset: 0; width: 100%; height: 100%; -o-object-fit: contain; object-fit: contain; }
/* Real interactive google.maps.Map, filling the exact same slot the static screenshot used to —
   per direct request ("можем сделать чтобы виджет карты работал в самой заметке карты?"). See
   StashItemDrawer.tsx's own PlaceMapWidget. */
.doska-stash-place-map { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Overrides .doska-drawer-embed's own SideDrawer-context sizing (width:100% + 16/9 aspect-ratio,
   meant for a narrow column) — here it fills the whole pane exactly like the image variant above,
   the player letterboxing itself internally if the pane's own ratio doesn't match 16:9. */
.doska-stash-modal-preview .doska-stash-modal-embed { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: unset; border-radius: 0; }
/* Instagram is a real exception here, not just another 16:9 player — its own script sets the
   iframe's real content height via an HTML attribute (often 1000px+ for a reel, once its
   caption/like-count/UI chrome is included), computed AFTER the page loads based on the actual
   post. Forcing height:100% (the rule above, correct for a YouTube/Vimeo iframe that adapts to
   any box) instead squished it down to whatever the fixed-height preview pane happened to be —
   confirmed live: the iframe's own height="1231" attribute, but its rendered box only ~152px
   tall, almost the entire actual post invisible above/below a blank sliver ("вот еще пусто").
   This container just needs position:static + height:auto (a normal div correctly sizes to its
   content with auto) — the iframe's OWN height is handled separately, by EXCLUDING it from any
   CSS height rule at all (see .doska-drawer-embed:not(.doska-drawer-embed--instagram) iframe
   further down) rather than trying to override it with a competing value: height:auto on an
   iframe does NOT reliably fall back to its HTML height attribute the way it does on a normal
   div — confirmed live, it fell back to the browser's own ~150px default instead. The pane
   scrolls (overflow-y) to reach the rest of a tall post rather than clipping it outright. */
.doska-stash-modal-preview .doska-stash-modal-embed.doska-drawer-embed--instagram {
  position: static; height: auto; max-height: 100%; overflow-y: auto;
}

/* LiveLinkFrame (StashItemDrawer.tsx) — real scrollable iframe of a link's own source page, per
   direct request ("я могу также там внутри неё пролистывать страничку"). Same fill-the-pane
   treatment as the video embed/map widget just above. */
.doska-stash-modal-live-frame { position: absolute; inset: 0; width: 100%; height: 100%; background: var(--doska-surface); overflow: hidden; }
.doska-stash-modal-live-frame iframe { width: 100%; height: 100%; border: none; display: block; }

/* На телефоне встроенная страница РИСУЕТСЯ ШИРОКОЙ И ВПИСЫВАЕТСЯ МАСШТАБОМ — живой отчёт со
   скриншотом: «на мобилке эту заметку вижу так, приходится её скроллить горизонтально».
   Причина не в модалке (замер: и она, и рамка ровно 390 в ширину), а в самом сайте внутри: чужая
   страница в iframe считает себя настольной и верстается на ~1200px, поэтому в окошке 390px виден
   только левый кусок, а остальное уезжает вбок.
   Управлять вьюпортом внутри чужого домена нельзя, поэтому берём обратный ход: даём iframe его
   привычную ширину 1200 и ужимаем всю картинку в реальную ширину рамки (390/1200 = 0.325). Высота
   увеличена во столько же раз, иначе после сжатия внизу осталась бы пустая полоса.
   Так человек видит страницу ЦЕЛИКОМ, как превью, и не таскает её вбок. Мелко, но это и есть
   превью: прочитать целиком зовёт кнопка «Открыть источник» рядом. */
@media (max-width: 768px) {
  .doska-stash-modal-live-frame iframe {
    width: 1200px;
    height: calc(100% / 0.325);
    transform: scale(0.325);
    transform-origin: top left;
  }
}
.doska-stash-modal-live-frame-loading {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--doska-text-muted); background: var(--doska-surface);
}
.doska-stash-modal-live-frame-open {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 999px; color: #fff; background: rgba(0, 0, 0, 0.55);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); backdrop-filter: blur(3px);
}
.doska-stash-modal-live-frame-open:hover { background: rgba(0, 0, 0, 0.75); }

/* На мобилке эта кнопка НАКРЫВАЛА крестик закрытия — per direct report («нет крестика на мобилке
   чтобы закрыть»). Она позиционируется абсолютно от СВОЕГО контейнера (живого превью), а на
   телефоне превью растянуто на всю ширину модалки, поэтому её top:10/right:10 попадали ровно в тот
   же угол, что и .doska-stash-modal-close (top:14/right:14). Кнопка рисуется позже и со своим
   фоном — крестик оказывался под ней и был физически недоступен, хотя в DOM присутствовал (замер
   подтвердил: 32×32 на позиции 344,14 — то есть он был, просто накрыт).
   На десктопе наложения нет и не было: там превью занимает только левую колонку модалки, и её
   правый край далеко от правого края модалки — поэтому правило мобильное, а не общее.
   right: 94px — третий слот в том же ряду: крестик на 14, «⋯» на 54, эта на 94. */
@media (max-width: 768px) {
  .doska-stash-modal-live-frame-open {
    top: 14px; right: 94px; width: 32px; height: 32px;
  }
}

.doska-stash-modal-voice { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 32px; text-align: center; }
.doska-stash-modal-voice button {
  width: 64px; height: 64px; border-radius: 6px; background: var(--doska-accent); color: var(--doska-accent-contrast);
  display: flex; align-items: center; justify-content: center;
}
.doska-stash-modal-voice button:disabled { opacity: 0.4; }
.doska-stash-modal-voice p { color: var(--doska-text-muted); font-size: 13px; line-height: 1.5; max-width: 320px; }

/* Went through several direct follow-ups in a row, in this order: (1) "сделать каждую область в
   своей обводке как ИИ чат" — both columns floating cards (margin + 1px border + radius each);
   (2) "сделать теперь отступы между двумя обводками" — an 8px gap opened up between the two
   floating cards; (3) "слева в заметке не надо делать обводку" (the left part around the
   image/video) — preview's own border/radius dropped, its margin kept as the gap; (4) "а правая
   часть тоже убрать, иона будет делить экран вертикальным дивайдером" — .doska-drawer-side-tabs'
   border/radius/margin dropped too (see that rule's own block further down), and the gap between
   them replaced with a single hairline divider instead of a gap + two separate borders. Ends up
   at: both columns edge-to-edge with the modal and each other, ONE vertical line between them. */
@media (min-width: 769px) {
  .doska-stash-modal-preview {
    border-right: 1px solid var(--doska-hairline);
  }
}
.doska-drawer-content-tab {
  padding: 7px 14px; border-radius: var(--doska-radius-md); font-size: 13px; font-weight: 600;
  color: var(--doska-text-muted); flex-shrink: 0; white-space: nowrap;
}
.doska-drawer-content-tab:hover { background: var(--doska-secondary); color: var(--doska-text); }
.doska-drawer-content-tab[data-active].doska-drawer-content-tab {
  background: var(--doska-accent-soft); color: var(--doska-accent-ink);
}
/* The one content column (StashItemDrawer.tsx) — per direct request with a reference screenshot
   (a video page: big primary content on one side, a tabbed panel on the other — "можно как
   вариант основная заметка и справа все в табах"), THEN a same-day follow-up ("область оставшуюся
   в центре убрать в табы тоже, таким образом обводка по центру нам уже не нужна") folding what was
   briefly a separate "Заметка" center column into this tab set too. Replaces the earlier
   always-present third .doska-ai-chat-dock column AND the earlier always-present center column:
   Заметка/Краткое содержание/Расшифровка речи/Текст из PDF/Комментарии/Чат now all share this one
   column, switched via `sideTab`. Preview (just above, when the item type has one) is the only
   other column left. Used to be its own floating bordered card (margin + 1px border + radius,
   matching .doska-stash-modal-preview's own treatment at the time) — per a later direct follow-up
   ("а правая часть тоже убрать, иона будет делить экран вертикальным дивайдером") that's gone now
   too: both columns sit edge-to-edge with the modal and each other, with preview's own
   border-right (just above) as the ONE dividing line between them instead. overflow:hidden stays
   — no longer needed for the border-radius clip it used to serve, but still a reasonable
   containment boundary for whatever's docked inside (the Чат tab's own AiChatPanel especially). */
.doska-drawer-side-tabs {
  display: flex; flex-direction: column; min-height: 0; overflow: hidden;
  /* 560, а не 460 — per direct report: «В карточке ссылки превью занимает примерно 60% ширины,
     панель 40%. При этом превью — просто градиент-заглушка, а вся информация справа. Я бы дал
     панели больше: 45–50%. Особенно если появятся извлечённые поля и мини-карта». При модалке
     1200 это ровно 47%. */
  flex: 1.15; min-width: 380px; max-width: 560px;
}
/* Header/project-link/actions block — per direct follow-up with a reference screenshot ("давай
   эту часть сделаем над табами"), living at the top of this column, above the tab bar. 24px
   horizontal padding so title/actions/tab-bar all line up on the same left edge. No bottom padding
   of its own — .doska-stash-modal-actions' own border-bottom/padding-bottom (see that rule) already
   supplies the divider + gap before the tab bar just below. */
.doska-drawer-side-tabs-header { padding: 20px 24px 0; flex-shrink: 0; }
/* «Назад» по следу связей (2026-09-22, по прямому запросу «нужна стрелочка, чтобы вернуться,
   откуда пришёл»). Стоит над названием заметки, той же тихой строкой, что и ссылка на папку. */
/* Крошки в самой заметке (26.09.2026): строка над заголовком карточки, каждая ступень кликабельна
   и открывает своё место. Мелкий приглушённый текст — это ориентир, а не заголовок. */
.doska-note-trail {
  display: flex; align-items: center; flex-wrap: wrap; gap: 2px;
  margin-bottom: 6px; font-size: 12px; color: var(--doska-text-muted);
}
.doska-note-trail span { display: inline-flex; align-items: center; gap: 2px; }
.doska-note-trail button { color: var(--doska-text-muted); cursor: pointer; border-radius: var(--doska-radius-sm); padding: 1px 3px; }
.doska-note-trail button:hover { color: var(--doska-text); background: var(--doska-hover); }
.doska-note-trail svg { flex-shrink: 0; opacity: 0.7; }
.doska-note-back {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0 0 10px; padding: 4px 10px 4px 6px;
  border: 1px solid var(--doska-border); border-radius: 999px;
  background: transparent; color: var(--doska-text-muted);
  font-size: 12px; line-height: 1; cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.doska-note-back:hover { background: var(--doska-hover); color: var(--doska-text); }
.doska-note-back:active { transform: translateY(1px); }
/* overflow-x:auto + hidden scrollbar — same idiom as .doska-stash-folder-content-actions elsewhere
   in this file. Five tabs (Заметка/Краткое содержание/Расшифровка речи/Комментарии/Чат) no longer
   fit a 390px-wide mobile viewport (confirmed live: scrollWidth 456 vs clientWidth 390) once
   "Заметка" joined this bar as a tab — this keeps every tab reachable by a horizontal swipe instead
   of silently clipping the last one or two off-screen. */
/* 4px vertical padding on BOTH sides (was `4px 24px 0`) — per direct report with a screenshot
   ("обводка зарезана"): this row scrolls horizontally (overflow-x:auto), and an overflow
   container clips at its padding edge — the active tab's ring drew right at the top/bottom edge
   and got cut. */
.doska-drawer-side-tabs-tabs {
  display: flex; gap: 4px; padding: 4px 24px; flex-shrink: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.doska-drawer-side-tabs-tabs::-webkit-scrollbar { display: none; }
.doska-drawer-side-tabs-body {
  flex: 1; min-height: 0; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 4px;
}
/* The "Чат" tab embeds AiChatPanel edge-to-edge instead of inside the same padded box every other
   tab's content uses — a chat needs its own input row flush against the bottom, not floating
   inside a 16px inset. */
.doska-drawer-side-tabs-body[data-tab="chat"] { padding: 0; overflow: hidden; }
/* display:contents passthrough, same idiom as .doska-ai-chat-dock elsewhere in this file — makes
   AiChatPanel a direct flex child of .doska-drawer-side-tabs-body itself instead of being wrapped
   by an extra box. A DIFFERENT class from .doska-ai-chat-dock on purpose (not just reused): that
   one's own `> .doska-ai-chat` rule gives it a fixed 440px width/own margin/own border for when
   it's a flex SIBLING of other columns — here it needs to fill a tab body that's already inside a
   bordered panel, so no border/margin/fixed width of its own. */
.doska-drawer-chat-embed { display: contents; }
.doska-drawer-chat-embed > .doska-ai-chat {
  position: relative; top: auto; right: auto; bottom: auto; z-index: auto;
  width: 100%; max-width: none; height: 100%;
  margin: 0; border: none; border-radius: 0;
}
@media (max-width: 768px) {
  .doska-drawer-side-tabs { min-width: 0; max-width: none; }
}
/* Per direct request with a reference screenshot (NotebookLM's own "Источники" panel) — the
   note/transcript text was reading as just another quiet metadata row among tags/actions/
   comments, not the reason this drawer exists. Boxed like the reference's own bounded source
   card (surface-raised + border + radius) instead of running flush with everything else in this
   scroll column, so it reads as its own destination the moment the drawer opens. */
.doska-drawer-side-tabs-body .doska-drawer-section--source {
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline);
  /* 13/16 вместо 16 по кругу — «padding около 24 px со всех сторон это много для поля ввода, оно
     начинает выглядеть как карточка, а не как поле». По горизонтали место нужнее строке. */
  border-radius: var(--doska-radius-md); padding: 13px 16px;
}
.doska-drawer-side-tabs-body .doska-drawer-section--source .doska-drawer-section-title {
  font-size: 12px; font-weight: 600; letter-spacing: 0.03em; color: var(--doska-text);
}
.doska-drawer-side-tabs-body .doska-drawer-section--source .doska-note {
  background: transparent; border: none; padding: 0;
}
/* "Краткое содержание" tab content (StashItemDrawer.tsx) — summary paragraph + jump-to chips,
   rendered directly inside the shared .doska-drawer-section--source box (same treatment every
   other tab's content already gets) since the tabs took over showing/hiding this section
   (see that tab's own comment for "если она есть"); no more standalone collapsible card/toggle. */
.doska-drawer-source-guide-summary { font-size: 13px; line-height: 1.55; color: var(--doska-text); margin: 0 0 10px; }
.doska-drawer-source-guide-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.doska-drawer-source-guide-chip.doska-drawer-source-guide-chip {
  background: var(--doska-surface); font-weight: 600;
}
.doska-drawer-source-guide-chip.doska-drawer-source-guide-chip:hover { background: var(--doska-secondary); color: var(--doska-accent); }

/* «Суть» и «Заметка» — per direct report: «Заголовок над ним „Краткое содержание“, а поле
   редактируемое. Значит, я не знаю: это ИИ написал и я правлю его работу, или это моё».
   Теперь у машинной части своя подпись со значком, у своей пометки своя. Разница видна до чтения:
   суть приглушена и не редактируется, пометка набрана обычным цветом и принимает курсор. */
.doska-drawer-summary { margin: 0 0 12px; }
.doska-drawer-summary-head,
.doska-drawer-note-head {
  display: flex; align-items: center; gap: 5px;
  margin-bottom: 6px;
  font-family: var(--doska-font-display); font-size: 11px; font-weight: 600;
  letter-spacing: 0; text-transform: none; color: var(--doska-text-muted);
}
.doska-drawer-note-head { justify-content: space-between; margin-top: 4px; }
/* Подтверждение записи живёт пару секунд и гаснет: постоянная надпись «сохранено» ничего не
   подтверждает, потому что её перестают замечать. */
.doska-drawer-note-saved {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--doska-accent); text-transform: none; letter-spacing: 0;
  font-size: 11px; font-weight: 600;
}
/* Full-screen, edge-to-edge on mobile — per direct reference (a native-notes-app detail screen:
   no card margins, content runs the full device width) — this used to stay a centered card with
   40px of surrounding backdrop padding at every viewport size, cramped on a phone. Preview+tabs
   stack vertically instead of sitting side by side (that row layout has a 320px min-width side
   pane alone, wider than most phones). */
@media (max-width: 768px) {
  /* dvh вместо vh/100% — per direct report «на мобилке внутри заметки не могу проскроллить
     вертикально».
     Классическая мобильная ловушка: `vh` на телефоне считается по БОЛЬШОМУ вьюпорту, то есть без
     учёта адресной строки и нижней панели браузера. Превью занимало 40vh от этой завышенной
     высоты, шапка с действиями и полоса табов — своё, и прокручиваемому блоку
     (.doska-drawer-side-tabs-body) оставалось почти ноль видимой высоты. Прокручивать было нечего:
     контент не «не скроллился», у контейнера просто не было места, чтобы показать полосу прокрутки.
     `dvh` — динамическая высота вьюпорта, то есть реально видимая. Обычные vh/100% оставлены
     строкой выше как запасной вариант для браузеров без поддержки dvh (Safari до 15.4).
     overscroll-behavior: contain — чтобы прокрутка внутри заметки не «пробивала» на страницу под
     модалкой, когда доехали до края. */
  .doska-stash-modal-backdrop { padding: 0; height: 100vh; height: 100dvh; }
  .doska-stash-modal, .doska-stash-modal[data-no-preview] {
    width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 0;
    flex-direction: column;
  }
  .doska-stash-modal-preview { flex: 0 0 40vh; flex-basis: 40dvh; }
  /* Шапка карточки (название, «Открытый источник», папка, ряд действий) ПРОКРУЧИВАЕТСЯ вместе с
     содержимым — per direct report со скриншотом («меню посередине не убирается или слишком
     большое как по мне, полезную область забирает»).

     Замер на 390×844 до правки: превью 338px, шапка 234px, а прокручиваемому телу оставалось
     231px — то есть на сам текст заметки и комментарии приходилось 27% экрана, а 28% навсегда
     занимала шапка, которую нельзя было убрать: она лежит ОТДЕЛЬНЫМ flex-элементом рядом с
     прокручиваемым телом, а не внутри него, поэтому и не уезжала при скролле.

     Прокрутку переносим на всю колонку .doska-drawer-side-tabs, а тело перестаёт быть
     самостоятельным скроллером (overflow: visible + flex: 0 0 auto — иначе flex: 1 растянул бы его
     на всю высоту колонки и прокручивать снова стало бы нечего). Полоса табов остаётся на месте
     через position: sticky — это навигация, ей уезжать нельзя; фон обязателен, иначе контент
     будет просвечивать под ней при прокрутке.

     На десктопе всё как было: там шапка и тело помещаются рядом без борьбы за высоту. */
  .doska-drawer-side-tabs {
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .doska-drawer-side-tabs-tabs {
    position: sticky; top: 0; z-index: 2; background: var(--doska-surface);
  }
  .doska-drawer-side-tabs-body {
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    overflow: visible; flex: 0 0 auto;
  }
  /* Ряд действий заодно компактнее: 40 -> 36px и по 10px вместо 16px сверху/снизу от разделителя.
     Раньше он занимал 73px по вертикали (40 кнопка + 16 паддинг + рамка + 16 отступ) — теперь 57.
     Ниже 36px не опускаю: это уже граница удобного попадания пальцем, а кнопки тут одиночные. */
  .doska-stash-modal-actions {
    gap: 8px; margin-bottom: 10px; padding-bottom: 10px;
  }
  /* 34px is under the ~44px touch-target guideline (fine on desktop with a mouse pointer, cramped
     for a thumb) — bumped for mobile only, same reasoning as the topbar icon sizing done earlier
     this session.
     Doubled selector — this bump never actually took effect: the unconditional base rule further
     down this file (.doska-stash-modal-action-btn { width: 34px; height: 34px; ... }) shares this
     same single-class specificity and sits LATER in source order, so it silently won regardless of
     viewport (confirmed live at 390px: computed width/height both read back 34px). Doubling here
     bumps this to (0,2,0), the same fix pattern this file already uses for the .doska-root button
     trap, just tripped by plain cascade order instead. */
  .doska-stash-modal-action-btn.doska-stash-modal-action-btn { width: 36px; height: 36px; }
}
/* Scoped override, not a change to the shared .doska-note base (also used by SideDrawer/ShootPanel/
   ObserverPresentation) — the note-only stash modal is the one place notes are meant to be read in
   full, not just jotted. Auto-grows with content now (see StashItemDrawer.tsx's own scrollHeight
   effect) rather than sitting at a small fixed height requiring an inner scroll — confirmed still
   too cramped even after the first height bump ("не вижу всю заметку... хочу видеть весь текст").
   max-height deliberately high (not the modal's own ~840px) — a live check with a 20-line note
   showed a lower cap (600px) just moved the trapped-inner-scroll problem from "too small" to
   "still too small," defeating the whole point of auto-grow. Only past THIS cap does the outer
   tab body's own `overflow-y: auto` scroll take over, for pathological/huge pastes only. */
/* Размеры пересмотрены по прямому разбору с замерами: «Сейчас фиксированная, около 240 px при двух
   строках текста. Должно быть: минимум 3 строки, дальше рост по содержимому, максимум примерно
   400 px и дальше скролл внутри. Пустота под текстом — самая заметная проблема».
   min-height 72 это ровно три строки при 15px/1.55, а не «примерно столько». Прежние 120 держали
   пустой блок под заметкой в две строки.
   max-height 400 отменяет прежние 2000 (их ставили по отчёту «не вижу всю заметку»): рост по
   содержимому остаётся, но за 400 пикселями прокрутка появляется внутри поля, а не растягивает
   карточку.
   65ch на текст при поле во всю ширину — «комфортная длина строки для чтения 60–75 символов,
   дальше глаз теряет начало следующей строки». Панель бывает под 900 пикселей, и строка на всю
   ширину читается тяжело.
   resize: none — нативная ручка в углу выглядит инородно, а рост и так по содержимому. */
.doska-drawer-side-tabs-body .doska-note {
  min-height: 72px; max-height: 400px; font-size: 15px; line-height: 1.55;
  max-width: 65ch; resize: none;
}
/* Видимое состояние ввода — «не видно, редактируется оно сейчас или просто показывает текст. Нет
   фокуса, нет границы при активации». Рамка появляется по фокусу, а не стоит всегда: поле в покое
   остаётся частью текста карточки. */
.doska-drawer-side-tabs-body .doska-note:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px var(--doska-accent);
  border-radius: var(--doska-radius-md);
}
.doska-stash-modal-header { margin-bottom: 16px; padding-right: 24px; }
/* 22, а не 18 — «Заголовок карточки должен быть заметно крупнее, сейчас разница мала, иерархия
   слабая»: тело заметки выросло до 15, и на восемнадцати заголовок переставал быть заголовком. */
.doska-stash-modal-header h2 { font-family: var(--doska-font-display); font-size: 24px; font-weight: 600; color: var(--doska-text); margin: 0 0 6px; line-height: 1.25; }
/* Title-as-link case (StashItemDrawer.tsx's StashModalHeader, when the title is just the raw
   host) — inherits the h2's own size/weight/color instead of looking like a small inline link. */
.doska-stash-modal-header h2 a { color: inherit; text-decoration: none; }
.doska-stash-modal-header h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* Editable note title (StashModalHeader) — per direct request ("должна быть возможность
   редактирования... заголовка"). Same click-to-rename affordance EditableTitle (project titles)
   already establishes elsewhere — a subtle hover background is the only signal it's interactive,
   no visible border/underline until then so a note without a custom title doesn't look like a
   broken link the rest of the time. */
.doska-stash-modal-header h2.doska-stash-modal-title-edit {
  cursor: text; border-radius: var(--doska-radius-sm); margin-left: -6px; padding: 2px 6px;
}
.doska-stash-modal-header h2.doska-stash-modal-title-edit:hover { background: var(--doska-hairline); }
.doska-stash-modal-title-input {
  display: block; width: calc(100% + 12px); font-family: var(--doska-font-display); font-size: 18px; font-weight: 600;
  color: var(--doska-text); line-height: 1.3; margin: 0 0 6px -6px; padding: 2px 6px;
  background: var(--doska-surface); border: 1px solid var(--doska-accent); border-radius: var(--doska-radius-sm);
}

/* StashModalProjectLink (StashItemDrawer.tsx) — per direct request ("в любой заметке также я
   должен иметь возможность вернуться к проекту или к папке, где лежит данная заметка"). A quiet
   breadcrumb chip, not a full button — reads as metadata (like the header's own relative-time/
   host row right above it) until hovered, when it's clearly a link. */
.doska-stash-modal-project-link {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  margin: -4px 0 14px; padding: 3px 8px; border-radius: var(--doska-radius-sm);
  font-size: 12px; color: var(--doska-text-muted); background: var(--doska-surface);
  border: 1px solid var(--doska-hairline);
}
.doska-stash-modal-project-link:hover { color: var(--doska-text); border-color: var(--doska-hairline-strong); }
.doska-stash-modal-project-link svg { flex-shrink: 0; }
.doska-stash-modal-project-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* margin-top:auto used to push this to the bottom of the flex column (its own footer row) —
   moved up right under the title per direct request ("кнопки перенести под заголовок в профиле
   заметки"), so it no longer needs (or should have) that push; margin-bottom instead separates it
   from the Теги section now right below it. */
/* border-bottom groups this row visually as its own "actions" strip separate from the Теги/
   Заметка sections below — previously just margin, which read as one flat list with no sense of
   where the actions end and the editable content begins ("переделай и улучши профиль карточки"). */
.doska-stash-modal-actions {
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--doska-hairline);
}
.doska-stash-modal-action-btn {
  width: 38px; height: 38px; border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file. Without
   it, this whole pin/move/share/delete row rendered as bare icons with no pill behind them —
   confirmed live, the row read as unfinished next to every other icon-button group in the app. */
/* Flat black fill, white icon — per direct follow-up with a screenshot ("заливка кнопок черную
   сделать. иконки белые"), fixed/theme-independent rather than the previous theme-reactive
   surface (which read as a near-invisible outline in light theme). color was on the single-class
   base rule above at first and lost to that same .doska-root button { color: inherit } trap —
   confirmed live with a follow-up screenshot ("не видно белых иконок"), icons rendered near-
   invisible dark-on-black instead of white. Doubled here alongside background this time. */
.doska-stash-modal-action-btn.doska-stash-modal-action-btn { background: #000; color: #fff; }
.doska-stash-modal-action-btn:hover { color: #fff; background: #2b2b2e; }
/* --doska-accent-ink, same text-on-accent-soft contrast fix as the two rules above — this is the
   stash item modal's own pinned-icon "on" state. */
.doska-stash-modal-action-btn[data-active] { color: var(--doska-accent-ink); background: var(--doska-accent-soft); }

/* Шапка списка заметок на вебе — ВСЕГДА одна строка: заголовок, фильтры (Темы / «N в ряд») и
   сортировка с переключателем вида на одном уровне. Per direct request со скриншотом («на вебе
   нужно, чтобы эти иконки сортировки с фильтрами находились на одной линии с заголовком заметки»):
   на скриншоте «Заметки» стояло отдельной строкой, а под ним — «6 в ряд» слева и сортировка с
   видом справа.
   Разъезжается это из-за пары правил, написанных под телефон: у самой шапки flex-wrap: wrap, у
   заголовка flex-wrap: wrap + row-gap, а у группы фильтров внутри заголовка — flex-basis: 100% и
   order, то есть «встань отдельной строкой». Стоит любому из них дотянуться до широкого экрана
   (а в этом файле это происходит легко — см. готчу №1), и шапка складывается в два этажа.
   Здесь это гасится не спором за специфичность, а непересекающимся медиазапросом: на ширинах от
   769px перенос запрещён явно. Заголовки ВНУТРИ папки исключены — там двухэтажная раскладка
   сделана намеренно и по отдельной просьбе (см. [data-in-folder] выше). */
@media (min-width: 769px) {
  /* Исключение :not([data-in-folder]) СНЯТО — per direct report со скриншотом («зашёл в папку,
     вижу заголовок "Заметки" и фильтры, они не выровнены; посмотри, как сделано в других местах,
     и сделай консистентно»). Замер внутри папки: заголовок по центру Y=331, фильтры Y=369 — две
     строки, потому что `[data-in-folder] { flex-direction: column }` применялось и к шапке
     «Заметки» тоже, а спасающее её правило `[data-variant="notes"]` не срабатывало: атрибут
     data-variant в этом месте не проставляется и приходит null.
     Чинить это ещё одним частным исключением значило бы плодить пятое правило про одну и ту же
     строку. Вместо этого правило теперь общее: на вебе ЛЮБАЯ шапка раздела — одна строка,
     заголовок слева, действия справа. Шапка названия папки от этого не страдает: у неё нет блока
     действий вовсе (её «···» и «Создать» живут ВНУТРИ заголовка), то есть выравнивать там нечего.
     Селекторы утроены до (0,3,0)/(0,4,0) осознанно: правила [data-in-folder] ниже — это (0,2,0) и
     (0,3,0), и при равенстве спор решал бы порядок строк в файле (готча №1). */
  .doska-stash-folder-content-header.doska-stash-folder-content-header.doska-stash-folder-content-header {
    flex-direction: row; flex-wrap: nowrap; align-items: center;
  }
  .doska-stash-folder-content-header.doska-stash-folder-content-header.doska-stash-folder-content-header .doska-stash-folder-content-title {
    flex-wrap: nowrap; row-gap: 0;
  }
  .doska-stash-folder-content-header.doska-stash-folder-content-header.doska-stash-folder-content-header .doska-stash-folder-title-actions {
    flex-basis: auto; order: 0; width: auto;
  }
  /* Блок действий держит свою ширину и стоит справа. Без этого правило
     `[data-in-folder] .doska-stash-folder-content-actions { width: 100% }` растянуло бы его на всю
     строку и выдавило заголовок. */
  .doska-stash-folder-content-header.doska-stash-folder-content-header.doska-stash-folder-content-header .doska-stash-folder-content-actions {
    width: auto; flex: 0 0 auto; justify-content: flex-end;
  }
  /* А заголовок, наоборот, перестаёт быть шириной во всю строку — но ТОЛЬКО там, где рядом с ним
     реально есть блок действий. Там, где его нет (шапка названия папки), `width: 100%` из правила
     [data-in-folder] нужен: именно он разводит название и кластер «···»+«Создать» по краям. */
  .doska-stash-folder-content-header.doska-stash-folder-content-header:has(.doska-stash-folder-content-actions) .doska-stash-folder-content-title {
    width: auto; flex: 0 1 auto; min-width: 0;
  }
}

/* ==================== ДАЙДЖЕСТЫ: тематические подборки ====================
   Per direct request с референсом: яркие цветные блоки с крупной типографикой. Ключевое отличие от
   первой версии этого экрана (фото-обложка сверху, подпись под ней): здесь ЦВЕТ И НАЗВАНИЕ и есть
   карточка, а фотография — необязательная фактура сбоку. Так полка выглядит одинаково собранной и
   когда у подборок есть картинки, и когда их нет вовсе, а это обычное дело для текстовых заметок.

   Цвет пары «фон/текст» приходит инлайном из компонента (закреплён за названием хэшем), поэтому
   тема всегда одного цвета и полка запоминается.

   Раздел живёт в тёмной теме приложения, но сами плитки намеренно светлые и насыщенные: это
   содержимое, а не поверхность, и им положено выделяться. */

.doska-collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
  margin-top: 6px;
}
/* Первая подборка шире: у полки появляется точка входа вместо ряда одинаковых прямоугольников. */
@media (min-width: 1000px) {
  .doska-collections-grid > :first-child { grid-column: span 2; }
}
/* Мобилка — ДВА ряда плиток вместо одного, per direct request («в мобильной версии в коллекциях
   карточки можно сделать в два ряда»). Базовое minmax(300px) на телефоне всегда сворачивалось в
   одну колонку, и полка превращалась в длинную ленту: чтобы увидеть шесть категорий, надо было
   листать весь экран. Высота плитки уменьшена соразмерно — иначе две узкие колонки стали бы
   двумя высокими прямоугольниками. */
@media (max-width: 768px) {
  /* ПРОКРУТКА: снимаем backdrop-filter с кнопок на карточках — живой отчёт («заедает вертикальный
     скролл во „Все заметки“, нет плавности»). Замер на тестовом аккаунте: 22 элемента с
     backdrop-filter на ШЕСТЬ карточек, то есть ~3.7 на карточку; на реальном списке в 366 карточек
     это больше тысячи полупрозрачных слоёв, каждый из которых браузер пересчитывает на каждом кадре
     прокрутки. Заменяем на плотный фон: выглядит почти так же, стоит ноль.
     Часть из них появилась только что — кнопка закрепления теперь рендерится на КАЖДОЙ карточке
     (раньше только у закреплённых), и именно это добило прокрутку. */
  /* Удвоенные классы — те же правила выше в файле объявлены удвоенными (готча №1), и одиночный
     селектор здесь проигрывал: замер показывал backdrop-filter живым на каждой кнопке. */
  .doska-stash-card-menu-btn.doska-stash-card-menu-btn,
  .doska-stash-card-source-btn.doska-stash-card-source-btn {
    backdrop-filter: none;
    background: rgba(20, 20, 24, 0.9);
  }
  /* СОДЕРЖИМОЕ НЕ БОЛТАЕТСЯ ВБОК — живой отчёт («из стороны в сторону болтает содержимое, оно
     должно быть зафиксировано»). Замер: scrollWidth 447 при clientWidth 342. Виноваты
     отрицательные боковые поля у секций и у ряда категорий: на десктопе они выравнивают заголовки
     по общей линии, а на телефоне выносят содержимое за пределы экрана. Там они не нужны — колонка
     и так одна. */
  .doska-collection-folder { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .doska-collection-folder-chips.doska-collection-folder-chips { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  /* Строка действий раздела прокручивается ВНУТРИ СЕБЯ, а не растягивает страницу. Замер: её
     ширина 439px при 342px у страницы — из-за flex-shrink:0 у кнопок она тянула родителя, и вся
     страница ездила вбок. */
  .doska-stash-folder-content-header { min-width: 0; }
  .doska-stash-folder-content-actions {
    min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: none;
  }
  .doska-stash-folder-content-actions::-webkit-scrollbar { display: none; }
  /* Страховка на случай любого другого широкого потомка: горизонтальной прокрутки на телефоне быть
     не должно вовсе. */
  /* overflow-x снят с .doska-stash-page-content — живой отчёт «на мобилке категории не
     закрепляются при скролле». Скрытый overflow делает элемент контейнером прокрутки, и липкая
     полоса начинает липнуть ОТНОСИТЕЛЬНО НЕГО: он не прокручивается, поэтому она просто уезжает
     вверх вместе с содержимым (замер: top −278 при верхе экрана 64). Горизонтальную прокрутку
     по-прежнему гасит внешняя карточка. */
  .doska-board-shell--page { overflow-x: hidden; }
  /* Заголовки секций крупнее — per direct request. На телефоне 17px читались как подпись, а это
     единственный ориентир, где ты находишься в длинном списке. */
  /* Удвоенные классы — готча №1: базовые правила заголовков объявлены НИЖЕ этого медиазапроса и
     при равной специфичности побеждали (замер: кегль так и оставался 17px).
     Кегль поднят ещё раз, до 28px, и утяжелён — per direct request («заголовки секций на мобилке
     крупнее, акцентней»). На телефоне секция занимает целый экран, и её заголовок — единственное,
     что отвечает «где я»; 22px всё ещё читались как подпись к сетке, а не как её название.
     Тесная разрядка и плотная строка — чтобы длинное название категории не расползалось на три
     строки в узкой колонке. */
  /* 28 → 19px — per direct report («в моб версии заголовки категорий слишком крупные»). После того
     как шапка стала серой капсулой во всю ширину, крупный кегль перестал быть нужен: полосу и так
     видно, а 28px в узкой колонке съедали строку и лезли на счётчик. */
  .doska-collection-folder-title.doska-collection-folder-title,
  .doska-stash-notes-heading.doska-stash-notes-heading {
    font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
  }
  /* Счётчик рядом с заголовком тоже подрастает, иначе рядом с 28px он выглядит случайной крошкой. */
  .doska-collection-folder-count.doska-collection-folder-count { font-size: 13px; padding: 3px 10px; }
  /* Шапка секции получает воздух сверху: крупный заголовок вплотную к предыдущей сетке читается
     как её часть, а не как начало новой. */
  .doska-collection-folder-head { margin-bottom: 12px; }
  /* 8pt: шаг между секциями задаёт `gap` колонки (24), своего поля не нужно. */
  .doska-collection-folder + .doska-collection-folder { margin-top: 0; }
  /* Ряд категорий ближе к кнопкам — per direct request («на мобильной версии горизонтальный скролл
     с категориями сделать ближе к кнопкам „Добавить заметку“, верхний отступ меньше»). На телефоне
     каждый вертикальный пиксель на счету, а 36px сверху (8 своих + 28 компенсации липкости)
     отрывали оглавление от строки, к которой оно относится. Компенсацию липкости оставляем — без
     неё вернётся просвет при прокрутке, — но собственный отступ убираем почти в ноль. */
  /* Удвоенный класс — готча №1: базовое правило чипсов объявлено НИЖЕ этого медиазапроса и при
     равной специфичности побеждало (замер: padding-top так и оставался 36px). */
  .doska-collection-folder-chips.doska-collection-folder-chips {
    /* Компенсацию липкости оставляем в padding (она закрывает просвет фоном при прокрутке), но
       ровно на неё же поднимаем весь ряд отрицательным margin — иначе в покое эти 28px читаются
       как пустая полоса между кнопками и оглавлением. */
    padding-top: calc(var(--s-3) + var(--doska-sticky-gap, 0px)); padding-bottom: var(--s-3);
    margin-top: calc(-1 * (var(--doska-row-gap, 0px) + var(--doska-sticky-gap, 0px)));
  }
  .doska-collections-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .doska-collection-card { min-height: 150px; padding: 16px; gap: 14px; }
  .doska-collection-title { font-size: clamp(17px, 4.6vw, 24px); }
  .doska-collections-grid > :first-child .doska-collection-title { font-size: clamp(19px, 5vw, 26px); }
  .doska-collection-fact { padding: 3px 8px; font-size: 11px; }
}

/* Быстрое добавление в «Коллекциях». Двойной класс — та же готча №1, что и у плитки ниже:
   `.doska-root button { background: none }` идёт позже и одиночный класс проигрывает. */
.doska-collections-add {
  display: flex; gap: 8px; align-items: flex-start;
  margin: 0 0 14px;
}
.doska-collections-add-input {
  flex: 1; min-width: 0; resize: none;
  padding: 11px 14px; border-radius: var(--doska-radius-lg);
  border: 1px solid var(--doska-border); background: var(--doska-surface);
  color: var(--doska-text); font-family: var(--doska-font-body); font-size: 14px; line-height: 1.45;
}
.doska-collections-add-input:focus { outline: none; border-color: var(--doska-accent); }
/* Скрепка — второстепенное действие рядом с полем: тем же ростом, что и «Сохранить», но без
   заливки, чтобы не спорить с ней за внимание. */
.doska-collections-add-file.doska-collections-add-file {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 999px;
  border: 1px solid var(--doska-border); background: var(--doska-surface);
  color: var(--doska-text-muted); cursor: pointer;
}
.doska-collections-add-file:hover { color: var(--doska-text); border-color: var(--doska-accent); }
/* Перетаскивание принимает вся форма — подсветка идёт по её краю, а не отдельной пунктирной
   мишенью: две мишени рядом на маленькой форме только усложняют прицеливание. */
.doska-collections-add[data-drag-active] .doska-collections-add-input {
  border-color: var(--doska-accent); background: var(--doska-accent-soft);
}
/* Папки внутри подборки. Секция обведена только когда над ней держат карточку — в спокойном
   состоянии рамки вокруг каждой папки превратили бы экран в таблицу. */
/* Строка «N заметок вне подборок» — предложение, а не отчёт, поэтому кнопка, а не плашка. */
.doska-collections-rest.doska-collections-rest {
  border: none; cursor: pointer;
  font-family: var(--doska-font-body);
}
.doska-collections-rest:hover { background: var(--doska-accent); color: var(--doska-accent-contrast, #fff); }
.doska-collections-rest:disabled { cursor: default; opacity: 0.7; }
.doska-collection-folder-actions { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; flex-wrap: wrap; }
.doska-collection-folder-new { display: flex; gap: 6px; align-items: center; }
.doska-collection-folder {
  /* Боковые поля компенсированы отрицательными margin — per direct report со скриншотом
     («поправить отступы»): из-за padding заголовок секции стоял на 12px правее, чем «Без
     категории» и обложка над ним. Поле нужно, чтобы рамка при перетаскивании не липла к
     карточкам, но сдвигать содержимое оно не должно. */
  /* Отступ между секциями уменьшен (20 → 10) — per direct request со скриншотом свёрнутых
     категорий («вот эти категории должны быть по отступам ближе друг к другу»): у свёрнутых полос
     между шапками зияла пустота в высоту самой полосы. */
  /* Нижнее поле 4px по той же причине, что у закреплённых выше: общий `gap` колонки уже даёт 20,
     и 10 своих превращали расстояние между секциями в 30 при 40 у соседней пары. Единый шаг 24. */
  /* 8pt: боковая компенсация и padding кратны 8 (было −12/10/12). Нижнее поле не нужно вовсе —
     шаг между секциями задаёт `gap` колонки. */
  margin: 0 calc(-1 * var(--s-2)) 0; padding: var(--s-1) var(--s-2); border-radius: var(--doska-radius-lg);
  /* Подсветка при перетаскивании — outline, а не border: рамка добавляла бы свои 1.5px к ширине и
     сдвигала содержимое (замер показал заголовок секции на 103 против 101 у соседей). outline
     рисуется поверх и раскладку не двигает. */
  border: none; outline: 1.5px dashed transparent; outline-offset: -2px;
  transition: outline-color 0.15s ease, background 0.15s ease;
}
.doska-collection-folder[data-drop-active] { outline-color: var(--doska-accent); background: var(--doska-accent-soft); }
/* Шапка категории — серая капсула ВО ВСЮ ШИРИНУ, per direct request с референсом («сделай в сером
   чипе аналогично», «во всю ширину»). Полоса сама по себе показывает границы секции: где она
   начинается и где заканчивается её содержимое, — и заодно делает очевидным, что по ней можно
   сворачивать. */
.doska-collection-folder-head {
  display: flex; align-items: center; gap: 10px; margin: 0 0 12px;
  width: 100%; padding: 9px 16px; border-radius: 999px;
  background: var(--doska-surface);
  /* Вся полоса — переключатель (per direct request), поэтому курсор и отклик на наведение у неё, а
     не у шеврона. */
  cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none; transition: background 0.15s ease;
}
.doska-collection-folder-head:hover { background: var(--doska-accent-soft); }
/* Сворачивание категории — per direct request с референсом. Шеврон поворачивается вместо смены
   иконки: одно и то же место на экране, поворот читается как состояние, а не как другая кнопка. */
/* Шеврон теперь не кнопка, а указатель состояния внутри кликабельной полосы. */
.doska-collection-folder-toggle.doska-collection-folder-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; padding: 0; border: none;
  background: transparent; color: var(--doska-text-muted);
}
/* Внутри капсулы у шеврона своя подложка не нужна — она была бы кружком на кружке. */
.doska-collection-folder-head .doska-collection-folder-toggle { width: 20px; height: 20px; }
.doska-collection-folder-chevron { transition: transform 0.15s ease; transform: rotate(90deg); }
.doska-collection-folder[data-collapsed] .doska-collection-folder-chevron { transform: rotate(0deg); }
/* У свёрнутой секции шапка — единственное содержимое, поэтому её нижний отступ не нужен. */
.doska-collection-folder[data-collapsed] .doska-collection-folder-head { margin-bottom: 0; }
.doska-collection-folder[data-collapsed] { margin-bottom: 4px; }
@media (prefers-reduced-motion: reduce) {
  .doska-collection-folder-chevron { transition: none; }
}
.doska-collection-folder-title {
  margin: 0; font-family: var(--doska-font-display);
  font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--doska-text);
}
.doska-collection-folder-count {
  padding: 2px 9px; border-radius: 6px; background: var(--doska-accent-soft);
  color: var(--doska-text-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.doska-collection-folder-remove.doska-collection-folder-remove {
  margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 999px; border: none;
  background: transparent; color: var(--doska-text-muted); cursor: pointer;
}
.doska-collection-folder-remove:hover { background: var(--doska-accent-soft); color: var(--doska-text); }
/* Стрелка и подпись в ОДНУ строку: у звена хлебных крошек не было своей раскладки (текст там был
   один), и иконка со словами вставали друг под другом — видно на скриншоте живой страницы. */
/* Кегль и отступ ровно как у возврата в подборке (.doska-collections-back) — per direct request
   («стрелку назад в проекте сделать такого же размера и шрифт такого же размера, как в
   коллекции»). Раньше это было звено хлебных крошек на 13px, то есть вдвое мельче. */
.doska-project-header-breadcrumb-back.doska-project-header-breadcrumb-back {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  background: none; font-family: var(--doska-font-display);
  font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--doska-text);
}
.doska-project-header-breadcrumb-back:hover { color: var(--doska-text-muted); }
/* Пилюли стоят сразу ЗА НАЗВАНИЕМ — замер показал, что они уезжали в правый край экрана (left
   1280 при названии, кончающемся на 290): строка с названием тянулась на всю ширину, и соседний
   блок прижимался к краю. Ограничиваем её по содержимому. */
.doska-project-hero-title-row { flex: 0 1 auto; width: auto; }
.doska-project-hero .doska-project-actions-bar { margin-left: auto; margin-bottom: 0; padding: 0; width: auto; }
/* Выбор порядка подборок — тот же вид, что у соседних кнопок раздела: это действие в том же ряду,
   и выпадающий список системного вида рядом с двумя круглыми кнопками выглядел бы деталью из
   другого интерфейса. */
.doska-collections-sort.doska-collections-sort {
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none; cursor: pointer; padding-right: 14px;
}
/* На десктопе обёртка ничего не добавляет: виден обычный список с подписью, иконка спрятана. */
.doska-collections-sort-icon { display: none; }
@media (max-width: 768px) { .doska-collections-sort-icon { display: block; } }
/* Общая строка действий под обложкой проекта: «Создать», «···», «Пригласить» плюс доставленные
   порталом «Разбить на папки» и «Новая папка» — per direct request («поставить на один уровень»).
   Порядок в DOM определяет порядок на экране; кнопки папок приходят последними и встают справа. */
.doska-project-actions-bar {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  max-width: 1464px; margin: 0 auto 14px; padding: 0 32px;
}
/* Вложенная строка кнопок папок внутри общей — свои внешние отступы ей уже не нужны. */
.doska-project-actions-bar .doska-collection-folder-actions { margin: 0; gap: 8px; order: 1; }
/* «Пригласить», «Поделиться» и «···» — в ПРАВЫЙ угол строки, per direct request. «Создать» при этом
   остаётся слева, рядом с кнопками категорий: это действие над содержимым, а те три — про доступ и
   управление самим проектом, и их место у противоположного края. */
.doska-project-actions-bar .doska-project-hero-actions-row { order: 2; flex: 1; }
.doska-project-actions-bar .doska-project-hero-actions {
  display: flex; align-items: center; gap: 8px; width: 100%;
}
/* «Создать» — КРАЙНЯЯ СПРАВА, рядом с «•••» (per direct request «внутри проекта рядом с три точки
   переместить кнопку создать»): раньше `order: -1` уводил её в левый край строки, и с «•••» она
   не соседствовала (замер: 1130 против 1319). Главное действие у края — тот же порядок, что и в
   шапке первого уровня на остальных экранах. */
.doska-project-actions-bar .doska-project-hero-create-inline { order: 2; margin-left: var(--s-1); }
/* Оглавление папок: одна строка с горизонтальной прокруткой. Полоса прокрутки скрыта — она бы
   спорила с самими чипсами по весу, а прокрутка здесь и так очевидна из обрезанного края. */
.doska-collection-folder-chips {
  /* Нижнее поле отрицательное — per direct request («сократить отступ от горизонтального скролла с
     категориями до заметок»). Замер: было 34px (14 собственного поля + 20 промежутка колонки),
     стало 12. Отрицательное значение здесь — не хитрость, а единственный способ уменьшить зазор,
     не трогая общий `gap` колонки, который держит расстояния между ВСЕМИ блоками страницы. */
  display: flex; gap: 8px; overflow-x: auto; margin-bottom: calc(-1 * var(--doska-row-gap, 0px));
  scrollbar-width: none;
  /* Жест по ленте — ТОЛЬКО горизонтальный (живой отчёт «не могу его горизонтально скролить мышью
     и мобилке»): при `auto` браузер отдаёт диагональное движение вертикальной прокрутке страницы,
     и лента почти никогда не сдвигалась. `pan-x` закрепляет ось за лентой, а не за страницей.
     Перетаскивание курсором добавлено отдельно, событиями (см. hooks/useDragScrollRow): у мыши
     нет горизонтального колеса, а полоса прокрутки здесь намеренно скрыта. */
  touch-action: pan-x; overscroll-behavior-x: contain; cursor: grab;
  /* Инерция пальцем — родная браузерная (наш обработчик тач не перехватывает, см.
     hooks/useDragScrollRow): на iOS её включает это свойство. */
  -webkit-overflow-scrolling: touch;
  /* Оглавление ПРИЛИПАЕТ к верху при прокрутке — per direct request («когда делаю вертикальный
     скролл, категории прилипают и всегда видны»). Это оглавление: пока листаешь длинную страницу,
     оно и отвечает на вопрос «где я сейчас» и позволяет перепрыгнуть в другую категорию, не
     возвращаясь наверх.
     Свой фон обязателен: без него карточки просвечивают сквозь прилипшую строку. Отрицательные
     боковые поля с равным padding — чтобы фон закрывал строку во всю ширину колонки, а сами чипсы
     остались на общей левой линии. */
  /* Прилипание считается от ВЕРХНЕЙ ГРАНИЦЫ контейнера, а не от его padding-box — per direct
     report («при скролле вижу просвет между категориями и меню 1-го уровня»): при top:0 строка
     липнет на высоте внутреннего отступа контейнера, и в этот зазор видно проезжающие карточки.
     Отступ контейнера объявлен переменной на нём самом (см. --doska-sticky-gap ниже) и здесь
     компенсируется дважды: отрицательным top, чтобы строка дошла до края, и таким же добавочным
     верхним полем, чтобы фон закрыл зазор, а сами чипсы не уехали под шапку. */
  /* Верхнее поле уменьшено до 2px (плюс компенсация липкости) — per direct request («верхний
     отступ от горизонтального скролла с категориями уменьшить до текста „Все заметки“»). */
  position: sticky; top: calc(-1 * var(--doska-sticky-gap, 0px)); z-index: 5;
  /* Радиуса у самой полосы НЕТ — живой отчёт со скриншотом («вижу такой фон, скругление под
     скроллом»): при прилипании закруглённый фон не закрывал полосу целиком, и по краям из-под него
     выглядывали проезжающие карточки — четыре светлых уголка. Капсульная форма уместна у самих
     чипсов, а у подложки её задача ровно одна: непрозрачно перекрыть то, что едет снизу. */
  border-radius: 0;
  /* Фон дотягивается до краёв карточки-контейнера ТЕНЬЮ, а не шириной — замер показал, что полоса
     не достаёт до боков (слева 21px, справа 5px), и в этих просветах при прокрутке видно карточки.
     Две смещённые тени той же формы закрывают бока и, в отличие от отрицательных полей, не
     увеличивают ширину содержимого — то есть не поднимают горизонтальную прокрутку. */
  /* Тени берут фон карточки раздела, а не полотна: полоса проезжает по КАРТОЧКЕ, и цвет полотна
     (он на шаг темнее) читался по её бокам как чёрные плашки — живой отчёт «под табами вижу
     чёрную плашку». Тот же токен, что у самой карточки и у липкой шапки. */
  box-shadow: -40px 0 0 var(--doska-section-bg), 40px 0 0 var(--doska-section-bg);
  /* Отступы ряда считаются ЗДЕСЬ и не зависят от того, у кого он лежит — per direct request
     («нужно чуть ниже опустить категории по отступу, которые в горизонтальном скролле, от поиска
     и от заметок; убедиться, что везде одинаково — это супер важно»). Раньше зазор складывался из
     gap родителя плюс собственных полей, а родители разные (замер: 24px во «Все заметки», 16
     внутри спейса), и разницу гасили частными числами в третьем месте — отрицательным полем
     самого поиска (−38px). Итог был предсказуемо разный: 10/24 во «Все заметки» против 24/16
     внутри спейса. Теперь gap родителя вычитается отрицательным полем, а видимый зазор задаётся
     одним значением — 24 сверху и 24 снизу на обоих экранах.
     В верхнее поле входит и компенсация липкости: padding-top держит фон, закрывающий просвет при
     прилипании, а margin-top ровно на неё же поднимает ряд обратно, чтобы в покое зазор был те же
     24, а не 24 плюс компенсация. */
  padding: calc(var(--s-3) + var(--doska-sticky-gap, 0px)) var(--s-2) var(--s-3);
  margin-top: calc(-1 * (var(--doska-row-gap, 0px) + var(--doska-sticky-gap, 0px)));
  margin-left: -12px; margin-right: -12px;
  background: var(--doska-section-bg);
}
/* Значение = собственный padding-top контейнера прокрутки. Замерено живьём: у страницы «Все
   заметки» 28px; у вкладки проекта своего верхнего отступа нет, там компенсировать нечего. */
/* --doska-sticky-gap ДОЛЖЕН совпадать с фактическим padding-top этого контейнера: липкая строка
   компенсирует его отрицательными top/margin, чтобы прилипать к самому верху, а не к внутреннему
   отступу. Значения разъехались, когда верхнее поле меняли по просьбам («ближе к меню», потом
   «отступ от обводки»): переменная осталась 28, а поле на телефоне стало 6 — замер показал, что
   при прокрутке оглавление уезжает на top 42 при верхе контейнера 64, то есть частично прячется
   под шапку. Держим их вместе: одно значение на десктоп, другое на телефон. */
.doska-board-shell--page { --doska-sticky-gap: var(--s-4); }
@media (max-width: 768px) {
  .doska-board-shell--page { --doska-sticky-gap: var(--s-1); }
}
.doska-collection-folder-chips[data-drag-scrolling] { cursor: grabbing; -webkit-user-select: none; -moz-user-select: none; user-select: none; }
.doska-collection-folder-chips::-webkit-scrollbar { display: none; }
.doska-collection-folder-chip.doska-collection-folder-chip {
  /* 8pt: высота 32 (padding 8/16 + текст), на телефоне ниже поднимается до 40 ради пальца. */
  flex: none; display: inline-flex; align-items: center; gap: var(--s-1);
  height: 32px; padding: 0 var(--s-2); border-radius: 6px; border: 1px solid var(--doska-border);
  background: var(--doska-surface); color: var(--doska-text);
  font-family: var(--doska-font-display); font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.doska-collection-folder-chip:hover { border-color: var(--doska-accent); }
/* Активная категория — per direct request: остаётся выделенной после нажатия и переезжает сама при
   вертикальной прокрутке (см. useSectionSpy). Заливкой, а не рамкой: рамку на тёмном фоне в ряду из
   десяти чипсов глазом не поймать. */
.doska-collection-folder-chip[data-active].doska-collection-folder-chip[data-active] {
  background: var(--doska-accent); border-color: transparent; color: var(--doska-accent-contrast, #fff);
}
.doska-collection-folder-chip[data-active] .doska-collection-folder-chip-count { color: inherit; opacity: 0.8; }
/* «Новая категория» — тот же чип, но пунктиром: это не полка, а приглашение её завести, и он не
   должен читаться как ещё одна существующая категория. */
/* Тонкий ПУНКТИР, а не толстая штриховая рамка — per direct request («не надо показывать такие
   обводки; пунктирный»). Замер до правки: 3px dashed цветом rgb(138,138,148) — такая рамка кричит
   громче самих категорий рядом. dotted + 1px + приглушённый тон: место для новой полки видно, но
   оно не спорит с существующими. */
.doska-collection-folder-chip--new.doska-collection-folder-chip--new {
  border-style: dotted; border-width: 1px; border-color: var(--doska-hairline-strong);
  color: var(--doska-text-muted); gap: 6px;
}
.doska-collection-folder-chip--new:hover { color: var(--doska-text); }
.doska-collection-folder-chip-count {
  color: var(--doska-text-muted); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
/* Создание проекта прямо в меню переноса. */
.doska-drawer-menu-boardpick-row--new { color: var(--doska-text-muted); }
.doska-drawer-menu-boardpick-new { display: flex; gap: 6px; padding: 6px 8px; }
.doska-drawer-menu-boardpick-input {
  flex: 1; min-width: 0; padding: 7px 10px; border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-border); background: var(--doska-surface);
  color: var(--doska-text); font-size: 13px;
}
.doska-drawer-menu-boardpick-input:focus { outline: none; border-color: var(--doska-accent); }
.doska-drawer-menu-boardpick-create.doska-drawer-menu-boardpick-create {
  flex: none; padding: 8px 14px; border-radius: var(--doska-radius-md); /* капсула → шкала: в «Графите» капсулу носят фильтры, действие имеет радиус 12 */ border: none;
  background: var(--doska-accent); color: var(--doska-accent-contrast, #fff);
  font-size: 13px; font-weight: 600; cursor: pointer;
}
.doska-drawer-menu-boardpick-create:disabled { opacity: 0.45; cursor: default; }
.doska-collections-add-save.doska-collections-add-save {
  flex: none; padding: 11px 18px; border-radius: 999px; border: none;
  background: var(--doska-accent); color: var(--doska-accent-contrast, #fff);
  font-family: var(--doska-font-display); font-size: 14px; font-weight: 600; cursor: pointer;
}
.doska-collections-add-save:disabled { opacity: 0.45; cursor: default; }
/* Строка исхода: коротко говорит, куда именно легла заметка. Без неё автоматическая раскладка
   выглядит как «ничего не произошло» — карточка ушла неизвестно куда. */
.doska-collections-flash {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 14px; padding: 7px 13px; border-radius: 999px;
  background: var(--doska-accent-soft); color: var(--doska-text);
  font-size: 13px; font-weight: 600;
}
.doska-collection-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 208px; padding: 22px 24px;
  border-radius: var(--doska-radius-lg);
  text-align: left;
  transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.24s ease;
}
/* Удвоенный селектор — готча №1 из CLAUDE.md, пойманная здесь живьём: карточка это <button>, а
   правило `.doska-root button { background: none }` имеет специфичность (0,1,1) и перебивало
   (0,1,0) у класса. На экране это выглядело как «цвет не применился»: плитки оставались тёмными, и
   виден был только цветной текст. */
.doska-collection-card.doska-collection-card { background: var(--doska-collection-bg); }
/* Название — главный элемент: набрано крупно, плотно и в цвете пары. Ограничение в две строки не
   косметическое: три строки заголовка ломают высоту плитки и ряд перестаёт быть рядом. */
.doska-collection-title {
  position: relative; z-index: 1;
  font-family: var(--doska-font-display);
  /* Пропорция ПОМЕНЯНА МЕСТАМИ — per direct request: на плитке проекта название акцентное, на
     плитке подборки чуть мельче. Логика за этим: проект человек называл сам, и узнаёт полку по
     своим названиям; названия подборок придумала модель, и они там не главный ориентир — там
     работают цвет и картинка содержимого. */
  font-size: clamp(22px, 2.1vw, 32px);
  font-weight: 600; line-height: 0.98; letter-spacing: -0.035em;
  color: var(--doska-collection-ink);
  text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.doska-collections-grid > :first-child .doska-collection-title { font-size: clamp(26px, 2.8vw, 42px); }
/* Первая карточка «Недавних» не растягивается на две колонки и не увеличивает заголовок: в этом
   ряду все карточки равны. font-size у самой карточки НЕ трогаем: заголовок наследовал бы от неё
   базовые 13px (замер: так и вышло с первой попытки), поэтому размер задаётся заголовку прямо,
   с той же специфичностью (0,3,0), что и правило про крупную первую карточку выше. */
/* Отдельный, более крупный кегль для плиток ПРОЕКТОВ отменён — per direct report («в карточках
   слишком крупный шрифт в проектах, сделать как в карточках в коллекции»). Это отменяет более
   раннюю просьбу «поменять пропорцию местами»: на живом экране увеличенное название занимало
   плитку целиком и вытесняло счётчики. Проекты и подборки снова набраны одинаково. */

.doska-collection-facts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; }
.doska-collection-fact {
  padding: 4px 10px; border-radius: 999px;
  background: color-mix(in srgb, var(--doska-collection-ink) 14%, transparent);
  color: var(--doska-collection-ink);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}

/* Фотография вылетает справа и растворяется в цвете: маска, а не рамка. Без маски снимок выглядел
   бы вставкой поверх плитки, а нужно, чтобы он был её частью. */
.doska-collection-bleed {
  position: absolute; top: 0; right: 0; height: 100%; width: 46%;
  -o-object-fit: cover;
     object-fit: cover; opacity: 0.9;
  -webkit-mask-image: linear-gradient(to left, #000 45%, transparent);
  mask-image: linear-gradient(to left, #000 45%, transparent);
}

/* Шапка открытой подборки — та же плитка, только во всю ширину. */
.doska-collection-hero {
  position: relative; overflow: hidden;
  min-height: 210px; margin-bottom: 22px; padding: 26px 28px;
  border-radius: var(--doska-radius-lg);
  background: var(--doska-collection-bg);
  display: flex; align-items: flex-end;
}
.doska-collection-hero .doska-collection-bleed { width: 40%; }
.doska-collection-hero-inner { position: relative; z-index: 1; max-width: 60ch; }
.doska-collection-hero-title {
  margin: 0 0 8px;
  font-family: var(--doska-font-display);
  font-size: clamp(34px, 5vw, 62px); font-weight: 600; line-height: 0.95; letter-spacing: -0.04em;
  color: var(--doska-collection-ink); text-wrap: balance;
}
.doska-collection-hero-blurb {
  margin: 0 0 10px; max-width: 52ch;
  font-size: 15px; line-height: 1.45; font-weight: 500;
  color: color-mix(in srgb, var(--doska-collection-ink) 88%, transparent);
}
.doska-collection-hero-count {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--doska-collection-ink) 14%, transparent);
  color: var(--doska-collection-ink);
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
}

.doska-collections-back {
  display: inline-flex; align-items: center; gap: 8px;
  background: none; font-family: var(--doska-font-display);
  font-size: 30px; font-weight: 600; letter-spacing: -0.03em; color: var(--doska-text);
}
.doska-collections-back:hover { color: var(--doska-text-muted); }

@media (hover: hover) {
  .doska-collection-card:hover { transform: translateY(-4px); box-shadow: none; }
}
.doska-collection-card:active { transform: translateY(-1px) scale(0.995); }

@media (prefers-reduced-motion: no-preference) {
  .doska-collection-card {
    animation: doska-collection-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
    animation-delay: var(--doska-collection-delay, 0ms);
  }
  @keyframes doska-collection-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

/* ==================== ЭКРАН НЕДЕЛЬНОЙ СВОДКИ ====================
   Оформление то же, что у «Коллекций»: цветные плитки и крупная типографика. Разница в акценте —
   там главное название темы, здесь ЧИСЛО: вопрос недели звучит как «сколько я всего собрал», и
   ответ должен читаться с расстояния, а остальное его объясняет. */
.doska-weekly-backdrop {
  position: fixed; inset: 0; z-index: 106;
  /* Плотная подложка вернулась по той же причине, что у окна создания: сводка это отдельный
     обзор на весь экран, а не слой поверх работы, и просвечивающий под ней список только мешает
     читать числа. */
  background: rgba(6, 6, 9, 0.86);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 56px 16px 32px; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.doska-weekly-sheet {
  position: relative; width: 100%; max-width: 860px;
  background: var(--doska-surface); border-radius: var(--doska-radius-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 18px;
}
.doska-weekly-close {
  position: absolute; top: 14px; right: 14px; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 999px;
  background: var(--doska-accent-soft); color: var(--doska-text);
}

.doska-weekly-hero {
  border-radius: var(--doska-radius-lg); padding: 26px 28px;
  display: flex; flex-direction: column; gap: 2px;
}
.doska-weekly-hero.doska-weekly-hero { background: var(--doska-collection-bg); }
.doska-weekly-hero-num {
  font-family: var(--doska-font-display);
  font-size: clamp(56px, 9vw, 104px); font-weight: 600; line-height: 0.86; letter-spacing: -0.05em;
  color: var(--doska-collection-ink); font-variant-numeric: tabular-nums;
}
.doska-weekly-hero-word {
  font-family: var(--doska-font-display);
  font-size: clamp(18px, 2.4vw, 26px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--doska-collection-ink);
}
.doska-weekly-hero-note {
  margin-top: 8px; font-size: 13px; font-weight: 500;
  color: color-mix(in srgb, var(--doska-collection-ink) 82%, transparent);
}

/* Плитки проектов — тот же язык, что на полке коллекций, только компактнее: здесь они не входы
   куда-то, а разбивка одного числа, поэтому меньше и без наведения. */
.doska-weekly-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.doska-weekly-tile {
  border-radius: var(--doska-radius-md, 14px); padding: 14px 16px;
  background: var(--doska-collection-bg);
  display: flex; flex-direction: column; gap: 2px; min-height: 92px;
}
.doska-weekly-tile-num {
  font-family: var(--doska-font-display); font-size: 30px; font-weight: 600; line-height: 1;
  letter-spacing: -0.03em; color: var(--doska-collection-ink); font-variant-numeric: tabular-nums;
}
.doska-weekly-tile-name {
  font-size: 13px; font-weight: 600; color: var(--doska-collection-ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.doska-weekly-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.doska-weekly-fact {
  padding: 5px 11px; border-radius: 999px;
  background: var(--doska-accent-soft); color: var(--doska-text);
  font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.doska-weekly-fact--topic { color: var(--doska-text-muted); }
.doska-weekly-subtitle {
  margin: 2px 0 -6px; font-family: var(--doska-font-display);
  font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--doska-text);
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
/* Подсказка живёт в одной строке с заголовком: список ниже — не витрина, а рабочий список, и
   единственное, что о нём нужно знать, — что карточка открывается. */
.doska-weekly-subtitle-hint {
  font-family: var(--doska-font-body); font-size: 12px; font-weight: 500;
  letter-spacing: 0; color: var(--doska-text-muted);
}

@media (max-width: 768px) {
  .doska-weekly-backdrop { padding: 12px 10px 24px; }
  .doska-weekly-sheet { padding: 16px; gap: 14px; }
  .doska-weekly-tiles { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}

/* Кнопка «Быстрая чистка» в шапке первого уровня — per direct request («будет кнопка рядом с
   нотификациями в меню 1го уровня»). Форма и размер те же, что у соседей по строке
   (.doska-pill-btn), отличие одно: цифра рядом с иконкой — сколько карточек ждёт разбора.
   Цифра не бейджем поверх иконки, а в потоке справа от неё: бейдж в этой строке уже есть у
   колокольчика, и два наложенных кружка рядом читались бы как одно уведомление с двумя числами. */
.doska-quick-cleanup-btn { gap: 6px; width: auto; padding: 0 10px; }
.doska-quick-cleanup-count {
  font-size: 12px; font-weight: 600; line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- fixed project header (brand/actions row + title/date row) ---------- */

/* A "gaps between blocks" experiment (NotebookLM reference) briefly inset this from the top edge
   to match ProjectsRail/AiBoardPanel; per direct follow-up ("отступы тоже убери. вернуть как
   было без них") that's fully reverted — flush against the top edge again. */
.doska-project-header {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 30;
}
/* Embedded mode (DoskaPage.tsx's own `embedded` prop, Хранилка/Карта/Задачи only) — normal
   in-flow content instead of an absolute overlay, so it scrolls away with the rest of
   .doska-project-tab-content's content instead of staying pinned above it (per direct report
   "шапку можно будет проскроливать. Она не фиксируется как сейчас"). Still `relative` (not
   `static`) so it stays a valid positioned ancestor for its own popovers (search/share/"···"),
   and keeps a z-index so those popovers still paint above the sticky filter/sort toolbar and grid
   that follow it as later siblings in the same scroll container. */
.doska-project-header[data-embedded] {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  z-index: 10;
  /* Same "верхний отступ больше от верхнего края" fix already applied to TopNav's own topbar —
     this header sits in normal flow at the very top of .doska-project-tab-content's scroll
     container, flush against the true top edge with nothing above it. Per direct report ("меню
     первого уровня прибито к верху сильно") on this exact per-project page. */
  padding-top: 10px;
}
/* Fallback nav shown in place of the full header while `shoot` hasn't loaded yet (see
   DoskaPage.tsx's AuthorBoard) — deliberately minimal/not styled to match the real header, since
   it's meant to read as "still loading, but here's a way out", not as the header itself. */
.doska-board-fallback-back {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(var(--doska-glass-rgb), 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--doska-hairline-strong);
  color: var(--doska-text);
  font-size: 13px;
  box-shadow: none;
}
.doska-board-fallback-back:hover { background: var(--doska-secondary); }
/* Same "прозрачная подложка" fix as .doska-project-hero just below it — this compact row sits
   directly above the hero, so leaving it on var(--doska-surface) while the hero went transparent
   would just move the seam down one row instead of removing it ("нужно чтобы был однородный
   верный фон" / "Черный"). */
/* Side padding 16px -> 20px — aligns with .doska-topnav[data-layout="topbar"]'s own 20px (the
   gallery page's equivalent top utility bar); the two are the same "slim chrome bar" pattern seen
   one navigation away from each other, and 16px read as a visible jog going from one into the
   other. Deliberately still less than the hero/content-area's 32px below it — a slimmer top bar
   than its page content is the norm this app already follows elsewhere, not an inconsistency. */
.doska-project-header-top {
  position: relative;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 10px;
  /* 20px flat -> 32px + max-width:1464px + auto margin — same "выровни с табами" column-alignment
     fix as .doska-topnav[data-layout="topbar"] (per direct follow-up "для страницы проекта тоже
     самое"), matching the hero row right below this one (.doska-project-hero already uses this
     exact max-width — see that rule's own "1400 + 32 + 32" comment) so the breadcrumb logo and
     Создать/Уведомления/Профиль line up with the hero title/toolbar/grid edges under them instead
     of sitting at their own independent flat inset. */
  max-width: 1464px; margin: 0 auto; padding: 0 32px;
  background: transparent;
  border-bottom: none;
}
/* Per direct request ("отступ хлебных крошек до верха еще сократить" -> "на уровне колапс
   иконки") — the breadcrumb row right below this one should start level with ProjectSidebar's
   own collapse-button row, its sibling column in .doska-project-with-sidebar. This row's own
   content is already fully empty in embedded/Хранилка mode on desktop — .doska-project-title-
   inline is display:none here (its own rule's comment: only flipped on for mobile), and the
   back-link button is isMobile-gated in ProjectHeader.tsx — but the base rule above still forces
   a hardcoded height:52px regardless of that, leaving a blank 52px gap with nothing in it above
   the breadcrumb. Collapsed to 0 here, embedded-desktop only: Canvas's own absolute-positioned
   (non-embedded) header and mobile's real back-arrow row (that one already gets its own
   height:auto override, see the max-width:768px block further down) are both untouched. Lands
   the breadcrumb within ~2px of the sidebar's own collapse button — confirmed live via
   getBoundingClientRect on both. */
@media (min-width: 769px) {
  .doska-project-header[data-embedded] .doska-project-header-top {
    display: none;
  }
}

/* GlobalPageHeader (DoskaPage.tsx) — Дашборд/Архив/Корзина/ReadLater/Темы/Все заметки/Главная's
   own "меню первого уровня". Per direct follow-up ("давай эту часть выведем из под обводки. будет
   сверху над обводкой") — used to render once PER PAGE, nested inside that page's own
   .doska-board-shell--page card (32px side inset borrowed from there, no padding of its own).
   Now renders exactly once, as a direct child of .doska-top-shell--sidebar, ABOVE the rail/
   sidebar/content row entirely — own max-width:1464px + 32px padding instead (the same "1400 +
   32 + 32" column-alignment recipe .doska-project-header-top/.doska-topnav[data-layout="topbar"]
   already use for a full-bleed top strip), so the search bar and content grid below still line up
   on a wide screen even though this row is no longer inside any of those cards' own padding. */
/* Per direct follow-up ("моб версия должна быть макс приближена к вебу. рельсу можно не скрывать.
   а меню с проектами можно поверх показывать") — GlobalPageHeader renders at every width now, not
   just desktop (see DoskaPage.tsx's own comment on its unified branch), so it needs a real mobile
   layout of its own instead of silently inheriting ProjectHeader/TopNav's unrelated bottom-dock
   transform (the whole reason .doska-global-page-header-search-wrap/-actions exist as separate
   classes — see their own comments). Logo briefly hidden here (IconRail.tsx already covers "where
   am I"), then restored per direct report ("на мобилке пропало лого") — kept visible at the same
   size/position as desktop; .doska-global-page-header-inner's own left padding is widened to 68px
   below to clear its 64px footprint (56px box + 8px inset) instead of the search input starting
   underneath it. Search goes in-flow instead of absolutely centered (own comment below) — the
   desktop version's centering math assumes room to spare either side; there isn't any left once
   the logo/icon cluster and this row's own side padding are accounted for on a 390px screen. */
@media (max-width: 768px) {
  /* Doubled selector — same .doska-root button / .doska-header-ask-btn.doska-header-ask-btn
     specificity trap as elsewhere in this file (see their own comments): the base
     .doska-global-page-header-search-wrap rule further down (position:absolute, width:560px)
     has equal (0,1,0) specificity to this bare single-class override and sits LATER in the file,
     so it silently won at every viewport width — confirmed live at 390px, the wrap stayed
     position:absolute with a stale 170px width that visually overlapped the sparkle/bell/avatar
     icons to its right and intercepted their clicks even though it now holds only the 44px search
     icon button. Doubling the class here raises this rule's specificity so it wins regardless of
     source order. */
  .doska-global-page-header-search-wrap.doska-global-page-header-search-wrap {
    position: static; transform: none; width: auto; max-width: none; flex: 1; min-width: 0;
  }

  /* Icon-only — "Спросить" as a full label plus the search input plus the icon cluster doesn't
     fit in ~250px of remaining row width; the sparkle alone still reads clearly next to a search
     box, same "keep the icon, drop the label" convention .doska-pill-btn--labeled's own mobile
     rule already uses elsewhere in this file. */
  .doska-header-ask-btn span { display: none; }
  .doska-header-ask-btn { padding: 0; width: 40px; justify-content: center; }
}

/* Two visually distinct clusters on the header's right side: per-project actions (Invite/Share/
   project AI) vs the app-wide menu (search/comments/onboarding/global AI/profile) — the divider
   between them is the same hairline used for the brand divider on the left. margin-left: auto
   pins this to the row's right edge on its own now — it used to ride the search wrap's own
   flex:1 for that (the search wrap absorbed all remaining space and this just sat at its far
   end), but that wrap is absolutely positioned now instead of participating in this row's normal
   flex flow at all (see its own comment, per direct follow-up "ширина поиска на всех страницах
   одинаковая") — nothing is left to push this rightward without its own margin. */
.doska-header-group { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
/* Matches .doska-topnav[data-layout="topbar"] .doska-topnav-footer's own desktop sizes exactly —
   per direct follow-up ("проверь размеры и отступы этих иконок. нужно как в мои проекты. сейчас
   в профиле проекта скачет"). This row had no desktop override of its own at all, so
   Уведомления/Профиль silently fell back to .doska-pill-btn/.doska-profile-avatar's smaller
   generic defaults (32px/30px) while TopNav's own instance sized them up to 38px/36px — a real
   size mismatch between the two "same level-1 menu" screens, not just a gap difference. */
.doska-header-group .doska-pill-btn { width: 38px; height: 38px; }
.doska-header-group .doska-pill-btn svg { width: 16px; height: 16px; }
.doska-header-group .doska-profile-avatar { width: 36px; height: 36px; font-size: 13px; }
/* GlobalPageHeader's own dedicated copy — NOT .doska-header-group, deliberately. That class (and
   .doska-header-search-wrap/.doska-mobile-action-bar right below) carry a whole interlocking set
   of @media(max-width:768px) overrides built specifically for ProjectHeader.tsx/TopNav.tsx's own
   mobile pattern (search hidden entirely, this row collapsing to display:contents so its children
   join a position:fixed BOTTOM dock instead — see .doska-mobile-action-bar's own mobile rule).
   GlobalPageHeader has no such alternate bottom-dock mobile UI of its own — per direct follow-up
   ("моб версия должна быть макс приближена к вебу"), it's the SAME top strip at every width, not
   a different mobile layout — so it needed its own class free of that inherited behavior rather
   than accidentally reusing (and fighting) a mobile transform meant for a different component.
   Confirmed live: reusing the old classes verbatim left the search pill display:none and this
   group's own box collapsed to display:contents at 390px. */
/* margin-left: auto — per direct report ("настройки пользователя и уведомления вернуть в правый
   угол"), dropped by accident when this got split out from .doska-header-group (that class's own
   base rule has it — copy/paste miss, not a deliberate change). .doska-global-page-header-search-
   wrap right before this is position:absolute (out of flow), so without an explicit push this was
   the only in-flow child of .doska-global-page-header-inner and rendered at the row's own natural
   flex-start (left) instead of pinned to the right edge. */
.doska-global-page-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin-left: auto; }
.doska-global-page-header-actions .doska-pill-btn { width: 38px; height: 38px; }
.doska-global-page-header-actions .doska-pill-btn svg { width: 16px; height: 16px; }
.doska-global-page-header-actions .doska-profile-avatar { width: 36px; height: 36px; font-size: 13px; }

/* Title + its "•••" menu — per direct request ("отсюда заголовок убираем, он остается в меню
   1го уровня. три точки будут рядом") moved out of its own separate row entirely, into the top
   utility row right after the breadcrumb (which dropped its own duplicate trailing title crumb —
   see ProjectHeader.tsx). flex-shrink:0 keeps it from being squeezed by the many siblings now
   sharing this one 52px-tall row; the title text itself still truncates via its own rule below. */
/* Hidden outright — per later direct follow-up ("около стрелки название проекта не пишем, оно
   есть в другом месте уже"), the project hero below carries a bigger copy of the same title, so
   this row's own copy is pure duplication. The component itself stays mounted (still handles
   inline rename elsewhere), this only hides its rendered output. */
.doska-project-title-inline { display: none; }
.doska-project-title-inline .doska-shoot-panel-title { font-size: 14px; font-weight: 600; }
/* Now sharing one packed 52px-tall row with breadcrumb/tabs/search/Invite/Telegram/Share/
   comments/profile — a much tighter cap than the old standalone title row needed, so the title
   truncates well before it can crowd out its neighbors. min-width:0 is required on a flex child
   for overflow/ellipsis to ever kick in at all — flex items default to min-width:auto (their
   content size), which silently defeats text-overflow otherwise. */
.doska-project-title-inline .doska-shoot-title-edit {
  min-width: 0; max-width: 220px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block;
}

/* ---------- profile menu (avatar pinned at the bottom of the left rail — see
   .doska-topnav-footer in TopNav.tsx) ---------- */

.doska-profile-menu { position: relative; flex-shrink: 0; }
.doska-profile-avatar {
  width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 11px; font-weight: 600;
}
/* Doubled selector — same .doska-root button { background: none } specificity trap as
   .doska-drawer-menu-item--danger/.doska-gallery-cover-result above: a single-class rule here is
   only (0,1,0), .doska-root button is (0,1,1), so its background:none shorthand silently won no
   matter what this said. Every earlier screenshot that looked right was caught mid-hover (:hover
   is (0,2,0), which DOES beat the trap) — confirmed broken at rest via computed-style check, not
   just visually, per direct report ("тут должен быть постоянный цветной круг") that a fresh,
   non-hovered load showed no circle at all. */
/* Grey, not the accent color — per direct request ("кружок настройки профиля серый будет"), but
   a dedicated clean neutral rather than reusing --doska-text-muted as a solid fill — that token's
   slight cool/purple cast (meant for translucent text, not a filled circle) read as "грязный"
   (muddy) per direct follow-up. */
.doska-profile-avatar.doska-profile-avatar { background: var(--doska-avatar-gray); }
.doska-profile-avatar:hover { filter: brightness(1.15); }
/* Opens UPWARD and to the RIGHT by default — the avatar sits at the bottom of the desktop rail,
   which itself hugs the LEFT edge of the screen, so a panel anchored `right: 0` (its old default,
   copied from Brana's own top-RIGHT account menu) had nowhere to grow but further left, off the
   0px edge of the window (confirmed live: Chrome/Windows, "Выйти" completely unreachable — both
   the old downward-opening AND this leftward overflow were clipping it at once). Mobile flips
   both axes back below: its bottom bar puts the avatar at the right end of a full-width row, so
   THAT needs the opposite horizontal anchor to stay on-screen. */
.doska-profile-dropdown {
  /* z-index above .doska-ai-agent-btn's 40 — on a narrow viewport this panel's 200px width can
     reach far enough right to sit under the floating AI button otherwise, which would then eat
     clicks meant for a menu row underneath it (confirmed live, mobile: "Написать в поддержку"). */
  position: absolute; bottom: calc(100% + 8px); top: auto; left: 0; right: auto; z-index: 45; width: 200px;
  max-height: 70vh; overflow-y: auto;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-lg); box-shadow: none;
  padding: 6px;
}
/* ProjectHeader's avatar sits in the TOP board header, not the bottom rail — the default
   upward-opening rule above pushes this (now 7-row) dropdown off the top of the viewport
   entirely (confirmed live: Комментарии/Обучение landed at negative y, unreachable). Flip to
   open downward, anchored right (header avatar sits at the row's right edge). */
.doska-profile-dropdown[data-placement="down"] { bottom: auto; top: calc(100% + 8px); left: auto; right: 0; }
/* Пункт меню — строка языка: радиус 12, подложка при наведении СЛОЕМ ВЫШЕ панели. Прежде панель
   была surface-raised, а наведение красилось в surface, то есть подложка была ТЕМНЕЕ фона меню.
   С панелью на surface порядок слоёв стал прямым. */
.doska-profile-dropdown button {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px;
  border-radius: var(--doska-radius-md); font-size: 13px; color: var(--doska-text); text-align: left;
}
.doska-profile-dropdown button:hover { background: var(--doska-secondary); }
/* accent-ink — 12.5px dropdown item text on its own accent-soft fill measures well under 4.5:1. */
.doska-profile-dropdown button[data-active] { background: var(--doska-accent-soft); color: var(--doska-accent-ink); }

/* Per direct request ("убрать целиком" the board's left ClusterRail sidebar) — its markup/CSS is
   gone; .doska-rail-new-project below survives only because NewProjectForm's default (no
   renderTrigger) button still renders with this class, for any future caller that doesn't supply
   its own trigger the way ProjectGallery's header button does. */
.doska-rail-new-project {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--doska-text-muted);
  padding: 7px 8px; margin: 4px 0 0; border-radius: var(--doska-radius-sm);
  width: 100%;
}
/* accent-ink — same accent-soft-fill contrast shortfall as the profile dropdown above. */
.doska-rail-new-project:hover { color: var(--doska-accent-ink); background: var(--doska-accent-soft); }

.doska-search {
  position: absolute;
  top: 104px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 35;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--doska-surface);
  border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-md);
  padding: 8px 12px;
  min-width: 300px;
  transition: border-color 140ms var(--doska-ease);
}
.doska-search[data-focused] { border-color: var(--doska-accent); }
/* Groups icon/input/clear/meta as one unit so the page variant (MobileSearchPage.tsx) can lay
   .doska-search out as a flex COLUMN (this row, then results filling the rest) without each of
   those four becoming its own stacked line — display:contents here makes the wrapper invisible to
   every OTHER context (the default pill variant, unchanged), where .doska-search's own flex-ROW
   already lays these out directly exactly as before this element existed. */
.doska-search-input-row { display: contents; }
.doska-search-icon { color: var(--doska-text-muted); flex-shrink: 0; }
.doska-search input {
  background: none;
  border: none;
  outline: none;
  color: var(--doska-text);
  font-size: 13px;
  flex: 1;
  min-width: 140px;
}
.doska-search input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-search input::placeholder { color: var(--doska-text-muted); }
.doska-search-clear { color: var(--doska-text-muted); flex-shrink: 0; }
.doska-search-clear:hover { color: var(--doska-text); }
.doska-search-mic { display: flex; align-items: center; justify-content: center; color: var(--doska-text-muted); flex-shrink: 0; }
.doska-search-mic:hover { color: var(--doska-text); }
.doska-search-mic[data-recording] { color: #fff; background: var(--doska-danger); border-radius: 999px; padding: 4px; animation: doska-mic-pulse 1.2s ease-in-out infinite; }
.doska-search-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--doska-hairline);
  font-size: 11px;
  color: var(--doska-text-muted);
}

.doska-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  /* No z-index anywhere up this chain used to mean plain DOM order decided stacking — TopNav
     renders BEFORE the gallery grid in the JSX, so ProjectGallery's own cards (each position:
     relative for their own menu-button/badge overlays) painted OVER this dropdown instead of
     under it (confirmed live via screenshot: "баг меню под карточками"). */
  z-index: 40;
  max-height: 340px;
  overflow-y: auto;
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md);
  box-shadow: none;
  padding: 6px;
}
.doska-search-results-heading {
  font-size: 11px; text-transform: none; letter-spacing: 0;
  color: var(--doska-text-muted); padding: 4px 8px 6px;
}
.doska-search-result-row {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
  padding: 7px 8px; border-radius: var(--doska-radius-sm);
}
.doska-search-result-row:hover { background: var(--doska-secondary); }
.doska-search-result-title { font-size: 13px; color: var(--doska-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-search-result-subtitle { font-size: 11px; color: var(--doska-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Per direct request ("в поиске должна быть кнопка all search которая открывает отдельную
   модалку поиска чтобы видело все") — own row at the bottom of the dropdown, separated from the
   result groups above it by a hairline so it doesn't read as one more result. */
.doska-search-show-all {
  width: 100%; text-align: center; margin-top: 4px; padding: 8px;
  border-top: 1px solid var(--doska-hairline); border-radius: 0 0 var(--doska-radius-sm) var(--doska-radius-sm);
  font-size: 12px; font-weight: 600; color: var(--doska-accent);
}
.doska-search-show-all:hover { background: var(--doska-secondary); }
.doska-search-page-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center; color: var(--doska-text-muted); font-size: 14px;
}
/* Icon-only search trigger that replaces the pill inside the docked mobile action bar — desktop
   never renders this (the pill stays, same as always); the mobile block right below flips both. */
.doska-mobile-search-btn { display: none; }
/* Hamburger trigger for MobileNavDrawer (TopNav.tsx's own mobile topbar bar) — same
   React-conditional-mount + CSS-hidden-by-default pattern as .doska-mobile-search-btn just
   above, sized to match inside the @media block below. */
.doska-mobile-nav-toggle { display: none; }
/* Always-visible, centered search pill -- replaces the old icon+popover trigger entirely, per
   direct reference (a full-width rounded "Find anything" bar: search left, a divider, an "Ask"
   AI entry right), direct request ("сделай такой поиск по центру"), and a later follow-up
   ("ширина поиска на всех страницах одинаковая") — the wrap used to be a flex:1 sibling of
   TopNav's/ProjectHeader's OWN fixed-width neighbours (logo, icon cluster), which differ in width
   between the two bars, so the flex:1 slot itself (and thus the pill's rendered width, since it
   was narrower than the slot on the gallery topbar specifically) came out DIFFERENT on each page
   even though both shared the same max-width:560px cap (confirmed live via side-by-side
   screenshots: ~442px on the gallery topbar's three-way split vs the full 560px on the project
   header's single-flex-item layout). Absolutely positioned + centered against the row itself now
   instead — same width math on every page regardless of what else that row happens to contain.
   Needs a `position: relative` ROW to anchor against: .doska-project-header-top already has one;
   .doska-topnav[data-layout="topbar"] gets one added for this specifically (see its own rule). */
/* Wraps search + create/comments/profile as ONE unit so mobile can dock all of it together at the
   bottom of the screen instead of squeezing it into the cramped top row — per direct request/
   reference ("на моб версии сделай эти функции панелью внизу поверх экрана"), pointing at exactly
   this cluster (search input, "+", comments, avatar) cropped out of the top bar. `display: contents`
   at every other width makes the wrapper invisible to the existing layout — .doska-header-search-wrap
   and .doska-topnav-footer/.doska-header-group keep behaving as direct flex children of their real
   parent row (TopNav's topbar / ProjectHeader's top row), completely unchanged there. */
.doska-mobile-action-bar { display: contents; }
/* z-index:40 here (not just on .doska-search-results below) — `transform` on ANY element creates
   its own stacking context regardless of position/z-index, and this wrap's own centering transform
   (translate(-50%,-50%)) does exactly that. Without an explicit z-index on the wrap ITSELF, the
   dropdown's own z-index:40 stays trapped inside that new context and never gets compared against
   .doska-project-hero out in .doska-project-header's context at all — hero (position:relative,
   z-index:auto, later in DOM) then wins the tie against the WRAP's own implicit z-index:auto and
   paints over it, hiding the results list behind the hero's title/cover (confirmed live: "меню
   выдачи должно быть поверх всего. сейчас баг что под заголовком оказалось"). Matching the
   dropdown's own z-index here is what actually lets it win at the outer level. */
/* ПОЛЕ ВО ВСЮ ШИРИНУ — по прямому запросу «поиск там тоже сделай как везде» (Настройки/Интеграции/
   FAQ): было абсолютным центрированным боксом фиксированных 560px, тем же старым узким видом, что
   когда-то был и у GlobalPageHeader (см. .doska-global-page-header-search-wrap ниже — её саму уже
   расширили «по всей ширине» отдельным прямым запросом). Обычный растущий flex-элемент строки
   `.doska-topnav[data-layout='topbar']`: `.doska-topnav-footer` рядом держит `flex-shrink:0` и не
   растёт, так что это поле забирает всё оставшееся место само. */
.doska-header-search-wrap {
  position: relative; flex: 1 1 auto; min-width: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
}
/* GlobalPageHeader's own copy — see .doska-global-page-header-actions' own comment just above for
   why this doesn't reuse .doska-header-search-wrap directly. Desktop behavior is identical
   (absolute-centered against .doska-global-page-header-inner, same as the old class centered
   against .doska-project-header-top); the mobile override lives in this file's own
   @media(max-width:768px) block further down, right next to .doska-global-page-header-logo's own
   mobile rule. */
/* ПОЛЕ ВО ВСЮ ШИРИНУ (30.09.2026) — по прямому запросу «сделай поиск по всей ширине в меню 1го
   уровня». Раньше это была position:absolute коробка ФИКСИРОВАННОЙ ширины 560px, центрированная
   поверх строки (наследство тех пор, когда поле здесь ещё не показывалось никогда — см. историю в
   DoskaPage.tsx). Теперь это обычный растущий flex-элемент строки `.doska-global-page-header-inner`:
   `flex: 1 1 auto` забирает всё место, оставшееся между началом строки и кластером действий
   справа (у него `margin-left: auto`), а не фиксированные 560px по центру. */
.doska-global-page-header-search-wrap {
  position: relative; flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 8px;
}
/* Restored — per direct follow-up ("в состав верхнего поиска перенеси спросить ИИ"), same icon+
   label pill .doska-mobile-search-ask-btn's own comment describes this as having originally been
   (that button is this one's mobile-page equivalent, icon-only there for its own compact corner
   spot). flex-shrink:0 — the pill next to it is flex:1 and should be the one that narrows first
   on a tight width, not this. */
/* Height 40 -> 28 — per direct follow-up ("спросить ИИ вписать аналогично в поиск", reference: an
   "AI Chats" chip inset inside the same bordered search bar, not a full-height sibling box next
   to it) — sized to sit comfortably inset within the 40px-tall pill it's now nested in
   (.doska-header-search-pill below), vertically centered there via that pill's own
   align-items:center. */
/* Filled soft-background -> outlined — per direct follow-up ("спросить ии в поиске сделай в
   обводке"), same accent-bordered-pill treatment used elsewhere (e.g. .doska-stash-modal-title-
   input's own focus state) rather than a solid fill, so the chip reads as an inset control against
   the search pill's own bordered surface instead of a filled badge sitting on top of it.
   Doubled selector — same .doska-root button { background: none; border: none; color: inherit; }
   specificity trap as elsewhere in this file (a single class alone loses to that compound
   selector); confirmed live the first pass — background/border/color all silently fell back to
   the reset without this. */
.doska-header-ask-btn.doska-header-ask-btn {
  display: flex; align-items: center; gap: 5px; flex-shrink: 0;
  height: 28px; padding: 0 10px; border-radius: 6px;
  background: var(--doska-surface); border: 1px solid var(--doska-accent); color: var(--doska-accent);
  font-size: 13px; font-weight: 500; white-space: nowrap;
}
.doska-header-ask-btn:hover { opacity: 0.8; }
/* Per direct follow-up ("спросить ИИ вписать аналогично в поиск") — .doska-header-ask-btn is a
   nested child again now (DoskaPage.tsx), not the plain search-input box this comment used to
   describe; gap/padding-right adjusted to give it room as an inset chip instead of the flush-to-
   the-edge input-only layout this pill had between those two decisions. */
.doska-header-search-pill {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  flex: 1; min-width: 0;
  height: 36px; padding: 0 6px 0 12px; /* = высоте «Create» и аватара (2026-10-14, «правим выравнивание») */
  background: var(--doska-surface); border: 1px solid var(--doska-hairline-strong);
  border-radius: 6px;
  transition: border-color 140ms var(--doska-ease);
}
.doska-header-search-pill:focus-within { border-color: var(--doska-accent); }
/* Reparents SearchBar as a plain flex child filling this pill, instead of the standalone
   floating box its own base .doska-search rule (used nowhere else) describes. `position:
   relative` (not `static`) — .doska-search-results' own base rule (position:absolute; left:0;
   right:0) needs THIS as its positioned ancestor to stretch to the input row's own width;
   `static` here collapses it to a sliver instead (confirmed pre-existing, "улучшить UI выдачи по
   поиску, сейчас не удобно"). Must ALSO reset top/left/transform/z-index — the base rule sets all
   four (its own top:104px/left:50%/translateX(-50%) floating-bar positioning), and CSS overrides
   apply per PROPERTY, not per rule: overriding only `position` left those three still active, and
   with position now `relative` they read as an OFFSET from this box's own normal flow position
   instead of an absolute anchor — the search box rendered ~104px below and re-centered away from
   the pill entirely, leaving the pill looking like a second, dead "duplicate" input beside it
   (confirmed live: "сейчас есть дубль ввода, а основное поле ввода не работает"). */
.doska-header-search-pill .doska-search {
  position: relative; top: auto; left: auto; transform: none; z-index: auto;
  flex: 1; min-width: 0; width: auto; gap: 8px;
  background: none; border: none; padding: 0; border-radius: 0;
}
/* flex:1 + min-width:0 — a bare <input> (TopNav's own gallery search, not wrapped in SearchBar's
   .doska-search like ProjectHeader's is) carries a browser-default intrinsic minimum width
   (~170-200px in most engines) that flex-shrink alone does not override; without this override it
   silently refused to shrink below that floor, blowing straight through every ancestor's own
   min-width:0/flex:1 chain and clipping the Ask icon off the right edge of a 390px viewport
   (confirmed live). */
.doska-header-search-pill input { flex: 1; min-width: 0; font-size: 13px; }
/* Двойная рамка в шапке (2026-10-14, «кривая вёрстка»): общее правило .doska-root .doska-search.doska-search
   (0,3,0) перебивало сброс выше (0,2,0) и рисовало внутри «таблетки» вторую рамку со своим кольцом фокуса,
   сдвинутую на 15px. Рамку и фокус в шапке рисует только сама таблетка. */
.doska-root .doska-header-search-pill .doska-search.doska-search,
.doska-root .doska-header-search-pill .doska-search.doska-search[data-focused] { border: none; box-shadow: none; padding: 0; min-height: 0; background: none; }
/* Same class names, both TopNav's gallery topbar and ProjectHeader's project topbar — one shared
   mobile rule instead of duplicating it per bar. The pill's own available width is already fairly
   narrow at 390px (a fixed logo/icon-cluster on either side leaves little of the row spare);
   rather than build a separate collapse/expand-on-focus interaction just for this width, this
   follows the SAME "hide the label, keep the icon, let the row stay tight" convention the rest of
   this file's own mobile rules already use (see .doska-pill-btn--labeled's mobile rule) — the
   input itself just gets narrower and scrolls its own text natively, same as any text input does. */
@media (max-width: 768px) {
  /* Docked bottom bar — per direct request/reference ("на моб версии сделай эти функции панелью
     внизу поверх экрана"), pointing at exactly this cluster (search, "+", comments, avatar)
     squeezed into the top row. Search + create/comments/profile move out of that row entirely and
     become one fixed strip pinned to the bottom edge, overlaying page content, instead of fighting
     the logo for space in a 56px-tall top bar — see .doska-mobile-action-bar's own base-rule
     comment for the wrapper this relies on. An earlier, narrower version of this same fix just
     shrank the three-icon cluster (grown to three once "Создать заметку" joined comments+profile
     here) back to fit inside the top row without overlapping the search pill — correct as far as
     it went, but this is the shape actually asked for now, and supersedes it. Page-content scroll
     containers get matching bottom clearance so this bar never covers the last row of content —
     see .doska-gallery-body/.doska-project-tab-content's own mobile padding. */
  .doska-mobile-action-bar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--doska-surface); border-top: 1px solid var(--doska-hairline);
    box-shadow: none;
  }
  /* Results dropdown opens UPWARD in here — its base rule (top: calc(100% + 6px)) assumes a
     top-row trigger with room below it; the search input now sits at the very bottom edge of the
     screen instead, so opening downward would push a 340px-tall list almost entirely off-viewport. */
  .doska-mobile-action-bar .doska-search-results {
    top: auto; bottom: calc(100% + 6px);
  }
  /* Per direct follow-up ("справа напротив лого перемести настройки пользователя") — the avatar
     trigger moved back to a fixed top-right position (see .doska-profile-avatar's own mobile
     rule), so this panel opens DOWNWARD from there again instead of upward from the bottom bar.
     position:fixed (not just a top/bottom flip) because .doska-profile-dropdown's own base rule
     is position:absolute against its trigger's own small box — which, now that the trigger itself
     is position:fixed, isn't a useful containing block to anchor against either; fixed anchors
     straight to the viewport regardless of where in the DOM the trigger actually sits. top math:
     14px (trigger's own top) + 44px (trigger height) + 8px gap = 66px. */
  .doska-mobile-action-bar .doska-profile-dropdown[data-placement="down"] {
    position: fixed; top: 66px; right: 16px; left: 16px; bottom: auto;
    width: auto;
  }
  /* Restores a rule accidentally dropped during an earlier slice-edit (reverting Search/
     Notifications back into this bar) — per direct report ("меню создания зарезано. нужно
     показывать над плюсом"), without this the menu fell back to .doska-drawer-menu's own base
     position:absolute (relative to its small trigger wrap), opening downward and clipping off the
     bottom of the viewport instead of upward above the "+" trigger. left-only (no right) keeps the
     compact card width from an earlier follow-up ("сделать по подобию как тут") — see
     .doska-header-create-menu's own min-width rule. */
  .doska-mobile-action-bar .doska-header-create-menu {
    position: fixed; top: auto; right: auto; left: 16px; bottom: calc(84px + env(safe-area-inset-bottom, 0px));
    width: auto;
  }
  /* Per direct request with a reference screenshot (Google Drive's own bottom-right FAB) — this
     project's own "+" escapes the centered .doska-mobile-action-bar dock into a standalone
     floating position at the bottom-right corner instead. Scoped to .doska-project-header
     specifically — this same dock markup is ALSO shared with TopNav.tsx's own gallery-page
     instance, and the request ("внутри проекта... справа внизу") was for the in-project one only.
     Stays a real DOM descendant of .doska-mobile-action-bar (still inherits that context's own
     44x44 round-button sizing, see .doska-mobile-action-bar .doska-header-create-btn above) —
     position:fixed here just lifts it out of that dock's own flex flow/centering, no JSX change
     needed. Context-aware create behavior (SET_PENDING_STASH_CREATE / CREATE_FOLDER_BOARD already
     target whichever board/folder is currently open) is unchanged — only WHERE the trigger sits
     moved. */
  /* Per direct follow-up ("также на главной сделать плюс как и внутри проекта справа отдельно") —
     same bottom-right FAB treatment, now also on the gallery page's own "Создать" (TopNav.tsx),
     scoped to .doska-topnav[data-layout="topbar"] specifically so the sidebar-layout instance
     (project board view, a totally different "+" already handled elsewhere) is untouched. */
  .doska-topnav[data-layout="topbar"] .doska-header-create-wrap {
    position: fixed; right: 24px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 51;
  }
  /* Плавающий «+» в правом нижнем углу УБРАН внутри проекта и внутри папки — per direct request
     («в проекте на мобилке плюс внизу справа не нужен, у нас уже есть сверху» + «тоже самое для
     папок на мобилке»). Дубль появился, когда в шапке проекта завёлся собственный кружок с «+»
     (.doska-project-hero-mobile-create) и такой же внутри папки (StashTab.tsx's extraActions) —
     оба создают ровно в текущей доске/папке, то есть FAB перестал давать что-либо новое.
     Одно правило закрывает оба случая: и корень проекта, и папка рендерят один и тот же
     .doska-project-header. Правило FAB'а для главной (.doska-topnav[data-layout="topbar"]) не
     тронуто — там своей кнопки «+» в шапке нет. */
  .doska-project-header .doska-header-create-wrap { display: none; }
  .doska-project-header .doska-header-create-menu,
  .doska-topnav[data-layout="topbar"] .doska-header-create-menu {
    left: auto; right: 16px; bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
  .doska-tour-skip {
    bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  }
  .doska-header-search-wrap { display: none; }
  .doska-project-header-top { flex-wrap: wrap; }
  /* Same reversal, same direct follow-up — back-arrow and "···" (ProjectMenu's own trigger, only
     ever mounted here on mobile, see ProjectHeader.tsx's own isMobile-gated render) drop their own
     filled circle too, so all three read as one consistent flat icon row, main-page style. */
  .doska-project-menu-wrap .doska-pill-btn.doska-pill-btn {
    width: 36px; height: 36px; background: none; border: none;
  }
  .doska-project-menu-wrap .doska-pill-btn svg {
    width: 22px; height: 22px;
  }
  .doska-header-group { display: contents; }
  /* Домой / Поиск / "+" / bell / avatar all live in here now — per direct follow-up ("поиск и
     нотификации перенеси на мобилке в меню вниз"), Search and Notifications moved back in from
     their brief stint as a separate fixed top-right cluster. Floating rounded pill, shrink-to-fit
     its own content and centered — per an earlier direct follow-up ("нужно меньше ширину плашки.
     используй как на референсе такую"), a plain left:16px/right:16px/space-evenly version once
     stretched this to nearly the full screen width with icons spread far apart; sizing from
     content instead keeps it comfortably compact regardless of how many icons end up in here.
     width:fit-content + margin: 0 auto centers a shrink-to-fit fixed element WITHOUT transform —
     confirmed live (Playwright) that transform:translateX(-50%) (an earlier attempt) broke fixed-
     position descendants elsewhere on the page: a `transform` on ANY ancestor establishes a new
     containing block for `position:fixed` children, silently resolving their offsets against THAT
     ancestor instead of the viewport. Moot now that nothing in here is position:fixed anymore, but
     the transform-free technique stays regardless — it's the correct way to center a shrink-to-fit
     fixed element either way. */
  /* Per direct report ("на главной внизу остался белый артефакт с тенью") — every real button
     that used to live in this floating pill has since moved out (search/comments/AI/profile up
     into .doska-topnav-mobile-bar or ProjectHeader's own .doska-project-header-icon-cluster,
     Создать into its own bottom-right FAB, Домой removed outright), leaving this shell's own
     background/border/shadow/padding rendering as an empty rounded box with nothing visibly
     inside it. Chrome stripped entirely — position:fixed stays (harmless on an invisible 0×0 box)
     purely so nothing downstream that still assumes this wrapper exists in the layout breaks. */
  .doska-mobile-action-bar {
    position: fixed; left: 0; right: 0; top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: -moz-fit-content;
    width: fit-content; margin: 0 auto;
    display: flex; align-items: center; justify-content: center; gap: 14px;
    height: auto; padding: 0;
    z-index: 50;
  }
  /* AI assistant — per direct follow-up ("перенести спросить рядом с нотификацией и просто
     сделай кружок с иконкой") — no more bespoke violet-accent treatment; .doska-pill-btn (plus
     .doska-header-group/.doska-topnav-footer's own pill-btn sizing overrides) already sizes and
     colors this identically to the notification bell right next to it on every width, so this
     class carries no rules of its own anymore — kept only as a semantic hook/title target. */
  /* Per direct follow-up ("поиск и нотификации перенеси на мобилке в меню вниз") — back to a
     plain in-flow child of the bottom bar, matching Домой's own bare-icon treatment (no persistent
     background/border, hover-only) instead of the filled-circle-with-border look it briefly had
     to visually pair with the bell up at the top — that pairing no longer applies now that both
     live down here instead, next to Домой/"+"/avatar. .doska-mobile-top-icons (the old fixed-position
     top-right wrapper) is gone entirely — its JSX no longer exists in either header component. */
  .doska-mobile-search-btn {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 999px;
    color: var(--doska-text-muted);
  }
  .doska-mobile-nav-toggle.doska-mobile-nav-toggle {
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 44px; height: 44px; border-radius: 6px;
    color: var(--doska-text-muted);
  }
  .doska-mobile-nav-toggle:hover { color: var(--doska-text); background: var(--doska-secondary); }
  /* Per direct report with a screenshot ("иконка поиска и колокольчик должна быть как домой по
     размеру") — the BUTTONS were already equal (44px), but Search's own <Search size={16}/> icon
     rendered visibly smaller than Домой's <Home size={24}/> inside that same-size box; matching
     the icon glyph size too, not just the button. */
  .doska-mobile-search-btn svg { width: 24px; height: 24px; }
  .doska-mobile-search-btn:hover { color: var(--doska-text); background: var(--doska-secondary); }
  /* Пряталось на мобилке (когда вход в ассистента жил иконкой в шапке/нижней панели) — ПОКАЗЫВАЕМ
     снова, per direct request «на мобилке ИИ-ассистент бабл нужно, чтобы был в правом нижнем углу
     всегда, поверх». Правило оставлено видимым нарочно, а не удалено: именно оно однажды сделало
     бабл невидимым при живом элементе в разметке (замер: width/height 0 при display: none), и
     следующий, кто будет искать «почему бабла нет на телефоне», найдёт здесь ответ. */
  .doska-stash-ai-fab.doska-stash-ai-fab { display: flex; }
  /* 190px -> 84px — no longer needs to clear the FAB's own stacked height now that it's hidden
     above, just the floating bottom bar itself (same single-stack clearance .doska-tour-skip
     already uses). */
  .doska-back-to-top { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
/* Level-1 header bar's own "Создать заметку" — per direct request ("кнопку создать заметку
   переместить в меню первого уровня"), replacing the separate copies that used to live in
   ProjectHeader's hero row and StashTab's own toolbar (both dispatched/listened for the same
   state.pendingStashCreate flag already — see ProjectHeader.tsx/TopNav.tsx's shared onClick).
   Solid accent fill, not the violet "AI" treatment next to it — this is a plain content-creation
   action, not an AI one, so it keeps the monochrome brand accent every other primary button in
   this app already uses (same look .doska-project-hero-create/.doska-stash-create-btn had before
   they were removed). */
/* Hidden by default — per direct follow-up ("убрать тут в верхнем меню кнопку создать" /
   "скрыть тут кнопку создать") on both TopNav.tsx's and ProjectHeader.tsx's own top-row instance,
   superseded there by ProjectGallery's own "Список проектов" Создать and the project hero row's
   own Создать respectively. Shown again specifically inside the mobile floating
   .doska-mobile-action-bar dock further down — per direct report ("в нижнем меню не вижу плюс") —
   a THIRD, genuinely new location (a compact "+" icon next to the avatar), not a revival of
   either superseded desktop one. */
.doska-header-create-btn {
  display: none; align-items: center; gap: 6px; flex-shrink: 0;
  height: 32px; padding: 0 14px 0 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
}
/* Doubled selector — same .doska-root button { background: none; color: inherit } specificity
   trap fixed elsewhere in this file. Back to var(--doska-accent), matching every other Создать
   button in the app (see .doska-project-hero-create-inline's own comment for the full reasoning —
   "заливку кнопки создать сделать черной"). */
.doska-header-create-btn.doska-header-create-btn { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-header-create-btn:hover { filter: brightness(1.08); }
@media (max-width: 768px) {
  .doska-header-create-btn { padding: 0 10px; }
  .doska-header-create-btn span { display: none; }
  /* The one place this button DOES show on mobile — a round "+", not the wider label+icon pill
     shape the (hidden) desktop rule still defines. Bumped 32px -> 44px per direct follow-up
     ("кнопка + крупнее") — the primary action in this bar, sized to stand out next to the
     30px avatar rather than blend in at a matching size. */
  .doska-mobile-action-bar .doska-header-create-btn {
    display: flex; width: 44px; height: 44px; padding: 0; justify-content: center;
  }
  .doska-mobile-action-bar .doska-header-create-btn svg { width: 20px; height: 20px; }
}
/* "Создать" picker (Проект / Заметка) — per direct follow-up ("создать заметку переименовать в
   создать... при нажатии будет меню где выбираешь что создать"). Anchored left (not
   .doska-drawer-menu's own default right:0) since this trigger sits at the LEFT end of the
   footer's icon cluster (.doska-topnav-footer justify-content:flex-end) — right:0 would open the
   menu mostly off to the left of its own trigger instead of directly under it. */
.doska-header-create-wrap { position: relative; flex-shrink: 0; }
.doska-header-create-menu { left: 0; right: auto; min-width: 160px; }
/* Bigger icon-badge + title + subtitle rows for THIS dropdown specifically — per direct follow-up
   with a reference screenshot ("когда нажал плюс то меню крупнее как тут"). min-width bumped to
   actually fit a two-line row comfortably (160px, the base .doska-header-create-menu width, was
   sized for the old single-line icon+word rows). Own dedicated classes, not a modifier on
   .doska-drawer-menu-item, so every OTHER dropdown reusing that base class is unaffected. */
.doska-header-create-menu.doska-header-create-menu { min-width: 250px; padding: 6px; }
.doska-create-menu-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 8px; border-radius: var(--doska-radius-md);
  text-align: left;
}
.doska-create-menu-item:hover { background: var(--doska-secondary); }
.doska-create-menu-item-icon {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 40px; height: 40px; border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised); color: var(--doska-text);
}
.doska-create-menu-item-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.doska-create-menu-item-title { font-size: 14px; font-weight: 600; color: var(--doska-text); white-space: nowrap; }
.doska-create-menu-item-sub { font-size: 12px; color: var(--doska-text-muted); line-height: 1.3; white-space: nowrap; }
/* Standard visually-hidden pattern -- present for layout/AT/keyboard purposes (a real, focusable,
   labelled checkbox) but never painted; display:none would drop it from the tab order and screen
   readers entirely, which a plain opacity/clip trick does not. */
.doska-visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.doska-pill-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--doska-text-muted);
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file. This one
   had real reach: every plain .doska-pill-btn (project header's search trigger, back arrow, "···"
   menu trigger, etc.) was rendering as a bare icon with no fill and no border at all — confirmed
   live via computed style (background-color and border-style both read back as the reset's
   defaults, not this rule's own values). */
.doska-pill-btn.doska-pill-btn { background: var(--doska-surface); border: 1px solid var(--doska-hairline); }
.doska-pill-btn:hover { color: var(--doska-text); }
.doska-pill-btn[data-active] { color: var(--doska-accent); background: var(--doska-accent-soft); border-color: var(--doska-accent-soft); }

/* ---------- shoot panel ---------- */

/* Used exclusively inside the Overview modal now (ProjectHeader.tsx) — used to be its own
   absolutely-positioned floating overlay card back when ShootPanel was a dismissable panel; that
   whole usage is gone, this is normal-flow content inside Modal's own box now. */
.doska-shoot-panel { width: 100%; }
.doska-shoot-panel-title { font-size: 16px; }
.doska-shoot-locations { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.doska-shoot-location {
  width: 84px;
  cursor: pointer;
}
.doska-shoot-location > div:first-child { width: 100%; aspect-ratio: 4/3; border-radius: var(--doska-radius-sm); overflow: hidden; }
.doska-shoot-location span {
  display: block; margin-top: 4px; font-size: 11px; color: var(--doska-text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.doska-shoot-add-location {
  display: flex; align-items: center; gap: 8px;
  background: var(--doska-surface-raised); border-radius: var(--doska-radius-md);
  padding: 8px 10px; margin-bottom: 14px; color: var(--doska-text-muted);
}
.doska-shoot-add-location input {
  flex: 1; background: none; border: none; outline: none; color: var(--doska-text); font-size: 13px;
}
.doska-shoot-add-location input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-shoot-add-location input::placeholder { color: var(--doska-text-muted); }
/* accent-ink — 11.5px text on this form row's surface-raised background measures ~3.4:1. */
.doska-shoot-add-location button { font-size: 12px; color: var(--doska-accent-ink); padding: 4px 8px; flex-shrink: 0; }
.doska-shoot-add-location button:disabled { color: var(--doska-text-muted); opacity: 0.5; }

.doska-shoot-suggestion {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--doska-accent-soft); border-radius: var(--doska-radius-md);
  padding: 10px; margin-bottom: 14px;
}
.doska-shoot-suggestion-text { font-size: 12px; line-height: 1.5; flex: 1; }
.doska-shoot-suggestion-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.doska-shoot-suggestion-actions button:last-child { font-size: 11px; color: var(--doska-text-muted); }
.doska-shoot-suggestion-actions button:last-child:hover { color: var(--doska-text); }

.doska-shoot-inbox { margin: 4px 0 14px; }
.doska-shoot-inbox-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--doska-text-muted); padding: 5px 0;
}
.doska-shoot-inbox-row svg { flex-shrink: 0; color: var(--doska-glow-location); }
.doska-shoot-panel-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

.doska-shoot-title-edit {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 16px; color: var(--doska-text); text-align: left;
}
.doska-shoot-title-edit svg { color: var(--doska-text-muted); opacity: 0; transition: opacity 120ms var(--doska-ease); flex-shrink: 0; }
.doska-shoot-title-edit:hover svg { opacity: 1; }
.doska-shoot-title-input {
  width: 100%; font-size: 16px; background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius-sm);
  padding: 3px 7px; color: var(--doska-text); outline: none;
}
/* Per direct follow-up ("подложку белую убрать") — ProjectHeader's own title, edited inline in
   the header row itself (not a form field in a modal/panel), reads better as plain text with just
   a text cursor than a visibly boxed input; other .doska-shoot-title-input contexts (ShootPanel's
   Overview tab etc.) keep the boxed look above. */
.doska-project-title-inline .doska-shoot-title-input { background: none; border: none; padding: 3px 2px; }

.doska-shoot-summary-edit {
  display: flex; align-items: flex-start; gap: 6px;
  width: 100%; text-align: left; font-size: 12px; line-height: 1.5;
  color: var(--doska-text-muted); margin-bottom: 14px; padding: 2px 0;
}
.doska-shoot-summary-edit span { flex: 1; }
.doska-shoot-summary-edit svg { flex-shrink: 0; opacity: 0; margin-top: 3px; transition: opacity 120ms var(--doska-ease); }
.doska-shoot-summary-edit:hover svg { opacity: 1; }
.doska-shoot-summary-edit:hover span { color: var(--doska-text); }
.doska-shoot-summary-input { min-height: 56px; margin-bottom: 14px; }

.doska-shoot-delete-btn { color: var(--doska-text-muted) !important; }
.doska-shoot-delete-btn:hover { color: #e5877c !important; background: rgba(229, 135, 124, 0.12); }
.doska-shoot-delete-confirm {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--doska-text-muted);
}
.doska-shoot-delete-confirm-yes {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: #fff; background: var(--doska-destructive);
  padding: 6px 10px; border-radius: 999px;
}
.doska-shoot-delete-confirm-yes:hover { filter: brightness(1.1); }
.doska-shoot-delete-confirm button:last-child { padding: 6px 10px; }
.doska-shoot-delete-confirm button:last-child:hover { color: var(--doska-text); }

.doska-edge-delete-bg {
  fill: var(--doska-destructive);
  filter: none;
  transition: fill 120ms var(--doska-ease);
}
.doska-edge-delete-bg:hover { fill: #cf5a4d; }

.doska-edge-menu {
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md);
  box-shadow: none;
  padding: 4px;
  width: 104px;
}
.doska-edge-menu button {
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  border-radius: var(--doska-radius-sm);
  font-size: 13px;
  color: #e6867a;
}
.doska-edge-menu button:hover { background: rgba(181, 71, 58, 0.16); }

.doska-edge-endpoint-handle {
  fill: var(--doska-surface);
  stroke: var(--doska-accent);
  stroke-width: 2;
  filter: none;
  transition: fill 120ms var(--doska-ease), r 120ms var(--doska-ease);
}
.doska-edge-endpoint-handle:hover { fill: var(--doska-accent); r: 9; }

.doska-edge-bend-handle {
  fill: var(--doska-accent);
  stroke: #fff;
  stroke-width: 1.5;
  filter: none;
  transition: r 120ms var(--doska-ease);
}
.doska-edge-bend-handle:hover { r: 8; }

/* ---------- side drawer ---------- */

.doska-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 92vw;
  z-index: 30;
  background: var(--doska-surface);
  border-left: 1px solid var(--doska-hairline);
  overflow-y: auto;
  padding: 60px 16px 32px;
}
.doska-drawer-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 12px; }
.doska-drawer-nav button {
  width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
  color: var(--doska-text-muted); border-radius: var(--doska-radius-sm);
}
.doska-drawer-nav button:hover:not(:disabled) { color: var(--doska-text); background: var(--doska-secondary); }
.doska-drawer-nav button:disabled { opacity: 0.3; cursor: default; }
.doska-drawer-nav-spacer { flex: 1; }

.doska-drawer-menu-wrap { position: relative; }

/* Same visual pattern as .doska-drawer-menu-wrap/.doska-drawer-menu, kept as separate classes so
   ProjectHeader's project-delete menu and SideDrawer's card menu never collide under one selector. */
.doska-project-menu-wrap { position: relative; }
/* position:fixed is the real, unconditional layout mode now (this rule is only the fallback
   before JS measures anything — every real open instance sets its own top/right inline once
   useMenuPosition measures the trigger, see ProjectHeader.tsx's ProjectMenu/Share popover and
   ProjectGallery.tsx's CardMenu). Plain CSS anchoring (position:absolute; right:0 relative to the
   trigger's own wrap) used to be the ONLY positioning here, and needed a whole family of
   context-specific left/right overrides below to avoid running off one edge or the other
   depending on where each trigger happened to sit in the header -- still overflowed off-screen in
   at least one context that never got its own override (confirmed live via screenshot, "меню
   уходит за пределы экрана. не допускать такого нигде"). Measuring the real trigger position and
   computing a viewport-clamped coordinate in JS replaces that whole family of overrides at once,
   correct in every context by construction rather than per-case. */
.doska-project-menu {
  position: fixed; z-index: 20;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
  padding: 4px; min-width: 148px;
  /* No explicit width -- this box shrink-to-fits its content, and the delete-confirm state's
     "Точно удалить? / Да / Отмена" row is wide enough on its own to need this cap regardless of
     where the box is anchored -- confirmed live ("Зарезал вид"), "Отмена" ran off the visible
     screen with no way to reach it before this existed. */
  max-width: calc(100vw - 24px);
}

/* The cover-picker sub-state (Unsplash search + image grid, far wider than the plain rename/
   delete list) anchored like any other .doska-project-menu popover overflowed off-screen from the
   hero's own left-edge "···" trigger — confirmed live ("Меню по центру для смены обложки"). No
   anchor position could ever fit this reliably next to a button that isn't itself centered, so
   this one sub-state breaks out of the normal anchored-popover pattern entirely and centers over
   the viewport instead, like a proper modal. :has() is supported by every current mobile browser. */
.doska-project-menu:has(.doska-gallery-cover-picker--inline) {
  position: fixed; top: 50%; left: 50%; right: auto; bottom: auto;
  transform: translate(-50%, -50%);
  max-width: min(calc(100vw - 32px), 360px); max-height: 80vh; overflow-y: auto;
}
.doska-drawer-nav button[data-active] { color: var(--doska-text); background: var(--doska-surface-raised); }
.doska-drawer-menu {
  position: absolute; top: 30px; right: 0; z-index: 20;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
  padding: 4px; min-width: 148px;
}
/* Portal-rendered (document.body), so `position: fixed` + JS-computed top/left (CardShell's own
   openMenu, in StashCards.tsx) is the only way this ever gets positioned — it has no normal-flow
   relationship to its trigger once portaled out of the clipped card. Placed AFTER .doska-drawer-
   menu's own rule right above (same specificity — a single class each) so this actually wins;
   confirmed live it silently lost when this sat earlier in the file (computed position stayed
   "absolute", z-index stayed 20 — the classic source-order-beats-declaration-order trap this
   file's own other comments describe repeatedly). z-index above .doska-modal-backdrop's 60 since
   this can, in principle, be triggered while a card sits inside an already-open modal context. */
/* right: auto cancels .doska-drawer-menu's own `right: 0` — inline style only overrides the
   specific properties it sets (top/left), so without this, `left` (inline) + `right: 0` (from the
   base rule, still active) both apply at once and stretch the menu to fill that whole span —
   confirmed live at ~1400px wide instead of its intended ~210px. */
.doska-stash-card-menu { position: fixed; right: auto; z-index: 65; }
.doska-drawer-menu-item {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 7px 9px;
  border-radius: var(--doska-radius-sm); font-size: 13px; color: var(--doska-text); text-align: left;
  white-space: nowrap;
}
.doska-drawer-menu-item svg { flex-shrink: 0; }
.doska-drawer-menu-item:hover { background: var(--doska-secondary); }
/* Doubled selector beats `.doska-root button { color: inherit }`'s specificity (0,1,1 vs a
   single-class 0,1,0) — without this the red never actually rendered, every destructive item
   looked identical to a safe one (confirmed via computed-style check, not just visually). */
.doska-drawer-menu-item.doska-drawer-menu-item--danger { color: var(--doska-danger); }
/* Подтверждение в меню (удаление папки/карточки, переименование). Дизайн переделан по прямому
   запросу со снимком «поменять дизайн»: вместо двух растянутых кнопок под одной строкой — вопрос
   с названием, пояснение приглушённым, кнопки справа, опасная последней и с глаголом. Общие
   классы, поэтому такой же вид получают все подтверждения этого меню. */
.doska-drawer-menu-confirm {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 240px; max-width: 300px; padding: 10px 12px 10px;
  font-size: 13px; line-height: 1.4; color: var(--doska-text); white-space: normal;
}
.doska-drawer-menu-confirm-title { font-weight: 600; text-wrap: balance; }
.doska-drawer-menu-confirm-hint { font-size: 12px; color: var(--doska-text-muted); }
.doska-drawer-menu-confirm-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.doska-drawer-menu-confirm-actions button {
  display: inline-flex; align-items: center; gap: 6px; flex: none; min-width: 0;
  height: 30px; padding: 0 12px; border: 1px solid var(--doska-hairline); border-radius: 6px;
  background: transparent; color: var(--doska-text); font-size: 13px; font-weight: 500; cursor: pointer;
}
.doska-drawer-menu-confirm-actions button:hover { background: var(--doska-hover); }
.doska-drawer-menu-confirm-yes { background: var(--doska-danger) !important; border-color: var(--doska-danger) !important; color: #fff !important; }
.doska-drawer-menu-confirm-yes:hover { background: var(--doska-destructive) !important; }

.doska-drawer-menu-boardpick { min-width: 220px; max-height: 320px; overflow-y: auto; }
/* CardShell's own wrapper — the scrollable board list (max-height above) plus a "Назад" button
   that stays put underneath it rather than scrolling away with the list. StashItemDrawer.tsx's
   own copy has no "Назад" (its trigger is a toggle, not a two-screen menu), so it renders
   MoveTargetMenu directly with no extra wrapper. */
.doska-drawer-menu-boardpick-wrap { display: flex; flex-direction: column; }
/* Per direct report ("перемещение должно срабатывать при нажатии на всю строку") — the single-
   action move pickers (StashCards.tsx's CardShell, StashItemDrawer.tsx's StashModalActions) now
   render this as a <button> spanning the whole row instead of a plain <div> with only its small
   trailing icon clickable; SideDrawer.tsx's own two-action (Copy/Move) picker still renders a
   plain <div> here since a whole-row click would be ambiguous between its two actions, so this
   rule has to keep working for both element types. width:100%/text-align:left counter a bare
   <button>'s own browser defaults (shrink-to-fit width, centered text) — a <div> never had either
   default to begin with, so this is a no-op for SideDrawer's own rows. */
.doska-drawer-menu-boardpick-row {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; text-align: left;
  padding: 6px 9px; border-radius: var(--doska-radius-sm); font-size: 13px;
}
/* Doubled selector — same .doska-root button { color: inherit } specificity trap as elsewhere in
   this file, only actually hit now that this class can render on a <button> (SideDrawer.tsx's own
   plain-<div> rows were never affected by it). */
.doska-drawer-menu-boardpick-row.doska-drawer-menu-boardpick-row { color: var(--doska-text); }
.doska-drawer-menu-boardpick-row:hover { background: var(--doska-secondary); }
.doska-drawer-menu-boardpick-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* The project you're already inside — per direct request ("сначала показывался проект"), listed
   first (see useMoveTargets.ts's own sort) and lightly marked so it reads as "you are here", not
   just another row in the list. */
.doska-drawer-menu-boardpick-row[data-current] { color: var(--doska-accent); font-weight: 600; }
.doska-drawer-menu-boardpick-actions { display: flex; gap: 2px; flex-shrink: 0; }
/* Plain, non-interactive <span> now for the single-action pickers (the row itself is the click
   target — see the row's own comment above) — button stays for SideDrawer.tsx's own Copy/Move
   pair, which are still two distinct clickable actions. */
.doska-drawer-menu-boardpick-actions button, .doska-drawer-menu-boardpick-actions span { padding: 4px; border-radius: var(--doska-radius-sm); color: var(--doska-text-muted); }
.doska-drawer-menu-boardpick-actions button:hover { background: var(--doska-secondary); color: var(--doska-text); }
/* The little chevron that reveals a project's own folders — per direct report with a screenshot
   ("сначала показывался проект, и при наведении на него показывались папки"). A real click target
   of its own (not just decoration) so tapping it works with no hover at all, same "hover on
   desktop, tap works everywhere" split the rest of this app already follows. Rotates open via the
   same data-open convention .doska-faq-chevron already established elsewhere in this file. */
.doska-drawer-menu-boardpick-expand { transition: transform 0.15s var(--doska-ease); }
.doska-drawer-menu-boardpick-expand[data-open] { transform: rotate(90deg); }
/* A project's own folders, indented directly beneath its row (an accordion, not a floating
   flyout) — robust in a bounded dropdown with no off-screen-flyout positioning math needed, and
   works identically on touch. */
.doska-drawer-menu-boardpick-nested { display: flex; flex-direction: column; padding-left: 10px; border-left: 1px solid var(--doska-hairline); margin: 1px 0 2px 13px; }
.doska-drawer-menu-boardpick-row--nested { font-size: 12px; }

.doska-drawer-tabbed { margin-bottom: 10px; }

.doska-drawer-location-title { font-family: var(--doska-font-display); font-size: 20px; font-weight: 600; color: var(--doska-text); margin: 0 0 12px; line-height: 1.25; }
.doska-drawer-hero { margin-bottom: 16px; }
.doska-drawer-hero img { width: 100%; border-radius: var(--doska-radius-md); display: block; }

/* A tall reference photo used to fill the whole drawer at native aspect ratio — cropped down to
   a quick-glance thumbnail instead, with an explicit "open full size" escape hatch (below) for
   whenever the user actually wants to work with it at a comfortable size. */
.doska-drawer-hero-compact { position: relative; max-height: 260px; overflow: hidden; border-radius: var(--doska-radius-md); }
.doska-drawer-hero-pending {
  height: 220px; background: var(--doska-surface); position: relative; overflow: hidden;
}
.doska-drawer-hero-pending::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%);
  background-size: 220% 100%; animation: doska-scan-sweep 1.7s linear infinite;
}
/* An expanded comment thread can be taller than this cropped 260px thumbnail — let it spill
   outside instead of getting clipped by the crop that exists for the plain image. */
.doska-drawer-hero-compact:has(.doska-comment-thread) { overflow: visible; }
.doska-drawer-hero-expand {
  position: absolute; right: 8px; bottom: 8px; z-index: 2;
  width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55); color: #fff; border-radius: var(--doska-radius-sm);
  backdrop-filter: blur(3px);
}
.doska-drawer-hero-expand:hover { background: var(--doska-accent); }

.doska-lightbox-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(6, 6, 9, 0.88);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
}
.doska-lightbox-content { max-width: min(90vw, 720px); max-height: 90vh; width: 100%; overflow-y: auto; border-radius: var(--doska-radius-md); }
.doska-lightbox-close {
  position: absolute; top: 18px; right: 18px; z-index: 1;
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, 0.1); border-radius: 999px;
}
.doska-lightbox-close:hover { background: rgba(255, 255, 255, 0.2); }

/* Full-size zoom/pan image viewer (StashItemDrawer.tsx's ImageLightbox) — reuses the backdrop/close
   chrome above, own content sizing since this needs to fill the viewport for zoom/pan room instead
   of the 720px-capped, scroll-based .doska-lightbox-content. z-index 80 (vs the stash modal's own
   70) so it always opens on top of that modal, not behind it. */
.doska-image-lightbox-backdrop { z-index: 80; padding: 24px; overflow: hidden; touch-action: none; }
.doska-image-lightbox-img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  -o-object-fit: contain;
     object-fit: contain; touch-action: none; -webkit-user-select: none; -moz-user-select: none; user-select: none;
  will-change: transform;
}

/* ---------- AI chat panel (global assistant + per-project assistant, same component) ---------- */

/* Starts below the fixed project header (106px — its two rows) rather than top:0, so the header's
   own buttons (including the OTHER ai-chat toggle, search, profile) stay reachable while a panel
   is open instead of being covered by it. */
.doska-ai-chat {
  /* Per direct report ("слишком узкое поле для ввода у ИИ чата, не видно что ввел") — 380px left
     the textarea cramped enough that a couple sentences of Russian wrapped to where the start of
     what you'd typed scrolled out of view. Widened the whole panel rather than just the textarea
     so the message bubbles above it stay proportional. */
  /* Clears ProjectHeader — a single 52px-tall row, flush against the top edge. */
  position: absolute; top: 55px; right: 0; bottom: 0; width: 440px; max-width: 92vw; z-index: 30;
  background: var(--doska-surface); border-left: 1px solid var(--doska-hairline);
  border-top: 1px solid var(--doska-hairline);
  display: flex; flex-direction: column;
}
/* Per direct request ("хочу видеть свои чаты слева всегда... могу легко переключаться между
   чатами") — scope === 'stash' renders a permanent left sidebar (AiChatPanel.tsx's own
   data-has-sidebar) instead of a History dropdown; the outer box becomes a row (sidebar + main
   column) instead of the single column every other scope still is. */
.doska-ai-chat[data-has-sidebar] { flex-direction: row; }
.doska-ai-chat-main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
/* Docked-flex-sibling mode, desktop only — per direct request with a reference screenshot
   (ClickUp's own Brain² panel narrowing the main content, not floating over it) ("нужно чтобы
   сжималась и перестраивалась. также ии диалог был в отдельной обводке"), THEN a direct follow-up
   ("вывести обводку с ИИ чата как бы за пределы... сейчас внутри другой обводки... то есть не в
   её составе") moved the panel's actual DOM location too: it's portaled (StashTab.tsx's own
   createPortal call) into .doska-ai-chat-dock, a real SIBLING of .doska-project-with-sidebar
   (DoskaPage.tsx) rather than a descendant rendered inside it — so its own border never sits
   nested inside that outer merged card's border/overflow:hidden clip. .doska-ai-chat-dock itself
   is display:contents (just below) so this box becomes a direct flex participant of
   .doska-top-shell-sidebar-row itself, exactly as if it were written right there in JSX. Every
   OTHER .doska-ai-chat context (the centered --modal, ProjectsHome's own --persistent docked panel
   on Главная, SideDrawer's per-node chat) keeps the base rule's original position:absolute overlay
   untouched, since none of those ever render inside this dock. Desktop-only (min-width:769px) — a
   narrow phone has no spare width to shrink content INTO, so mobile keeps the original full-
   overlay treatment (see this rule's own max-width:768px block further down) unchanged, and
   StashTab.tsx's own portal call only ever fires when a target is passed in the first place
   (never on the isMobile branch — see AuthorBoard's own aiChatPortalTarget comment). */
.doska-ai-chat-dock { display: contents; }
@media (min-width: 769px) {
  .doska-ai-chat-dock > .doska-ai-chat {
    /* relative, not static — the chat-list-as-selector block right below needs THIS panel to be
       a valid positioned ancestor for its own full-panel sidebar takeover (position:absolute;
       inset:0 on .doska-ai-chat-sidebar below only resolves against a positioned box). */
    position: relative;
    top: auto; right: auto; bottom: auto;
    flex-shrink: 0;
    width: 440px; max-width: 40vw;
    height: 100%;
    margin: 8px 8px 8px 0;
    border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
    overflow: hidden;
  }
  /* Chat list as a real anchored DROPDOWN, not a permanent ~220px column and not a full-panel
     takeover either — per direct follow-up ("нужен drop down, где будут содержаться эти беседы, а
     не стрелка назад"): floats under the header, over the (still-visible) conversation, closes on
     an outside click or picking an entry (AiChatPanel.tsx's own chatDropdownRef/
     chatDropdownToggleRef click-outside effect). This panel's own 440px total width has no room
     for both a permanent sidebar AND a real conversation column at once (the --modal variant's
     own comment: a sidebar "needs real room of its own" at 820px total — this docked panel doesn't
     have that much) — a dropdown sidesteps that by only ever occupying screen space while you're
     actually choosing. Reuses the SAME underlying toggle state mobile already had
     (mobileListOpen/.doska-ai-chat-list-toggle/[data-mobile-list-open]), just a different visual
     treatment for it here — mobile keeps its own full-screen takeover just below this block.
     Per direct report ("ии консультант когда открыл показывает старую версию чатов... на всех
     страницах я вижу одну и ту же версию с диалогами") — .doska-ai-chat--persistent (ProjectsHome's
     own Главная-page instance) shares this exact same treatment now too, not just the StashTab-
     docked one: it never got this redesign the first time round (see this file's own now-stale
     comment above on .doska-ai-chat-dock for why it was deliberately scoped out back then), which
     left it showing the OLD permanent-sidebar layout — same underlying mechanism, no new CSS
     needed beyond widening these selectors to also match it.
     .doska-drawer-chat-embed (StashItemDrawer.tsx's own "Чат" tab) widened in here too per direct
     follow-up ("в табе чат поправь аналогично чтобы было выбор чатов через селектор как в
     остальных местах") — same gap as the .doska-ai-chat--persistent case above: a brand new mount
     point for scope="stash-item" (which sets data-has-sidebar same as scope="stash" does — see
     that attribute's own comment) that never got this treatment either, so it defaulted to the
     base [data-has-sidebar] rule's permanent row-layout sidebar instead of the dropdown. */
  .doska-ai-chat-dock > .doska-ai-chat[data-has-sidebar],
  .doska-ai-chat--persistent[data-has-sidebar],
  .doska-drawer-chat-embed > .doska-ai-chat[data-has-sidebar] { flex-direction: column; }
  .doska-ai-chat-dock > .doska-ai-chat .doska-ai-chat-sidebar,
  .doska-ai-chat--persistent .doska-ai-chat-sidebar,
  .doska-drawer-chat-embed > .doska-ai-chat .doska-ai-chat-sidebar { display: none; }
  .doska-ai-chat-dock > .doska-ai-chat[data-mobile-list-open] .doska-ai-chat-sidebar,
  .doska-ai-chat--persistent[data-mobile-list-open] .doska-ai-chat-sidebar,
  .doska-drawer-chat-embed > .doska-ai-chat[data-mobile-list-open] .doska-ai-chat-sidebar {
    display: flex; position: absolute; z-index: 5;
    top: 60px; left: 8px; right: 8px;
    max-height: min(420px, calc(100% - 76px));
    width: auto; height: auto;
    border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius-lg);
    box-shadow: none;
    background: var(--doska-surface);
  }
}
@media (max-width: 768px) {
  /* The panel nearly fills the screen width here (max-width: 92vw), and the annotate toolbar
     (position: fixed, its own z-index: 40 — above this panel's 30) sits right on top of the
     input row otherwise, both hiding it and eating its clicks/taps (confirmed live: the textarea
     was there but a toolbar icon was the actual top hit-test target at that point). */
  .doska-ai-chat { bottom: 62px; }
}

/* Centered modal instead of a docked-right panel — per direct request ("сделай чтобы ИИ помощник
   через спросить открывался модалкой по центру"). Same backdrop convention as the reference-photo
   lightbox elsewhere in this file (.doska-lightbox-backdrop): fixed, dimmed, flex-centered. */
.doska-ai-chat-modal-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(6, 6, 9, 0.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
/* Resets every positioning property the base .doska-ai-chat rule sets (not just `position`) — CSS
   overrides apply per PROPERTY, not per rule, so leaving top/right/bottom set here would carry
   them over as the SAME bug already found and fixed once this session in the search pill (a
   `position` override alone left leftover offsets from the base rule active). */
.doska-ai-chat--modal {
  position: relative; top: auto; right: auto; bottom: auto; z-index: auto;
  width: 560px; max-width: 100%; height: min(680px, 86vh);
  border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius-lg);
  box-shadow: none;
  overflow: hidden;
}
/* Wider than the plain 560px — a permanent ~220px sidebar (see .doska-ai-chat-sidebar below)
   needs real room of its own without cramping the chat column next to it. */
.doska-ai-chat--modal[data-has-sidebar] { width: 820px; }
@media (max-width: 768px) {
  /* Per direct request ("на мобилке чат должен быть где-то внизу... полностью покрывать... как
     https://claude.ai/") — the desktop treatment (a centered card floating over a dimmed backdrop,
     with visible margins on every side) doesn't read as "a real page" on a phone the way it does
     on a wide screen with room to spare; claude.ai's own mobile chat is a true edge-to-edge
     full-screen view, not a card. Dropping the backdrop's own padding/centering and letting the
     modal itself claim the entire viewport (100dvh, not 100vh — accounts for the mobile browser's
     own address-bar chrome shrinking the visible area, so the input row can't end up hidden below
     the fold) removes the "still looks like a floating box" feeling entirely. No border/radius/
     shadow either, for the same reason — those exist so a CENTERED card reads as a card; a
     full-bleed page doesn't need them and they'd just look like a stray line at the very edge.
     */
  .doska-ai-chat-modal-backdrop { padding: 0; background: var(--doska-canvas); backdrop-filter: none; }
  .doska-ai-chat--modal {
    width: 100%; height: 100dvh; max-height: none;
    border: none; border-radius: 0; box-shadow: none;
  }
  /* Per direct report ("плохо отображается, практически не как список чатов на мобильной версии
     ... почти невозможно увидеть") — a 96px-tall horizontally-scrolling strip (this rule's own
     previous shape) worked for a couple of pinned rows, not for what's now a genuinely long,
     searchable, account-wide list of every conversation. Telegram/WhatsApp-style full-screen
     toggle instead: [data-mobile-list-open] makes the sidebar TAKE OVER the whole panel (absolute,
     inset:0, its own solid background so the conversation behind it doesn't show through) and
     hides the conversation column outright; picking an entry (or starting a new one) flips the
     flag back off (see AiChatPanel.tsx's own openUnifiedEntry/startNewThread). Above this
     breakpoint the flag has zero effect — desktop keeps its real always-visible side-by-side
     column, this whole block doesn't apply there at all. */
  /* Per live follow-up to the fix just above — this used to also set `position: relative`
     (reasoning: "needs to be a positioned ancestor for the sidebar's own inset:0 takeover"), but
     that's true of `position: absolute` too (already what the base .doska-ai-chat rule sets,
     top/right/bottom-anchored to the full viewport) — switching to `relative` here threw that
     sizing away for no reason, and since this box's own in-flow content is exactly what the
     sidebar-open state hides (.doska-ai-chat-main goes display:none, the sidebar itself becomes
     position:absolute and leaves the flow), the panel had nothing left to size itself from and
     collapsed to ~1px tall — confirmed live, the full-screen thread list was mounted and
     correctly styled but invisible, sitting in a sliver near the bottom of a collapsed parent.
     flex-direction: column is still needed (mobile's own vertical stacking), position isn't. */
  .doska-ai-chat[data-has-sidebar] { flex-direction: column; }
  /* Per direct report with a screenshot ("поправить на мобилке расположение чата. зарезает") —
     this used to be the bare `.doska-ai-chat-sidebar { display: none; }`, same (0,1,0)
     specificity as the base always-visible-column rule below (line ~5562) — since that base rule
     happens to appear LATER in this file, it won the cascade at every viewport width regardless
     of this media query, so the sidebar column (with its own fixed 220px width) never actually
     hid on mobile at all: confirmed live, it sat permanently docked next to the chat, squeezing
     everything else into a sliver and forcing the whole panel into horizontal overflow. Scoping
     through the parent (`.doska-ai-chat[data-has-sidebar] .doska-ai-chat-sidebar`, (0,2,0)) wins
     regardless of source order, so this can't silently break again the next time someone edits
     the base rule below it. */
  .doska-ai-chat[data-has-sidebar] .doska-ai-chat-sidebar { display: none; }
  .doska-ai-chat[data-mobile-list-open] .doska-ai-chat-sidebar {
    display: flex; position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
    background: var(--doska-canvas); border-right: none;
  }
  .doska-ai-chat[data-mobile-list-open] .doska-ai-chat-main { display: none; }
}
/* Inside the per-card SideDrawer, this panel's positioned ancestor is .doska-drawer itself
   (400px, or 92vw on narrow screens) — NOT the full viewport. The base rule's own fixed 440px
   is wider than that, and since .doska-drawer scrolls (overflow-y: auto forces overflow-x: auto
   too), the overflowing left ~40px sat outside the default scroll position and was permanently
   clipped — reported live as "поле ввода зарезано" (visible on the title text above the input
   too, same cause). Filling the drawer's own box exactly, instead of duplicating its width as a
   second hardcoded number, means the two can never drift out of sync like this again. */
.doska-drawer .doska-ai-chat { left: 0; width: auto; max-width: none; }
/* Docked-right, always-mounted mode — used to be how AiBoardPanel stayed permanently visible
   while a board was open ("панель ИИ помощника всегда видна справа как тут"). Per a later direct
   follow-up ("сделай это появление не в меню справа, а через кружок правый нижний угол. как
   боковое меню не нужно") that component was removed entirely in favor of AiAgentButton's
   floating-circle launcher everywhere, board included — this class is unused now (no caller ever
   passes AiChatPanel's `persistent` prop anymore) but left in place rather than stripped, same as
   the prop itself in AiChatPanel.tsx; harmless to leave, riskier to excise from a shared file. */
/* Per direct report ("на главной странице, панель с ИИ чатом должна быть единообразно как на
   остальных страницах... в отдельной обводке как везде сейчас") — this rule's own base
   .doska-ai-chat only ever had border-left/border-top (flush against the right/bottom edges of
   its container, no radius), the right treatment for a full-bleed overlay but not for "a separate
   card like everywhere else" — StashTab.tsx's own docked panel (.doska-ai-chat-dock > .doska-ai-
   chat) already got a real full border + radius + 8px inset margin when IT was pulled out of its
   merged card, but ProjectsHome's own --persistent instance was never touched to match (the
   comment just above this rule is stale — it claims `persistent` has no caller left at all, which
   is simply wrong; ProjectsHome.tsx still passes it). Kept as the existing position:absolute
   overlay (not a real flex-row sibling that shrinks the hero beside it, unlike StashTab's own
   dock) — that's a bigger layout change nobody asked for; this fixes the specific "обводка"
   (border) inconsistency that was actually reported. */
.doska-ai-chat--persistent {
  top: 8px; right: 8px; bottom: 8px; width: 380px; max-width: 380px;
  border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg); overflow: hidden;
  transition: width 0.15s var(--doska-ease);
}
/* scope='stash' always renders its own thread-list sidebar (data-has-sidebar) alongside the chat
   column — per direct request ("модалка мешает, нужен другой формат"), SearchBar.tsx/
   ProjectsHome.tsx now open this cross-project chat in persistent (docked) mode instead of the
   centered .doska-ai-chat--modal, but that modal's own [data-has-sidebar] override (820px) never
   had a persistent-mode equivalent — confirmed live: 380px left the sidebar + chat column so
   cramped the message input row was pushed off the bottom of the panel entirely. Narrower than
   the modal's own 820px (this only needs to fit next to the page, not replace it).
   640px -> back to the base rule's own 380px (no override needed) — per direct report ("ии
   консультант... старую версию чатов"), the sidebar is a dropdown now (see the desktop media
   block above), not a permanent column sitting side-by-side with the chat, so the extra width
   this rule used to reserve for that column has nothing left to make room for. */
.doska-ai-chat--persistent[data-collapsed] { width: 52px; }
@media (max-width: 768px) {
  /* A 380px always-docked column has no room on a phone screen — unlike ProjectsRail (which just
     hides on mobile, since board-switching isn't the phone's primary job), the AI agent still
     needs to stay reachable there. Collapsed becomes a circular FAB (same look as the old
     .doska-ai-agent-btn this replaced in board view); expanded becomes a near-fullscreen overlay
     instead of a docked column, closer to how the original floating popup behaved on mobile. */
  .doska-ai-chat--persistent {
    top: auto; bottom: 24px; right: 24px; left: auto;
    width: 52px; height: 52px; max-width: 52px; border-radius: 999px; overflow: hidden;
    border: none; box-shadow: none;
  }
  .doska-ai-chat--persistent:not([data-collapsed]) {
    top: 64px; bottom: 62px; right: 12px; left: 12px;
    width: auto; height: auto; max-width: none; border-radius: var(--doska-radius-lg);
    border: 1px solid var(--doska-hairline); box-shadow: none;
  }
}

/* Chat history uses shared shadcn components and utility tokens in AiChatPanel.tsx.
   This selector remains only as the responsive positioning hook for the history surface. */

.doska-ai-chat-msg { display: flex; gap: 8px; align-items: flex-start; }
.doska-ai-chat-msg[data-role='user'] { flex-direction: row-reverse; }
.doska-ai-chat-bubble {
  position: relative;
  font-size: 13px; line-height: 1.5; padding: 9px 12px; border-radius: var(--doska-radius-md);
  white-space: pre-wrap; background: var(--doska-surface-raised); color: var(--doska-text);
  -webkit-user-select: text;
     -moz-user-select: text;
          user-select: text; cursor: text;
}
.doska-ai-chat-bubble[data-role='user'] { background: var(--doska-accent); color: var(--doska-accent-contrast); }
/* Per direct report ("не вижу как я делаю захват текста... выглядит как будто не выделил
   кусок"): the global .doska-root ::selection uses --doska-accent-soft, a low-alpha tint of
   --doska-accent ITSELF — on this one bubble the background already IS --doska-accent, so the
   "highlight" was the same color as the fill underneath it and read as no selection at all.
   Override with a tint of the bubble's own contrast color instead, which is guaranteed to differ
   from the fill in both themes. */
.doska-ai-chat-bubble[data-role='user']::-moz-selection { background: color-mix(in srgb, var(--doska-accent-contrast) 35%, transparent); }
.doska-ai-chat-bubble[data-role='user']::selection { background: color-mix(in srgb, var(--doska-accent-contrast) 35%, transparent); }
/* markdown.tsx's block output — the AI bubble's white-space: pre-wrap above only matters for the
   raw-text user bubble now; every \n the model sends is already consumed into these p/li/br
   elements, so nothing here relies on it. Tailwind's Preflight (src/index.css) zeroes p/ul/ol
   margins and list-style first, so both need setting back explicitly, just not to the browser's
   default (too loose for a 12.5px chat bubble). */
.doska-markdown-p { margin: 0 0 6px; }
.doska-markdown-p:last-child { margin-bottom: 0; }
.doska-markdown-list { margin: 0 0 6px; padding-left: 18px; }
.doska-markdown-list:last-child { margin-bottom: 0; }
.doska-markdown-list li + li { margin-top: 2px; }
.doska-markdown-list { list-style: revert; }
.doska-markdown-heading { margin: 8px 0 4px; font-size: 13px; font-weight: 600; color: var(--doska-text); }
.doska-markdown-heading:first-child { margin-top: 0; }
.doska-markdown-code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; background: var(--doska-surface); border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-sm); padding: 1px 4px; }
.doska-markdown-pre { margin: 0 0 6px; padding: 8px 10px; border-radius: var(--doska-radius-sm); background: var(--doska-surface); border: 1px solid var(--doska-hairline); overflow-x: auto; }
.doska-markdown-pre code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; background: none; border: none; padding: 0; }
.doska-ai-chat-bubble a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
/* Per the reference's message style — no bubble box for the assistant's own turn, just plain
   text under its name label; the user's turn keeps a bubble (a plainer left/right-only
   distinction reads worse once the AI side has a name label of its own to lean on). */
.doska-ai-chat-bubble[data-role='ai'] { background: none; padding: 0 24px 0 0; }
.doska-ai-chat-followup {
  font-size: 11px; display: inline-flex; align-items: center; gap: 3px;
  padding: 4px 9px; border-radius: 999px; background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline); color: var(--doska-text-muted);
}
.doska-ai-chat-followup:hover { color: var(--doska-text); border-color: var(--doska-hairline-strong); }

/* Хранилка's cite_items/create_stash_items results (StashTab.tsx) — visually distinct (accent,
   not neutral) from the plain follow-up-question chips above, since these are jump-to-a-real-card
   links, not "ask this next" suggestions.
   Per direct request ("более явно и крупнее показывать выдачу с ссылками... хочу видеть превью в
   выдаче") — was a row of small inline pills (10.5px text, 220px hard truncation, a bare 28px
   circular thumb or nothing at all for a non-photo result). Rebuilt as a stacked list of full-
   width result rows instead — see .doska-ai-chat-results (JSX side) for why this is a NEW class,
   not a reuse of .doska-chip-row. */
.doska-ai-chat-results { display: flex; flex-direction: column; gap: 6px; }
.doska-ai-chat-citation {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border-radius: var(--doska-radius-md); background: var(--doska-accent-soft);
  color: var(--doska-text); text-align: left;
}
.doska-ai-chat-citation:hover { background: var(--doska-hairline-strong); }
/* Real thumbnail when the cited item has one — per direct report ("нужно видеть превью") this
   session, then again ("хочу видеть превью в выдаче"): bumped from an original 16px pass, then
   28px, now a proper rectangular preview tile (matching this file's own card-plate language)
   instead of a small circle — legible enough to actually tell results apart at a glance. */
.doska-ai-chat-citation-thumb { width: 40px; height: 40px; border-radius: var(--doska-radius-sm); -o-object-fit: cover; object-fit: cover; flex-shrink: 0; }
/* Per-type fallback (note/link/image/voice/place icon) — per the same report: a non-photo result
   (or a photo item with no mediaUrl yet) used to render with NOTHING where the thumbnail goes,
   reading as a lesser, less-trustworthy result next to an actual photo citation. Same tile size/
   shape as the real thumbnail so every row carries equal visual weight either way. */
.doska-ai-chat-citation-thumb--icon {
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-text-muted);
}
.doska-ai-chat-citation-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.doska-ai-chat-citation-label {
  font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doska-ai-chat-citation-sub {
  font-size: 12px; color: var(--doska-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doska-ai-chat-citation-arrow { flex-shrink: 0; opacity: 0.6; }

/* "Создано" row — per direct request ("когда создал замтеку, нужно писать что она создана и
   давать ссылку на нее"): the model's own text answer reads as intent ("Создам вам…"), generated
   before it knows the tool call succeeded, so this renders the actual confirmation + link chip
   from data the frontend already has (see createdIds' own comment). Filled instead of the plain
   citation chip's soft-tint style so a genuinely new item reads as a distinct, more prominent
   result, not just one more thing being referenced. */
.doska-ai-chat-created { margin-top: 2px; }
.doska-ai-chat-created-label {
  display: flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600;
  color: var(--doska-success); margin-bottom: 5px;
}
.doska-ai-chat-citation--created {
  background: var(--doska-accent); color: var(--doska-accent-contrast); font-weight: 600;
}
.doska-ai-chat-citation--created:hover { opacity: 0.88; }
.doska-ai-chat-citation--created .doska-ai-chat-citation-sub { color: var(--doska-accent-contrast); opacity: 0.7; }
/* The icon fallback tile's own surface-raised background reads muddy against this row's solid
   accent fill — a soft tint of the row's own contrast color instead, same "cut a legible tile out
   of a solid fill" approach used elsewhere in this file for badges on colored backgrounds. */
.doska-ai-chat-citation--created .doska-ai-chat-citation-thumb--icon {
  background: rgba(var(--doska-glass-rgb), 0.25); color: var(--doska-accent-contrast);
}
@keyframes doska-mic-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.6; } }
@keyframes doska-speak-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(0.92); } }

.doska-ai-chat-attachment-preview {
  display: flex; align-items: center; gap: 8px;
  margin: 0 14px 10px; padding: 6px 10px;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); font-size: 12px; color: var(--doska-text-muted);
}
.doska-ai-chat-attachment-preview img { width: 28px; height: 28px; -o-object-fit: cover; object-fit: cover; border-radius: var(--doska-radius-sm); flex-shrink: 0; display: block; }
.doska-ai-chat-attachment-remove { margin-left: auto; color: var(--doska-text-muted); flex-shrink: 0; }
.doska-ai-chat-attachment-remove:hover { color: var(--doska-text); }

.doska-spin { animation: doska-spin-kf 0.8s linear infinite; }
@keyframes doska-spin-kf { to { transform: rotate(360deg); } }
.doska-drawer-hero--map > div:first-child { width: 100%; aspect-ratio: 4/3; border-radius: var(--doska-radius-md); overflow: hidden; }
/* Swaps in for the generic MiniMap placeholder once a real Google photo has loaded for this
   place — same 4:3 box, real image instead of a decorative grid. */
.doska-drawer-hero-google-photo { width: 100%; aspect-ratio: 4/3; -o-object-fit: cover; object-fit: cover; border-radius: var(--doska-radius-md); display: block; }
.doska-drawer-hero--plate {
  padding: 20px 16px;
  border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised);
  box-shadow: inset 0 0 0 1.5px var(--card-glow);
  position: relative;
  overflow: hidden;
}
.doska-drawer-hero-plate-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--card-glow); }
.doska-drawer-hero--bookmark { display: flex; gap: 12px; align-items: flex-start; }
.doska-drawer-hero--bookmark .doska-drawer-hero-bookmark-thumb {
  position: relative; width: 72px; height: 72px; flex-shrink: 0;
  border-radius: var(--doska-radius-sm); overflow: hidden;
}
.doska-drawer-embed {
  width: 100%;
  border-radius: var(--doska-radius-md);
  overflow: hidden;
  background: var(--doska-surface-raised);
}
.doska-drawer-embed[data-kind='video'] { aspect-ratio: 16/9; }
.doska-drawer-embed[data-kind='audio'] { height: 166px; }
.doska-drawer-embed iframe { width: 100%; border: none; display: block; }
/* height:100% excluded for Instagram specifically — its own embed.js script sets the iframe's
   REAL content height via the HTML height attribute (measured from the actual post, often
   1000px+ for a reel with caption/UI chrome — confirmed live: height="1231"), not a fixed
   16:9-style box every other embed here uses. Any CSS height declaration on an iframe — even
   `height: auto` — overrides that attribute-based sizing and falls back to the browser's ~150px
   default instead of respecting it (confirmed live: computed height stayed ~152px with
   height:auto explicitly set). The fix is having NO CSS height rule reach this iframe at all,
   not a competing value, so the attribute Instagram's own script sets is what actually renders. */
.doska-drawer-embed:not(.doska-drawer-embed--instagram) iframe { height: 100%; }
/* A real uploaded video FILE (StashItemDrawer.tsx's own subtype==='video' + non-YouTube/Vimeo
   sourceUrl branch) — per direct request ("нужно уметь воспроизводить видео... должен быть
   плеер"). Same width/height-100% fill as the iframe rule above, mirrored for a plain <video>
   element instead. */
.doska-drawer-embed video { width: 100%; height: 100%; border: none; display: block; background: #000; }
/* Instagram's own oEmbed widget renders portrait (posts/reels), never 16:9 — the forced
   aspect-ratio + overflow:hidden above would crop most of it away. Let it size itself. */
.doska-drawer-embed.doska-drawer-embed--instagram { aspect-ratio: unset; overflow: visible; background: transparent; }
.doska-instagram-embed { width: 100%; display: flex; justify-content: center; }
.doska-instagram-embed iframe { max-width: 100%; }

.doska-drawer-hero-meta {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin-top: 8px; font-size: 11px; color: var(--doska-text-muted);
}
.doska-drawer-hero-meta a { color: var(--doska-text-muted); text-decoration: underline; text-underline-offset: 2px; }
.doska-drawer-hero-meta a:hover { color: var(--doska-text); }
/* "Открыть источник" — see StashModalHeader's own comment on why this lives here (right under the
   title) instead of squeezed into the icon-only action row. Doubled selector — same .doska-root
   button/anchor specificity trap the rest of this file already documents (a bare
   .doska-drawer-source-btn alone loses its fill/color to a more specific reset elsewhere). */
.doska-drawer-source-btn.doska-drawer-source-btn {
  display: inline-flex; align-items: center; gap: 6px; width: -moz-fit-content; width: fit-content;
  margin-top: 10px; padding: 8px 15px; border-radius: var(--doska-radius-md); /* то же правило: действие, а не фильтр */
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  font-size: 13px; font-weight: 600;
}
.doska-drawer-source-btn.doska-drawer-source-btn:hover { opacity: 0.88; }

.doska-drawer-section { margin-bottom: 20px; }
.doska-drawer-section-title {
  font-size: 11px; text-transform: none; letter-spacing: 0;
  color: var(--doska-text-muted); margin-bottom: 8px;
}
.doska-analysis-desc { font-size: 13px; line-height: 1.5; color: var(--doska-text); margin-bottom: 10px; }

/* Video's own speech-to-text (StashItemDrawer.tsx's "Расшифровка речи" section) — real transcript
   text reads like body copy, the "not ready yet"/"no speech" placeholder reads muted like an
   empty-state hint elsewhere in this drawer. */
.doska-stash-transcript-text { font-size: 13px; line-height: 1.55; color: var(--doska-text); white-space: pre-wrap; }
/* renderSourceText's own anchored heading/paragraph split (StashItemDrawer.tsx) — used inside
   .doska-stash-transcript-text and .doska-note-readonly alike, only when real headings were found
   (see extractSourceHeadings's own comment on why that's a conservative, ATX-only match). Scroll-
   margin so a jump lands with a little breathing room above the heading, not flush against the
   scroll container's own top edge. */
.doska-drawer-source-heading {
  scroll-margin-top: 16px; margin: 16px 0 6px; font-family: var(--doska-font-display);
  font-weight: 600; color: var(--doska-text);
}
.doska-drawer-source-heading:first-child { margin-top: 0; }
.doska-drawer-source-heading[data-level="1"] { font-size: 15px; }
.doska-drawer-source-heading[data-level="2"] { font-size: 14px; }
.doska-drawer-source-heading[data-level="3"] { font-size: 13px; color: var(--doska-text-muted); }
.doska-drawer-source-line { margin: 0 0 8px; }
.doska-drawer-source-line:last-child { margin-bottom: 0; }
.doska-stash-transcript-empty { font-size: 13px; color: var(--doska-text-muted); font-style: italic; }


/* Notion-style compact property rows — one row per field (icon + label on the left, value on
   the right) instead of a 2-column grid of boxy tiles, so a card's fields read like a page's
   property list rather than a dashboard of cards-within-a-card. */
.doska-bento { display: flex; flex-direction: column; background: var(--doska-surface-raised); border-radius: var(--doska-radius-md); margin-bottom: 10px; }
.doska-bento-tile { position: relative; display: flex; align-items: center; gap: 4px; padding: 7px 10px; border-bottom: 1px solid var(--doska-hairline); }
.doska-bento-tile:last-child { border-bottom: none; }
.doska-bento-tile--wide { flex-direction: column; align-items: stretch; gap: 5px; }
.doska-bento-label { display: flex; align-items: center; gap: 6px; width: 108px; flex-shrink: 0; font-size: 12px; color: var(--doska-text-muted); }
.doska-bento-tile--wide .doska-bento-label { width: auto; }
.doska-bento-value { flex: 1; min-width: 0; font-size: 13px; line-height: 1.4; }
/* accent-ink — 12.5px link text on this sidebar panel's surface-raised background is ~3.4:1. */
.doska-bento-value a { color: var(--doska-accent-ink); }
.doska-bento-value a:hover { text-decoration: underline; }

/* The one save affordance for a still-unconfirmed map-click/search-pick location (see
   LocationNode.pending) — a full-width, unmissable primary action, not just another bento tile. */
.doska-location-confirm-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  padding: 11px; margin-bottom: 16px; font-size: 13px; font-weight: 600;
  background: var(--doska-accent); color: var(--doska-accent-contrast); border-radius: 6px;
}
.doska-location-confirm-btn:hover { opacity: 0.92; }
.doska-location-remove-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%;
  padding: 11px; margin-bottom: 16px; font-size: 13px; font-weight: 600;
  background: transparent; color: var(--doska-danger); border: 1px solid var(--doska-hairline-strong); border-radius: 6px;
}
.doska-location-remove-btn:hover { background: color-mix(in srgb, var(--doska-destructive) 10%, transparent); border-color: var(--doska-danger); }

.doska-date-input {
  background: transparent; border: none; color: var(--doska-text); font-size: 13px;
  font-family: inherit; padding: 0; cursor: pointer; width: 100%; color-scheme: dark;
}
.doska-date-input::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
.doska-overview-field { display: flex; flex-direction: column; gap: 6px; }
.doska-overview-label {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 500; color: var(--doska-text-muted);
  text-transform: none; letter-spacing: 0;
}
.doska-overview-date-input {
  align-self: flex-start; color-scheme: dark; cursor: pointer;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-sm); padding: 7px 10px; font-size: 13px;
  color: var(--doska-text); font-family: inherit; outline: none;
}
.doska-overview-date-input:hover { border-color: var(--doska-hairline-strong); }
.doska-overview-date-input::-webkit-calendar-picker-indicator { filter: invert(0.7); cursor: pointer; }
.doska-overview-field .doska-shoot-summary-edit {
  margin-bottom: 0; padding: 9px 10px; background: var(--doska-surface-raised);
  border-radius: var(--doska-radius-sm); font-size: 13px;
}
.doska-overview-field .doska-shoot-summary-edit svg { opacity: 0.4; }
.doska-overview-field .doska-shoot-summary-input { margin-bottom: 0; }

.doska-team-field { position: relative; }
.doska-team-value {
  text-align: left; font-size: 13px; line-height: 1.4; color: var(--doska-text);
  background: transparent; border-radius: var(--doska-radius-sm); padding: 2px 4px; margin: -2px -4px;
}
.doska-team-value:hover { background: var(--doska-secondary); }
.doska-team-picker {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 15; margin-top: 4px;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
  padding: 6px;
}
.doska-team-picker-list { max-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.doska-team-picker-row { display: flex; align-items: center; gap: 7px; padding: 5px 6px; border-radius: var(--doska-radius-sm); font-size: 13px; cursor: pointer; }
.doska-team-picker-row:hover { background: var(--doska-secondary); }
.doska-team-picker-add { display: flex; gap: 5px; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--doska-hairline); }
.doska-team-picker-add input { flex: 1; min-width: 0; font-size: 12px; background: var(--doska-surface); border-radius: var(--doska-radius-sm); padding: 5px 7px; }
.doska-team-picker-add button { width: 26px; background: var(--doska-accent); color: var(--doska-accent-contrast); border-radius: 6px; font-size: 14px; }
.doska-team-picker-add button:disabled { opacity: 0.4; }

.doska-chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.doska-chip {
  font-size: 11px; padding: 4px 9px; border-radius: 6px;
  color: var(--doska-text);
}
/* Doubled selector — same .doska-root button specificity trap the comment below already flags for
   .doska-chip--accent. Fixing it here at the base rule (not just the accent variant) covers the
   plain <button className="doska-chip"> case too — StashTab.tsx's own "Темы" filter row, which
   rendered every unselected topic as flat text with no pill shape until hovered or picked. Harmless
   for the existing <span> chip usages (tag chips in the item modal) — their background already
   rendered fine, doubling the class just makes that explicit rather than accidental. */
.doska-chip.doska-chip { background: var(--doska-surface-raised); }
/* accent-ink — this chip's own accent-soft fill puts raw accent text under 3:1, let alone 4.5:1
   (used as real 11px chip text — e.g. comment tags in ReviewQueue/CoauthorBoard; the AiChatPanel
   follow-up-prompt usage is a <button>, which never showed accent at all — .doska-root button's
   own `color: inherit` reset always wins there regardless of this rule). */
.doska-chip--accent { background: var(--doska-accent-soft); color: var(--doska-accent-ink); }
/* Toggleable chip state — StashTab.tsx's filter panel (type/topic pickers). */
button.doska-chip:hover { background: var(--doska-hairline); }
button.doska-chip[data-active] { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-stash-filter-topics { max-height: 140px; overflow-y: auto; }
/* Фильтры/Тип/Темы all sit at the LEFT of .doska-stash-folder-content-actions (Тип/Темы merged
   into this row per a later direct request with a reference screenshot — see StashTab.tsx's own
   comment; ancestor selector updated to match, was .doska-stash-filters-row), but
   .doska-review-dropdown's shared base anchors right:0 — built for triggers near the screen's own
   right edge (ReviewQueue's comment icon, its original use case). Grown leftward from a trigger
   that's already at the left edge, a panel this wide has nowhere to grow INTO and renders at a
   negative x — confirmed live at every width above the old 768px mobile breakpoint (both "Фильтры"
   and "Тип" rendered mostly off the left edge of the screen, only a sliver visible). This used to
   be patched for "Фильтры" alone, mobile-only, via position:fixed + a hardcoded top:270px guess at
   where the toolbar would land — which then broke a different way the first time a longer project
   title wrapped the hero to two lines (270px guessed too little, so the panel opened ON TOP of the
   hero's own action row instead of below the toolbar). Anchoring left instead of right fixes the
   actual root cause (wrong growth direction) at every viewport, so that whole escape hatch — and
   its now-provably-wrong magic number — is gone rather than patched again. */
.doska-stash-folder-content-actions .doska-review-menu-wrap .doska-review-dropdown { left: 0; right: auto; }
/* Сортировка/Плитка's own dropdowns need the opposite anchor from their left-clustered Тип/Темы
   siblings above (left-anchoring them too — the blanket rule just above, same specificity, wins
   by source order otherwise — measured a real overflow at 390px: a 220px LEFT-anchored panel ran
   well past a 390px viewport). Right-anchored instead, each panel grows left from its own
   trigger's right edge, staying on-screen regardless of where in the row that trigger sits.
   .doska-stash-density-wrap (Плитка, hidden on mobile — see its own rule) and .doska-stash-sort-
   wrap (Сортировка) are two distinct classes now, not one shared between both wraps. */
.doska-stash-folder-content-actions .doska-stash-sort-wrap .doska-review-dropdown,
.doska-stash-folder-content-actions .doska-stash-density-wrap .doska-review-dropdown { left: auto; right: 0; }
/* Per direct request ("сортировку недавно просмотренные перенести в правый угол") — Сортировка
   is now the one that claims the row's own right edge (margin-left:auto), not
   .doska-stash-view-toggle; the toggle simply follows right after it in DOM order, so both end up
   clustered together at the right, Тип/Темы (and Плитка, in grid mode) staying left. */
.doska-stash-folder-content-actions .doska-stash-sort-wrap { margin-left: auto; }
/* Per direct report ("фильтры с рядами на мобилке не нужны") — "N в ряд" (grid column count)
   isn't a meaningful choice on a phone-width screen, unlike Тип/Темы/Сортировка which still are. */
@media (max-width: 900px) {
  .doska-stash-density-wrap { display: none; }
}

.doska-note {
  width: 100%;
  min-height: 72px;
  max-height: 220px;
  resize: vertical;
  background: var(--doska-surface-raised);
  border: 1px solid transparent;
  border-radius: var(--doska-radius-md);
  padding: 9px 10px;
  font-size: 13px;
  color: var(--doska-text);
  outline: none;
  font-family: inherit;
  overflow-y: auto;
}
.doska-note:focus { border-color: var(--doska-hairline-strong); }
.doska-note::-moz-placeholder { color: var(--doska-text-muted); }
.doska-note::placeholder { color: var(--doska-text-muted); }
/* Per direct report ("картинка мне не информативна... на превью картинка также должна быть
   возможна в самом тексте заметки") — the hero image up in .doska-stash-modal-preview reads as a
   separate "card", detached from the actual note text further down in the scrollable side panel.
   This repeats it small, right inside the "Заметка" section, so the picture reads as part of the
   text content itself. */
.doska-note-inline-image {
  position: relative;
  display: block;
  width: 100%;
  height: 140px;
  border-radius: var(--doska-radius-md);
  overflow: hidden;
  margin-bottom: 8px;
  /* Now a <button> (was a <div>) — per direct request ("нажать на картинку... откроется в полном
     размере") — reset away the browser's default button chrome so it still just looks like a
     plain image plate, only now clickable. */
  padding: 0; border: none; cursor: pointer;
}
.doska-note-inline-image img { -o-object-fit: cover; object-fit: cover; }
/* Same click-to-zoom affordance on the drawer's own hero preview (StashItemDrawer.tsx's
   StashModalPreview) — also now a <button> wrapping PlateMedia, same reset. disabled (no mediaUrl
   yet) drops the pointer cursor so it doesn't falsely promise a click that does nothing. */
.doska-stash-modal-preview-zoomable {
  display: block; width: 100%; height: 100%; padding: 0; border: none; cursor: pointer;
}
.doska-stash-modal-preview-zoomable:disabled { cursor: default; }
.doska-note-save-btn {
  display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 7px 12px;
  font-size: 12px; font-weight: 600; color: var(--doska-text-muted);
  border-radius: 6px;
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file (the
   reset's own border-style:none was winning, so this read as plain text with no pill outline). */
.doska-note-save-btn.doska-note-save-btn { border: 1px solid var(--doska-hairline-strong); }
.doska-note-save-btn:hover { color: var(--doska-text); background: var(--doska-secondary); }

.doska-empty-hint { font-size: 12px; color: var(--doska-text-muted); font-style: italic; }

.doska-inline-action {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--doska-accent);
  padding: 8px 14px; border-radius: var(--doska-radius-md); /* капсула → шкала: в «Графите» капсулу носят фильтры, действие имеет радиус 12 */
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file (Invite/
   Share/sort-menu triggers were losing their soft-accent pill fill and reading as plain text). */
.doska-inline-action.doska-inline-action { background: var(--doska-accent-soft); }
.doska-inline-action:hover { filter: brightness(1.1); }
.doska-inline-action:disabled { opacity: 0.35; filter: none; cursor: default; }
.doska-inline-action[data-active] { box-shadow: 0 0 0 1.5px var(--doska-accent); }
.doska-inline-action--accent { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-inline-action--danger { background: color-mix(in srgb, var(--doska-destructive) 16%, transparent); color: var(--doska-destructive); }
/* ОСНОВНОЕ ДЕЙСТВИЕ КАРТОЧКИ (подключение интеграции) — по прямому запросу «кнопка подключить надо
   белая чтобы была». Белая в тёмной теме и тёмная в светлой: это цвет текста, взятый фоном, то
   есть максимальный контраст к подложке в обеих темах. Селектор удвоен: иначе его перебивает
   `.doska-inline-action.doska-inline-action` с мягкой заливкой (готча №1). */
.doska-inline-action--solid.doska-inline-action--solid {
  background: var(--doska-text); color: var(--doska-surface); font-weight: 600;
}
.doska-inline-action--solid.doska-inline-action--solid:hover { filter: brightness(0.92); }
.doska-inline-action--solid.doska-inline-action--solid svg { color: var(--doska-surface); }

.doska-merge-concept-list { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.doska-merge-concept-btn { width: 100%; text-align: left; white-space: normal; line-height: 1.35; }

.doska-thumb-img {
  width: 40px; height: 40px; border-radius: var(--doska-radius-sm); flex-shrink: 0; overflow: hidden;
  -o-object-fit: cover;
     object-fit: cover;
}
.doska-link-row-title { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-link-row-kind { font-size: 11px; color: var(--doska-text-muted); margin-top: 1px; }

/* ---------- toast ---------- */

/* Fixed positioning + horizontal centering now live here, on a plain (non-motion) wrapper, not on
   .doska-toast itself — per a live report with a screenshot ("уведомления... сейчас они под черной
   плашкой", which turned out to be a mispositioned toast, not a stacking issue). Root cause:
   .doska-toast is a framer-motion `motion.div` animating `y` — that drives an INLINE `transform`
   style every frame, which completely replaces (not merges with) a stylesheet `transform:
   translateX(-50%)` on the SAME element, so the CSS centering silently never applied once
   framer-motion mounted (confirmed live via getComputedStyle: `transform` read "none", and the
   rendered box's left edge sat at exactly the viewport's horizontal midpoint instead of centered
   around it). This wrapper owns positioning/centering via flex instead, so the motion.div inside
   only ever needs to animate opacity/y with no transform conflict. */
.doska-toast-wrap {
  position: fixed;
  left: 0; right: 0; bottom: 24px;
  display: flex;
  justify-content: center;
  pointer-events: none;
  /* absolute -> fixed — Toast.tsx now portals to document.body (see that component's own comment
     for the full "isolation:isolate traps z-index inside its own .doska-root, a portal is the only
     real fix" story); fixed matches every other portaled floating element in this file
     (.doska-drawer-menu, .doska-share-popover, etc.) rather than relying on position:absolute's
     "no positioned ancestor" fallback happening to behave the same as fixed for a plain document.
     40 -> 100 — kept even after the portal fix above: a toast should float above every OTHER
     already-portaled overlay too (dropdowns, popovers), not just modal backdrops. Clears every
     real modal backdrop in this file (the highest besides this is .doska-slides-digest-backdrop at
     95) — same convention Gmail/Material's own snackbars use. */
  z-index: 100;
}
.doska-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md);
  padding: 9px 14px;
  font-size: 13px;
}
/* accent-ink — "Отменить" undo-action text on this toast's surface-raised background, ~3.4:1 raw. */
.doska-toast button { color: var(--doska-accent-ink); }
.doska-toast button:hover { text-decoration: underline; }
/* Per direct request ("я через крестик её закрыла") — a dedicated dismiss button, always present
   regardless of whether the toast is also clickable-to-navigate (data-clickable). Own icon-button
   styling, not the underlined text-link look the "Отменить" rule above uses — an X glyph doesn't
   read as a text link, and stopPropagation on its own click (Toast.tsx) already keeps it from
   also triggering the toast's own navigate-on-click. */
.doska-toast-close.doska-toast-close {
  display: flex; align-items: center; justify-content: center; width: 20px; height: 20px;
  border-radius: 50%; color: var(--doska-text-muted); flex: 0 0 auto; margin-left: 2px;
}
.doska-toast-close.doska-toast-close:hover { background: var(--doska-secondary); color: var(--doska-text); text-decoration: none; }
.doska-toast[data-clickable] { cursor: pointer; }

/* ---------- «Быстрая чистка» (Quick Cleanup — Tinder-style swipe deck) ---------- */

.doska-cleanup-backdrop {
  position: fixed; inset: 0; z-index: 105;
  background: rgba(6, 6, 9, 0.92);
  display: flex; flex-direction: column; align-items: center;
  /* Верхний отступ 20 -> 72px: полоса прогресса и крестик вставали ровно на строку поиска в шапке
     приложения. Затемнение фона не полное (0.92), поэтому подложка просвечивала, и два ряда
     элементов читались как один. Раньше это было менее заметно — режим открывался только изнутри
     «Прочитать позже»; теперь вход живёт в самой шапке, рядом с уведомлениями, и столкновение
     оказалось прямо под кнопкой, которой его открыли. 72px = высота шапки плюс воздух. */
  padding: 72px 16px 28px;
  /* Per direct live check — flex:1 on the deck below with NO cap consumed literally all
     remaining vertical space on a real (982px logical) viewport, leaving the action row's own
     computed position close enough to the bottom edge that a screenshot came back showing it
     half-cropped. overflow-y:auto is the safety net: even if the capped deck below still doesn't
     leave quite enough room on some viewport, the whole column scrolls instead of the buttons
     becoming genuinely unreachable. */
  overflow-y: auto;
}
.doska-cleanup-header {
  width: 100%; max-width: 380px; flex-shrink: 0;
  display: flex; align-items: center; gap: 10px; margin-bottom: 24px;
}
.doska-cleanup-progress-track { flex: 1; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.doska-cleanup-progress-fill { height: 100%; border-radius: 999px; background: var(--doska-accent); transition: width 0.25s var(--doska-ease); }
.doska-cleanup-count { flex-shrink: 0; font-size: 12px; color: rgba(255, 255, 255, 0.6); font-variant-numeric: tabular-nums; }
.doska-cleanup-close {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%;
}
/* Doubled selector — same `.doska-root button { color: inherit }` specificity trap documented
   throughout this file (search "specificity trap" for the many other instances) — a single-class
   rule (0,1,0) loses to that base reset (0,1,1), so the close icon rendered whatever `inherit`
   resolved to instead of the dim/bright pair actually intended here. */
.doska-cleanup-close.doska-cleanup-close { color: rgba(255, 255, 255, 0.7); }
.doska-cleanup-close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

/* flex:1 (not flex:1 with no cap) + max-height — the deck no longer expands to eat literally
   every pixel the backdrop has to offer; it settles at a comfortable card size and leaves the
   action row (flex-shrink:0 below) real, predictable breathing room underneath it regardless of
   viewport height. */
.doska-cleanup-deck {
  position: relative; width: 100%; max-width: 380px; flex: 1 1 auto; min-height: 280px; max-height: 480px;
  display: flex; align-items: center; justify-content: center;
}
.doska-cleanup-card {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--doska-surface-raised); border-radius: var(--doska-radius-lg);
  box-shadow: none;
  cursor: grab;
}
.doska-cleanup-card--peek { z-index: -1; pointer-events: none; }
.doska-cleanup-card-media { position: relative; height: 42%; min-height: 140px; flex-shrink: 0; background: var(--doska-canvas); }
.doska-cleanup-card-body { flex: 1; min-height: 0; padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.doska-cleanup-card-type {
  align-self: flex-start; display: flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; text-transform: none;
  letter-spacing: 0; color: #fff;
}
.doska-cleanup-card-title { font-size: 16px; font-weight: 600; color: var(--doska-text); line-height: 1.35; }
.doska-cleanup-card-snippet {
  font-size: 13px; color: var(--doska-text-muted); line-height: 1.5;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical;
}
.doska-cleanup-card-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--doska-text-muted); margin-top: auto; }

.doska-cleanup-actions { flex-shrink: 0; display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; }
.doska-cleanup-action {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  box-shadow: none;
}
/* Doubled selectors — same .doska-root button { background: none; color: inherit } specificity
   trap as .doska-cleanup-close above; confirmed live via computed-style check (background came
   back fully transparent, color came back the LIGHT-theme text color instead of white/red/green —
   both silently losing to the base reset). */
.doska-cleanup-action.doska-cleanup-action { background: var(--doska-surface-raised); color: var(--doska-text); }
.doska-cleanup-action:hover { filter: brightness(1.1); }
.doska-cleanup-action--delete.doska-cleanup-action--delete { color: var(--doska-danger); }
.doska-cleanup-action--keep.doska-cleanup-action--keep { color: var(--doska-success); }
.doska-cleanup-action--undo.doska-cleanup-action--undo { width: 40px; height: 40px; color: rgba(255, 255, 255, 0.6); }

.doska-cleanup-done { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; text-align: center; }
.doska-cleanup-done-icon { width: 48px; height: 48px; color: var(--doska-success); }
.doska-cleanup-done-title { font-size: 20px; font-weight: 600; }
.doska-cleanup-done-sub { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 10px; }
.doska-cleanup-done-close.doska-cleanup-done-close {
  padding: 9px 22px; border-radius: 999px; background: var(--doska-accent); color: var(--doska-accent-contrast); font-weight: 600; font-size: 14px;
}

/* ---------- Google Calendar "Добавить в календарь" popover ---------- */

/* .doska-calendar-popover-body is the reusable FIELDS-ONLY content (AddToCalendarPopover.tsx
   itself) — no box chrome of its own, since one caller (StashItemDrawer.tsx) needs its own
   standalone popover box while the other (StashCards.tsx's CardShell) renders this same content
   as a sub-screen inside its OWN already-boxed "···" dropdown, exactly how MoveTargetMenu's own
   reuse between those two callers already works. .doska-calendar-popover is StashItemDrawer's own
   wrapper — .doska-drawer-menu's own base box styling (background/border/shadow/radius) plus a
   wider width/padding than that base rule's own 148px-min/4px-padding defaults, since this needs
   real room for label+input pairs, not a list of one-line menu items. */
.doska-calendar-popover { width: 240px; padding: 12px; }
/* min-width here (not just on the StashItemDrawer-only wrapper above) — CardShell's own dropdown
   renders this content directly inside its base .doska-drawer-menu box, which floors at 148px/4px
   padding, too tight for a real datetime input; this guarantees comfortable field width there too. */
.doska-calendar-popover-body { display: flex; flex-direction: column; gap: 10px; min-width: 216px; padding: 4px; }
.doska-calendar-popover-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--doska-text); }
.doska-calendar-popover-field { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--doska-text-muted); }
.doska-calendar-popover-field input, .doska-calendar-popover-field select {
  padding: 6px 8px; border-radius: var(--doska-radius-sm); border: 1px solid var(--doska-hairline-strong);
  background: var(--doska-canvas); color: var(--doska-text); font-size: 13px; font-family: inherit;
}
.doska-calendar-popover-error { font-size: 12px; color: var(--doska-danger); line-height: 1.4; }
.doska-calendar-popover-actions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin-top: 2px; }
.doska-calendar-popover-actions .doska-drawer-menu-item { width: auto; flex: 0 0 auto; }
/* Doubled selector — same .doska-root button { background: none; color: inherit } specificity
   trap this file's own Quick Cleanup section (search "specificity trap") already hit for the
   exact same reason: a single-class rule here loses to that base reset. */
.doska-calendar-popover-submit.doska-calendar-popover-submit {
  padding: 6px 16px; border-radius: 6px; background: var(--doska-accent); color: var(--doska-accent-contrast);
  font-size: 13px; font-weight: 600;
}
.doska-calendar-popover-submit:disabled { opacity: 0.5; }

/* ---------- shortcuts modal ---------- */

.doska-shortcuts-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doska-shortcuts {
  width: 580px;
  max-width: 92vw;
  background: var(--doska-surface);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-lg);
  padding: 22px 26px;
}
.doska-shortcuts-title { font-size: 16px; margin-bottom: 14px; }
.doska-shortcuts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doska-shortcut-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 12px; color: var(--doska-text-muted); }
.doska-kbd {
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-sm);
  padding: 1px 6px;
  font-size: 11px;
  color: var(--doska-text);
}
/* Живой отчёт на 406px: панель фиксированной ширины 340px и `right: 0` ОТНОСИТЕЛЬНО САМОГО
   колокольчика — а он на телефоне стоит не у правого края экрана, а внутри кластера иконок
   (поиск/уведомления/ИИ), левее него. Получалось смещение в минус (панель начиналась за левым
   краем экрана, поле поиска и карточки обрезаны). На телефоне панель больше не привязана к
   триггеру: фиксированный лист по бокам вьюпорта. */
.doska-review-menu-wrap { position: relative; flex-shrink: 0; }
.doska-review-dropdown {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 40;
  min-width: 220px; padding: 5px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
}
/* Фильтры/Тип/Темы/Сортировка (StashTab.tsx) — portaled straight to document.body, above
   everything else on the page, not just their own toolbar row. Own scoped class (not a bump on
   .doska-review-dropdown's own shared z-index:40, which is also used in-place — not portaled — by
   ProjectGallery/ReviewQueue/Canvas's own context menus, where 40 is already correct and doesn't
   need to change) — per direct report ("это меню должно быть поверх всего"). Above
   .doska-mobile-action-bar's 50, below .doska-modal-backdrop's 60 so a real modal can still cover
   it if one somehow opens at the same time. */
/* right: auto cancels .doska-review-dropdown's own `right: 0` — Фильтры/Тип/Темы position via an
   inline `left` (StashTab.tsx's own useDropdownRect), and inline styles only override the
   SPECIFIC properties they set. With the stylesheet's `right: 0` still active alongside an inline
   `left`, the dropdown stretched to fill the entire span between them — confirmed live at
   ~1415px wide instead of its intended ~160-220px (same "left+right both set" bug already fixed
   once this session for .doska-stash-card-menu, never carried over to these four). Harmless for
   Сортировка (positioned via inline `right` instead, no competing `left`) — its own inline value
   still wins over this regardless, inline always beats a non-important stylesheet rule. */
.doska-stash-toolbar-dropdown { z-index: 55; right: auto; }
/* max-width added — per direct follow-up ("темы слишком широкий"): .doska-chip-row wraps, but
   with nothing constraining THIS box's own width, a flex-wrap row still just grows wide enough to
   fit every chip on as few lines as possible before wrapping ever kicks in (confirmed live at
   ~369px for a normal topic count). Capping the box is what actually forces real multi-row
   wrapping at a sane width, not just the min-width floor below. */
.doska-stash-topics-dropdown.doska-review-dropdown { min-width: 160px; max-width: 220px; }
/* Desktop only — per direct request with a real reference screenshot ("внутри проекта сделать
   кнопку темы где они будут появляться в таком виде": a wide multi-row chip cloud opened from a
   button). The 220px cap right above is a deliberate MOBILE fix for a real complaint ("темы
   слишком широкий") — this widens it back out only where the button that opens it is now also
   reachable (doska-stash-type-toggle-wrap's own comment), so .doska-chip-row actually gets enough
   room to wrap into real rows of chips instead of one cramped narrow column. */
@media (min-width: 769px) {
  .doska-stash-topics-dropdown.doska-review-dropdown { min-width: 480px; max-width: min(900px, calc(100vw - 64px)); }
  .doska-stash-filter-topics { max-height: 260px; }
}
.doska-review-dropdown-item {
  display: flex; align-items: center; gap: 7px; width: 100%; box-sizing: border-box;
  padding: 7px 8px; border-radius: var(--doska-radius-sm);
  font-size: 12px; color: var(--doska-text); text-align: left; white-space: nowrap;
}
.doska-review-dropdown-item:hover { background: var(--doska-secondary); }
.doska-review-dropdown-item:disabled { color: var(--doska-text-muted); opacity: 0.5; cursor: default; }
.doska-review-dropdown-item:disabled:hover { background: none; }
.doska-review-dropdown-check { width: 13px; flex-shrink: 0; display: flex; color: var(--doska-accent); }
/* Real checkbox squares, not just a checkmark that appears out of nowhere — per direct report
   ("делай фильтры чекбоксами"), .doska-review-dropdown-check's plain checkmark-or-nothing left
   unchecked items with no visible control at all, just blank space. Scoped to a dedicated class
   (not the bare .doska-review-dropdown-check everywhere) — this same span is reused by several
   genuinely single-select pickers elsewhere (sort mode, font size, notification preference),
   where a permanent checkbox outline would be the wrong affordance. :empty tells checked apart
   from unchecked with zero JS changes needed — the Check icon is the span's only possible child,
   so "no child" and "unchecked" are exactly the same condition.
   Renamed from a .doska-stash-filter-dropdown-only selector to this shared
   .doska-stash-checkbox-list one — Тип's own dropdown uses the exact same checkbox items
   (StashTab.tsx already said as much: "matching «Только закреплённые»'s own row"), but the old
   selector only ever matched Фильтры's wrapper div, so Тип silently never got the box, just a
   bare checkmark with nothing shown at all for unchecked items — confirmed live. */
.doska-stash-checkbox-list .doska-review-dropdown-check {
  width: 15px; height: 15px; align-items: center; justify-content: center;
  border-radius: var(--doska-radius-sm); border: 1.5px solid var(--doska-hairline-strong); box-sizing: border-box; color: var(--doska-accent-contrast);
}
/* This box gets a solid --doska-accent FILL once checked (below) — same paired contrast color
   every OTHER solid accent fill in this file uses. */
.doska-stash-checkbox-list .doska-review-dropdown-check:not(:empty) {
  background: var(--doska-accent); border-color: var(--doska-accent);
}
.doska-review-dropdown-sep { height: 1px; background: var(--doska-hairline); margin: 5px 2px; }
.doska-review-dropdown-label { font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--doska-text-muted); padding: 6px 8px 3px; }
.doska-review-row {
  position: relative;
  display: flex; align-items: flex-start; gap: 9px;
  padding: 8px 6px; border-radius: var(--doska-radius-md);
}
.doska-review-row:hover { background: var(--doska-secondary); }
.doska-review-row-text { flex: 1; min-width: 0; }
.doska-review-row-icon { color: var(--doska-accent); flex-shrink: 0; }
.doska-review-row--comment { cursor: pointer; }
.doska-review-row--comment .doska-link-row-title { font-size: 12px; line-height: 1.4; white-space: normal; margin-top: 2px; }
.doska-review-row--comment .doska-chip-row { margin-top: 4px; }
.doska-review-row--comment[data-unread] { background: var(--doska-accent-soft); }
.doska-review-row-avatar {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 999px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-text-muted);
}
.doska-review-row-avatar img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.doska-review-row-avatar-fallback { font-size: 10px; font-weight: 600; }
.doska-review-row-number { font-size: 10px; color: var(--doska-text-muted); }
.doska-review-row-byline { display: flex; align-items: baseline; gap: 6px; margin-top: 1px; }
.doska-review-row-author { font-size: 12px; font-weight: 600; color: var(--doska-text); }
.doska-review-row-time { font-size: 10px; color: var(--doska-text-muted); }
.doska-review-row-dot { flex-shrink: 0; width: 7px; height: 7px; border-radius: 999px; background: var(--doska-accent); margin-top: 8px; }
.doska-review-row .doska-comment-resolve-btn { flex-shrink: 0; margin-top: 2px; opacity: 0; }
.doska-review-row:hover .doska-comment-resolve-btn, .doska-review-row .doska-comment-resolve-btn[data-resolved] { opacity: 1; }
.doska-review-row-menu { position: relative; flex-shrink: 0; margin-top: 2px; }
.doska-review-dropdown-item--danger { color: var(--doska-danger); }
.doska-review-dropdown-item--danger:hover { background: color-mix(in srgb, var(--doska-destructive) 12%, transparent); }

/* ---------- observer presentation ---------- */

.doska-observer {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  padding: 110px 24px 80px;
}
.doska-observer-header { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.doska-observer-title { font-size: 24px; margin-bottom: 8px; }
.doska-observer-hint { font-size: 14px; color: var(--doska-text-muted); }
.doska-observer-spread { max-width: 900px; margin: 0 auto 72px; text-align: center; }
.doska-observer-spread-hero { max-width: 320px; margin: 0 auto 20px; }
.doska-observer-spread-map { aspect-ratio: 4/3; border-radius: var(--doska-radius-lg); overflow: hidden; margin-bottom: 12px; }
.doska-observer-spread-hero h2 { font-size: 20px; }
.doska-observer-looks {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  margin-bottom: 24px;
}
.doska-observer-look { width: 200px; }
.doska-observer-look-media { width: 100%; aspect-ratio: 4/5; border-radius: var(--doska-radius-lg); overflow: hidden; margin-bottom: 10px; }
.doska-observer-look-media img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.doska-observer-look-media .doska-comment-layer img { height: 100%; -o-object-fit: cover; object-fit: cover; }
.doska-observer-look[data-approved] .doska-observer-look-media { box-shadow: 0 0 0 2.5px var(--doska-glow-location); }
.doska-observer-look-actions { display: flex; gap: 8px; }
.doska-observer-approve {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px; border-radius: 999px;
  background: var(--doska-surface-raised); font-size: 13px;
}
/* accent-ink — "Утвердить" label text on this button's own accent-soft hover fill. */
.doska-observer-approve:hover { background: var(--doska-accent-soft); color: var(--doska-accent-ink); }
.doska-observer-comment-btn {
  width: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--doska-radius-md); background: var(--doska-surface-raised); color: var(--doska-text-muted);
}
.doska-observer-comment-btn:hover { color: var(--doska-text); }
.doska-observer-approved-badge {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px; border-radius: var(--doska-radius-md);
  background: var(--doska-accent-soft); color: var(--doska-glow-location); font-size: 13px;
}
.doska-observer-comment { margin-top: 8px; min-height: 52px; text-align: left; }
.doska-observer-comment-saved {
  display: flex; align-items: flex-start; gap: 5px;
  margin-top: 8px; font-size: 12px; color: var(--doska-text-muted); text-align: left;
  max-height: 4.4em; overflow-y: auto; padding-right: 4px;
}
.doska-observer-comment-saved svg { flex-shrink: 0; margin-top: 2px; }
.doska-observer-finalize {
  font-size: 12px; color: var(--doska-text-muted);
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--doska-hairline);
}
.doska-observer-finalize:hover { color: var(--doska-text); border-color: var(--doska-hairline-strong); }

/* ---------- mobile client journal: cover -> timeline -> per-location carousels ---------- */
/* Replaces the infinite canvas entirely on a phone — a client scrolling one thumb down a
   vertical page instead of pinching/panning a board they'd otherwise get lost in. */

.doska-observer--mobile { padding: 32px 0 60px; max-width: 100%; }

.doska-observer-cover {
  padding: 0 20px 28px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--doska-hairline);
}
.doska-observer-cover-kicker {
  display: inline-flex; align-items: center; gap: 5px;
  /* accent-ink — this kicker's own accent-soft fill, same contrast shortfall as .doska-chip--accent. */
  font-size: 11px; color: var(--doska-accent-ink);
  background: var(--doska-accent-soft); padding: 4px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.doska-observer-cover-title { font-size: 24px; line-height: 1.2; margin-bottom: 6px; }
.doska-observer-cover-sub { font-size: 12px; color: var(--doska-text-muted); margin-bottom: 12px; }
.doska-observer-cover-desc { font-size: 13px; line-height: 1.5; color: var(--doska-text); }

.doska-observer-section-label {
  font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--doska-text-muted);
  padding: 0 20px; margin-bottom: 8px;
}
.doska-observer-timeline { padding-bottom: 24px; margin-bottom: 16px; border-bottom: 1px solid var(--doska-hairline); }
.doska-observer-timeline-row { border-top: 1px solid var(--doska-hairline); }
.doska-observer-timeline-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 13px 20px; font-size: 14px; color: var(--doska-text);
}
/* accent-ink — 13.5px timeline label text, ~3.4-3.7:1 raw against this row's surface(-raised). */
.doska-observer-timeline-row[data-open] .doska-observer-timeline-head { color: var(--doska-accent-ink); }
.doska-observer-timeline-chevron { font-size: 16px; color: var(--doska-text-muted); }
.doska-observer-timeline-body { display: flex; gap: 12px; padding: 0 20px 16px; align-items: center; }
.doska-observer-timeline-map { width: 84px; height: 64px; flex-shrink: 0; border-radius: var(--doska-radius-md); overflow: hidden; }
.doska-observer-timeline-facts { font-size: 12px; color: var(--doska-text-muted); line-height: 1.5; }

.doska-observer-mobile-block { margin-bottom: 30px; }
.doska-observer-mobile-block-header { display: flex; align-items: center; gap: 10px; padding: 0 20px; margin-bottom: 12px; }
.doska-observer-mobile-block-map { width: 44px; height: 44px; border-radius: var(--doska-radius-md); overflow: hidden; flex-shrink: 0; }
.doska-observer-mobile-block-header h3 { font-size: 16px; }
.doska-observer-mobile-carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0 20px 6px;
  scroll-snap-type: x mandatory;
}
.doska-observer-mobile-carousel-item { flex: 0 0 auto; width: 72vw; max-width: 260px; scroll-snap-align: start; }
.doska-observer-mobile-carousel-item .doska-observer-look { width: 100%; }

/* ---------- region comments (drawer hero) ---------- */

.doska-comment-layer {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--doska-radius-md);
  overflow: hidden;
  cursor: default;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  touch-action: none;
}
.doska-comment-layer[data-comment-mode] { cursor: none; }
.doska-comment-layer img { width: 100%; display: block; pointer-events: none; }

/* hidden layers: clean by default, existing marks fade in on hover or while arming a new one */
.doska-comment-rect {
  position: absolute;
  border: 1.5px dashed var(--doska-glow-color);
  background: rgba(201, 112, 74, 0.1);
  border-radius: var(--doska-radius-sm);
  pointer-events: auto;
  cursor: pointer;
  opacity: 0;
  transition: opacity 180ms var(--doska-ease), box-shadow 180ms var(--doska-ease);
}
.doska-comment-layer:hover .doska-comment-rect,
.doska-comment-layer[data-comment-mode] .doska-comment-rect { opacity: 0.6; }
.doska-comment-rect--drawing { border-color: var(--doska-accent); background: var(--doska-accent-soft); opacity: 1 !important; pointer-events: none; }
.doska-comment-rect[data-focused] {
  opacity: 1 !important;
  border-color: var(--doska-accent);
  box-shadow: 0 0 0 2px var(--doska-accent);
}

.doska-comment-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  margin-left: -11px;
  margin-top: -11px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--doska-glow-color);
  color: #fff;
  box-shadow: 0 0 0 2px var(--doska-surface);
  /* Per direct report ("комментарии плохо видно когда оставил") — this used to be opacity: 0 by
     default, only revealed by hovering the whole card/region the pin sits on. A pin's entire job
     is to be a persistent "there's a comment here" marker, same as Figma/Notion — hiding it until
     hover defeats that; hover/focus below are enhancements on top of an always-visible pin now,
     not the only way to see one exists at all. */
  opacity: 0.85;
  cursor: pointer;
  transition: opacity 180ms var(--doska-ease), transform 140ms var(--doska-ease), box-shadow 180ms var(--doska-ease);
}
.doska-comment-layer:hover .doska-comment-pin,
.doska-comment-layer[data-comment-mode] .doska-comment-pin { opacity: 1; }
.doska-comment-pin:hover { transform: scale(1.15); opacity: 1 !important; }
.doska-comment-pin[data-focused] {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--doska-surface), 0 0 0 4px var(--doska-accent);
}
.doska-comment-pin--pending { opacity: 1 !important; background: var(--doska-accent); pointer-events: none; }

/* Figma-style live cursors — a teammate's pointer position, broadcast via Realtime and rendered
   at their canvas-space coordinates (see useCursorPresence.ts). transform-origin top-left so the
   glyph's tip (not its bounding-box center) stays pinned to the actual cursor point when
   counter-scaled for zoom. */
.doska-remote-cursor {
  position: absolute; z-index: 45; pointer-events: none;
  transform-origin: top left;
  transition: left 90ms linear, top 90ms linear;
}
.doska-remote-cursor-label {
  position: absolute; left: 14px; top: 14px; white-space: nowrap;
  padding: 2px 7px; border-radius: 999px;
  font-size: 11px; font-weight: 600; color: #0a0a0e;
  box-shadow: none;
}

/* focus mode: dim everything except the region a clicked comment refers to */
.doska-comment-dim {
  position: absolute;
  background: rgba(6, 6, 9, 0.7);
  pointer-events: none;
  transition: opacity 160ms var(--doska-ease);
}

/* A real comment-bubble icon follows the pointer instead of a crosshair — reads unambiguously as
   "you're about to drop a comment" rather than a generic targeting reticle (per direct correction:
   a ring drawn around crosshair lines still reads as a crosshair, not a comment cursor). */
/* Per direct report ("иконка что есть комментарий вообще не видна... должна быть заливка") — a
   thin 2px ring plus a fairly small fill against the dark canvas read as mostly-dark at a glance,
   easy to lose entirely. A solid gradient fill (same treatment already fixed for the AI bubble)
   reads unambiguously as "there's a real, filled marker here", not just an outline. */
.doska-comment-cursor {
  position: fixed;
  z-index: 6;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  margin-top: -15px;
  border-radius: 999px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #9a9aa0, var(--doska-accent));
  color: #fff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.16);
}

/* long-press charge ring — fills over the same 400ms as the hold-to-draw threshold, so the
   finger gets a visible countdown instead of the area just appearing out of nowhere */
.doska-comment-longpress {
  position: absolute;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  margin-top: -20px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 6;
  box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.4);
}
.doska-comment-longpress::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: conic-gradient(var(--doska-accent) 0deg, transparent 0deg);
  animation: doska-longpress-fill 400ms linear forwards;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
}
@keyframes doska-longpress-fill {
  from { background: conic-gradient(var(--doska-accent) 0deg, transparent 0deg); }
  to { background: conic-gradient(var(--doska-accent) 360deg, transparent 360deg); }
}

.doska-comment-tag {
  position: absolute;
  bottom: -20px;
  left: 0;
  font-size: 10px;
  color: var(--doska-glow-color);
  background: var(--doska-surface);
  padding: 2px 5px;
  border-radius: var(--doska-radius-sm);
  white-space: nowrap;
}

.doska-comment-hint {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 10px;
  color: var(--doska-text-muted);
  background: var(--doska-surface);
  padding: 3px 7px;
  border-radius: var(--doska-radius-sm);
  opacity: 0;
  transition: opacity 120ms var(--doska-ease);
  pointer-events: none;
}
.doska-comment-hint svg { flex-shrink: 0; }
.doska-comment-layer:hover .doska-comment-hint,
.doska-comment-layer[data-comment-mode] .doska-comment-hint { opacity: 0.9; }

/* Wraps CommentThread when a per-card pin/rect is focused — position:absolute is load-bearing
   here (not just visual): RegionCommentLayer positions this via inline left/top percentages,
   which are no-ops without a position value, so this rule isn't just styling, it's what makes the
   anchor actually land at the pin instead of silently sitting in normal document flow. */
.doska-comment-thread-anchor { position: absolute; z-index: 20; transform-origin: top left; }

.doska-comment-popover {
  position: absolute;
  z-index: 5;
  transform-origin: top left;
  width: 200px;
  background: rgba(var(--doska-glass-rgb), 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md);
  padding: 8px;
  box-shadow: none;
}
.doska-comment-popover textarea {
  width: 100%;
  min-height: 56px;
  background: var(--doska-surface-raised);
  border: none;
  border-radius: var(--doska-radius-sm);
  padding: 7px 8px;
  font-size: 12px;
  color: var(--doska-text);
  outline: none;
  font-family: inherit;
  resize: vertical;
}
.doska-comment-popover-actions { display: flex; gap: 6px; margin-top: 6px; }
.doska-comment-popover-actions button:last-child { font-size: 12px; color: var(--doska-text-muted); padding: 6px 10px; }
.doska-comment-popover-actions button:last-child:hover { color: var(--doska-text); }

/* comment list in the drawer — clicking a row drives focus mode on the image above */
.doska-comment-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.doska-comment-list-row {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  padding: 8px 10px;
  border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised);
  border: 1px solid transparent;
  color: var(--doska-text-muted);
}
.doska-comment-list-row svg { flex-shrink: 0; color: var(--doska-glow-color); }
.doska-comment-list-text { flex: 1; font-size: 12px; color: var(--doska-text); line-height: 1.35; }
.doska-comment-list-tags { font-size: 10px; color: var(--doska-glow-color); flex-shrink: 0; }
.doska-comment-list-row[data-focused] { border-color: var(--doska-accent); box-shadow: 0 0 0 1px var(--doska-accent); }
.doska-comment-list-row:hover { background: var(--doska-secondary); }
.doska-comment-list-row { cursor: pointer; }
.doska-comment-list-row[data-resolved] { opacity: 0.55; }
.doska-comment-list-row[data-resolved] .doska-comment-list-text { text-decoration: line-through; }

.doska-comment-resolve-btn {
  flex-shrink: 0;
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--doska-text-muted);
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--doska-hairline-strong);
  transition: background 120ms var(--doska-ease), color 120ms var(--doska-ease), box-shadow 120ms var(--doska-ease);
}
.doska-comment-resolve-btn:hover { background: var(--doska-glow-location); color: #fff; box-shadow: none; }
.doska-comment-resolve-btn[data-resolved] { background: var(--doska-glow-location); color: #fff; box-shadow: none; opacity: 1; }
.doska-comment-resolve-btn[data-resolved]:hover { background: var(--doska-accent-soft); color: var(--doska-accent); }

.doska-comment-list-item { display: flex; flex-direction: column; gap: 4px; }
.doska-comment-suggestion {
  display: flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 11px;
  color: var(--doska-accent);
  background: var(--doska-accent-soft);
  border: 1px solid rgba(0, 0, 0, 0.35);
  padding: 6px 10px;
  border-radius: 999px;
  margin-left: 22px;
}
.doska-comment-suggestion:hover { filter: brightness(1.12); }

.doska-comment-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 6px;
  background: var(--doska-surface);
  color: var(--doska-glow-color);
  font-size: 10px;
  font-family: var(--doska-font-mono);
  pointer-events: none;
}

/* ---------- location parsing pill + canvas drop ---------- */

.doska-location-parsing {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 10px;
  background: var(--doska-surface-raised);
}
.doska-location-parsing-url {
  font-size: 10px;
  color: var(--doska-text-muted);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.doska-drop-overlay {
  position: absolute;
  inset: 14px;
  z-index: 25;
  border: 2px dashed var(--doska-accent);
  border-radius: var(--doska-radius-lg);
  background: rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  animation: doska-inbox-pulse 1.6s ease-in-out infinite;
}
.doska-drop-overlay span {
  font-size: 14px;
  /* accent-ink — 14px still under the 18.66px bold / 24px cutoffs; raw accent on this pill's own
     surface background measures ~3.7:1. */
  color: var(--doska-accent-ink);
  background: var(--doska-surface);
  padding: 10px 18px;
  border-radius: var(--doska-radius-md);
  box-shadow: none;
}
@keyframes doska-inbox-pulse {
  0%, 100% { border-color: var(--doska-accent); box-shadow: inset 0 0 0 0 rgba(0, 0, 0, 0.2); }
  50% { border-color: rgba(0, 0, 0, 0.55); box-shadow: inset 0 0 44px 6px rgba(0, 0, 0, 0.16); }
}

.doska-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  /* Почти без затемнения — per direct report «background: rgba(6, 6, 9, 0.22) вот про него речь,
     добавить прозрачности». Подложка здесь нужна лишь для двух вещей: ловить клик мимо окна и
     чуть отделять слой от фона. Прятать содержимое под ней не требуется, читаемость окна держит
     его собственный стеклянный фон. Размытие убрано совсем: даже двухпиксельное превращало текст
     под окном в кашу, то есть делало ровно то, на что жалоба. */
  background: rgba(6, 6, 9, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.doska-modal {
  /* Тот же стеклянный фон, что у карточки заметки и модалки задачи — per direct report «нужно
     видеть, что под ним». Глухая заливка превращала любое окно в отдельную страницу. */
  background: rgba(var(--doska-glass-rgb), 0.82); backdrop-filter: blur(24px);
  border-radius: var(--doska-radius-lg, var(--doska-radius-md));
  box-shadow: 0 0 0 1px var(--doska-hairline-strong);
  padding: 18px 20px 20px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 64px);
  overflow-y: auto;
}
.doska-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.doska-modal-title { font-size: 15px; font-weight: 600; }
.doska-modal-close { color: var(--doska-text-muted); padding: 4px; border-radius: var(--doska-radius-sm); }
.doska-modal-close:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-modal-field { margin-bottom: 12px; }
.doska-modal-label { font-size: 12px; color: var(--doska-text-muted); margin-bottom: 5px; display: block; }
.doska-modal-input, .doska-modal-select, .doska-modal-textarea {
  width: 100%; background: var(--doska-surface); border-radius: var(--doska-radius-sm);
  padding: 8px 10px; font-size: 13px; color: var(--doska-text); box-shadow: inset 0 0 0 1px var(--doska-hairline);
}
.doska-modal-textarea { resize: vertical; min-height: 64px; font-family: inherit; }
/* Шапка последней секции («Без категории») прижималась к карточкам вплотную: у общей шапки
   контента стоит margin-bottom: -4px, рассчитанный на прежнюю раскладку без секций. Внутри секции
   возвращаем нормальный зазор — тот же, что у категорий выше. */
.doska-collection-folder--loose > .doska-stash-folder-content-header { margin-bottom: 10px; }
/* Сортировка внутри «Без категории» скрыта — per direct request («в ней сортировка — её убрать»).
   Это временная полка неразобранного: её перебирают, чтобы опустошить, а не изучают в удобном
   порядке. У обычного проекта без категорий класс --loose не ставится, и сортировка остаётся. */
.doska-collection-folder--loose .doska-stash-folder-content-actions,
/* Сортировка живёт ВНУТРИ заголовка (.doska-stash-folder-title-actions), а не только в правой
   группе действий — поэтому её пришлось гасить отдельно (замер показал: правая группа уже была
   скрыта, а иконка ⇅ осталась). */
.doska-collection-folder--loose .doska-stash-folder-title-actions { display: none; }
/* Пустой проект: строка сортировок и фильтров скрыта — per direct request («на заглушке проекта не
   нужна иконка сортировки, когда там ничего нет»). Сортировать нечего, а рядом с крупной заглушкой
   «добавьте файл» эти иконки читаются как единственное доступное действие, хотя ничего не делают.
   Класс ставится в StashTab на обёртке содержимого, когда карточек нет вовсе. */
.doska-stash-tab[data-empty] .doska-stash-folder-content-header .doska-stash-folder-content-actions,
.doska-stash-tab[data-empty] .doska-stash-folder-content-header .doska-stash-folder-title-actions {
  display: none;
}
/* Поиск на «Все заметки»: во всю ширину колонки, отдельной строкой над оглавлением категорий. */
/* Поиск во всю ширину и крупнее — per direct request («поиск во „Все заметки“ нужно по всей
   ширине», «и крупнее поле»). Компонент поиска рассчитан на узкую пилюлю в шапке, поэтому ширину
   снимаем с него самого и со всех его внутренних ограничителей, а высоту задаём полю ввода: в
   отдельной строке над оглавлением мелкая пилюля читается как случайный остаток шапки. */
/* Нижнее поле ОТРИЦАТЕЛЬНОЕ: оглавление категорий прижато к полю поиска — per direct request
   («категории в „Все заметки“ сделать ближе к поиску, уменьшить отступ сверху»). Замер объяснил,
   почему обычного нуля здесь мало: между строками работает `gap` родителя (20px), а margin его не
   отменяет — при margin-bottom: 2px видимый зазор был 24px на телефоне и 50 на десктопе. Ряд
   чипов вдобавок несёт компенсацию липкости (padding-top: 30, а на мобилке ещё и margin-top: −28)
   — она к отступу не относится и не тронута, но входит в сумму, поэтому значения для двух ширин
   разные. Замер после правки: 12px на десктопе, 10px на телефоне. */
/* Отрицательного нижнего поля здесь больше НЕТ: им гасили gap родителя за ряд чипов, который
   теперь считает свои отступы сам (см. .doska-collection-folder-chips). Поле поиска не должно
   знать, что стоит под ним. */
.doska-inline-search { width: 100%; margin: 0; }
/* На телефоне значение своё: там ряд чипов дополнительно поднят компенсацией липкости
   (margin-top: −28), и общий минус 38 увёл бы оглавление ПОД поле. Замер: −38 → зазор −16
   (наложение), −12 → 10px. Правило стоит ПОСЛЕ базового и с удвоенным классом — иначе базовое
   (0,1,0) ниже по файлу перебило бы медиазапрос той же специфичности (готча №1). */
@media (max-width: 768px) {
  /* см. базовое правило: компенсация переехала в сам ряд чипов */
  /* Поиск ближе к заголовку «Все заметки» — per direct request («на мобилке во „Все заметки“ от
     текста „Все заметки“ до поиска уменьшить отступ»). Замер разобрал те 56px на три слагаемых:
     нижнее поле шапки (12), верхнее поле строки действий (10 — сама строка на этом экране пустая,
     сортировка скрыта, а поле всё равно считается) и `gap` родителя (20). Первые два гасим у
     источника, третий — отрицательным полем самого поиска. */
  .doska-allnotes-header.doska-allnotes-header.doska-allnotes-header { margin-bottom: 0; }
  .doska-allnotes-header.doska-allnotes-header .doska-stash-folder-content-actions.doska-stash-folder-content-actions:empty,
  .doska-allnotes-header.doska-allnotes-header .doska-stash-folder-content-actions.doska-stash-folder-content-actions { margin-top: 0; }
  /* 8pt: подтяжка к скрытому заголовку и зазор до оглавления — шагами сетки. */
  .doska-inline-search.doska-inline-search { margin-top: calc(-1 * var(--s-2)); }
}
/* Внутри спейса своё значение — и по той же причине, по которой оно вообще отрицательное: минус
   компенсирует `gap` РОДИТЕЛЯ, а родители тут разные (замер: 20px на «Все заметки», 16 внутри
   спейса), плюс ряд чипов здесь без компенсирующего padding-top (высота 52 против 78). С общим
   −38 оглавление наезжало на поле (замер: чипы на 278 при нижней кромке поля 300). */
/* 8pt: внутри спейса под поиском сразу идут карточки, и −4 давали 12px — карточки «липли» к полю
   (per direct request «слишком близко карточки к поиску»). Ноль оставляет чистые 16 от `gap`
   колонки — шаг сетки. */
.doska-inline-search--space.doska-inline-search--space { margin-bottom: 0; }
@media (max-width: 768px) {
  .doska-inline-search--space.doska-inline-search--space { margin-bottom: 0; }
}
.doska-inline-search .doska-search,
.doska-inline-search .doska-search-input-row,
.doska-inline-search input { width: 100%; max-width: none; }
/* Высоту задаёт .doska-search, а не .doska-search-input-row: замер показал, что строка ввода
   схлопнута в ноль (её роль в этой вёрстке чисто группирующая), и правило на ней ничего не давало. */
.doska-inline-search .doska-search {
  min-height: 52px; padding: 0 18px; border-radius: var(--doska-radius-lg); box-sizing: border-box;
  display: flex; align-items: center;
  /* Ширину и поля гасим явно: компонент нёс их из шапки первого уровня и вылезал за колонку на
     48px (замер: 1322 против 1274). */
  width: 100%; max-width: 100%; margin: 0;
}
/* На мобилке поле норовит взять ширину экрана (замер: 390 при колонке 342) — прижимаем к колонке. */
/* Компонент поиска раскрывался ПОВЕРХ шапки: замер показал `position: absolute; left: 195px;
   right: -195px; width: 390px` — правило из шапки первого уровня, где он и должен был перекрывать
   соседей. В своей строке на «Все заметки» он обычный блок, поэтому возвращаем его в поток. Правило
   БЕЗ медиазапроса: замер показал ту же лишнюю ширину и на десктопе (1322 против колонки 1274). */
/* position: RELATIVE, не static — живой отчёт «во „Все заметки“ не работает поиск по заметкам».
   Замер: выдача (.doska-search-results) — absolute, и со static её offsetParent становился
   .doska-board-shell--page, то есть список результатов рисовался в произвольном месте страницы
   (top 291 при поле на top −342) и к полю никак не относился. Relative так же оставляет поле в
   потоке, но возвращает выдаче точку отсчёта. */
.doska-inline-search .doska-search.doska-search {
  /* top/bottom тоже гасим: базовое правило .doska-search сдвигает раскрытое поле вниз, и с
     position:relative этот сдвиг остался живым — замер показал поле на 290 при своей строке на
     180, то есть оно наезжало на оглавление категорий. */
  position: relative; left: auto; right: auto; top: auto; bottom: auto; transform: none;
  width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box;
}
.doska-inline-search { width: 100%; max-width: 100%; }
.doska-inline-search input { font-size: 15px; }
.doska-inline-search .doska-search-icon { width: 18px; height: 18px; }
/* Чип «Спросить», раньше вписанный в правый край поля, УЕХАЛ отдельным кружком рядом с
   уведомлениями (GlobalPageHeader, DoskaPage.tsx) — по прямому запросу «спросить из поиска
   вынести в отдельный кружок рядом с нотификациями». Правый отступ поля под него больше не нужен:
   без этого снятие кнопки оставляло бы пустую полосу 132px/64px справа от поля без причины.
   Стили самой кнопки (.doska-header-ask-btn, .doska-inline-search-ask) оставлены неиспользуемыми
   ниже — решение «в поле / отдельно» менялось уже дважды, и запись здесь дешевле третьего
   переписывания CSS, если оно повторится. */
.doska-inline-search { position: relative; }
/* Сортировка на экране «Все заметки» скрыта — per direct request («во „Все заметки“ убрать
   сортировку»). Само меню и его состояние целы: там же живёт выбор режима показа («Все», «Недавно
   просмотренные», «Созданные мной»), который никто не просил убирать, — поэтому прячем не кнопку
   целиком, а только её. Вернуть — снять это правило.
   ВАЖНО: вместе с кнопкой уходит и вход в выбор режима, поэтому режим остаётся тем, который выбран
   сейчас (по умолчанию «Все») — если вход понадобится, он вернётся отдельной иконкой. */
.doska-allnotes-header .doska-stash-sort-wrap { display: none; }
/* Подписи групп внутри выпадающего меню сортировки: «Показывать» и «Порядок» в одном списке. */
.doska-review-dropdown-label {
  padding: 6px 12px 2px; color: var(--doska-text-muted);
  font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none;
}
.doska-review-dropdown-sep { height: 1px; margin: 6px 8px; background: var(--doska-border); }
/* Предложение разложить нераспределённые карточки — рядом с подписью «Без категории». Кнопка, а
   не плашка: это действие, и оно должно выглядеть нажимаемым. */
/* ЗАМЕТНАЯ — per direct request «кнопку „Разложить по категориям“ сделать в обводке, должна быть
   более заметна». Была приглушённым текстом на рамке цвета `--doska-border`, который на тёмной теме
   почти сливается с фоном: единственное действие раздела «Без тега» выглядело подписью. Теперь
   акцентная рамка, акцентный текст и лёгкая подложка того же тона — тот же приём, что у чипа
   «Спросить» в поиске, чтобы предложение ИИ всюду выглядело одинаково. */
/* На телефоне у кнопки «Разложить по тегам» остаётся только иконка — per direct request. Подпись
   занимала половину строки рядом с названием раздела и счётчиком; действие узнаётся по щётке, а
   полный текст остаётся в подсказке (title) и на широком экране. */

.doska-stash-distribute-hint.doska-stash-distribute-hint {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 12px; padding: 8px 15px; border-radius: var(--doska-radius-md); /* то же правило: действие, а не фильтр */
  border: 1px solid var(--doska-accent);
  background: var(--doska-accent-soft, var(--doska-surface));
  color: var(--doska-accent-ink, var(--doska-text)); font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.doska-stash-distribute-hint:hover {
  background: var(--doska-accent); color: var(--doska-accent-contrast); border-color: var(--doska-accent);
}
.doska-stash-distribute-hint:hover svg { color: var(--doska-accent-contrast); }
.doska-stash-distribute-hint:disabled { opacity: 0.6; cursor: default; }
/* Custom chevron — per direct report ("поправить верстку селектора, где шеврон отступ"), the
   browser's own default arrow sat flush against the text with no reserved spacing, since the
   shared rule above never accounted for a select needing extra room on the right for it. */
.doska-modal-select {
  padding-right: 32px; -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%238a8a94' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 10px 6px;
}
.doska-modal-hint { font-size: 11px; color: var(--doska-text-muted); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.doska-modal-cover-preview {
  position: relative; width: 100%; height: 96px; border-radius: var(--doska-radius-md);
  background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px var(--doska-hairline);
}
.doska-modal-cover-remove {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0, 0, 0, 0.5);
}
.doska-modal-cover-remove:hover { background: rgba(0, 0, 0, 0.7); }
.doska-modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.doska-modal-actions button { padding: 8px 15px; border-radius: var(--doska-radius-md); /* то же правило: действие, а не фильтр */ font-size: 13px; }
.doska-modal-actions button:not(.doska-inline-action) { color: var(--doska-text-muted); }
.doska-modal-actions button:not(.doska-inline-action):hover { background: var(--doska-secondary); color: var(--doska-text); }

/* ПРИГЛАШЕНИЕ ПОДКЛЮЧИТЬ БОТА при первом входе (2026-09-22). Окно шире обычного: это не форма, а
   короткий рассказ «зачем», и четыре строки пользы должны читаться, а не переноситься по слову. */
.doska-tg-onboarding { position: relative; width: 520px; padding: 26px 26px 22px; text-align: left; }
.doska-tg-onboarding-close { position: absolute; top: 12px; right: 12px; }
.doska-tg-onboarding-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: var(--doska-radius-md); margin-bottom: 14px;
  background: var(--doska-accent-soft); color: var(--doska-accent);
}
.doska-tg-onboarding-title { font-family: var(--doska-font-display); font-size: 21px; font-weight: 600; line-height: 1.25; margin: 0 0 8px; }
.doska-tg-onboarding-lead { font-size: 14px; color: var(--doska-text-muted); margin: 0 0 14px; line-height: 1.5; }
.doska-tg-onboarding-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; }
.doska-tg-onboarding-list li { position: relative; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--doska-text); }
.doska-tg-onboarding-list li::before {
  content: ''; position: absolute; left: 4px; top: 8px; width: 5px; height: 5px;
  border-radius: 50%; background: var(--doska-accent);
}
.doska-tg-onboarding-note {
  font-size: 12px; line-height: 1.5; color: var(--doska-text-muted);
  background: var(--doska-hairline); border-radius: var(--doska-radius-md); padding: 10px 12px; margin: 0 0 16px;
}
.doska-tg-onboarding-steps { margin-top: 8px; }
.doska-tg-onboarding-steps > summary { cursor: pointer; color: var(--doska-accent); list-style: revert; }
.doska-tg-onboarding-steps > summary:hover { filter: brightness(1.15); }
.doska-tg-onboarding-steps ol { margin: 8px 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.doska-tg-onboarding-code { display: flex; flex-direction: column; gap: 10px; }
.doska-tg-onboarding-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.doska-tg-onboarding-actions button:not(.doska-inline-action) {
  border: none; background: transparent; color: var(--doska-text-muted);
  font-size: 13px; padding: 7px 10px; border-radius: 6px; cursor: pointer;
}
.doska-tg-onboarding-actions button:not(.doska-inline-action):hover { background: var(--doska-hover); color: var(--doska-text); }
.doska-tg-onboarding-never { margin-left: auto; }

@media (max-width: 720px) {
  .doska-tg-onboarding { width: calc(100vw - 32px); padding: 22px 18px 18px; }
  .doska-tg-onboarding-title { font-size: 20px; }
  .doska-tg-onboarding-never { margin-left: 0; }
}

/* ---------- ProfileMenu.tsx — support contact dialog ---------- */
/* Per direct request ("когда хочешь написать в поддержку, нужно окошко написать (нужно иметь
   возможность также скопировать почту)") — a bare mailto: redirect either does nothing (no
   default mail client) or drops you in an app you didn't want; this dialog shows the address as
   real copyable text, mailto: kept only as a secondary shortcut below it. */
.doska-support-modal-text { font-size: 13px; color: var(--doska-text-muted); line-height: 1.5; margin: 0 0 14px; }
/* Форма обращения прямо в окне поддержки — per direct request «нужно добавить строку, где я сразу
   могу написать своё обращение и отправить, прям в этой форме». Почта ниже остаётся альтернативой. */
.doska-support-textarea.doska-support-textarea {
  width: 100%; min-height: 96px; resize: vertical; line-height: 1.45;
  padding: 10px 12px; margin-bottom: var(--s-1);
}
.doska-support-send.doska-support-send { width: 100%; justify-content: center; margin-bottom: var(--s-2); }
.doska-support-sent {
  display: flex; align-items: center; gap: 8px; margin-bottom: var(--s-2);
  padding: 10px 12px; border-radius: var(--doska-radius-md);
  background: rgba(34, 197, 94, 0.12); color: var(--doska-success); font-size: 13px;
}

.doska-support-email-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--doska-radius-md); border: 1px solid var(--doska-hairline);
  background: var(--doska-surface); color: var(--doska-text-muted); font-size: 13px;
}
.doska-support-email-row span { flex: 1; color: var(--doska-text); font-weight: 600; }
.doska-support-copy-btn { flex-shrink: 0; padding: 5px; border-radius: var(--doska-radius-sm); color: var(--doska-text-muted); }
.doska-support-copy-btn:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-support-mailto-link {
  display: block; text-align: center; margin-top: 12px; font-size: 13px; color: var(--doska-text-muted);
}
.doska-support-mailto-link:hover { color: var(--doska-text); text-decoration: underline; }

/* На телефоне колонка меню не помещается: замер до правки — меню заняло 16..248 из 390, содержимому
   осталось 94px. Там разделы становятся строкой над содержимым, а подпись группы прячется: она
   объясняла столбец, а в строке из двух кнопок объяснять нечего. */
/* Per direct report with a screenshot ("в Интеграции сделай в виде карточек") — this was a bare
   max-width with zero box styling, so Telegram and Google Calendar just read as two stacked
   blocks of plain text with no visual boundary between them at all. Real panel treatment now —
   same surface-raised/hairline-strong/radius-lg combo .doska-clarity-reward already uses for a
   standalone floating card elsewhere in this file. .doska-settings-cards is the new wrapper
   IntegrationsPage.tsx uses to stack them with a real gap instead of relying on each card's own
   margin (which it never had either). */
.doska-settings-cards { display: flex; flex-direction: column; gap: 16px; max-width: 420px; }
/* Integrations fills the available content width. Desktop uses three equal columns;
   the grid reduces to two columns at intermediate widths and one on mobile. */
.doska-integrations-groups { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: none; }
.doska-integrations-group-block { display: flex; flex-direction: column; gap: 10px; }
.doska-integrations-grid { display: grid; width: 100%; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.doska-integrations-grid > .doska-settings-card { max-width: none; }
@media (max-width: 1024px) {
  .doska-integrations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .doska-integrations-grid { grid-template-columns: 1fr; }
}
/* Баблы-фильтры категорий под заголовком — по прямому запросу «категории в интеграциях надо сразу
   в баблах под заголовком». НЕ переиспользует `.doska-collection-folder-chips` целиком (готча:
   тот класс несёт `position: sticky` + отрицательные поля + свой фон — компенсацию липкости под
   горизонтальным скроллом «Все заметки», которой здесь нет и нет того контейнера, для которого
   она посчитана). С ним прилипающий ряд наезжал на заголовок «Интеграции» и закрывал его своим
   фоном при прокрутке — живая жалоба «пропал заголовок». Свой, простой, без залипания. Каждая
   кнопка внутри — обычный `.doska-collection-folder-chip` (сам чип, не строка), у него такого
   якорного багажа нет. */
/* Фильтры под заголовком, СТОЛБИКОМ: бабл «Все / Подключено (N)» сверху, дропдаун категории под
   ним — по прямому запросу «эти типы убрать в дропдаун» (категории были рядом чипов, стали одной
   кнопкой-селектом), уточнению «бабл будет на все и подключенные» (этот переключатель чипом и
   остаётся) и затем «категории делать под баблами» (строкой ниже, а не рядом в одну строку).
   Фильтрация «подключено» — чистый CSS: каждая карточка несёт свою подключённость в data-connected
   уже сейчас (нужна для акцентной рамки), прятать лишнее можно тем же атрибутом, не трогая, что
   смонтировано. */
.doska-integrations-filter-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 20px; }
.doska-integrations-category-filter-hidden { display: none; }
/* !important (25.10.2026, живой отчёт «во вкладке Connected показывает всё подряд») — без него
   правило проигрывало каскаду: та же страница уже использует Tailwind-классы с !important на
   соседнем .doska-settings-card (см. [data-detail-mode] выше в этом же файле), и слой/порядок
   каскада регулярно перебивал обычное display:none без явного приоритета. */
.doska-integrations-groups[data-filter='connected'] .doska-settings-card:not([data-connected]) { display: none !important; }
.doska-integrations-groups[data-filter='connected'] .doska-integrations-group-block:not(:has(.doska-settings-card[data-connected])) { display: none !important; }
/* Мобильный аудит (01.10.2026): единственный способ открыть карточку был текстовой ссылкой без
   вертикального поля — цель нажатия заметно меньше 40px, порога «Пять проходов полировки» этого
   же продукта. Только на телефоне: на десктопе точность мыши не требует такого запаса. */
/* «Назад» в Настройках профиля — по прямому запросу «нужно добавить кнопку назад чтобы выйти»,
   тот же `.doska-pane-back`, что и выше у Интеграций, но всегда виден (по умолчанию класс
   display:none и включается только там, где явно нужен — тот же приём). */
.doska-settings-pane-back.doska-settings-pane-back { display: inline-flex; margin-bottom: 16px; }
/* Тело карточки (подключение/отключение, подсказки) — видно только когда карточка ОТКРЫТА своей
   страницей настроек (см. `data-open`, useIntegrationCardOpen). В сетке карточка — только сводка:
   лого, статус, «Настройки →». */
.doska-settings-card > .doska-integration-card-body { display: none; }
/* Те же ритм и разделители, что и у «Настроек профиля» (`.doska-settings-sections`) — по прямому
   запросу «приведи нормально структуру в порядок для страницы настройки в удобный формат»: тело
   карточки composes секциями `SettingsSection`, стопка и линия-разделитель те же. */
.doska-settings-card[data-open] > .doska-integration-card-body { display: flex; flex-direction: column; margin-top: 14px; }
/* В детальном режиме сетка держит ровно одну открытую карточку — остальные карточки и пустые
   группы (`:has()`, тот же приём, что у фильтра «Подключено» выше) скрываются целиком, а сама
   сетка сжимается до одной колонки: auto-fill иначе оставляет открытую карточку узкой слева и
   пустое место в остальных колонках строки. */
.doska-integrations-groups[data-detail-mode] .doska-settings-card:not([data-open]) { display: none; }
.doska-integrations-groups[data-detail-mode] .doska-integrations-group-block:not(:has(.doska-settings-card[data-open])) { display: none; }
.doska-integrations-grid:has(> .doska-settings-card[data-open]) { grid-template-columns: 1fr; max-width: 560px; }
/* Подключённая карточка помечена не только местом: тонкая рамка акцентом отвечает на вопрос
   «что у меня работает» с одного взгляда, без чтения бейджей внутри. */
.doska-integrations-grid > .doska-settings-card[data-connected] {
  border-color: var(--doska-accent-soft);
}
/* Карточка настроек и интеграции — та же панель, что везде: поверхность (не слой выше неё) и
   волосяная рамка. Прежняя пара surface-raised + hairline-strong делала карточку на шаг светлее
   всех остальных панелей экрана, и ряд интеграций читался ярче содержимого. */
.doska-settings-card {
  max-width: 420px; padding: 18px 20px; background: var(--doska-surface);
  border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
}
.doska-settings-section-title {
  display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600;
  color: var(--doska-text); margin: 0 0 14px;
}
.doska-settings-danger-btn.doska-settings-danger-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--doska-radius-md); /* капсула → шкала: в «Графите» капсулу носят фильтры, действие имеет радиус 12 */ font-size: 13px;
  color: #fff !important; background: var(--doska-danger);
}
.doska-settings-danger-btn.doska-settings-danger-btn:hover { background: var(--doska-destructive); }
.doska-settings-danger-btn.doska-settings-danger-btn:disabled { opacity: 0.4; cursor: default; }
/* Per direct follow-up ("если бот подключен, показывать статус подключения", "улучшить UI
   раздела") — a proper filled pill instead of plain colored text, same weight as the pending
   state's own badge below so "connected" reads as an unmistakable status, not easy-to-miss
   inline copy. */
.doska-settings-connected-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--doska-success); background: rgba(34, 197, 94, 0.12); padding: 5px 10px; border-radius: 6px;
  /* min-width:0 + эллипсис — живая жалоба «привёл вёрстку, чтобы не зарезало»: длинный email без
     этого не ужимался вовсе (flex-item по умолчанию min-width:auto, то есть «не меньше своего
     содержимого»), и соседнюю кнопку «Отключить» выталкивало за правый край карточки. */
  min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doska-settings-pending-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: #f5a623; background: rgba(245, 166, 35, 0.12); padding: 5px 10px; border-radius: 6px;
}
/* Несколько учёток Google в одной карточке: строка на учётку (адрес + «Отключить»), под ними
   ссылка «Подключить ещё учётку». Ссылка не исчезает после первой учётки. */
.doska-google-accounts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.doska-google-account { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.doska-google-account > .doska-settings-danger-btn { flex-shrink: 0; white-space: nowrap; }
.doska-settings-pending-code-row {
  display: flex; align-items: center; gap: 6px; margin: 8px 0;
  padding: 8px 10px; border-radius: var(--doska-radius-sm);
  background: var(--doska-surface); border: 1px solid var(--doska-hairline);
}
.doska-settings-pending-code-row code { flex: 1; font-weight: 600; }
.doska-settings-pending-copy { color: var(--doska-text-muted); padding: 4px; border-radius: var(--doska-radius-sm); flex-shrink: 0; }
.doska-settings-pending-copy:hover { color: var(--doska-text); background: var(--doska-secondary); }

/* Shift+drag rubber-band selection — lives in canvas space as a plain sibling of the cards
   (same coordinate system, so no separate transform math needed), purely visual. */
.doska-marquee {
  position: absolute;
  border: 1px solid var(--doska-accent);
  background: rgba(0, 0, 0, 0.12);
  pointer-events: none;
  z-index: 6;
}

/* The outer "one big rectangle with corner handles around the whole group" frame, layered above
   each item's own individual highlight ring — matches the reference screenshot's group-select
   convention (Miro/Figma-style), shown any time 2+ cards/annotations are in the current selection. */
.doska-group-selection-box {
  position: absolute;
  border: 1.5px solid var(--doska-accent);
  pointer-events: none;
  z-index: 7;
}
.doska-group-selection-handle {
  position: absolute;
  width: 8px; height: 8px;
  background: var(--doska-surface);
  border: 1.5px solid var(--doska-accent);
  border-radius: 2px;
}
.doska-group-selection-handle[data-pos="nw"] { left: -4px; top: -4px; }
.doska-group-selection-handle[data-pos="ne"] { right: -4px; top: -4px; }
.doska-group-selection-handle[data-pos="sw"] { left: -4px; bottom: -4px; }
.doska-group-selection-handle[data-pos="se"] { right: -4px; bottom: -4px; }

.doska-drop-ripple {
  position: absolute;
  z-index: 26;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  border-radius: 999px;
  pointer-events: none;
  animation: doska-drop-ripple-expand 0.65s var(--doska-ease) forwards;
}
@keyframes doska-drop-ripple-expand {
  0% {
    width: 8px; height: 8px; margin-left: -4px; margin-top: -4px;
    box-shadow: 0 0 0 2px var(--doska-accent);
    opacity: 0.9;
  }
  100% {
    width: 240px; height: 240px; margin-left: -120px; margin-top: -120px;
    box-shadow: 0 0 0 1px transparent, 0 0 0 0 rgba(0, 0, 0, 0);
    opacity: 0;
  }
}

/* ---------- onboarding tour ---------- */

.doska-tour-root { position: fixed; inset: 0; z-index: 60; }

.doska-tour-mask {
  position: fixed;
  background: rgba(8, 8, 11, 0.72);
  backdrop-filter: blur(8px);
  transition: top 160ms var(--doska-ease), left 160ms var(--doska-ease), right 160ms var(--doska-ease),
    bottom 160ms var(--doska-ease), width 160ms var(--doska-ease), height 160ms var(--doska-ease);
}

.doska-tour-ring {
  position: fixed;
  border-radius: var(--doska-radius-lg);
  box-shadow: 0 0 0 2px var(--doska-accent), 0 0 0 6px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  animation: doska-tour-ring-pulse 2.2s ease-in-out infinite;
  transition: top 160ms var(--doska-ease), left 160ms var(--doska-ease), width 160ms var(--doska-ease), height 160ms var(--doska-ease);
}
@keyframes doska-tour-ring-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--doska-accent), 0 0 0 6px rgba(0, 0, 0, 0.18); }
  50% { box-shadow: 0 0 0 2px var(--doska-accent), 0 0 0 9px rgba(0, 0, 0, 0.28); }
}

.doska-tour-skip {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 62;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--doska-text-muted);
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong);
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.doska-tour-skip:hover { color: var(--doska-text); border-color: var(--doska-accent); }

.doska-tour-bubble {
  position: fixed;
  z-index: 61;
  width: 360px;
  max-width: calc(100vw - 32px);
  /* backstop: even if the measured/estimated position is ever wrong, the card itself can
     never be taller than the viewport — the description scrolls internally instead of
     pushing the nav buttons off the bottom edge. */
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-lg);
  padding: 14px 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12);
}

.doska-tour-media { display: block; width: 100%; aspect-ratio: 16 / 10; -o-object-fit: cover; object-fit: cover; border-radius: 10px; border: 1px solid var(--doska-hairline); background: var(--doska-surface); margin: 2px 0 10px; }
@media (prefers-reduced-motion: reduce) { .doska-tour-media { display: none; } }

.doska-tour-bubble-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.doska-tour-step-count { margin-left: auto; }
.doska-tour-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  color: var(--doska-text-muted);
}
.doska-tour-close:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-tour-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  /* accent-ink — this Sparkles icon's own accent-soft-equivalent fill, on top of the tour
     bubble's surface-raised background, measures ~3.0:1: under the 3:1 bar for a non-text icon. */
  color: var(--doska-accent-ink);
  box-shadow: none;
}
.doska-tour-step-count {
  font-size: 11px;
  color: var(--doska-text-muted);
  font-variant-numeric: tabular-nums;
}

.doska-tour-say {
  font-size: 13px;
  line-height: 1.45;
  color: var(--doska-text);
  margin: 0 0 8px;
}
.doska-tour-action {
  font-size: 12px;
  font-style: italic;
  /* accent-ink — 12px text on this floating tooltip's surface-raised background is ~3.4:1. */
  color: var(--doska-accent-ink);
  margin: 0 0 12px;
}

.doska-tour-actions { display: flex; justify-content: flex-end; gap: 8px; }
.doska-tour-back {
  font-size: 12px;
  color: var(--doska-text-muted);
  padding: 7px 10px;
  border-radius: var(--doska-radius-md);
}
.doska-tour-back:hover { color: var(--doska-text); }
.doska-tour-next {
  font-size: 12px;
  font-weight: 500;
  color: var(--doska-accent-contrast);
  background: var(--doska-accent);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: none;
}
.doska-tour-next:hover { filter: brightness(1.08); }

/* ---------- mobile: gesture-first chrome ---------- */
/* Desktop builds structure (mouse, hover, drag); phones consume and capture on the go. Below
   768px the interaction model switches wholesale: tap-routing instead of drag-and-drop, long
   press instead of a hotkey-armed mode, and the drawer becomes a bottom sheet instead of a
   right-hand panel — see useIsMobile() and its call sites for the JS-side half of this. */
@media (max-width: 768px) {
  /* bottom sheet: slides up from the bottom edge, draggable-down to dismiss */
  .doska-drawer[data-mobile] {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    border-radius: 16px 16px 0 0;
    border-left: none;
    border-top: 1px solid var(--doska-hairline-strong);
    padding-top: 14px;
    box-shadow: none;
    touch-action: none;
  }
  .doska-drawer-handle {
    width: 36px;
    height: 4px;
    background: var(--doska-hairline-strong);
    border-radius: 999px;
    margin: 0 auto 12px;
  }

  /* Title/breadcrumb/tabs(hidden above)/search/Invite/Telegram/Share/comments/profile all used to
     share this one row, which is why everything below used to be about clearing enough space —
     Invite/Share/"···" have since all moved down into the hero row instead (see ProjectHeader.tsx),
     so this row is back down to just logo, the project-search icon, comments and profile. The
     title gets an explicit floor so it always shows a few readable characters instead of racing
     the buttons to zero (min-width:0 + ellipsis on its own rule is what lets it shrink at all —
     see the desktop rule above; the row itself stays hidden regardless, see .doska-project-title-
     inline{display:none} above — the title lives in the hero now). */
  .doska-project-title-inline .doska-shoot-title-edit { min-width: 64px; }
  .doska-project-header-top .doska-inline-action-label { display: none; }
  .doska-project-header-top .doska-inline-action { padding: 7px 9px; }
  /* Search/profile used to be hidden here outright — confirmed live as broken now, not just
     stale: with Invite/Share/"···" moved out to the hero, this row only ever holds logo + the
     project-search icon + comments + profile, which has room to spare on a real phone (checked at
     390px). Hiding profile specifically also meant there was no way at all to reach ProfileMenu
     (theme toggle, sign out, ...) from inside a project on mobile short of navigating all the way
     back to the gallery first. */
  /* Side padding held at the OLD 16px here, not bumped to the new 20px desktop value — mobile
     margins stay tighter than desktop by design, and this row was already snug enough that the
     header-group overflow fix above (min-width:0 on .doska-breadcrumb) was needed just at 16px;
     20px would only make that row tighter for no benefit on a screen this narrow. */
  /* height:auto + real vertical padding — per direct follow-up ("сделать меню пошире по
     высоте"/"больше внутренних отступов... сверху и снизу") the base rule's fixed height:52px left
     the logo/icons flush against the row's own top/bottom with no breathing room; letting padding
     (not a hardcoded height) drive this row's real height is what actually adds that room. */
  .doska-project-header-top { gap: 6px; height: auto; padding: 14px 16px; max-width: none; margin: 0; }
  /* Per direct request with a reference screenshot ("сделать вот так внутри проекта" — a Notion-
     style compact page header: back arrow, truncated title, "···" all in one row) — this row was
     genuinely empty here before (logo/avatar both removed per earlier direct requests), so the
     title/back-link/menu ProjectHeader.tsx now also renders here on mobile finally have somewhere
     to go. flex:1/min-width:0 on the title (not just its inner .doska-shoot-title-edit, which
     already had its own floor) is what actually lets a long project name ellipsize instead of
     pushing the fixed-width back arrow/"···" off the row's edge. */
  .doska-project-title-inline { display: flex; flex: 1; min-width: 0; }
  .doska-project-title-inline .doska-shoot-title-edit,
  .doska-project-title-inline .doska-shoot-panel-title {
    min-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block;
  }
  /* .doska-project-hero never had a mobile override at all — it silently kept the desktop 32px
     side padding on every phone width, measured live at 390px: hero (icon+title) sat at x:32
     while .doska-project-header-top/.doska-project-breadcrumb-row right above it sat at x:16 (own
     rules just above) and .doska-stash-tab's toolbar/grid right below it sat at x:12 (Pinterest-
     masonry override further down) — a title visibly indented further than BOTH its neighbors, a
     20px jog confirmed with a screenshot ("не должны плясать нигде" sweep). 16px lines it up with
     the header-top/breadcrumb rows immediately above (the near neighbor with no other reason to
     differ); the toolbar/grid below stays at its own deliberately tighter 12px (real Pinterest-
     reference reason, see that rule's own comment) so a small residual 4px jog remains there —
     same order of magnitude as this app's other intentional exceptions, not the accidental 20px. */
  /* padding-top 40 -> 16 (per direct request «поправить вёрстку и отступы на мобилке»): 40px
     были подобраны для ДЕСКТОПА, где над шапкой идёт строка хлебных крошек и отступ отделяет её
     от обложки. На мобилке крошек нет (скрыты отдельным решением), и эти 40px просто съедали
     верх экрана. Замерено: шапка занимала 271px до первой карточки. Остальные зазоры внутри
     (обложка→название 6px, название→аватар 6px, аватар→«Создать» 14px) оставлены — они и так
     соразмерны, лишним был только верхний отступ. */
  .doska-project-hero { padding: 16px; width: calc(100% - 32px); min-height: 150px; }
  /* Пропорции обложки и названия — по присланному референсу («на мобилке размеры сделать по
     балансу так»): там обложка КРУПНЕЕ названия примерно вдвое, а у нас было наоборот — обложка
     40px при названии 34px, то есть они спорили за внимание, и длинное имя проекта («Стрит-
     фотография Saul Leiter в Москве») занимало три строки, оттесняя всё остальное вниз.
     Обложка 40 -> 60, название 34 -> 26: отношение стало ~2.3 против прежних ~1.2, как на
     референсе. Десктоп не тронут — там своя пара размеров и своя раскладка (обложка слева от
     названия, а не над ним). */
  .doska-project-hero-title { font-size: 24px; }
  /* Per direct request ("на мобилке название проекта сделать под обложкой") — mobile-only column
     stack for JUST the cover+title pair, narrower in scope than the row-vs-column debate this same
     hero already went through once (see .doska-project-hero-title-row's own comment right below on
     why THAT wrapper — cover+title vs Создать/Пригласить/Поделиться/"···" — stays row on every
     viewport): this overrides .doska-project-hero-main's own base row layout (icon left, title
     right) for icon-on-top/title-below instead, mobile only. */
  /* Название снова В СТРОКУ с обложкой — per direct request «в проекте на мобилке название сделай
     на уровне с обложкой на одной линии как на вебе». Это отменяет более раннее решение «на
     мобилке название проекта сделать под обложкой»: колоночная раскладка съедала вертикаль (шапка
     занимала 271px до первой карточки, см. историю), а после уменьшения названия до 26px и роста
     обложки до 60px пара нормально помещается в одну строку.
     min-width: 0 у названия обязателен — иначе длинное имя не даст строке сжаться и вытолкнет
     обложку; та же ловушка автоминимума flex-элемента, что была с карточками папок. */
  /* Обложка и название — В ОДНУ СТРОКУ (per direct request «название проекта верни на мобилке
     рядом с обложкой на одной линии»), а группа кнопок уходит СТРОКОЙ НИЖЕ («эту группу кнопок
     опусти под название проекта»).
     Механика: пара «обложка+название» получает flex-basis 100%, то есть занимает первую строку
     целиком, а родитель с flex-wrap переносит всё остальное — «+» и кластер
     Пригласить/Поделиться/«···» — на вторую. Порядком закрепляем, что «+» идёт первым.
     Так раскладка описана в одном месте, без новых контейнеров в разметке. */
  .doska-project-hero-main {
    flex-direction: row; align-items: center; gap: 12px;
    flex: 1 1 100%; min-width: 0;
  }
  /* row-gap 12 -> 20px — per direct request «от обложки чуть больше отступ вниз до кнопок».
     Это зазор МЕЖДУ строками обёрнутой строки: первая — обложка с названием, вторая — кластер
     кнопок. Именно row-gap, а не margin у кнопок: margin пришлось бы вешать на каждый элемент
     второй строки и он бы удваивался с общим gap родителя. */
  /* column-gap задан отдельно от row-gap — per direct report «нужно чтобы был одинаковый отступ
     между всеми кнопками + пригласить шаринг и три точки».
     Причина неравенства структурная: «+» лежит прямо в .doska-project-hero-title-row (её gap был
     14px), а Пригласить/Поделиться/«···» — во вложенном .doska-project-hero-actions (gap 6px). То
     есть между «+» и следующей кнопкой было 14px, а между остальными 6px. Выравниваем обе величины
     к 8px; row-gap (расстояние до строки с названием) остаётся 20px и от этого не зависит. */
  .doska-project-hero-title-row { flex-wrap: wrap; row-gap: 20px; -moz-column-gap: 8px; column-gap: 8px; }
  .doska-project-hero-actions { gap: 8px; }
  .doska-project-hero-actions-row { gap: 8px; }
  .doska-project-hero-title-row > .doska-project-hero-mobile-create { order: 1; }
  .doska-project-hero-title-row > .doska-project-hero-actions-row { order: 2; }
  /* «···» в этой же строке использует общий .doska-pill-btn, у которого фон var(--doska-surface)
     с непрозрачной hairline-обводкой, а соседи (Пригласить/Поделиться/«+») — .doska-inline-action
     с полупрозрачной accent-заливкой. Рядом это читалось как кнопка из другого набора
     (per direct report «для три точки тоже в кругу фон должен быть такой же прозрачности как и
     рядом»). Приводим к соседям: та же заливка, та же прозрачность, без обводки.
     Селектор через родителя (0,2,0 + элемент) — .doska-pill-btn задаёт свой фон удвоенным
     селектором, и одиночного класса не хватило бы (готча №1). */
  .doska-project-hero-actions .doska-pill-btn.doska-pill-btn {
    background: var(--doska-accent-soft);
    border-color: transparent;
    /* 36 -> 44px — per direct request «круг с иконкой три точки сделать так же по размеру как и
       остальные». Соседи по строке (Пригласить/Поделиться/«+») уже 44px: это минимум удобного
       нажатия пальцем, и «···» выпадал из ряда, будучи на 8px меньше. Правило на 36px (строка
       ~2283) писалось для ДЕСКТОПНОЙ плотности этой же строки и там остаётся. */
    width: 44px; height: 44px;
  }
  .doska-project-hero-title-edit { min-width: 0; flex: 1 1 auto; }
  /* .doska-project-hero-title-row's own mobile-only override removed here — the base rule (see
     that class) is back to row/side-by-side on every viewport (per direct follow-up "поделиться,
     шарить, три точки перенести в правый угол справа от названия проекта"), so a mobile-only
     column duplicate here would fight it. The old flex:initial/width:100% override below is gone
     for the same reason — it forced this box to the row's FULL width, which only made sense while
     the row itself was a column; kept as flex:1/min-width:0 (base rule) so the title still shrinks
     and wraps onto a second line instead of shoving Invite/Share/"···" off the right edge on a
     narrow phone, same mechanism the desktop rule's own comment describes. */
  .doska-project-header-top .doska-inline-action { padding: 6px 8px; }
  .doska-header-group { gap: 4px; }
  /* Invite used to be hidden unconditionally here too, back when it lived in this same crowded
     row — it's a hero-row action now (see ProjectHeader.tsx), and hiding it there left no way to
     invite a collaborator from mobile at all (confirmed live: button silently absent, not just
     compacted). Icon-only instead, matching Share right beside it, so "Создать заметку" — the
     actual primary action — keeps the room it needs on a narrow screen rather than word-wrapping
     onto two lines fighting the other three buttons for space (confirmed live at 390px). */
  .doska-project-hero-actions .doska-inline-action-label { display: none; }
  /* Collapsing the label above left the button's own padding (7px 12px, sized for icon+text)
     unchanged — measured live: Пригласить/Поделиться rendered as 37x27 pills sitting directly
     beside ProjectMenu's "···" (.doska-pill-btn, 44x44 on mobile per the rule below) in this same
     hero row, three icon-only buttons at two different sizes/heights. Icon-only "···" is already
     the mobile convention every other header trigger uses; matching Invite/Share to that same
     44x44 square (not inventing a third size) is what makes the row read as one consistent group
     instead of a primary pill next to two shrunken chips next to a full-size circle. */
  /* 44 -> 40 (--s-5): рядом стоят «•••» и «Создать», обе 40 по 8pt-сетке, и три размера в одной
     строке снова разъезжались (замер: 44/44/40/40, и вертикальные центры расходились на 2px).
     Размер один на весь кластер — это и есть то самое «читается как один набор», ради чего
     Пригласить/Поделиться когда-то и приводили к соседям. */
  .doska-project-hero-actions .doska-inline-action { width: var(--s-5); height: var(--s-5); padding: 0; justify-content: center; }
  /* Отдельный margin у «Создать» на телефоне не нужен: между всеми четырьмя кнопками работает
     общий gap строки, а лишние 8px делали разрыв 16 против 8 у соседей. */
  .doska-project-actions-bar .doska-project-hero-create-inline { margin-left: 0; }
  /* Fixed-width now (above) but still plain flex ITEMS in a row that measured 328px of content
     against only 326px available at 390px (32px hero side padding × 2) — flex-shrink's default
     distribution doesn't split a 2px deficit evenly across siblings of very different base sizes,
     it landed entirely on "Пригласить" alone (42px measured, not 44 like Share/"···" right beside
     it — a NEW 2px mismatch introduced by the fix above). flex-shrink:0 on every hero-row child
     stops any of them from ever giving up their set size; the 8px->6px gap trim recovers the
     difference so the row still fits without relying on shrinkage at all. */
  /* Back on mobile — per direct follow-up with a screenshot ("в моб версии под названием доски
     нужно отображать эти кнопки": Пригласить/Поделиться/···), reversing the earlier full hide
     (was `display: none`, see the git history/this comment's own prior wording) that left NO way
     to invite/share from mobile at all short of the desktop site. Every fine-tuning rule below
     this row's own historical sizing (gap/flex-wrap/icon-only collapse) already targets this row
     correctly now that it's visible again. */
  .doska-project-hero-actions { display: flex; gap: 6px; flex-wrap: wrap; row-gap: 8px; }
  .doska-project-hero-actions > * { flex-shrink: 0; }
  /* Центрирование шапки на мобилке ОТМЕНЕНО — per direct request «на мобилке сделай такое же
     выравнивание как на вебе» со скриншотом отцентрованной шапки. Раньше здесь стоял блок,
     который центрировал всю вертикаль (hero, пару обложка+название, строку с ними и ряд
     действий) и ради этого разворачивал .doska-project-hero-title-row в колонку — потому что
     .doska-project-hero-main объявлена `flex: 1` и одним `justify-content: center` строку не
     центрировать. Правила просто сняты, а не переписаны: без них мобилка наследует базовые
     (align-items: flex-start + text-align: left и строка row), то есть ровно веб.

     Что при этом ВЕРНУЛОСЬ само: Пригласить/Поделиться/«···» снова справа от названия, как на
     десктопе — это было прежнее решение («поделиться, шарить, три точки перенести в правый угол
     справа от названия проекта»), которое центрирование временно отменяло.

     Что НЕ трогаем: .doska-project-hero-main остаётся колонкой (обложка НАД названием) — это
     отдельное решение по отдельному запросу («на мобилке название проекта сделать под обложкой»),
     оно про порядок, а не про выравнивание, и правило живёт выше в этом же блоке. */
  /* Создать alone stays out of this row on mobile — per direct follow-up ("убрать тут кнопку
     создать на мобилке"), the floating bottom bar's own "+" (.doska-header-create-btn) already
     covers note creation there, so a second copy right above it would read as a duplicate. The
     other three actions (Пригласить/Поделиться/···) have no such bottom-bar equivalent, which is
     exactly why they're back per the follow-up above instead of staying hidden alongside this one. */
  /* СНОВА ВИДНА на телефоне — живой отчёт «на мобилке внутри проекта забыл кнопку добавить».
     Прятали её как дубль (комментарий выше): предполагалось, что создание закрывает плавающий «+»
     внизу экрана и отдельная кнопка в шапке была бы повтором. С тех пор «Создать» вынесли ИЗ меню
     первого уровня внутрь спейса, к «•••» — и на телефоне не осталось ничего: ни строки действий
     спейса, ни кнопки в шапке. Форма — круг 40×40 без подписи, как у соседей по кластеру
     (Пригласить / Поделиться / «•••»): строка читается как один набор одинаковых кнопок, а не как
     широкая кнопка плюс полоса иконок. Тройной класс — специфичность базового правила (0,3,0)
     выше в файле, при равенстве спор решал бы порядок строк (готча №1). */
  .doska-project-hero-create-inline.doska-project-hero-create-inline.doska-project-hero-create-inline {
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--s-5); height: var(--s-5); padding: 0; border-radius: 6px;
  }
  .doska-project-hero-create-inline .doska-inline-action-label { display: none; }
  /* Снова показана и растянута на всю ширину под названием проекта — per direct request «на
     мобилке кнопка создать будет во всю ширину под названием проекта». Отменяет предыдущее
     `display: none` (её прятали как дубль плавающего «+» внизу экрана). Дубля не будет: сама
     кнопка живёт в hero ПОД строкой с названием, а плавающий «+» — отдельный слой внизу; на
     референсе пользователя это именно широкая кнопка в шапке.
     width:100% + justify-content:center — это flex-элемент колоночного .doska-project-hero,
     поэтому одной ширины мало: без центрирования иконка с подписью прижались бы к левому краю
     растянутой кнопки. flex-shrink базового правила снимаем — тянемся, а не держим свой размер.
     Высота 36 -> 44: полноширинная кнопка на телефоне читается как основное действие экрана. */
  /* Кружок с «+» вместо широкой кнопки — per direct request «кнопку создать просто в круге с
     плюсиком будет, рядом добавить из три точки поделиться и пригласить». Теперь это четвёртый
     элемент того же кластера действий (+ / Пригласить / Поделиться / «···»), все одного размера
     44x44 — то есть строка читается как один набор, а не как кнопка плюс отдельная полоса.
     Подпись скрыта, а не удалена из разметки: она остаётся для скринридеров вместе с title. */
  .doska-project-hero-mobile-create-label { display: none; }
  .doska-project-hero-mobile-create.doska-project-hero-mobile-create {
    display: flex; justify-content: center; align-items: center;
    width: 44px; height: 44px; padding: 0; border-radius: 6px;
  }
  /* flex-basis 100% + order + перенос у РОДИТЕЛЯ — ТОЛЬКО для шапки проекта, где кнопка лежит
     ВНУТРИ .doska-project-hero-title-row (соседи: связка «обложка+название» и блок действий),
     то есть в flex-ROW. Первая попытка с одним `width: 100%` дала ровно то, что на скриншоте
     пользователя: кнопка встала третьим элементом той же строки, налезла на заголовок и вылезла
     за правый край. Basis 100% при flex-wrap переносит её на собственную строку, order: 3 держит
     её после названия и действий.
     Дочерний селектор обязателен: та же кнопка переиспользуется во «Все заметки»
     (.doska-allnotes-create), а там родитель — flex-КОЛОНКА. Замерено: без ограничения `order: 3`
     переставлял её ПОД табы (они с order 0), а `flex-basis: 100%` в колонке задаёт не ширину, а
     ВЫСОТУ — то есть оба свойства там не просто лишние, а вредны. */
  /* Кнопка больше не занимает свою строку: она стала кружком в кластере действий, поэтому
     ни flex-basis: 100%, ни order, ни перенос строки родителю уже не нужны. */
  .doska-project-hero-title-row > .doska-project-hero-mobile-create { flex: 0 0 auto; }
  /* flex-wrap, not just the gap trim above — that trim only balances the books at exactly 390px.
     At 360px (this session's own narrower Android spot-check) the SAME fixed-size row measured
     328px of content against just 296px available (32px hero side padding × 2 off a 360px
     screen) — flex-shrink:0 means nothing can give, so without wrapping the row overflowed its
     own container by 32px, pushing "···" flush against the true screen edge with none of the
     hero's own 32px right margin left. Wrapping only ever kicks in once a screen is actually too
     narrow to fit the row at full size — still one line at 390px+ (confirmed live, both fixes
     coexist fine), "Создать заметку" drops to its own row above Invite/Share/"···" below 360-ish. */
  /* The trigger-relative-anchor whack-a-mole that used to live here (a mobile-only override
     chasing .doska-project-menu/.doska-share-popover's own two competing edge overflows, one
     patch per screen width that broke the other) is gone now that both menus portal to
     document.body at a JS-measured, viewport-clamped position instead of a CSS anchor relative to
     any wrap — see .doska-project-menu's own comment near its base rule for the full story. */

  /* 44x44 minimum hit targets (Apple/Google baseline) — the icon inside stays the same small
     size, only the tappable box around it grows. */
  .doska-link-handle { width: 30px; height: 30px; right: -14px; }
  .doska-comment-pin { width: 30px; height: 30px; margin-left: -15px; margin-top: -15px; }
  .doska-pill-btn { width: 44px; height: 44px; }
  /* Project header's own avatar (top utility row: search/comments/avatar) had no mobile override
     at all — measured live sitting at its base 30x30 next to the two 44x44 pill-btns fixed just
     above, in the exact same row. Scoped to .doska-header-group (this header's own right-side
     icon cluster) rather than the bare class — the gallery topbar's avatar has its own separate
     36px story, fixed independently just below where that context is defined. */
  /* Used to be pulled up to sit opposite the logo via position:fixed on THIS instance (see git
     history) — per direct report ("при скролле далеко отходит от меню 1го уровня, есть просвет"),
     that meant it never moved during scroll while the sticky filter/sort toolbar right below it
     DID track the scrolling header normally, opening a growing gap between two things meant to
     read as one row. ProjectHeader.tsx now renders a genuine second ProfileMenu instance as an
     actual sibling of the logo (see its own comment, .doska-header-mobile-profile below) — this
     bottom-dock original just hides on mobile instead of faking a different position. */
  .doska-header-group .doska-profile-menu { display: none; }
  .doska-header-mobile-profile { display: block; margin-left: auto; }
  /* Same 44x44 touch-target bump the old position:fixed instance had at this width. */
  .doska-header-mobile-profile .doska-profile-avatar { width: 44px; height: 44px; font-size: 13px; }
  /* Per direct follow-up with a screenshot ("в моб версии профиль нужно в правый угол
     переместить") — margin-left:auto above pushes this trigger to the row's right edge again
     (matching the original position:fixed placement it replaced), but WITHOUT position:fixed, so
     it keeps scrolling together with the header instead of reopening the "просвет" gap that fix
     was for. Trigger sits back at the right edge now, so the dropdown's own base rule
     ([data-placement="down"]: right:0) is already correct — no left-align override needed here
     the way the left-edge placement briefly required. */
  .doska-drawer-nav button { width: 40px; height: 40px; }

  /* hover-gated affordances don't exist on touch — link handles and comment marks stay
     visibly present instead of waiting for a hover that will never come. */
  .doska-link-handle { opacity: 0.55; animation: none; }
  .doska-card-root:hover .doska-link-handle { opacity: 0.55; }

  /* Same hover-gate issue, worse consequence here — .doska-stash-card's menu-btn/promote buttons
     only reveal via `.doska-stash-card:hover`, and a card with hover-reactive CSS on ITSELF (not
     just a descendant) is exactly the shape that makes iOS Safari treat the first tap as "enter
     hover state" and only fire the actual click on a second tap. Per direct report ("нужно чтобы
     с первого тапа открывались заметки") — opening a note took two taps: one to reveal these
     buttons, one to actually open. Neutralized (opacity pinned to 0 whether or not :hover
     matches) rather than made always-visible — two icons stacked over a ~170px-wide card would
     still crowd the title text, AND all four actions (pin/move/share/delete) already live in the
     note's own detail drawer (StashItemDrawer / StashModalActions) once opened, so nothing is
     actually lost, just relocated one tap deeper. pointer-events: none so an invisible-but-still-
     hit-testable button can't silently eat a tap meant for the card underneath it. */
  /* .doska-stash-card-ai-bubble still gets this treatment — same first-tap-enters-hover-state bug
     as .doska-stash-card-menu-btn used to (see git history), and the same "not actually lost"
     reasoning: StashModalActions (the drawer's own action row, one tap deeper) gets a matching
     "Спросить ИИ" entry for touch devices per this component's own comment. */
  .doska-stash-card-ai-bubble { opacity: 0; pointer-events: none; }
  .doska-stash-card:hover .doska-stash-card-ai-bubble { opacity: 0; }
  /* Same first-tap-enters-hover-state reasoning as .doska-stash-card-ai-bubble right above — and
     genuinely nothing lost here either: a link/place card's whole face already opens item.sourceUrl
     directly on tap (LinkCard's own handleCardClick), this button was only ever a discoverability
     shortcut for the exact same destination a hover reveals on desktop. */
  .doska-stash-card-source-btn { opacity: 0; pointer-events: none; }
  .doska-stash-card:hover .doska-stash-card-source-btn { opacity: 0; }
  /* .doska-stash-card-menu-btn's own matching neutralization got walked back in two steps — list
     view first ("в списках не вижу три точки"), then grid too right after ("три точки также нужно
     на карточках"): folder tiles in this exact same screen (FolderCard, a different component)
     always showed their own "···" the whole time, so notes/links/etc. going without read as an
     inconsistency once someone was actually comparing them side by side, not the "nothing lost,
     just relocated one tap deeper" simplification this was meant to be. Unconditional now — no
     hover-reveal, no neutralization, same on every viewMode; the drawer's own actions (pin/move/
     share/delete) stay reachable too, just no longer the ONLY way in on mobile. */
  /* Удержание карточки должно доставаться НАМ, а не системным жестам браузера — четвёртая
     причина отчёта «иногда захвата нет». На длинное нажатие мобильные браузеры по умолчанию
     показывают своё: iOS — лупу выделения текста и callout-меню, Android — контекстное меню и
     выделение слова. Пока это происходит, наш таймер удержания либо отменяется движением, либо
     жест уходит системе, и перетаскивание просто не начинается — причём непредсказуемо, от чего и
     ощущение «через раз».
     touch-action: pan-y pinch-zoom оставляет вертикальную прокрутку списка и зум щипком (без него
     страница перестала бы масштабироваться на карточках), но отдаёт нам всё остальное. */
  .doska-stash-card {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
         user-select: none;
    touch-action: pan-y pinch-zoom;
  }
  .doska-stash-card-menu-btn { opacity: 1; pointer-events: auto; }

  .doska-search-meta { display: none; }

  /* iOS Safari auto-zooms the ENTIRE PAGE on focus for any text input/textarea whose computed
     font-size is under 16px — confirmed live ("не допускать такого зума авто"), tapping the
     Хранилка search box (12.5px) zoomed the whole layout in and it stayed zoomed after. This
     codebase has dozens of small-font inputs (search boxes, rename fields, the note-create
     textarea, modal inputs...) — rather than hunt every one down individually (and re-break this
     the next time a new input ships at its own small font-size), one blanket floor. !important
     over the usual doubled-selector trick used elsewhere in this file — this is a functional
     guarantee (stop unwanted zoom), not a one-off visual override, so it needs to win regardless
     of whatever specificity a future input rule happens to have. Visual size is unaffected
     everywhere else; this only raises the FOCUSED-while-typing size on mobile. */
  .doska-root input, .doska-root textarea { font-size: 16px !important; }
}
@keyframes doska-retouch-spin { to { transform: rotate(360deg); } }

.doska-retouch-cleanup-patch {
  position: absolute;
  border-radius: var(--doska-radius-sm);
  backdrop-filter: blur(14px) saturate(1.1);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* generation-flavored variant of the skeleton scan — a tinted accent sweep instead of the
   plain white one, so a card conjured by the taste engine reads differently from a plain upload */
.doska-card-skeleton[data-generating] { background: rgba(20, 16, 30, 0.78); }
.doska-card-skeleton[data-generating]::before {
  background: linear-gradient(115deg, transparent 30%, rgba(0, 0, 0, 0.55) 50%, transparent 70%);
  animation-duration: 1.3s;
}

/* ---------- "+" generate control: brief popover (desktop) / bottom sheet (mobile) ---------- */

.doska-generate-anchor { position: relative; }

.doska-generate-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 300px;
  background: rgba(var(--doska-glass-rgb), 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-lg);
  padding: 14px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.doska-generate-sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--doska-surface);
  border-top: 1px solid var(--doska-hairline-strong);
  border-radius: 16px 16px 0 0;
  padding: 12px 16px 20px;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  touch-action: none;
}

.doska-generate-input-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--doska-surface-raised);
  border-radius: var(--doska-radius-md);
  padding: 10px 10px 10px 12px;
}
.doska-generate-input-icon { color: var(--doska-accent); margin-top: 3px; flex-shrink: 0; }
.doska-generate-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  resize: none;
  min-height: 40px;
  font-family: inherit;
  font-size: 14px;
  color: var(--doska-text);
}
.doska-generate-input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-generate-input::placeholder { color: var(--doska-text-muted); }
.doska-generate-mic {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--doska-text-muted);
  flex-shrink: 0;
}
.doska-generate-mic:hover { color: var(--doska-text); }
.doska-generate-mic[data-active] { color: var(--doska-accent-contrast); background: var(--doska-accent); animation: doska-pulse 0.9s ease-in-out infinite; }

/* ---------- hybrid generate/search split view ---------- */

.doska-generate-popover[data-split] { width: 560px; }

.doska-hybrid-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doska-hybrid-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.doska-hybrid-col-title { display: flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--doska-text-muted); }
.doska-hybrid-col-title svg { flex-shrink: 0; }

.doska-hybrid-ai-tile {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--doska-radius-md);
  overflow: hidden;
  background: var(--doska-surface-raised);
  box-shadow: 0 0 0 1px var(--doska-hairline);
}
.doska-hybrid-ai-tile:hover { box-shadow: 0 0 0 2px var(--doska-accent); }
.doska-hybrid-ai-tile[data-added] { box-shadow: 0 0 0 2px var(--doska-glow-location); }
.doska-hybrid-ai-tile img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; display: block; }
.doska-hybrid-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(0, 0, 0, 0.14) 30%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.14) 70%);
  background-size: 220% 100%;
  animation: doska-scan-sweep 1.3s linear infinite;
}
.doska-hybrid-ai-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 7px 8px;
  font-size: 10px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.85);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  max-height: 50%;
  overflow: hidden;
  text-align: left;
}

.doska-hybrid-added-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
  background: var(--doska-glow-location);
  padding: 3px 6px;
  border-radius: 6px;
  box-shadow: none;
}

.doska-hybrid-real-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 360px;
  overflow-y: auto;
}
.doska-hybrid-real-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--doska-radius-sm);
  overflow: hidden;
  background: var(--doska-surface-raised);
  text-align: left;
  box-shadow: 0 0 0 1px var(--doska-hairline);
}
.doska-hybrid-real-tile:hover { box-shadow: 0 0 0 2px var(--doska-accent); }
.doska-hybrid-real-tile[data-added] { box-shadow: 0 0 0 2px var(--doska-glow-location); }
.doska-hybrid-real-tile img { width: 100%; aspect-ratio: 4 / 3.2; -o-object-fit: cover; object-fit: cover; display: block; }
.doska-hybrid-real-meta { padding: 5px 6px 6px; }
.doska-hybrid-real-source {
  display: inline-block;
  font-size: 10px;
  text-transform: none;
  letter-spacing: 0;
  /* accent-ink — 8.5px micro-label, nowhere near a large-text exemption. */
  color: var(--doska-accent-ink);
  margin-bottom: 2px;
}
.doska-hybrid-real-title { display: block; font-size: 11px; line-height: 1.3; color: var(--doska-text); }
.doska-hybrid-real-credit { display: block; font-size: 10px; color: var(--doska-text-muted); margin-top: 1px; }
.doska-hybrid-real-tile .doska-hybrid-added-badge { padding: 3px; }

.doska-hybrid-mobile { display: flex; flex-direction: column; gap: 10px; }
.doska-hybrid-tabs { display: flex; gap: 6px; }
.doska-hybrid-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  padding: 8px;
  border-radius: 6px;
  background: var(--doska-surface-raised);
  color: var(--doska-text-muted);
}
.doska-hybrid-tab svg { flex-shrink: 0; }
/* accent-ink — tab label text on its own accent-soft fill, same shortfall as the chips above. */
.doska-hybrid-tab[data-active] { background: var(--doska-accent-soft); color: var(--doska-accent-ink); }

.doska-generate-tag-group { display: flex; flex-direction: column; gap: 6px; }
.doska-generate-tag-label { font-size: 10px; text-transform: none; letter-spacing: 0; color: var(--doska-text-muted); }
.doska-generate-tag {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--doska-surface-raised);
  color: var(--doska-text-muted);
  border: 1px solid transparent;
}
.doska-generate-tag:hover { color: var(--doska-text); }
/* accent-ink — same accent-soft-fill text contrast fix as the other active chips/tabs above. */
.doska-generate-tag[data-active] { background: var(--doska-accent-soft); color: var(--doska-accent-ink); border-color: rgba(0, 0, 0, 0.4); }

.doska-generate-photographers { display: flex; gap: 6px; }
.doska-generate-photographer {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--doska-surface-raised);
  color: var(--doska-text-muted);
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}
.doska-generate-photographer:hover { color: var(--doska-text); }
.doska-generate-photographer[data-active] {
  background: var(--doska-accent-soft);
  /* accent-ink — 10.5px/600 initials text on this button's own accent-soft fill. */
  color: var(--doska-accent-ink);
  border-color: var(--doska-accent);
  box-shadow: none;
}

.doska-generate-negative-hint { font-size: 11px; color: var(--doska-text-muted); font-style: italic; margin: 0; }

.doska-generate-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: 999px;
  background: var(--doska-accent);
  color: var(--doska-accent-contrast);
  font-size: 13px;
  font-weight: 500;
  box-shadow: none;
}
.doska-generate-submit:disabled { opacity: 0.35; box-shadow: none; }
.doska-generate-submit:not(:disabled):hover { filter: brightness(1.08); }

/* generated-card prompt playback in the drawer */
.doska-generation-brief, .doska-generation-prompt { margin-bottom: 10px; }
.doska-generation-prompt-text { font-size: 12px; line-height: 1.5; color: var(--doska-text-muted); }

.doska-refine-row { display: flex; gap: 6px; }
.doska-refine-input {
  flex: 1;
  background: var(--doska-surface-raised); border: 1px solid transparent; border-radius: var(--doska-radius-sm);
  padding: 7px 9px; font-size: 12px; color: var(--doska-text); outline: none;
}
.doska-refine-input:focus { border-color: var(--doska-hairline-strong); }
.doska-refine-input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-refine-input::placeholder { color: var(--doska-text-muted); }
.doska-refine-submit {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-accent-soft); color: var(--doska-accent);
}
.doska-refine-submit:not(:disabled):hover { filter: brightness(1.1); }
.doska-refine-submit:disabled { opacity: 0.35; cursor: default; }

/* ---------- Present Mode: the client-facing cinematic walkthrough ---------- */

.doska-root[data-present] { background: #000; }

/* strip the "engineering kitchen" — link handles, ports, comment icons/badges, the ready-state
   overlay — everything that reads as author tooling rather than a finished concept. Comments
   stay reachable (the C hotkey still arms RegionCommentLayer), just not advertised up front. */
.doska-canvas-viewport[data-present] { background: radial-gradient(ellipse at 50% 40%, #0a0a0d 0%, #000 72%); }
.doska-canvas-viewport[data-present] .doska-link-handle,
.doska-canvas-viewport[data-present] .doska-card-ports,
.doska-canvas-viewport[data-present] .doska-link-target-marker,
.doska-canvas-viewport[data-present] .doska-comment-hint {
  display: none;
}
.doska-canvas-viewport[data-present] .doska-card { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }

.doska-present-edge {
  stroke: var(--doska-accent);
  stroke-width: 1.6;
  opacity: 0.75;
  filter: none;
}

/* Full-screen Gamma-style client presentation — real slides (title/body/image grid), not a
   camera pan over the canvas. Replaces the old .doska-present-bar pill (removed) which only ever
   drove a camera fly-to; this covers the whole viewport itself instead of needing Canvas.tsx's
   dimming underneath to read as "presenting." */
.doska-slidedeck-overlay {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--doska-canvas);
  padding: 64px 48px;
}
.doska-slidedeck-exit {
  position: absolute; top: 20px; right: 20px;
  width: 34px; height: 34px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #9a9aa2; background: rgba(255, 255, 255, 0.06);
}
.doska-slidedeck-exit:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.doska-slidedeck-counter {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: #6f6f78;
}
.doska-slidedeck-loading { display: flex; align-items: center; gap: 10px; color: #9a9aa2; font-size: 13px; }
.doska-slidedeck-slide { max-width: 780px; width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.doska-slidedeck-title { font-size: 30px; font-weight: 600; color: #fff; margin: 0; line-height: 1.25; }
.doska-slidedeck-body { font-size: 15px; color: #c8c8ce; line-height: 1.6; margin: 0; max-width: 620px; }
.doska-slidedeck-grid {
  display: grid; gap: 10px; width: 100%; margin-top: 8px;
  grid-template-columns: repeat(2, 1fr);
}
.doska-slidedeck-grid[data-count="1"] { grid-template-columns: 1fr; }
.doska-slidedeck-grid[data-count="3"], .doska-slidedeck-grid[data-count="5"], .doska-slidedeck-grid[data-count="6"] { grid-template-columns: repeat(3, 1fr); }
.doska-slidedeck-grid img { width: 100%; height: 220px; -o-object-fit: cover; object-fit: cover; border-radius: var(--doska-radius-md); }
.doska-slidedeck-nav {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px;
}
.doska-slidedeck-nav button {
  width: 40px; height: 40px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, 0.08);
}
.doska-slidedeck-nav button:hover { background: rgba(255, 255, 255, 0.16); }
.doska-slidedeck-nav button:disabled { opacity: 0.25; cursor: default; }

@media (max-width: 768px) {
  .doska-slidedeck-overlay { padding: 48px 24px; }
  .doska-slidedeck-title { font-size: 24px; }
  .doska-slidedeck-grid { grid-template-columns: 1fr 1fr; }
  .doska-slidedeck-grid img { height: 140px; }
}

/* Editable slide deck page (Gamma-style list + edit panel) — per direct request ("видишь свою
   презентацию на слайдах и можешь её править и сгенерировать если нужно"), what "Present" opens
   now instead of jumping straight to the read-only .doska-slidedeck-overlay above (that fullscreen
   view is still there, reached via "Показать" — see doska-slides-editor-actions). */
.doska-slides-editor {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column;
  background: var(--doska-canvas);
}
.doska-slides-editor-topbar {
  flex-shrink: 0; height: 56px; padding: 0 16px 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--doska-hairline);
  background: var(--doska-surface);
}
.doska-slides-editor-title {
  font-size: 14px; font-weight: 600; color: var(--doska-text); margin: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.doska-slides-editor-actions { display: flex; align-items: center; gap: 8px; position: relative; flex-shrink: 0; }
.doska-slides-editor-close { position: static; }
.doska-slides-confirm-regenerate {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  box-shadow: none;
  font-size: 12px; color: var(--doska-text); white-space: nowrap;
}
.doska-slides-editor-body { flex: 1; min-height: 0; display: flex; }
.doska-slides-editor-list {
  width: 220px; flex-shrink: 0; overflow-y: auto; padding: 12px;
  display: flex; flex-direction: column; gap: 4px;
  border-right: 1px solid var(--doska-hairline);
}
.doska-slides-editor-thumb-row { display: flex; align-items: center; gap: 2px; }
.doska-slides-editor-thumb {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  padding: 8px 9px; border-radius: var(--doska-radius-sm); text-align: left;
  color: var(--doska-text-muted); font-size: 13px;
}
.doska-slides-editor-thumb:hover { background: var(--doska-secondary); color: var(--doska-text); }
.doska-slides-editor-thumb[data-selected] { background: var(--doska-accent-soft); color: var(--doska-text); }
.doska-slides-editor-thumb-num {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; background: var(--doska-surface-raised); color: var(--doska-text-muted);
}
.doska-slides-editor-thumb-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-slides-editor-thumb-actions { display: flex; flex-direction: column; flex-shrink: 0; }
.doska-slides-editor-thumb-actions button { width: 20px; height: 15px; display: flex; align-items: center; justify-content: center; color: var(--doska-text-muted); }
.doska-slides-editor-thumb-actions button:hover { color: var(--doska-text); }
.doska-slides-editor-thumb-actions button:disabled { opacity: 0.25; cursor: default; }
.doska-slides-editor-add {
  display: flex; align-items: center; gap: 6px; margin-top: 4px; padding: 8px 9px;
  border-radius: 999px; font-size: 13px; color: var(--doska-text-muted);
}
.doska-slides-editor-add:hover { background: var(--doska-secondary); color: var(--doska-text); }
.doska-slides-editor-panel { flex: 1; min-width: 0; overflow-y: auto; padding: 40px 56px; max-width: 820px; }
.doska-slides-editor-title-input {
  width: 100%; font-size: 24px; font-weight: 600; color: var(--doska-text); background: none;
  margin-bottom: 16px;
}
.doska-slides-editor-title-input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-slides-editor-title-input::placeholder { color: var(--doska-text-muted); }
.doska-slides-editor-body-input {
  width: 100%; min-height: 160px; font-size: 14px; line-height: 1.6; color: var(--doska-text);
  background: none; resize: vertical;
}
.doska-slides-editor-body-input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-slides-editor-body-input::placeholder { color: var(--doska-text-muted); }
.doska-slides-editor-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 20px; }
.doska-slides-editor-image { position: relative; border-radius: var(--doska-radius-sm); overflow: hidden; }
.doska-slides-editor-image img { width: 100%; height: 100px; -o-object-fit: cover; object-fit: cover; display: block; }
.doska-slides-editor-image button {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.6); color: #fff;
}
.doska-slides-editor-image button:hover { background: rgba(0, 0, 0, 0.85); }
@media (max-width: 768px) {
  .doska-slides-editor-list { width: 140px; }
  .doska-slides-editor-panel { padding: 24px; }
  .doska-slides-editor-title { display: none; }
}

/* Собранный текст-промпт по проекту (see SlideDeckOverlay's toggleDigest) — a plain modal over
   the editor, not another editor-body column, since it's a read-mostly "here's what the AI saw"
   view rather than something you work in alongside the slide list. */
.doska-slides-digest-backdrop {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: center; justify-content: center;
}
.doska-slides-digest {
  width: 560px; max-width: calc(100vw - 48px); max-height: calc(100vh - 96px);
  display: flex; flex-direction: column;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-lg); box-shadow: none;
  overflow: hidden;
}
.doska-slides-digest-header {
  flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px; border-bottom: 1px solid var(--doska-hairline);
  font-size: 13px; font-weight: 600; color: var(--doska-text);
}
.doska-slides-digest-header span { display: flex; align-items: center; gap: 7px; }
.doska-slides-digest-actions { display: flex; align-items: center; gap: 8px; }
.doska-slides-digest-body { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 20px; }
.doska-slides-digest-body pre {
  white-space: pre-wrap; word-break: break-word; font-family: var(--doska-font-ui);
  font-size: 13px; line-height: 1.7; color: var(--doska-text); margin: 0;
}
.doska-shoot-present-btn { font-size: 12px; padding: 6px 10px; white-space: nowrap; }

/* ---------- board-wide comment pins — not anchored to any one card (see canvasPos on
   RegionComment); armed via a header icon, placed by the next canvas click. ---------- */
.doska-canvas-viewport[data-comment-pin-mode] { cursor: none; }
.doska-canvas-comment-pin {
  position: absolute; z-index: 4;
  width: 22px; height: 22px; margin-left: -11px; margin-top: -11px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  /* Per direct report ("комментарий должен быть заливкой чтобы его видеть") — same solid-fill
     treatment already given to the comment-mode cursor and per-card AI bubble this session, in
     place of the paler --doska-glow-color amber that was easy to lose against busy canvas content. */
  background: linear-gradient(135deg, #9a9aa0, var(--doska-accent)); color: var(--doska-accent-contrast);
  box-shadow: 0 0 0 2px var(--doska-surface);
  cursor: pointer; transition: opacity 140ms var(--doska-ease);
}
/* No :hover transform here anymore — the element's own inline `transform: scale(uiScale)` (see
   Canvas.tsx) counters the canvas zoom to keep it a constant screen size, and a stylesheet rule
   can never win a specificity fight against that, so a hover-grow scale here would just be dead
   code. */
.doska-canvas-comment-pin[data-resolved] { opacity: 0.4; background: var(--doska-text-muted); }
.doska-canvas-comment-pin[data-focused] { box-shadow: 0 0 0 2px var(--doska-accent); }
.doska-canvas-comment-popover { z-index: 6; }
.doska-canvas-comment-thread-anchor { position: absolute; z-index: 7; transform-origin: top left; }

/* ---------- comment thread (expanded root + replies + reply composer) — the in-context view
   opened from a board-wide pin, a per-card pin/rect, or navigated to from the review inbox
   (see SET_FOCUSED_COMMENT); shares layout with .doska-comment-popover but needs its own scrolling
   list + compose row, so it's its own set of classes rather than a variant. ---------- */
.doska-comment-thread {
  width: 260px;
  background: var(--doska-surface);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md);
  box-shadow: none;
  overflow: hidden;
}
.doska-comment-thread-header {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 10px; border-bottom: 1px solid var(--doska-hairline);
}
.doska-comment-thread-title { font-size: 12px; font-weight: 600; color: var(--doska-text); flex: 1; }
.doska-comment-thread-close { color: var(--doska-text-muted); padding: 4px; border-radius: var(--doska-radius-sm); }
.doska-comment-thread-close:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-comment-thread-list { max-height: 220px; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 10px; }
.doska-comment-thread-item { display: flex; gap: 7px; }
.doska-comment-thread-item--reply { padding-left: 14px; }
.doska-comment-thread-avatar {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-text-muted); font-size: 10px; font-weight: 600;
}
.doska-comment-thread-item-text { flex: 1; min-width: 0; font-size: 12px; color: var(--doska-text); line-height: 1.4; }
.doska-comment-thread-byline { font-size: 11px; color: var(--doska-text-muted); margin-bottom: 1px; }
.doska-comment-thread-byline b { color: var(--doska-text); font-weight: 600; }
/* Per direct follow-up with a screenshot ("сделать консистентно как поле ввода для ИИ чата") —
   same composer chrome .doska-ai-chat-input-row uses: ONE bordered rounded box containing the
   textarea (its own border stripped below) with the round accent send button inset at the
   bottom-right, focus ring on the whole box. */
/* Та же коробка, что у поля ассистента (.doska-ai-chat-input-row): текст сверху, ряд управления
   снизу, рамка подсвечивается при фокусе — per direct request «поле комментариев привести к подобию
   по стилю с ИИ-ассистентом и кнопке». Раньше здесь была строка «поле + кнопка сбоку», и два поля
   ввода в одном продукте читались как из разных приложений. */
.doska-comment-thread-compose {
  display: flex; flex-direction: column; gap: 4px;
  margin-top: 8px; padding: 8px 8px 8px 12px;
  background: var(--doska-canvas); border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
  transition: border-color 0.15s var(--doska-ease);
}
.doska-comment-thread-controls { display: flex; align-items: center; justify-content: flex-end; }
.doska-comment-thread-compose:focus-within { border-color: var(--doska-accent); }
.doska-comment-thread-compose .doska-mention-input { flex: 1; }
.doska-comment-thread-compose .doska-mention-input textarea,
.doska-comment-thread-compose textarea {
  background: transparent; border: none; box-shadow: none; padding: 4px 6px;
}
.doska-comment-thread-send {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: var(--doska-accent);
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file. Shared by
   StashCommentLog.tsx and CommentThread.tsx, both send buttons were losing their pill fill. */
.doska-comment-thread-send.doska-comment-thread-send {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  /* Тень и поведение при наведении/выключении — один в один с кнопкой отправки ассистента. */
  box-shadow: none;
  transition: filter 0.15s var(--doska-ease), transform 0.1s var(--doska-ease);
}
.doska-comment-thread-send:hover:not(:disabled) { filter: brightness(1.08); transform: scale(1.06); }
.doska-comment-thread-send:disabled { opacity: 0.35; box-shadow: none; cursor: default; }
/* StashCommentLog.tsx reuses .doska-comment-thread-list/-item/etc. above (same avatar/byline/text
   row shape CommentThread.tsx already established) but inline in the drawer's side column instead
   of a floating 260px popover, so no fixed width/border/shadow — just a taller scroll cap and a
   small delete affordance on your own comments. */
.doska-stash-comment-list { max-height: 280px; padding: 0 0 4px; }
.doska-stash-comment-delete {
  flex-shrink: 0; align-self: flex-start; color: var(--doska-text-muted); padding: 3px; border-radius: var(--doska-radius-sm);
}
.doska-stash-comment-delete:hover { color: var(--doska-danger); background: var(--doska-secondary); }
/* 11px icon + 3px padding measured a 17x17 real box on mobile — always-visible (not hover-gated
   like the stash-card row), a genuine destructive-action tap target well under every other fixed
   size this file uses. Not bumped to the full 44px standard (this sits inline in a tight comment
   row, not a toolbar) — 28px matches this file's other "small affordance" precedent (.doska-link-
   handle/.doska-comment-pin), a real improvement without breaking the row's own compact rhythm. */
@media (max-width: 768px) {
  .doska-stash-comment-delete {
    width: 28px; height: 28px; padding: 0; display: flex; align-items: center; justify-content: center;
  }
}

/* ---------- @mention textarea + autocomplete — shared by every comment/reply composer ---------- */
.doska-mention-input { position: relative; }
.doska-mention-input textarea {
  width: 100%; min-height: 44px; resize: vertical;
  background: var(--doska-surface-raised); border: 1px solid transparent; border-radius: var(--doska-radius-sm);
  padding: 7px 8px; font-size: 12px; color: var(--doska-text); outline: none; font-family: inherit;
}
.doska-mention-input textarea:focus { border-color: var(--doska-accent-soft); }
.doska-mention-dropdown {
  position: absolute; bottom: calc(100% + 4px); left: 0; z-index: 20;
  min-width: 160px; max-height: 160px; overflow-y: auto; padding: 4px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-sm); box-shadow: none;
}
.doska-mention-dropdown-item {
  display: flex; align-items: center; gap: 6px; width: 100%; box-sizing: border-box;
  padding: 5px 7px; border-radius: var(--doska-radius-sm); font-size: 12px; color: var(--doska-text); text-align: left;
}
.doska-mention-dropdown-item:hover, .doska-mention-dropdown-item[data-active] { background: var(--doska-secondary); }
.doska-mention-dropdown-avatar {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 999px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-text-muted); font-size: 10px; font-weight: 600;
}
.doska-mention-dropdown-avatar img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }

/* ---------- review row additions: mention tag + reply count ---------- */
.doska-review-row-mention-tag {
  display: inline-flex; align-items: center; gap: 2px; margin-left: 6px;
  /* accent-ink — inherits the review row's small body font-size; 600 weight isn't WCAG "bold"
     (700+) and wouldn't be large enough to matter anyway. */
  color: var(--doska-accent-ink); font-weight: 600;
}
.doska-review-row-footer { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.doska-review-row-footer .doska-link-row-kind { margin-top: 0; }
.doska-review-row-replies { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; color: var(--doska-text-muted); }

/* ---------- native annotations (draw/shapes/arrows/text/stickers directly on the board's own
   canvas) — see Canvas.tsx's activeAnnotationTool. Rendered inside .doska-canvas-content, same
   coordinate space as cards, so no transform math is needed here at all. ---------- */
.doska-annotation-svg {
  position: absolute; left: 0; top: 0;
  /* A 0×0 <svg> renders NOTHING per spec, even with overflow:visible — children (draw strokes,
     arrows) are positioned via their own absolute canvas-space coordinates regardless of this
     box's size, so any non-zero size works; this just satisfies the spec's rendering gate. */
  width: 1px; height: 1px; overflow: visible; z-index: 3;
}
.doska-annotation-svg path[data-selected], .doska-annotation-svg line[data-selected] {
  /* drop-shadow() only takes up to 3 lengths (x, y, blur) + a color — the old 4-value
     box-shadow-style spread ("0 0 0 2px") was invalid CSS and silently dropped, so a selected
     stroke/arrow never actually got any visible outline. Doubled for a stronger, crisper glow. */
  filter: none;
}
.doska-annotation-shape {
  position: absolute; z-index: 3; box-sizing: border-box;
  border: 2px solid; border-radius: var(--doska-radius-sm); background: transparent; cursor: move;
}
.doska-annotation-shape[data-kind="ellipse"] { border-radius: 50%; }
.doska-annotation-shape[data-selected] { box-shadow: 0 0 0 2px var(--doska-accent); }
.doska-annotation-shape--drawing { border-style: dashed; opacity: 0.85; cursor: default; }
.doska-annotation-shape[data-locked] { box-shadow: 0 0 0 1px var(--doska-hairline-strong); }

.doska-annotation-text {
  position: absolute; z-index: 4; box-sizing: border-box;
  padding: 4px 7px; border-radius: var(--doska-radius-sm);
  color: var(--doska-text);
  font-size: 13px; line-height: 1.35; cursor: move;
}
.doska-annotation-text[data-selected] { box-shadow: 0 0 0 2px var(--doska-accent); }
.doska-annotation-text[data-locked], .doska-annotation-sticky[data-locked] { outline: 1px dashed rgba(255, 255, 255, 0.3); outline-offset: 2px; }

/* Slight per-note rotation (--doska-sticky-tilt, set inline per annotation id) + a warm paper
   color + a folded-corner pseudo-element — per direct request ("похож на бумажный стикер"). */
.doska-annotation-sticky {
  position: absolute; z-index: 4; box-sizing: border-box;
  padding: 10px 12px; border-radius: 2px;
  background: linear-gradient(160deg, #f5e27a, #f0d968);
  color: #3a3110;
  font-size: 13px; line-height: 1.4;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  transform: rotate(var(--doska-sticky-tilt, -1deg));
  cursor: move;
}
/* Text content specifically clips (not the whole note) — the note's own resize handles and
   rotate handle are children positioned OUTSIDE its box (top:-5px and top:-26px respectively, see
   below) to sit on the selection border; overflow:hidden on the note itself silently clipped their
   hit area along with their paint, making roughly half of every handle un-grabbable (confirmed
   live via Playwright: elementFromPoint at a resize handle's own reported center hit the canvas
   background instead of the handle, and dragging it produced zero size change). */
.doska-annotation-sticky > .doska-annotation-text-content { overflow: hidden; }
.doska-annotation-sticky::after {
  content: ''; position: absolute; right: 0; bottom: 0;
  width: 16px; height: 16px;
  background: linear-gradient(135deg, transparent 50%, rgba(0, 0, 0, 0.18) 50%);
  border-radius: 0 0 2px 0;
}
.doska-annotation-sticky[data-selected] { box-shadow: 0 0 0 2px var(--doska-accent); }
/* Figma/FigJam-style rotate handle — a child of the sticky itself, so it swings around together
   with whatever tilt is already applied instead of needing separate screen-space positioning. */
.doska-sticky-rotate-handle {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-text-muted);
  box-shadow: 0 0 0 1px var(--doska-hairline-strong);
  cursor: grab;
}
.doska-sticky-rotate-handle:hover { color: var(--doska-accent); }
.doska-sticky-rotate-handle:active { cursor: grabbing; }
/* 8 resize handles (4 corners + 4 edges), same "small square on the selection box" convention as
   most design tools (and this app's own multi-select group box) — per direct request, a single
   right-edge handle wasn't enough ("могу тянуть стикер со всех сторон"). Plain children of the
   (possibly tilted, for stickies) annotation box, so they swing with its current rotation too. */
/* Per direct report ("поправить вёрстку узлов, более аккуратно") — 8 of these cluster tightly
   around a note's edges together with the connector dots, and the heavy drop shadow here read as
   muddy at that density, same complaint (and same fix — ring only, no blur) already applied to
   .doska-link-handle's own hover state below ("слишком грязные тени... можно без теней"). */
.doska-annotation-resize-handle {
  position: absolute; width: 10px; height: 10px; border-radius: var(--doska-radius-sm);
  background: var(--doska-surface-raised);
  box-shadow: 0 0 0 1px var(--doska-hairline-strong);
}
.doska-annotation-resize-handle:hover { background: var(--doska-accent); box-shadow: 0 0 0 1px var(--doska-accent); }
.doska-annotation-resize-handle[data-handle='nw'] { top: -5px; left: -5px; cursor: nwse-resize; }
.doska-annotation-resize-handle[data-handle='n']  { top: -5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.doska-annotation-resize-handle[data-handle='ne'] { top: -5px; right: -5px; cursor: nesw-resize; }
.doska-annotation-resize-handle[data-handle='e']  { top: 50%; right: -5px; transform: translateY(-50%); cursor: ew-resize; }
.doska-annotation-resize-handle[data-handle='se'] { bottom: -5px; right: -5px; cursor: nwse-resize; }
.doska-annotation-resize-handle[data-handle='s']  { bottom: -5px; left: 50%; transform: translateX(-50%); cursor: ns-resize; }
.doska-annotation-resize-handle[data-handle='sw'] { bottom: -5px; left: -5px; cursor: nesw-resize; }
.doska-annotation-resize-handle[data-handle='w']  { top: 50%; left: -5px; transform: translateY(-50%); cursor: ew-resize; }
/* Same "unattended pipeline, not yet looked at" draft treatment as .doska-card[data-source-pending] */
.doska-annotation-sticky[data-source-pending] { outline: 1.5px dashed var(--doska-accent); outline-offset: 2px; }

/* ---------- sections (Miro/FigJam-style frames) — a labeled spatial container, not a mark, so
   it paints behind everything (z-index 1, below .doska-annotation-shape's 3) and its body is
   pointer-events:none so it never blocks interacting with what's inside it. Only the title bar
   is interactive: drag to move the frame (and its members) together, double-click to rename. */
.doska-section {
  position: absolute; z-index: 1; box-sizing: border-box; pointer-events: none;
  border: 1.5px dashed; border-radius: var(--doska-radius-md);
}
.doska-section[data-selected] { box-shadow: 0 0 0 2px var(--doska-accent); }
.doska-section[data-collapsed] { height: auto !important; }
/* Live preview while dragging out a new section (see commitDrawingAnnotation's 'section' branch)
   — per direct report ("нужно чтоб мог захватить область при выделении... что выделил то попало
   в область секции"), drag-to-size replaced the old click-only placement, so this needs its own
   in-progress outline the same way rectangle/ellipse already get one. z-index above regular
   sections (still behind real content) so it doesn't disappear under whatever it's being drawn
   over as you drag past it. */
.doska-section--drawing { z-index: 2; border-style: solid; opacity: 0.9; }
/* The section itself "reacting" to a card being dragged over its drop zone — per direct request
   ("должна реагировать и предлагать место куда вставить, как бы магнитить"). The dragged card's
   own snap-to-slot preview (see Canvas.tsx's magnetPreview) carries most of that signal already;
   this is the frame's half of it, solid border + brighter fill so the target reads unambiguously. */
.doska-section[data-drag-over] {
  border-style: solid; box-shadow: 0 0 0 2px var(--doska-accent);
  transition: box-shadow 120ms var(--doska-ease), border-style 120ms var(--doska-ease);
}
.doska-section-header {
  position: absolute; left: -1.5px; top: -1.5px; transform: translateY(-100%);
  display: flex; align-items: center; gap: 6px; max-width: 100%;
  padding: 5px 9px 5px 6px; border-radius: 8px 8px 0 0;
  color: #fff; font-size: 12px; font-weight: 600; cursor: move;
  box-shadow: none;
}
.doska-section[data-collapsed] .doska-section-header { position: static; transform: none; border-radius: var(--doska-radius-md); box-shadow: none; }
.doska-section-collapse-btn {
  flex-shrink: 0; width: 16px; height: 16px; border-radius: var(--doska-radius-sm);
  display: flex; align-items: center; justify-content: center; color: inherit; opacity: 0.85;
}
.doska-section-collapse-btn:hover { opacity: 1; background: rgba(255, 255, 255, 0.18); }
.doska-section-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-section-title-edit {
  background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: var(--doska-radius-sm);
  color: #fff; font-size: 12px; font-weight: 600; padding: 1px 5px; min-width: 60px; outline: none;
}
.doska-section-count {
  flex-shrink: 0; font-size: 11px; font-weight: 500; opacity: 0.75;
  font-variant-numeric: tabular-nums;
}
.doska-section[data-locked] .doska-section-header { cursor: default; }
.doska-annotation-text-content { white-space: pre-wrap; word-break: break-word; }
.doska-checklist-line { display: flex; align-items: flex-start; gap: 6px; cursor: pointer; }
.doska-checklist-line:hover .doska-checklist-box { opacity: 1; transform: scale(1.08); }
.doska-checklist-box { flex-shrink: 0; opacity: 0.75; transition: opacity 0.12s, transform 0.12s; }
.doska-checklist-line[data-checked] .doska-checklist-label { opacity: 0.5; text-decoration: line-through; }
.doska-annotation-edit {
  position: relative; z-index: 1; display: block;
  width: 100%; resize: none; outline: none; border: none; overflow: hidden;
  background: transparent; color: inherit; caret-color: currentColor; font: inherit; padding: 0;
}

/* ---------- align/tidy toolbar for a multi-selected group ---------- */
/* Floats above the selected group itself (Figma-style), per direct report ("меню выравнивания
   должно быть над группой, которую выделил, а не внизу"). Rendered via a React portal straight to
   document.body (see Canvas.tsx) with `left`/`top` computed there in real screen pixels — NOT a
   descendant of the canvas-zoom-transformed layer, so .doska-canvas-viewport's own overflow:hidden
   can never clip it regardless of where the selection ends up after a pan/zoom (per the direct
   follow-up: "меню при зум аут не нужно скрывать... сейчас она пропадает когда делаешь зум холста,
   это не нужно"). left is the toolbar's own CENTER (hence translateX(-50%) below); top is already
   the exact top-edge position the JS side picked (above or below the group, whichever fits) — no
   further vertical offset needed here. */
.doska-align-toolbar {
  position: fixed; transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 3px;
  /* Solid fill, not the glass/blur treatment most other floating pills use — per direct report
     ("не нужно прозрачное меню, убрать прозрачность для меню выравнивания на заливке"). */
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline-strong); border-radius: 999px;
  padding: 6px 8px; box-shadow: none;
  white-space: nowrap;
}
.doska-align-toolbar-divider { width: 1px; height: 22px; background: var(--doska-hairline-strong); margin: 0 2px; }
.doska-align-menu-wrap { position: relative; }
.doska-align-menu {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  z-index: 41;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
  padding: 4px; min-width: 240px;
}
.doska-align-menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; padding: 7px 9px;
  border-radius: var(--doska-radius-sm); font-size: 13px; color: var(--doska-text); text-align: left;
  white-space: nowrap;
}
.doska-align-menu-item svg { flex-shrink: 0; color: var(--doska-text-muted); }
.doska-align-menu-item span { flex: 1; }
.doska-align-menu-item kbd {
  font-family: inherit; font-size: 11px; color: var(--doska-text-muted);
  background: var(--doska-surface); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-sm); padding: 1px 5px;
}
.doska-align-menu-item:hover:not(:disabled) { background: var(--doska-secondary); }
.doska-align-menu-item:disabled { opacity: 0.4; cursor: default; }

/* ---------- always-visible annotation toolbar — bottom floating pill, same convention as
   .doska-present-bar (zoom on the left, tools centered, undo/redo on the right per direct
   request). This is the primary tool for making notes on the main board now, not a separate
   panel, so it stays mounted (not gated behind a header toggle) the whole time you're authoring. */
/* scale(1.3) — per direct request ("сделай крупнее эту панель", then "еще крупнее") — a uniform
   CSS scale rather than bumping every icon's own size prop individually across the many buttons
   in Canvas.tsx; transform-origin keeps the bottom edge anchored so it grows upward, not off past
   bottom:20px. */
.doska-annotate-toolbar {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) scale(1.3);
  transform-origin: center bottom;
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: rgba(var(--doska-glass-rgb), 0.88); backdrop-filter: blur(18px);
  border: 1px solid var(--doska-hairline-strong); border-radius: 999px;
  padding: 6px 10px; box-shadow: none;
}
.doska-annotate-toolbar-group { display: flex; align-items: center; gap: 3px; }
.doska-annotate-toolbar-sep { width: 1px; height: 22px; background: var(--doska-hairline-strong); }
.doska-annotate-toolbar-zoom { font-size: 11px; color: var(--doska-text-muted); width: 34px; text-align: center; font-variant-numeric: tabular-nums; }
.doska-annotate-toolbar-btn {
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--doska-text-muted); background: transparent;
}
.doska-annotate-toolbar-btn:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-annotate-toolbar-btn[data-active] { color: var(--doska-accent); background: var(--doska-accent-soft); }
.doska-annotate-toolbar-btn:disabled { opacity: 0.3; cursor: default; background: transparent; color: var(--doska-text-muted); }

.doska-shapes-menu-wrap { position: relative; }
.doska-shapes-menu-trigger { gap: 1px; }
.doska-shapes-menu-caret { opacity: 0.6; }
.doska-shapes-menu {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 41;
  display: flex; align-items: center; gap: 2px;
  background: rgba(var(--doska-glass-rgb), 0.94); backdrop-filter: blur(18px);
  border: 1px solid var(--doska-hairline-strong); border-radius: 999px;
  padding: 5px; box-shadow: none;
}

.doska-canvas-viewport[data-annotation-tool] { cursor: crosshair; }
.doska-canvas-viewport[data-annotation-tool="sticky"], .doska-canvas-viewport[data-annotation-tool="text"] { cursor: text; }
.doska-canvas-viewport[data-annotation-tool="pan"] { cursor: grab; }
.doska-canvas-viewport[data-annotation-tool="pan"]:active { cursor: grabbing; }
/* Per direct report ("курсор всё ещё крестик когда ручка, нужна ручка чтобы был") — the Pencil
   (freehand draw) tool fell under the generic crosshair rule above like every other shape tool;
   a small pencil-shaped cursor (hotspot at its own tip, matching how a real pencil marks paper)
   reads far more obviously as "this is what draws" than a bare crosshair does. Inline SVG data
   URI, not a real cursor icon file — a custom cursor image needs to be small/self-contained
   anyway, and this way it needs no separate asset request. */
.doska-canvas-viewport[data-annotation-tool="draw"] {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22'%3E%3Cpath d='M2 20l1-5L15 3l4 4L7 19l-5 1z' fill='%23ffffff' stroke='%231a1a1a' stroke-width='1.4' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M12.5 5.5l4 4' stroke='%231a1a1a' stroke-width='1.2'/%3E%3C/svg%3E") 2 20, crosshair;
}

/* ---------- per-tool settings bar — floats just above .doska-annotate-toolbar ---------- */
/* Per direct report ("палитра слишком впритык к панели") — 66px was sized against the toolbar's
   OWN unscaled height, but .doska-annotate-toolbar renders at scale(1.3) from a center-bottom
   origin, so its real visual top sits at ~20px (its own bottom) + 42px*1.3 ≈ 75px — a few px
   ABOVE where this bar's bottom edge (66px) used to sit, i.e. actually overlapping it slightly,
   not just close. 88px clears the scaled toolbar with real breathing room. */
.doska-annotate-settings-bar {
  position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%);
  z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: rgba(var(--doska-glass-rgb), 0.88); backdrop-filter: blur(18px);
  border: 1px solid var(--doska-hairline-strong); border-radius: 999px;
  padding: 5px 9px; box-shadow: none;
}
.doska-annotate-toolbar-btn--label { font-size: 12px; font-weight: 600; }
.doska-annotate-stroke-dot { display: block; border-radius: 999px; background: currentColor; color: var(--doska-text); }
.doska-annotate-toolbar-btn[data-active] .doska-annotate-stroke-dot { color: var(--doska-accent); }
.doska-annotate-palette { gap: 5px; }
.doska-annotate-swatch {
  width: 18px; height: 18px; border-radius: 999px; flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.doska-annotate-swatch[data-active] { box-shadow: 0 0 0 2px var(--doska-surface), 0 0 0 3.5px var(--doska-accent); }

.doska-annotate-menu-wrap { position: relative; }
.doska-annotate-fontsize-btn { width: auto; min-width: 30px; padding: 0 8px; font-variant-numeric: tabular-nums; }
.doska-annotate-dropdown {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: 45;
  min-width: 170px; padding: 5px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
}
.doska-annotate-fontsize-input {
  width: 100%; box-sizing: border-box; margin-top: 2px;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-accent-soft); border-radius: var(--doska-radius-sm);
  padding: 6px 8px; font-size: 12px; color: var(--doska-text); outline: none;
}

/* ---------- right-click context menu (copy/paste/paste-here/delete/copy-link/front/back/lock) —
   reuses the review-inbox's own dropdown classes for visual consistency, just fixed-positioned
   at the click point instead of anchored under a trigger button. ---------- */
.doska-annotation-context-menu {
  position: fixed; z-index: 90; min-width: 210px; padding: 5px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
  /* Safety net alongside the left/top-vs-right/bottom flip above — a menu with enough items to
     still overflow even the taller half of the screen scrolls instead of clipping silently. */
  max-height: calc(100vh - 24px); overflow-y: auto;
}

@media (max-width: 768px) {
  /* The board view's own bottom tab bar (.doska-project-tabs, added later — "сделай на моб версии
     табы внизу") is back to being something this fixed-position toolbar needs to clear: reported
     live as the toolbar sitting on top of/hiding the tab labels ("не видно табы"). ~54px covers
     the tab bar's own height (icon+label+padding) plus its safe-area inset. */
  .doska-annotate-toolbar { gap: 6px; padding: 5px 7px; max-width: calc(100vw - 24px); overflow-x: auto; bottom: calc(74px + env(safe-area-inset-bottom)); }
  .doska-annotate-settings-bar { bottom: calc(120px + env(safe-area-inset-bottom)); }
  .doska-annotate-toolbar-zoom { width: 28px; }
  /* Up to ~11 buttons can exceed the pill's max-width here, scrolling horizontally with no
     native indicator that there's more off-screen. A persistent edge fade (doesn't scroll with
     the content, since it's on the scroll container itself) signals "more this way" the same
     way iOS scroll views do — cheap without needing JS overflow detection. */
  .doska-annotate-toolbar::before,
  .doska-annotate-toolbar::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 16px; z-index: 1; pointer-events: none;
  }
  .doska-annotate-toolbar::before { left: 0; border-radius: 999px 0 0 999px; background: linear-gradient(to right, rgba(var(--doska-glass-rgb), 0.95), transparent); }
  .doska-annotate-toolbar::after { right: 0; border-radius: 0 999px 999px 0; background: linear-gradient(to left, rgba(var(--doska-glass-rgb), 0.95), transparent); }
}

/* ---------- Touch tap targets — toolbar buttons (30px), color swatches (18px), and the sticky
   resize/rotate handles (10px/20px) were all sized for a mouse pointer's precision, well under
   the ~44px minimum touch targets want. `pointer: coarse` (true for touch, false for mouse/
   trackpad) scopes the bump to devices that actually need it instead of bloating desktop
   density. Resize-handle offsets are recomputed to stay centered on the box edge at the new
   size (-half the new width/height, not the old -5px). */
@media (pointer: coarse) {
  .doska-annotate-toolbar-btn { width: 40px; height: 40px; }
  .doska-annotate-toolbar-zoom { width: 36px; }
  .doska-annotate-swatch { width: 26px; height: 26px; }
  .doska-annotate-fontsize-btn { min-width: 40px; padding: 0 10px; }
  .doska-sticky-rotate-handle { width: 28px; height: 28px; top: -34px; }
  .doska-annotation-resize-handle { width: 16px; height: 16px; border-radius: var(--doska-radius-sm); }
  .doska-annotation-resize-handle[data-handle='nw'] { top: -8px; left: -8px; }
  .doska-annotation-resize-handle[data-handle='n']  { top: -8px; }
  .doska-annotation-resize-handle[data-handle='ne'] { top: -8px; right: -8px; }
  .doska-annotation-resize-handle[data-handle='e']  { right: -8px; }
  .doska-annotation-resize-handle[data-handle='se'] { bottom: -8px; right: -8px; }
  .doska-annotation-resize-handle[data-handle='s']  { bottom: -8px; }
  .doska-annotation-resize-handle[data-handle='sw'] { bottom: -8px; left: -8px; }
  .doska-annotation-resize-handle[data-handle='w']  { left: -8px; }
}

/* ---------- Projects gallery — the app's own top-level "home" screen ---------- */
/* .doska-top-shell hosts the persistent sidebar (TopNav) + whichever top-level page (Проекты/
   Референсы) sits beside it — .doska-gallery used to fill the whole viewport on its own before
   the sidebar existed, now it's just the flex content pane next to it. SettingsPage still uses
   .doska-gallery standalone (own back-link, no sidebar), so this class stays viewport-filling
   there via the `absolute` fallback below when it's NOT inside .doska-top-shell. */
.doska-top-shell { position: absolute; inset: 0; display: flex; background: var(--doska-canvas); }
/* The board's own contents (Canvas, ProjectHeader, ClusterRail, …) are all `position: absolute`
   against their nearest positioned ancestor — without this, that ancestor would be .doska-top-shell
   itself, ignoring the flex layout entirely and covering the full viewport underneath TopNav
   instead of just the flex cell beside it. */
.doska-board-shell { position: relative; flex: 1; min-width: 0; min-height: 0; }
/* Column now, not the base class's default row — GlobalPageHeader (DoskaPage.tsx) renders as a
   direct child ABOVE .doska-top-shell-sidebar-row (the rail+sidebar+content row this used to BE,
   directly), per direct follow-up ("давай эту часть выведем из под обводки. будет сверху над
   обводкой"). 'board' skips the header entirely (ProjectHeader.tsx owns its own, much larger
   embedded header instead — see DoskaPage.tsx's own comment), so on that page this column just
   has the one row child and behaves exactly as it did before this change. */
/* Ряд из двух: карточка (шапка + содержимое) и док ИИ-чата рядом с ней — per direct request
   «ИИ-чат должен быть как внешняя секция в обводке, то есть вынести за общую обводку центральной
   секции». Колонку теперь держит сама карточка, а не этот контейнер. */
.doska-top-shell--sidebar { flex-direction: row; }
.doska-top-shell--miniapp .doska-shell-card:has(.doska-allnotes-body) { margin-left: 0 !important; }
.doska-shell-card {
  display: flex; flex-direction: column;
  flex: 1 1 auto; min-width: 0; min-height: 0;
}
.doska-top-shell-sidebar-row { display: flex; flex: 1; min-width: 0; min-height: 0; }
/* Rounded + bordered floating panel, same treatment as IconRail.tsx/.doska-sidebar — per direct
   follow-up ("обводка + скругление нужно на остальную часть целиком... что справа"), so the main
   content area reads as the third card in the same row instead of the one full-bleed panel left
   over once the rail and sidebar became floating cards of their own. Scoped to .doska-top-shell--
   sidebar specifically (desktop's own sidebar-shell layout — see DoskaPage.tsx's own !isMobile
   branch) rather than the bare class, since .doska-board-shell is ALSO reused verbatim by several
   mobile-only topbar pages (TrashView/GlobalReadLater/GlobalTopics's own mobile branches, and the
   Canvas/AuthorBoard shell) that have no rail/sidebar beside them to visually pair with — a
   floating inset card there would just eat into an already-narrow screen for no reason. No
   overflow:hidden — Canvas's own absolutely-positioned children (dot-grid background, floating
   toolbar) are sized/positioned relative to this same box and shouldn't get clipped at its edge. */
/* Внешней обводки НЕТ — per direct request «убрать общую обводку». Она отделяла раздел от рельсы
   и сайдбара, стоявших слева; рельсы больше нет вовсе (запись 118), и рамка обводила уже не
   границу между панелями, а просто край экрана. Фон карточки-раздела оставлен: именно он теперь и
   отделяет раздел от полотна, а карточки заметок — от раздела.
   Это третий круг решения (была → убрали → вернули → убрали), поэтому важно: возвращать её вместе
   с рельсой, а не «за компанию» с другой правкой. */
.doska-top-shell--sidebar .doska-board-shell {
  /* Обводка ПЕРЕЕХАЛА УРОВНЕМ ВЫШЕ — per direct request «обводка контентной области… но в неё также
     ещё включить поиск, настройки юзера и уведомления»: рамка теперь у всей правой половины экрана
     (см. .doska-top-shell--sidebar:has(.doska-allnotes-body) ниже), поэтому здесь её быть не должно
     — две вложенные рамки читались бы как рамка в рамке. */
  margin: 0; border: none; border-radius: 0;
  /* Фон карточки-раздела ЧУТЬ СВЕТЛЕЕ полотна — per direct request («общую обводку сделай ей
     бэкграунд лёгкий; на тёмной теме серый светлый»). Раньше он совпадал с фоном страницы
     (rgb(14,14,17)), и рамка была единственным, что отделяло раздел; теперь отделяет сама
     поверхность. Токен поверхности, а не свой оттенок: он уже подобран под обе темы — на тёмной
     светло-серый, на светлой чуть светлее полотна. Но НЕ сам токен: карточки заметок красятся ровно
     им (замер: и карточка, и фон стали rgb(23,23,28)) — раздел бы их проглотил. Берём середину
     между полотном и поверхностью: раздел отделяется от страницы, а карточки — от раздела. */
  /* Подложки раздела тоже НЕТ — per direct request «ещё остаётся подложка прозрачная, убери».
     Она появилась как замена снятой рамке («общую обводку сделай ей бэкграунд лёгкий»), но рамку
     с тех пор убрали совсем, и лёгкий оттенок остался единственным следом прежней карточки: на
     тёмной теме он читается как еле заметная плёнка поверх полотна. Раздел теперь просто часть
     страницы. */
  background: transparent;
}
/* Per direct follow-up ("только в проектах объединим в одну обводку список проектов древо и
   справа часть большую") — 'board' specifically (DoskaPage.tsx's own new branch): the tree and
   the open project's own content are one continuous browsing surface, so ProjectSidebar and
   .doska-board-shell share ONE outer card instead of each getting their own — their individual
   margin/border/radius above are reset back to flush/square inside this wrapper, replaced with a
   single 1px internal divider standing in for the sidebar's old outer border. overflow:hidden IS
   safe to add here (unlike the bare .doska-board-shell rule above, which deliberately avoids it) —
   Canvas's own absolutely-positioned children size themselves against .doska-board-shell's own
   box, which is unchanged; this wrapper is just one more ancestor around it, not a new positioning
   context for anything inside. */
/* Проект без дерева — per direct request («внутри проекта не нужно показывать древо проектов;
   приведи к подобию как в коллекциях»). Обёртка та же по геометрии, что и прежняя пара
   «дерево + проект»: одна плавающая карточка на всю оставшуюся ширину. Отдельный класс, а не
   переиспользование .doska-project-with-sidebar, потому что у той есть правила, гасящие рамки у
   ВНУТРЕННИХ панелей (они были нужны, только пока панелей было две). */
.doska-project-solo {
  display: flex; align-items: stretch; flex: 1; min-width: 0; min-height: 0;
  margin: 8px 8px 8px 4px; border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
  overflow: hidden;
}
.doska-project-solo.doska-project-solo .doska-board-shell {
  flex: 1; min-width: 0; margin: 0; border: none; border-radius: 0;
}
@media (max-width: 768px) {
  /* На телефоне плавающая рамка съедает и без того узкую ширину — та же причина, что у соседней
     раскладки ниже. */
  .doska-project-solo { margin: 0; border: none; border-radius: 0; }
}
.doska-project-with-sidebar {
  display: flex; align-items: stretch; flex: 1; min-width: 0; min-height: 0;
  margin: 8px 8px 8px 4px; border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
  overflow: hidden;
}
/* Per direct request ("обводка внутри проекта не нужна" — про мобильную версию): на телефоне
   плавающая карточка с рамкой съедает и без того узкую ширину, а «панелей» рядом, от которых
   она бы отделяла, там нет вовсе. Десктоп не трогаем. */
@media (max-width: 768px) {
  .doska-project-with-sidebar {
    margin: 0; border: none; border-radius: 0;
  }
}
.doska-project-with-sidebar .doska-sidebar:not(.doska-sidebar--mobile) {
  margin: 0; border: none; border-right: 1px solid var(--doska-hairline); border-radius: 0;
}
.doska-project-with-sidebar.doska-project-with-sidebar .doska-board-shell {
  margin: 0; border: none; border-radius: 0;
}
/* GlobalDashboard/TrashView (DoskaPage.tsx) — unlike Canvas/ProjectHeader, these are normal
   in-flow scrollable pages, not position:absolute content filling this shell's own relative
   positioning context, so this overrides both of those to a plain scrollable/padded box. */
/* max-width:1464px + margin:0 auto was added here once (per an earlier direct report about
   drifting alignment) then reverted — turned out to lose a specificity fight to
   .doska-top-shell--sidebar .doska-board-shell's own `margin: 8px 8px 8px 4px` (2 classes beats 1,
   regardless of source order), so the centering never actually applied: confirmed live via
   getComputedStyle, marginLeft/marginRight came out 4px/8px, not auto. The card just sat flush
   against the rail instead, while the header row (once also capped at 1464) centered independently
   — the two drifted apart, confirmed live via direct report ("обводка внешняя для все заметки
   должна двигаться для респонса... нотификации и настройки пользователя убегают за нее"). Instead
   of fighting that specificity war, this page's content now matches 'board' mode's own
   .doska-project-with-sidebar exactly: no max-width at all, just grows full-bleed with the floating
   card's own margin — confirmed as the reference-correct behavior ("верное поведение в Проектах...
   поправить для всех разделов"). See GlobalPageHeader's own wideSidebarLayout comment in
   DoskaPage.tsx for the matching header-side change. */
/* Верхнее поле 10px, а не 28 — per direct request («в „Все заметки“ сократить отступ сверху от
   поиска до меню первого уровня, сделать ближе»). Замер до правки: 52px между низом строки меню и
   полем поиска (28 поля + 8 внешнего отступа карточки + 16 от раскладки колонки). Боковые и нижнее
   поля не тронуты. Второй заход по той же просьбе («нужно меньше отступ») довёл поле до нуля, но
   после возврата внешней обводки заголовок и строка поиска стали упираться прямо в неё — per direct
   request («добавить к внешней обводке внутренний отступ вниз до заголовков… строка поиска тоже
   почти соприкасается»). 18px — компромисс между этими двумя просьбами: содержимое явно внутри
   рамки, но до меню первого уровня по-прежнему заметно ближе, чем было изначально (52px). */
/* Боковые поля симметричны и равны проектным (32px) — per direct request («внутри секции „Все
   заметки“ нужен внутренний боковой отступ такой же, как в проектах, то есть чуть больше»). Правое
   поле было 16px против левых 32 — наследие вертикальной полосы прокрутки, которая тогда съедала
   разницу; сейчас содержимое просто прижималось к правой обводке ближе, чем к левой. */
/* Верхнее поле 16 -> 32 (--s-4) — per direct request «во всех разделах на вебе сделать больше
   верхний отступ от заголовка раздела до верхней обводки». Крупный заголовок раздела почти
   касался рамки, и разделы читались теснее, чем содержимое внутри них. Только веб: на телефоне
   поля свои и высота экрана дороже (см. правило ниже). */
.doska-board-shell--page { overflow-y: auto; padding: var(--s-4) var(--s-4) var(--s-4); }
/* На телефоне поля симметричны и совпадают с шапкой — per direct request («поправить выравнивание
   на мобилке по ширине во „Все заметки“»). Замер объяснил перекос: боковые поля страницы были
   32px слева и 16 справа (левое взято под рельсу, которой на телефоне нет), а строка шапки живёт
   на 12px — то есть бургер стоял на 12, а поиск и карточки под ним начинались с 32 и не
   дотягивались до правого края. Берём те же 12px, что у шапки: всё встаёт в одну колонку.
   Удвоенный класс — базовое правило объявлено ВЫШЕ с той же специфичностью (готча №1). */
@media (max-width: 768px) {
  /* Верхнее поле маленькое — per direct request («на мобилке отступ от поиска сверху до меню
     первого уровня сделать меньше»): строка меню сама по себе высокая (64px), и ещё 20px под ней
     отодвигали поиск без всякой пользы. Замер: было 26px до поля, стало 12. */
  .doska-board-shell--page.doska-board-shell--page { padding: var(--s-1) var(--s-2) var(--s-4); }
}
.doska-gallery { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--doska-canvas); }
/* min-height: 0 is required here — .doska-top-shell--topbar stacks TopNav above .doska-gallery
   in a COLUMN flex, and a flex item defaults to min-height: auto, which refuses to shrink below
   its content's natural height. Without this, a long boards grid just grows the whole shell past
   the viewport instead of triggering .doska-gallery-body's own overflow-y: auto, so there's no
   scrollbar at all and the bottom rows are simply unreachable. */
.doska-top-shell .doska-gallery { position: static; flex: 1; min-width: 0; min-height: 0; }
/* Настройки/Интеграции/FAQ получают ту же плавающую карточку-обводку, что и «Все заметки»/проект
   (`.doska-shell-card:has(.doska-allnotes-body)` выше) — по прямому запросу «в настройках профиля
   такая же должна быть общая обводка как везде плашка». Без сайдбара слева (этот layout его не
   несёт), поэтому отступ симметричный, без калькуляции под ширину панели. TopNav внутри теряет свой
   собственный фон-канвас — карточка красит всё сама, иначе шапка читалась бы отдельной плашкой
   поверх другой. */
@media (min-width: 769px) {
  .doska-shell-card--topbar {
    margin: 8px; background: var(--doska-canvas);
    border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
    overflow: hidden;
  }
  .doska-shell-card--topbar > .doska-topnav[data-layout='topbar'] { background: none; }
}
/* Side padding 28px -> 32px — same "more desktop side margin" pass as the project page's own hero/
   stash-tab bump: measured left/right whitespace on the card grid was only 28px at a 1440px
   viewport, tight for a 5-column grid this wide. Mobile keeps its own tighter override below. */
/* max-width + margin:auto — per direct follow-up ("поправить выравнивание в настройках профиля").
   ProjectGallery's own children (.doska-gallery-header-row/.doska-gallery-grid) already
   self-center to max-width:1400px independently, so this is a no-op there. But
   Settings/Интеграции/FAQ/Задачи/etc. render a plain <h1 className="doska-gallery-title"> +
   page-specific content straight into this body with NO centering of their own — on a wide
   viewport those sat flush at this body's own flat 32px padding while TopNav's logo right above
   (max-width:1464px; margin:0 auto, see that rule's own comment) sat centered further in,
   confirmed live as a real jog between the header and the page content under it. 1464px matches
   TopNav's own column exactly (1400 content + 32px×2 padding, same box-sizing:border-box math). */
/* width: 100% + min-width: 0 — without an explicit width this flex item (child of .doska-gallery's
   column flex box, cross-axis = width) does NOT reliably stretch to the flex line's cross size in
   practice — confirmed live by testing each in isolation: adding only min-width:0 left the used
   width unchanged at 1396px; setting an explicit width is what actually collapsed it to the real
   390px available on a mobile viewport. Without it, .doska-gallery-grid's cards (an auto-fill grid,
   meant to wrap into rows once its container has a real width to wrap against) never got the
   chance to — auto-fill resolved against the content's own unconstrained intrinsic width instead,
   producing one 160px track per card in a single row, the rest silently clipped by .doska-root's
   own overflow-x:hidden with no scroll affordance anywhere in the chain (.doska-gallery-body's own
   overflow-x:auto never engaged either, since its box already contained its content — nothing left
   to scroll). Only ~2 of 7 real projects were reachable at all; the rest were invisible and
   unopenable from this screen. */
.doska-gallery-body { flex: 1; width: 100%; min-width: 0; overflow-y: auto; padding: 32px 32px 60px; max-width: 1464px; margin: 0 auto; }

/* Only rendered for tab==='all'/'trash' (AllStashView/TrashView) — those never mount
   ProjectHeader.tsx, so this is the only way back to the 'projects' tree once here. Real gap
   found via direct report ("тут нет навигации назад") after the old tab-switcher strip that used
   to cover this got removed earlier. Same recipe as .doska-project-back-link (pill, hairline ring)
   but with a visible label since there's no board title nearby to give this button context. */
.doska-gallery-back-link {
  display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0;
  height: 32px; padding: 0 14px; margin-bottom: 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  transition: background 0.15s var(--doska-ease), border-color 0.15s var(--doska-ease), color 0.15s var(--doska-ease);
}
.doska-gallery-back-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.doska-gallery-back-link.doska-gallery-back-link {
  color: var(--doska-text-muted); background: var(--doska-surface); border: 1px solid var(--doska-hairline);
}
.doska-gallery-back-link:hover { color: var(--doska-text); background: var(--doska-secondary); border-color: var(--doska-hairline-strong); }

/* Narrow icon-only activity-bar style, per direct reference screenshot (IDE-style rail) —
   no text labels, no brand row, just a centered icon stack + profile pinned at the bottom. */
.doska-topnav {
  width: 56px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center;
  background: var(--doska-canvas); border-right: 1px solid var(--doska-hairline); padding: 16px 0;
}
/* min-width: 0 — a flex:1 item's default min-width:auto floors it at its own content size, which
   silently defeated shrinking on the topbar layout below. Harmless here on the vertical rail
   (width is fixed by .doska-topnav's own 56px, not by this axis). */
.doska-topnav-list { display: flex; flex-direction: column; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.doska-topnav-item {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--doska-radius-md); color: var(--doska-text-muted);
}
.doska-topnav-item:hover { color: var(--doska-text); }
.doska-topnav-logo { width: 26px; height: 26px; flex-shrink: 0; }
.doska-topnav-item[data-active] { background: var(--doska-accent-soft); color: var(--doska-accent); }
/* Per direct request ("убрать подложку прозрачную, лого крупнее") — the brand mark never gets the
   generic active-pill background other nav items get, and its logo runs bigger than theirs. */
.doska-topnav-item--brand { background: transparent !important; padding: 0; }
.doska-topnav-item--brand .doska-topnav-logo { width: 32px; height: 32px; }
.doska-topnav-footer { flex-shrink: 0; padding-top: 12px; }

/* Icon-only rail to the LEFT of .doska-sidebar — per direct request ("слева от сайд-бара сделаем
   еще одно меню, и туда вынесем дашборд, раздел «Позже»... проекты, неотсортированные"), later
   extended ("корзину и архив вынести на левую панель...", "темы вынести в левую панель") to hold
   every flat, account-wide destination — Дашборд/Все заметки/Прочитать позже/Темы/Архив/Корзина/
   Проекты. Same 40px-square/icon-only shape .doska-topnav-item already uses, just as a plain
   standalone column (not that component — this rail is desktop-only and always visible, never
   swapped for a topbar layout). Desktop only, same as .doska-sidebar itself; IconRail.tsx is
   rendered conditionally by DoskaPage.tsx so no extra media query is needed here to hide it on
   mobile. */
.doska-icon-rail-btn {
  display: flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: var(--doska-radius-md); color: var(--doska-text-muted); flex-shrink: 0;
}
.doska-icon-rail-btn:hover { color: var(--doska-text); background: var(--doska-secondary); }
.doska-icon-rail-btn[data-active] { background: var(--doska-accent-soft); color: var(--doska-accent); }

/* Persistent left navigation — per direct request ("список проектов будет в боковой сайдбаре...
   вижу все его папки и могу ходить по ним через сайдбар"), replacing TopNav's own topbar+
   ProjectGallery grid as the desktop app's primary navigation (see ProjectSidebar.tsx and
   DoskaPage.tsx's own isMobile branch — mobile never renders this at all, no extra media query
   needed here to hide it). A plain flex child of `.doska-top-shell`'s existing row layout, same
   slot `.doska-topnav`'s vertical rail used to occupy, just wider — holds text labels + an
   indented tree instead of icon-only nav items. */
/* No border-right — per direct follow-up ("в с сайдбаре не нужен вертикальный дивайдер"), the
   canvas/surface tone shift against .doska-board-shell's own background is enough of a boundary
   on its own, same reasoning TopNav's topbar already used to drop its own divider. */
/* Per direct request ("добавить иконку свернуть сайдбар") — collapses to a narrow icon rail rather
   than vanishing to 0 — the toggle itself has to stay reachable somewhere to bring it back, and a
   slim rail is the standard "collapsed sidebar" shape every reference (VSCode, Notion, Linear)
   already uses instead of a floating re-expand button bolted on elsewhere. */
.doska-sidebar {
  width: 264px; flex-shrink: 0; display: flex; flex-direction: column;
  background: var(--doska-canvas);
  transition: width 160ms var(--doska-ease);
}
/* Rounded + bordered floating panel, matching IconRail.tsx's own treatment — per direct follow-up
   ("эту часть тоже сделай в обводке скругленной всю как тут" with the same Yandex reference: its
   own wide sidebar is just as rounded/bordered as its icon rail). Desktop only — the mobile
   variant (.doska-sidebar--mobile) is a full-bleed screen of its own, no floating-card margin to
   give it. */
.doska-sidebar:not(.doska-sidebar--mobile) {
  margin: 8px 8px 8px 4px; border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
}
/* Top padding 14px -> 20px — per direct request ("тут сделать чуть больше отступ сверху"), paired
   with the same +6px bump on .doska-project-header-breadcrumb's own padding-top (see that rule's
   own comment) so the sidebar's "Все проекты" row and the content breadcrumb next to it keep
   reading as aligned instead of drifting apart. */
.doska-sidebar-top { display: flex; align-items: center; justify-content: flex-start; gap: 6px; padding: 20px 12px 10px; flex-shrink: 0; }
/* "Все проекты" — per direct follow-up ("в раскрытом меню всех проектов... добавим заголовок «Все
   проекты»"), the title this row never had before (it used to be the collapse button alone — see
   that button's own comment history). flex:1 is what pushes .doska-sidebar-add-btn to this row's
   own far right, past the collapse button on the far left. */
/* 13px -> 15px — per direct request ("текст в сайдбаре все проекты крупнее"). */
.doska-sidebar-title { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; color: var(--doska-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Per direct report ("в мобильной версии сайдбар... должен выглядеть одинаково... кнопки добавить
   проект") — this compact icon trigger now renders on both desktop and mobile (ProjectSidebar.tsx's
   own .doska-sidebar-top row dropped its `{!mobile && ...}` gate); the older mobile-only full-width
   filled `.doska-sidebar-add-project` button this replaced is gone entirely, not just unused. */
.doska-sidebar-add-btn {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 6px; color: var(--doska-text-muted); flex-shrink: 0;
}
.doska-sidebar-add-btn:hover { background: var(--doska-secondary); color: var(--doska-text); }
.doska-sidebar-collapse-btn.doska-sidebar-collapse-btn {
  display: flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 6px; color: var(--doska-text-muted); flex-shrink: 0;
}
.doska-sidebar-collapse-btn:hover { background: var(--doska-secondary); color: var(--doska-text); }
/* Per direct request ("в сайдбаре сделать сверху поиск") — same filled-pill treatment
   .doska-stash-tree-search already established for the (now desktop-hidden) in-project tree's own
   search, for visual consistency between the two. */
.doska-sidebar-search {
  display: flex; align-items: center; gap: 6px; padding: 7px 10px;
  /* Bottom margin 8px -> 16px — per direct report ("больше отступ сделай от поиска по проектам до
     кнопки новый проект. слишком близко сейчас"). */
  margin: 0 12px 16px;
  background: var(--doska-surface-raised); border-radius: 6px; color: var(--doska-text-muted);
  flex-shrink: 0;
}
.doska-sidebar-search input {
  flex: 1; min-width: 0; background: none; border: none; color: var(--doska-text); font-size: 13px;
}
.doska-sidebar-search input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-sidebar-search input::placeholder { color: var(--doska-text-muted); }
.doska-sidebar-search button { display: flex; flex-shrink: 0; color: var(--doska-text-muted); }
.doska-sidebar-search button:hover { color: var(--doska-text); }
.doska-sidebar-search-result.doska-sidebar-search-result {
  display: flex; align-items: center; gap: 8px; width: 100%; height: 32px; padding: 0 8px;
  border-radius: var(--doska-radius-sm); color: var(--doska-text-muted); font-size: 13px;
}
.doska-sidebar-search-result:hover { background: var(--doska-secondary); color: var(--doska-text); }
.doska-sidebar-search-result svg { flex-shrink: 0; }
.doska-sidebar-search-result span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.doska-sidebar-tree-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 8px 12px; }
/* Низ панели: свернуть сайдбар. Отделён тонкой линией — действие относится ко ВСЕЙ панели, а не к
   последней строке дерева, и без разделителя читалось бы как ещё один её элемент. */
.doska-sidebar-bottom {
  flex-shrink: 0; display: flex; align-items: center;
  padding: 8px; border-top: 1px solid var(--doska-hairline);
}
.doska-sidebar-bottom .doska-sidebar-collapse-btn {
  display: flex; align-items: center; gap: 7px; width: 100%; height: 32px;
  padding: 0 8px; border-radius: var(--doska-radius-sm); cursor: pointer;
}
.doska-sidebar-bottom .doska-sidebar-collapse-btn:hover { background: var(--doska-secondary); }
.doska-sidebar-collapse-text { font-size: 13px; font-weight: 600; color: var(--doska-text-muted); }
.doska-sidebar-bottom .doska-sidebar-collapse-btn:hover .doska-sidebar-collapse-text { color: var(--doska-text); }
/* ЗАЗОР МЕЖДУ СТРОКАМИ ДЕРЕВА — по прямому отчёту 26.09.2026: «в дереве заметок поправить отступ
   внутри папок, сейчас тесно друг к другу файлы по вертикали». Замер на настоящем стиле показал
   ровно 0: строки высотой 32px стояли впритык, поэтому вложенная папка читалась сплошной массой.
   3px это половина шага 8pt-сетки: на 32-пиксельной строке полный шаг разорвал бы группу, а
   ничего — как сейчас — не разделяет её вовсе. Поля на самой строке, а не на контейнере уровня:
   так ритм одинаковый и в корне, и внутри любой вложенности. */
.doska-sidebar-tree-row {
  position: relative; display: flex; align-items: center; height: 34px; border-radius: var(--doska-radius-md);
  padding-left: 4px; margin-top: 4px;
}
.doska-sidebar-tree-row:hover { background: var(--doska-secondary); }
.doska-sidebar-tree-row[data-active] { background: var(--doska-accent-soft); }
/* Per direct request ("в сайдбаре нужно уметь менять порядок и перетаскивать") — same drop-target
   highlight convention every other drag surface in this file uses. Reparent-only now (a genuine
   reorder gets the insertion line below instead) — see data-drag-over-edge's own comment. */
.doska-sidebar-tree-row[data-drag-over] { background: var(--doska-accent-soft); outline: 1px dashed var(--doska-accent); outline-offset: -1px; }
/* Per direct report ("должен быть такой дивайдер, который позволяет визуально выбирать место
   между... а не только вложение") — same insertion-line idea already shipped for StashTab.tsx's
   own card reorder, adapted to a row: a thin line at the row's own top or bottom edge instead of
   a whole-row highlight, so "this will REORDER before/after this row" reads as visually distinct
   from "this will REPARENT into this row" (data-drag-over above) before the drop even happens. */
.doska-sidebar-tree-row[data-drag-over-edge]::after {
  content: ''; position: absolute; left: 4px; right: 4px; height: 2px; border-radius: 6px;
  background: var(--doska-accent); pointer-events: none;
}
.doska-sidebar-tree-row[data-drag-over-edge="before"]::after { top: -1px; }
.doska-sidebar-tree-row[data-drag-over-edge="after"]::after { bottom: -1px; }
/* Per direct request with a reference screenshot ("давай в сайдбаре также линиями показывать
   вложенности папок") — a vertical guide line per nesting level, same idea VSCode/Notion/Linear's
   own tree sidebars use, instead of indentation alone. Each level's own .doska-sidebar-tree-
   children div nests inside the previous one (real DOM nesting, one per depth — see SidebarNode's
   own recursion), so a fixed margin+border here compounds automatically into the full staircase
   without needing the row's own now-removed --doska-sidebar-depth multiplier to also track it. */
.doska-sidebar-tree-children {
  margin-left: 13px; padding-left: 7px; border-left: 1px solid var(--doska-hairline);
}
/* Per direct report ("стрелки, которые раскрывают проект... очень мелкие, и чтобы там было также
   наведение на них, срабатывало при ховере") — 18px was icon-sized with no separate hit area and
   no hover feedback at all, easy to miss/mis-click next to the label button right beside it.
   Bumped to a real 24px tappable/clickable square with its own hover background+color, matching
   every other small icon-button's hover convention in this file (e.g. .doska-ai-chat-header
   button:hover) — the rotate-on-open transform still applies to the whole button, not just the
   icon, so the larger hit area rotates as one piece. */
.doska-sidebar-tree-chevron.doska-sidebar-tree-chevron {
  display: flex; align-items: center; justify-content: center; width: 24px; height: 24px;
  flex-shrink: 0; border-radius: var(--doska-radius-sm); color: var(--doska-text-muted);
  transition: transform 120ms var(--doska-ease), background 120ms var(--doska-ease), color 120ms var(--doska-ease);
}
.doska-sidebar-tree-chevron.doska-sidebar-tree-chevron:hover { background: var(--doska-hairline); color: var(--doska-text); }
.doska-sidebar-tree-chevron[data-open] { transform: rotate(90deg); }
.doska-sidebar-tree-chevron-spacer { width: 24px; flex-shrink: 0; }
.doska-sidebar-tree-label.doska-sidebar-tree-label {
  display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; height: 100%;
  color: var(--doska-text-muted); font-size: 13px;
}
/* ЗНАЧОК ПАПКИ ЦВЕТОМ — по присланному образцу (Dropbox): там папки выделены цветом, а не
   слиты с текстом в один серый. Цвет берём свой, акцентный: чужой синий в нашей палитре стоял бы
   особняком. Значок «Все заметки» и служебные иконки не трогаем — правило только для папок. */
.doska-sidebar-tree-label svg { flex-shrink: 0; }
.doska-sidebar-tree-label > svg:first-child { color: var(--doska-accent); opacity: 0.85; }
.doska-sidebar-tree-row[data-active] .doska-sidebar-tree-label > svg:first-child { opacity: 1; }
.doska-sidebar-tree-label:hover,
.doska-sidebar-tree-row[data-active] .doska-sidebar-tree-label.doska-sidebar-tree-label { color: var(--doska-text); }
/* Per direct request ("добавить жирность medium для сайдбара для текста") */
.doska-sidebar-tree-label-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
/* Per direct request ("в сайдбаре для проектов показывать превью обложки проектов") — a small
   rounded thumbnail standing in for the plain LayoutGrid icon on real project rows only (see
   SidebarNode's own showCover prop); background-image (real cover) or the same deterministic
   fallback gradient FolderCard/ProjectGallery already use for a project with none. */
.doska-sidebar-tree-cover {
  width: 16px; height: 16px; border-radius: var(--doska-radius-sm); flex-shrink: 0;
  background-size: cover; background-position: center;
}
/* Per direct request ("В сайдбаре добавить три точки при ховере") — hidden until the row is
   hovered (or its own menu is already open — kept visible then so it doesn't vanish out from
   under an open dropdown), same reveal-on-hover convention .doska-stash-card-menu-btn already
   uses elsewhere in this file. */
.doska-sidebar-tree-menu-btn.doska-sidebar-tree-menu-btn {
  display: flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  flex-shrink: 0; border-radius: var(--doska-radius-sm); color: var(--doska-text-muted);
  opacity: 0; transition: opacity 120ms var(--doska-ease);
}
.doska-sidebar-tree-row:hover .doska-sidebar-tree-menu-btn,
.doska-sidebar-tree-row[data-menu-open] .doska-sidebar-tree-menu-btn { opacity: 1; }
.doska-sidebar-tree-menu-btn:hover { background: var(--doska-hairline); color: var(--doska-text); }
.doska-sidebar-tree-rename-input {
  flex: 1; min-width: 0; background: var(--doska-surface); border: 1px solid var(--doska-accent);
  border-radius: var(--doska-radius-sm); color: var(--doska-text); font-size: 13px; padding: 1px 5px;
}

/* ProjectGallery.tsx's own mobile "Список проектов" screen (see ProjectSidebar's `mobile` prop) —
   full width instead of the fixed 264px desktop rail, and sized via the same flex:1/min-height:0
   fix .doska-top-shell .doska-gallery already needed for the identical column-flex-child problem
   (a flex item defaults to min-height:auto, which refuses to shrink below content height, so the
   tree's own overflow-y:auto below never actually triggers without this). Rows/text/icons sized up
   from the desktop rail's own compact scale — per direct follow-up ("чуть крупнее древо на
   мобилке") a phone screen has room to spare and the desktop-tuned 13px/14px read cramped once
   this became the ONLY thing on the mobile projects screen rather than a narrow side rail. The
   "···" menu — hidden until :hover on desktop, per that rule's own comment — is forced visible
   here since touch has no hover at all. */
.doska-sidebar--mobile {
  width: 100%; flex: 1; min-width: 0; min-height: 0;
}
.doska-sidebar--mobile .doska-sidebar-tree-row { height: 50px; padding-left: 6px; }
.doska-sidebar--mobile .doska-sidebar-tree-label { font-size: 16px; gap: 10px; }
.doska-sidebar--mobile .doska-sidebar-tree-label svg { width: 18px; height: 18px; }
.doska-sidebar--mobile .doska-sidebar-tree-cover { width: 20px; height: 20px; border-radius: var(--doska-radius-sm); }
/* 24px -> 36px — per direct report ("стрелки раскрытия нужно крупнее, сложно попасть"): the
   50px-tall row above had plenty of headroom this tap target wasn't using at all. */
.doska-sidebar--mobile .doska-sidebar-tree-chevron.doska-sidebar-tree-chevron { width: 36px; height: 36px; }
.doska-sidebar--mobile .doska-sidebar-tree-chevron svg { width: 18px; height: 18px; }
.doska-sidebar--mobile .doska-sidebar-tree-chevron-spacer { width: 36px; }
.doska-sidebar--mobile .doska-sidebar-tree-children { margin-left: 17px; padding-left: 9px; }
.doska-sidebar--mobile .doska-sidebar-tree-menu-btn.doska-sidebar-tree-menu-btn { opacity: 1; width: 26px; height: 26px; }
.doska-sidebar--mobile .doska-sidebar-tree-menu-btn svg { width: 15px; height: 15px; }
/* margin-top 16px -> 0 — per direct report ("в мобильной версии сайдбар... должен выглядеть
   одинаково"), .doska-sidebar-top (title + "+" trigger) now renders on mobile too instead of being
   hidden (see that row's own comment in ProjectSidebar.tsx), so it supplies search's own top
   breathing room via its own bottom padding again, same as desktop — this compensating margin (added
   back when the ORIGINAL direct report was "на мобилке поиск слишком близко к дивайдеру", specifically
   because that row was hidden then) would now double up into an oversized gap instead of fixing one. */
.doska-sidebar--mobile .doska-sidebar-search { padding: 10px 12px; }
.doska-sidebar--mobile .doska-sidebar-search input { font-size: 15px; }
/* Per direct report ("не могу доскролить до низа древа на мобилке нужен отступ больше") — the
   floating pill .doska-mobile-action-bar sits fixed at bottom: calc(16px + safe-area) with its own
   ~64px height, covering whatever's underneath rather than pushing it up (nothing here reserves
   room for a fixed sibling). 84px + safe-area is this file's own established clearance for that
   exact bar (see .doska-tour-skip/.doska-review-panel/.doska-header-create-menu, all the same
   value) — the base rule's plain 12px left the last row or two permanently stuck under the bar. */
.doska-sidebar--mobile .doska-sidebar-tree-scroll {
  padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
}

/* Gallery ("Доски") page — a horizontal bar across the top instead of the vertical rail, matching
   Brana's own AppLayout header (52px, nav left, profile avatar right). `.doska-top-shell` has to
   switch from a row to a column for this so the bar sits ABOVE the gallery content instead of
   beside it. */
.doska-top-shell--topbar { flex-direction: column; }

.doska-topnav[data-layout="topbar"] {
  /* No divider — per direct request ("дивайдер в меню первого уровня не нужен"), was
     border-bottom: 1px solid var(--doska-hairline). The canvas/surface tone shift below is
     enough of a boundary on its own. */
  /* height 52 -> 62, padding-top 0 -> 10 — per direct report ("верхний отступ больше от верхнего
     края"), icons sat flush against the true viewport edge with zero breathing room above them.
     Box-sizing is border-box (.doska-root *), so the extra 10px comes off the TOP only — bottom
     stays 0 and the icon row's own content height (still 52px) is unchanged, just shifted down. */
  /* 62 -> 72 и отступ 10px снизу тоже (2026-10-14, «слишком ближе к нижнему дивайдеру»): поиск и кнопки
     стоят посередине между верхним краем и разделителем, а не прижаты к нему. */
  width: 100%; height: 72px; flex-shrink: 0; flex-direction: row; align-items: center;
  /* 20px flat -> 32px + max-width:1464px + auto margin — per direct follow-up ("логотип в меню
     первого уровня выровни с табами мои проекты на одной линии... аналогично справа кнопки").
     .doska-gallery-body's own content column is `padding: 32px` + `.doska-gallery-header-row`'s
     `max-width: 1400px; margin: 0 auto`; ProjectHeader's own hero/toolbar already match that at
     `max-width: 1464px` (1400 + 32 + 32, see that rule's own comment). This bar was the one place
     still using its own flat 20px inset with no centering at all — confirmed live, the logo sat
     20px from the true edge while "Мои проекты" sat noticeably further in on any viewport wider
     than ~1464px. background is var(--doska-canvas), same as the page canvas behind it (see
     .doska-topnav's own base rule), so capping/centering this element leaves no visible seam on a
     wide screen — the "margin" on either side is just more of the same background color. */
  max-width: 1464px; margin: 0 auto; padding: 10px 32px; border-right: none;
  /* Positioning ancestor for .doska-header-search-wrap's own absolute-center trick — see that
     rule's comment (per direct follow-up "ширина поиска на всех страницах одинаковая"). Centering
     now resolves against this same capped column too, not the raw viewport — keeps the search
     pill's own centering consistent with the rest of the row instead of drifting independent of
     it on a wide screen. */
  position: relative;
}
.doska-topnav[data-layout="topbar"] .doska-topnav-list { flex-direction: row; flex: 1; justify-content: flex-start; gap: 4px; }
.doska-topnav[data-layout="topbar"] .doska-topnav-item { width: 44px; height: 44px; padding: 0; }
/* Was bigger specifically on the topbar (46px, per an earlier direct request "логотип в меню
   первого уровня сделай крупнее") — per direct follow-up ("лого меньше сделать"), back down to
   32px, matching ProjectHeader's own .doska-breadcrumb-logo (see that rule's own comment on why
   the two need to stay in sync — both read as the same "level 1 menu" shape). Item box height
   (48px) stays as-is; only the mark itself shrinks, same as ProjectHeader's own fix. */
/* width: auto + justify-content: flex-start — per direct report ("у лого разное положение на
   вкладке мои проекты и внутри проекта"): the shared .doska-topnav-item rule above sizes every
   topbar icon button to a fixed 40px box and CENTERS its icon inside it, so a 32px logo sat 4px
   in from the row's true left edge here (centered in the 8px of slack) — but ProjectHeader's own
   .doska-breadcrumb-home (the equivalent "back to gallery" brand mark inside a project) has no
   fixed width at all, so ITS logo sits flush against the row's own left padding with zero inset.
   Both rows share the exact same 32px container padding (see each rule's own "выровни с табами"
   comment), so that 4px box-centering inset was the entire visible difference. Dropping the fixed
   width here removes the slack instead of adding it to the other side, matching breadcrumb-home's
   box model exactly. */
.doska-topnav[data-layout="topbar"] .doska-topnav-item--brand { height: 48px; width: auto; justify-content: flex-start; }
.doska-topnav[data-layout="topbar"] .doska-topnav-item--brand .doska-topnav-logo { width: 32px; height: 32px; }
/* list and footer split the row's normal flow 100% two ways (flex:1 each) — list's own
   justify-content:flex-start pins the logo to the true left edge, this footer's own
   justify-content:flex-end pins the icon cluster to the true right edge. The search pill isn't
   part of this flex split at all anymore (see .doska-header-search-wrap's own comment) — it's
   absolutely centered against the row directly, independent of whatever list/footer happen to
   contain, which is what keeps its width consistent with ProjectHeader's own topbar too. */
/* gap 4px -> 10px — per direct follow-up ("немного больше отступа между иконками"), Создать/
   Уведомления/Профиль read as one cramped cluster at the tighter spacing. */
.doska-topnav[data-layout="topbar"] .doska-topnav-footer { flex: 1; padding-top: 0; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.doska-topnav[data-layout="topbar"] .doska-topnav-footer .doska-pill-btn { width: 38px; height: 38px; }
.doska-topnav[data-layout="topbar"] .doska-topnav-footer .doska-pill-btn svg { width: 16px; height: 16px; }
.doska-topnav[data-layout="topbar"] .doska-topnav-footer .doska-profile-avatar { width: 36px; height: 36px; font-size: 13px; }
/* Flyout to the RIGHT of the narrow rail, not below it — .doska-project-menu's default
   `top: 30px; right: 0` assumes a horizontal-row trigger with room underneath, which the 56px
   vertical rail doesn't have. */
.doska-workspace-switcher-menu { top: 0; left: calc(100% + 8px); right: auto; min-width: 180px; }


@media (max-width: 768px) {
  /* Bottom bar now — flip to open upward above the trigger, same reasoning as the profile
     dropdown's own mobile flip just below. */
  .doska-workspace-switcher-menu { top: auto; bottom: calc(100% + 8px); left: 0; }
}

/* A permanent 56px-wide side rail is a desktop pattern — on a phone it eats ~15% of the whole
   screen width for two icons. Mobile treatment: a slim full-width bar, icons laid out
   horizontally — per direct follow-up ("меню первого уровня поднять на верх в моб версии...
   нельзя на одной линии с табами"), pinned to the TOP now (was the bottom, thumb-reach tab-bar
   style, before this) — TopNav is already the first child of .doska-top-shell in JSX, so simply
   NOT reordering it keeps it above the gallery content (incl. the "Мои проекты/Все заметки" tabs
   row), on its own line rather than sharing one with anything below it. */
@media (max-width: 768px) {
  .doska-top-shell { flex-direction: column; }
  .doska-topnav {
    width: 100%; height: 56px; flex-shrink: 0; flex-direction: row; align-items: center;
    padding: 0 16px; border-right: none; border-bottom: 1px solid var(--doska-hairline);
  }
  .doska-topnav-list { flex-direction: row; flex: 1; justify-content: center; }
  .doska-topnav-footer { padding-top: 0; }
  /* The gallery's topbar variant is a desktop-only treatment — on a narrow screen it collapses
     back to the same icon-only top bar as every other view, so the .doska-topnav[data-layout=
     "topbar"] overrides above just get neutralized here rather than fighting the shared mobile
     rules for width/order/etc. */
  /* padding-top: 0 (was the desktop rule's own 10px, asymmetric against its 0 bottom) — per
     direct report ("на мобилке поправить расположение лого к дивайдеру. сейчас криво прижимает"):
     that desktop-only top bias (added for its own reason — see the desktop rule's own comment,
     "верхний отступ больше от верхнего края") has HIGHER specificity than the general mobile
     `.doska-topnav { padding: 0 16px }` reset above (attribute+class beats a bare class,
     regardless of which one was "meant" for this width), so it silently kept winning here too —
     confirmed live: the logo/list row measured top:12.5/bottom:3.5 inside this 56px row instead of
     a centered 8/8, all fixed-item-height rows below (create/comments/profile) sit correctly
     centered by contrast. Symmetric padding lets align-items:center actually center it. */
  /* padding-left/right reset to the general mobile .doska-topnav's own 16px — same specificity
     trap as this rule's own comment already describes just above (attribute+class beats the
     general mobile reset regardless of which one was "meant" to win): the desktop-only 32px added
     for the "выровни с табами" column-alignment fix would otherwise leak through here too. */
  /* height:auto + real top/bottom padding — per direct follow-up ("сделать меню пошире по
     высоте"/"больше внутренних отступов... сверху и снизу") a hardcoded height left the logo/icons
     flush against the row's own edges; padding driving the row's real height is what actually
     gives that breathing room. Restored here — per a later direct follow-up ("верни на моб версию
     лого"), the logo row itself is back (see .doska-topnav-list's own rule below), reversing an
     even later "hide this whole row" fix. */
  .doska-topnav[data-layout="topbar"] { height: auto; padding: 14px 16px; max-width: none; margin: 0; }
  .doska-topnav[data-layout="topbar"] .doska-topnav-item { width: 44px; height: 44px; padding: 0; }
  /* Per direct report ("лого упирается в дивайдер") — the desktop "логотип крупнее" rule
     (.doska-topnav-logo at 46px, in a 48px-tall button) never got a matching mobile shrink when
     THIS row's own button dropped to 40px above, so the 46px logo kept overflowing its now-smaller
     container and rode almost flush against the row's own bottom border (measured live: logo
     bottom edge at y:55.5 inside a 56px-tall row — a 0.5px gap from the divider). Back to the same
     32px this class's own unconditional base rule already uses everywhere else that isn't this one
     desktop-topbar special case. */
  .doska-topnav[data-layout="topbar"] .doska-topnav-item--brand { height: 40px; width: auto; justify-content: flex-start; }
  .doska-topnav[data-layout="topbar"] .doska-topnav-item--brand .doska-topnav-logo { width: 32px; height: 32px; }
  /* list/footer are flex:1 EACH on desktop (the deliberate "three equal thirds" split that used to
     keep .doska-header-search-wrap's old absolute-centering math lined up — see that rule's own
     comment) — now that the wrap rejoins the row as a normal static flex child instead (per direct
     report "кнопка залезла на строку поиска" / "кнопка пропала добавить": the old fixed 110px
     mobile reserve was tuned before "Создать заметку" joined the footer's icon cluster, so the
     pill's own right edge started landing 95px past the icons' real left edge, painting over them
     entirely), flex:1 on these two would just compete with the wrap for the row's free space
     instead of hugging their own content. Shrink/grow-locked to content here so the wrap is the
     only side actually stretching. Placed in THIS block, not back with the wrap's own reset up in
     the search section, because it needs to win a specificity TIE against the unconditional
     desktop rule a few lines above — same selector, so source order decides, and this block is
     later in the file. */
  /* Per direct follow-up ("верни на моб версию лого") — reversing an earlier "hide this whole row"
     fix (which reasoned the logo was now redundant with the bottom bar's own "Домой"); the logo
     stays visible after all, now paired with the avatar pulled up to sit opposite it on the right
     (see .doska-profile-avatar's own mobile position:fixed rule) instead of the row being empty. */
  /* display:contents here now (was flex:0 0 auto) — per direct follow-up ("нижнее меню нужно как
     табы в приложении по всей ширине распределить"), .doska-mobile-action-bar's own mobile rule
     dissolves this wrapper so create/comments/profile become three independent siblings of the
     search icon instead of one clustered group — see that rule's own comment. `flex` on a
     `display:contents` box does nothing (it generates no box of its own to apply it to), so this
     fully replaces the old declaration rather than needing both. */
  .doska-topnav[data-layout="topbar"] .doska-topnav-footer { display: contents; }
  /* The comment above says the topbar's own overrides "just get neutralized here" — true for
     .doska-topnav-item, but NOT for these three: .doska-topnav-footer .doska-pill-btn/svg/
     .doska-profile-avatar keep their own desktop-only sizing (38x38, 16px icon, 36x36) at every
     width, same 4-simple-selector specificity as here, so nothing above this point ever touched
     them. Measured live at 390px: comments read 38x38/16px and the avatar 36x36 — smaller than,
     and inconsistent with, ProjectHeader's equivalent search/comments/avatar row one navigation
     away (44x44 pill-btn, 14px icon, now also 44x44 avatar — see .doska-header-group's own mobile
     fix above). Matching those same numbers here instead of leaving three different "comments
     icon" sizes across the app. */
  .doska-topnav[data-layout="topbar"] .doska-topnav-footer .doska-pill-btn { width: 44px; height: 44px; }
  /* 14px -> 24px — per direct report with a screenshot ("иконка поиска и колокольчик должна быть
     как домой по размеру"): this rule's own attribute-selector specificity ([data-layout="topbar"]
     counts as a class) was quietly beating .doska-mobile-action-bar .doska-review-anchor >
     .doska-pill-btn svg's own attempt at the same fix (confirmed live — the button grew to 44px
     right on cue, but its icon glyph stayed visibly smaller than Домой's 24px one beside it). */
  .doska-topnav[data-layout="topbar"] .doska-topnav-footer .doska-pill-btn svg { width: 18px; height: 18px; }
  /* Per direct follow-up ("справа напротив лого перемести настройки пользователя") — pulled up to
     sit opposite the logo at the true top of the screen instead of down in the floating bottom
     bar; same position:fixed escape trick as the bell/search icons used earlier this session (its
     own JSX stays exactly where it already was — see .doska-topnav-footer's own comment — only
     visually relocated via CSS). top:14px/right:16px match those same icons' own values.
     right -> left — per a later direct request ("иконку профиль передвинуть налево вместо лого"),
     the avatar now takes the logo's own corner outright instead of sitting opposite it; the logo
     button itself goes display:none right below (same breakpoint) rather than the two overlapping. */
  .doska-topnav[data-layout="topbar"] .doska-topnav-item--brand { display: none; }
  /* Per direct report ("кривое меню, править") — replaces the earlier approach (avatar and the
     search/comments/AI trio each independently position:fixed, each with its own hand-tuned `top`
     offset) with ONE real flex row: avatar left, icons right, align-items:center handles vertical
     alignment automatically instead of by matching numbers across several unrelated rules. min-
     height on the now-empty .doska-topnav-list (its own brand button is display:none right above)
     reserves the space this row used to occupy in normal flow — without it the row collapses to
     just its own padding and every real hides here, shifting content below up underneath this
     fixed bar. */
  .doska-topnav[data-layout="topbar"] .doska-topnav-list { min-height: 44px; }
  .doska-topnav-mobile-bar {
    position: fixed; top: 14px; left: 16px; right: 16px; z-index: 55;
    display: flex; align-items: center; justify-content: space-between;
  }
  .doska-topnav-mobile-bar .doska-profile-avatar { width: 44px; height: 44px; font-size: 13px; }
  .doska-topnav-mobile-bar-icons { display: flex; align-items: center; gap: 12px; }
  /* 28px/16px (this session's own first pass, matched to ProjectHeader.tsx's in-project header at
     the time) read too small next to the 44px avatar — per direct report ("иконки справа нужно
     крупнее"). 36px/22px here now; ProjectHeader's own cluster bumped to match right below. */
  .doska-topnav-mobile-bar-icons .doska-mobile-search-btn.doska-mobile-search-btn,
  .doska-topnav-mobile-bar-icons .doska-pill-btn.doska-pill-btn {
    width: 44px; height: 44px; border-radius: 6px; background: transparent; border: none;
  }
  .doska-topnav-mobile-bar-icons .doska-mobile-search-btn svg,
  .doska-topnav-mobile-bar-icons .doska-pill-btn svg {
    width: 18px; height: 18px;
  }
  /* Opens DOWNWARD (the base/desktop direction), left-anchored to match the avatar's own position
     at the row's LEFT edge now — a dropdown anchored right:0 against a trigger that sits at the
     left would open mostly off-screen to the right of its own button. */
  .doska-topnav-mobile-bar .doska-profile-dropdown { left: 0; right: auto; }
}
/* margin-bottom: 20px — per direct report ("поправить отступ от заголовка вниз до карточек"):
   this used to be margin:0, and every bare-h1 page (Интеграции, Настройки, FAQ, ...) had literal
   0px between the heading's own bottom and its content's top (confirmed live via
   getBoundingClientRect) — the heading's line-height read as a sliver of space but there was
   none. 20px matches .doska-gallery-header-row's own title-to-content margin elsewhere in this
   file, so the rhythm is consistent with pages that use that row instead of a bare h1. */
/* Крупнее и плотнее по прямому запросу «крупнее заголовки на страницах, более акцентные» —
   заголовки разделов (Календарь/Интеграции/FAQ/Задачи/...): 22 → 27, добавлен небольшой
   отрицательный трекинг, как у .doska-stash-hero-title, чтобы крупный кегль не читался рыхло. */
.doska-gallery-title { font-family: var(--doska-font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--doska-text); margin: 0 0 20px; }
/* Hidden on mobile — per direct follow-up ("убрать тут кнопку создать на мобилке"), now that the
   floating bottom bar's own "+" (.doska-header-create-btn) already covers project/note creation
   there, this heading-row copy read as a duplicate. Desktop unaffected — no bottom bar exists
   there to cover for it. */
.doska-gallery-card-rename-input {
  /* Padding 2px 6px -> 9px 11px, font-size 13.5 -> 15px — per direct report ("очень мелкое поле.
     узко"), the old sizing matched a plain menu-item row, not a field meant to be typed into.
     Paired with .doska-project-menu:has(.doska-gallery-card-rename-input) below, which widens the
     whole dropdown while renaming so this isn't just a taller field crammed into the same 148px
     shrink-to-fit menu. */
  font-size: 15px; font-weight: 600; color: var(--doska-text); background: var(--doska-surface);
  border: 1.5px solid var(--doska-accent); border-radius: var(--doska-radius-md); padding: 9px 11px; width: 100%;
}
.doska-project-menu:has(.doska-gallery-card-rename-input) { min-width: 240px; }
.doska-gallery-cover-picker {
  /* left, not right — at 300px wide (widened for legible thumbnails, see
     .doska-gallery-cover-result) a right-anchored popover ran off the LEFT edge of the viewport
     whenever the card itself sat near the screen edge (confirmed live: the gallery's first card is
     flush against x=0). Growing rightward from the card's own left edge has the grid's open space
     to expand into instead. */
  position: absolute; top: 38px; left: 8px; z-index: 5; width: 300px;
  display: flex; flex-direction: column; gap: 8px; padding: 8px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md); box-shadow: none;
}
/* Reused inside ProjectHeader's own "•••" menu (ProjectMenu) too, per direct request ("в трех
   точках все действия с проектом должны быть") — that dropdown is a small absolute-positioned
   box of its own already, so this variant drops the picker's normal absolute positioning (which
   assumed a card as its containing block) in favor of sitting in-flow inside the dropdown. */
.doska-gallery-cover-picker--inline { position: static; width: 240px; box-shadow: none; border: none; padding: 4px 0 0; }
.doska-gallery-cover-search {
  display: flex; align-items: center; gap: 6px; padding: 6px 8px;
  border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius-sm);
  color: var(--doska-text-muted);
}
.doska-gallery-cover-search input { flex: 1; font-size: 12px; color: var(--doska-text); background: none; border: none; outline: none; }
.doska-gallery-cover-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; min-height: 84px;
  /* Capped + scrollable, not just left to grow — a full 12-result grid pushed the "Загрузить своё
     фото" button (which comes right after it) off the bottom of the viewport with no way to reach
     it (confirmed live report: "также могу и свои изображения загрузить как было"). */
  max-height: 264px; overflow-y: auto;
}
.doska-gallery-cover-grid-status {
  grid-column: span 3; display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--doska-text-muted); min-height: 84px;
}
.doska-gallery-cover-result {
  aspect-ratio: 1; border-radius: var(--doska-radius-sm);
}
/* Doubled selector — same specificity trap as .doska-drawer-menu-item--danger above:
   `.doska-root button { background: none; ... }` is (0,1,1), a single-class rule here is only
   (0,1,0), so its `background: none` shorthand silently won and reset size/position/repeat/color
   back to their initial values no matter what this rule said (confirmed via computed-style check
   — background-size read back as "auto" despite this rule saying "contain"). Doubling the class
   bumps this to (0,2,0), which wins.
   contain, not cover — Unsplash's own `regular` URL is already entropy-cropped to a specific
   (often portrait) aspect ratio server-side; re-cropping THAT into a square via `cover` here
   could chop out the actual subject entirely (confirmed live: searching "car" returned genuine,
   correct car photos per the API response, but every square-cropped thumbnail showed only a flat
   patch of sky/asphalt/car-body color with no recognizable car in frame — reported as "варианты
   не соразмерно моему текстовому запросу", read as a search-relevance bug but was actually a
   cropping one, itself only reachable because of the specificity bug above). background-color
   fills the now-possible letterboxing. */
.doska-gallery-cover-result.doska-gallery-cover-result {
  background-size: contain; background-position: center; background-repeat: no-repeat; background-color: var(--doska-canvas);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); transition: transform 100ms var(--doska-ease);
}
.doska-gallery-cover-result:hover { transform: scale(1.06); box-shadow: 0 0 0 2px var(--doska-accent); }
.doska-gallery-cover-upload {
  display: flex; align-items: center; justify-content: center; gap: 5px;
  /* margin-top per direct report ("тут впритык загрузить фото к обложкам. добавить отступ") —
     sat flush against the cover grid right above it with zero breathing room. */
  margin-top: 10px; padding: 6px; border-radius: 999px;
  font-size: 11px; color: var(--doska-text-muted);
}
/* Doubled selector — same .doska-root button specificity trap as elsewhere in this file (the
   dashed "drop zone" border, this button's only affordance that it's clickable, wasn't rendering). */
.doska-gallery-cover-upload.doska-gallery-cover-upload { border: 1px dashed var(--doska-hairline-strong); }
/* accent-ink — "Загрузить своё фото" label text on this button's own accent-soft hover fill. */
.doska-gallery-cover-upload:hover { color: var(--doska-accent-ink); border-color: var(--doska-accent-soft); background: var(--doska-accent-soft); }
.doska-gallery-cover-upload:disabled { opacity: 0.6; cursor: default; }
/* Per direct report ("сортировку и создать проект кнопки опустить на уровень ниже, под табы") —
   confirmed live: tabs + sort + "Новый проект" all sharing one row overflowed a phone-width
   screen (text clipped at the edge). Wrapping the row and forcing the actions group to its own
   full-width line (rather than just letting it wrap wherever it happens to fit) puts it cleanly
   below the tabs instead of trailing off mid-row. */
@media (max-width: 768px) {
  /* 20px -> 84px+safe-area — this scroll body's own trailing clearance was tuned (180px) to clear
     TWO stacked fixed controls: a "Новый проект" floating pill AND the docked action bar. That
     pill is gone (dead CSS removed alongside this, see the comment above .doska-gallery-cover-btn
     block just above), so this only needs to clear the ONE remaining bar now — same
     calc(84px + safe-area) clearance .doska-back-to-top/.doska-tour-skip already use for exactly
     that single-bar case elsewhere in this file. */
  .doska-gallery-body { padding: 20px 16px calc(84px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Standalone auth pages (DoskaSignInPage/DoskaSignUpPage/DoskaOAuthCallbackPage) ----------
   Sign-in/up previously reused the generic main-site form — Doska's own idiom
   originally floated a glass card here (see .doska-generate-popover/.doska-annotate-toolbar), then
   per direct reference ("вот стили какие нужны для экранов авторизации" — a Strut/Mobbin screenshot
   set) that card was dropped for an open, uncontained layout: pill-shaped primary/Google buttons,
   no border/blur/shadow box around the form, bigger heading. Doska's own dotted-canvas backdrop and
   accent color are kept (that's the app's identity, not something the reference should override) —
   only the FORM's own chrome changed, not the page background. Only ResetPasswordRequestPage/
   PasswordResetSentPage/UpdatePasswordForm were deliberately left alone here — those are shared
   with the main (non-Doska) Brana app, so restyling them belongs to a separate, cross-app decision. */
/* ПОРЯДОК СЛОЁВ (29.09.2026). Было: страница красилась в `--doska-surface`, а поля ввода в
   `--doska-canvas`, то есть поле ТЕМНЕЕ страницы — слои шли наоборот всему остальному продукту.
   Теперь как везде: полотно внизу, карточка панелью, поле слоем выше панели. */
.doska-auth-page {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-canvas);
  padding: 24px;
  overflow-y: auto;
}
/* Карточка это панель языка: поверхность, волосяная рамка, радиус 14. На телефоне рамка снимается
   и форма занимает экран — обводка вокруг всего экрана там читается как рамка вокруг рамки. */
.doska-auth-card {
  width: 100%; max-width: 400px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-lg); padding: 28px 26px;
}
@media (max-width: 480px) {
  .doska-auth-page { padding: 16px; align-items: flex-start; }
  .doska-auth-card { background: none; border: none; padding: 24px 0 0; }
}
.doska-auth-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 32px; }
/* Real DoskaLogo SVG now (see DoskaAuthShell.tsx's own comment), not a background-tinted emoji
   box — width/height sizes the mark itself directly instead of a container square around it;
   the SVG's own two fills (--doska-accent shape + --doska-accent-contrast inner swirl) already
   provide all the color/contrast this used to fake with background-soft + a font-sized glyph. */
.doska-auth-logo-mark { width: 34px; height: 34px; flex-shrink: 0; }
.doska-auth-logo-text { font-family: var(--doska-font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 18px; color: var(--doska-text); }
.doska-auth-heading { text-align: center; margin-bottom: 26px; }
.doska-auth-title { font-family: var(--doska-font-display); font-weight: 600; letter-spacing: -0.02em; font-size: 24px; color: var(--doska-text); margin-bottom: 8px; text-wrap: balance; }
.doska-auth-subtitle { font-size: 14px; color: var(--doska-text-muted); }
.doska-auth-form { display: flex; flex-direction: column; gap: 16px; }
.doska-auth-field { display: flex; flex-direction: column; gap: 6px; }
.doska-auth-label { font-size: 12px; color: var(--doska-text-muted); transition: color 0.15s var(--doska-ease); }
/* Error state colors the label too, not just the input border/message — reference always keeps
   all three (label/border/helper text) red together. :has() avoids threading an extra error prop
   down to the label element itself. */
.doska-auth-field:has(.doska-auth-input[data-error='true']) .doska-auth-label { color: var(--doska-danger); }
.doska-auth-input-wrap { position: relative; }
.doska-auth-input {
  width: 100%;
  background: var(--doska-surface-raised);
  border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-md);
  /* 16px, а не 14: iOS Safari увеличивает страницу при фокусе в поле с меньшим кеглем. */
  padding: 12px 14px;
  font-size: 16px;
  font-family: var(--doska-font-ui);
  color: var(--doska-text);
  transition: border-color 0.15s var(--doska-ease);
}
/* АВТОЗАПОЛНЕНИЕ. Chrome красит подставленное поле своим светло-голубым фоном (замер на живой
   странице: rgb(232,240,254)) — на тёмной теме это светлая плашка с чужим тёмным текстом посреди
   формы. Фон у автозаполненных полей не переопределяется напрямую, поэтому берётся внутренней
   тенью во всю высоту, а цвет текста — через -webkit-text-fill-color. Задержка в переходе нужна,
   чтобы браузер не перекрасил поле обратно на первом кадре. */
.doska-auth-input:-webkit-autofill,
.doska-auth-input:-webkit-autofill:hover,
.doska-auth-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--doska-text);
  box-shadow: 0 0 0 1000px var(--doska-surface-raised) inset;
  caret-color: var(--doska-text);
  -webkit-transition: background-color 100000s ease-in-out 0s;
  transition: background-color 100000s ease-in-out 0s;
}
.doska-auth-input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-auth-input::placeholder { color: var(--doska-text-muted); }
.doska-auth-input:focus { border-color: var(--doska-accent); outline: none; }
.doska-auth-input[data-error='true'] { border-color: var(--doska-danger); }
.doska-auth-input-wrap .doska-auth-input { padding-right: 40px; }
.doska-auth-password-toggle {
  /* 40×40: замер на телефоне давал 22×22 — палец в такую цель не попадает. */
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  color: var(--doska-text-muted); border-radius: var(--doska-radius-sm);
}
.doska-auth-password-toggle:hover { color: var(--doska-text); }
/* Отказ красится ТОКЕНОМ: литералы #f87171 / #fca5a5 / rgba(239,68,68) остались от прежней
   красной гаммы и не менялись вместе с ней. */
.doska-auth-field-error { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--doska-danger); }
.doska-auth-field-error svg { flex-shrink: 0; }
.doska-auth-error {
  font-size: 13px; line-height: 1.5; color: var(--doska-danger);
  background: color-mix(in srgb, var(--doska-danger) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--doska-danger) 40%, transparent);
  border-radius: var(--doska-radius-md);
  padding: 10px 12px;
}
.doska-auth-notice {
  font-size: 13px; line-height: 1.5; color: var(--doska-text);
  background: var(--doska-accent-soft);
  border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-md);
  padding: 10px 12px;
}
.doska-auth-error .doska-auth-link, .doska-auth-notice .doska-auth-link { margin-top: 4px; display: inline-block; }
/* Pill buttons — the reference's single most recognizable trait, applied to both the primary
   submit and the Google button (border-radius: 999px overrides the boxier --doska-radius-md
   every other button in the app uses; deliberate, scoped to just these two auth actions).
   Doubled selectors — same `.doska-root button { background: none; color: inherit; border: none }`
   specificity trap as elsewhere in this file (0,1,1 beating a single-class rule's 0,1,0): the fill
   declarations below were always being silently discarded, which is why "Войти" rendered as a bare
   outline/glow instead of an actual filled primary button. */
.doska-auth-submit.doska-auth-submit {
  width: 100%;
  background: var(--doska-accent);
  color: var(--doska-accent-contrast);
  /* Радиус из шкалы, а не капсула: в «Графите» капсулы носят только переключатели и фильтры,
     а основное действие имеет тот же радиус 12, что кнопки внутри продукта. Тяжёлая тень снята —
     в языке тени нейтральные и мелкие, подсветка кнопки ей не нужна. */
  border-radius: var(--doska-radius-md);
  min-height: 46px;
  padding: 13px 18px;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: filter 0.15s var(--doska-ease);
}
.doska-auth-submit:hover:not(:disabled) { filter: brightness(1.08); }
.doska-auth-submit:disabled { opacity: 0.6; cursor: default; box-shadow: none; }
.doska-auth-forgot { display: block; margin: 12px auto 0; font-size: 13px; text-align: center; }
.doska-auth-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--doska-text-muted); }
.doska-auth-divider::before, .doska-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--doska-hairline); }
.doska-auth-google.doska-auth-google {
  width: 100%;
  background: var(--doska-surface);
  border: 1px solid var(--doska-hairline);
  color: var(--doska-text);
  border-radius: var(--doska-radius-md);
  min-height: 46px;
  padding: 12px 16px;
  font-size: 15px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.15s var(--doska-ease);
}
.doska-auth-google:hover:not(:disabled) { background: var(--doska-secondary); }
.doska-auth-google:disabled { opacity: 0.6; cursor: default; }
.doska-auth-footer { text-align: center; margin-top: 22px; font-size: 13px; color: var(--doska-text-muted); }
.doska-auth-link { color: var(--doska-accent); font-weight: 600; }
.doska-auth-link:hover { filter: brightness(1.2); }
.doska-auth-link:disabled { opacity: 0.5; cursor: default; }
.doska-auth-success-icon {
  width: 56px; height: 56px; border-radius: 999px;
  background: transparent; color: var(--doska-accent);
  box-shadow: inset 0 0 0 1.5px var(--doska-accent);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
/* accent-ink — the confirmation email address on this flat auth-page canvas/surface background,
   same raw-accent shortfall as everywhere else in this sweep. */
.doska-auth-email-highlight { color: var(--doska-accent-ink); font-weight: 600; word-break: break-all; }
/* Live password-length indicator (DoskaSignUpPage) — deliberately just the ONE real rule
   (AuthPassword = z.string().min(8), entities/auth.ts) rather than the reference's fuller
   character-class checklist, which doesn't correspond to any rule Doska actually enforces —
   showing unmet fake requirements would be misleading, not just decorative. */
.doska-auth-password-hint {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--doska-text-muted);
  border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-sm); padding: 7px 10px;
}
.doska-auth-password-hint[data-met] { color: var(--doska-glow-location); border-color: transparent; background: var(--doska-accent-soft); }
.doska-auth-password-hint svg { flex-shrink: 0; }
.doska-auth-spin { animation: doska-auth-spin 0.8s linear infinite; }
@keyframes doska-auth-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .doska-auth-spin { animation: none; }
}

/* ---------- FAQ / knowledge-base page (FaqPage.tsx) ---------- */
/* СТРАНИЦА ПО ЦЕНТРУ — по прямому запросу «в FAQ выровнять по центру». Колонка текста была
   прижата к левому краю широкого экрана, и на 1400 пикселях справа оставалось полтора экрана
   пустоты. Центрируется КОЛОНКА, а не текст в ней: выключка по центру у вопросов и ответов читается
   хуже, чем по левому краю, при любой ширине. */
.doska-faq-page > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.doska-faq-intro { font-size: 13px; margin: -8px auto 24px; }
.doska-faq-group { max-width: 760px; margin: 0 auto 28px; }
/* «Популярное» в FAQ — per direct request «в FAQ сделать популярные топики»: чипы с самыми
   частыми вопросами над списком групп. Нажатие раскрывает нужный вопрос там, где он живёт, и
   подводит к нему экран, поэтому это ссылки на существующие ответы, а не их копии. */
.doska-faq-popular { max-width: 760px; margin: 0 auto 28px; } /* по центру, как группы ниже: margin 0 0 сбивал выравнивание (2026-10-14) */
.doska-faq-popular-title {
  margin: 0 0 var(--s-1); font-size: 12px; font-weight: 600; letter-spacing: 0;
  text-transform: none; color: var(--doska-text-muted);
}
.doska-faq-popular-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.doska-faq-popular-chip.doska-faq-popular-chip {
  padding: 8px 12px; border-radius: 6px;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline);
  color: var(--doska-text); font-size: 13px; text-align: left; cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.doska-faq-popular-chip.doska-faq-popular-chip:hover {
  border-color: var(--doska-hairline-strong); background: var(--doska-hover, var(--doska-surface));
}

.doska-faq-item { border-bottom: 1px solid var(--doska-hairline); }
.doska-faq-item:first-of-type { border-top: 1px solid var(--doska-hairline); }
.doska-faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 2px; text-align: left; font-size: 14px; font-weight: 500; color: var(--doska-text);
}
/* accent-ink — confirmed live: 13.5px/550 question text measures exactly 3.99:1 raw against the
   FAQ page's canvas background, under the 4.5:1 AA bar. */
.doska-faq-question:hover { color: var(--doska-accent-ink); }
.doska-faq-chevron { flex-shrink: 0; color: var(--doska-text-muted); transition: transform 0.18s var(--doska-ease); }
.doska-faq-question[data-open] .doska-faq-chevron { transform: rotate(180deg); color: var(--doska-accent); }
.doska-faq-answer { font-size: 13px; line-height: 1.55; color: var(--doska-text-muted); padding: 0 2px 16px; max-width: 58ch; }

/* ---------- DoskaPublicBoardPage.tsx — public, unauthenticated, read-only board view ---------- */
/* Reuses .doska-root for its whole --doska-* token set (see that class's own header comment) but
   overrides its position:fixed/overflow:hidden — those are the CANVAS app shell's own layout,
   built around internally-scrolled panels, not a normal page. This is a plain page that should
   scroll like one; a 2-class selector here (.doska-root.doska-public-board) beats the bare
   .doska-root rule on specificity, so it doesn't matter which comes first in the file.
   .doska-presentation (DoskaPresentationPage.tsx) is the exact same "plain scrolling page"
   architecture, just its own top-level class instead of reusing doska-public-board — per direct
   report ("создал презентацию и открыл, не могу скролить"), it never got this override, so any
   presentation with more items than fit one viewport was silently unreachable past the fold. */
.doska-root.doska-public-board-status,
.doska-root.doska-presentation {
  position: static; inset: auto; overflow: visible; min-height: 100vh;
}
.doska-public-board-status {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; min-height: 100vh; padding: 24px; text-align: center;
}
.doska-public-board-status-logo { width: 40px; height: 40px; opacity: 0.7; }
.doska-public-board-status--error p { color: var(--doska-text-muted); font-size: 14px; max-width: 40ch; }
.doska-public-board-logo { width: 30px; height: 30px; }
.doska-public-board-badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 6px; padding: 4px 10px;
}
.doska-public-board-empty { color: var(--doska-text-muted); font-size: 14px; grid-column: 1 / -1; }

/* DoskaPresentationPage — per direct request ("кнопка «Презентовать»... получить красивую
   презентацию"). Deliberately more editorial than .doska-public-board-header/-grid above (the
   plain "share my whole board" page): centered, larger display type, an intro paragraph, bigger
   cards with more breathing room — reads as a portfolio/story, not a file browser. Reuses
   .doska-public-board-logo/-badge/-status and -empty, and every .doska-public-card rule, as-is (same
   card rendering, PublicItemCard/PublicItemModal), only the header + grid density differ. */
.doska-presentation-hero {
  position: relative; padding: 72px 32px 40px; background-size: cover; background-position: center;
  border-bottom: 1px solid var(--doska-hairline); text-align: center;
}
.doska-presentation-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 17, 0.5) 0%, rgba(14, 14, 17, 0.82) 100%);
}
.doska-presentation-hero-scrim {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  max-width: 720px; margin: 0 auto;
}
.doska-presentation-title {
  font-family: var(--doska-font-display); font-size: 40px; font-weight: 600; line-height: 1.12;
  letter-spacing: -0.01em; color: #fff; text-wrap: balance; margin: 4px 0 0;
}
.doska-presentation-intro {
  font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); text-wrap: pretty;
  max-width: 60ch; margin: 0;
}
.doska-presentation-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 36px 32px 72px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px;
  align-items: start;
}
/* Per direct report ("нет явного повествования") — the AI already writes each pick's narrative
   position into its own reason (see doska_upsert_presentation's own comment); showing it as a
   caption under the card is what turns a flat grid into something that reads as a sequence, not a
   pile. The index number is a deliberate exception to the usual "no numbered markers" rule — here
   the order genuinely IS the curated narrative arc (see curate_presentation's own system prompt:
   "выстрой её так, чтобы это ощущалось как цельная история"), so the number carries real
   information a reader needs, not decorative scaffolding. */
.doska-presentation-item { position: relative; display: flex; flex-direction: column; gap: 8px; }
.doska-presentation-item-index {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  border-radius: 999px; background: rgba(14, 14, 17, 0.72); color: rgba(255, 255, 255, 0.9);
  font-size: 11px; font-weight: 600; pointer-events: none;
}
.doska-presentation-item-reason { font-size: 13px; line-height: 1.5; color: var(--doska-text-muted); margin: 0; padding: 0 2px; }
@media (max-width: 640px) {
  .doska-presentation-hero { padding: 48px 20px 28px; }
  .doska-presentation-title { font-size: 24px; }
  .doska-presentation-grid { padding: 22px 16px 56px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
}

.doska-public-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-lg); padding: 14px;
  text-decoration: none; color: inherit;
  /* Every non-link/non-image-only variant is a real <button> now (note/place/task/voice/image
     all open a read view on click — see PublicItemModal) — a plain browser button carries its own
     font/alignment/appearance defaults that a <div> never did, so those need resetting explicitly
     here rather than relying on inheritance the way this rule could when everything was a <div>. */
  font: inherit; text-align: left; width: 100%; cursor: pointer; -moz-appearance: none; appearance: none; -webkit-appearance: none;
  transition: border-color 140ms var(--doska-ease);
}
.doska-public-card:hover { border-color: var(--doska-hairline-strong); }
.doska-public-card--image { padding: 0; overflow: hidden; }
.doska-public-card--image img { width: 100%; display: block; border-radius: var(--doska-radius-lg) var(--doska-radius-lg) 0 0; }
.doska-public-card--image .doska-public-card-body { padding: 0 14px 14px; margin: 0; }
.doska-public-card--link img, .doska-public-card--place img {
  width: 100%; aspect-ratio: 16 / 10; -o-object-fit: cover; object-fit: cover;
  border-radius: var(--doska-radius-md); margin-bottom: 2px;
}
.doska-public-card-icon {
  width: 36px; height: 36px; border-radius: var(--doska-radius-md);
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface-raised); color: var(--doska-text-muted); flex-shrink: 0;
}
/* The link/place card thumbnail's own icon fallback (Thumb with no/broken src) needs the same
   16:10 box the real <img> would have occupied — without it, a missing preview collapses to the
   icon's own 36px square, which reads as an unrelated small badge, not "no preview available". */
.doska-public-card--link .doska-public-card-icon, .doska-public-card--place .doska-public-card-icon { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--doska-radius-md); margin-bottom: 2px; }
.doska-public-card-title { font-size: 14px; font-weight: 600; color: var(--doska-text); line-height: 1.35; }
.doska-public-card-host { font-size: 12px; color: var(--doska-text-muted); display: inline-flex; align-items: center; gap: 4px; }
.doska-public-card-body { font-size: 13px; color: var(--doska-text-muted); line-height: 1.5; margin: 0; white-space: pre-wrap; }
/* Grid tiles only ever need to say enough to recognize the item — full text lives one click away
   in PublicItemModal now. Without this, a long note/place/voice caption stretched its own tile far
   past every other card's height, breaking the grid (confirmed live — see PublicItemCard's own
   comment on the note branch). */
.doska-public-card-clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.doska-public-card--voice audio { width: 100%; }
.doska-public-card--task { flex-direction: row; align-items: center; gap: 10px; font-size: 13px; color: var(--doska-text); }
.doska-public-card--task[data-done] { color: var(--doska-text-muted); text-decoration: line-through; }
.doska-public-card--task svg { flex-shrink: 0; color: var(--doska-text-muted); }

/* Read-only detail view for note/task/place/voice (see PublicItemModal in DoskaPublicBoardPage.tsx)
   — link opens its real source directly and image is already shown full-size on its own tile,
   neither needs this second "open" step. */
.doska-public-item-modal-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
.doska-public-item-modal {
  position: relative; width: 100%; max-width: 520px; max-height: 80vh; overflow-y: auto;
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline-strong);
  border-radius: var(--doska-radius-lg); padding: 28px;
}
.doska-public-item-modal-close {
  position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface); color: var(--doska-text-muted);
}
.doska-public-item-modal-kind { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--doska-text-muted); }
.doska-public-item-modal h2 { font-family: var(--doska-font-display); font-size: 20px; font-weight: 600; color: var(--doska-text); margin: 8px 32px 0 0; }
.doska-public-item-modal-audio { width: 100%; margin-top: 16px; }
/* Per direct report with a screenshot ("не открывет картинку в презентации") — see
   PublicItemModal's own comment for why this was missing entirely. object-fit:contain over a
   fixed max-height keeps a tall portrait photo from forcing the whole modal past the viewport. */
.doska-public-item-modal-image {
  display: block; width: 100%; max-height: 60vh; -o-object-fit: contain; object-fit: contain;
  border-radius: var(--doska-radius-md); margin-top: 14px; background: var(--doska-surface);
}
.doska-public-item-modal-body {
  margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--doska-text); white-space: pre-wrap;
  display: flex; gap: 8px; align-items: flex-start;
}
.doska-public-item-modal-body[data-done] { color: var(--doska-text-muted); text-decoration: line-through; }
.doska-public-item-modal-body svg { flex-shrink: 0; margin-top: 2px; }
/* A real filled CTA -- same monochrome-accent-fill/accent-contrast-ink pairing as the invite
   email's own "Принять приглашение" button -- not a quiet inline text link. Confirmed live it was
   easy to miss entirely against the modal's own body text ("сложно найти"). */
.doska-public-item-modal-external {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin-top: 20px; padding: 12px 20px; border-radius: var(--doska-radius-md);
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  font-size: 14px; font-weight: 600; text-decoration: none;
  transition: filter 140ms var(--doska-ease);
}
.doska-public-item-modal-external:hover { filter: brightness(1.08); }

@media (max-width: 640px) {
  .doska-public-item-modal { padding: 22px; max-height: 85vh; }
}


/* Локальный поиск над списком заметок — только мобилка (per direct request «обязательно нужна
   строка поиска над заметками на мобилке»). Та же «пилюля» с иконкой, что у поля поиска по
   проектам в сайдбаре. */
/* Разделы внутри бургер-дровера — те же строки, что раньше были иконками рельсы, но с подписями:
   на широком дровере подпись читается лучше, чем голая иконка. */

/* «Создать» на мобилке — полноэкранная страница, а не модалка по центру (per direct request
   «когда нажал на мобилке на создать то нужно видеть меню на отдельной странице»). Переиспользуем
   ту же разметку модалки, просто разворачиваем её на весь экран. */
@media (max-width: 768px) {
  .doska-stash-create-backdrop { padding: 0; align-items: stretch; }
  .doska-stash-create-modal {
    width: 100%; max-width: none; max-height: none;
    border-radius: 0; border: none;
    /* height: 100dvh, а не 100% — per direct report «на мобилке криво сделано создать заметку,
       не могу закрыть форму». Подложка растянута на fixed inset:0, и её высота на телефоне
       считается по БОЛЬШОМУ вьюпорту, без учёта панелей браузера. Модалка наследовала эту завышенную
       высоту, её верх и низ уезжали за пределы видимой области — вместе с крестиком в правом
       верхнем углу. Та же правка, что уже сделана для модалки карточки. */
    height: 100vh; height: 100dvh;
    /* Полный экран => содержимое может не поместиться (плитки типов + форма выбранного типа),
       поэтому страница скроллится сама, а не обрезается. */
    overflow-y: auto;
    /* Верхний отступ + safe-area — «ниже опусти»: на телефонах с вырезом верхняя полоса занята
       системой, и контент, начинавшийся с 24px, физически попадал под неё. */
    /* Верхний отступ 24 -> 64px (per direct request «на мобилке создать заметку блок опусти
       ниже»). Число не на глаз: крестик закрытия стоит на 14px + safe-area и имеет высоту 40px,
       то есть заканчивается на 54px. Контент, начинавшийся с 24px, шёл ПОД ним и читался как
       наползающий. 64px = 54 + 10px воздуха, поэтому блок гарантированно начинается ниже крестика
       при любой safe-area (она входит в оба слагаемых одинаково). */
    padding: calc(64px + env(safe-area-inset-top, 0px)) 18px calc(32px + env(safe-area-inset-bottom, 0px));
  }
  /* Крестик опускается на ту же величину — иначе он остаётся под системной полосой и нажать его
     нельзя, что и было главной жалобой («не могу закрыть форму»). */
  .doska-stash-create-close {
    top: calc(14px + env(safe-area-inset-top, 0px));
    width: 40px; height: 40px;
  }
}

/* Круглый «+» внизу экрана — мобильная точка создания заметки (per direct request «кнопку создать
   на мобилке сделать внизу в плюсике в кругу»). Тот же нижний отступ и z-index, что у ИИ-кнопки
   (.doska-stash-ai-fab), но у левого края — чтобы две плавающие кнопки не перекрывались. */

/* Меню создания (Заметку/Проект/Папку) на мобилке — полноэкранная страница, а не всплывашка
   поверх сетки (per direct request «нужно чтобы на мобилке было на отдельной странице»). Тот же
   приём, что уже применён к .doska-stash-create-modal: разметку не трогаем, разворачиваем на
   весь экран. Двойной селектор — .doska-drawer-menu задаёт свою ширину/позицию позже по файлу. */
@media (max-width: 768px) {
  .doska-header-create-menu.doska-header-create-menu {
    position: fixed; inset: 0; z-index: 80;
    width: 100%; max-width: none; min-width: 0; height: 100%; max-height: none;
    margin: 0; border: none; border-radius: 0;
    display: flex; flex-direction: column; justify-content: center; gap: 4px;
    padding: 24px 18px calc(24px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    background: var(--doska-canvas);
  }
  .doska-header-create-menu .doska-create-menu-item { padding: 18px 14px; }
}

/* Крестик на полноэкранной странице создания (per direct report «на мобилке поправить страницу
   создания, сейчас её нельзя закрыть, нет крестика»). На десктопе меню — обычная всплывашка,
   закрывается кликом мимо, поэтому кнопка там не нужна и скрыта. На мобилке меню развёрнуто в
   position:fixed inset:0 (правило выше), мимо кликнуть некуда — крестик и есть единственный выход.
   Абсолютное позиционирование считается от самого меню (оно fixed), поэтому отдельный
   position:relative не нужен; двойной селектор — по готче №1 из CLAUDE.md. */
.doska-create-menu-close { display: none; }
@media (max-width: 768px) {
  .doska-create-menu-close.doska-create-menu-close {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px;
    width: 40px; height: 40px; padding: 0; border-radius: 999px;
    background: var(--doska-surface-raised); color: var(--doska-text);
    border: 1px solid var(--doska-hairline);
  }
  .doska-create-menu-close.doska-create-menu-close:active { filter: brightness(1.15); }
}

/* Обводка-карточка вокруг контента на мобилке не нужна — per direct request («убрать на мобилке
   обводку на Все заметки»). Та же логика, что уже применена к .doska-project-with-sidebar: на
   узком экране плавающая карточка съедает ширину, а отделять её тут не от чего (рельсы на
   мобилке больше нет). */
@media (max-width: 768px) {
  .doska-top-shell--sidebar .doska-board-shell {
    margin: 0; border: none; border-radius: 0;
  }
}

/* Строка уведомлений внутри бургер-меню — колокольчик ReviewQueue + подпись, чтобы строка читалась
   так же, как соседние разделы. */

/* Заголовок раздела не липнет на мобилке — per direct request («не нужно чтобы был фиксирован на
   мобилке»). Отменяет sticky из блока @media (max-width: 900px) выше: на телефоне прилипшая
   строка съедала и без того малую высоту экрана, а прокручиваемого контекста над ней нет.
   Двойной селектор — тот же приоритет, что у исходного правила, но правило ниже по файлу. */
@media (max-width: 768px) {
  .doska-stash-folder-content-header.doska-stash-folder-content-header {
    position: static; top: auto; z-index: auto; padding: 0;
  }
}

/* Выравнивание мобильной шапки — per direct report со скриншотом («править вёрстку выравнивание
   на мобилке»): .doska-global-page-header-search-wrap на десктопе позиционируется абсолютно и
   центрируется, из-за чего на телефоне лупа выпадала из потока и группа кнопок висела с широким
   отступом слева, а аватар — сам по себе справа. На мобилке возвращаем нормальный поток: слева
   бургер/проекты/поиск одной группой, справа аватар, между ними — space-between. */
@media (max-width: 768px) {
  .doska-global-page-header-search-wrap {
    position: static; transform: none; width: auto; max-width: none; z-index: auto;
  }
  /* Группа слева (бургер + проекты + лупа) прижата к левому краю, аватар уезжает вправо сам. */
  .doska-global-page-header-actions { margin-left: auto; }
}

/* Выравнивание шапки списка заметок на мобилке — per direct report со скриншотом («выровни на
   мобилке»). После скрытия Тип/Темы/Сортировки в строке действий остался ОДИН переключатель
   сетка/список, а правило @media(max-width:900px) растягивает эту строку на всю ширину
   (width:100%) — из-за чего он висел отдельной строкой у правого края с пустотой слева. Теперь
   на мобилке: заголовок отдельной строкой сверху, а поиск и переключатель — в одной строке,
   поиск тянется, переключатель прижат вправо. Двойные селекторы — правило из блока 900px имеет
   ту же специфичность. */
@media (max-width: 768px) {
  .doska-stash-folder-content-header.doska-stash-folder-content-header {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px;
  }
  .doska-stash-folder-content-header .doska-stash-folder-content-title { flex: 1 0 100%; margin: 0; }
  .doska-stash-folder-content-actions.doska-stash-folder-content-actions {
    flex: 0 0 auto; width: auto; margin: 0; overflow: visible;
  }
}

/* Дословный дубль предыдущего блока удалён: тот же комментарий, тот же набор правил —
   второй экземпляр ничего не добавлял. Найдено при разборе, почему заголовок «Заметки» не
   вставал в одну строку с сортировками на мобилке. */

/* Меню первого уровня на телефоне — крупнее иконки и заметнее обводка (per direct request
   «крупнее на мобилке меню 1го уровня иконки и обводку потолще»). Замер до правки: кнопки 38×38
   с иконкой 16px (у бургера 44/18 — то есть соседние кнопки той же строки были разного размера),
   обводка 1px при 8% белого — на телефоне такая линия практически не читается.
   Стало: все кнопки строки одного размера 44×44 (это же и минимальная цель для пальца), иконка
   22px, обводка 1.5px более контрастным тоном.
   Размер иконки задаётся здесь, а не пропом size у lucide: у кнопок этой строки разные компоненты
   (ReviewQueue рисует свою), и одно правило по строке надёжнее, чем правка каждого места.
   Селектор (0,3,0) — базовый фон/обводка приходят из `.doska-pill-btn.doska-pill-btn` (0,2,0),
   готча №1; блок стоит в конце файла, поэтому спор порядка исключён. */

/* «Плюс» в мобильном меню первого уровня — сплошная акцентная заливка (per direct request
   «плюсик на мобилке в меню нужно в акцентной заливке в зависимости от светлой или тёмной темы»).
   Акцент в этом продукте — не фиксированный оттенок, а «то, что контрастирует с фоном темы»
   (см. комментарий у --doska-accent): почти белый в тёмной теме, почти чёрный в светлой. Поэтому
   тема учитывается сама собой, без отдельных правил под каждую, а иконка красится парным
   --doska-accent-contrast — иначе на светлой теме получился бы чёрный на чёрном.
   Селектор (0,3,0): фон приходит из `.doska-pill-btn.doska-pill-btn` (0,2,0) — готча №1. */

/* Действия спейса («Пригласить», «Поделиться», «•••») — В ОДНОЙ СТРОКЕ с названием, у правого
   края (per direct request «внутри проекта иконки „Пригласить“, „Шарить“ и три точки должны быть
   выровнены по заголовку и находиться справа»). Раньше они шли отдельной полосой под названием, и
   строка с одним названием пустовала во всю ширину.
   Раскладка flex-wrap, а не grid: у этой шапки переменный состав детей (хлебная крошка есть не
   всегда, служебная верхняя строка схлопнута в ноль), поэтому «каждая полоса на своей строке, а
   название и действия — вместе» надёжнее выражается базисом 100% с исключением для этой пары, чем
   явными номерами строк, которые разъедутся при первом же изменении состава.
   Только веб: на телефоне действия остаются под названием — там строка узкая, и три кружка рядом с
   длинным названием спейса не помещаются. */
@media (min-width: 769px) {
  .doska-project-header {
    display: flex; flex-wrap: wrap; align-items: center; -moz-column-gap: 12px; column-gap: 12px;
    /* Боковые поля равны полям колонки содержимого — per direct request («название вылезло по
       выравниванию налево, выровнять по линии, где находится поиск; три иконки — по правой стороне
       поиска»). Замер до правки: шапка занимала 69…1391, а поле поиска под ней — 101…1359, то есть
       и название, и кружки действий торчали на 32px в каждую сторону.
       Ширину ограничивает САМА шапка — живой отчёт «вёрстка поехала на большом расширении» со
       скриншотом: на 2560px каждый кусок шапки нёс СВОЙ предел (обложка 1400, полоса действий и
       хлебная крошка 1464), и при flex-wrap крошка шириной 1464 оставляла справа место — название и
       кружки уезжали к ней на одну строку, к правому краю экрана. Теперь предел один на всю шапку,
       а у детей он снят: полоса занимает ровно свою строку, и переносы считаются от общей ширины. */
    /* 1464 = 1400 колонки + 2×32 собственных полей: тогда СОДЕРЖИМОЕ шапки шириной ровно в
       колонку и начинается там же, где поиск (замер на 2560: колонка 610…2010). При max-width 1400
       содержимое получалось уже колонки на те же 64px — название стояло на 642 вместо 610. */
    max-width: 1464px; margin-left: auto; margin-right: auto;
    padding-left: 32px; padding-right: 32px;
  }
  .doska-project-header > * { max-width: none; width: auto; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  /* Свои боковые поля хлебной крошки обнуляем: теперь их держит шапка (см. выше), а до правки
     складывались оба — замер показал стрелку «Ко всем спейсам» на 133 при названии и поиске на 101.
     Отрицательное поле у первого элемента компенсирует его собственный внутренний отступ (6px),
     чтобы по вертикали совпадала САМА СТРЕЛКА, а не невидимая рамка кнопки вокруг неё. */
  .doska-project-header-breadcrumb.doska-project-header-breadcrumb { padding-left: 0; padding-right: 0; }
  .doska-project-header-breadcrumb.doska-project-header-breadcrumb > :first-child { margin-left: -6px; }
  .doska-project-header > * { flex: 1 0 100%; min-width: 0; }
  /* width: auto обязателен — у самой обложки ширина 100% из её базового правила, и с ней она
     занимала всю строку целиком, выталкивая действия вниз (замер: полоса действий оставалась на
     184 при названии на 139). */
  .doska-project-header > .doska-project-hero.doska-project-hero { flex: 1 1 auto; width: auto; }
  .doska-project-header > .doska-project-actions-bar.doska-project-actions-bar {
    flex: 0 0 auto; width: auto; margin: 0 0 0 auto; justify-content: flex-end;
  }
}

/* Шапка спейса на ТЕЛЕФОНЕ — по той же колонке, что поиск и карточки под ней. Замер до правки:
   название начиналось с 32, полоса действий шла от края до края (0…390), а поле поиска — 12…378;
   то есть шапка жила по своим полям, не совпадающим ни с чем вокруг. Значения те же 12px, что у
   страницы (см. .doska-board-shell--page в мобильном блоке) — одна вертикаль на весь экран.
   Веб-правило (padding 32px) живёт в своём медиазапросе выше и сюда не достаёт. */
@media (max-width: 768px) {
  /* Шапка спейса на телефоне была ВЫСОКОЙ И ПУСТОЙ — живой отчёт со скриншотом «править вёрстку,
     отступы на мобилке»: замер показал у обложки min-height: 150px, оставшийся с тех пор, когда там
     была цветная плашка с картинкой. Плашки нет с более ранней правки, и эти 150px превращались в
     полосу пустоты между названием (185…221) и кружками действий (288). Снимаем минимум и поджимаем
     поля: высоту теперь задаёт содержимое.
     Стрелка «назад» дополнительно сдвинута на свой внутренний отступ — иначе она стоит на 28 при
     названии на 12 (та же оптическая правка, что на вебе). */
  .doska-project-hero.doska-project-hero.doska-project-hero {
    min-height: 0; padding-top: 2px; padding-bottom: 6px; gap: 8px;
  }
  /* Стрелка «назад» на телефоне живёт ВНУТРИ верхней строки шапки, и сдвигало её поле именно этой
     строки: замер — строка на 12, её padding 14px/16px, стрелка на 28, а название и поиск на 12.
     Обнуляем боковые поля строки (вертикальные оставляем) и компенсируем внутренний отступ самой
     кнопки, чтобы совпадала САМА СТРЕЛКА, а не рамка вокруг неё.
     (Первая попытка этих правил по ошибке попала в ДЕСКТОПНЫЙ медиазапрос — на 390px они просто не
     применялись, и замер честно показывал прежние 28.) */
  .doska-project-header-top.doska-project-header-top.doska-project-header-top {
    padding-left: 0; padding-right: 0;
  }
  /* Дополнительный сдвиг САМОЙ ленты крошек не нужен: свой −6px уже несёт первое звено (правило
     ниже), и два сдвига складывались — замер показал стрелку на 6 вместо 12. */
  .doska-project-header-breadcrumb.doska-project-header-breadcrumb > :first-child { margin-left: -6px; }
  /* Поля держит САМА шапка, а её содержимое их обнуляет: так название, кружки действий и хлебная
     крошка встают на одну вертикаль, а не каждый на свою (замер до правки: название 24, полоса
     действий 0…390, поиск 12…378). */
  .doska-project-header.doska-project-header { padding-left: 12px; padding-right: 12px; }
  .doska-project-hero.doska-project-hero { padding-left: 0; padding-right: 0; width: 100%; }
  .doska-project-actions-bar.doska-project-actions-bar { padding-left: 0; padding-right: 0; }
  .doska-project-header-breadcrumb.doska-project-header-breadcrumb { padding-left: 0; padding-right: 0; }
}

/* Состояние смыслового поиска под строкой — короткая подпись, а не спиннер поверх списка: список
   всё это время рабочий (буквальные совпадения уже показаны), меняется только его дополнение. */
/* Заметная пилюля, а не мелкая подпись — живой отчёт «не вижу, чтобы поиск был с ИИ»: слой
   работал (замер на проде: косвенный запрос «что-нибудь про выпечку и тесто» находил рецепт
   фокаччи), но говорил о себе строчкой 11.5px приглушённым серым под полем, и его просто не
   замечали. Тот же акцент, что у кнопки «Спросить», и шаги по сетке 8pt. */
.doska-inline-search-ai {
  position: absolute; left: var(--s-2); bottom: calc(-1 * var(--s-3)); z-index: 2;
  display: inline-flex; align-items: center; gap: var(--s-1);
  height: var(--s-3); padding: 0 var(--s-1); border-radius: 6px;
  background: var(--doska-accent-soft); color: var(--doska-accent-ink);
  font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none;
}
@media (max-width: 768px) { .doska-inline-search-ai { left: var(--s-2); bottom: calc(-1 * var(--s-3)); } }

/* Плитки СПЕЙСОВ — компактнее подборок, per direct request со скриншотом-референсом («давай
   карточки проектов сделаем более компактно, как в примере»). В примере это плотный ряд
   квадратных плиток: название внизу слева, никаких крупных полей.
   Отдельная сетка, а не правка общей: подборки на своей полке остаются как были — просьба была
   только про спейсы. Квадрат задаётся aspect-ratio, поэтому плитка сама держит пропорцию на любой
   ширине колонки и не зависит от количества строк текста внутри. */
.doska-projects-grid.doska-projects-grid {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
/* Первая плитка НЕ шире остальных: правило-«витрина» из подборок (span 2) в компактном ряду
   ломает ритм — в референсе все плитки одного размера. */
@media (min-width: 1000px) {
  .doska-projects-grid.doska-projects-grid > :first-child { grid-column: auto; }
}
.doska-projects-grid .doska-collection-card {
  aspect-ratio: 1 / 1; min-height: 0; padding: 14px 16px; gap: 10px;
  justify-content: flex-end;
}
.doska-projects-grid .doska-collection-title { font-size: clamp(15px, 1.2vw, 18px); line-height: 1.2; }
.doska-projects-grid .doska-collection-facts { gap: 6px; }
.doska-projects-grid .doska-collection-fact { padding: 2px 8px; font-size: 11px; }
@media (max-width: 768px) {
  /* На телефоне те же два в ряд, что и у подборок, — просто плитки ниже. */
  .doska-projects-grid.doska-projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* Крестик и «•••» в открытой заметке — НЕПРОЗРАЧНЫЕ, а не полупрозрачно-чёрные (живой отчёт со
   скриншотом «не видно крестика закрытия заметки», уточнение «на белой теме нет его»).
   Причина: обе кнопки были рассчитаны на светлое фото под ними — белая иконка на чёрном с 45%
   прозрачности. Но превью — это что угодно: тёмный скриншот, светлая страница, белый документ. На
   тёмном превью чёрный круг сливался с фоном, на светлой теме со светлым превью терялась сама
   белая иконка. Полупрозрачность здесь и была источником проблемы: цвет кнопки зависел от
   картинки, которую мы не контролируем.
   Теперь кнопка красится токенами темы и полностью непрозрачна, плюс тонкое кольцо и тень —
   контраст держится над любым содержимым. Правила стоят В КОНЦЕ файла и с удвоенным классом:
   выше по файлу есть и одинарные, и составные селекторы для этих же кнопок (готча №1). */
.doska-stash-modal-close.doska-stash-modal-close {
  background: var(--doska-surface-raised);
  color: var(--doska-text);
  border: 1px solid var(--doska-hairline-strong);
  box-shadow: none;
  backdrop-filter: none;
}
.doska-stash-modal-close.doska-stash-modal-close:hover {
  background: var(--doska-secondary);
  color: var(--doska-text);
}

/* Нативное перетаскивание картинок внутри карточек выключено — живой отчёт со скриншотом: на
   телефоне долгое нажатие по превью запускало собственный drag браузера (в Android Chrome это
   «перетащить картинку»), он перебивал наш жест и включал оверлей «Отпустите, чтобы добавить».
   Перетаскивание САМОЙ карточки не страдает: на десктопе draggable стоит на карточке, а на
   телефоне жест ведут слушатели touch на window. */
.doska-stash-card img,
.doska-stash-card .doska-plate-media-img {
  -webkit-user-drag: none;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

/* Строка действий «Спейсов»: кнопка и табы не должны налезать друг на друга (живой отчёт «таб
   „Все/Общие/Мои“ находит на кнопку „Новый спейс“»). Причина — общий класс строки действий
   рассчитан на кнопки одинаковой высоты и не даёт переноса; сегмент табов шире и выше. Даём строке
   явный промежуток и разрешаем перенос: на узкой ширине табы уезжают на свою строку целиком, а не
   наползают. */
.doska-projects-actions.doska-projects-actions {
  /* gap 12 и запрет сжатия: живой отчёт «кнопка „Создать спейс“ находит на табы». Строка действий
     наследует общий класс, где элементы могут ужиматься; сегмент табов при этом сохранял ширину, а
     кнопка наезжала на него. Теперь оба держат свою ширину и разъезжаются переносом. */
  flex-wrap: wrap; gap: 12px; align-items: center; overflow: visible;
}
.doska-projects-actions > * { flex-shrink: 0; }
@media (max-width: 768px) {
  /* На телефоне табы — ОТДЕЛЬНОЙ строкой ПОД заголовком «Спейсы» (per direct request «на мобильной
     версии в спейсах таб должен быть под текстом „Спейсы“»). Одного «занять всю ширину» мало:
     строка действий сама по себе стоит СПРАВА ОТ НАЗВАНИЯ, и её внутренние переносы происходили
     внутри этой узкой коробки — замер показал табы на 133…378, то есть сбоку от заголовка, а не под
     ним. `display: contents` растворяет саму коробку: её дети становятся детьми шапки и переносятся
     по её ширине — круглый «+» остаётся на строке названия, табы уходят на свою. */
  /* `display: contents` здесь НЕ подходит (проверено замером): шапка на телефоне — строка без
     переносов, и растворённые дети сплющили заголовок в ноль, а сегмент табов вылез за экран (438
     при ширине 390). Поэтому переносим саму строку действий целиком: заголовок остаётся своей
     строкой, а под ним — «+» и табы. Тот же приём, что уже работает в «Все заметки». */
  /* Селектор учетверён — готча №1: мобильное правило шапки объявлено как
     `.doska-stash-folder-content-header` ТРИЖДЫ (0,3,0) и ставит `flex-wrap: nowrap`; при равной
     специфичности спор решал бы порядок в файле, а на него в девятитысячестрочном стиле полагаться
     нельзя. Замер до правки: табы оставались справа от заголовка (187…378 при названии 12…125). */
  .doska-projects-header.doska-projects-header.doska-projects-header.doska-projects-header {
    flex-wrap: wrap;
  }
  /* (0,6,0): живая сверка правил показала победителя — `.doska-stash-folder-content-header×3
     .doska-stash-folder-content-actions×2 { flex: 0 1 auto }`, это (0,5,0), и одних утроенных
     классов не хватало (замер: computed flex так и оставался `0 1 auto`). */
  .doska-projects-header.doska-projects-header.doska-projects-header
    .doska-projects-actions.doska-projects-actions.doska-projects-actions {
    flex: 1 0 100%; justify-content: flex-start; margin-top: 10px; overflow-x: auto;
  }
}

/* Перетаскивание СРЕДИ ЗАКРЕПЛЁННЫХ карточек (живой отчёт «не работает перетаскивание среди
   запиненных заметок»). Причина чисто селекторная: весь механизм перетаскивания описан правилами
   вида `.doska-stash-grid [data-…]`, а закреплённые карточки лежат в ДРУГОМ контейнере —
   .doska-stash-pinned-row (это обычная сетка, а не масонри; см. её собственный комментарий выше).
   Внутри него не работало ничего из перечисленного, и главное — у поднятой карточки не снимались
   попадания: elementFromPoint возвращал её же, цель обнулялась на каждом движении, и линии вставки
   не появлялось. Те же правила, тот же смысл — просто теперь и для этого контейнера. */
.doska-stash-pinned-row [data-stash-dragging] { position: relative; cursor: grab; }
.doska-stash-pinned-row [data-stash-dragging]:active { cursor: grabbing; }
.doska-stash-pinned-row [data-stash-dragging][data-drag-insert]::after {
  content: ''; position: absolute; left: 4px; right: 4px; height: 3px; border-radius: 999px;
  background: var(--doska-accent); box-shadow: 0 0 0 3px var(--doska-canvas);
  z-index: 5; pointer-events: none;
}
.doska-stash-pinned-row [data-stash-dragging][data-drag-insert="before"]::after { top: -2px; }
.doska-stash-pinned-row [data-stash-dragging][data-drag-insert="after"]::after { bottom: -2px; }
/* Ось линии и здесь совпадает с осью решения (см. dropPlacementFor). Живой отчёт «плохо
   перемещается для запиненных»: общее правило про ось уже было написано, но у этого блока
   специфичность (0,3,0) против (0,2,0), и он молча перебивал её обратно в горизонтальную линию.
   Ровно та же ловушка, что и с капсулой табов: правило-дубль в другом месте файла отменяет общее,
   и внешне это выглядит как «фича не работает в одном конкретном контейнере». */
.doska-stash-pinned-row [data-stash-dragging][data-drag-axis="x"]::after {
  top: 4px; bottom: 4px; height: auto; width: 3px; left: auto; right: auto;
}
.doska-stash-pinned-row [data-stash-dragging][data-drag-axis="x"][data-drag-insert="before"]::after { left: -2px; }
.doska-stash-pinned-row [data-stash-dragging][data-drag-axis="x"][data-drag-insert="after"]::after { right: -2px; }
.doska-stash-pinned-row [data-touch-lifted] {
  transform: scale(1.04); z-index: 6;
  box-shadow: 0 0 0 2px var(--doska-accent);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  /* То самое снятие попаданий — без него цель под пальцем не находится вовсе. */
  pointer-events: none;
}
.doska-stash-pinned-row[data-touch-drag-active] [data-stash-card-id]:not([data-touch-lifted]):not([data-drag-insert]) {
  opacity: 0.55; transition: opacity 0.15s ease;
}

/* «Новый спейс» стоит на строке названия, табы — за ней (веб) или под ней (телефон). Кнопка теперь
   прямой ребёнок шапки (см. GlobalProjects.tsx), поэтому и правила для неё отдельные. */
.doska-projects-create.doska-projects-create { flex: 0 0 auto; margin-left: auto; }
/* Сортировка полки — сразу за кнопкой создания (per direct request «рядом с кнопкой Создать будет
   кнопка сортировка»). Своя ширина, без сжатия: иконка в 44px на телефоне остаётся нажимаемой. */
/* Панель секций выровнена по ЛОГОТИПУ — per direct request «меню с секциями выровнять по левому
   краю по логотипу». Замер до правки: логотип на x=8, панель на 59. Разницу давали два слоя:
   padding-left самой карточки-раздела (32px) и центрирование контентной колонки (margin auto
   22.5px при max-width 1656). Прижимаем колонку влево и убираем лишний отступ карточки: 4px
   margin у карточки плюс 4px её padding дают ровно 8, то есть край логотипа.
   Только для «Все заметки» (--wide) и только на вебе: у остальных разделов своя раскладка, а на
   телефоне панель горизонтальная и выравнивать нечего. */
@media (min-width: 769px) {
  .doska-top-shell--sidebar .doska-board-shell:has(> .doska-stash-page-content--wide) {
    /* Ближе к шапке — per direct request «нужно уменьшить отступ от заголовка сверху до поиска»:
       поиск теперь живёт в шапке, и прежние 32px сверху (плюс margin 8 и gap 24 внутри) отодвигали
       содержимое на 60px от неё. Замер до правки: низ шапки 64, первый контент 124. */
    padding-top: var(--s-2);
    /* Поля СЧИТАЮТСЯ ОТ РАМКИ КАРТОЧКИ, а не от края окна: с тех пор как обводка охватила и шапку
       (per direct request «в неё также ещё включить поиск, настройки юзера и уведомления»), между
       содержимым и краем окна стоит сама карточка. 24 с каждой стороны — тот же шаг, что у панели
       слева между её рамкой и чипами. */
    padding-right: var(--s-3);
    padding-left: var(--s-3);
  }
  /* Ширина НЕ ограничена: контент тянется до правого края, где стоит «Создать» — per direct
     request «сдвинуть область где поиск… ближе к краю, где кнопка создать». Прежний предел 1656
     оставлял справа полосу пустоты (замер: список кончался на 1664 при кнопке до 1753). */
  .doska-stash-page-content--wide { margin-left: 0; margin-right: 0; max-width: none; }

  /* Разделы, которые панель показывает ЦЕЛИКОМ («Корзина», «Прочитать позже»), приносят с собой
     собственную страничную обёртку — она рассчитана на отдельный экран. Внутри уже готовой
     контентной зоны её предел 1400 + авто-поля лишние: они давали по 40px с каждой стороны, и
     карточки корзины стояли не по той линии, что во всех остальных секциях (313 против 272).
     Замер до правки: сетка корзины 313..1713 при поиске над ней 272..1753. */
  .doska-allnotes-main .doska-stash-page-content {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* Поиск во «Все заметки» НАЧИНАЕТСЯ НАД ЗАМЕТКАМИ — per direct request «ширину поиска меньше
   сделать, она начинается над заметками». Замер до правки: поле шло 59…1715 (1656px), то есть
   накрывало и панель тегов слева, хотя ищет оно по списку справа.
   Сдвигаем отступом, а не переносом в разметке: поле стоит НАД строкой «панель + список», и
   перенос внутрь правой колонки ломает порядок блоков (пробовал — разъезжается шапка раздела).
   Ширина панели и зазор те же, что у самой раскладки; на телефоне панель горизонтальная, и
   сдвиг не нужен. */
@media (min-width: 769px) {
  /* Сдвиг поля УБРАН: панель ушла из потока (fixed) и место под неё теперь освобождает сама
     раскладка (.doska-allnotes-body). Прежний margin накладывался поверх и уводил поиск на 8px
     правее списка — замер: поиск 264, список 256. Ширину тоже не задаём: поле и так занимает
     колонку. */
  .doska-stash-page-content--wide > .doska-inline-search {
    /* Тот же зазор, что у списка ниже: поле обязано начинаться ровно над ним. Держится в паре с
       .doska-allnotes-body — менять только вместе, иначе поле и список разъедутся. */
    margin-left: calc(var(--doska-pane-w) + var(--s-6));
    width: auto;
  }
  /* Панель свёрнута — поле встаёт вровень со списком, который занял всю ширину (замер: список
     уезжал на 8, а поиск оставался на 256). */
  .doska-stash-page-content--wide[data-pane-collapsed] > .doska-inline-search { margin-left: 0; }
}

/* ОДНА КАРТОЧКА НА ВСЮ ПРАВУЮ ПОЛОВИНУ — per direct request «обводка контентной области: у неё
   будет такая же заливка, как для бокового меню, но в неё также ещё включить поиск, настройки юзера
   и уведомления», плюс уточнение «её граница будет рядом с боковым меню». То есть шапка первого
   уровня перестала быть отдельной полосой над полотном и стала верхней строкой той же карточки, что
   и список заметок.
   Левый край считается от панели: она fixed на 8 и шириной 232, то есть кончается на 240, и
   карточка начинается сразу за ней. Свёрнутая панель не рендерится вовсе — тогда карточка
   отодвигается от края окна на тот же шаг, что и всё остальное содержимое (см. `:has` ниже).
   Скоуп по `:has(.doska-allnotes-body)` — это раскладка ИМЕННО «Все заметки»: у спейса своя пара
   «дерево + содержимое», и общая рамка там означала бы другое. */
@media (min-width: 769px) {
  /* Рамка на КАРТОЧКЕ, а не на всей правой половине: док чата стоит соседом карточки и остаётся
     снаружи её обводки (замер до правки: панель чата попадала внутрь общей рамки и читалась как
     часть центральной секции). */
  .doska-shell-card:has(.doska-allnotes-body) {
    /* 296 = ширина панели (280) плюс её отступ от края (8) плюс зазор (8). Это ТРЕТЬЕ место, где
       ширина панели зашита числом: карточка содержимого начинается сразу за панелью, и без правки
       здесь она наезжала на неё — заголовок и карточки уходили под панель (проверено живьём). */
    margin: 8px 8px 8px calc(var(--doska-pane-w) + 16px);
    background: var(--doska-surface);
    border: 1px solid var(--doska-hairline);
    border-radius: var(--doska-radius-lg);
  }
  /* Свёрнутое меню — РЕЛЬСА 92px с иконками И ПОДПИСЬЮ ПОД НИМИ (по прямому запросу «рейл в
     таком стиле, когда название секции под иконками внизу», образец — Discord-style: иконка
     сверху, короткая подпись снизу, а не голая иконка). Раньше рельса была 56px и подпись пряталась
     нулевым кеглем у ЦЕЛОГО чипа; теперь подпись — свой `.doska-chip-label` (см. JSX), у него
     собственный маленький размер, а чип стал колонкой. «Создать» и лого только знаком, поиск,
     счётчики, деревья и теги спрятаны. Карточка содержимого начинается с 108 = 8 + 92 + 8.
     Расширена 68 → 76 → 92 в два приёма («рейл можно пошире немного», затем «ещё больше по
     ширине, слово „Автоматизации“ не влазит»). */
  /* gap 10 (вместо унаследованных от раскрытого дерева 2px) — по прямому запросу «в рейле нужно
     больше отступ между секциями, сейчас слишком близко друг к другу»: 2px были в самый раз для
     плотного дерева папок, но между 52px-блоками «иконка+подпись» читались как слипшиеся строки. */
  .doska-allnotes-category-pane.doska-allnotes-category-pane[data-collapsed] { width: 92px; flex-basis: 92px; padding: var(--s-1) 6px; gap: 10px; overflow-x: hidden; }
  /* В СВЁРНУТОЙ рельсе кнопка «развернуть» стоит СВОЕЙ строкой под лого и в той же колонке, что
     иконки разделов. Замер до правки: иконки разделов 42×44 с центром на 36 (центр рельсы), а
     кнопка 26×26 с центром на 38 — она была и меньше соседей, и на два пикселя мимо оси, потому
     что считала отступы лого (padding 10 по бокам) и своё margin-left: auto из раскрытого вида,
     где она прижата к правому краю. Здесь прижимать не к чему: строка одна. */
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-pane-logo { flex-direction: column; align-items: center; gap: 6px; padding: 6px 0 8px; }
  /* Утилиты md:!py-0 md:!h-12 на самом блоке (развёрнутая панель) обнуляли этот отступ — в свёрнутой рельсе лого
     прилипало к верхнему краю (живой снимок 20.10.2026). Здесь важнее: строка лого по центру своей высоты. */
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-pane-logo { justify-content: center !important; height: 56px !important; padding: 12px 0 8px !important; }
  /* «Развернуть» в свёрнутой рельсе — та же иконка-квадрат 40×40, что у соседних пунктов колонки
     (было 26×26 с margin-left:auto от развёрнутого вида — центр съезжал на 2px от оси иконок, см.
     измерение выше). 29.09.2026: в развёрнутом виде эта кнопка переехала к лого (см. компонент,
     `.doska-allnotes-pane-collapse--logo` там же), здесь остаётся только пункт свёрнутой рельсы. */
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-pane-collapse {
    width: 40px; height: 40px; margin: 0 auto; border-radius: var(--doska-radius-md);
  }
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-pane-collapse svg { width: 18px; height: 18px; }
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-pane-create { justify-content: center; padding: 0; width: 44px; height: 40px; margin: 0 auto; }
  /* «Создать» в рельсе не показывается вовсе (по прямому запросу «убрать в левой рельсе плюсик»). */
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-pane-create,
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-space-toggle,
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-spaces-dropdown,
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-category-row:not(:has(> .doska-collection-folder-chip[data-chip-id^="__"])),
  .doska-allnotes-category-pane[data-collapsed] .doska-collection-folder-chip-count { display: none; }
  /* Ряд без бокового отступа и чип по центру: замер до правки давал центр иконок на 24 при
     центре рельсы 28 (лого 28, «Создать» 29). */
  .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-category-row { justify-content: center; padding: 0; margin: 0; }
  .doska-allnotes-category-pane[data-collapsed] .doska-collection-folder-chip.doska-collection-folder-chip { margin: 0 auto; }
  /* Чип стал КОЛОНКОЙ: иконка сверху, подпись под ней, а не строка иконка-текст в одну линию.
     gap 3 → 7 — по прямому запросу «текст от иконки больше вниз отступ»: подпись стояла почти
     впритык под иконкой. */
  .doska-allnotes-category-pane[data-collapsed] .doska-collection-folder-chip.doska-collection-folder-chip {
    flex-direction: column; gap: 7px; padding: 6px 2px; width: 80px; height: auto; min-height: 52px; justify-content: center;
  }
  /* Иконки в рельсе КРУПНЕЕ (по прямому запросу): 22px вместо 14. */
  /* margin-right у иконки (8px под подпись) в рельсе смещал её влево на 4px: замер центра 24 при
     центре рельсы 28. В КОЛОНКЕ margin-right не нужен вовсе — подпись идёт снизу, не сбоку. */
  .doska-allnotes-category-pane[data-collapsed] .doska-chip-icon { font-size: 14px; display: inline-flex; margin: 0; }
  .doska-allnotes-category-pane[data-collapsed] .doska-chip-icon svg { width: 22px; height: 22px; }
  /* Подпись под иконкой: мелкий кегль, до двух строк с многоточием — длинные названия
     («Автоматизации») не должны распирать 92px-рельсу вширь.
     `overflow-wrap: anywhere` обязателен: «Автоматизации» — одно слово без пробелов, обычный
     перенос по словам его не разбивает, и без этого оно вылезало за рамку чипа/обрезалось
     многоточием после первой же строки (живая жалоба «слово не влазит»). */
  .doska-allnotes-category-pane[data-collapsed] .doska-chip-label {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; text-align: center; white-space: normal; overflow-wrap: anywhere;
    /* 9 → 11 — по прямому запросу «сделай крупнее текст под иконками». */
    font-size: 11px; line-height: 1.2; font-weight: 600; letter-spacing: 0;
    max-width: 80px;
  }
  .doska-shell-card:has(.doska-allnotes-body[data-pane-collapsed]) {
    margin-left: 108px;
  }
  /* ПАНЕЛЬ «ЗАМЕТКИ» ВТОРЫМ СТОЛБЦОМ справа от меню — по прямому запросу. Та же карточка, что у
     меню: fixed, от верха до низа окна, своя обводка. Левый край = конец меню (8 + --doska-pane-w)
     плюс зазор 8; ширина 260. Карточка содержимого сдвигается ещё на 268 (260 + 8).
     Оба числа считаются ОТ ПЕРЕМЕННОЙ: пока они стояли цифрами, сужение меню оставляло между
     столбцами лишнюю дыру (замер: меню кончалось на 248, а панель начиналась на 300). */
  .doska-shell-card:has(.doska-allnotes-body[data-notes-pane]) { margin-left: calc(var(--doska-pane-w) + 284px); }
  .doska-notes-pane {
    position: fixed; top: 8px; left: calc(var(--doska-pane-w) + 16px); bottom: 8px; width: 260px; z-index: 30;
    display: flex; flex-direction: column; gap: 2px; padding: var(--s-1);
    background: var(--doska-surface); border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
  }
  /* Отступ под заголовком «Заметки» увеличен — по прямому запросу «надо больше вниз отступ от
     заголовка Заметки»: было 6px, заголовок стоял почти впритык к полю поиска под ним. */
  .doska-notes-pane-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px var(--s-2); }
  /* ДЕРЕВО ЗАНИМАЕТ ВСЮ ШИРИНУ КОЛОНКИ — по прямому запросу «слева до края много места в колонке,
     можно использовать, так что выровни». Замер до правки: панель 232…492, строки 263…483, а сами
     названия 287…433, то есть 146px при 260px колонки. Левый отступ набирался вложенными
     контейнерами (8 у панели + 10 у списка), правые 50px занимали «+» и «•••», прозрачные в покое,
     но остающиеся в потоке. Из 43 названий 19 обрывались многоточием.
     Селектор через родителя (0,2,0), а не сам класс: правило .doska-allnotes-spaces-dropdown с
     padding-left: 10px объявлено ПОЗЖЕ в файле при той же специфичности и выигрывало по порядку
     (готча №1). Именно поэтому прежняя попытка «.doska-allnotes-spaces-dropdown--pane { padding-left: 0 }»
     не действовала. */
  .doska-notes-pane .doska-allnotes-spaces-dropdown { padding-left: 0; }
  /* «+» и «•••» не держат место, пока строка не под курсором: они и так невидимы. Ширина
     возвращается на hover и на фокус с клавиатуры, чтобы кнопка не появлялась из ниоткуда. */
  .doska-notes-pane .doska-allnotes-space-tree-add,
  .doska-notes-pane .doska-allnotes-space-tree-row .doska-project-card-menu-btn {
    width: 0; min-width: 0; padding: 0; border: none; overflow: hidden;
  }
  .doska-notes-pane .doska-allnotes-space-tree-row:hover .doska-allnotes-space-tree-add,
  .doska-notes-pane .doska-allnotes-space-tree-add:focus-visible,
  .doska-notes-pane .doska-allnotes-space-tree-row:hover .doska-project-card-menu-btn,
  .doska-notes-pane .doska-allnotes-space-tree-row .doska-project-card-menu-btn[data-active],
  .doska-notes-pane .doska-allnotes-space-tree-row .doska-project-card-menu-btn:focus-visible {
    width: 20px; min-width: 20px;
  }
  /* Левый край строки вровень с заголовком панели и строками дерева. Замер: заголовок и первая
     строка дерева стоят на 275, поле при margin 4 вставало на 269. У панели padding 8, значит
     недостающие 10 добирает сам отступ поля. */
  .doska-notes-pane .doska-notes-search { margin: 0 10px var(--s-1); }
  .doska-notes-pane-title { font-weight: 600; font-size: 14px; color: var(--doska-text); }
  .doska-notes-pane-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overflow-x: hidden; }
  .doska-allnotes-spaces-dropdown--pane { padding-left: 0; }
  /* Строки спейсов в панели «Заметки» выглядят как в меню: чип прозрачный, подложку и рамку
     рисует строка, название в одну строку с многоточием, «+» и «•••» справа не сжимаются. Правила
     меню привязаны к .doska-allnotes-category-pane и сюда не доставали: чип рисовался общей
     чёрной пилюлей поверх строки (снимок «править вёрстку»). Специфичность удвоенным классом,
     как у исходных правил (готча №1). */
  .doska-notes-pane .doska-allnotes-space-row { display: flex; align-items: center; gap: 4px; min-height: 36px; padding: 2px 6px 2px 4px; border-radius: var(--doska-radius-md); }
  .doska-notes-pane .doska-allnotes-space-row:hover { background: var(--doska-hover); }
  .doska-notes-pane .doska-allnotes-space-row:has(> .doska-collection-folder-chip[data-active]) { background: var(--doska-selected); box-shadow: none; }
  .doska-notes-pane .doska-allnotes-space-row > .doska-collection-folder-chip.doska-collection-folder-chip,
  .doska-notes-pane .doska-allnotes-space-row > .doska-collection-folder-chip.doska-collection-folder-chip:hover,
  .doska-notes-pane .doska-allnotes-space-row > .doska-collection-folder-chip[data-active].doska-collection-folder-chip[data-active] {
    flex: 1 1 auto; min-width: 0; height: auto; min-height: 32px; padding: 6px 8px; border-radius: var(--doska-radius-md);
    background: transparent; border: 1px solid transparent; box-shadow: none;
    justify-content: flex-start; text-align: left; white-space: nowrap; overflow: hidden;
    color: var(--doska-text); font-weight: 500;
  }
  .doska-notes-pane .doska-allnotes-space-row .doska-chip-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .doska-notes-pane .doska-allnotes-space-row .doska-collection-folder-chip-count { display: none; }
  /* «•••» в потоке строки, а не absolute в её углу: с растянутым чипом «+» уезжал под него
     (замер: «+» 521–541, «•••» 511–539). Оба справа, по наведению, как у папок в дереве. */
  .doska-notes-pane .doska-allnotes-space-row > .doska-project-card-menu-btn {
    position: static; flex: none; width: 24px; height: 24px; border: none; background: none; box-shadow: none; opacity: 0;
  }
  .doska-notes-pane .doska-allnotes-space-row:hover > .doska-project-card-menu-btn,
  .doska-notes-pane .doska-allnotes-space-row > .doska-project-card-menu-btn[data-active] { opacity: 1; }
  .doska-notes-pane .doska-allnotes-space-add-btn { flex: none; }
  /* БЕЗ ВЕРТИКАЛЬНЫХ ЛИНИЙ в дереве панели — по прямому запросу «вертикальные дивайдеры в древе
     заметок не надо»: вложенность читается по ступеньке отступа, линия рядом со строкой лишняя.
     Хвост от строки спейса к дереву тоже снят: соединять больше нечего. */
  .doska-notes-pane .doska-allnotes-space-tree { border-left: none; }
  .doska-notes-pane .doska-allnotes-space-row[data-tree-open]::after { display: none; }
  /* ПАНЕЛЬ «ЗАМЕТКИ» НЕ СВОРАЧИВАЕТСЯ ВМЕСТЕ С МЕНЮ — по прямому запросу «сворачивается только
     левый сайдбар». При свёрнутом меню панель встаёт на его место (left 8), а карточка содержимого
     сдвигается на её ширину: 8 + 260 + 8 = 276. Кнопка «показать меню» остаётся в карточке. */
  /* 108 = 8 + 92 (ширина свёрнутой рельсы) + 8 — тот же расчёт, что у карточки содержимого выше.
     Было 72 = 8 + 56 + 8, застряло от прежней ширины рельсы и наезжало на неё после расширения
     56 → 92 (живая жалоба «заметки наехали на рейл»). */
  .doska-notes-pane[data-menu-collapsed] { left: 108px; }
  .doska-shell-card:has(.doska-allnotes-body[data-pane-collapsed][data-notes-pane]) { margin-left: 376px; }
  /* Кнопка «показать меню» при видимой панели уходит в её шапку справа, иначе она ложится на
     заголовок «Заметки» (замер: кнопка 12–44, заголовок с 26). */

  /* Дропдаун и стрелка ВОЗВРАЩЕНЫ на десктоп (29.09.2026, отмена «отдельной панели» выше по
     прямому решению) — правило, прятавшее их, пока дерево жило вторым столбцом, больше не нужно:
     .doska-notes-pane теперь никогда не рендерится (notesPaneShown = false), поэтому и прятать
     от неё дубль незачем. */
  /* Карточки заметок КРАСЯТСЯ СВЕТЛЕЕ фона раздела: `--doska-surface` теперь занят самой карточкой
     раздела, и заметки, покрашенные тем же токеном, слились бы с ним в одно пятно (замер до
     правки: и фон, и карточка — rgb(23,23,28)). Поднимаем их на следующую ступень поверхности. */
  .doska-shell-card:has(.doska-allnotes-body) .doska-stash-card {
    background: var(--doska-surface-raised);
  }
  /* НА СВЕТЛОЙ ТЕМЕ пара «раздел/карточка» была почти неразличима — живой отчёт «на светлой теме
     секции, внутри у них белый фон»: фон раздела #f4f4f7, карточки #ffffff, разница в четыре
     единицы светлоты, то есть карточки читались как белое поле без границ. На тёмной теме та же
     пара разведена заметно (#17171c против #1e1e25), поэтому правка только для светлой: раздел
     опускается на полотно (#e9e9ee), карточки остаются белыми. Замер после: 233 против 255. */
  /* Правая карточка-обводка — БЕЛАЯ, как рельса и панель (по прямому запросу «у правой
     глобальной обводки тоже нужно белый фон сделать как в рейле»). Отменяет вчерашний panel-2
     #fafafa из образца: в нашем макете три панели одного ряда, и одна из них другого тона
     читается как ошибка, а не как слой. Полотно под ними остаётся #f5f5f5. */
  .doska-root[data-theme='light'] .doska-shell-card:has(.doska-allnotes-body) {
    background: var(--doska-surface);
  }
}

/* ============================================================================
   МОБИЛЬНАЯ ВЕРСИЯ: проход по удобству (2026-09-23, по прямому запросу «переделай мобильную
   версию, прогони дизайн-скиллы по удобству и учти это; сейчас выглядит неудобно, нужно чтобы
   сочеталось с паттернами на вебе»).

   Правки не косметические: каждая из замера на 390×844, числа в комментариях рядом.
   Разбор по Web Interface Guidelines (vercel-labs) плюс собственные замеры.
   ============================================================================ */
@media (max-width: 768px) {
  /* 1. ПУСТАЯ ПОЛОСА ПОД ШАПКОЙ. Замер: .doska-stash-folder-content-header 358×10, заливка
     #fafafa, текста ноль. На телефоне её содержимое (крошки, фильтры) переезжает в другие места,
     и остаётся десятипиксельная серая плашка непонятного назначения сразу под шапкой. */
  .doska-stash-folder-content-header:empty { display: none; }

  /* 3. ЦЕЛИ ДЛЯ ПАЛЬЦА В ШАПКЕ. Замер: четыре кнопки 40×40 и аватар 36×36 при норме 44×44.
     Аватар был ещё и меньше соседей, то есть строка выглядела неровной. */
  .doska-global-page-header-actions .doska-pill-btn,
  .doska-global-page-header-actions .doska-profile-avatar {
    width: 44px; height: 44px;
  }

  /* 4. БАБЛ АССИСТЕНТА ПЕРЕКРЫВАЛ СОДЕРЖИМОЕ. Замер: бабл 54px на x=320 y=770, под ним
     .doska-space-tile — последняя плитка папок физически недоступна. Резерв снизу равен высоте
     бабла плюс его отступ от края плюс воздух, с учётом safe-area. */
  .doska-stash-page-content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}

/* 5. ДЛИННОЕ СЛОВО В ПЛИТКЕ ПАПКИ. Замер: плитка 175px, «Неотсортированные» и «Вдохновение и
   гайды» обрезаны. У заголовка уже стоит line-clamp: 2, но одно длинное слово переносить не по
   чему, и оно уезжает за край бокса. Разрешаем разрыв внутри слова: обрыв по слогу читается
   лучше, чем обрыв на середине без всякого признака продолжения. */
.doska-space-tile-title { overflow-wrap: anywhere; }

/* Поисковая строка в меню первого уровня — per direct request «давай перенесём поисковую строку в
   меню первого уровня». Экран портирует сюда своё поле (см. searchPortalTarget в
   GlobalAllNotes.tsx), поэтому оба правила выше про «прямого ребёнка контентной зоны» на вебе
   больше ни с чем не совпадают: они остаются для случая, когда цели портала нет. Место в шапке уже
   размечено (абсолютное центрирование, 560px), полю остаётся занять его целиком. */
.doska-global-page-header-search-wrap > .doska-inline-search {
  width: 100%;
  margin: 0;
}
/* Сдвиг на половину разницы отступов шапки (padding-top 14 против padding-bottom 10): место для
   поля центрируется по КОРОБКЕ строки, а кнопки стоят в потоке и центрируются по её содержимому.
   Замер до правки: центр поля 32, центр «Создать» и аватара 34. */
.doska-global-page-header-search-wrap.doska-global-page-header-search-wrap {
  margin-top: 2px;
}
/* Высота по строке шапки, а не по строке экрана: замер до правки — поле 48px рядом с кнопками по
   40px, из-за чего оно выпирало вверх и вниз относительно «Создать» и аватара. Радиус тоже мягче:
   в шапке поле соседствует с круглыми кнопками, а не с прямоугольными карточками списка. */
.doska-global-page-header-search-wrap .doska-inline-search .doska-search.doska-search {
  min-height: 40px;
  border-radius: 6px;
  /* Правый отступ под чип «Спросить» СНЯТ — чип уехал отдельным кружком рядом с нотификациями
     (см. `.doska-inline-search`'s own comment in the unscoped rule above), и резерв в 112px
     оставлял микрофон и хоткей ⌘K висеть в стороне от настоящего правого края поля — живой отчёт
     «микрофон и хоткей выровнять по правую сторону». Симметрично левому 14px. */
  padding: 0 14px;
}

/* «Все заметки»: категории боковой панелью слева, набор выбранной категории справа — per direct
   request «внутри All notes категории сделаем боковой панелью слева от заметок… когда переключаюсь
   между ними, то вижу свой набор под каждую категорию».
   Раскладка ряда, а не сетки страницы: панель обязана тянуться на всю высоту списка, поэтому она
   и содержимое — соседи в одном flex-ряду. Колонка панели фиксированной ширины: имена категорий
   бывают длинными, и «резиновая» колонка прыгала бы при каждом переключении. */
.doska-allnotes-body { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
.doska-allnotes-main { display: flex; flex-direction: column; gap: var(--s-2); min-width: 0; }
@media (min-width: 769px) {
  /* Панель вынута из потока (fixed выше), поэтому ряд превращается в одну колонку со сдвигом:
     сдвиг равен ширине панели плюс зазор. */
  /* Зазор между меню и списком — 8pt-шаг --s-4 (32px), а не --s-2: живой отчёт «область по центру
     отодвинь от меню слева, а то слишком близко». Замер до правки: панель кончалась на 240, список
     начинался на 256 — всего 16px, из-за чего карточки читались как продолжение панели. */
  /* Место под панель больше НЕ резервируется: она стоит слева ОТ карточки, а не внутри неё (см.
     .doska-top-shell--sidebar:has(.doska-allnotes-body) — общая обводка с шапкой). Замер до правки:
     содержимое начиналось на 533 при левом крае карточки 248, то есть отступ считался дважды. */
  .doska-allnotes-body[data-with-pane] { flex-direction: column; padding-left: 0; }
  .doska-allnotes-main { flex: 1 1 auto; }
  /* Панель: вертикальный столбец баблов вместо горизонтальной ленты. Класс чипсов оставлен тем
     же намеренно — вид бабла должен совпадать с тем, что было, а своя копия стилей разъехалась бы
     при первой правке. Отменяем ровно то, что относилось к горизонтальной ленте: направление,
     прокрутку по оси X, липкость с её отрицательными полями и тенями по бокам. */
  .doska-allnotes-category-pane.doska-allnotes-category-pane {
    /* Ширина берётся из --doska-pane-w: она же считает левый край карточки содержимого и отступ
       строки поиска. Историю числа держим здесь: 232 → 280 («сделай боковую панель пошире», под
       дерево папок) → 240 («левый рейл в раскрытом виде можно меньше по ширине», когда дерево
       уехало в соседнюю колонку). Правится ТОЛЬКО через переменную: раньше число стояло в трёх
       местах, и рассинхрон разводил панель, поиск и список. */
    flex: 0 0 var(--doska-pane-w); width: var(--doska-pane-w); flex-direction: column; align-items: stretch;
    overflow-x: visible; overflow-y: auto;
    /* Меню начинается ОТ САМОГО ВЕРХА окна — per direct request «меню подвинуть выше на вебе,
       сделай по аналогии» (со скриншотом, где боковое меню занимает всю левую колонку, а шапка
       живёт справа от него). Раньше панель стояла под шапкой и начиналась на её нижней границе.
       fixed, а не sticky: в потоке она осталась бы ниже шапки при любом top. Место под неё
       освобождает левый отступ у самой раскладки (.doska-allnotes-body ниже). */
    position: fixed; top: 8px; left: 8px; bottom: 8px; max-height: none;
    /* Панель — ОТДЕЛЬНАЯ КАРТОЧКА со своей обводкой, per direct request «сделай наше меню по
       аналогии в обводке» (со скриншотом бокового меню Magnific). Раньше она висела прямо на
       полотне и читалась как список посреди пустоты; теперь это своя поверхность, а список
       заметок справа лежит на полотне — разделение видно без единой линии между ними. */
    margin: 0; box-shadow: none;
    /* Отступы и зазор — из присланной выдержки DevTools образца (py-5 px-2.5 gap-0.5):
       20px сверху и снизу, 10px по бокам, 2px между строками. Раньше были ровные 8px по кругу,
       и список начинался вплотную к верхнему краю карточки. */
    padding: 20px 10px; gap: 2px;
    scrollbar-width: thin;
    background: var(--doska-surface); border: 1px solid var(--doska-hairline);
    border-radius: var(--doska-radius-lg);
    touch-action: auto; cursor: default;
  }
  /* Чип УЖИМАЕТСЯ, а не занимает всю строку: рядом с ним стоит «•••». Замер до правки: чип
     занимал все 232px панели, и кнопка оказывалась на x=337 при правой границе панели 333 —
     физически за её пределами, навести на неё было нельзя. */
  .doska-allnotes-category-pane .doska-collection-folder-chip {
    flex: 1 1 auto; min-width: 0; justify-content: space-between; text-align: left;
  }
}
/* Строка категории в панели: сам бабл плюс «•••» справа (per direct request «в категориях в All
   notes добавить три точки, где можно удалить категорию»). Она же цель перетаскивания карточки
   («могу уметь перетаскивать на вебе в разные категории»): подсветка идёт по всей строке, чтобы
   попадать было легко. */
.doska-allnotes-category-row { display: flex; align-items: center; gap: 4px; min-width: 0; border-radius: 999px; }
.doska-allnotes-category-row .doska-collection-folder-chip { min-width: 0; }
.doska-allnotes-category-row[data-drop-active] {
  outline: 2px dashed var(--doska-accent); outline-offset: 2px; background: var(--doska-accent-soft, transparent);
}
/* Папка в дереве «Заметок» как цель переноса — та же подсветка, что у строк панели: цель обязана
   выглядеть одинаково везде. Живой замер: перенос заметки в папку дерева срабатывал и тост
   приходил, но строка под курсором ничем не отличалась от соседних, и до отпускания было не
   видно, куда попадёшь. Строки узкие и стоят вплотную. Отступ внутрь (offset -2), а не наружу:
   у дерева строки идут через 2px, и рамка снаружи наезжала бы на соседние. */
.doska-allnotes-space-tree-row[data-drop-active] {
  outline: 2px dashed var(--doska-accent); outline-offset: -2px; background: var(--doska-accent-soft, transparent);
}
/* Перетаскивание САМОЙ ПАПКИ (30.09.2026) — по прямому запросу «драг-энд-дроп... менять порядок
   и вкладывать в друг друга»: та же подсветка «вложить», что у переноса заметки (mode="inside"),
   а «перед»/«после» — тонкая линия-вставка сверху/снизу строки, как разделитель между соседями. */
.doska-allnotes-space-tree-row[data-folder-drop-mode="inside"] {
  outline: 2px dashed var(--doska-accent); outline-offset: -2px; background: var(--doska-accent-soft, transparent);
}
.doska-allnotes-space-tree-row[data-folder-drop-mode="before"] { box-shadow: inset 0 2px 0 var(--doska-accent); }
.doska-allnotes-space-tree-row[data-folder-drop-mode="after"] { box-shadow: inset 0 -2px 0 var(--doska-accent); }
/* «•••» СПЕЙСА в строке панели — per direct request «в боковом меню в „Спейсах“… можно добавить
   три точки». Кнопка переиспользована с карточек полки спейсов, а там она прозрачна до наведения
   на саму карточку (`.doska-collection-card-wrap:hover`) — родителя, которого в панели нет, из-за
   чего условие не выполнялось бы никогда и кнопка не показалась бы вовсе (ровно эта ловушка уже
   ловила её в шапке раздела, см. правило ниже). Здесь она ведёт себя как «•••» тега: место держит
   всегда, проявляется по наведению на строку, на сенсорных экранах видна постоянно. */
.doska-allnotes-category-pane .doska-project-card-menu-btn {
  position: static; flex: 0 0 auto; margin: 0;
  width: 26px; height: 26px; border-radius: var(--doska-radius-md);
  opacity: 0;
}
.doska-allnotes-category-row:hover .doska-project-card-menu-btn,
.doska-allnotes-category-pane .doska-project-card-menu-btn:focus-visible,
.doska-allnotes-category-pane .doska-project-card-menu-btn[data-active] { opacity: 1; }
@media (hover: none) {
  .doska-allnotes-category-pane .doska-project-card-menu-btn { opacity: 1; }
}

/* Вид строк в БОКОВОЙ панели «Все заметки» — per direct request со скриншотом: иконка слева,
   текст по левому краю, активная строка серым, а не яркой пилюлей. Это уже не «чипсы в ряд», как
   было в горизонтальном оглавлении: в вертикальном списке капсула с рамкой у каждой строки
   превращает панель в набор кнопок, а нужен спокойный перечень.
   Переопределяем ровно те свойства чипа, что мешают: рамку, высоту, скругление и заливку
   активного. Специфичность (0,3,0) — чип объявлен с удвоенным классом (0,2,0), и без этого он
   выигрывает по порядку в файле (ловушка №1). */
.doska-allnotes-category-pane .doska-collection-folder-chip.doska-collection-folder-chip {
  /* Прежняя плотность ВОЗВРАЩЕНА — по прямому уточнению «сжимать группу целиком не надо было».
     Я принял «поднять ближе к Календарю» за просьбу убрать воздух и сжал шаг всей панели с 36+2 до
     30+1. Речь была про ПОРЯДОК: «Документы» и «Прочитать позже» должны идти сразу за
     «Календарём», а это задаётся списком WORK_IDS, а не отступами. */
  height: auto; min-height: 36px; padding: 7px 10px; border-radius: var(--doska-radius-md);
  border: 1px solid transparent; background: transparent;
  justify-content: flex-start; text-align: left; white-space: normal;
  color: var(--doska-text-muted); font-weight: 500;
}
.doska-allnotes-category-pane .doska-collection-folder-chip:hover {
  background: var(--doska-hover); border-color: transparent; color: var(--doska-text);
}
/* Активная — СЕРЫМ, а не акцентом: панель это навигация, а не выбор действия, и яркая пилюля тянет
   на себя внимание сильнее самих заметок справа.
   Заливка --doska-selected, рамки нет: на светлой теме raised это тот же белый, что и фон меню,
   и выбранный раздел опознавался только по обводке. Одна форма выделения на все три списка
   (разделы слева, спейсы и папки в панели «Заметки»), см. --doska-selected. */
.doska-allnotes-category-pane .doska-collection-folder-chip[data-active].doska-collection-folder-chip[data-active] {
  background: var(--doska-selected); border-color: transparent;
  color: var(--doska-text);
}
/* Счётчиков в панели НЕТ — per direct request «количество в секциях меню можно не показывать;
   внутри можно рядом с заголовком, как есть сейчас». Число осталось там, где оно отвечает на
   вопрос «сколько сейчас на экране» — в строке заголовка раздела над карточками. В панели же оно
   стояло у каждой из сотни строк и превращало перечень в таблицу.
   Прячем стилем, а не убираем из разметки: вернуть — снять это правило. */
.doska-allnotes-category-pane .doska-collection-folder-chip-count {
  display: none;
}
/* ЧИСЛА В РЕЙЛЕ УБРАНЫ ОБРАТНО — по прямому запросу «в рейле не надо показывать цифры».
   Раньше здесь стояли два исключения из общего «не показывать»: объём у «Все заметки»/«Задания»/
   «Автоматизации» (по прототипу) и отдельно — «ждут вас» у заданий как состояние, а не объём.
   Обе причины были верны для СВОЕГО момента, но запрос отменяет именно это: рейл — список
   разделов, а не панель со счётчиками. Разметка (`tab.count`, `data-awaiting`) осталась в JSX
   как есть — база всё так же прячет `.doska-collection-folder-chip-count` в `.doska-allnotes-category-pane`,
   этих двух блоков-исключений просто больше нет. */
/* У ТЕГОВ число вернулось — per direct request «для тегов в боковом меню можно указывать количество
   заметок по каждому тегу». Прежняя просьба («количество в секциях меню можно не показывать»)
   касалась разделов: у «Все» или «Корзины» число дублирует то, что и так стоит над карточками, а у
   тега оно единственное место, где видно вес темы. Тег отличаем по id: у разделов он начинается с
   `__`, у спейсов с `space:`. Число прижато вправо, чтобы длинные названия не разъезжались. */
.doska-allnotes-category-pane .doska-collection-folder-chip[data-chip-id]:not([data-chip-id^="__"]):not([data-chip-id^="space:"]) .doska-collection-folder-chip-count {
  display: inline-flex;
  margin-left: auto;
}

/* Системные секции («Все», «Недавно просмотренные», «Без тега», «Прочитать позже», «Корзина») —
   текст и иконка ЦВЕТОМ ТЕКСТА, а не приглушённым: per direct request «в боковом меню „Все“,
   „Недавно просмотренные“, „Без тега“, „Прочитать позже“, „Корзина“ должны быть белым цвет шрифта
   и иконка». Это режимы показа, они стоят над списком тегов и должны читаться как главные строки
   меню, а не как его подпись. Отличаем по id: у системных он начинается с `__`. */
.doska-allnotes-category-pane .doska-collection-folder-chip[data-chip-id^="__"],
.doska-allnotes-category-pane .doska-collection-folder-chip[data-chip-id^="__"] .doska-chip-icon {
  color: var(--doska-text);
}
.doska-allnotes-category-pane .doska-collection-folder-chip[data-chip-id^="__"] svg { color: inherit; }

/* Иконка системной секции в панели — per direct request «добавить иконки для этих секций».
   Только у системных: у тега и спейса своей иконки нет, и ряд одинаковых значков превратил бы
   список в частокол. */
.doska-chip-icon {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; margin-right: 8px; color: var(--doska-text-muted);
}
.doska-collection-folder-chip[data-active] .doska-chip-icon { color: inherit; }

/* Меню секций на телефоне — выезжает поверх экрана по бургеру (per direct request «в бургер-меню
   как у нас на вебе меню ожидаю»). Панель внутри та же самая, поэтому здесь только сцена:
   затемнение, ширина и прокрутка. */
.doska-mobile-sections {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0, 0, 0, 0.5);
  display: flex; align-items: stretch;
}
/* Обёртки .doska-mobile-sections-panel больше НЕТ — per direct request «на мобилке уберём лишний
   контейнер» (с рефом, где меню это одна сплошная панель). Её роль (ширина, прокрутка, фон, линия
   по правому краю) перешла к самой панели секций: одна поверхность вместо карточки в карточке.
   Прежняя подложка внутри оверлея и была тем, что просили убрать отдельным сообщением. */
.doska-mobile-sections .doska-allnotes-category-pane.doska-allnotes-category-pane {
  flex-direction: column; align-items: stretch;
  width: min(320px, 86vw); height: 100%; overflow-y: auto;
  padding: 20px 10px;
  overflow-x: visible; position: static; max-height: none;
  /* Живой отчёт «на мобилке меню не прокручивает вниз». Панель наследует от горизонтальной ленты
     `touch-action: pan-x` (плюс сцепку по X и курсор-руку) — это разрешает браузеру ТОЛЬКО
     горизонтальный жест, и вертикальный свайп по меню не доходил до прокрутки. Замер: содержимое
     1470 при окне 844, контейнер прокручиваемый (программный scrollTop работал), а жестом ноль.
     Здесь лента давно стала столбцом, поэтому ось возвращаем браузеру целиком. */
  touch-action: auto; overscroll-behavior-x: auto; cursor: default;
  margin: 0; padding: var(--s-2); gap: 2px;
  /* Фон панели, а не карточки внутри неё: рамка только по правому краю, как у выехавшего меню в
     реф-примере. */
  background: var(--doska-canvas);
  border: none; border-right: 1px solid var(--doska-hairline);
  /* Скруглены углы СО СТОРОНЫ КРЕСТИКА — per direct request «в этом моб меню скругли верх и низ
     углы на стороне, где крестик, с радиусом как на обводке». Левые остаются прямыми: там меню
     уходит за край экрана, и скруглять нечего. Радиус тот же токен, что у всех карточек. */
  border-radius: 0 var(--doska-radius-lg) var(--doska-radius-lg) 0; box-shadow: none;
  /* Собственный слой выше остальных детей оверлея, но НИЖЕ выпадающих меню (у них 90): без этого
     чипы внутри перекрывали портал «•••» — живой отчёт «в три точки зарезано меню». */
  z-index: auto;
}
.doska-mobile-sections .doska-allnotes-category-pane .doska-collection-folder-chip.doska-collection-folder-chip {
  /* Чип УЖИМАЕТСЯ, а не занимает всю строку — живой отчёт «на мобилке в меню уехали три точки у
     спейсов». `width: 100%` выталкивал «•••» за правый край панели: замер на 390px — панель до 303,
     чип 25..294, кнопка 298..324, то есть физически вне меню, нажать нельзя. Ровно та же ловушка
     уже была на вебе (запись 110), но её правило живёт в блоке min-width:769 и на телефон не
     попадало. */
  flex: 1 1 auto; min-width: 0;
  height: auto; min-height: 40px; justify-content: flex-start; text-align: left;
  border-radius: var(--doska-radius-md); border: 1px solid transparent; background: transparent; white-space: normal;
}
/* Строка занимает всю ширину меню, чтобы ужатому чипу и кнопке было от чего отсчитываться. */
.doska-mobile-sections .doska-allnotes-category-row { width: 100%; }
.doska-mobile-sections .doska-allnotes-category-pane .doska-collection-folder-chip[data-active] {
  background: var(--doska-surface-raised); border-color: var(--doska-hairline);
}
.doska-mobile-sections .doska-allnotes-pane-logo { display: flex; padding: 6px 10px 10px; }
.doska-mobile-sections .doska-allnotes-pane-logo-mark { height: 22px; width: auto; }
.doska-mobile-sections .doska-collection-folder-chip-count { display: none; }

/* Сворачивание панели — per direct request «меню можно сворачивать». Свёрнутая панель не
   рендерится вовсе (не «схлопывается в полоску»): половина меню из одних иконок читается хуже,
   чем его отсутствие, а вернуть его можно одной кнопкой. */
.doska-allnotes-pane-collapse {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; margin-left: auto; padding: 0;
  border: none; border-radius: var(--doska-radius-md); background: transparent; cursor: pointer;
  color: var(--doska-text-muted); transition: background 0.12s ease, color 0.12s ease;
}
.doska-allnotes-pane-collapse:hover { background: var(--doska-hover); color: var(--doska-text); }
.doska-allnotes-pane-expand {
  position: fixed; top: 14px; left: 12px; z-index: 42;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-md);
  background: var(--doska-surface); color: var(--doska-text-muted); cursor: pointer;
}
.doska-allnotes-pane-expand:hover { color: var(--doska-text); }
/* Свёрнуто — сдвига под панель больше нет, но и вплотную к краю окна список не встаёт: per direct
   report со скриншотом «в свёрнутом виде слева нет отступа до края, слишком тесно». Замер до
   правки: список начинался на 8 (одна лишь рамка оболочки) при отступе справа 24 — слева читалось
   как обрез. Шаг --s-2 добирает недостающее до тех же 24. */
/* ТОЛЬКО веб: сворачивание существует лишь там, а флаг лежит в localStorage и на телефоне
   остаётся поднятым от прошлой сессии. Без медиазапроса он тянул левый отступ и на 390px — замер:
   список 56..374, то есть 56 слева против 16 справа на узком экране, где каждый пиксель на счету.
   На телефоне панель открывается бургером и раскладке ничего не диктует. */
@media (min-width: 769px) {
  /* Свёрнутая панель ничего не меняет внутри карточки: её левый край и так двигается сам (см.
     `:has([data-pane-collapsed])` там же, где обводка). */
  .doska-allnotes-body[data-with-pane][data-pane-collapsed] { padding-left: 0; }
}

/* Лого первым в боковом меню — per direct request «переделай меню по аналогии, чтобы там было
   лого». Только на вебе: на телефоне панель это горизонтальная лента, и логотип в ней был бы
   просто ещё одним чипом. */
.doska-allnotes-pane-logo { display: none; }
@media (min-width: 769px) {
  .doska-allnotes-pane-logo {
    display: flex; align-items: center; gap: 8px;
    /* Отступ вниз увеличен (прямой запрос «от лого до секций меню нужно больше отступа вниз»):
       было 10 (padding) + 2 (margin) = 12px до следующей строки, логотип читался слишком близко
       к «Создать»/первому пункту меню. */
    padding: 6px 10px 10px; margin-bottom: var(--s-2);
  }
  /* Крупнее — per direct request «в боковом меню сделать лого крупнее», затем «лого в боковом меню
     крупнее» ещё раз: 22 → 30 → 38. Строка «Создать» под ним 44px высотой, так что запас есть. */
  .doska-allnotes-pane-logo-mark { height: 38px; width: auto; }
}

/* «Создать» первой строкой панели, над «Все» — per direct request «кнопку создать на вебе
   перенести в боковое меню над „Все“». Заливкой акцентом, а не как чипы разделов: это ДЕЙСТВИЕ, а
   не ещё один фильтр, и одинаковый с ними вид сделал бы её просто первым пунктом списка. Ширина
   полная — соседних кнопок в строке нет, в отличие от чипов с «•••».
   Удвоенный класс — тот же приоритет, что у сброса `.doska-root button` (готча №1): без него
   фон, рамка и цвет молча откатываются. */
/* Строка меню, а не сплошная пилюля — per direct request со скриншотом «в боковом меню кнопки
   создать, сделать по аналогии»: акцент несёт квадратная плашка с плюсом слева, подпись стоит
   рядом обычным текстом, и кнопка выравнивается по той же левой линии, что чипы разделов под ней. */
.doska-allnotes-pane-create.doska-allnotes-pane-create {
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  /* flex: 0 0 auto — панель это flex-колонка, и без запрета сжатия строка ужималась до содержимого:
     замер показал 32px при заданных 44. */
  flex: 0 0 auto;
  /* Зазор до первого пункта — per direct request «в боковом меню нужно добавлять небольшой отступ
     вниз от кнопки „Создать“»: 6px читались как часть того же списка, хотя это действие, а не
     строка меню. Шаг сетки --s-2. */
  width: 100%; height: 44px; margin-bottom: var(--s-2); padding: 0 6px;
  border: none; border-radius: var(--doska-radius-md); cursor: pointer;
  background: transparent; color: var(--doska-text);
  font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background 0.12s ease;
}
.doska-allnotes-pane-create.doska-allnotes-pane-create:hover { background: var(--doska-hover, var(--doska-surface-raised)); }

/* Заголовок раздела, живущего ВНУТРИ «Все заметки» (сейчас это корзина), — того же размера, что
   имя секции — per direct request «в корзине заголовок размер также сделать, как в остальных
   секциях». Замер до правки: 32px/800 против 15px/650 у секций; крупная шапка внутри колонки
   читалась как заголовок целой страницы, хотя это одна из строк панели слева. */
/* Крупнее — per direct request «заголовки в разделах сделать крупнее шрифт». 15px читались как
   подпись к списку, а это имя того, что сейчас на экране. Оба заголовка (имя выбранной секции и
   заголовок раздела, живущего внутри — корзины, «Прочитать позже») держим одним размером: они
   стоят в одном и том же месте и меняются местами при переключении. */
/* 20 → 24, тем же прямым запросом «крупнее заголовки на страницах, более акцентные» — это имя
   раздела (Задачи/Заметки/Задания/Автоматизации/Календарь/...), самый частый заголовок в продукте. */
.doska-allnotes-main .doska-stash-folder-content-title,
.doska-allnotes-category-name.doska-allnotes-category-name {
  font-size: 24px; font-weight: 600; line-height: 1.25;
}

/* Строка выбранной категории над набором: имя, счётчик и действия самой категории. */
.doska-allnotes-category-head {
  display: flex; align-items: center; gap: var(--s-1); flex-wrap: wrap;
}
/* Заголовок раздела следует иерархии Geist и остаётся крупнее подписи панели. */
.doska-allnotes-category-name {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--doska-font-display);
  font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: var(--doska-text);
}
/* Счётчик раздела: по умолчанию серое число (объём), акцентной пилюлей — только то, что ждёт
   действия человека. Правило с артборда рейла. */
.doska-collection-folder-chip-count[data-awaiting] {
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  border-radius: 6px; padding: 1px 7px; font-weight: 600;
}
.doska-rail-group {
  /* 16 -> 28 сверху — по прямому запросу «в рейле чуть больше отступы между секциями, сейчас
     слишком близко друг к другу»: зазор ПЕРЕД группой (отделяет от последней строки предыдущей),
     а не ритм строк внутри группы — та плотность уже настраивалась отдельно и её не трогаем. */
  margin: 28px 10px 6px;
  font-size: 11px; letter-spacing: 0; text-transform: none;
  color: var(--doska-text-muted); opacity: 0.8;
}
/* Сортировка категории — В ПРАВОМ УГЛУ строки, а не вплотную к названию: живой отчёт «в категории
   в All notes переместить в правый угол», замер до правки — кнопка кончалась на 474 при правом
   крае колонки 1359. Отступ забирает первый элемент ПОСЛЕ имени, поэтому правило смотрит на
   соседа: так вправо уезжает и «Разложить по категориям», когда он есть, а сортировка остаётся
   последней в ряду. */
/* Специфичность (0,3,0) — ловушка №1: у `.doska-section-sort` есть собственное `margin-left: 8px`
   с равным весом, и при равенстве побеждает правило ниже по файлу. Замер после первой попытки:
   кнопка так и осталась на 434…474 при крае 1359. Утроенный класс головы снимает спор. */
.doska-allnotes-category-head.doska-allnotes-category-head .doska-allnotes-category-name ~ * {
  margin-left: auto;
}
.doska-allnotes-category-head.doska-allnotes-category-head .doska-allnotes-category-name ~ * ~ * {
  margin-left: 8px;
}
/* Правая группа строки: сортировка и «•••» спейса стоят ВМЕСТЕ у правого края. Замер до правки:
   отступ `auto` доставался первому элементу после имени, и пара разъезжалась через всю строку
   (сортировка на 563, меню на 1732). Кнопка меню — последняя, поэтому прижимаем именно её, а
   сортировке слева от неё оставляем обычный зазор. */
.doska-allnotes-category-head.doska-allnotes-category-head .doska-project-card-menu-btn {
  /* Ближе к сортировке — per direct request «в спейсе иконку сортировки приблизить чуть ближе к три
     точки». Замер до правки: сортировка кончалась на 1688, «•••» начинались на 1704, то есть 16 —
     собственные 8 плюс 8 от шага строки. Своего поля у кнопки больше нет, расстояние задаёт один
     только шаг строки. */
  margin-left: 0; position: static;
  /* ВИДНА ВСЕГДА — живой отчёт «„•••“ у спейса не вижу». Кнопка переиспользована с карточек полки
     спейсов, а там она прозрачная до наведения НА КАРТОЧКУ (.doska-collection-card:hover). В
     строке заголовка такого родителя нет, поэтому условие не выполнялось никогда и кнопка
     оставалась невидимой при opacity: 0. Здесь она стоит рядом с сортировкой и должна читаться
     так же, как та. */
  opacity: 1;
  /* Ростом с кнопкой сортировки: пара рядом обязана выглядеть парой. */
  width: 40px; height: 40px; border-radius: var(--doska-radius-md);
  /* И ОБВОДКОЙ тоже — per direct request «внутри списка есть иконка с тремя точками, нужно, чтобы
     вокруг неё также была обводка, как на иконке сортировки». Замер до правки: у сортировки
     1px rgba(255,255,255,0.14), у «•••» рядом рамки не было вовсе, и две одинаковые по размеру
     кнопки читались как разные по важности. Тот же токен, что у соседа. */
  border: 1px solid var(--doska-hairline-strong);
}

/* Кнопка сортировки раздела — одна на весь продукт (см. SectionSortButton). Ростом с соседней
   кнопкой «Создать»: замер показал 33px против её 40, и пара читалась как случайная. */
.doska-section-sort { flex: 0 0 auto; margin-left: 8px; }
/* В разделах, где рядом нет кнопки «Создать» (Корзина, «Прочитать позже»), сортировка одна в
   строке заголовка и обязана прижаться к ПРАВОМУ краю — живой отчёт «в Корзине поправить
   выравнивание сортировки по правому краю». Правило смотрит на соседа: если сортировка идёт
   сразу за заголовком, весь свободный зазор отдаётся ей. */
.doska-stash-folder-content-title + .doska-section-sort { margin-left: auto; }
.doska-section-sort .doska-stash-group-toggle.doska-stash-group-toggle {
  height: 40px; width: 40px; padding: 0; justify-content: center; border-radius: var(--doska-radius-md);
}
.doska-projects-header .doska-projects-actions { margin-left: 12px; }
@media (max-width: 768px) {
  /* На телефоне у кнопки остаётся её место в строке названия, а строка действий (в ней только
     табы) уходит на свою строку целиком — специфичность (0,6,0) по той же причине, что и рядом. */
  /* Кнопка снова кружок с плюсом: правило, прятавшее подпись, смотрело на `.doska-projects-actions
     .doska-action-label`, а кнопка теперь ЖИВЁТ ВНЕ этой строки — подпись вернулась и заняла 128px
     (замер) в строке с названием. */
  .doska-projects-create.doska-projects-create {
    margin-left: auto; width: 44px; height: 44px; padding: 0; border-radius: 6px;
    justify-content: center;
  }
  .doska-projects-create .doska-action-label { display: none; }
  .doska-projects-header .doska-projects-actions.doska-projects-actions { margin-left: 0; }
}

/* ── Проход по мелочам доступности (по просьбе «устрани недочёты»). Всё замерено в браузере, а не
   взято из общих рекомендаций. ─────────────────────────────────────────────────────────────── */

/* 1. Инициалы в аватаре профиля: контраст 4.1 при норме 4.5 для мелкого текста (замер: белый на
   сером --doska-avatar-gray). Правим не круг, а ЦВЕТ БУКВ и по-разному в двух темах: на тёмной
   круг тёмно-серый и белые буквы на нём читаются, на светлой круг светло-серый (по отдельной
   просьбе «нужен светлый серый на светлой теме») — там белым буквам не хватает контраста ни при
   каком осветлении, нужен тёмный текст. Первая попытка затемняла сам круг: на тёмной теме это
   давало 6.7, а на светлой всё равно 3.2 — то есть чинило лишь половину. */
.doska-root[data-theme='light'] .doska-profile-avatar.doska-profile-avatar { color: #1a1a20; }
/* На ТЁМНОЙ теме буквы белые, и не хватает уже кругу: замер белого на #6b7280 дал 4.1 при норме
   4.5. Затемняем сам круг — на тёмном фоне это ещё и уместнее, серый там был светлее окружения. */
.doska-root:not([data-theme='light']) .doska-profile-avatar.doska-profile-avatar {
  /* Явный hex, а не color-mix: значение видно глазом и проверяется замером напрямую (нотация
     color(srgb …) ломает любую простую проверку контраста, что уже сбило меня один раз).
     #4f545f — тот же серый, затемнённый до порога: белые буквы дают 7.1 при норме 4.5. */
  background: #4f545f;
}

/* 2. Область нажатия у мелких кнопок на карточке. Визуально это по-прежнему кружки 22–24px (так и
   задумано — они лежат поверх содержимого и не должны его закрывать), но ПАЛЬЦУ достаётся 44px:
   невидимый ::after расширяет зону попадания, не трогая раскладку. Замер на телефоне: «Открепить»
   24×24, «Выделить» 22×22, «Действия» 24×24, микрофон в поиске 18×18 — по всем промахиваешься.
   Только на телефоне: на десктопе курсор точный, а расширенные зоны начали бы перехватывать
   наведение у соседей. */
@media (max-width: 768px) {
  /* position ставим ТОЛЬКО микрофону: живой отчёт «на мобилке на карточках заметок три точки
     съехали». Карточные кнопки уже абсолютные (top/right в своих правилах выше), а этот блок
     переводил их в relative — и «Действия» уезжали из угла карточки в конец потока: замер на
     390px показал кнопку на x=9 (при карточке 16..191) и y 456..480, то есть вне карточки внизу
     слева. Абсолютное позиционирование само создаёт точку отсчёта для ::after, так что для
     расширенной зоны нажатия relative тут был вообще не нужен. */
  .doska-search-mic {
    position: relative;
  }
  .doska-stash-card-ai-bubble::after,
  .doska-stash-card-menu-btn::after,
  .doska-search-mic::after {
    content: ''; position: absolute; inset: -10px; border-radius: inherit;
  }
}


/* Единый шаг между секциями категорий на ОБОИХ экранах. Колонки у них разные и с разным
   собственным `gap`: на «Все заметки» — 20px, внутри спейса (.doska-stash-content-main) — 16px.
   При одинаковом margin у секции итоговое расстояние получалось разным (замер: 24 против 20).
   Здесь добираем разницу, чтобы ритм читался одинаково независимо от экрана. */
.doska-stash-content-main > .doska-collection-folder { margin-bottom: var(--s-1); }
.doska-projects-create.doska-projects-create { min-height: 36px; }


/* Вертикальный ритм шапки спейса на телефоне. Замер до правки: стрелка→название 16, название→кружки
   16, кружки→поиск 6, поиск→оглавление 16 — от верха экрана до первой карточки уходило 257px, и
   на скриншоте это читается как «дыры» (per direct request «поправить отступы»). Ужимаем до
   8 / 10 / 10 / 12: строки шапки — это одна группа, между ними нужен воздух поменьше, чем между
   группами. Разница ≈30px — на телефоне это половина карточки. */
@media (max-width: 768px) {
  .doska-project-header-breadcrumb.doska-project-header-breadcrumb { padding-bottom: 0; }
  .doska-project-header-top.doska-project-header-top.doska-project-header-top { padding-top: 8px; padding-bottom: 0; }
  .doska-project-hero.doska-project-hero.doska-project-hero { padding-top: 8px; padding-bottom: 0; }
  .doska-project-actions-bar.doska-project-actions-bar { margin-top: 10px; margin-bottom: 0; }
  /* Отрицательное верхнее поле строки поиска придумано для «Все заметки» (там оно подтягивает поле
     к скрытому заголовку). Внутри спейса над поиском стоит строка действий, и тот же минус съедал
     зазор до неё почти в ноль — замер дал 2px. Здесь его снимаем. */
  .doska-inline-search--space.doska-inline-search--space { margin-top: 0; }
}

/* ── Сетка 8pt: высоты и поля ключевых элементов ──────────────────────────────────────────────
   Приведены к шагу 8 те величины, которые формируют ритм страницы и раньше подбирались по месту
   (замеры до правки: шапка категории 46, поле поиска 52, чипы 36, пилюли шапки 38, сегмент табов и
   «Новый спейс» 36/33). Тач-цели на телефоне держим на 40 — это ближайший шаг сетки, который ещё
   удобно нажимать; там, где визуальный размер меньше, зона нажатия расширена невидимым ::after
   (см. блок про доступность выше). */
.doska-collection-folder-head { min-height: var(--s-6); padding: var(--s-1) var(--s-2); }
.doska-inline-search .doska-search.doska-search { min-height: var(--s-6); padding: 0 var(--s-2); padding-right: 128px; }
@media (max-width: 768px) {
  /* Мобильное значение объявлено ЗДЕСЬ, после базового: равная специфичность, и раньше по файлу
     оно бы проиграло по порядку (готча №1). 64 = чип-иконка 40 + отступ 8 + зазор 16. */
  .doska-inline-search .doska-search.doska-search { padding-right: 64px; }
}
.doska-projects-create.doska-projects-create { min-height: var(--s-5); }
.doska-stash-folder-content-action { min-height: var(--s-5); }
@media (max-width: 768px) {
  .doska-collection-folder-chip.doska-collection-folder-chip { height: var(--s-5); }
  .doska-projects-create.doska-projects-create { width: var(--s-5); height: var(--s-5); }
}


/* Табы «Спейсов» на вебе — отдельной строкой ПОД заголовком (per direct request «на вебе сделай
   табы в „Спейсы“ под текстом „Спейсы“»), как уже сделано на телефоне. Кнопка «Новый спейс»
   остаётся на строке названия, у правого края: это действие над разделом, а табы — фильтр над
   полкой, и по смыслу они относятся к разному.
   Специфичность (0,6,0) — тот же спор, что был на телефоне: `.doska-stash-folder-content-header×3
   .doska-stash-folder-content-actions×2` (0,5,0) держит строку действий справа от заголовка. */
@media (min-width: 769px) {
  .doska-projects-header.doska-projects-header.doska-projects-header.doska-projects-header {
    flex-wrap: wrap;
  }
  .doska-projects-header.doska-projects-header.doska-projects-header
    .doska-projects-actions.doska-projects-actions.doska-projects-actions {
    flex: 1 0 100%; justify-content: flex-start; margin: var(--s-1) 0 0;
  }
}

/* Плитка «Новый спейс» — первая на полке (per direct request с референсом). Держит форму и размер
   настоящих плиток (их задаёт .doska-projects-grid .doska-collection-card), но красится нейтрально
   и пунктиром: это место для нового, а не существующий спейс. Тот же язык, что у чипа «Новая
   категория» в оглавлении — пунктир как «здесь можно создать». */
.doska-projects-new-card.doska-projects-new-card {
  /* Плюс по центру: подписи на плитке нет (per direct request), и прижимать его к углу не к чему. */
  display: flex; align-items: center; justify-content: center;
  background: var(--doska-surface);
  border: 1px dashed var(--doska-hairline-strong);
  color: var(--doska-text-muted);
}
.doska-projects-new-card:hover { color: var(--doska-text); border-color: var(--doska-accent); }
.doska-projects-new-card-plus {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--s-6); height: var(--s-6); border-radius: 999px;
  background: var(--doska-accent); color: var(--doska-accent-contrast);
}
/* Название кнопки для скринридера — на экране его нет. */
.doska-visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* «Создать» на строке заголовка «Все заметки» — у правого края (per direct request «напротив, на
   одной линии»). Строка действий с фильтрами/видом стоит следом, поэтому кнопке нужен свой
   правый прижим, а не общий. */

/* «Недавние» на полке спейсов — per direct request «в Спейсы сделать Recent spaces». Собственной
   плитки не изобретаем: те же карточки, только своим заголовком и разделителем снизу, чтобы блок
   читался как отдельный раздел, а не как первая строка общей сетки. Отступы — по 8pt-сетке. */

/* Полноэкранный поиск на ВЕБЕ — per direct request «добавить на вебе в меню первого уровня иконку
   глобальный поиск, как уже есть на мобилке рядом с нотификацией». Оверлей и логика те же, что на
   телефоне (одна реализация поиска на весь продукт), но растянутая на всю ширину монитора строка
   ввода читается как ошибка вёрстки: на 1400px поле выходило 1241px. Колонка ограничена и
   центрирована по той же логике, что и контентная зона разделов; сверху — воздух, чтобы поле не
   липло к краю экрана. Кнопки «Назад» и «Спросить» остаются по углам самого оверлея: они
   относятся к нему целиком, а не к колонке. */

/* ---------- Быстрое создание из рельсы («+» первой кнопкой) ---------- */
/* Единственная кнопка рельсы с заливкой — per direct request («будет цветной заливкой»). Остальные
   кнопки рельсы переключают вид, эта одна создаёт; заливка и отмечает эту разницу, поэтому она тут
   ровно одна. Размер и форма — как у соседей, иначе строка перестаёт читаться как один набор. */
.doska-rail-create-btn.doska-rail-create-btn {
  background: var(--doska-accent); color: var(--doska-accent-contrast);
}
.doska-rail-create-btn.doska-rail-create-btn:hover { filter: brightness(1.1); }
.doska-rail-create-btn.doska-rail-create-btn svg { color: var(--doska-accent-contrast); }
/* Панель живёт в body (готча №2 — рельса внутри контейнера со своим z-index), поэтому позиция
   фиксированная и считается от кнопки. */
/* Портал несёт класс .doska-root ради CSS-переменных (они объявлены внутри него, а не на :root),
   но вместе с ними приезжает и его собственная геометрия: `position: fixed; inset: 0` плюс фон.
   Из-за этого слой меню растягивался на ВЕСЬ экран и накрывал содержимое раздела — живой отчёт
   «когда нажал добавить через рейл, содержание раздела не видно; меню будет просто поверх».
   Поэтому геометрию гасим по свойству: слой ровно по размеру панели, без фона и без inset.
   Клики мимо панели при этом снова достаются странице, а не невидимой пластине во весь экран. */
.doska-rail-create-portal {
  position: fixed; z-index: 80;
  inset: auto; right: auto; bottom: auto;
  width: -moz-max-content;
  width: max-content; height: -moz-max-content; height: max-content;
  background: none; overflow: visible;
}
.doska-rail-create-panel {
  display: flex; flex-direction: column; gap: var(--s-1);
  width: 264px; padding: var(--s-2);
  background: var(--doska-surface-raised); border: 1px solid var(--doska-hairline);
  border-radius: var(--doska-radius-lg); box-shadow: none;
}
.doska-rail-create-section-label {
  font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none;
  color: var(--doska-text-muted); padding: var(--s-1) 0 0;
}
.doska-rail-create-target {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-1);
  width: 100%; height: 40px; padding: 0 var(--s-2);
  border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius-sm);
  background: var(--doska-surface); color: var(--doska-text); font-size: 13px; font-weight: 600;
  text-align: left; cursor: pointer;
}
.doska-rail-create-target:hover { border-color: var(--doska-text-muted); }
.doska-rail-create-target-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-rail-create-picker {
  display: flex; flex-direction: column; gap: var(--s-1);
  border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-sm);
  padding: var(--s-1); background: var(--doska-surface);
}
.doska-rail-create-search { display: flex; align-items: center; gap: 6px; padding: 0 6px; color: var(--doska-text-muted); }
.doska-rail-create-search input {
  flex: 1; min-width: 0; height: 32px; border: none; background: none; outline: none;
  color: var(--doska-text); font-family: inherit; font-size: 13px;
}
.doska-rail-create-picker-list { display: flex; flex-direction: column; max-height: 216px; overflow-y: auto; }
.doska-rail-create-picker-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-1);
  width: 100%; min-height: 32px; padding: 0 6px; border-radius: var(--doska-radius-sm);
  background: none; border: none; color: var(--doska-text); font-size: 13px; text-align: left;
  cursor: pointer;
}
.doska-rail-create-picker-row:hover { background: var(--doska-canvas); }
.doska-rail-create-picker-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-rail-create-empty { padding: var(--s-1) 6px; font-size: 13px; color: var(--doska-text-muted); }
.doska-rail-create-types { display: flex; flex-direction: column; gap: 4px; }
.doska-rail-create-type {
  display: flex; align-items: center; gap: var(--s-1);
  width: 100%; height: 40px; padding: 0 var(--s-2); border-radius: var(--doska-radius-sm);
  background: none; border: 1px solid transparent; color: var(--doska-text);
  font-size: 13px; font-weight: 600; text-align: left; cursor: pointer;
}
.doska-rail-create-type:hover { background: var(--doska-canvas); border-color: var(--doska-hairline); }
.doska-rail-create-type:disabled { opacity: 0.5; cursor: default; }
.doska-rail-create-space {
  /* По левому краю и с тем же внутренним отступом, что у типов выше: живой отчёт со скриншотом
     «поправить выравнивание по левому краю». Центрированная строка выбивалась из колонки, и её
     иконка не попадала на общую вертикаль с иконками «Заметка / Ссылка / Файл». */
  display: flex; align-items: center; justify-content: flex-start; gap: var(--s-1);
  padding: 0 var(--s-2);
  height: 40px; margin-top: var(--s-1); border-radius: var(--doska-radius-sm);
  border: 1px dashed var(--doska-hairline-strong); background: none;
  color: var(--doska-text-muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.doska-rail-create-space:hover { color: var(--doska-text); border-color: var(--doska-text-muted); }
/* Подсказка о ⌘K в самом поиске — per direct request («в поиске через cmd+K указывать, что есть
   такой hot key»): сочетание видно там, где им пользуются, а не только в подсказке кнопки. */
.doska-search-hotkey {
  flex: none; padding: 2px 6px; border-radius: var(--doska-radius-sm);
  border: 1px solid var(--doska-hairline-strong); background: var(--doska-canvas);
  color: var(--doska-text-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
}
@media (max-width: 768px) { .doska-search-hotkey { display: none; } }

/* «•••» на карточке спейса — появляется при наведении, как и остальные действия на карточках в
   этом продукте; на телефоне видна всегда (наведения там нет). Прижата к правому верхнему углу и
   лежит ВЫШЕ фоновой обложки карточки, но ниже её собственного текста. */
/* Обёртка карточки: она, а не сама карточка, становится элементом сетки — «•••» лежит рядом с
   карточкой, а не внутри неё (кнопка в кнопке — невалидная разметка), и позиционируется по этой
   обёртке. Карточка растягивается на всю обёртку, поэтому визуально ничего не меняется. */
.doska-collection-card-wrap { position: relative; display: flex; }
.doska-collection-card-wrap > .doska-collection-card { flex: 1 1 auto; width: 100%; }
.doska-collection-card-wrap:hover .doska-project-card-menu-btn { opacity: 1; }
.doska-project-card-menu-btn {
  position: absolute; top: var(--s-1); right: var(--s-1); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--doska-hairline); background: var(--doska-surface-raised);
  color: var(--doska-text-muted); cursor: pointer; opacity: 0;
  transition: opacity 120ms ease, color 120ms ease;
}
.doska-collection-card:hover .doska-project-card-menu-btn,
.doska-project-card-menu-btn:focus-visible,
.doska-project-card-menu-btn[data-active] { opacity: 1; }
.doska-project-card-menu-btn:hover { color: var(--doska-text); }
@media (max-width: 768px) {
  .doska-project-card-menu-btn { opacity: 1; }
}
/* z-index ВЫШЕ мобильного оверлея секций — живой отчёт «на мобилке в боковом меню для спейсов в
   три точки зарезано меню». У обоих было по 80, а при равном z-index побеждает тот, кто позже в
   DOM: оверлей перекрывал выпадающее меню целиком. Замер: elementFromPoint над каждым пунктом
   возвращал элементы бургер-меню (чипы, заголовок), то есть нажать было нельзя ни один. */
.doska-project-card-menu { z-index: 90; min-width: 200px; }
/* Крошки НАД заголовком (26.09.2026): отступ снизу маленький — путь и имя папки читаются одной
   группой, а не двумя отдельными строками. */
/* Строка управления списком: сортировка слева, вид справа, ровно над карточками. 8pt-сетка:
   отступ сверху полный шаг (отделяет от папок), снизу половинный (группируется со списком). */
.doska-allnotes-list-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  /* 12/8 вместо 16/8: строка управления принадлежит заголовку сверху, а не списку снизу, и
     одинаковые отступы с обеих сторон делали её ничьей. */
  margin: 12px 0 8px; flex-wrap: wrap;
}
.doska-allnotes-folder-trail {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
  font-size: 12px; color: var(--doska-text-muted);
}
.doska-allnotes-folder-trail span { display: inline-flex; align-items: center; gap: 4px; }
.doska-allnotes-folder-trail button {
  border: none; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 12px; color: var(--doska-text-muted);
}
.doska-allnotes-folder-trail button:hover { color: var(--doska-text); text-decoration: underline; }
.doska-allnotes-folder-trail b { color: var(--doska-text); font-weight: 600; }

/* Дерево папок спейса в боковой панели — per direct request «хочу видеть дерево папок по спейсу»,
   форма по присланному референсу (ClickUp): иконка папки в покое, стрелка сворачивания на её месте
   при наведении, счётчик справа, «плюс» для создания вложенной папки, направляющая линия вдоль
   уровня вложенности. */
.doska-allnotes-space-tree { display: flex; flex-direction: column; gap: 1px; }
/* Направляющая линия у КАЖДОГО уровня, включая первый — по присланному референсу: там линия идёт
   и вдоль папок, лежащих прямо в спейсе, показывая, что все они дети одной строки выше.
   Ступеньку задаёт сам контейнер уровня (margin-left), а не отступ строки: контейнеры вложены
   друг в друга, поэтому отступ накапливается сам, а линия каждого уровня встаёт ровно под своим
   родителем. Считать отступ в разметке (12 + depth * 12), как было раньше, при этом нельзя:
   вместе с margin вложенного контейнера он давал бы двойной сдвиг. */
.doska-allnotes-space-tree {
  /* Вертикальная направляющая УБРАНА (29.09.2026, прямой запрос «в дропдауне заметки убрать
     вертикальный дивайдер») — раньше гасилась только в отдельной панели (.doska-notes-pane),
     которой больше нет; теперь дерево живёт снова дропдауном под «Заметки», и линия там тоже
     не нужна. */
  border-left: none;
  /* Ступенька ОДНА на все уровни, включая первый — per direct report «править положение стрелок в
     боковом меню где спейсы, сейчас не выровнены… но нужно компактно аккуратно».
     8 + 1 (рамка) + 3 = 12 пикселей на уровень. Числа не произвольные: 8 это ровно половина
     колонки стрелки (16), поэтому линия уровня встаёт ТОЧНО под центром стрелки своего родителя, а
     не рядом с ней. Прежний вариант уводил первый уровень отрицательным отступом в поле панели:
     стрелки вставали в одну колонку, но линия отрывалась от строк и висела у самого края.
     Шаг 12, а не 16: панель 262 пикселя шириной, и на третьем уровне вложенности от названия
     оставалось бы несколько букв. */
  /* 12, а не 8: линия обязана идти под ЦЕНТРОМ стрелки родителя, а строка спейса получила слева
     отступ в 4 пикселя (см. .doska-allnotes-space-row). Ступенька уровня при этом осталась
     прежней — вложенные контейнеры наследуют это же значение, и менять её значило бы менять всю
     глубину дерева заодно. */
  /* 14 = отступ строки спейса (4) + половина КОЛОНКИ ИКОНОК (20/2). Колонка выросла с 16 до 20
     вслед за укрупнением иконок, и прежняя дюжина оставляла линию на два пикселя левее центра
     родительской иконки — замер показал 29 против 31. */
  /* Ступенька уменьшена с 14+3 до 10+2 — по прямому запросу «использовать всю ширину колонки для
     заметок»: на третьем уровне вложенности от названия оставалось несколько букв. Линия по-прежнему
     идёт под иконкой родителя, просто колонка отступов стала экономнее. */
  margin-left: 10px;
  padding-left: 2px;
}
/* Строка-контейнер: название растягивается, «+» и «•••» прижаты вправо. Своей кнопкой стала
   именно область названия, поэтому наведение и активное состояние красят всю строку, а не её. */
.doska-allnotes-space-tree-main {
  /* gap 4, а не 8: с восьмёркой иконка папки уезжала на x=44 против x=39 у названия спейса, то
     есть вторая колонка тоже не сходилась. Четвёрка ставит иконку ровно под названия спейсов. */
  display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0;
  border: none; background: none; padding: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.doska-allnotes-space-tree-row {
  display: flex; align-items: center; gap: 2px; width: 100%; position: relative;
  /* 8pt: 32 в высоту, как у чипов спейсов рядом — в референсе строки дерева и строки верхнего
     уровня одного роста, разница только в цвете и размере шрифта. */
  padding-right: 6px; padding-left: 0; min-height: 32px;
  border: none; background: none; border-radius: var(--doska-radius-md); cursor: pointer;
  font-family: var(--doska-font-display); font-size: 13px; color: var(--doska-text-muted);
  text-align: left;
}
.doska-allnotes-space-tree-row:hover { background: var(--doska-secondary); color: var(--doska-text); }
/* Та же мягкая плашка, что у строки спейса: --doska-surface на светлой теме равен белому фону
   панели, то есть выбранная папка ничем не отличалась от невыбранной. См. --doska-selected. */
.doska-allnotes-space-tree-row[data-active] { background: var(--doska-selected); color: var(--doska-text); font-weight: 600; }
/* СКРИМ ПОД «+»/«•••» (per direct request «плюсик и три точки можно поверх текста при ховере,
   нужно чтобы больше влезало имя заметки»): кнопки лежат АБСОЛЮТНО поверх правого края строки, а
   не раздвигают её — имя папки получает всю ширину строки всегда, не только когда кнопки скрыты.
   Скрим — не декор, а читаемость: без него текст обрывается ПРЯМО ПОД непрозрачной иконкой, а не
   выцветает в фон. Цвет скрима обязан совпадать с фактическим фоном строки в каждом её состоянии
   (в покое, при наведении, выбранная), иначе на стыке виден шов. */
.doska-allnotes-space-tree-row::after {
  /* Фон покоя — var(--doska-surface): строка сама прозрачна и показывает фон панели «Заметки»
     под собой (см. .doska-allnotes-category-pane), а не полотно экрана. */
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 56px;
  background: linear-gradient(to left, var(--doska-surface) 55%, transparent);
  opacity: 0; pointer-events: none; border-radius: 0 var(--doska-radius-md) var(--doska-radius-md) 0;
}
.doska-allnotes-space-tree-row[data-active]::after { background: linear-gradient(to left, var(--doska-selected) 55%, transparent); }
.doska-allnotes-space-tree-row:hover::after,
.doska-allnotes-space-tree-row:focus-within::after,
.doska-allnotes-space-tree-row:has(.doska-project-card-menu-btn[data-active])::after {
  opacity: 1;
}
.doska-allnotes-space-tree-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-allnotes-space-tree-count { flex: none; font-size: 12px; color: var(--doska-text-muted); font-variant-numeric: tabular-nums; }

/* Ячейка стрелки: у листа она пустая, но занимает ту же ширину — иначе названия соседних строк
   разъезжались бы по горизонтали, и дерево читалось бы как случайный набор отступов. */
/* Колонка стрелки одна на весь список: 16 пикселей у заголовка группы, у строки спейса и у папки
   любого уровня. Замер до правки показал три разные вертикали в одном меню (23, 21 и 20) — глазу
   этого хватает, чтобы список выглядел собранным вручную. */
.doska-allnotes-space-tree-marker {
  display: grid; place-items: center; flex: none;
  width: 16px; height: 16px; border-radius: var(--doska-radius-sm); color: var(--doska-text-muted);
}
.doska-allnotes-space-tree-marker[role="button"] { cursor: pointer; }
.doska-allnotes-space-tree-marker[role="button"]:hover { background: var(--doska-hairline-strong); color: var(--doska-text); }
/* Видна ВСЕГДА: она единственный признак того, что внутри папки есть ещё папки. Пряталась до
   наведения в первом проходе — именно на это и пожаловались. */
.doska-allnotes-space-tree-caret { transition: transform 0.15s ease; }

.doska-allnotes-space-tree-icon { flex: none; opacity: 0.75; }

/* Стрелка сворачивания у строки СПЕЙСА: сворачивает всё его дерево разом. Стоит перед названием,
   как в референсе, и видна всегда (в отличие от «плюса»): это единственный признак того, что у
   спейса вообще есть папки, когда дерево свёрнуто. */
.doska-allnotes-space-caret-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  /* 16, как у стрелки папки: обе стоят в одной колонке, и их центры обязаны совпадать. */
  width: 16px; height: 16px; padding: 0; border: none; background: none; border-radius: var(--doska-radius-sm);
  color: var(--doska-text-muted); cursor: pointer; transition: transform 0.15s ease;
}
.doska-allnotes-space-caret-btn:hover { background: var(--doska-hairline-strong); color: var(--doska-text); }
/* Поворот живёт на самой иконке (.doska-collapse-caret), а не на кнопке: обе получают data-open
   из разметки, и вращение на обоих давало бы 180 градусов, то есть стрелку, смотрящую влево. */
.doska-allnotes-space-caret-btn[data-open] { transform: none; }
/* Маркер папки первого уровня встаёт в колонку НАЗВАНИЙ спейсов, а не их стрелок: это следующая
   ступень вложенности, и совпадение со стрелкой родителя читалось бы как «папка и спейс равны». */

/* «+» и у строки спейса, и у папки: в покое скрыт, появляется по наведению на строку. Ряд плюсов
   вдоль всего дерева в покое читается как украшение, а не как действие. */
/* Ширина 0 в покое (не только opacity: 0) — по прямому запросу «слишком рано сокращение текста в
   три точки, используй ширину»: невидимая кнопка всё равно держала 20px в потоке, и название
   спейса/папки укорачивалось раньше, чем реально нужно. Раньше это чинилось только в отдельной
   панели .doska-notes-pane; панели больше нет (дерево снова дропдаун), и щит нужен тут, у базового
   правила, а не только там. */
/* Строка спейса вне дерева (.doska-allnotes-space-add-btn — категорийные строки) держит прежний
   трюк «ширина 0 в покое»: там нет скрима под текстом и не было жалобы «влезает поверх текста»,
   трогать её не нужно. */
.doska-allnotes-space-add-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 0; height: 20px; padding: 0; border: none; background: none; border-radius: var(--doska-radius-sm);
  color: var(--doska-text-muted); cursor: pointer; opacity: 0; overflow: hidden;
}
.doska-allnotes-category-row:hover .doska-allnotes-space-add-btn,
.doska-allnotes-space-add-btn:focus-visible { width: 20px; opacity: 1; }
.doska-allnotes-space-add-btn:hover { background: var(--doska-hairline-strong); color: var(--doska-text); }
/* Клавиатуре кнопка нужна всегда: скрытая по opacity, она остаётся в порядке обхода, и без этого
   правила фокус уезжал бы на невидимый элемент. */
.doska-allnotes-space-add-btn:focus-visible { opacity: 1; }

/* «+» и «•••» СТРОКИ ДЕРЕВА — ПОВЕРХ текста, не в потоке (per direct request «плюсик и три точки
   можно поверх текста при ховере, нужно чтобы больше влезало имя заметки»): абсолютное
   позиционирование снимает обе кнопки из потока строки СОВСЕМ, а не только визуально в покое —
   имя папки получает всю ширину строки в любой момент, а не только пока кнопки невидимы. Скрим
   выше (.doska-allnotes-space-tree-row::after) не даёт тексту обрываться прямо под иконкой. */
.doska-allnotes-space-tree-add {
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); z-index: 1;
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; padding: 0; border: none; background: none; border-radius: var(--doska-radius-sm);
  color: var(--doska-text-muted); cursor: pointer; opacity: 0; pointer-events: none;
}
.doska-allnotes-space-tree-row:hover .doska-allnotes-space-tree-add,
.doska-allnotes-space-tree-add:focus-visible { opacity: 1; pointer-events: auto; }
.doska-allnotes-space-tree-add:hover { background: var(--doska-hairline-strong); color: var(--doska-text); }
/* «•••» папки: тот же размер и та же логика показа, что у «плюса» рядом, но на 22px ближе к краю,
   когда «+» тоже есть на этой строке — иначе они легли бы друг на друга. Открытое меню оставляет
   кнопку видимой (data-active) — иначе, уведя мышь на пункт меню, человек видел бы, как исчезает
   кнопка, которую он только что нажал. */
.doska-allnotes-space-tree-row .doska-project-card-menu-btn {
  /* Базовое правило .doska-project-card-menu-btn — 28×28, пилюлей, с рамкой и заливкой (писалось
     под «•••» в углу карточки-плитки). В узкой строке дерева это выглядело бы чужеродной кнопкой;
     здесь она того же минимального вида, что и «+» рядом. */
  position: absolute; top: 50%; right: 6px; transform: translateY(-50%); z-index: 1;
  width: 20px; height: 20px; border: none; background: none; border-radius: var(--doska-radius-sm);
  opacity: 0; pointer-events: none;
}
.doska-allnotes-space-tree-row:has(.doska-allnotes-space-tree-add) .doska-project-card-menu-btn { right: 28px; }
.doska-allnotes-space-tree-row:hover .doska-project-card-menu-btn,
.doska-allnotes-space-tree-row .doska-project-card-menu-btn[data-active],
.doska-allnotes-space-tree-row .doska-project-card-menu-btn:focus-visible {
  opacity: 1; pointer-events: auto;
}
.doska-allnotes-space-tree-row .doska-project-card-menu-btn:hover { background: var(--doska-hairline-strong); }

/* Свёрнутая ветка, внутри которой открыта папка: точка вместо пустоты — иначе, свернув ветку,
   человек теряет единственный признак того, где он сейчас находится. */
.doska-allnotes-space-tree-row[data-contains-open] .doska-allnotes-space-tree-title::after {
  content: '•'; margin-left: 6px; color: var(--doska-accent);
}
@media (max-width: 720px) {
  /* На телефоне панель разделов бывает горизонтальной лентой, и вертикальное дерево в неё не
     ложится. Внутрь папки там заходят чипами над списком. */
  .doska-allnotes-space-tree { display: none; }
  /* НО мобильное меню разделов (.doska-mobile-sections) давно стало вертикальным списком во весь
     экран, а это правило осталось с тех пор, когда лентой была и оно. Живой отчёт со снимком:
     «поправить на мобилке, не раскрываются спейсы» — стрелка у спейса есть, нажатие исправно
     переключает состояние, но раскрывать нечего: дерево скрыто насмерть.
     Специфичность (0,2,0) против (0,1,0) выше, и правило стоит ниже — при равной специфичности
     победило бы верхнее (готча №1 этого проекта). */
  .doska-mobile-sections .doska-allnotes-space-tree { display: flex; }
  /* Наведения на телефоне нет: «плюс» у спейса виден всегда, иначе до него не добраться. */
  .doska-allnotes-space-add-btn { opacity: 1; }
}

/* Результат из Gmail или Google Drive в общей выдаче поиска — per direct request «надо сделать
   интеграции с Gmail, Google Drive». Строка не кнопка, а контейнер: у чужой находки два действия
   (открыть в источнике и сохранить к себе), и одно нажатие на всю строку выбрать между ними не
   даёт. */
.doska-search-result-row--external {
  display: flex; align-items: center; gap: var(--s-1); width: 100%;
}
.doska-search-result-link {
  display: flex; align-items: center; gap: var(--s-1); flex: 1 1 auto; min-width: 0;
  color: inherit; text-decoration: none;
}
.doska-search-result-link:hover .doska-search-result-title { text-decoration: underline; }
/* Заголовок и подзаголовок — СВОЙ столбик, а не ещё двое детей flex-row родителя (см. живой отчёт
   на 406px в комментарии GoogleResultRow.tsx): без него оба сидели в одной строке и не ужимались —
   ни у кого из них не было своего min-width:0 внутри строки. */
.doska-search-result-link-text { display: flex; flex-direction: column; gap: 1px; flex: 1 1 auto; min-width: 0; }
.doska-search-result-external-icon { flex: none; opacity: 0.5; }
.doska-search-result-save {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 26px; height: 26px; border-radius: var(--doska-radius-sm);
  border: 1px solid var(--doska-hairline); background: var(--doska-surface);
  color: var(--doska-text-muted); cursor: pointer;
}
.doska-search-result-save:hover:not(:disabled) { border-color: var(--doska-accent); color: var(--doska-text); }
/* Сохранённое остаётся видимым, но неактивным: исчезающая кнопка на месте только что нажатой
   заставляет гадать, сработало ли. */
.doska-search-result-save:disabled { opacity: 0.55; cursor: default; }

/* Раздел «Календарь», плиткой как в Google — per direct request «календарь нужно, чтобы был
   плиточный, как в гугле». Сетка семь на N: недели целыми строками, поэтому переключение месяца не
   меняет высоту блока и содержимое под ним не прыгает. */
.doska-calendar-view { display: flex; flex-direction: column; gap: var(--s-2); }
/* ДЕНЬ РЯДОМ С МЕСЯЦЕМ (28.09.2026): при открытом дне вид становится сеткой в две колонки —
   месяц слева, выбранный день справа. Панель управления тянется на обе. До этого панель дня
   вставала ПОД сеткой, и на ноутбуке выбранный день оказывался за краем экрана: человек кликал
   в день и переставал видеть месяц. */
.doska-calendar-view[data-day-open] {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start;
}
.doska-calendar-view[data-day-open] > .doska-calendar-toolbar { grid-column: 1 / -1; }
.doska-calendar-view[data-day-open] > .doska-calendar-daypanel { position: sticky; top: 0; }
@media (max-width: 1100px) {
  .doska-calendar-view[data-day-open] { grid-template-columns: minmax(0, 1fr); }
  .doska-calendar-view[data-day-open] > .doska-calendar-daypanel { position: static; }
}
/* Шапка переносится САМА, когда блокам не хватает места, а не по порогу ширины окна: ширину
   календаря задаёт не окно, а то, что осталось от боковой панели. На 700px окна блоки сжимались
   (заголовок «Сентябрь / 2026» в две строки, «Новое событие» тоже), порог 640 не срабатывал. */
.doska-calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-1) var(--s-2); }
.doska-calendar-toolbar > * { flex-shrink: 0; }
.doska-calendar-toolbar > .doska-allnotes-category-name { white-space: nowrap; }
.doska-calendar-weekday {
  background: var(--doska-surface); padding: 6px 8px;
  font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none;
  color: var(--doska-text-muted); text-align: left;
}
.doska-calendar-cell {
  display: flex; flex-direction: column; gap: 2px; align-items: stretch;
  /* Минимальная высота, а не фиксированная: день с тремя событиями должен вместить их, а пустая
     неделя не должна занимать пол-экрана. */
  /* Ячейка растёт под свои события — по прямому запросу «хочу здесь сразу в ячейке видеть все
     события по времени». Высота строки сетки задаётся самой высокой ячейкой недели, поэтому
     ограничителем служит не обрезка списка, а прокрутка внутри ячейки у совсем длинного дня. */
  min-height: 96px; padding: 6px; border: none; text-align: left; cursor: pointer;
  background: var(--doska-surface); color: var(--doska-text); font-family: var(--doska-font-display);
}
.doska-calendar-cell:hover { background: var(--doska-secondary); }
/* Ячейка — <button>, и `.doska-root button { background: none }` (0,1,1) гасил её фон: сетка
   теряла линии, вся она заливалась волосяным цветом зазоров (замер 09.10.2026: фон ячейки
   rgba(0,0,0,0)). Двойной класс возвращает панель по артборду; наведение — на шаг выше. */
.doska-calendar-cell.doska-calendar-cell { background: var(--doska-surface); }
.doska-calendar-cell.doska-calendar-cell:hover { background: var(--doska-secondary); }
/* Дни соседних месяцев приглушены, но НЕ спрятаны: убрать их значит сломать целые недели, а
   спутать с текущим месяцем мешает как раз приглушение. */
/* Приглушается СОДЕРЖИМОЕ, а не ячейка: полупрозрачная ячейка пропускала светлый фон сетки
   и выглядела светлее соседних, то есть выделенной, а не приглушённой. */
.doska-calendar-cell[data-out] > * { opacity: 0.45; }
.doska-calendar-cell[data-open] { outline: 1px solid var(--doska-accent); outline-offset: -1px; }
.doska-calendar-cell-day { font-size: 12px; font-weight: 600; color: var(--doska-text-muted); }
/* Число дня — отдельная цель: открывает список дня, а сама ячейка — форму нового события. Кружок
   по наведению подсказывает, что это не просто подпись. */
/* `align-self: flex-start` обязателен: ячейка это flex-колонка, и inline-flex внутри неё
   растягивается на всю ширину. Замер на снимке после переноса панели дня: у выбранного дня число
   рисовалось плашкой во всю ячейку вместо кружка. */
.doska-calendar-cell-day {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-start;
  min-width: 22px; height: 22px; padding: 0 4px; margin: -3px 0 0 -4px; border-radius: var(--doska-radius-md); cursor: pointer;
}
.doska-calendar-cell-day:hover { background: var(--doska-hover); color: var(--doska-text); }
.doska-calendar-cell[data-open] .doska-calendar-cell-day { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-calendar-cell[data-today] .doska-calendar-cell-day {
  /* Сегодняшнее число кружком, как в гугле: цветом одного числа среди сорока глаз не цепляется. */
  /* `min-width: 22px` и поля базового правила делали кружок овалом 22×20 (замер 09.10.2026):
     min-width сильнее width. Сбрасываем оба, размер как у числа в виде «Неделя». */
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; min-width: 0; height: 22px; padding: 0; border-radius: 50%;
  background: var(--doska-accent); color: var(--doska-accent-contrast, #fff);
}
/* Список событий внутри ячейки: своя прокрутка, чтобы день с десятком встреч не растягивал всю
   неделю. До восьми событий (≈152px) помещаются без прокрутки. */
.doska-calendar-cell-events {
  display: flex; flex-direction: column; gap: 2px; align-items: stretch;
  max-height: 152px; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin;
}
.doska-calendar-daypanel[data-scope="day"] { margin-top: 0; }

/* Список дня под сеткой, а не всплывающим окном: видно, откуда он взялся, и можно перещёлкивать
   дни, ничего не закрывая. */
.doska-calendar-daypanel {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--s-2); border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-md);
  background: var(--doska-surface);
}

@media (max-width: 720px) {
  /* На телефоне месяц целиком в семь колонок нечитаем: плитки становятся ниже, названия событий
     прячутся, остаются точки-индикаторы, а подробности открываются списком дня под сеткой.
     Раньше здесь прятался только ТЕКСТ (.doska-calendar-chip-title), а время оставалось голым —
     обещанные "точки-индикаторы" так и не появились: висело "11:00" без названия и без вида
     точки. Правило теперь ТОЛЬКО на месяц (.doska-calendar-grid), не на неделю — у той свой
     фикс ниже. */
  .doska-calendar-cell { min-height: 56px; padding: 4px; }
  .doska-calendar-cell-events {
    max-height: 40px; flex-direction: row; flex-wrap: wrap; gap: 3px; align-items: center;
  }
}

@media (max-width: 640px) {
  /* Шапка календаря: заголовок периода + переключатель вида + навигация не помещались в одну
     строку (замер 390px: 632px контента при 358px доступных) — часть кнопок уезжала за край
     экрана без возможности до них дотянуться. Каждый блок теперь на своей строке. */
  .doska-calendar-toolbar { flex-wrap: wrap; row-gap: 8px; }
  .doska-calendar-toolbar > .doska-allnotes-category-name { flex: 1 1 100%; }
}

/* Результат сведения и сравнения — per direct request «свести разнородное по теме» и «сравнить
   однотипное → таблица». Панель встаёт НАД списком, а не открывается отдельным экраном: результат
   читают вместе с карточками, из которых он собран. */
.doska-ai-result {
  display: flex; flex-direction: column; gap: var(--s-2);
  padding: var(--s-2); margin-bottom: var(--s-2);
  border: 1px solid var(--doska-accent); border-radius: var(--doska-radius-md); background: var(--doska-surface);
}
.doska-ai-result-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.doska-ai-result-title { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.doska-ai-result-actions { display: flex; align-items: center; gap: 6px; }
.doska-ai-result-close { border: none; background: none; color: var(--doska-text-muted); cursor: pointer; padding: 4px; }
/* Текст сведения читается абзацами, поэтому pre-wrap: модель разделяет разделы переводами строк, и
   без этого весь ответ слипается в одну простыню. */
.doska-ai-result-text { white-space: pre-wrap; font-size: 13px; line-height: 1.6; color: var(--doska-text); }
/* Таблица прокручивается ВНУТРИ рамки: при семи колонках она шире экрана, и иначе горизонтально
   ездила бы вся страница. */
.doska-ai-result-tablewrap { overflow-x: auto; }
.doska-ai-result-table { border-collapse: collapse; width: 100%; font-size: 12px; }
.doska-ai-result-table th,
.doska-ai-result-table td {
  border: 1px solid var(--doska-hairline); padding: 6px 8px; text-align: left; vertical-align: top;
  white-space: nowrap;
}
.doska-ai-result-table th { color: var(--doska-text-muted); font-weight: 600; text-transform: none; font-size: 10px; letter-spacing: 0; }
.doska-ai-result-rowlabel { font-weight: 600; white-space: normal; max-width: 260px; }
.doska-ai-result-empty { color: var(--doska-text-muted); }
.doska-ai-result-verdict { font-size: 13px; line-height: 1.5; color: var(--doska-text); }
.doska-ai-result-gaps { font-size: 12px; color: var(--doska-text-muted); }
.doska-ai-result-gaps span { font-weight: 600; }
.doska-ai-result-gaps ul { margin: 4px 0 0; padding-left: 18px; }

/* Плитки содержимого папки Диска — по прямому запросу «в Google Диск табе содержимое сделать в
   плиточном виде», «соответственно плитка и список».

   Сетка ПРОСТАЯ, а не кладка как у карточек заметок, и это не лень. У плиток одинаковая высота,
   потому что показывать нечего кроме вида, имени и размера: превью Диска временные и требуют
   авторизации, в <img> они не откроются. Значит дыр под короткими плитками не бывает, и городить
   кладку незачем — а `auto-fill` заодно сам держит размер при любой ширине. */
.doska-drive-tiles {
  display: grid; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
.doska-drive-tile.doska-drive-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 14px 12px; border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-hairline); background: var(--doska-surface);
  color: var(--doska-text); text-align: left; text-decoration: none;
  min-width: 0;
}
.doska-drive-tile.doska-drive-tile:hover { border-color: var(--doska-hairline-strong); background: var(--doska-secondary); }
.doska-drive-tile-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: var(--doska-radius-md);
  background: var(--doska-hover); color: var(--doska-text-muted);
}
/* Цвет вида — ТОТ ЖЕ словарь, что у карточек документов: красный PDF, синий текст, зелёная
   таблица, оранжевая презентация. Одно и то же обязано означать одно и то же на обоих экранах,
   иначе человек заучивает два словаря вместо одного. */
.doska-drive-tile[data-kind='pdf'] .doska-drive-tile-icon { background: rgba(197, 48, 48, 0.14); color: #c53030; }
.doska-drive-tile[data-kind='doc'] .doska-drive-tile-icon { background: rgba(29, 78, 216, 0.14); color: #4a7ce8; }
.doska-drive-tile[data-kind='sheet'] .doska-drive-tile-icon { background: hsl(var(--success) / 0.12); color: hsl(var(--success)); }
.doska-drive-tile[data-kind='slides'] .doska-drive-tile-icon { background: rgba(194, 65, 12, 0.14); color: #d4713a; }
.doska-drive-tile-name {
  font-size: 13px; line-height: 1.35; width: 100%;
  /* Имя файла на Диске бывает длинным и без пробелов. Три строки с обрезкой: одна строка
     превращает `order_blank_353237367_516746166` в «order_bl…», по которому файл не узнать. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.doska-drive-tile-meta { font-size: 11px; color: var(--doska-text-muted); font-variant-numeric: tabular-nums; }

/* Переключатель вида. Двойной класс — готча №1: `.doska-root button { background: none }` бьёт
   одиночный класс по специфичности, и выбранный вид остался бы без подложки. */
.doska-connected-view { display: inline-flex; gap: 2px; }
/* Размер взят у ОБЩЕГО переключателя вида продукта (.doska-stash-view-toggle-btn — 30×30, иконка
   15), а не назначен на глаз. Живой отчёт: «слишком мелкие иконки». Здесь стояли иконки 12 при
   паддинге 3px, то есть кнопка выходила 18px в высоту против 30px у точно такого же переключателя
   «плитки/список» во «Все заметки» и внутри спейса — почти вдвое меньше при одинаковом назначении.
   Это ещё и меньше 24px, ниже которых в палец попадать перестаёт. */
.doska-connected-view button.doska-connected-view button {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border-radius: var(--doska-radius-sm);
  background: none; color: var(--doska-text-muted);
}
.doska-connected-view button.doska-connected-view button:hover { color: var(--doska-text); background: var(--doska-hover); }
.doska-connected-view button[data-active].doska-connected-view button[data-active] {
  color: var(--doska-text); background: var(--doska-surface);
}

/* Просмотр результата сценария как веб-приложения — по прямому запросу «результат отображается в
   виде веб-приложения, и user сразу же здесь его открывает и смотрит».
   Экран намеренно голый: ни панели, ни дерева. Его открывает собеседник, у которого аккаунта нет,
   и всё лишнее здесь читается как «зайдите, чтобы посмотреть». */
.doska-run-page {
  max-width: 900px; margin: 0 auto; padding: 20px 16px 40px;
  display: flex; flex-direction: column; gap: 14px;
  color: var(--doska-text);
}
.doska-run-title { font-size: 18px; font-weight: 600; margin: 0; }
.doska-run-text { font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
/* Таблица прокручивается ВНУТРИ себя: прайс из восьми колонок иначе растягивает страницу, и на
   телефоне вместо таблицы получается горизонтальная прокрутка всего экрана. */
.doska-run-table-wrap { overflow-x: auto; border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-md); }
.doska-run-table { border-collapse: collapse; width: 100%; font-size: 13px; }
.doska-run-table th, .doska-run-table td {
  padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--doska-hairline);
  white-space: nowrap;
}
.doska-run-table th { background: var(--doska-surface); font-weight: 600; }
/* Цифры в колонку: в прайсе их сравнивают глазом, и пляшущие разряды это мешают делать. */
.doska-run-table td { font-variant-numeric: tabular-nums; }
.doska-run-table tr:last-child td { border-bottom: none; }

/* ---------- Команды бота ----------
   Раздел бокового меню, в одном ряду с «Задачами» и «Календарём».
   Модификатор .doska-settings-cards--wide УДАЛЁН: он задавал `grid-template-columns` на
   флекс-контейнере, то есть не делал ничего, и главное — не снимал `max-width: 420px` с самой
   .doska-settings-cards. Раздел из-за этого был зажат в 420px против полной ширины у соседей.
   Обёртка убрана в разметке, правило больше не нужно.
   Шаг между блоками взят у эталонного раздела (.doska-kanban — var(--s-2)), а не свой на 12px:
   разный ритм у соседних разделов и читается как «неконсистентно». */
.doska-commands { display: flex; flex-direction: column; gap: var(--s-2); }
.doska-commands-add.doska-commands-add {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: var(--doska-radius-md); /* капсула → шкала: в «Графите» капсулу носят фильтры, действие имеет радиус 12 */
  border: 1px solid var(--doska-hairline-strong); background: none;
  color: var(--doska-text); font-size: 13px; font-weight: 600;
}
.doska-commands-add.doska-commands-add:hover { background: var(--doska-hover); }
.doska-command-field { display: flex; flex-direction: column; gap: 5px; }
/* Подсказка под полем, а не в подсказке-плейсхолдере: плейсхолдер исчезает ровно тогда, когда
   человек начинает писать, то есть когда объяснение и нужно. */
.doska-command-hint { font-size: 11px; line-height: 1.4; color: var(--doska-text-muted); }
.doska-command-error { font-size: 11px; color: #e05252; }
.doska-command-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.doska-command-source { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; cursor: pointer; }
.doska-command-source span { display: flex; flex-direction: column; gap: 1px; }
.doska-command-source-label { color: var(--doska-text); }
.doska-command-toggle { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
/* ОТДЕЛЬНАЯ СТРАНИЦА, А НЕ КОЛОНКА (30.09.2026) — по прямому запросу «нажал на строку и попал на
   отдельную страницу со всеми деталями»: отменяет и вчерашний оверлей, и сегодняшний докированный
   столбец рядом с таблицей (по аналогии с чатом ассистента) — обе версии делили экран пополам с
   таблицей, а нужно было ПОЛНОЕ переключение, как при открытии папки: список исчезает целиком,
   деталь занимает всё место. Ровно то поведение, что раньше было ТОЛЬКО на телефоне (см. старое
   мобильное правило ниже, `.doska-pane-back`) — здесь оно снято с телефона и стало общим для любой
   ширины экрана; сам JSX (data-detail, кнопка «Все задания») не менялся, менялось только то, при
   каких условиях что видно. */
.doska-missions-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-3); align-items: start; }
.doska-missions-layout[data-detail] > .doska-missions-list { display: none; }
.doska-missions-list { display: flex; flex-direction: column; }
.doska-missions-detail { display: none; }
/* Во всю ширину и БЕЗ общей рамки — по прямому запросу: страница-переключение сама по себе уже
   читается как «другой экран», обводка вокруг нею дублировала эту границу лишней рамкой-в-рамке. */
.doska-missions-layout[data-detail] > .doska-missions-detail {
  display: block; padding: 4px 0 20px;
}
/* «Все задания» — теперь единственный путь назад в любой ширине экрана, не только на телефоне
   (.doska-pane-back там по умолчанию display:none, см. её собственный комментарий). Крестик рядом
   с ней убран по прямому запросу «крестик закрытия не нужен». */
.doska-missions-detail .doska-pane-back { display: inline-flex; }
/* Та же заглушка у заданий: без пунктирной обводки, по тому же запросу. */
.doska-commands-placeholder { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 40px 16px; color: var(--doska-text-muted); font-size: 13px; }
.doska-command-when-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-1); }
.doska-command-when-row .doska-modal-input[type="time"] { width: auto; min-width: 112px; }
.doska-command-days { display: flex; flex-wrap: wrap; gap: 4px; }
.doska-command-day { min-height: 32px; min-width: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--doska-hairline); background: transparent; color: var(--doska-text-muted); font: inherit; font-size: 13px; cursor: pointer; }
.doska-command-day[aria-pressed="true"] { background: var(--doska-accent); border-color: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-command-day:focus-visible { outline: 2px solid var(--doska-accent); outline-offset: 2px; }
.doska-command-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* ---------- Подключённые папки Google Диска ----------
   По прямому запросу «я хочу видеть свои подключённые папки», уточнённому до «с диска», «её нужно
   просто тянуть», «не надо импорт».

   Оформление намеренно НЕ похоже на сетку карточек: это окно в чужое хранилище, а не наши заметки,
   и выглядеть одинаково они не должны. Плитки обещали бы превью и теги, которых здесь нет и не
   будет. Поэтому список строк — ровно то, как папку показывает сам Диск. */
/* ВО ВСЮ КОНТЕНТНУЮ ШИРИНУ, как вкладка «Файлы» — по прямому запросу «в секции Документы используем
   всю ширину по контентной зоне, как в табе файлы». Прежние 900px оставались с той поры, когда
   раздел был узким списком строк; с плитками и таблицей содержимого он обрезался посреди зоны, и
   рядом стоящие разделы получались разной ширины на одном экране. Ограничение ширины задаёт общая
   контентная зона (.doska-stash-page-content), а не каждый раздел по-своему. */
.doska-connected { display: flex; flex-direction: column; gap: 16px; }
/* Подключённая папка рисуется ТОЙ ЖЕ плиткой, что остальные папки (`.doska-space-tile`) — по
   прямому отчёту со снимком: «нужно чтобы была как папка вида», «не такая широкая», «по стилю как
   другие папки». Прежняя строка во всю ширину читалась как поле ввода, а не как место, в которое
   проваливаются. Своих правил размера здесь поэтому нет: любое из них снова развело бы два вида
   папок. Ниже — только то, чего у обычной плитки нет: источник в подписи и кнопка отключения. */
.doska-space-tile-count svg { vertical-align: -1px; margin-right: 3px; }
.doska-connected-unlink.doska-connected-unlink {
  flex: none; padding: 4px; border-radius: var(--doska-radius-sm);
  background: none; color: var(--doska-text-muted);
}
.doska-connected-unlink.doska-connected-unlink:hover { color: var(--doska-text); background: var(--doska-secondary); }
/* Группа управления прижата к правому краю строки пути — по прямому запросу «перенести в правый
   край». `margin-left: auto` на самой ГРУППЕ, а не на первой кнопке внутри: иначе раскладка зависит
   от порядка в разметке и рвётся от любой вставки. `flex: none` не даёт крошкам её сжать, когда путь
   длинный. */
.doska-connected-tools { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; flex: none; }
/* Строка пути ЗДЕСЬ не переносится целиком: переносится только сам путь, внутри своего блока.
   Правило ограничено этим экраном намеренно — те же крошки стоят в окне выбора с Диска, где группы
   управления нет и общий перенос уместен. Снять `flex-wrap` у общего класса значило бы починить
   один экран и сломать другой. */
.doska-connected-body .doska-drive-crumbs { flex-wrap: nowrap; }
/* Выбор учётки Google в обзоре Диска: строка над крошками, только при нескольких учётках. */
.doska-drive-account-row { display: flex; align-items: center; gap: 10px; padding: 0 var(--s-2) var(--s-1); }
.doska-drive-account-row .doska-modal-select { width: auto; min-width: 220px; }
.doska-connected-path { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
/* Тот же размер, что у соседнего переключателя: два элемента одной группы, отличающиеся размером,
   читаются как разные по важности. */
.doska-connected-refresh.doska-connected-refresh {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0; border-radius: var(--doska-radius-sm);
  background: none; color: var(--doska-text-muted);
}
.doska-connected-refresh.doska-connected-refresh:hover { color: var(--doska-text); background: var(--doska-hover); }
.doska-connected-body { display: flex; flex-direction: column; gap: 10px; }
/* Приписка о природе раздела. Не украшение: без неё человек ждёт, что эти файлы найдутся поиском по
   заметкам и откроются без сети, — а они не найдутся и не откроются. */
.doska-connected-note {
  margin: 0; font-size: 12px; color: var(--doska-text-muted); line-height: 1.5;
}
.doska-connected-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 48px 24px; text-align: center; color: var(--doska-text-muted);
}
.doska-connected-empty-title { font-size: 14px; font-weight: 600; color: var(--doska-text); }
.doska-connected-empty-sub { font-size: 13px; max-width: 460px; line-height: 1.55; }
/* Кнопка «Подключить» в окне выбора: главное из двух действий с папкой, поэтому заливкой. */
.doska-drive-connect.doska-drive-connect {
  flex: none; padding: 3px 10px; border-radius: 999px;
  /* accent-contrast, а не accent-ink — см. разбор у .doska-drive-import: accent-ink равен самой
     заливке, и текст был невидим в обеих темах. */
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  font-size: 11px; font-weight: 600; border: none;
}
.doska-drive-connect.doska-drive-connect:disabled { opacity: 0.4; }

/* ---------- Выбор документов на Google Диске ----------
   По прямому запросу «тянуть из гугл диска; также могу тянуть конкретную папку или файл».

   Окно повторяет то, как человек помнит свой Диск: список строк, по которым ходят. Никакой сетки
   плиток — у файлов на Диске нет превью, по которым их узнают, и плитки дали бы ряды одинаковых
   иконок вместо читаемых имён. */
.doska-drive-picker {
  background: rgba(var(--doska-glass-rgb), 0.92); backdrop-filter: blur(24px);
  border-radius: var(--doska-radius-lg, var(--doska-radius-md));
  box-shadow: 0 0 0 1px var(--doska-hairline-strong);
  padding: 16px 18px 14px;
  width: 640px; max-width: calc(100vw - 32px);
  /* Высота фиксирована долей экрана, а не содержимым: иначе окно прыгает при каждом переходе между
     папкой из трёх строк и папкой из двухсот. */
  height: min(70vh, 640px);
  display: flex; flex-direction: column; gap: 10px;
  color: var(--doska-text);
}
.doska-drive-picker-title { display: flex; align-items: center; gap: 8px; color: var(--doska-text); }

.doska-drive-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 12px; }
.doska-drive-crumb-item { display: inline-flex; align-items: center; gap: 2px; }
.doska-drive-crumb-sep { color: var(--doska-text-muted); flex: none; }
.doska-drive-crumb {
  padding: 2px 6px; border-radius: var(--doska-radius-sm);
  color: var(--doska-text-muted); background: none; font-size: 12px;
}
.doska-drive-crumb:hover:not(:disabled) { color: var(--doska-text); background: var(--doska-hover); }
/* Текущая папка не кнопка: нажимать на «где я нахожусь» бессмысленно, и активный вид это подсказывает. */
.doska-drive-crumb:disabled { color: var(--doska-text); font-weight: 600; cursor: default; }

/* КРОШКИ НА СТРАНИЦЕ крупнее, чем в диалоге — по прямому запросу «хлебные крошки можно сделать
   немного крупнее». Базовые 12px заданы для крошек ВНУТРИ окна выбора с Диска и внутри строки
   подключённой папки: там это мелкая служебная подпись в тесном блоке. На странице «Файлы» те же
   крошки работают иначе — это постоянный указатель «где я нахожусь», его читают на каждом переходе,
   и 12px для него мелко.
   14px, а не 13px продуктовых крошек (.doska-breadcrumb-item): те стоят под заголовком как
   подпись, а эта строка сама является навигацией уровня страницы. Класс-маркер .doska-files-crumbs
   уже стоял в разметке — правило просто наконец за него зацепилось.
   Двойной класс — готча №1: одиночный проиграл бы .doska-drive-crumb в порядке каскада. */
.doska-files-crumbs.doska-files-crumbs { font-size: 14px; gap: 3px; }
.doska-files-crumbs.doska-files-crumbs .doska-drive-crumb { font-size: 14px; padding: 3px 7px; }

.doska-drive-list {
  flex: 1; min-height: 0; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1px;
  border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-hairline);
  padding: 4px;
}
.doska-drive-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 8px; border-radius: var(--doska-radius-sm);
  font-size: 13px; cursor: pointer;
}
.doska-drive-row:hover { background: var(--doska-hover); }
/* Не-документ виден, но недоступен. Прятать нельзя: человек ищет глазами по знакомой картине папки,
   и пропавший файл читается как «Doska его не видит», а не «его нельзя импортировать». */
.doska-drive-row[data-disabled] { opacity: 0.45; cursor: default; }
.doska-drive-row[data-disabled]:hover { background: none; }
.doska-drive-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-drive-meta { flex: none; font-size: 11px; color: var(--doska-text-muted); font-variant-numeric: tabular-nums; }
.doska-drive-check { flex: none; }
/* Двойной класс — готча №1: `.doska-root button { background: none }` бьёт одиночный класс по
   специфичности, и без удвоения кнопка осталась бы без фона. */
.doska-drive-open.doska-drive-open {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
  background: none; color: var(--doska-text); font-size: 13px; text-align: left; padding: 0;
}
.doska-drive-take.doska-drive-take {
  flex: none; padding: 3px 9px; border-radius: 999px;
  border: 1px solid var(--doska-hairline-strong); background: none;
  color: var(--doska-text-muted); font-size: 11px;
}
.doska-drive-take.doska-drive-take:hover:not(:disabled) { color: var(--doska-text); background: var(--doska-secondary); }

.doska-drive-empty { padding: 24px; text-align: center; color: var(--doska-text-muted); font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.doska-drive-error {
  padding: 8px 10px; border-radius: var(--doska-radius-sm);
  background: rgba(197, 48, 48, 0.12); color: var(--doska-text); font-size: 12px;
}
.doska-drive-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.doska-drive-status { font-size: 12px; color: var(--doska-text-muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-drive-import.doska-drive-import {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 15px; border-radius: var(--doska-radius-md); /* то же правило: действие, а не фильтр */
  /* --doska-accent-contrast, НЕ accent-ink: это два разных токена, и я взял не тот. `accent-ink`
     это цвет ТЕКСТА НА ОБЫЧНОМ фоне, и объявлен он как `var(--doska-accent)` — то есть тот же
     цвет, что и заливка. Контраст выходил ровно 1.00:1 в обеих темах: белое по белому в тёмной,
     чёрное по чёрному в светлой. Для текста на СПЛОШНОЙ заливке акцентом существует
     `--doska-accent-contrast` (17.25:1 и 18.85:1), и об этом прямо написано в комментарии к
     токенам наверху файла. Запасное значение `#fff` убрано намеренно: токен объявлен в обеих
     темах, а запас лишь прятал бы такую же ошибку в следующий раз. */
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  font-size: 13px; font-weight: 600;
}
.doska-drive-import.doska-drive-import:disabled { opacity: 0.4; }
.doska-spin { animation: doska-drive-spin 1s linear infinite; }
@keyframes doska-drive-spin { to { transform: rotate(360deg); } }

/* На телефоне окно занимает почти весь экран: список папок нельзя листать в окне шириной с ладонь. */
@media (max-width: 640px) {
  .doska-drive-picker { width: calc(100vw - 16px); height: calc(100vh - 80px); padding: 14px 12px 12px; }
}

/* Экран создания заметки — по присланной спецификации: одно поле, заголовок необязателен,
   автосохранение без кнопки, сбоку тема, дата и «прикрепить», плюс похожее из архива. */
.doska-composer {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: var(--s-4);
  align-items: start;
}
.doska-composer-main { display: flex; flex-direction: column; gap: var(--s-1); min-width: 0; }
.doska-composer-title {
  border: none; background: none; color: var(--doska-text);
  font-family: var(--doska-font-display); font-size: 24px; font-weight: 600; padding: 0;
}
.doska-composer-title::-moz-placeholder { color: var(--doska-text-muted); font-weight: 600; }
.doska-composer-title::placeholder { color: var(--doska-text-muted); font-weight: 600; }
.doska-composer-title:focus { outline: none; }
.doska-composer-text {
  border: none; background: none; color: var(--doska-text); resize: none; padding: 0;
  /* 78 это три строки при 15px и 1.7, а не «побольше про запас». Прежние 220 держали пустоту в
     полтора экрана под заметкой в две строки — «пустое пространство внизу читается как „здесь
     чего-то не хватает“». Дальше поле растёт по содержимому (см. эффект на scrollHeight). */
  font-family: var(--doska-font-ui); font-size: 15px; line-height: 1.7; min-height: 78px;
  /* Строка не длиннее 70 символов: длинные строки читаются хуже, а заметка это в первую очередь
     текст, который потом перечитывают. */
  max-width: 70ch;
}
.doska-composer-text:focus { outline: none; }

.doska-composer-side { display: flex; flex-direction: column; gap: var(--s-2); font-size: 12px; }
.doska-composer-meta { display: flex; align-items: center; justify-content: space-between; color: var(--doska-text-muted); }
.doska-composer-savestate { display: inline-flex; align-items: center; gap: 4px; }
.doska-composer-topic { color: var(--doska-text-muted); }
.doska-composer-topic b { color: var(--doska-text); font-weight: 600; }
.doska-composer-attach {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  padding: 6px 10px; border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-hairline); background: var(--doska-surface);
  color: var(--doska-text); cursor: pointer; font-family: var(--doska-font-display); font-size: 12px;
}
.doska-composer-attach:hover { border-color: var(--doska-accent); }
.doska-composer-similar { display: flex; flex-direction: column; gap: 4px; }
.doska-composer-similar-head { color: var(--doska-text-muted); font-weight: 600; text-transform: none; font-size: 10px; letter-spacing: 0; }
.doska-composer-similar-row {
  display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 8px; border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-hairline); background: var(--doska-surface);
  color: var(--doska-text); cursor: pointer;
}
.doska-composer-similar-row:hover { border-color: var(--doska-accent); }
.doska-composer-similar-title { font-size: 12px; font-weight: 600; }
.doska-composer-similar-sub { font-size: 11px; color: var(--doska-text-muted); }

/* Предложение «сделать задачей» — per direct request «предложил одной кнопкой… Одно нажатие,
   никакой формы». Строка, а не карточка и не всплывашка: это подсказка сбоку от главного дела
   (человек пишет заметку), и она не должна забирать на себя внимание с текста. */
.doska-action-offer {
  display: flex; align-items: center; gap: 8px; align-self: flex-start;
  margin-top: var(--s-1); padding: 7px 8px 7px 10px; border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-hairline); background: var(--doska-surface);
  font-family: var(--doska-font-display); font-size: 12px; color: var(--doska-text);
}
.doska-action-offer[data-done] { color: var(--doska-text-muted); border-color: transparent; background: none; }
.doska-action-offer-icon { color: var(--doska-text-muted); flex: none; }
.doska-action-offer-text { display: inline-flex; align-items: center; gap: 6px; }
/* Срок словами человека («до четверга»), а не пересобранной датой: смысл тот же, но написано уже
   не им, и подсказка перестаёт читаться как продолжение собственной мысли. */
.doska-action-offer-due { color: var(--doska-text-muted); }
.doska-action-offer-accept {
  padding: 5px 10px; border-radius: var(--doska-radius-md); border: 1px solid transparent;
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
}
.doska-action-offer-accept:disabled { opacity: 0.6; cursor: default; }
.doska-action-offer-dismiss {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 22px; height: 22px; padding: 0; border: none; border-radius: var(--doska-radius-sm);
  background: none; color: var(--doska-text-muted); cursor: pointer;
}
.doska-action-offer-dismiss:hover { background: var(--doska-hover); color: var(--doska-text); }
@media (max-width: 900px) {
  /* На телефоне боковая колонка уходит под текст: 260 пикселей рядом с полем не оставляют места
     самому письму, ради которого экран и открыт. */
  .doska-composer { grid-template-columns: minmax(0, 1fr); }
}
/* Корзина внизу: отступ сверху отделяет её от тегов, иначе она читается как последний тег. */
.doska-allnotes-trash-row { margin-top: var(--s-2); }

/* Ряд кнопок «прикрепить» и «голосом» — per direct request «экран создания заметки, не забывает
   про голосовой ввод». Записывающая кнопка подсвечена: без явного признака человек не понимает,
   идёт запись или уже нет, и надиктовывает в пустоту. */
.doska-composer-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.doska-composer-attach[data-active] {
  border-color: var(--doska-accent); background: var(--doska-accent-soft); color: var(--doska-text);
}

/* Строка спейса — per direct report со скриншотом «тут показывать линию вложенности и поправить
   вёрстку». Три вещи по замеру: «•••» стоял вплотную к правому краю панели, название спейса было
   приглушено ровно как тег (хотя спейс это МЕСТО, а тег лишь пометка), и линия дерева начиналась
   ниже строки, не соединяясь с ней. */
/* padding-right 6, как у строки дерева ниже: правые края «•••» у спейса и у его папок должны
   стоять на одной вертикали, иначе список рвётся по правому краю (замер: 275 против 273). */
/* Слева тот же зазор, что справа — живой отчёт «поправить расположение линии и шеврона, поправить
   выравнивание» со снимком, где стрелка стоит в самом углу белой плашки. Замер до правки: подложка
   строки начиналась на x=17 и стрелка тоже на x=17, то есть воздуха между краем скругления и
   стрелкой не было вовсе, и она читалась как вывалившаяся из плашки. */
.doska-allnotes-space-row { position: relative; padding-right: 6px; padding-left: 4px; }
/* Название спейса читается как раздел, а не как тег: тот же цвет, что у «Все» и «Календарь».
   Селектор с ПАНЕЛЬЮ и удвоенным классом — иначе побеждает
   `.doska-allnotes-category-pane .doska-collection-folder-chip.doska-collection-folder-chip`
   (0,3,0), красящий все чипы панели приглушённым. Готча №1 этого проекта: при меньшей
   специфичности правка молча не применяется, и это видно только замером. */
.doska-allnotes-category-pane .doska-allnotes-space-row > .doska-collection-folder-chip.doska-collection-folder-chip {
  color: var(--doska-text);
}

/* Подложку рисует СТРОКА, а не чип. Замер показал один список на трёх вертикалях: подсветка «Все»,
   «Календаря», «Корзины» и папок начиналась на x=17, а у спейса на x=39 — чип начинается ПОСЛЕ
   стрелки, и его фон обрубал строку слева. Стрелка обязана остаться снаружи чипа: чип это кнопка,
   а кнопка внутри кнопки недопустима, поэтому фон переезжает на общий контейнер. */
.doska-allnotes-space-row { border-radius: var(--doska-radius-md); }
.doska-allnotes-space-row:hover { background: var(--doska-hover); }
.doska-allnotes-space-row:has(> .doska-collection-folder-chip[data-active]) {
  background: var(--doska-surface-raised);
  /* Рамка тенью, а не border: настоящая рамка добавила бы строке пиксель высоты и сдвинула бы
     колонку стрелок относительно дерева ниже. */
  box-shadow: inset 0 0 0 1px var(--doska-hairline);
}
/* Сам чип внутри строки прозрачен во всех состояниях — иначе поверх подложки строки ложится вторая,
   более узкая. Удвоенные классы и атрибут держат специфичность выше исходных правил чипа (0,4,0). */
.doska-allnotes-category-pane .doska-allnotes-space-row > .doska-collection-folder-chip.doska-collection-folder-chip,
.doska-allnotes-category-pane .doska-allnotes-space-row > .doska-collection-folder-chip.doska-collection-folder-chip:hover,
.doska-allnotes-category-pane .doska-allnotes-space-row > .doska-collection-folder-chip[data-active].doska-collection-folder-chip[data-active] {
  background: transparent; border-color: transparent; box-shadow: none;
  /* Название спейса встаёт в колонку названий «Все», «Календарь» и «Корзины» (x=58). Со штатной
     десяткой оно стояло на собственной вертикали между разделами и папками. Число зависит от
     ширины колонки стрелки (16) и зазора строки, поэтому проверяется замером, а не выводится. */
  /* 17 = прежняя 21 минус отступ строки (4). Названия спейсов обязаны остаться на той же
     вертикали, что «Все», «Календарь» и «Корзина» (замер: x=58): воздух добавлен строке, а не
     сдвигу всей колонки названий. */
  padding-left: 17px;
}
/* Хвост линии: идёт от середины строки вниз и стыкуется с линией дерева папок, поэтому видно, чьи
   это папки. Рисуется, только когда дерево раскрыто — у свёрнутого соединять нечего.
   Слева 8px — центр колонки стрелки (16/2), то есть ровно та вертикаль, где идёт линия дерева
   ниже. Вертикаль здесь задаёт линия дерева, а не край строки: первый заход поставил хвост на
   x=34 против линии на x=9, и огрызок висел в воздухе. */
.doska-allnotes-space-row[data-tree-open]::after {
  /* Низ уводится за границу строки на зазор списка (замер: строка кончается на 439, дерево
     начинается на 441), иначе между хвостом и линией дерева остаётся видимый разрыв в пиксель. */
  /* 12 = отступ строки (4) + половина колонки стрелки (8): хвост обязан идти по центру стрелки, а
     она сдвинулась вместе с отступом. Оставить прежнюю восьмёрку значило бы увести линию левее
     стрелки на те же 4 пикселя — ровно та рассинхронизация, на которую и пожаловались. */
  /* Начало — ПОД иконкой, а не от середины строки: живой отчёт «поправить расположение линии и её
     выравнивание, сейчас криво находит на иконку папки». Замер до правки: хвост стартовал на
     Y=35 (это и есть середина строки), а иконка кончалась на Y=45 — линия шла прямо по её нижней
     трети.
     12 = половина колонки иконок (20/2) плюс два пикселя воздуха. Через calc от середины, а не
     фиксированным числом сверху: высота строки задаётся содержимым и меняется вместе со шрифтом,
     а середина остаётся серединой. */
  content: ''; position: absolute; left: 14px; top: calc(50% + 12px); bottom: -2px; width: 1px;
  background: var(--doska-hairline-strong);
  /* Хвост декоративный и не должен ловить указатель — живой отчёт «перестало работать раскрытие
     папок». После того как линию свели с ЦЕНТРОМ иконки родителя (запись 209), этот
     однопиксельный псевдоэлемент лёг ровно поверх стрелки спейса и забирал клик себе: замер
     показал ноль срабатываний у стрелки при попадании точно в её центр, а событие уходило в
     строку. Псевдоэлемент принадлежит строке, поэтому и в elementFromPoint виден как строка —
     искать его глазами в разметке бесполезно, он там не существует. */
  pointer-events: none;
}

/* Вкладки внутри спейса — per direct request «внутри секции спейса будут табы: Вложения, задачи,
   календарь». Стоят над содержимым и прокручиваются вместе с ним: вкладки относятся к спейсу, а не
   к приложению, и липкая полоса поверх карточек читалась бы как ещё одно меню первого уровня. */
.doska-space-tabs {
  display: flex; align-items: center; gap: 4px;
  /* Горизонтальной линии под вкладками НЕТ — по прямому запросу «в табах дивайдер горизонтальный
     не нужен». Активную вкладку и так видно её собственной подложкой, а линия во всю ширину
     дополнительно резала экран пополам там, где ничего не заканчивается. */
  margin: 0 0 var(--s-2); padding-bottom: 2px;
}
.doska-space-tab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 12px; border: none; background: none; border-radius: 8px 8px 0 0;
  color: var(--doska-text-muted); cursor: pointer;
  font-family: var(--doska-font-display); font-size: 13px; font-weight: 500;
  /* Полоса активной вкладки рисуется тенью, а не border-bottom: настоящая рамка добавляла бы
     кнопке пиксель высоты и весь ряд подпрыгивал бы при переключении. */
  box-shadow: inset 0 -2px 0 transparent;
}
.doska-space-tab:hover { color: var(--doska-text); background: var(--doska-hover); }
.doska-space-tab[data-active] {
  color: var(--doska-text);
  box-shadow: inset 0 -2px 0 var(--doska-accent);
}

/* ТЕЛЕФОН: цели нажатия и отсутствие наведения (28.09.2026, живой замер на 390×844).
   Три разных дефекта, все из одного корня — экран рисовали под мышь:
   1. «Удалить» у строки задачи висит на `opacity: 0` и проявляется ТОЛЬКО по `:hover`. На тапе
      наведения нет вовсе, то есть на телефоне кнопки не существует. Здесь она видна всегда.
   2. Размеры целей: отметка выполнения 24×24, удаление 26×26, переключатель вида 36×32 — все
      меньше пальца. Отрицательные поля у отметки нужны, чтобы цель выросла, а строка визуально
      не разъехалась.
   3. Строка списка на телефоне становится блоком: и попасть легче, и это тот же язык строк, что
      на остальных экранах.
   Нижний отступ — под плавающую кнопку ассистента: без него последняя строка списка лежит под
   ней и не нажимается. */
@media (max-width: 720px) {
  .doska-stash-view-toggle-btn.doska-stash-view-toggle-btn { min-width: 40px; min-height: 40px; }
  .doska-missions-list, .doska-stash-grid { padding-bottom: 96px; }
}
@keyframes doska-skeleton { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }

/* Ряд вкладок внутри «Закладок» прокручивается вбок — per direct request «теги тоже сделай в этот
   таб». Тегов бывает сотня, и перенос их на несколько строк отдал бы полэкрана под фильтры.
   Полоса скрыта: ряд тянется пальцем и колесом, как ряд категорий в других разделах. */
.doska-space-tabs {
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
  flex-wrap: nowrap; scroll-snap-type: x proximity;
}
.doska-space-tabs::-webkit-scrollbar { display: none; }
.doska-space-tab { flex: none; scroll-snap-align: start; }

/* Теги СТОЛБЦОМ — per direct request «теги в табе теги сделать вертикально». Удвоенный класс
   (0,2,0) обязателен: `.doska-space-tabs` выше по файлу задаёт ряду `flex-wrap: nowrap` и боковую
   прокрутку, и при равной специфичности победило бы оно (готча №1 этого проекта).
   Высота ограничена: тегов бывает под сотню, и без потолка список отодвинул бы сетку карточек за
   нижний край экрана. Прокрутка здесь вертикальная, поэтому полосу не прячем: в отличие от ряда
   вкладок, тянуть этот список пальцем вбок никто не будет. */
.doska-space-tabs.doska-tag-strip {
  flex-direction: column; align-items: stretch; flex-wrap: nowrap;
  gap: 2px; max-height: 320px; overflow-x: hidden; overflow-y: auto;
  border-bottom: none; padding-bottom: 0; margin-bottom: var(--s-2);
  /* Колонка, а не полотно: без потолка ширины кнопка тега растягивалась на всю контентную зону
     (замер: 676 пикселей на одно слово), и счётчик уезжал к правому краю экрана. 260 — ширина
     боковой панели, то есть та же мера, которой в этом продукте меряются списки разделов. */
  max-width: 260px;
}
/* Кнопка тега в столбце это строка списка, а не вкладка: убираем «вкладочное» скругление сверху и
   подчёркивание активного, оставляя подсветку строки целиком. */
.doska-space-tabs.doska-tag-strip .doska-space-tab {
  justify-content: space-between; width: 100%; border-radius: var(--doska-radius-md); box-shadow: none;
}
.doska-space-tabs.doska-tag-strip .doska-space-tab[data-active] {
  background: var(--doska-surface-raised); box-shadow: inset 0 0 0 1px var(--doska-hairline);
}

/* Строка спейса открывает раздел целиком — курсор сообщает об этом заранее. */
.doska-allnotes-space-row { cursor: pointer; }

/* Колонка тегов слева, карточки справа — per direct request «тут заметка должна не снизу, а справа
   показываться», и следом живой отчёт «в табе теги не вижу справа результат тега».
   Первая попытка была обтеканием (float) и не работала ВОВСЕ: родитель
   `.doska-stash-page-content` объявлен `display: flex`, а во flex-контейнере float игнорируется
   целиком. Синтетический стенд этого не поймал, потому что обёртка там была обычным блоком —
   стенд не воспроизвёл главного условия задачи.
   Здесь сетка из двух колонок: слева теги во всю высоту, справа ВСЁ остальное, сколько бы блоков
   там ни оказалось (заглушка пустой категории, ряд закреплённых, сама сетка карточек). Правило
   `> *` в колонку 2 устойчиво к их числу — перечислять их поимённо значило бы ломаться при
   добавлении любого нового. */
.doska-tag-layout { display: contents; }
.doska-tag-layout[data-side] {
  display: grid; grid-template-columns: 260px minmax(0, 1fr);
  gap: var(--s-2); align-items: start;
}
.doska-tag-layout[data-side] > * { grid-column: 2; min-width: 0; }
.doska-tag-layout[data-side] > .doska-tag-strip { grid-column: 1; grid-row: 1 / -1;
  /* Колонка больше никого не отодвигает вниз, поэтому её потолок задаёт экран, а не «сколько не
     жалко занять сверху». Липкость — чтобы список тегов оставался на месте при прокрутке карточек. */
  max-height: calc(100vh - 220px); margin-bottom: 0; position: sticky; top: 0; }
/* На узком экране две колонки не помещаются: теги возвращаются наверх обычным блоком. */
@media (max-width: 900px) {
  .doska-tag-layout[data-side] { grid-template-columns: minmax(0, 1fr); }
  .doska-tag-layout[data-side] > .doska-tag-strip {
    grid-column: 1; grid-row: auto; max-height: 220px; position: static; max-width: none;
  }
  .doska-tag-layout[data-side] > * { grid-column: 1; }
}

/* Иконка папки и стрелка сворачивания занимают ОДНУ ячейку — per direct request «шеврон сделать,
   когда навёл на папку, чтобы свернуть». Наложение сеткой, а не переключением display: подмена не
   должна менять ширину строки, иначе название дёргается вбок при каждом наведении. */
.doska-allnotes-space-tree-slot {
  /* 20, а не 16 — per присланный референс: иконка папки там заметно крупнее, а стрелка при
     наведении лежит в квадратной подложке того же размера. Это же число задаёт вертикаль линии
     дерева ниже: линия идёт под ЦЕНТРОМ иконки родителя. */
  display: grid; place-items: center; flex: none; width: 20px; height: 20px;
}
.doska-allnotes-space-tree-slot > * { grid-area: 1 / 1; }
/* Стрелка скрыта в покое и проявляется по наведению на СТРОКУ (а не на саму ячейку): целиться в
   16 пикселей, чтобы увидеть, что папку можно свернуть, никто не станет. */
/* Скрытая стрелка НЕ ЛОВИТ КЛИКИ — живой отчёт «перестало работать раскрытие папок».
   Элемент с opacity: 0 остаётся полноценной целью для указателя, а стрелка лежит поверх иконки в
   той же ячейке. В покое клик по иконке папки попадал в невидимую стрелку: вместо «открыть папку»
   срабатывало «свернуть ветку», и это читалось как сломанное раскрытие. Тест компонента при этом
   был зелёным — он проверяет обработчики, а не то, кто именно принял клик на экране. */
.doska-allnotes-space-tree-slot[data-toggleable] > .doska-allnotes-space-tree-marker {
  opacity: 0; pointer-events: none;
}
.doska-allnotes-space-tree-row:hover .doska-allnotes-space-tree-slot[data-toggleable] > .doska-allnotes-space-tree-marker {
  pointer-events: auto;
}
.doska-allnotes-space-tree-row:hover .doska-allnotes-space-tree-slot[data-toggleable] > .doska-allnotes-space-tree-icon { opacity: 0; }
.doska-allnotes-space-tree-row:hover .doska-allnotes-space-tree-slot[data-toggleable] > .doska-allnotes-space-tree-marker { opacity: 1; }
/* Клавиатуре стрелка нужна видимой: скрытая по opacity, она остаётся в порядке обхода. */
.doska-allnotes-space-tree-slot > .doska-allnotes-space-tree-marker:focus-visible { opacity: 1; pointer-events: auto; }
/* Свёрнутая ветка показывает стрелку ВСЕГДА: иначе, свернув папку, человек теряет единственный
   признак того, что внутри что-то осталось. */
.doska-allnotes-space-tree-slot[data-toggleable] > .doska-allnotes-space-tree-marker:has(.doska-allnotes-space-tree-caret:not([data-open])) { opacity: 1; pointer-events: auto; }
.doska-allnotes-space-tree-slot[data-toggleable]:has(.doska-allnotes-space-tree-caret:not([data-open])) > .doska-allnotes-space-tree-icon { opacity: 0; }

/* В строке «Закладки» стрелка раскрытия подменяет ИКОНКУ, как у папок ниже — per direct request
   «в секции закладки шеврон раскрытия идёт первый при ховере на иконку». Кнопка стрелки не может
   лежать внутри чипа (чип сам кнопка, а кнопка в кнопке недопустима), поэтому она накрывает место
   иконки абсолютно — строка уже `position: relative`.
   Смещение 17 = левый край чипа относительно строки, оно же вертикаль колонки иконок разделов. */
.doska-allnotes-category-row { position: relative; }
/* Правило подмены относится ТОЛЬКО к строкам-разделам: у строки спейса стрелка стоит в своей
   колонке слева и остаётся в потоке, иначе названия спейсов разъехались бы по горизонтали. */
.doska-allnotes-space-row > .doska-allnotes-space-caret-btn {
  position: static; transform: none; opacity: 1;
}
.doska-allnotes-space-row > .doska-allnotes-space-caret-btn[data-open] { transform: none; }

/* Общая стрелка сворачивания (components/CollapseCaret.tsx) — per direct request «нужно такую
   стрелку» с присланной картинкой: приплюснутый залитый треугольник.
   Форма нарисована смотрящей ВПРАВО (закрыто), поворот на 90 градусов даёт «вниз» (раскрыто).
   Поворот объявлен ЗДЕСЬ и только здесь: раньше его делали кнопки-обёртки, и после переезда
   иконки внутрь них получалось бы двойное вращение. */
.doska-collapse-caret { flex: none; transition: transform 0.15s ease; }
.doska-collapse-caret[data-open] { transform: rotate(90deg); }
@media (prefers-reduced-motion: reduce) { .doska-collapse-caret { transition: none; } }

/* ПЛИТКИ СПЕЙСОВ во вкладке «Все» — per direct request «сделай отображение крупнее, в виде папок».
   До этого здесь был ряд мелких чипов: он читался как строка фильтров, а не как места, куда
   заходят, и длинные названия («Стрит-фотография Saul Leiter в Москве») ломали ряд переносом.
   Сетка авто-заполнением, а не фиксированным числом колонок: спейсов бывает и три, и двадцать, и
   на широком экране жёсткая сетка оставляла бы половину строки пустой. */
.doska-space-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 10px; margin-bottom: var(--s-1);
}
.doska-space-tile {
  display: flex; align-items: center; gap: 12px; min-width: 0; text-align: left;
  /* Высота одна на все плитки. Замер до этой строки: название в две строки («Стрит-фотография
     Saul Leiter в Москве») растягивало свою плитку до 80 против 66 у соседей, и вторая строка
     сетки шла заметно выше первой — сетка волной. Место под вторую строку резервируется всегда,
     поэтому длинное имя ничего не двигает. 84, а не 80: замер с восьмьюдесятью всё ещё давал 83 у
     двухстрочной плитки, то есть содержимое переваливало за резерв на три пикселя. */
  min-height: 84px;
  padding: 14px; border-radius: var(--doska-radius-md);
  /* ПОЛУПРОЗРАЧНАЯ подложка с обводкой — per direct request «добавить фон полупрозрачный на каждую
     секцию папки», «можно и с обводкой». Сплошной `--doska-surface-raised` на тёмной теме почти
     сливается с полотном (#1e1e25 против фона страницы), и на присланном снимке плитки читались
     как текст на пустом месте: ни границ, ни площади. Прозрачность здесь не украшение, а способ
     отделить плитку от фона, не делая её светлым пятном.
     Обводка тем же токеном, что у карточек и модалок, чтобы плитка принадлежала одному языку с
     остальным продуктом. */
  box-shadow: inset 0 0 0 1px var(--doska-hairline);
  color: var(--doska-text); cursor: pointer;
  font-family: var(--doska-font-display);
}
/* Фон — УДВОЕННЫМ классом (0,2,0). Плитка это <button>, а в шапке файла объявлен сброс
   `.doska-root button { background: none }` со специфичностью (0,1,1), который бьёт одиночный
   класс (0,1,0). Замер поймал это ровно так: из одного и того же правила `min-height` и
   `box-shadow` применились, а `background` — нет; тот же фон, поставленный инлайном, работал.
   Это готча №1 этого проекта, и в файле уже стоят три предупреждения о ней. */
.doska-space-tile.doska-space-tile { background: rgba(var(--doska-glass-rgb), 0.55); }
.doska-space-tile.doska-space-tile:hover {
  background: rgba(var(--doska-glass-rgb), 0.85);
  box-shadow: inset 0 0 0 1px var(--doska-hairline-strong);
}
.doska-space-tile-icon {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px;
  border-radius: var(--doska-radius-md); background: var(--doska-hover); color: var(--doska-text-muted);
}
.doska-space-tile:hover .doska-space-tile-icon { color: var(--doska-accent); }
.doska-space-tile-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
/* Две строки максимум. Ровную высоту держит min-height у самой плитки: обрезка по строкам только
   не даёт названию уехать в третью строку. */
.doska-space-tile-title {
  font-size: 14px; font-weight: 500; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
/* Число словом, а не голой цифрой: «26» рядом с названием читается как часть имени. */
.doska-space-tile-count { font-size: 12px; color: var(--doska-text-muted); font-variant-numeric: tabular-nums; }
@media (max-width: 600px) {
  .doska-space-tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
  .doska-space-tile { padding: 10px; gap: 9px; min-height: 70px; }
  .doska-space-tile-icon { width: 32px; height: 32px; }
}

/* Слот иконки у СТРОКИ СПЕЙСА — per direct request «иконку крупнее и выровнять по линии с
   остальными иконками, становится на место папки при ховере». Спейс это папка верхнего уровня, и
   выглядит он теперь так же, как папки в дереве под ним: одна колонка иконок на весь список.
   Раньше здесь была отдельная колонка под стрелку, а иконки не было вовсе. */
.doska-allnotes-space-slot {
  display: grid; place-items: center; flex: none; width: 20px; height: 20px;
}
.doska-allnotes-space-slot > * { grid-area: 1 / 1; }
.doska-allnotes-space-slot-icon { color: var(--doska-text-muted); opacity: 0.75; }
/* Подмена — та же, что у папок: скрываем прозрачностью, а не display, чтобы ширина колонки не
   менялась и названия не дёргались вбок. */
.doska-allnotes-space-slot[data-toggleable] > .doska-allnotes-space-caret-btn {
  opacity: 0; pointer-events: none;
}
.doska-allnotes-space-row:hover .doska-allnotes-space-slot[data-toggleable] > .doska-allnotes-space-caret-btn {
  pointer-events: auto;
}
.doska-allnotes-space-row:hover .doska-allnotes-space-slot[data-toggleable] > .doska-allnotes-space-slot-icon { opacity: 0; }
.doska-allnotes-space-row:hover .doska-allnotes-space-slot[data-toggleable] > .doska-allnotes-space-caret-btn { opacity: 1; }
.doska-allnotes-space-slot > .doska-allnotes-space-caret-btn:focus-visible { opacity: 1; pointer-events: auto; }
/* Свёрнутая ветка показывает стрелку всегда: иначе теряется единственный признак, что внутри
   что-то есть. */
.doska-allnotes-space-slot[data-toggleable]:has(.doska-collapse-caret:not([data-open])) > .doska-allnotes-space-caret-btn { opacity: 1; pointer-events: auto; }
.doska-allnotes-space-slot[data-toggleable]:has(.doska-collapse-caret:not([data-open])) > .doska-allnotes-space-slot-icon { opacity: 0; }
/* Кнопка внутри слота не должна иметь своей подложки: фон рисует строка. */
.doska-allnotes-space-slot > .doska-allnotes-space-caret-btn { width: 16px; height: 16px; background: none; }
.doska-allnotes-space-slot > .doska-allnotes-space-caret-btn:hover { background: none; color: var(--doska-text); }

/* Стрелка при наведении лежит в квадратной подложке — per присланный референс (там это тёмный
   скруглённый квадрат на месте иконки папки). Без подложки треугольник на пустом месте читается
   как случайный значок, а не как кнопка «свернуть». */
.doska-allnotes-space-tree-slot > .doska-allnotes-space-tree-marker,
.doska-allnotes-space-slot > .doska-allnotes-space-caret-btn {
  display: grid; place-items: center; width: 20px; height: 20px;
  border-radius: var(--doska-radius-sm); background: var(--doska-hairline-strong); color: var(--doska-text);
}
.doska-allnotes-space-tree-slot > .doska-allnotes-space-tree-marker:hover,
.doska-allnotes-space-slot > .doska-allnotes-space-caret-btn:hover {
  background: var(--doska-text-muted); color: var(--doska-surface-raised);
}
/* Иконка папки крупнее вслед за колонкой. */
.doska-allnotes-space-tree-icon, .doska-allnotes-space-slot-icon { width: 15px; height: 15px; }
/* Иконка НЕ ЛОВИТ КЛИКИ — живой отчёт «не работает раскрытие спейсов в боковом меню».
   Разбор: замер показал, что под точкой в центре ячейки лежит иконка папки, хотя она невидима
   (opacity: 0 у свёрнутого спейса). Причина в порядке ПОКРАСКИ, а не в порядке DOM: кнопка
   стрелки объявлена `display: grid`, то есть блочная, а иконка это `<svg>`, то есть строчный
   элемент, — строчные красятся ПОВЕРХ блочных независимо от того, кто раньше в разметке. Поэтому
   у спейса иконка перекрывала кнопку, а в дереве папок тот же приём работал: там стрелка лежит в
   `<span>`, таком же строчном, и решает порядок DOM.
   Иконка здесь чисто декоративная: клик по ней должен доставаться либо стрелке (когда та
   показана), либо строке — то есть «открыть». Событий ей не нужно ни в одном состоянии. */
.doska-allnotes-space-tree-icon, .doska-allnotes-space-slot-icon { pointer-events: none; }

/* Плитка стала контейнером: открытие переехало на вложенную кнопку, справа встало меню действий —
   per direct request «в табе „Обзор“ должны быть три точки на папках, чтобы имя можно было
   управлять». Оформление (фон, обводка, высота) осталось на самой плитке, поэтому кнопка внутри
   полностью прозрачна и только растягивается. */
/* Плитке нужен СВОЙ контекст позиционирования: кнопка «•••» объявлена `position: absolute` с
   привязкой к правому верхнему углу (она общая с карточками проектов), и без `relative` на плитке
   она уезжала к ближайшему позиционированному предку — замер показал, что её правый край выходит
   за плитку. */
.doska-space-tile { position: relative; }
.doska-space-tile-main {
  display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0;
  padding: 0; border: none; background: none; color: inherit; text-align: left;
  font: inherit; cursor: pointer;
}
/* «•••» в покое приглушено и проявляется по наведению на плитку: ряд точек вдоль всей сетки
   читается как украшение, а не как действие. Клавиатуре кнопка нужна всегда. */
.doska-space-tile .doska-project-card-menu-btn { opacity: 0; }
/* Место под кнопку в правом верхнем углу: без запаса длинное имя заезжает прямо под неё. */
.doska-space-tile .doska-space-tile-body { padding-right: 26px; }
.doska-space-tile:hover .doska-project-card-menu-btn,
.doska-space-tile .doska-project-card-menu-btn[data-active],
.doska-space-tile .doska-project-card-menu-btn:focus-visible { opacity: 1; }

/* ОТСТУП СНЯТ — живой отчёт «между Календарь и Документы в сайдбаре есть пространство».
   Он ставился, когда эта строка называлась «Закладки» и стояла ПОСЛЕДНЕЙ, отделяя дела со сроками
   от архива. С тех пор состав группы менялся дважды по прямым запросам: «Документы» переехали внутрь
   рабочей группы, а затем встали сразу под «Календарь». Разделитель, оказавшийся в СЕРЕДИНЕ группы,
   уже ничего не разделяет — он просто рвёт список надвое в случайном месте.
   Правило оставлено пустым намеренно, вместе с разбором: иначе следующий, кто увидит ровный список,
   заново «починит» его тем же отступом. Порядок строк задаёт WORK_IDS в GlobalAllNotes. */

/* Плитка под перетаскиваемой карточкой — per direct request «нужно уметь перетаскивать заметку в
   папку». Подсветка та же, что у строк панели (data-drop-active), чтобы цель везде выглядела
   одинаково. */
.doska-space-tile[data-drop-active] {
  background: rgba(var(--doska-glass-rgb), 0.95);
  box-shadow: inset 0 0 0 2px var(--doska-accent);
}

/* ПОДКЛЮЧЕНИЕ NOTION СВОИМ ТОКЕНОМ — по прямому запросу «настрой интеграцию, проверь можно ли
   использовать ключ». Публичного приложения у продукта нет, поэтому этот путь основной, а не
   запасной, и оформлен он как обычная форма, а не как мелкий текст под кнопкой. */
.doska-notion-connect { display: flex; flex-direction: column; }
/* Кнопка подключения по ШИРИНЕ СВОЕГО ТЕКСТА, а не во всю карточку — по прямому запросу «слишком
   длинные кнопки, не надо во всю ширину». Причина растяжения не в самой кнопке (она inline-flex),
   а в колонке-контейнере: у flex-column дети по умолчанию тянутся на всю ширину (align-items:
   stretch). Правило точечное, на кнопки и ссылки внутри карточек настроек: поля ввода и абзацы
   по-прежнему занимают всю ширину, как и должны. */
/* Цвет текста/иконки явным правилом, а не «доедет само» через глобальное `a{color}`: `<a>`-варианты
   (Calendar/Gmail/Drive) получали акцентный фиолетовый от него бесплатно, а `<button>`-варианты
   (Telegram/Notion/Obsidian) оставались обычным текстом — шесть визуально равных «Подключить X»
   читались как три разных стиля просто из-за тега разметки. */
.doska-settings-card .doska-inline-action { align-self: flex-start; width: -moz-fit-content; width: fit-content; color: var(--doska-accent); }
/* ДЛИНА СТРОКИ. Замер на живой странице: описания интеграций шли по 92 знака при норме 65–75 —
   глаз теряет начало следующей строки. Ограничение на сам абзац, а не на карточку: карточка
   держит сетку из двух колонок, и сужать её значит ломать ряд. */
.doska-settings-card .doska-modal-hint,
.doska-settings-card p { max-width: 68ch; }

/* Строка поиска в СРЕДНЕЙ панели «Заметки» (2026-09-22). Место менялось трижды по прямым
   запросам: над списком заметок → в левое меню («поиск по заметкам будет в панели заметки») →
   сюда («поиск по заметкам нужно перенести в среднюю секцию заметки»). Стоит под заголовком
   панели, над деревом, которое и фильтрует. */
.doska-notes-search {
  display: flex; align-items: center; gap: 6px; flex: none;
  margin: 0 0 var(--s-1); padding: 7px 10px; border-radius: var(--doska-radius-md);
  background: var(--doska-hairline); color: var(--doska-text-muted);
}
.doska-notes-search input {
  flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  font-size: 13px; color: var(--doska-text); font-family: inherit;
}
.doska-notes-search input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-notes-search input::placeholder { color: var(--doska-text-muted); }
.doska-notes-search input::-webkit-search-cancel-button { display: none; }
.doska-notes-search button {
  display: inline-flex; border: none; background: transparent; color: var(--doska-text-muted);
  padding: 2px; border-radius: 6px; cursor: pointer;
}
.doska-notes-search button:hover { color: var(--doska-text); background: var(--doska-hover); }
/* В свёрнутой рельсе строка не нужна: там одни иконки. */
/* Правило осталось от прежнего места строки (левое меню): там её прятала свёрнутая рельса.
   Сейчас строка живёт в панели «Заметки», и селектор ни на что не попадает — оставлен, чтобы
   возврат строки в меню не пришлось чинить заново. */
.doska-allnotes-category-pane[data-collapsed] .doska-notes-search { display: none; }
.doska-notion-steps {
  margin: 0 0 12px; padding-left: 18px;
  font-size: 13px; line-height: 1.7; color: var(--doska-text-muted);
}
/* Ссылка внутри шага подчёркнута и окрашена акцентом: без этого она неотличима от текста шага, а
   именно с неё шаг и начинается. Значок внешней ссылки прижат к слову, а не висит отдельно. */
.doska-notion-steps a {
  color: var(--doska-accent); text-decoration: underline; text-underline-offset: 2px;
  white-space: nowrap;
}
.doska-notion-steps a svg { vertical-align: -1px; }
/* Поле тянется, кнопка нет: ключ длинный, а подпись кнопки фиксированной ширины. */
.doska-notion-token-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.doska-notion-token-row .doska-modal-input { flex: 1; min-width: 200px; font-family: var(--doska-font-mono); }
/* Кнопка отключённого вида должна ЧИТАТЬСЯ отключённой: пока поле пустое, нажимать нечего.
   Двойной класс — готча №1: одиночный проигрывает базовому правилу `.doska-root button`. */
.doska-notion-token-row .doska-inline-action.doska-inline-action:disabled {
  opacity: 0.5; cursor: default;
}


/* ---------- Команды бота: две колонки и табличный вид ----------
   По прямому запросу «экран будет поделён на две части: это таблица и непосредственно настройки;
   когда я переключаюсь между командами, справа меняются настройки» и «также можно табличный вид».

   Пропорция 1fr / 380px, а не пополам: слева таблица, которую читают глазами по строкам, справа
   форма фиксированной ширины — поля шире 380px не становятся удобнее, а таблица от каждой лишней
   сотни пикселей выигрывает.
   `align-items: start` обязателен: без него правая колонка растянулась бы по высоте таблицы, и
   короткая форма висела бы в пустой рамке во весь экран. */
/* Кнопка «Назад к списку» существует только на телефоне: на широком экране список никуда не
   девался, и возвращаться неоткуда. */
.doska-pane-back {
  display: none; align-items: center; gap: 8px; margin-bottom: 10px;
  padding: 9px 12px; border-radius: var(--doska-radius-md);
  background: var(--doska-surface-raised); color: var(--doska-text); font: inherit;
  font-size: 13px; cursor: pointer;
}
/* Мобильный аудит (01.10.2026): 9px паддинг + строка текста даёт цель нажатия заметно меньше
   40px — того же порога, что уже применён к остальным элементам телефона («Пять проходов
   полировки»). Этот класс за это время обзавёлся новыми постоянно видимыми применениями
   (Интеграции, Настройки), которых при том проходе ещё не было. */
@media (max-width: 768px) {
  .doska-pane-back.doska-pane-back { min-height: 40px; }
}

/* ---------- Расход токенов внизу рейла ----------
   По прямому запросу «снизу в рейле показывать текущий расход токенов; потом я сделаю из этого
   тариф, но пока просто шкала». `margin-top: auto` прижимает блок к низу панели, а не ставит его
   сразу под последним разделом: иначе на коротком списке шкала висела бы посреди пустоты. */
.doska-rail-tokens { margin-top: auto; display: flex; flex-direction: column; gap: 5px; padding: 10px 10px 4px; }
.doska-rail-tokens-text { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.doska-rail-tokens-label { font-size: 12px; color: var(--doska-text-muted); font-variant-numeric: tabular-nums; }
.doska-rail-tokens-hint { font-size: 11px; color: var(--doska-text-faint, var(--doska-text-muted)); opacity: .75; font-variant-numeric: tabular-nums; }
.doska-rail-tokens-bar { height: 4px; border-radius: 999px; background: var(--doska-hairline); overflow: hidden; }
.doska-rail-tokens-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--doska-accent); }
/* Свёрнутый рейл: цифры не поместятся, остаётся только полоска. */
.doska-allnotes-category-pane[data-collapsed] .doska-rail-tokens-text { display: none; }
.doska-allnotes-category-pane[data-collapsed] .doska-rail-tokens { padding: 8px 8px 4px; }
/* Узкий экран: колонки складываются в одну. Форма в двухсотпиксельной колонке хуже, чем форма под
   списком, а `sticky` на сложенной раскладке только мешает — прилипать не к чему. */
@media (max-width: 900px) {
  /* Задания сняты отсюда (30.09.2026): список/деталь теперь переключаются ПОЛНОСТЬЮ на любой
     ширине экрана, не только на телефоне — см. .doska-missions-layout[data-detail] выше. */
  .doska-pane-back { display: inline-flex; }
}

/* Таблица. Своя прокрутка по горизонтали обязательна: шесть столбцов, и без неё на телефоне вбок
   поехала бы вся страница (общее правило проекта — широкое содержимое прокручивается внутри себя). */
.doska-commands-table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}
/* Шапка таблицы — та же метка секции, что и везде: 10.5/uppercase/0.08em. Жирная линия под ней
   снята: в языке слои разделяет волосяная линия, а не рамка. */
.doska-commands-table th {
  padding: 12px 14px; text-align: left; font-size: 11px; font-weight: 500;
  letter-spacing: 0; text-transform: none;
  color: var(--doska-text-muted); border-bottom: 1px solid var(--doska-hairline);
  white-space: nowrap;
}
.doska-commands-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--doska-hairline);
  color: var(--doska-text); vertical-align: middle;
}
/* Последняя строка без линии: иначе она ложится на скруглённый край панели. */
.doska-commands-table tbody tr:last-child td { border-bottom: none; }
/* НА ТЕЛЕФОНЕ ТАБЛИЦА СТАНОВИТСЯ КАРТОЧКАМИ (28.09.2026). Замер на 390: восемь столбцов дают
   полосу в 813px внутри своей прокрутки, то есть автоматизацию нужно тащить пальцем вбок, чтобы
   увидеть её состояние. Строка превращается в карточку, ячейка — в строку «подпись: значение»;
   подписи берутся из data-label, поэтому шапку можно скрыть, не потеряв смысл столбцов. */
@media (max-width: 720px) {
  .doska-commands-table, .doska-commands-table tbody, .doska-commands-table tr, .doska-commands-table td { display: block; }
  .doska-commands-table thead { display: none; }
  .doska-commands-table tbody tr {
    margin-bottom: 8px; padding: 12px 14px;
    border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
    background: var(--doska-surface);
  }
  .doska-commands-table tbody tr td { border-bottom: none; padding: 3px 0; }
  .doska-commands-table tbody tr td[data-label]::before {
    content: attr(data-label);
    display: inline-block; min-width: 96px;
    font-size: 11px; letter-spacing: 0; text-transform: none;
    color: var(--doska-text-muted); opacity: 0.8;
  }
}
.doska-commands-table tbody tr { cursor: pointer; }
.doska-commands-table tbody tr:hover { background: var(--doska-hover); }
/* Выбранная строка — та, чьи настройки открыты справа. Без этой связи две колонки читаются как два
   несвязанных блока. Полоса слева, а не заливка целиком: заливка спорила бы с подсветкой наведения. */
.doska-commands-table tbody tr[data-selected] { background: var(--doska-accent-soft); }
.doska-commands-table tbody tr[data-selected] td:first-child { box-shadow: inset 2px 0 0 var(--doska-accent); }
.doska-commands-table tbody tr[data-off] { opacity: 0.55; }

/* Пометка «уже подключена» в окне выбора с Диска — по прямому запросу «если папки уже подключены,
   то показывай это». Живой случай: две из трёх папок были подключены, а окно предлагало
   «Подключить» одинаково для всех, то есть не отличало сделанное от несделанного.
   Намеренно НЕ кнопка и не выглядит нажимаемой: подключать второй раз нечего. Размер и отступы те
   же, что у соседней кнопки, иначе строки папок разъедутся по высоте. */
.doska-drive-connected {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 14px; border-radius: var(--doska-radius-md); /* капсула → шкала: в «Графите» капсулу носят фильтры, действие имеет радиус 12 */
  background: var(--doska-accent-soft); color: var(--doska-accent);
  font-size: 13px; font-weight: 600; white-space: nowrap;
}

/* Кнопка внутри заглушки «Команд пока нет» — по прямому запросу «добавить под текстом кнопку
   „Создать команду“». Тот же класс, что у кнопки в шапке, значит и тот же вид: два входа в одно
   действие, отличающиеся оформлением, читались бы как два разных действия.
   Отступ сверху свой: у .doska-connected-empty шаг 8px рассчитан на строки текста, а кнопке под
   абзацем нужен воздух, иначе она липнет к последней строке. */
.doska-commands-empty-add.doska-commands-empty-add { margin-top: 6px; }

/* Поиск по страницам Notion в окне выбора. Своя строка, а не крошки Диска: у Notion нет дерева
   папок, доступ выдаётся постранично, и ходить некуда — искать можно только по названию. */
.doska-notion-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px; border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-hairline-strong); background: var(--doska-surface);
  color: var(--doska-text-muted); flex: none;
}
.doska-notion-search input {
  flex: 1; min-width: 0; border: none; background: none; outline: none;
  color: var(--doska-text); font-size: 13px;
}
.doska-notion-search input::-moz-placeholder { color: var(--doska-text-muted); }
.doska-notion-search input::placeholder { color: var(--doska-text-muted); }

/* КАТАЛОГ ГОТОВЫХ СВЯЗОК для команд бота — по прямому запросу «чтобы человек не тупил, с чего
   начать». Живёт в той же правой половине, что и редактор: это два состояния одного места, а не два
   экрана. Своя прокрутка обязательна — двенадцать карточек длиннее окна. */
/* ОКНА, ОТРИСОВАННЫЕ ПОРТАЛОМ, ОБЯЗАНЫ СНИМАТЬ С СЕБЯ ПОЗИЦИЮ `.doska-root`.
   Живой отчёт: «модалка шаблона по центру экрана выровнять». Подложка (.doska-modal-backdrop) и
   правда центрирует — флексом. Но на самом окне висит класс `doska-root`, нужный ради переменных
   темы (готча №2), а у него `position: fixed; inset: 0`. Элемент с фиксированной позицией выпадает
   из потока флекса, и центрирование к нему не применяется вовсе: окно прижимается к левому верхнему
   углу, а `inset: 0` вместе с заданной шириной это и закрепляет.
   Тот же дефект был и у окна выбора с Диска — просто про него не писали. Чинится обоим сразу.
   Двойной класс — готча №1: одиночный не перебьёт `.doska-root`, они равной силы, а `.doska-root`
   объявлен раньше только в одном из двух случаев. */
.doska-templates-modal.doska-templates-modal,
.doska-drive-picker.doska-drive-picker {
  position: relative;
  inset: auto;
}

/* Окно каталога: шире окна выбора с Диска, потому что внутри две колонки — навигация по целям и
   сами карточки. Высота ограничена окном, прокручивается только список. */
.doska-templates-modal {
  display: flex; flex-direction: column; gap: 12px;
  width: min(920px, 94vw); max-height: 86vh; padding: 16px;
  border-radius: var(--doska-radius-lg);
  border: 1px solid var(--doska-hairline-strong); background: var(--doska-surface-raised);
  overflow: hidden;
}
.doska-templates-page {
  position: relative; inset: auto;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.doska-templates-page .doska-templates-screen { flex: initial; min-height: 0; }
.doska-templates-page .doska-templates-list { overflow: visible; max-height: none; }
/* ЦЕЛИ СБОКУ, а не заголовками в потоке — живой отчёт «в шаблонах нужно категории сбоку писать, не
   удобно навигировать». Заголовки внутри списка заставляют прокручивать, чтобы узнать, что вообще
   есть; колонка слева показывает все цели сразу и не двигается при прокрутке. */
.doska-templates-screen {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px;
  min-height: 0; flex: 1;
}
.doska-templates-nav { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
/* Плоский каталог: поиск строкой сверху, список во всю ширину. */
.doska-templates-screen[data-flat] { grid-template-columns: minmax(0, 1fr); }
.doska-templates-screen[data-flat] .doska-templates-nav { max-width: 360px; }
/* Прокручивается ТОЛЬКО список карточек: колонка целей должна оставаться на месте, иначе она
   перестаёт быть навигацией. */
.doska-templates-list {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; align-content: start;
  min-height: 0; overflow-y: auto; padding-right: 4px;
}
.doska-template-cats { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; min-width: 0; }
/* Строка категории: название, под ним подпись, справа число связок. Сетка, а не флекс с
   абсолютным числом: подпись переносится на второй строке и не спорит со счётчиком. */
.doska-template-cats > [data-slot="button"] {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline;
  row-gap: 2px; padding: 8px 10px;
}
.doska-template-cats > [data-slot="button"] > :first-child { grid-column: 1; grid-row: 1; }
.doska-template-cats > [data-slot="button"] > [data-template-hint] { grid-column: 1 / -1; grid-row: 2; }
.doska-template-cats > [data-slot="button"] > [data-template-count] { grid-column: 2; grid-row: 1; }
/* На телефоне колонка навигации встаёт над списком: две колонки по 220px там не помещаются. */
@media (max-width: 640px) {
  .doska-templates-screen { grid-template-columns: minmax(0, 1fr); }
  .doska-templates-nav { max-height: 240px; overflow-y: auto; }
}
/* Вступление каталога прижато к шапке: оно объясняет ВСЁ окно, а не первую карточку. */
.doska-templates-intro { margin: 0 0 4px; }

/* Окно быстрого старта: узкое, это форма из трёх полей, а не каталог. Позицию `.doska-root` снимает
   то же правило, что у каталога и окна Диска (см. разбор выше). */
.doska-quick-modal.doska-quick-modal {
  position: relative; inset: auto;
  display: flex; flex-direction: column; gap: 12px;
  width: min(520px, 94vw); max-height: 86vh; overflow-y: auto; padding: 16px;
  border-radius: var(--doska-radius-lg);
  border: 1px solid var(--doska-hairline-strong); background: var(--doska-surface-raised);
}

/* ПАНЕЛЬ АССИСТЕНТА ОБЯЗАНА БЫТЬ ВЫШЕ СТРОКИ ПОИСКА.
   Живой отчёт со снимком: открытый ассистент, а поверх его шапки «Новый диалог» нарисовано поле
   поиска вместе с круглой кнопкой «Спросить».
   Причина читается прямо в этом файле, гадать не пришлось: у `.doska-ai-chat` базовое
   `z-index: 30`, у поля `.doska-inline-search .doska-search` — 35 (наследство из шапки первого
   уровня, где оно раскрывается поверх соседей), у кнопки «Спросить» — 36, её однажды подняли над
   самим полем. Тридцать меньше тридцати пяти, поэтому панель уходила вниз всегда, а не изредка.
   Правило про докнутую панель (`.doska-ai-chat-dock > .doska-ai-chat`) стоит под
   `min-width: 769px`, то есть на узком экране не применяется вовсе — там действует базовая
   тридцатка, и на телефоне это видно в первую очередь.
   Поднимаем ПАНЕЛЬ, а не опускаем поле: высокий слой полю нужен по делу — его выпадающая выдача
   это его ребёнок, и без этого она уходит под липкое оглавление категорий (у того z-index: 5).
   Опустив поле, мы починили бы один экран и сломали поиск на всех остальных.
   40, а не «побольше»: 70 занят подложкой модалок, и панель обязана оставаться ПОД ними, иначе
   любое окно поверх неё окажется снизу.
   Модальный вариант исключён намеренно: `.doska-ai-chat--modal` сбрасывает слой в `auto`, чтобы
   панель жила внутри своей подложки. Задать ему число значит вынуть его из этой подложки.
   Удвоенный класс — готча №1: базовое правило и правило дока имеют (0,1,0) и (0,2,0), и без
   удвоения этот селектор проиграл бы по порядку следования. */
.doska-ai-chat.doska-ai-chat:not(.doska-ai-chat--modal) { z-index: 40; }

/* КОЛОНКА КАТЕГОРИЙ В МОДАЛКЕ СВЯЗОК ОБЯЗАНА ПРОКРУЧИВАТЬСЯ.
   Живой отчёт: «не могу вниз прокрутить по категориям, на „Услуги и запись“ уже зарезается».
   Причина читается рядом, в этом же файле: у правой колонки `.doska-templates-list` стоит
   `min-height: 0; overflow-y: auto`, а у `.doska-templates-nav` не было ни того, ни другого. Пока
   направлений было семь, список помещался целиком и нехватка не проявлялась; после расширения до
   восемнадцати он перестал влезать и стал обрезаться.
   `min-height: 0` здесь не украшение: у элемента внутри grid минимальный размер по умолчанию
   `auto`, то есть он отказывается быть МЕНЬШЕ своего содержимого — и `overflow-y` в одиночку
   ничего не даёт, колонка просто распирает строку и обрезается по краю модалки.
   Поле поиска остаётся на месте при прокрутке: искать по списку, который уехал вверх вместе с
   полем, неудобно ровно в тот момент, когда список стал длинным. */
.doska-templates-nav.doska-templates-nav {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
}
.doska-templates-nav > .doska-notion-search {
  position: sticky; top: 0; z-index: 1;
  background: var(--doska-section-bg, var(--doska-canvas));
}

/* ===== РЕДАКТОР БОГАТОЙ ЗАМЕТКИ =====
   По прямому запросу: «текстовая заметка должна эволюционировать в гибкую, где можно создавать
   таблицы… заголовки, цвета и т.д.».
   Панель ПОСТОЯННАЯ, а не всплывающая по выделению: всплывающая прячет половину возможностей, и
   человек не узнаёт про таблицу, пока случайно что-нибудь не выделит. Это прямой ответ на
   «чтобы я понимал возможности». */
.doska-note-editor { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.doska-note-editor-loading { display: flex; justify-content: center; padding: 16px; color: var(--doska-text-dim); }

.doska-note-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px;
  padding: 4px; border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius);
  background: var(--doska-section-bg, var(--doska-canvas));
  /* Липкая: в длинной заметке панель, уехавшая вверх, заставляет прокручивать туда и обратно ради
     одной кнопки. */
  position: sticky; top: 0; z-index: 2;
}
.doska-note-tool-group { display: flex; align-items: center; gap: 2px; }
/* Разделитель между группами рисуется псевдоэлементом, а не отдельным узлом: групп пять, и пять
   лишних div в разметке ради линий читаются хуже, чем одно правило. */
.doska-note-tool-group + .doska-note-tool-group::before {
  content: ''; width: 1px; height: 18px; margin: 0 4px; background: var(--doska-hairline);
}
.doska-note-tool {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 0; border-radius: var(--doska-radius-sm);
  background: transparent; color: var(--doska-text-dim); cursor: pointer;
}
.doska-note-tool:hover:not(:disabled) { background: var(--doska-hover); color: var(--doska-text); }
.doska-note-tool[data-active] { background: var(--doska-hover); color: var(--doska-accent); }
.doska-note-tool:disabled { opacity: 0.35; cursor: default; }
.doska-note-tool--ai { color: var(--doska-accent); }

.doska-note-menu-wrap { position: relative; }
.doska-note-menu {
  position: absolute; top: calc(100% + 4px); left: 0; z-index: 3;
  min-width: 160px; padding: 4px;
  border: 1px solid var(--doska-hairline-strong); border-radius: var(--doska-radius);
  background: var(--doska-canvas); box-shadow: none;
}
.doska-note-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 6px 8px; border: 0; border-radius: var(--doska-radius-sm);
  background: transparent; color: var(--doska-text); font-size: 13px; text-align: left; cursor: pointer;
}
.doska-note-menu-item:hover { background: var(--doska-hover); }
.doska-note-swatch { width: 14px; height: 14px; border-radius: var(--doska-radius-sm); border: 1px solid var(--doska-hairline-strong); flex: 0 0 auto; }

.doska-note-editor-content .tiptap { outline: none; min-height: 160px; color: var(--doska-text); font-size: 15px; line-height: 1.6; }
.doska-note-editor-content .tiptap > * + * { margin-top: 8px; }
.doska-note-editor-content h1 { font-size: 24px; font-weight: 600; }
.doska-note-editor-content h2 { font-size: 18px; font-weight: 600; }
.doska-note-editor-content h3 { font-size: 16px; font-weight: 600; }
.doska-note-editor-content ul, .doska-note-editor-content ol { padding-left: 22px; }
.doska-note-editor-content blockquote { border-left: 2px solid var(--doska-hairline-strong); padding-left: 10px; color: var(--doska-text-dim); }
.doska-note-editor-content pre { background: var(--doska-hover); padding: 10px; border-radius: var(--doska-radius); overflow-x: auto; }
.doska-note-editor-content a { color: var(--doska-accent); text-decoration: underline; }
.doska-note-editor-content ul[data-type="taskList"] { list-style: none; padding-left: 4px; }
.doska-note-editor-content ul[data-type="taskList"] li { display: flex; align-items: flex-start; gap: 8px; }

/* ТАБЛИЦА. `table-layout: fixed` обязателен: без него ширина колонок, которую человек вытянул
   мышью, игнорируется браузером и таблица каждый раз переразмечается сама. */
.doska-note-editor-content table {
  border-collapse: collapse; table-layout: fixed; width: 100%; margin: 8px 0; overflow: hidden;
}
.doska-note-editor-content td, .doska-note-editor-content th {
  border: 1px solid var(--doska-hairline-strong); padding: 6px 8px; vertical-align: top; position: relative;
}
.doska-note-editor-content th { background: var(--doska-hover); font-weight: 600; text-align: left; }
.doska-note-editor-content .selectedCell::after {
  content: ''; position: absolute; inset: 0; background: var(--doska-accent); opacity: 0.12; pointer-events: none;
}
.doska-note-editor-content .column-resize-handle {
  position: absolute; right: -2px; top: 0; bottom: 0; width: 4px; background: var(--doska-accent); cursor: col-resize;
}
/* Широкая таблица прокручивается ВНУТРИ себя, а не растягивает страницу вбок — то же правило, что
   у остальных широких блоков продукта. */
.doska-note-editor-content { overflow-x: auto; }

/* Подсказка в пустой заметке: без неё пустое поле не сообщает, что тут вообще можно. */
.doska-note-editor-content p.is-editor-empty:first-child::before {
  content: attr(data-placeholder); float: left; height: 0; pointer-events: none; color: var(--doska-text-dim);
}

/* Ряд чипов «тип файла» над списком в «Файлах» — по прямому запросу о фильтрации по типам.
   Те же чипы, что у папок-категорий: новый вид кнопки ради того же жеста это разнобой. */
.doska-file-type-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }

/* Мастер команды бота по шагам (CommandWizard) — по прямому запросу «в модалке и по этапам». */
/* Двойной класс и `position: relative; inset: auto` — та же ловушка, что у каталога и быстрого
   старта: `.doska-root` (на портале ради темы) несёт `position: fixed; inset: 0`, и окно
   растягивалось на весь экран вместо центра подложки. Живой отчёт «модалка по центру экрана надо». */
.doska-command-wizard.doska-command-wizard {
  position: relative; inset: auto;
  width: min(720px, 94vw); max-height: min(860px, 94vh); display: flex; flex-direction: column;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
  box-shadow: none; overflow: hidden;
}
.doska-command-wizard .doska-modal-header { padding: 16px 20px 8px; }
.doska-command-wizard-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin: 0; padding: 0 20px 12px;
}
.doska-command-wizard-steps button {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--doska-radius-md);
  border: 1px solid var(--doska-hairline); background: none; color: var(--doska-text-muted); cursor: pointer; font: inherit; font-size: 12px; text-align: left;
}
.doska-command-wizard-steps button:disabled { cursor: default; opacity: 0.55; }
.doska-command-wizard-steps li[data-active] button { border-color: var(--doska-accent); color: var(--doska-text); background: var(--doska-surface-raised); }
.doska-command-wizard-steps li[data-done] button { color: var(--doska-text); }
.doska-command-wizard-step-n {
  flex: none; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--doska-radius-md); background: var(--doska-surface-raised); font-size: 11px; font-weight: 600;
}
.doska-command-wizard-steps li[data-active] .doska-command-wizard-step-n,
.doska-command-wizard-steps li[data-done] .doska-command-wizard-step-n { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-command-wizard-step-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-command-wizard-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 20px 16px; display: flex; flex-direction: column; gap: 14px; }
.doska-command-wizard-actions {
  display: flex; align-items: center; gap: 10px; padding: 12px 20px 16px; border-top: 1px solid var(--doska-hairline);
}
.doska-command-wizard-actions .doska-command-error { flex: 1 1 auto; text-align: right; }
.doska-command-wizard-actions .doska-drive-import { margin-left: auto; }
.doska-command-wizard-actions .doska-command-error + .doska-drive-import { margin-left: 0; }
.doska-command-review { display: flex; flex-direction: column; gap: 8px; }
.doska-command-review-card {
  padding: 12px 14px; border-radius: var(--doska-radius-md); border: 1px solid var(--doska-hairline); background: var(--doska-surface-raised);
}
.doska-command-review-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.doska-command-review-steps { margin: 4px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
@media (max-width: 720px) {
  .doska-command-wizard-steps { grid-template-columns: repeat(2, 1fr); }
  .doska-command-wizard { width: 100vw; max-height: 100vh; border-radius: 0; }
}

/* Раздел «Люди» (PeopleView): история тех, кого привлекали. */
.doska-people-view { display: flex; flex-direction: column; }
.doska-people-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.doska-people-toolbar .doska-allnotes-category-name { display: inline-flex; align-items: center; gap: 8px; }
.doska-people-search { display: block; width: 100%; margin: 0 0 12px; }
.doska-people-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.doska-people-form-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--doska-text-muted); }
.doska-people-form-wide { grid-column: 1 / -1; }
.doska-people-name { font-size: 15px; font-weight: 600; }
.doska-people-engagements { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.doska-people-engagements li { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; border-top: 1px solid var(--doska-hairline); }
.doska-people-eng-date { flex: none; width: 84px; font-size: 12px; color: var(--doska-text-muted); font-variant-numeric: tabular-nums; padding-top: 1px; }
.doska-people-eng-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.doska-people-eng-task { font-size: 13px; font-weight: 600; }

/* Окно «Записать работу» (per direct request «добавление нового контакта будет через модалку»).
   Двойной класс и `position: relative; inset: auto` — та же ловушка, что у мастера команды:
   `.doska-root` на портале несёт `position: fixed; inset: 0`, и без этого окно растягивается на
   весь экран вместо центра подложки. */
.doska-people-modal.doska-people-modal {
  position: relative; inset: auto;
  width: min(640px, 94vw); max-height: min(90vh, 760px); overflow-y: auto;
  padding: 16px 20px 20px;
  background: var(--doska-surface); border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-lg);
  box-shadow: none;
}
.doska-people-modal .doska-modal-header { margin-bottom: 12px; }
.doska-people-modal .doska-people-form-grid { margin: 0; }
.doska-people-modal .doska-modal-actions { margin-top: 6px; }
/* Поле даты: палитра календаря под тему (иначе на тёмном окне всплывает белый календарь), курсор
   «рука» по всему полю — клик по любому месту открывает календарь, см. onClick в PeopleView. */
/* Все поля даты и времени: палитра системного выбора под тему (иначе на тёмном окне всплывает
   белый календарь) и курсор «рука» по всему полю — клик по любому месту открывает выбор
   (utils/pickerOnClick.ts). */
.doska-root input[type='date'], .doska-root input[type='datetime-local'], .doska-root input[type='time'] { cursor: pointer; color-scheme: light; }
.doska-root[data-theme='dark'] input[type='date'], .doska-root[data-theme='dark'] input[type='datetime-local'], .doska-root[data-theme='dark'] input[type='time'] { color-scheme: dark; }

/* Реестр людей таблицей (per direct request «переделать таблицу в Люди»).
   Вопрос к этому разделу сравнительный — кто делал похожее, за сколько, чем закончилось, — а
   сравнивают столбиком, а не вертикальным списком карточек. Своя прокрутка по горизонтали: таблица
   шире экрана допустима, страница целиком — нет. */
.doska-people-table-wrap { overflow-x: auto; border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-md); background: var(--doska-surface); }
.doska-people-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.doska-people-table th,
.doska-people-table td { text-align: left; padding: 9px 12px; vertical-align: top; font-weight: 400; }
.doska-people-table thead th { position: sticky; top: 0; z-index: 1; background: var(--doska-surface-raised); font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--doska-text-muted); white-space: nowrap; border-bottom: 1px solid var(--doska-hairline); }
/* Линия рисуется только на ПЕРВОЙ строке человека: внутри одной группы работ разделитель делал бы
   вид, что это разные люди. */
.doska-people-table tbody tr.doska-people-row > * { border-top: 1px solid var(--doska-hairline); }
.doska-people-table tbody tr.doska-people-row { cursor: pointer; }
.doska-people-table tbody tr:hover > * { background: var(--doska-secondary); }
.doska-people-cell-person { min-width: 160px; }
.doska-people-cell-person .doska-people-name { display: block; font-size: 13px; }
.doska-people-cell-person .doska-command-hint { display: block; margin-top: 2px; }
.doska-people-cell-date { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--doska-text-muted); }
.doska-people-cell-notes { min-width: 220px; max-width: 420px; white-space: pre-wrap; }
.doska-people-cell-contact { white-space: nowrap; }
.doska-people-cell-blank { color: var(--doska-text-muted); opacity: 0.55; }
.doska-people-cell-actions { white-space: nowrap; text-align: right; }
.doska-people-th-toggle { width: 72px; }
.doska-people-th-actions { text-align: right; }
/* «•••» строки — та же кнопка, что у карточки спейса, только всегда видимая: в таблице нет
   наведения на «карточку», строка узкая, и прятать единственный вход в правку незачем. */
.doska-people-profile-works { border-top: 1px solid var(--doska-hairline); padding-top: 10px; }
.doska-people-profile-works-title { display: block; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--doska-text-muted); }
.doska-people-row-menu-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px;
  border: 1px solid var(--doska-hairline); background: var(--doska-surface-raised); color: var(--doska-text-muted); cursor: pointer;
}
.doska-people-row-menu-btn:hover, .doska-people-row-menu-btn[data-active] { color: var(--doska-text); border-color: var(--doska-hairline-strong); }
.doska-people-sort { border: 0; background: none; padding: 0; margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.doska-people-sort[aria-pressed='true'] { color: var(--doska-text); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .doska-people-form-grid { grid-template-columns: 1fr; }
  .doska-people-engagements li { flex-wrap: wrap; }
  .doska-people-table th,
  .doska-people-table td { padding: 8px 10px; }
}

/* «Навести порядок» над неразобранным в «Файлах» (GlobalAllNotes). Строка со счётчиком и кнопкой;
   само подтверждение это обычная Modal со списком «куда и сколько». */
.doska-tidy-row { display: flex; align-items: center; gap: var(--s-1); margin-bottom: var(--s-2); }
.doska-tidy-row-text { font-size: 13px; color: var(--doska-text-muted, var(--doska-text)); }
.doska-tidy-row .doska-stash-distribute-hint.doska-stash-distribute-hint { margin-left: 0; }
.doska-tidy-confirm-lead { margin: 0 0 var(--s-1); font-size: 14px; line-height: 1.45; }
.doska-tidy-confirm-list {
  margin: 0; padding: var(--s-1) 12px; max-height: 260px; overflow: auto;
  font: inherit; font-size: 13px; line-height: 1.5; white-space: pre-wrap;
  background: var(--doska-section-bg, var(--doska-surface)); border-radius: var(--doska-radius-md);
}

/* Стрелка дропдауна папок на строке «Заметки» (GlobalAllNotes): та же геометрия, что у «плюса»
   рядом, но видна всегда: это единственный орган управления списком, прятать его до наведения
   значит заставлять искать вслепую (тот же довод, что когда-то у «Закладок»). */
.doska-allnotes-space-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 20px; height: 20px; padding: 0; border: none; background: none; border-radius: var(--doska-radius-sm);
  color: var(--doska-text-muted); cursor: pointer;
}
.doska-allnotes-space-toggle:hover { background: var(--doska-hover); color: var(--doska-text); }
/* НА ДЕСКТОПЕ ДРОПДАУН СНОВА СКРЫТ (30.09.2026, по прямому запросу «Заметки верни как было через
   отдельную секцию», отмена решения 29.09 «в рейле дропдаун, где древо заметок»): дерево на
   широком экране показывает отдельная панель .doska-notes-pane, и одновременно дропдаун в строке
   «Заметки» дублировал бы её содержимое да ещё с несогласованным вторым переключателем. На
   телефоне, где панели нет, дропдаун остаётся единственным способом попасть в дерево. */
/* ДРОПДАУН ВЕРНУЛСЯ И НА ВЕБЕ (10.10.2026) — по прямому запросу «заметки в боковом сайдбаре делаем
   аналогично… Отдельно секцию заметки не делаем». Правило, прятавшее его на широком экране, снято:
   отдельной панели .doska-notes-pane больше нет, дерево живёт только здесь. */
/* БИБЛИОТЕКА ПОД «ЗАМЕТКАМИ»: подразделы «Недавние» и «Папки» по образцу присланного скриншота —
   заголовок со стрелкой слева и числом справа, содержимое строками под ним. */
.doska-lib { gap: 1px; }
.doska-lib-head {
  display: flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 8px 0 4px;
  border-radius: var(--doska-radius-sm); color: var(--doska-text-muted); cursor: pointer; -webkit-user-select: none; -moz-user-select: none; user-select: none;
}
.doska-lib-head:hover { background: var(--doska-hover); color: var(--doska-text); }
.doska-lib-head:focus-visible { outline: 2px solid var(--doska-accent); outline-offset: -2px; }
.doska-lib-title { flex: 1 1 auto; min-width: 0; font-size: 13px; font-weight: 600; }
.doska-lib-add {
  display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; padding: 0;
  border: none; background: none; border-radius: var(--doska-radius-sm); color: inherit; cursor: pointer; opacity: 0;
}
.doska-lib-head:hover .doska-lib-add, .doska-lib-add:focus-visible { opacity: 1; }
.doska-lib-add:hover { background: var(--doska-hover); }
.doska-lib-list { display: flex; flex-direction: column; padding-left: 8px; margin-bottom: 4px; }
/* Число справа у папок и подпапок — как на скриншоте: приглушённое, не сжимается. */
.doska-allnotes-space-tree-count { flex: none; margin-left: auto; padding-left: 6px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--doska-text-muted); }
/* Сам дропдаун: строки папок чуть отступают вправо, чтобы читались как содержимое «Заметок». */
.doska-allnotes-spaces-dropdown { display: flex; flex-direction: column; padding-left: 10px; }

/* Имя папки в строке панели в одну строку: длинное режется многоточием, счётчик и кнопки справа
   не сжимаются. Через родителя (.doska-allnotes-space-row), чтобы перебить `white-space: normal`
   общего правила чипов панели (готча №1: равная специфичность проигрывает по порядку). */
.doska-allnotes-category-pane .doska-allnotes-space-row > .doska-collection-folder-chip.doska-collection-folder-chip {
  white-space: nowrap; min-width: 0; overflow: hidden;
}
.doska-allnotes-space-row .doska-chip-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doska-allnotes-space-row .doska-collection-folder-chip-count { flex: none; }

/* Аудит WIG, пункт 6: сетки на сотни карточек рендерятся целиком («Все заметки» 800+). Браузер
   пропускает раскладку и отрисовку карточек вне экрана; `auto` в contain-intrinsic-size помнит
   реальную высоту после первого показа, так что прокрутка не прыгает. Виртуализация списка сюда не
   встраивалась намеренно: колонки-стопки строятся разметкой (StashGrid), и обе техники не
   совместимы без переписывания кладки. */
.doska-stash-grid .doska-stash-card { content-visibility: auto; contain-intrinsic-size: auto 240px; }

/* Колонка чата в карточке (StashItemDrawer): справа от содержимого, как док ассистента на других
   экранах; по прямому запросу «вижу чат и вижу также содержание заметки сразу». Модалка это
   flex-ряд (превью | содержимое | чат), колонка берёт фиксированную ширину, содержимое сжимается. */
.doska-drawer-chat-column {
  flex: 0 0 420px; min-width: 320px; display: flex; flex-direction: column; min-height: 0;
  border-left: 1px solid var(--doska-hairline); background: var(--doska-surface);
}
.doska-drawer-chat-column .doska-ai-chat {
  position: relative; top: auto; right: auto; bottom: auto; z-index: auto;
  width: 100%; max-width: none; height: 100%; margin: 0; border: none; border-radius: 0;
}
/* Пока чат открыт, колонка содержимого не ограничена 560: иначе между ними оставалась пустота. */
.doska-stash-modal:has(> .doska-drawer-chat-column) .doska-drawer-side-tabs { max-width: none; flex: 1; }

/* Поля внутри «пилюли» с собственным :focus-within (поиск в шапке, поиск по дереву): фокус
   рисует обёртка, а кольцо на самом input поверх неё читалось как лишняя обводка при
   обновлении страницы (живой отчёт со снимком). Group focus по WIG: один индикатор на группу. */
.doska-header-search-pill input:focus-visible,
.doska-stash-tree-search input:focus-visible,
.doska-search-input-row input:focus-visible { outline: none; }

/* «Связанные» в карточке (RelatedStashItems): чипы-строки, тип приглушённым, название в одну строку. */
.doska-related-list { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.doska-related-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0;
  padding: 6px 8px; border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-md);
  background: var(--doska-surface); color: var(--doska-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer;
}
.doska-related-item:hover { background: var(--doska-hover); }
.doska-related-item-type { flex: none; font-size: 11px; color: var(--doska-text-muted); text-transform: none; letter-spacing: 0; }
.doska-related-item-title { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* «Данные и конфиденциальность» в настройках: список фактов без маркеров-точек. */
.doska-settings-privacy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: 13px; line-height: 1.5; color: var(--doska-text); max-width: 70ch; }
.doska-settings-privacy-list b { font-weight: 600; }

/* ЦЕЛИ НАЖАТИЯ НА ТЕЛЕФОНЕ — общий проход 29.09.2026. Замер на живом проде, 390×844, по четырём
   разделам: переключатель вида календаря 53×26, «Новое событие» 109×28, фильтры состояния 42×32,
   кнопки шапки 109×35, строка «Сегодня» 39 в высоту. Всё это меньше пальца (норма 44).
   Классы удвоены намеренно: у каждого из них уже есть своя высота в обычных правилах, и при
   равной специфичности победило бы то, что ниже по файлу (готча №1). */
@media (max-width: 720px) {
  .doska-inline-action.doska-inline-action,
  .doska-commands-add.doska-commands-add,
  .doska-command-day.doska-command-day,
  .doska-section-sort.doska-section-sort {
    min-height: 44px;
  }
}

/* ДВИЖЕНИЕ — проход 5, 29.09.2026. Строки и карточки меняли фон мгновенно: при быстром движении
   мыши список «мигал», и было не понять, на чём курсор. 120 мс на одном свойстве — ровно столько,
   чтобы связь «курсор → подсветка» читалась, и достаточно мало, чтобы не тормозить.
   Анимируется ТОЛЬКО цвет: раскладочные свойства трогать нельзя, они вызывают пересчёт страницы.
   Общее правило `prefers-reduced-motion` выше гасит это вместе со всеми остальными переходами. */
.doska-tasks-row,
.doska-profile-dropdown button,
.doska-sidebar-tree-row,
.doska-commands-table tbody tr,
.doska-collection-folder-chip {
  transition: background-color 120ms var(--doska-ease), border-color 120ms var(--doska-ease);
}
@media (max-width: 768px) {
  /* Содержимое не должно уезжать под панель: запас равен её высоте плюс безопасная зона. */
  .doska-missions-list, .doska-stash-grid, .doska-commands, .doska-calendar-view { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* Бабл ассистента поднимается над панелью, иначе он лежит на ней. */
  .doska-stash-ai-fab.doska-stash-ai-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
}

.doska-settings-privacy-short { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: var(--doska-text); }
.doska-settings-privacy-tip { position: relative; color: var(--doska-accent); cursor: help; text-decoration: underline; text-underline-offset: 3px; }
.doska-settings-privacy-tip-body { display: none; position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: 460px; max-width: 80vw; padding: 12px 14px; border-radius: var(--doska-radius-md); background: var(--doska-surface-raised); box-shadow: inset 0 0 0 1px var(--doska-hairline); }
.doska-settings-privacy-tip:hover .doska-settings-privacy-tip-body,
.doska-settings-privacy-tip:focus .doska-settings-privacy-tip-body,
.doska-settings-privacy-tip:focus-within .doska-settings-privacy-tip-body { display: block; }
.doska-settings-privacy-tip-body .doska-settings-privacy-list { margin: 0; padding-left: 16px; font-size: 13px; line-height: 1.5; color: var(--doska-text); }

/* Настройки: правая группа (аватар) прижата к правому краю, как на остальных страницах. Без строки
   поиска она без этого стояла сразу за логотипом. */
.doska-shell-card--topbar > .doska-topnav[data-layout='topbar'] > .doska-topnav-footer { margin-left: auto; }
/* Верхняя панель настроек на всю ширину, как на «Integrations»: без центрирования 1464px, со стандартными
   боковыми отступами страницы. Иначе «Back» и аватар уходят внутрь колонки. */
.doska-shell-card--topbar > .doska-topnav[data-layout='topbar'] { max-width: none; margin: 0; padding-left: 32px; padding-right: 32px; }


/* Настройки: левая колонка вкладок начинается на одной линии с логотипом (тот же отступ 32px, что у
   верхней панели), без центрирования общей колонки страницы. */
.doska-shell-card--topbar .doska-gallery-body { max-width: none; margin: 0; padding-left: 32px; padding-right: 32px; }

/* БИБЛИОТЕКА ЗАМЕТОК ВО ВСЮ ШИРИНУ МЕНЮ (10.10.2026) — по прямому запросу со скриншотом «используй по
   ширине, слишком узко сейчас» и «убрать вертикальные дивайдеры там». Правила полноширинных строк
   жили под .doska-notes-pane (отдельный столбец, снят) и до дропдаунa в меню не доставали: чип папки
   оставался узкой пилюлей, имя обрывалось на 5 буквах, «+» и «•••» держали место невидимками, а
   отступы трёх вложенных контейнеров съедали левый край. Специфичность через .doska-lib (0,5,0)
   перебивает общие правила меню (готча №1), стоят в конце файла. */
.doska-allnotes-category-pane .doska-lib.doska-lib { padding-left: 0; }
.doska-allnotes-category-pane .doska-lib .doska-lib-list { padding-left: 0; }
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row {
  display: flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 4px 0 4px; border-radius: var(--doska-radius-md);
}
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row:hover { background: var(--doska-hover); }
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row:has(> .doska-collection-folder-chip[data-active]) { background: var(--doska-selected); box-shadow: none; }
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-collection-folder-chip.doska-collection-folder-chip,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-collection-folder-chip.doska-collection-folder-chip:hover,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-collection-folder-chip[data-active].doska-collection-folder-chip[data-active] {
  display: flex; align-items: center; flex: 1 1 auto; min-width: 0; max-width: none; width: auto; height: auto; min-height: 30px;
  padding: 0 4px; margin: 0; border: none; border-radius: 0; background: transparent; box-shadow: none;
  justify-content: flex-start; text-align: left; white-space: nowrap; overflow: hidden; color: var(--doska-text); font-weight: 500;
}
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row .doska-chip-label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* «+» и «•••» не держат место, пока строка не под курсором. */
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-add-btn,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-project-card-menu-btn,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-add,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-row .doska-project-card-menu-btn {
  position: static; flex: none; width: 0; min-width: 0; padding: 0; border: none; background: none; box-shadow: none; overflow: hidden; opacity: 0;
}
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row:hover > .doska-allnotes-space-add-btn,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row:hover > .doska-project-card-menu-btn,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-project-card-menu-btn[data-active],
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-row:hover .doska-allnotes-space-tree-add,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-row:hover .doska-project-card-menu-btn,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-row .doska-project-card-menu-btn[data-active] {
  width: 20px; min-width: 20px; opacity: 1;
}
/* Без вертикальных линий: ни у уровней дерева, ни хвоста от строки папки к её дереву. */
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree { border-left: none; margin-left: 12px; padding-left: 0; }
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row[data-tree-open]::after,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row::before,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-node::before,
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree::before { display: none; content: none; }
/* Листья-заметки на той же сетке, что папки: иконка в колонке иконок, имя до правого края. */
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-leaf { width: 100%; min-height: 28px; padding: 0 4px; border-radius: var(--doska-radius-md); color: var(--doska-text-muted); }
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-leaf:hover { background: var(--doska-hover); color: var(--doska-text); }
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-leaf[data-active] { background: var(--doska-selected); color: var(--doska-text); }
/* Градиент-«затухание» под кнопками строки больше не нужен: кнопки в покое не занимают места. */
.doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-row::after { display: none; }

/* Слой Geist и токены дизайн-системы — в design-system.css (подключается после
   этого файла). Новые стили сюда не добавляются: см. docs/DESIGN_SYSTEM.md. */

/* ИКОНКА НАД ЗАГОЛОВКОМ в плитках папок хранилищ (20.10.2026, основатель: «иконки сверху над заголовком… ко всем
   карточкам в приложении»): значок папки верхним рядом, название и источник ниже; «Отключить» — справа сверху. */
.doska-space-tile { align-items: flex-start; min-height: 112px; }
.doska-space-tile-main { flex-direction: column; align-items: flex-start; gap: 10px; }
/* Карточки аналитики: значок над заголовком, как у всех карточек приложения (20.10.2026). */
.doska-dashboard-section-header h3 { flex-direction: column; align-items: flex-start; gap: 8px; }

/* Задание как MD-файл (30.10.2026): документ в рамке с именем файла; заголовки крупнее, чем в пузыре чата. */
.doska-mdfile { margin-top: 20px; border: 1px solid var(--doska-hairline); border-radius: var(--doska-radius-md, 10px); overflow: hidden; }
.doska-mdfile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--doska-hairline); background: var(--doska-surface); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12px; color: var(--doska-text-muted, var(--doska-text)); }
.doska-mdfile-body { padding: 18px 20px 22px; font-size: 15px; line-height: 1.7; }
.doska-mdfile-body .doska-markdown-heading { margin: 22px 0 8px; font-size: 15px; font-weight: 600; }
.doska-mdfile-body .doska-markdown-heading:first-child { margin-top: 0; font-size: 22px; letter-spacing: -0.01em; }
.doska-mdfile-body .doska-markdown-p, .doska-mdfile-body .doska-markdown-list { margin-bottom: 8px; }
.doska-mdfile-edit { display: block; width: 100%; box-sizing: border-box; min-height: 320px; padding: 18px 20px; border: 0; outline: 0; resize: vertical; background: transparent; color: inherit; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13px; line-height: 1.65; }
/* =====================================================================================================
   DOSKA VISUAL SYSTEM — Vercel Geist (11.11.2026).
   Geist's public guide is the authority for type, neutral color, contrast, component materials, and radii:
   https://vercel.com/geist/introduction. It is documentation rather than a distributable React component
   package, so the app keeps its existing shared Radix-based components in src/components/ui and Lucide
   icon family; Geist is applied through those shared primitives and scoped tokens, not parallel components.
   Tokens live on .doska-root by data-theme. Tailwind handles layout; domain selectors handle data views and
   interaction geometry. Shared controls use Radix primitives and these Geist materials. Loaded after doska.css.
   ===================================================================================================== */

/* Existing shared Radix-based primitives and Tailwind utilities are the only component foundation. */

/* Compatibility aliases for domain selectors; Geist remains the only color and type source. */
.doska-root {
  --doska-canvas: hsl(var(--background));
  --doska-surface: hsl(var(--card));
  --doska-surface-raised: hsl(var(--card));
  --doska-section-panel: hsl(var(--background));
  --doska-hairline: hsl(var(--border));
  --doska-hairline-strong: hsl(var(--border-strong));
  --doska-hover: hsl(var(--accent) / 0.5);
  --doska-selected: hsl(var(--accent));
  --doska-text: hsl(var(--foreground));
  --doska-text-muted: hsl(var(--muted-foreground));
  --doska-accent: hsl(var(--primary));
  --doska-accent-soft: hsl(var(--primary) / 0.1);
  --doska-accent-ink: hsl(var(--primary));
  --doska-accent-contrast: hsl(var(--primary-foreground));
  --doska-accent-brand: hsl(var(--primary));
  --doska-danger: var(--doska-destructive);
  --doska-success: hsl(var(--success));
  --doska-glass-rgb: 12, 12, 14;
  --doska-radius-sm: 6px;
  --doska-radius-md: 6px;
  --doska-radius-lg: 12px;
  --doska-font-ui: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --doska-font-display: var(--doska-font-ui);
  --doska-font-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.doska-root[data-theme='light'] {
  --doska-canvas: hsl(var(--background));
  --doska-surface: hsl(var(--card));
  --doska-surface-raised: hsl(var(--card));
  --doska-section-panel: hsl(var(--background));
  --doska-hairline: hsl(var(--border));
  --doska-hairline-strong: hsl(var(--border-strong));
  --doska-hover: hsl(var(--accent) / 0.5);
  --doska-selected: hsl(var(--accent));
  --doska-text: hsl(var(--foreground));
  --doska-text-muted: hsl(var(--muted-foreground));
  --doska-accent: hsl(var(--primary));
  --doska-accent-soft: hsl(var(--primary) / 0.1);
  --doska-accent-ink: hsl(var(--primary));
  --doska-accent-contrast: hsl(var(--primary-foreground));
  --doska-accent-brand: hsl(var(--primary));
  --doska-danger: var(--doska-destructive);
  --doska-success: hsl(var(--success));
  --doska-glass-rgb: 255, 255, 255;
}

/* Desktop shell: separate sidebar and content surfaces use Geist material tokens. */
.doska-root { --doska-sidebar: hsl(var(--sidebar-background)); --doska-backdrop: hsl(var(--background)); }
.doska-root[data-theme=light] { --doska-sidebar: hsl(var(--sidebar-background)); --doska-canvas: hsl(var(--background)); --doska-backdrop: hsl(var(--background)); }
@media (min-width: 769px) {
  .doska-root .doska-top-shell.doska-top-shell--sidebar { background: var(--doska-backdrop); }
  .doska-root .doska-allnotes-category-pane.doska-allnotes-category-pane {
    top: 8px; left: 8px; bottom: 8px;
    border: 1px solid var(--doska-hairline); border-radius: 12px;
    background: var(--doska-sidebar); box-shadow: var(--doska-shadow-sm, 0 1px 2px rgba(0,0,0,.05));
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body) {
    margin: 8px 8px 8px calc(var(--doska-pane-w) + 16px);
    border: 1px solid var(--doska-hairline); border-radius: 12px; background: var(--doska-canvas);
    box-shadow: var(--doska-shadow-sm, 0 1px 2px rgba(0,0,0,.05));
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body[data-pane-collapsed]) { margin-left: 108px; }
}

/* Shared component skin and compatibility tokens. Keep component visuals in src/components/ui. */
.doska-root {
  --doska-secondary: hsl(var(--secondary));
  --doska-input: hsl(var(--input));
  --doska-ring: hsl(var(--ring));
  --doska-popover: hsl(var(--popover));
  --doska-destructive: hsl(var(--destructive));
  --doska-destructive-fg: hsl(var(--destructive-foreground));
  --doska-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --doska-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --doska-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --doska-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --doska-border: var(--doska-hairline);
  --doska-text-dim: var(--doska-text-muted);
  --doska-text-faint: var(--doska-text-muted);
  --doska-radius: var(--doska-radius-md);
  --doska-font-body: var(--doska-font-ui);
  --doska-mono: var(--doska-font-mono);
  --doska-hover: hsl(var(--accent) / 0.5);
}
.doska-root[data-theme='light'] {
  --doska-secondary: hsl(var(--secondary));
  --doska-input: hsl(var(--input));
  --doska-ring: hsl(var(--ring));
  --doska-popover: hsl(var(--popover));
  --doska-destructive: hsl(var(--destructive));
}

/* ---------- Фокус: кольцо ring, как focus-visible:ring-1 ring-ring ---------- */
.doska-root button:focus-visible,
.doska-root a:focus-visible,
.doska-root [role='button']:focus-visible { outline: 2px solid var(--doska-ring); outline-offset: 2px; }

/* ---------- Button: default (primary) ---------- */
.doska-root .doska-inline-action--accent.doska-inline-action--accent,
.doska-root .doska-inline-action--solid.doska-inline-action--solid,
.doska-root .doska-header-create-btn.doska-header-create-btn,
.doska-root .doska-stash-folder-content-action.doska-stash-folder-content-action,
.doska-root .doska-project-hero-create-inline.doska-project-hero-create-inline,
.doska-root .doska-project-hero-mobile-create.doska-project-hero-mobile-create {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; min-height: 36px; width: auto; padding: 0 16px;
  border: none; border-radius: 6px; box-shadow: var(--doska-shadow-sm);
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; filter: none;
}
.doska-root .doska-inline-action--accent.doska-inline-action--accent:hover,
.doska-root .doska-inline-action--solid.doska-inline-action--solid:hover,
.doska-root .doska-header-create-btn.doska-header-create-btn:hover,
.doska-root .doska-stash-folder-content-action.doska-stash-folder-content-action:hover,
.doska-root .doska-project-hero-create-inline.doska-project-hero-create-inline:hover,
.doska-root .doska-project-hero-mobile-create.doska-project-hero-mobile-create:hover {
  background: color-mix(in srgb, var(--doska-accent) 90%, transparent); filter: none;
}

/* ---------- Button: secondary (основная общая кнопка Доски) ---------- */
.doska-root .doska-inline-action.doska-inline-action:not(.doska-inline-action--accent):not(.doska-inline-action--solid):not(.doska-inline-action--danger) {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border: none; border-radius: 6px; box-shadow: var(--doska-shadow-sm);
  background: var(--doska-secondary); color: var(--doska-text);
  font-size: 14px; font-weight: 500; white-space: nowrap; filter: none;
}
.doska-root .doska-inline-action.doska-inline-action:not(.doska-inline-action--accent):not(.doska-inline-action--solid):not(.doska-inline-action--danger):hover {
  background: color-mix(in srgb, var(--doska-secondary) 80%, transparent); filter: none;
}
.doska-root .doska-inline-action.doska-inline-action:disabled { opacity: 0.5; pointer-events: none; }

/* ---------- Button: destructive ---------- */
.doska-root .doska-inline-action--danger.doska-inline-action--danger,
.doska-root .doska-settings-danger-btn.doska-settings-danger-btn,
.doska-root .doska-drawer-menu-confirm-yes.doska-drawer-menu-confirm-yes {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px; border: none !important; border-radius: 6px; box-shadow: var(--doska-shadow-sm);
  background: var(--doska-destructive) !important; color: var(--doska-destructive-fg) !important;
  font-size: 14px; font-weight: 500;
}
.doska-root .doska-inline-action--danger.doska-inline-action--danger:hover,
.doska-root .doska-settings-danger-btn.doska-settings-danger-btn:hover,
.doska-root .doska-drawer-menu-confirm-yes.doska-drawer-menu-confirm-yes:hover {
  background: color-mix(in srgb, var(--doska-destructive) 90%, transparent) !important;
}

/* ---------- Button: outline, размер sm (h-8, px-3, text-xs) ---------- */
.doska-root .doska-stash-group-toggle.doska-stash-group-toggle,
.doska-root .doska-stash-bulk-bar-btn.doska-stash-bulk-bar-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 32px; min-height: 32px; padding: 0 12px; border-radius: 6px;
  border: 1px solid var(--doska-input); background: transparent; color: var(--doska-text);
  box-shadow: var(--doska-shadow-sm); font-size: 13px; font-weight: 500;
}
.doska-root .doska-stash-group-toggle.doska-stash-group-toggle:hover,
.doska-root .doska-stash-bulk-bar-btn.doska-stash-bulk-bar-btn:hover { background: var(--doska-secondary); }
.doska-root .doska-stash-group-toggle.doska-stash-group-toggle[data-active],
.doska-root .doska-stash-bulk-bar-btn.doska-stash-bulk-bar-btn[data-active] {
  background: var(--doska-secondary); border-color: var(--doska-input); color: var(--doska-text);
}
.doska-root .doska-stash-bulk-bar-btn--danger.doska-stash-bulk-bar-btn--danger { color: var(--doska-destructive); }

/* ---------- Button: ghost ---------- */
.doska-root .doska-modal-actions > button:not(.doska-inline-action):not(.doska-settings-danger-btn) {
  height: 36px; padding: 0 16px; border-radius: 6px; font-size: 14px; font-weight: 500; color: var(--doska-text);
}
.doska-root .doska-modal-actions > button:not(.doska-inline-action):not(.doska-settings-danger-btn):hover { background: var(--doska-secondary); }
.doska-root .doska-modal-close.doska-modal-close,
.doska-root .doska-toast-close.doska-toast-close,
.doska-root .doska-project-card-menu-btn.doska-project-card-menu-btn {
  border: none; border-radius: 6px; background: transparent; box-shadow: none; color: var(--doska-text-muted);
}
.doska-root .doska-modal-close.doska-modal-close:hover,
.doska-root .doska-toast-close.doska-toast-close:hover,
.doska-root .doska-project-card-menu-btn.doska-project-card-menu-btn:hover,
.doska-root .doska-project-card-menu-btn.doska-project-card-menu-btn[data-active] { background: var(--doska-secondary); color: var(--doska-text); }

/* ---------- Input / Textarea / Select ---------- */
.doska-root .doska-modal-input.doska-modal-input,
.doska-root .doska-modal-select.doska-modal-select,
.doska-root .doska-modal-textarea.doska-modal-textarea {
  height: 36px; padding: 4px 12px; border: 1px solid var(--doska-input); border-radius: 6px;
  background: transparent; box-shadow: var(--doska-shadow-sm); color: var(--doska-text);
  font-size: 14px; line-height: 1.5;
}
.doska-root textarea.doska-modal-input.doska-modal-input,
.doska-root .doska-modal-textarea.doska-modal-textarea { height: auto; min-height: 60px; padding: 8px 12px; }
.doska-root .doska-modal-select.doska-modal-select { padding-right: 32px; }
.doska-root .doska-modal-input.doska-modal-input::-moz-placeholder, .doska-root .doska-modal-textarea.doska-modal-textarea::-moz-placeholder { color: var(--doska-text-muted); }
.doska-root .doska-modal-input.doska-modal-input::placeholder,
.doska-root .doska-modal-textarea.doska-modal-textarea::placeholder { color: var(--doska-text-muted); }
.doska-root .doska-modal-input.doska-modal-input:focus-visible,
.doska-root .doska-modal-select.doska-modal-select:focus-visible,
.doska-root .doska-modal-textarea.doska-modal-textarea:focus-visible {
  outline: none; box-shadow: 0 0 0 1px var(--doska-ring);
}
.doska-root .doska-modal-input.doska-modal-input:disabled { opacity: 0.5; cursor: not-allowed; }
/* Поиск: тот же Input, высота h-9; крупная строка поиска раздела — h-10. */
.doska-root .doska-search.doska-search {
  min-height: 36px; padding: 0 12px; border: 1px solid var(--doska-input); border-radius: 6px;
  background: transparent; box-shadow: var(--doska-shadow-sm);
}
.doska-root .doska-search.doska-search[data-focused] { border-color: var(--doska-input); box-shadow: 0 0 0 1px var(--doska-ring); }
.doska-root .doska-inline-search .doska-search.doska-search { min-height: 40px; border-radius: 6px; }
.doska-root .doska-search.doska-search input { font-size: 14px; }

/* ---------- Label / описание поля ---------- */
.doska-root .doska-modal-label.doska-modal-label { font-size: 14px; font-weight: 500; line-height: 1; color: var(--doska-text); margin-bottom: 8px; }
.doska-root .doska-modal-hint.doska-modal-hint { font-size: 13px; color: var(--doska-text-muted); }

/* ---------- Badge (new-york: rounded-md, px-2.5 py-0.5, text-xs font-semibold) ---------- */
.doska-root .doska-chip.doska-chip,
.doska-root .doska-settings-connected-badge.doska-settings-connected-badge,
.doska-root .doska-stash-active-filter-chip.doska-stash-active-filter-chip,
.doska-root .doska-collection-folder-count.doska-collection-folder-count,
.doska-root .doska-tasks-group-count.doska-tasks-group-count {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 6px;
  border: 1px solid transparent; font-size: 12px; font-weight: 600; line-height: 16px;
  background: var(--doska-secondary); color: var(--doska-text);
}
.doska-root .doska-chip--accent.doska-chip--accent { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-root .doska-settings-connected-badge.doska-settings-connected-badge { background: transparent; border-color: var(--doska-input); color: var(--doska-success); }

/* ---------- Tabs (TabsList h-9 rounded-lg bg-muted p-1; trigger rounded-md, active bg-background shadow) ---------- */
.doska-root .doska-stash-view-toggle.doska-stash-view-toggle,
.doska-root .doska-tasks-view-toggle.doska-tasks-view-toggle {
  display: inline-flex; align-items: center; height: 36px; padding: 4px; gap: 0;
  border-radius: 8px; background: var(--doska-secondary); border: none; box-shadow: none;
}
.doska-root .doska-stash-view-toggle-btn.doska-stash-view-toggle-btn,
.doska-root .doska-tasks-view-toggle.doska-tasks-view-toggle button {
  height: 28px; min-width: 28px; padding: 0 12px; border-radius: 6px; border: none;
  background: transparent; color: var(--doska-text-muted); box-shadow: none; font-size: 14px; font-weight: 500;
}
.doska-root .doska-stash-view-toggle-btn.doska-stash-view-toggle-btn { padding: 0 8px; }
.doska-root .doska-stash-view-toggle-btn.doska-stash-view-toggle-btn:hover,
.doska-root .doska-tasks-view-toggle.doska-tasks-view-toggle button:hover { background: transparent; color: var(--doska-text); }
.doska-root .doska-stash-view-toggle-btn.doska-stash-view-toggle-btn[data-active],
.doska-root .doska-tasks-view-toggle.doska-tasks-view-toggle button[data-active] {
  background: var(--doska-canvas); color: var(--doska-text); box-shadow: var(--doska-shadow); font-weight: 500;
}
/* Подчёркнутые вкладки: активная — цветом текста, не акцентом. */
.doska-root .doska-space-tab.doska-space-tab[data-active] { box-shadow: inset 0 -2px 0 var(--doska-text); color: var(--doska-text); }

/* ---------- Card (rounded-xl border bg-card shadow) ---------- */
.doska-root .doska-stash-card.doska-stash-card,
.doska-root .doska-settings-card.doska-settings-card,
.doska-root .doska-dashboard-card.doska-dashboard-card,
.doska-root .doska-tasks-panel.doska-tasks-panel {
  border: 1px solid var(--doska-hairline); border-radius: 12px; background: var(--doska-surface); box-shadow: var(--doska-shadow);
}
.doska-root .doska-stash-card.doska-stash-card:hover { transform: none; border-color: var(--doska-hairline-strong); }
.doska-root .doska-stash-card.doska-stash-card[data-pinned] { border-color: var(--doska-hairline-strong); box-shadow: var(--doska-shadow); }
.doska-root .doska-stash-card.doska-stash-card[data-selected] { box-shadow: 0 0 0 2px var(--doska-ring); }

/* ---------- DropdownMenu / Popover ---------- */
/* Как sortMenu прототипа doska-flush (12.10.2026): min-w 224px, p-1, рамка, БЕЗ тени; пункты h-8 rounded-md px-2 14/400;
   колонка 16px под галочку; подписи групп 12/500 muted. */
.doska-root .doska-review-dropdown.doska-review-dropdown,
.doska-root .doska-drawer-menu.doska-drawer-menu,
.doska-root .doska-project-menu.doska-project-menu,
.doska-root .doska-profile-dropdown.doska-profile-dropdown,
.doska-root .doska-header-create-menu.doska-header-create-menu,
.doska-root .doska-stash-toolbar-dropdown.doska-stash-toolbar-dropdown,
.doska-root .doska-stash-bulk-move-menu.doska-stash-bulk-move-menu,
.doska-root .doska-note-menu.doska-note-menu {
  min-width: 224px; padding: 4px; border: 1px solid var(--doska-hairline); border-radius: 6px;
  background: var(--doska-popover); color: var(--doska-text); box-shadow: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
.doska-root .doska-review-dropdown-item.doska-review-dropdown-item,
.doska-root .doska-drawer-menu-item.doska-drawer-menu-item,
.doska-root .doska-profile-dropdown.doska-profile-dropdown button,
.doska-root .doska-create-menu-item.doska-create-menu-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 0 8px; border: none; border-radius: 6px;
  font-size: 14px; font-weight: 400; line-height: 20px; text-align: left; color: var(--doska-text); background: transparent;
}
.doska-root .doska-review-dropdown-item.doska-review-dropdown-item:hover,
.doska-root .doska-drawer-menu-item.doska-drawer-menu-item:hover,
.doska-root .doska-profile-dropdown.doska-profile-dropdown button:hover,
.doska-root .doska-profile-dropdown.doska-profile-dropdown button[data-active],
.doska-root .doska-create-menu-item.doska-create-menu-item:hover { background: hsl(var(--accent)); color: var(--doska-text); }
.doska-root .doska-drawer-menu-item--danger.doska-drawer-menu-item--danger { color: var(--doska-destructive); }
.doska-root .doska-drawer-menu-item--danger.doska-drawer-menu-item--danger:hover { background: color-mix(in srgb, var(--doska-destructive) 10%, transparent); color: var(--doska-destructive); }
.doska-root .doska-review-dropdown-sep.doska-review-dropdown-sep { height: 1px; margin: 4px -4px; background: var(--doska-hairline); border: none; }
.doska-root .doska-review-dropdown-label.doska-review-dropdown-label {
  padding: 6px 8px 4px; font-size: 12px; font-weight: 500; text-transform: none; letter-spacing: 0; color: var(--doska-text-muted);
}
.doska-root .doska-review-dropdown-check.doska-review-dropdown-check { display: inline-grid; place-items: center; width: 16px; flex: none; color: var(--doska-text); }

/* ---------- Dialog / Sheet ---------- */
.doska-root .doska-modal-backdrop.doska-modal-backdrop,
.doska-root .doska-stash-create-backdrop.doska-stash-create-backdrop,
.doska-root .doska-stash-modal-backdrop.doska-stash-modal-backdrop { background: rgba(0, 0, 0, 0.8); backdrop-filter: none; -webkit-backdrop-filter: none; }
.doska-root .doska-modal.doska-modal,
.doska-root .doska-stash-create-modal.doska-stash-create-modal,
.doska-root .doska-quick-modal.doska-quick-modal {
  background: var(--doska-canvas); border: 1px solid var(--doska-hairline); border-radius: 12px;
  box-shadow: var(--doska-shadow-lg); backdrop-filter: none; -webkit-backdrop-filter: none;
}
.doska-root .doska-modal.doska-modal { padding: 24px; }
.doska-root .doska-modal-title.doska-modal-title { font-size: 18px; font-weight: 600; line-height: 1; letter-spacing: -0.01em; }
.doska-root .doska-modal-actions.doska-modal-actions { gap: 8px; margin-top: 24px; }
.doska-root .doska-drawer.doska-drawer { background: var(--doska-canvas); border-left: 1px solid var(--doska-hairline); box-shadow: var(--doska-shadow-lg); }

/* ---------- Checkbox (h-4 w-4 rounded-sm border-primary; checked bg-primary) ---------- */
.doska-root input[type='checkbox']:not([role='switch']) {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; flex: none; width: 16px; height: 16px; margin: 0;
  border: 1px solid var(--doska-accent); border-radius: 4px; background: transparent no-repeat center / 12px 12px;
  box-shadow: var(--doska-shadow-sm); cursor: pointer;
}
.doska-root input[type='checkbox']:not([role='switch']):checked {
  background-color: var(--doska-accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.doska-root[data-theme='light'] input[type='checkbox']:not([role='switch']):checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fafafa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.doska-root input[type='checkbox']:focus-visible,
.doska-root input[type='radio']:focus-visible { outline: 2px solid var(--doska-ring); outline-offset: 2px; }
.doska-root input[type='checkbox']:disabled,
.doska-root input[type='radio']:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- RadioGroupItem (aspect-square h-4 w-4 rounded-full border-primary) ---------- */
.doska-root input[type='radio'] {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; flex: none; width: 16px; height: 16px; margin: 0;
  border: 1px solid var(--doska-accent); border-radius: 999px; background: transparent; box-shadow: var(--doska-shadow-sm); cursor: pointer;
}
.doska-root input[type='radio']:checked { background: radial-gradient(circle, var(--doska-accent) 0 4px, transparent 4.5px); }

/* ---------- Switch (h-5 w-9 rounded-full; thumb h-4 w-4 bg-background) ---------- */
.doska-root input[type='checkbox'][role='switch'] {
  -webkit-appearance: none; -moz-appearance: none; appearance: none; flex: none; width: 36px; height: 20px; margin: 0;
  border: 2px solid transparent; border-radius: 999px; cursor: pointer; box-shadow: var(--doska-shadow-sm);
  background: radial-gradient(circle at 8px 50%, var(--doska-canvas) 0 7px, transparent 7.5px), var(--doska-input);
  transition: background 0.15s;
}
.doska-root input[type='checkbox'][role='switch']:checked {
  background: radial-gradient(circle at 24px 50%, var(--doska-canvas) 0 7px, transparent 7.5px), var(--doska-accent);
}

/* ---------- Toast (border bg-background p-4 shadow-lg rounded-md) ---------- */
.doska-root .doska-toast.doska-toast {
  padding: 12px 16px; border: 1px solid var(--doska-hairline); border-radius: 6px;
  background: var(--doska-canvas); color: var(--doska-text); box-shadow: var(--doska-shadow-lg); font-size: 14px;
}
.doska-root .doska-toast.doska-toast button:not(.doska-toast-close) {
  height: 32px; padding: 0 12px; border: 1px solid var(--doska-input); border-radius: 6px;
  color: var(--doska-text); font-size: 13px; font-weight: 500; text-decoration: none;
}
.doska-root .doska-toast.doska-toast button:not(.doska-toast-close):hover { background: var(--doska-secondary); text-decoration: none; }

/* ---------- Avatar (rounded-full, fallback bg-muted) ---------- */
.doska-root .doska-profile-avatar.doska-profile-avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--doska-secondary); color: var(--doska-text); font-size: 12px; font-weight: 500;
}

/* БЕЗ ТЕНЕЙ (10.10.2026) — по прямому запросу «убрать тени» после перехода на плавающую оболочку.
   Все тени слоя предыдущей системы (кнопки, поля, карточки, меню, модалки, тосты, карточки оболочки) берутся из
   этих четырёх токенов, поэтому обнуление здесь гасит их разом; края держат рамки 1px. */
.doska-root {
  --doska-shadow-sm: none;
  --doska-shadow: none;
  --doska-shadow-md: none;
  --doska-shadow-lg: none;
}

/* «ВХОДЯЩИЕ» (10.10.2026, раскладка 6 прототипа, см. InboxView.tsx): заголовок, фильтры по типу,
   карточки записей с бейджем «похоже на: …» и кнопками разбора. Компоненты — те же, что у остального
   слоя предыдущей системы: Badge (.doska-chip), Button outline sm (.doska-stash-group-toggle), Input. */
.doska-inbox { display: flex; flex-direction: column; gap: var(--s-3); width: 100%; max-width: 1040px; margin: 0 auto; padding: var(--s-4) var(--s-3); }
.doska-inbox-head { display: flex; align-items: flex-start; gap: var(--s-2); flex-wrap: wrap; }
.doska-inbox-head-text { flex: 1 1 280px; min-width: 0; }
.doska-inbox-title { font-family: var(--doska-font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--doska-text); }
.doska-inbox-sub { margin-top: 6px; font-size: 14px; color: var(--doska-text-muted); }
.doska-inbox-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.doska-root .doska-inbox-filter.doska-inbox-filter { height: 32px; padding: 0 12px; font-size: 13px; font-weight: 500; background: var(--doska-secondary); color: var(--doska-text); cursor: pointer; }
.doska-root .doska-inbox-filter.doska-inbox-filter[data-active] { background: var(--doska-accent); color: var(--doska-accent-contrast); }
.doska-inbox-filter-count { opacity: 0.7; margin-left: 2px; }
.doska-inbox-list { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.doska-inbox-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px;
  border: 1px solid var(--doska-hairline); border-radius: 12px; background: var(--doska-surface);
}
.doska-inbox-row:hover { border-color: var(--doska-hairline-strong); }
.doska-inbox-row[data-busy] { opacity: 0.6; }
.doska-root .doska-inbox-main.doska-inbox-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 0; background: none; border: none; }
.doska-inbox-source { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--doska-text-muted); }
.doska-inbox-row-title { font-size: 16px; font-weight: 500; color: var(--doska-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doska-inbox-row-snippet { font-size: 14px; color: var(--doska-text-muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.doska-inbox-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doska-root .doska-inbox-guess.doska-inbox-guess { height: 28px; padding: 0 12px; border-radius: 999px; font-weight: 500; white-space: nowrap; }
.doska-root .doska-inbox-actions .doska-stash-group-toggle[data-active] { border-color: var(--doska-text); }
.doska-inbox-event { flex: 1 1 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--doska-hairline); }
.doska-root .doska-inbox-event .doska-modal-label.doska-modal-label { margin: 0 4px 0 0; }
.doska-root .doska-inbox-event .doska-modal-input.doska-modal-input { width: auto; min-width: 220px; }
.doska-inbox-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 64px 24px; border: 1px dashed var(--doska-hairline-strong); border-radius: 12px; color: var(--doska-text-muted); text-align: center; }
.doska-inbox-empty-title { font-size: 16px; font-weight: 600; color: var(--doska-text); }
.doska-inbox-empty p { max-width: 46ch; font-size: 14px; }
@media (max-width: 768px) {
  .doska-inbox { padding: var(--s-2); }
  .doska-inbox-title { font-size: 24px; }
  .doska-inbox-row { padding: 14px; }
}

/* НАСТРОЙКИ ПРОФИЛЯ ЕДИНООБРАЗНО (10.10.2026) — по прямому запросу «не забываем про настройки профиля
   сделать единообразно». Экраны с верхним меню (Настройки, Интеграции, FAQ) — та же плавающая
   карточка, что у основной оболочки: общий фон --doska-backdrop, рамка 1px, скругление 12, без тени.
   Меню разделов настроек — как пункты сайдбара предыдущей системы (h-8, px-2, radius 6, активный — bg secondary),
   секции — Card (rounded-xl, border), заголовок страницы — как у «Входящих». Поля, переключатели и
   кнопки внутри уже приведены общим слоем компонентов выше. */
@media (min-width: 769px) {
  .doska-root .doska-top-shell.doska-top-shell--topbar { background: var(--doska-backdrop); }
  .doska-root .doska-shell-card.doska-shell-card--topbar {
    margin: 8px; border: 1px solid var(--doska-hairline); border-radius: 12px; background: var(--doska-canvas); box-shadow: none;
  }
  .doska-root .doska-shell-card--topbar > .doska-topnav[data-layout='topbar'] { border-bottom: 1px solid var(--doska-hairline); }
}
.doska-root .doska-settings-card.doska-settings-card { border: 1px solid var(--doska-hairline); border-radius: 12px; background: var(--doska-surface); }

/* ОБОЛОЧКА «ВПЛОТНУЮ», ОКОНЧАТЕЛЬНО (10.10.2026) — по прямому запросу «давай В · Вплотную (sidebar):
   без карточек и отступов: сайдбар во всю высоту отделён одной вертикальной линией, секции внутри —
   линиями, а не рамками». Отменяет «Плавающую» (блок выше) и стоит ПОСЛЕ неё: та же специфичность,
   выигрывает порядок (готча №1). Касается и экранов с верхним меню (Настройки, Интеграции, FAQ), и
   секций внутри: строки «Входящих» и секции настроек разделены линией, а не обведены. */
.doska-root { --doska-sidebar: #0c0c0e; --doska-backdrop: var(--doska-canvas); }
.doska-root[data-theme='light'] { --doska-sidebar: #fafafa; --doska-backdrop: var(--doska-canvas); }
@media (min-width: 769px) {
  .doska-root .doska-top-shell.doska-top-shell--sidebar,
  .doska-root .doska-top-shell.doska-top-shell--topbar { background: var(--doska-canvas); }
  .doska-root .doska-allnotes-category-pane.doska-allnotes-category-pane {
    top: 0; left: 0; bottom: 0;
    border: none; border-right: 1px solid var(--doska-hairline); border-radius: 0;
    background: var(--doska-sidebar); box-shadow: none;
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body) {
    margin: 0 0 0 var(--doska-pane-w); border: none; border-radius: 0; background: var(--doska-canvas); box-shadow: none;
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body[data-pane-collapsed]) { margin-left: 92px; }
  .doska-root .doska-shell-card.doska-shell-card--topbar { margin: 0; border: none; border-radius: 0; background: var(--doska-canvas); }
}
/* Секции линиями: строки «Входящих» — список с разделителями, а не стопка карточек. */
.doska-inbox-list { gap: 0; border-top: 1px solid var(--doska-hairline); }
.doska-inbox-row { border: none; border-bottom: 1px solid var(--doska-hairline); border-radius: 0; background: transparent; padding: 16px 4px; }
.doska-inbox-row:hover { background: var(--doska-hover); }
.doska-root .doska-settings-card.doska-settings-card { border: none; border-top: 1px solid var(--doska-hairline); border-radius: 0; background: transparent; padding-left: 0; padding-right: 0; }

/* ОБОЛОЧКА «ВСТАВКА» (inset) (10.10.2026) — по прямому запросу «давай сделаем А · Вставка (inset):
   сайдбар лежит прямо на фоне без обводки, рабочая область — одна приподнятая карточка с тонкой
   рамкой и мягкой тенью, отступ 8 px». Как Sidebar variant="inset" в предыдущей системы. Отменяет «Вплотную»
   (блок выше) и стоит после него — выигрывает порядок при той же специфичности (готча №1).
   Фон страницы = фон сайдбара (--doska-sidebar), рабочая область — --doska-canvas. Тень только у
   этой одной карточки: остальные тени сняты по запросу «убрать тени», а здесь она часть варианта. */
.doska-root { --doska-sidebar: hsl(var(--sidebar-background)); --doska-inset-shadow: var(--doska-shadow-sm); }
.doska-root[data-theme='light'] { --doska-sidebar: hsl(var(--sidebar-background)); --doska-canvas: hsl(var(--background)); --doska-inset-shadow: var(--doska-shadow-sm); }
@media (min-width: 769px) {
  .doska-root .doska-top-shell.doska-top-shell--sidebar,
  .doska-root .doska-top-shell.doska-top-shell--topbar { background: var(--doska-sidebar); }
  .doska-root .doska-allnotes-category-pane.doska-allnotes-category-pane {
    top: 0; left: 0; bottom: 0; border: none; border-radius: 0; background: transparent; box-shadow: none;
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body) {
    margin: 8px 8px 8px var(--doska-pane-w);
    border: 1px solid var(--doska-hairline); border-radius: 12px; background: var(--doska-canvas); box-shadow: var(--doska-inset-shadow);
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body[data-pane-collapsed]) { margin-left: 92px; }
  .doska-root .doska-shell-card.doska-shell-card--topbar {
    margin: 8px; border: 1px solid var(--doska-hairline); border-radius: 12px; background: var(--doska-canvas); box-shadow: var(--doska-inset-shadow);
  }
}

/* Тень у рабочей карточки «Вставки» снята — по прямому запросу «у рабочей карточки убери тень». */
.doska-root, .doska-root[data-theme='light'] { --doska-inset-shadow: none; }

/* МОБИЛЬНАЯ ВЕРСИЯ ПО SHADCN/UI (11.10.2026) — по прямому запросу «моб версию тоже приведи в порядок».
   1. Кнопка ассистента: текст был жёстко #fff, а фон --doska-accent-brand в теме предыдущей системы на тёмной теме
      почти белый (#fafafa) — надпись пропадала. Теперь primary / primary-foreground, без пульсации
      свечением (тени сняты по запросу «убрать тени»).
   2. Нижняя панель вкладок: фон страницы, линия сверху, активная вкладка — текст и вес 500, «Создать» —
      кнопка size icon-lg (44px) со скруглением 8, а не круг.
   3. Полоса «задание ждёт ответа»: рамка была акцентом (белая на тёмной теме) — теперь тонкая рамка,
      как у Card, и точка-индикатор цветом primary слева.
   4. Меню-бургер и шторка — Sheet предыдущей системы: затемнение 80%, панель цветом сайдбара с линией справа.
   5. Шапка — линия снизу, кнопки 36px. */
.doska-root .doska-stash-ai-fab.doska-stash-ai-fab {
  background: var(--doska-accent); color: var(--doska-accent-contrast);
  border: 1px solid var(--doska-hairline-strong); animation: none; box-shadow: none; filter: none;
}
.doska-root .doska-stash-ai-fab.doska-stash-ai-fab:hover { background: color-mix(in srgb, var(--doska-accent) 90%, transparent); filter: none; }
@media (max-width: 768px) {
  .doska-root .doska-mobile-sections.doska-mobile-sections { background: rgba(0, 0, 0, 0.8); }
  .doska-root .doska-mobile-sections .doska-allnotes-category-pane.doska-allnotes-category-pane {
    background: var(--doska-sidebar); border: none; border-right: 1px solid var(--doska-hairline); border-radius: 0; box-shadow: none;
  }
  /* Страницы на телефоне — тот же фон, без карточек оболочки: на узком экране рамка и отступы съедают ширину. */
  .doska-root .doska-shell-card.doska-shell-card { margin: 0; border: none; border-radius: 0; box-shadow: none; }
  .doska-root .doska-top-shell.doska-top-shell { background: var(--doska-canvas); }
}
/* Колонка документа 720px. */
.doska-root .doska-stash-inline .doska-stash-modal.doska-stash-modal { max-width: 720px; padding: 32px 24px 64px; }
/* «Суть» — выделенная вставка. */
.doska-root .doska-stash-inline .doska-drawer-summary {
  padding: 16px; border: 1px solid var(--doska-hairline); border-radius: 8px; background: color-mix(in srgb, var(--doska-secondary) 45%, transparent);
}
.doska-root .doska-stash-inline .doska-drawer-summary-head { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--doska-text); text-transform: none; letter-spacing: 0; }
.doska-root .doska-stash-inline .doska-drawer-source-guide-summary { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--doska-text-muted); }

/* ЭКРАН ТЕГА: КАРТОЧКИ ВНИЗУ (12.10.2026) — живой отчёт со скриншотом «заметки превью болтаются где-то
   внизу». Столбец тегов стоял с grid-row: 1 / -1, но явных строк у сетки нет, поэтому -1 указывает на
   конец первой же строки: столбец занимал ОДНУ строку и растягивал её на свою высоту (сотни тегов),
   а сетка карточек попадала во вторую строку — ниже всего списка. Теперь столбец тянется на все
   строки правой части (span 40 неявных строк нулевой высоты), промежутки между блоками справа —
   отступом снизу, а не row-gap, иначе сорок пустых строк дали бы сорок промежутков. */
@media (min-width: 901px) {
  .doska-root .doska-tag-layout.doska-tag-layout[data-side] { row-gap: 0; grid-auto-rows: min-content; }
  .doska-root .doska-tag-layout.doska-tag-layout[data-side] > .doska-tag-strip { grid-row: 1 / span 40; }
  .doska-root .doska-tag-layout.doska-tag-layout[data-side] > *:not(.doska-tag-strip) { margin-bottom: var(--s-2); }
}

/* САЙДБАР И РЕЙЛ ПО SHADCN/UI (12.10.2026) — по прямому запросу «приведи к стилям сайдбар и рейл».
   Размеры и состояния компонента Sidebar из предыдущей системы (new-york):
   - SidebarMenuButton: h-8, px-2, gap-2, rounded-md, text-sm; наведение и активный — bg sidebar-accent
     (--doska-secondary), активный ещё font-medium; иконка 16px.
   - SidebarGroupLabel: h-8, px-2, text-xs, font-medium, цвет приглушённый, без заглавных.
   - Шапка с лого — h-12; кнопка сворачивания — ghost icon 28px.
   - Счётчик «ждёт ответа» — Badge primary; полоса расхода ИИ — Progress (h-1.5, bg secondary, primary).
   Свёрнутый рейл оставлен «иконка + подпись снизу» (прямой запрос ранее), но с теми же скруглениями,
   отступами и состояниями. Специфичность через .doska-root + удвоенный класс (готча №1). */
.doska-root .doska-allnotes-category-pane.doska-allnotes-category-pane { gap: 1px; padding: 8px; }
.doska-root .doska-allnotes-category-pane .doska-allnotes-pane-logo { min-height: 48px; padding: 0 8px; margin-bottom: 4px; }
.doska-root .doska-allnotes-category-pane .doska-allnotes-pane-collapse.doska-allnotes-pane-collapse {
  width: 28px; height: 28px; border-radius: 6px; border: none; background: transparent; color: var(--doska-text-muted);
}
.doska-root .doska-allnotes-category-pane .doska-allnotes-pane-collapse.doska-allnotes-pane-collapse:hover { background: var(--doska-secondary); color: var(--doska-text); }
.doska-root .doska-allnotes-category-pane .doska-collection-folder-chip.doska-collection-folder-chip {
  min-height: 32px; padding: 0 8px; gap: 8px; border: none; border-radius: 6px;
  font-size: 14px; font-weight: 400; line-height: 20px; color: var(--doska-text);
}
.doska-root .doska-allnotes-category-pane .doska-collection-folder-chip.doska-collection-folder-chip:hover { background: var(--doska-secondary); color: var(--doska-text); }
.doska-root .doska-allnotes-category-pane .doska-collection-folder-chip[data-active].doska-collection-folder-chip[data-active] {
  background: var(--doska-secondary); color: var(--doska-text); font-weight: 500;
}
.doska-root .doska-allnotes-category-pane .doska-chip-icon { margin-right: 0; color: var(--doska-text-muted); }
.doska-root .doska-allnotes-category-pane .doska-chip-icon svg { width: 16px; height: 16px; }
.doska-root .doska-allnotes-category-pane .doska-collection-folder-chip[data-active] .doska-chip-icon,
.doska-root .doska-allnotes-category-pane .doska-collection-folder-chip:hover .doska-chip-icon { color: var(--doska-text); }
.doska-root .doska-allnotes-category-pane .doska-collection-folder-chip-count { font-size: 12px; font-weight: 400; color: var(--doska-text-muted); font-variant-numeric: tabular-nums; }
.doska-root .doska-allnotes-category-pane .doska-collection-folder-chip-count[data-awaiting] {
  display: inline-flex; margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; align-items: center; justify-content: center;
  border-radius: 6px; background: var(--doska-accent); color: var(--doska-accent-contrast); font-size: 11px; font-weight: 600;
}
.doska-root .doska-allnotes-category-pane .doska-rail-group.doska-rail-group {
  display: flex; align-items: center; min-height: 32px; margin: 12px 0 0; padding: 0 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--doska-text-muted); opacity: 1;
}
.doska-root .doska-allnotes-category-pane .doska-allnotes-space-toggle { width: 24px; height: 24px; border-radius: 6px; }
.doska-root .doska-allnotes-category-pane .doska-allnotes-space-toggle:hover { background: var(--doska-secondary); }
/* Полоса расхода ИИ — Progress. */
.doska-root .doska-rail-tokens.doska-rail-tokens { gap: 6px; padding: 12px 8px 4px; margin-top: auto; border-top: 1px solid var(--doska-hairline); }
.doska-root .doska-rail-tokens-label { font-size: 12px; color: var(--doska-text-muted); }
.doska-root .doska-rail-tokens-hint { font-size: 12px; opacity: 1; }
.doska-root .doska-rail-tokens-bar.doska-rail-tokens-bar { height: 6px; background: var(--doska-secondary); }
.doska-root .doska-rail-tokens-bar > span { background: var(--doska-accent); }
/* Свёрнутый рейл: те же состояния, плитка иконка + подпись. */
@media (min-width: 769px) {
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-collection-folder-chip.doska-collection-folder-chip {
    min-height: 52px; padding: 6px 4px; gap: 4px; border-radius: 8px; flex-direction: column; justify-content: center; text-align: center;
  }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-chip-icon svg { width: 18px; height: 18px; }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-chip-label { font-size: 11px; font-weight: 500; line-height: 1.2; }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-pane-collapse.doska-allnotes-pane-collapse { width: 36px; height: 36px; margin: 0 auto; }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-rail-group.doska-rail-group { justify-content: center; min-height: 0; margin: 10px 8px 4px; padding: 0; height: 1px; background: var(--doska-hairline); font-size: 0; }
}

/* ПРЕВЬЮ КАРТОЧЕК ПО SHADCN/UI (12.10.2026) — по прямому запросу со скриншотом «привести к стилям и
   улучшить превью карточек». Найдено:
   1. Заглушка без картинки — цветной градиент (inline-стиль fallbackGradientFor) → нейтральный фон
      muted и приглушённая иконка; цвет остаётся только у метки вида документа (PDF красный и т. д.).
   2. Четыре кнопки поверх превью разной формы: круг со стеклом, тёмный круг, квадрат → одна форма
      Button ghost-icon 28px, скругление 6, подложка фона с рамкой; видны по наведению.
   3. Метки «Google Drive» и «Источник» — стеклянные таблетки → Badge outline поверх превью.
   4. Текст под превью без общей сетки (мета «PDF · 66 KB» прилипала к левому краю) → единые
      отступы 12/14, заголовок в две строки, фрагмент в две строки, мета одной строкой.
   5. Активный тег в столбце тегов подчёркивался (правило подчёркнутых вкладок) → подложка secondary. */
.doska-root .doska-stash-card .doska-plate-media-fallback { background: var(--doska-secondary) !important; }
.doska-root .doska-stash-card .doska-plate-media-fallback-icon { color: var(--doska-text-muted); }
.doska-root .doska-stash-card .doska-stash-card-ai-bubble.doska-stash-card-ai-bubble,
.doska-root .doska-stash-card .doska-stash-card-menu-btn.doska-stash-card-menu-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--doska-hairline);
  background: color-mix(in srgb, var(--doska-canvas) 92%, transparent); color: var(--doska-text);
  box-shadow: none; backdrop-filter: none; filter: none;
}
.doska-root .doska-stash-card .doska-stash-card-ai-bubble.doska-stash-card-ai-bubble:hover,
.doska-root .doska-stash-card .doska-stash-card-menu-btn.doska-stash-card-menu-btn:hover { background: var(--doska-secondary); }
.doska-root .doska-stash-card .doska-stash-card-source-btn.doska-stash-card-source-btn {
  height: 24px; padding: 0 8px; gap: 4px; border-radius: 6px; border: 1px solid var(--doska-hairline);
  background: color-mix(in srgb, var(--doska-canvas) 92%, transparent); color: var(--doska-text);
  font-size: 11px; font-weight: 500; letter-spacing: 0; backdrop-filter: none;
}
.doska-root .doska-stash-card .doska-stash-card-source-btn.doska-stash-card-source-btn:hover { background: var(--doska-secondary); }
/* Активный тег в столбце — подложка, без подчёркивания; строки как пункты сайдбара. */
.doska-root .doska-space-tabs.doska-tag-strip .doska-space-tab.doska-space-tab { min-height: 32px; padding: 0 8px; border-radius: 6px; font-size: 14px; font-weight: 400; box-shadow: none; }
.doska-root .doska-space-tabs.doska-tag-strip .doska-space-tab.doska-space-tab:hover { background: var(--doska-secondary); }
.doska-root .doska-space-tabs.doska-tag-strip .doska-space-tab.doska-space-tab[data-active] { background: var(--doska-secondary); font-weight: 500; box-shadow: none; border-bottom: none; }
.doska-root .doska-commands-table th { font-size: 12px; font-weight: 500; color: var(--doska-text-muted); text-transform: none; letter-spacing: 0; }
.doska-root .doska-commands-table td { font-size: 14px; }
.doska-root .doska-commands-table tbody tr:hover td { background: var(--doska-hover); }

/* ПАНЕЛЬ ФОРМАТИРОВАНИЯ ЗАМЕТКИ ПО SHADCN/UI (12.10.2026) — по прямому запросу со скриншотом панели.
   Как ToggleGroup / Toolbar предыдущей системы: контейнер с рамкой rounded-lg p-1, кнопки ghost 32×32 со
   скруглением 6, иконки 16px цвета текста; включённое — подложка secondary (а не цвет акцента), группы
   разделены вертикальной линией 1×20. Меню цвета и выделения — Popover. */
.doska-root .doska-note-toolbar.doska-note-toolbar {
  gap: 4px; padding: 4px; border: 1px solid var(--doska-hairline); border-radius: 8px; background: var(--doska-canvas); box-shadow: none;
}
.doska-root .doska-note-tool-group + .doska-note-tool-group::before { width: 1px; height: 20px; margin: 0 4px; background: var(--doska-hairline); }
.doska-root .doska-note-tool.doska-note-tool {
  width: 32px; height: 32px; min-width: 32px; padding: 0; border-radius: 6px; color: var(--doska-text); background: transparent;
}
.doska-root .doska-note-tool.doska-note-tool svg { width: 16px; height: 16px; }
.doska-root .doska-note-tool.doska-note-tool:hover:not(:disabled) { background: var(--doska-secondary); color: var(--doska-text); }
.doska-root .doska-note-tool.doska-note-tool[data-active] { background: var(--doska-secondary); color: var(--doska-text); }
.doska-root .doska-note-tool.doska-note-tool:disabled { opacity: 0.4; }
.doska-root .doska-note-tool--ai.doska-note-tool--ai { color: var(--doska-text); }
.doska-root .doska-note-menu.doska-note-menu { padding: 4px; border: 1px solid var(--doska-hairline); border-radius: 6px; background: var(--doska-popover); box-shadow: none; }
.doska-root .doska-note-menu-item.doska-note-menu-item { min-height: 32px; padding: 6px 8px; border-radius: 4px; font-size: 14px; }
.doska-root .doska-note-menu-item.doska-note-menu-item:hover { background: var(--doska-secondary); }
.doska-root .doska-note-swatch.doska-note-swatch { border-radius: 4px; }

/* РЕДАКТОР КАК В NOTION (12.10.2026, см. NoteBubble и SlashMenu в NoteEditor.tsx): всплывающее меню над
   выделением — Popover с ToggleGroup предыдущей системы; меню «/» — Command предыдущей системы (список с иконкой-плашкой,
   названием и подсказкой, активный пункт — bg secondary). Без теней, края — рамка 1px. */
.doska-note-bubble.doska-note-bubble {
  display: flex; align-items: center; gap: 4px; padding: 4px; z-index: 60;
  border: 1px solid var(--doska-hairline); border-radius: 8px; background: var(--doska-popover); color: var(--doska-text);
}
.doska-note-bubble .doska-note-tool-group { display: flex; align-items: center; gap: 2px; }
.doska-note-bubble .doska-note-tool-group + .doska-note-tool-group::before { content: ''; width: 1px; height: 20px; margin: 0 4px; background: var(--doska-hairline); }
.doska-note-bubble .doska-note-menu-wrap { position: relative; }
.doska-note-bubble .doska-note-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 160px; z-index: 61; }
.doska-slash-layer.doska-slash-layer { position: fixed; inset: 0; z-index: 90; pointer-events: none; background: none; min-height: 0; }
.doska-slash-menu {
  position: fixed; width: 280px; max-height: 320px; overflow-y: auto; padding: 4px; pointer-events: auto;
  border: 1px solid var(--doska-hairline); border-radius: 8px; background: var(--doska-popover); color: var(--doska-text); font-family: var(--doska-font-ui);
}
.doska-slash-menu-label { padding: 6px 8px; font-size: 12px; font-weight: 500; color: var(--doska-text-muted); }
.doska-root .doska-slash-item.doska-slash-item {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border-radius: 6px; text-align: left; color: var(--doska-text); background: transparent;
}
.doska-root .doska-slash-item.doska-slash-item[data-active] { background: var(--doska-secondary); }
.doska-slash-item-icon { flex: none; width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--doska-hairline); border-radius: 6px; background: var(--doska-canvas); color: var(--doska-text); }
.doska-slash-item-text { display: flex; flex-direction: column; min-width: 0; }
.doska-slash-item-label { font-size: 14px; font-weight: 500; }
.doska-slash-item-hint { font-size: 12px; color: var(--doska-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* =====================================================================================================
   ПРИОРИТЕТ — ПРОТОТИП doska-flush (12.10.2026) — по прямому запросу «теперь приоритет стилей тут
   doska-layout-concepts.vercel.app/doska-flush.html … обновим всё как по стилям на прототипе».
   Этап 1: оболочка и общая геометрия. Значения взяты из прототипа один в один:
   - оболочка «Вплотную»: сайдбар 248px во всю высоту, фон sidebar (240 6% 7% / #fafafa), линия справа;
     рабочая область на фоне страницы без карточки; шапка 48px с линией снизу;
   - заголовок страницы: отступ 24, h1 24px semibold tracking-tight, подпись 14px muted, линия снизу;
   - «Сегодня»: две колонки, разделённые вертикальной линией; секции — подпись-строка с линией (sec-h),
     строки 44px с линией снизу, без рамок и карточек;
   - канбан: колонки разделены линиями, карточки задач — строки с линией снизу, без рамок.
   Блок отменяет оболочку «Вставка» (выше) и стоит после неё — та же специфичность, выигрывает порядок.
   ===================================================================================================== */
.doska-root { --doska-pane-w: 248px; --doska-sidebar: hsl(var(--sidebar-background)); --doska-canvas: hsl(var(--background)); --doska-surface: hsl(var(--card)); }
.doska-root[data-theme='light'] { --doska-sidebar: hsl(var(--sidebar-background)); --doska-canvas: hsl(var(--background)); --doska-surface: hsl(var(--card)); }
@media (min-width: 769px) {
  .doska-root .doska-top-shell.doska-top-shell--sidebar,
  .doska-root .doska-top-shell.doska-top-shell--topbar { background: var(--doska-canvas); }
  .doska-root .doska-allnotes-category-pane.doska-allnotes-category-pane {
    top: 0; left: 0; bottom: 0; border: none; border-right: 1px solid var(--doska-hairline); border-radius: 0;
    background: var(--doska-sidebar); box-shadow: none;
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body) {
    margin: 0 0 0 var(--doska-pane-w); border: none; border-radius: 0; background: var(--doska-canvas); box-shadow: none;
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body[data-pane-collapsed]) { margin-left: 92px; }
  .doska-root .doska-shell-card.doska-shell-card--topbar { margin: 0; border: none; border-radius: 0; background: var(--doska-canvas); box-shadow: none; }
  .doska-root .doska-shell-card--topbar > .doska-topnav[data-layout='topbar'] { min-height: 48px; border-bottom: 1px solid var(--doska-hairline); background: var(--doska-canvas); }
}
/* Заголовок страницы. */
.doska-root .doska-allnotes-category-name.doska-allnotes-category-name,
.doska-root .doska-inbox-title { font-family: var(--doska-font-ui); font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }

/* ОТКРЫТАЯ ЗАМЕТКА — «ДОКУМЕНТ + СВОЙСТВА СПРАВА» (12.10.2026, приоритет — прототип doska-flush):
   текст колонкой слева (до 760px), справа колонка 300px с линией слева: «Свойства» строками
   «подпись — значение», теги, суть, связанные; секции колонки разделены линиями. Уже 1100px —
   колонка свойств уходит под текст. */
.doska-root .doska-stash-inline .doska-stash-modal.doska-stash-modal {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: stretch; max-width: none; padding: 0; margin: 0;
}
.doska-root .doska-stash-inline .doska-drawer-side-tabs { min-width: 0; max-width: 820px; width: 100%; padding: 32px 32px 64px; box-sizing: border-box; }
@media (max-width: 1099px) {
  .doska-root .doska-stash-inline .doska-stash-modal.doska-stash-modal { grid-template-columns: minmax(0, 1fr); }
}
.doska-root .doska-commands-table tbody tr:last-child td { border-bottom: none; }
.doska-root .doska-stash-bulk-bar.doska-stash-bulk-bar { min-height: 48px; padding: 6px 8px 6px 14px; gap: 8px; border-radius: 8px; background: var(--doska-canvas); border: 1px solid var(--doska-hairline); }

/* ПОИСК ⌘K НА ВЕБЕ — КАК В ПРОТОТИПЕ (12.10.2026): модалка поиска уже была (подложка
   .doska-mobile-search-page + карточка .doska-search[data-variant=page], см. правило с «щелчок мимо
   закрывает»). Прежняя правка ошибочно делала панелью саму подложку, и клик мимо перестал закрывать.
   Здесь — только вид: окно 600px, отступ сверху 12vh, затемнение 80% без размытия, rounded-lg. */

/* ШАПКА И ОТКРЫТАЯ ЗАМЕТКА — КАК В ПРОТОТИПЕ (12.10.2026), по скриншоту «вижу разницу со стилями на
   прототипе»:
   - шапка 48px: поиск компактный (до 420px, высота 32), колокольчик и ИИ — кнопки-иконки 32px без рамки
     (Button ghost icon), аватар 28px;
   - открытая заметка: полоса заметки сразу под шапкой и линией во всю ширину — пока заметка открыта,
     у контейнера страницы нет отступов 16/24 и промежутков между скрытыми блоками списка. */
@media (min-width: 769px) {
  .doska-root .doska-global-page-header-search-wrap.doska-global-page-header-search-wrap { max-width: 420px; }
  .doska-root .doska-global-page-header-actions .doska-profile-avatar.doska-profile-avatar { width: 28px; height: 28px; font-size: 11px; }
  .doska-root .doska-top-shell--sidebar .doska-board-shell:has(.doska-allnotes-main[data-inline-item]) { padding: 0; }
  .doska-root .doska-stash-page-content:has(.doska-allnotes-main[data-inline-item]),
  .doska-root .doska-allnotes-body:has(.doska-allnotes-main[data-inline-item]),
  .doska-root .doska-allnotes-main[data-inline-item] { gap: 0; padding: 0; margin: 0; }
  .doska-root .doska-stash-page-content:has(.doska-allnotes-main[data-inline-item]) > .doska-inline-search { display: none; }
}
/* Открытая заметка на телефоне — тоже вплотную к краям: своя полоса и свои отступы (прототип doska-flush, m-stack). */
@media (max-width: 768px) {
  .doska-root .doska-board-shell:has(.doska-allnotes-main[data-inline-item]) { padding: 0; }
  .doska-root .doska-stash-page-content:has(.doska-allnotes-main[data-inline-item]),
  .doska-root .doska-allnotes-body:has(.doska-allnotes-main[data-inline-item]),
  .doska-root .doska-allnotes-main[data-inline-item] { gap: 0; padding: 0; margin: 0; }
}

/* =====================================================================================================
   Базовые Geist-токены. Тёмная тема — по умолчанию, светлая —
   .doska-root[data-theme='light']. Стоят в конце файла: последнее слово по цвету.
   ===================================================================================================== */
.doska-root {
  --background: 0 0% 0%; --foreground: 0 0% 98%;
  --card: 0 0% 4%; --card-foreground: 0 0% 98%;
  --popover: 0 0% 4%; --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%; --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 11%; --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 9%; --muted-foreground: 0 0% 63%;
  --accent: 0 0% 11%; --accent-foreground: 0 0% 98%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%;
  --success: 142 69% 58%;
  --border: 0 0% 20%; --border-strong: 0 0% 27%; --input: 0 0% 20%; --ring: 0 0% 83%;
  --sidebar-background: 0 0% 0%; --sidebar-foreground: 0 0% 98%; --sidebar-accent: 0 0% 11%; --sidebar-border: 0 0% 20%;
  --radius: 0.375rem;
  /* Тона полок «Памяти» (18.10.2026, components/MemoryView.tsx): плашка карточки — тон с прозрачностью
     8–12%, иконка — сам тон. Лайм — акцент Brana (сводка). Сдержанные: текст на плашке — обычный
     --foreground/--muted-foreground, контраст как на фоне страницы. */
  /* Memory category markers are data labels, not theme accents. */
  --memory-about: 262 83% 72%; --memory-rules: 213 94% 68%; --memory-events: 142 69% 58%; --memory-accent: var(--primary);
}
.doska-root[data-theme='light'] {
  --background: 0 0% 100%; --foreground: 0 0% 4%;
  --card: 0 0% 100%; --card-foreground: 0 0% 4%;
  --popover: 0 0% 100%; --popover-foreground: 0 0% 4%;
  --primary: 0 0% 9%; --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96%; --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 97%; --muted-foreground: 0 0% 40%;
  --accent: 0 0% 96%; --accent-foreground: 0 0% 9%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%;
  --success: 142 71% 35%;
  --border: 0 0% 91%; --border-strong: 0 0% 86%; --input: 0 0% 86%; --ring: 0 0% 9%;
  --sidebar-background: 0 0% 98%; --sidebar-foreground: 0 0% 20%; --sidebar-accent: 0 0% 96%; --sidebar-border: 0 0% 91%;
  --memory-about: 262 60% 50%; --memory-rules: 217 76% 46%; --memory-events: 142 64% 32%; --memory-accent: var(--primary);
}
/* МОСТ: старые токены Doska ссылаются на Geist-токены выше, чтобы цвет задавался в одном месте. Селектор
   с data-theme, чтобы перебить прежние значения, объявленные для светлой темы с той же специфичностью. */
.doska-root, .doska-root[data-theme='light'], .doska-root[data-theme='dark'] {
  --doska-canvas: hsl(var(--background));
  --doska-surface: hsl(var(--card));
  --doska-surface-raised: hsl(var(--card));
  --doska-section-panel: hsl(var(--background));
  --doska-section-bg: hsl(var(--background));
  --doska-popover: hsl(var(--popover));
  --doska-sidebar: hsl(var(--sidebar-background));
  --doska-backdrop: hsl(var(--background));
  --doska-hairline: hsl(var(--border));
  --doska-hairline-strong: hsl(var(--border-strong));
  --doska-input: hsl(var(--input));
  --doska-ring: hsl(var(--ring));
  --doska-hover: hsl(var(--accent) / 0.5);
  --doska-selected: hsl(var(--accent));
  --doska-secondary: hsl(var(--secondary));
  --doska-text: hsl(var(--foreground));
  --doska-text-muted: hsl(var(--muted-foreground));
  --doska-accent: hsl(var(--primary));
  --doska-accent-ink: hsl(var(--primary));
  --doska-accent-brand: hsl(var(--primary));
  --doska-accent-contrast: hsl(var(--primary-foreground));
  --doska-accent-soft: hsl(var(--primary) / 0.1);
  --doska-destructive: hsl(var(--destructive));
  --doska-destructive-fg: hsl(var(--destructive-foreground));
  --doska-danger: hsl(var(--destructive));
  --doska-success: hsl(var(--success));
}

/* СТРЕЛКА У <select> (12.10.2026) — живой отчёт «стрелка дропдауна съехала»: системная стрелка браузера
   прижималась к рамке. Своя — шеврон Lucide 16px, 10px от правого края, текст под неё не заходит.
   Цвет — серый, читаемый на обеих темах (в data-URI нельзя currentColor). */
.doska-root select:not([multiple]) {
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23888888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px 16px;
  padding-right: 34px !important;
  text-overflow: ellipsis;
}

/* «+» И «•••» В СТРОКЕ ПАПКИ (12.10.2026) — живой отчёт «выровнять плюс и три точки»: кнопки без своей высоты
   садились к верху строки. Обе 20×20, по центру строки, иконка по центру кнопки, цвет muted. */
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-allnotes-space-add-btn,
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-project-card-menu-btn,
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-add,
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-row .doska-project-card-menu-btn {
  display: grid; place-items: center; align-self: center; height: 20px; margin: 0; border-radius: 4px; color: var(--doska-text-muted); line-height: 0;
}
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-allnotes-space-add-btn svg,
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row > .doska-project-card-menu-btn svg,
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-add svg,
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-row .doska-project-card-menu-btn svg { width: 14px; height: 14px; display: block; }
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-row,
.doska-root .doska-allnotes-category-pane .doska-lib .doska-allnotes-space-tree-row { align-items: center; }

/* Geist system layer: Vercel's background, component, border, and text scales. */
.doska-root,
.doska-root[data-theme='dark'] {
  --background: 0 0% 0%; --foreground: 0 0% 98%;
  --card: 0 0% 4%; --card-foreground: 0 0% 98%;
  --popover: 0 0% 4%; --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%; --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 11%; --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 9%; --muted-foreground: 0 0% 63%;
  --accent: 0 0% 11%; --accent-foreground: 0 0% 98%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%; --success: 142 69% 58%;
  --border: 0 0% 20%; --border-strong: 0 0% 27%; --input: 0 0% 20%; --ring: 0 0% 83%;
  --sidebar-background: 0 0% 0%; --sidebar-foreground: 0 0% 98%;
  --sidebar-primary: 0 0% 98%; --sidebar-primary-foreground: 0 0% 0%;
  --sidebar-accent: 0 0% 11%; --sidebar-accent-foreground: 0 0% 98%;
  --sidebar-border: 0 0% 20%; --sidebar-ring: 0 0% 83%; --radius: 0.375rem;
  --doska-font-ui: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --doska-font-display: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --doska-font-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --doska-radius-sm: 6px; --doska-radius-md: 6px; --doska-radius-lg: 12px;
}
.doska-root .font-sans { font-family: var(--doska-font-ui); }
.doska-root [data-slot='button'] { border-radius: 6px; }
.doska-root [data-slot='card'] { border-radius: 6px; box-shadow: none; }
.doska-root [data-slot='dialog-content'] { border-radius: 12px; }

.doska-root [data-slot='dialog-content'],
.doska-root [data-slot='select-content'],
.doska-root [data-slot='popover-content'],
.doska-root [data-slot='tooltip-content'],
.doska-root [data-slot='dropdown-menu-content'],
.doska-root [data-slot='dropdown-menu-sub-content'],
.doska-root [data-slot='sheet-content'] {
  --background: 0 0% 0%; --foreground: 0 0% 98%;
  --card: 0 0% 4%; --card-foreground: 0 0% 98%;
  --popover: 0 0% 4%; --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%; --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 11%; --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 9%; --muted-foreground: 0 0% 63%;
  --accent: 0 0% 11%; --accent-foreground: 0 0% 98%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%;
  --border: 0 0% 20%; --input: 0 0% 20%; --ring: 0 0% 83%;
  --radius: 0.375rem;
  font-family: 'Geist Variable', Geist, system-ui, sans-serif;
}
body:has(.doska-root[data-theme='dark']) [data-slot='dialog-content'],
body:has(.doska-root[data-theme='dark']) [data-slot='sheet-content'],
body:has(.doska-root[data-theme='dark']) [data-slot='select-content'],
body:has(.doska-root[data-theme='dark']) [data-slot='popover-content'],
body:has(.doska-root[data-theme='dark']) [data-slot='tooltip-content'],
body:has(.doska-root[data-theme='dark']) [data-slot='dropdown-menu-content'],
body:has(.doska-root[data-theme='dark']) [data-slot='dropdown-menu-sub-content'] {
  --background: 0 0% 0%; --foreground: 0 0% 98%;
  --card: 0 0% 4%; --card-foreground: 0 0% 98%;
  --popover: 0 0% 4%; --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%; --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 11%; --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 9%; --muted-foreground: 0 0% 63%;
  --accent: 0 0% 11%; --accent-foreground: 0 0% 98%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%;
  --border: 0 0% 20%; --input: 0 0% 20%; --ring: 0 0% 83%;
  --radius: 0.375rem;
  font-family: 'Geist Variable', Geist, system-ui, sans-serif;
}
body:has(.doska-root) [data-slot='dialog-content'],
body:has(.doska-root) [data-slot='sheet-content'],
body:has(.doska-root) [data-slot='select-content'],
body:has(.doska-root) [data-slot='popover-content'],
body:has(.doska-root) [data-slot='dropdown-menu-content'],
body:has(.doska-root) [data-slot='dropdown-menu-sub-content'] { border-radius: 12px; }
body:has(.doska-root) [data-slot='tooltip-content'] { border-radius: 6px; }
body:has(.doska-root[data-theme='dark']) [data-slot='select-content'] {
  background: hsl(0 0% 4%); border-color: hsl(0 0% 20%); color: hsl(0 0% 98%);
}
body:has(.doska-root[data-theme='dark']) [data-slot='select-content'] [data-slot='select-item']:is(:focus, [data-highlighted]),
body:has(.doska-root[data-theme='dark']) [data-slot='select-content'] [data-slot='select-item']:hover {
  background: hsl(0 0% 11%); color: hsl(0 0% 98%);
}
body:has(.doska-root[data-theme='light']) [data-slot='dialog-content'],
body:has(.doska-root[data-theme='light']) [data-slot='sheet-content'],
body:has(.doska-root[data-theme='light']) [data-slot='select-content'],
body:has(.doska-root[data-theme='light']) [data-slot='popover-content'],
body:has(.doska-root[data-theme='light']) [data-slot='tooltip-content'],
body:has(.doska-root[data-theme='light']) [data-slot='dropdown-menu-content'],
body:has(.doska-root[data-theme='light']) [data-slot='dropdown-menu-sub-content'] {
  --background: 0 0% 100%; --foreground: 0 0% 4%;
  --card: 0 0% 100%; --card-foreground: 0 0% 4%;
  --popover: 0 0% 100%; --popover-foreground: 0 0% 4%;
  --primary: 0 0% 9%; --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96%; --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 97%; --muted-foreground: 0 0% 40%;
  --accent: 0 0% 96%; --accent-foreground: 0 0% 9%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%;
  --border: 0 0% 91%; --input: 0 0% 86%; --ring: 0 0% 9%;
  --radius: 0.375rem;
  font-family: 'Geist Variable', Geist, system-ui, sans-serif;
}

/* Radix and legacy React portals mount under body. The theme bridge follows the active Doska root,
   so every popup/dialog receives the same tokens without changing routes outside Doska. */
body:has(.doska-root[data-theme='dark']) {
  color-scheme: dark;
  --background: 0 0% 0%; --foreground: 0 0% 98%;
  --card: 0 0% 4%; --card-foreground: 0 0% 98%;
  --popover: 0 0% 4%; --popover-foreground: 0 0% 98%;
  --primary: 0 0% 98%; --primary-foreground: 0 0% 0%;
  --secondary: 0 0% 11%; --secondary-foreground: 0 0% 98%;
  --muted: 0 0% 9%; --muted-foreground: 0 0% 63%;
  --accent: 0 0% 11%; --accent-foreground: 0 0% 98%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%; --success: 142 69% 58%;
  --border: 0 0% 20%; --border-strong: 0 0% 27%; --input: 0 0% 20%; --ring: 0 0% 83%;
  --sidebar-background: 0 0% 0%; --sidebar-foreground: 0 0% 98%;
  --sidebar-primary: 0 0% 98%; --sidebar-primary-foreground: 0 0% 0%;
  --sidebar-accent: 0 0% 11%; --sidebar-accent-foreground: 0 0% 98%;
  --sidebar-border: 0 0% 20%; --sidebar-ring: 0 0% 83%; --radius: 0.375rem;
  --doska-font-ui: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --doska-font-display: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --doska-font-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --doska-radius-sm: 6px; --doska-radius-md: 6px; --doska-radius-lg: 12px;
  --doska-canvas: hsl(var(--background)); --doska-surface: hsl(var(--card)); --doska-surface-raised: hsl(var(--card));
  --doska-section-panel: hsl(var(--background)); --doska-section-bg: hsl(var(--background));
  --doska-popover: hsl(var(--popover)); --doska-sidebar: hsl(var(--sidebar-background)); --doska-backdrop: hsl(var(--background));
  --doska-hairline: hsl(var(--border)); --doska-hairline-strong: hsl(var(--border-strong));
  --doska-input: hsl(var(--input)); --doska-ring: hsl(var(--ring)); --doska-hover: hsl(var(--accent) / 0.5);
  --doska-selected: hsl(var(--accent)); --doska-secondary: hsl(var(--secondary));
  --doska-text: hsl(var(--foreground)); --doska-text-muted: hsl(var(--muted-foreground));
  --doska-accent: hsl(var(--primary)); --doska-accent-ink: hsl(var(--primary));
  --doska-accent-brand: hsl(var(--primary)); --doska-accent-contrast: hsl(var(--primary-foreground));
  --doska-accent-soft: hsl(var(--primary) / 0.1); --doska-destructive: hsl(var(--destructive));
  --doska-destructive-fg: hsl(var(--destructive-foreground)); --doska-danger: hsl(var(--destructive));
  --doska-success: hsl(var(--success));
  font-family: 'Geist Variable', Geist, system-ui, sans-serif;
}
body:has(.doska-root[data-theme='light']) {
  color-scheme: light;
  --background: 0 0% 100%; --foreground: 0 0% 4%;
  --card: 0 0% 100%; --card-foreground: 0 0% 4%;
  --popover: 0 0% 100%; --popover-foreground: 0 0% 4%;
  --primary: 0 0% 9%; --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96%; --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 97%; --muted-foreground: 0 0% 40%;
  --accent: 0 0% 96%; --accent-foreground: 0 0% 9%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%; --success: 142 71% 35%;
  --border: 0 0% 91%; --border-strong: 0 0% 86%; --input: 0 0% 86%; --ring: 0 0% 9%;
  --sidebar-background: 0 0% 98%; --sidebar-foreground: 0 0% 20%;
  --sidebar-primary: 0 0% 9%; --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 0 0% 96%; --sidebar-accent-foreground: 0 0% 9%;
  --sidebar-border: 0 0% 91%; --sidebar-ring: 0 0% 9%; --radius: 0.375rem;
  --doska-font-ui: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --doska-font-display: 'Geist Variable', Geist, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --doska-font-mono: 'Geist Mono Variable', 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --doska-radius-sm: 6px; --doska-radius-md: 6px; --doska-radius-lg: 12px;
  --doska-canvas: hsl(var(--background)); --doska-surface: hsl(var(--card)); --doska-surface-raised: hsl(var(--card));
  --doska-section-panel: hsl(var(--background)); --doska-section-bg: hsl(var(--background));
  --doska-popover: hsl(var(--popover)); --doska-sidebar: hsl(var(--sidebar-background)); --doska-backdrop: hsl(var(--background));
  --doska-hairline: hsl(var(--border)); --doska-hairline-strong: hsl(var(--border-strong));
  --doska-input: hsl(var(--input)); --doska-ring: hsl(var(--ring)); --doska-hover: hsl(var(--accent) / 0.5);
  --doska-selected: hsl(var(--accent)); --doska-secondary: hsl(var(--secondary));
  --doska-text: hsl(var(--foreground)); --doska-text-muted: hsl(var(--muted-foreground));
  --doska-accent: hsl(var(--primary)); --doska-accent-ink: hsl(var(--primary));
  --doska-accent-brand: hsl(var(--primary)); --doska-accent-contrast: hsl(var(--primary-foreground));
  --doska-accent-soft: hsl(var(--primary) / 0.1); --doska-destructive: hsl(var(--destructive));
  --doska-destructive-fg: hsl(var(--destructive-foreground)); --doska-danger: hsl(var(--destructive));
  --doska-success: hsl(var(--success));
  font-family: 'Geist Variable', Geist, system-ui, sans-serif;
}
body:has(.doska-root[data-theme]) [role='menu'] {
  border-color: hsl(var(--border)); border-radius: 12px;
  background: hsl(var(--popover)); color: hsl(var(--popover-foreground));
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.12);
  font-family: 'Geist Variable', Geist, system-ui, sans-serif;
}
body:has(.doska-root[data-theme]) [role='listbox'] { border-radius: 12px; }
body:has(.doska-root[data-theme]) [role='tooltip'] { border-radius: 6px; }
body:has(.doska-root[data-theme]) [data-slot='dialog-content'] { box-shadow: 0 12px 32px rgb(0 0 0 / 0.16); }
@media (max-width: 767px) {
  body:has(.doska-root[data-theme]) [data-slot='button']:not([data-size='icon']) { min-height: 44px; }
  body:has(.doska-root[data-theme]) [data-slot='button'][data-size='icon'] { min-width: 44px; min-height: 44px; }
  body:has(.doska-root[data-theme]) [data-slot='tabs-list'] { height: auto; min-height: 48px; }
  body:has(.doska-root[data-theme]) [data-slot='tabs-trigger'] { min-height: 44px; }
}
.doska-root[data-theme='light'] {
  --background: 0 0% 100%; --foreground: 0 0% 4%;
  --card: 0 0% 100%; --card-foreground: 0 0% 4%;
  --popover: 0 0% 100%; --popover-foreground: 0 0% 4%;
  --primary: 0 0% 9%; --primary-foreground: 0 0% 98%;
  --secondary: 0 0% 96%; --secondary-foreground: 0 0% 9%;
  --muted: 0 0% 97%; --muted-foreground: 0 0% 40%;
  --accent: 0 0% 96%; --accent-foreground: 0 0% 9%;
  --destructive: 0 72% 51%; --destructive-foreground: 0 0% 98%; --success: 142 71% 35%;
  --border: 0 0% 91%; --border-strong: 0 0% 86%; --input: 0 0% 86%; --ring: 0 0% 9%;
  --sidebar-background: 0 0% 98%; --sidebar-foreground: 0 0% 20%;
  --sidebar-primary: 0 0% 9%; --sidebar-primary-foreground: 0 0% 98%;
  --sidebar-accent: 0 0% 96%; --sidebar-accent-foreground: 0 0% 9%;
  --sidebar-border: 0 0% 91%; --sidebar-ring: 0 0% 9%; color-scheme: light;
}
.doska-root[data-theme='dark'] { color-scheme: dark; }

/* Production workspace frame follows Geist's application shell: a flush navigation column, a
   single quiet header, and a content surface without a card nested around the whole application. */
@media (min-width: 769px) {
  .doska-root { --doska-pane-w: 240px; --doska-rail-w: 64px; }
  .doska-root .doska-allnotes-category-pane.doska-allnotes-category-pane {
    top: 0; left: 0; bottom: 0; width: var(--doska-pane-w); flex: 0 0 var(--doska-pane-w); min-height: 100dvh;
    gap: 2px; padding: 14px 12px 10px;
    border: 0; border-right: 1px solid hsl(var(--border)); border-radius: 0;
    background: hsl(var(--sidebar-background)); box-shadow: none;
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body) {
    margin: 0 0 0 240px; border: 0; border-radius: 0;
    background: hsl(var(--background)); box-shadow: none;
  }
  .doska-root .doska-shell-card:has(.doska-allnotes-body[data-pane-collapsed]) { margin-left: var(--doska-rail-w); }
  .doska-root .doska-shell-card:has(.doska-allnotes-body[data-notes-pane]) { margin-left: calc(var(--doska-pane-w) + 284px); }
  .doska-root .doska-shell-card:has(.doska-allnotes-body[data-pane-collapsed][data-notes-pane]) { margin-left: calc(var(--doska-rail-w) + 284px); }
  .doska-root .doska-shell-card > header { height: 56px; min-height: 56px; padding-inline: 28px; }
  .doska-root .doska-allnotes-pane-logo { min-height: 36px; padding-inline: 8px; margin-bottom: 0; }
  .doska-root .doska-allnotes-category-pane .doska-rail-group.doska-rail-group {
    min-height: 30px; margin: 13px 8px 4px; padding: 0;
    color: hsl(var(--muted-foreground)); font-size: 11px; font-weight: 500; letter-spacing: 0;
  }
  .doska-root .doska-allnotes-category-pane .doska-collection-folder-chip.doska-collection-folder-chip {
    min-height: 34px; height: 34px; gap: 9px; padding: 0 9px;
    border: 0; border-radius: 6px; background: transparent; color: hsl(var(--muted-foreground));
    font-size: 13px; font-weight: 400; box-shadow: none;
  }
  .doska-root .doska-allnotes-category-pane .doska-collection-folder-chip:hover,
  .doska-root .doska-allnotes-category-pane .doska-collection-folder-chip[data-active] {
    background: hsl(var(--accent)); color: hsl(var(--foreground));
  }
  .doska-root .doska-allnotes-category-pane .doska-chip-icon { width: 16px; margin: 0; }
  /* The collapsed rail and the workspace offset must share the same 64px width. The prior shell
     only reduced the content margin while leaving the fixed pane at 240px, so the pane covered
     the first 176px of the page. Icon-only controls keep the rail compact; title/aria-label in JSX
     preserves discoverability and accessible names. */
  .doska-root .doska-allnotes-category-pane.doska-allnotes-category-pane[data-collapsed] {
    width: var(--doska-rail-w); min-width: var(--doska-rail-w); max-width: var(--doska-rail-w);
    flex: 0 0 var(--doska-rail-w); padding: 10px 8px; gap: 4px; overflow-x: hidden;
  }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-pane-logo {
    width: 40px; min-height: 40px; height: 40px; margin: 0 auto 4px; padding: 0 !important;
  }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-collection-folder-chip.doska-collection-folder-chip {
    width: 40px; min-width: 40px; max-width: 40px; height: 40px; min-height: 40px;
    flex-direction: row; justify-content: center; gap: 0; margin: 0 auto; padding: 0;
  }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-chip-icon,
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-chip-icon svg {
    width: 18px; height: 18px; margin: 0;
  }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-chip-label { display: none; }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-allnotes-category-row { width: 100%; }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-rail-group.doska-rail-group {
    width: 24px; min-height: 1px; height: 1px; margin: 6px auto; padding: 0; font-size: 0;
  }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-rail-tokens.doska-rail-tokens {
    width: 40px; margin: auto auto 0; padding: 8px 0 4px; gap: 0;
  }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-rail-tokens-text,
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-rail-tokens-label { display: none; }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-rail-tokens-bar.doska-rail-tokens-bar {
    width: 24px; height: 4px; margin: 0 auto;
  }
  .doska-root .doska-allnotes-category-pane[data-collapsed] .doska-rail-tokens:not(:has(.doska-rail-tokens-bar)) {
    display: none;
  }
}
/*
 * Brana production Geist layer.
 * All product selectors stay under the explicit .brana-geist root. Component appearance uses
 * these tokens and semantic markers instead of inheriting legacy Doska card recipes or utility colors.
 * Layout remains in React/Tailwind; this file owns visual materials and responsive card geometry.
 */
.doska-root.brana-geist {
  --brana-geist-bg: #fff;
  --brana-geist-surface: #fff;
  --brana-geist-subtle: #fafafa;
  --brana-geist-text: #171717;
  --brana-geist-secondary: #666;
  --brana-geist-tertiary: #888;
  --brana-geist-border: #eaeaea;
  --brana-geist-border-strong: #d4d4d4;
  --brana-geist-hover: #f5f5f5;
  --brana-geist-radius-control: 6px;
  --brana-geist-radius-card: 8px;
  font-family: 'Geist Variable', Geist, system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  background: var(--brana-geist-bg);
  color: var(--brana-geist-text);
}
.doska-root.brana-geist[data-theme='dark'] {
  --brana-geist-bg: #000;
  --brana-geist-surface: #0a0a0a;
  --brana-geist-subtle: #111;
  --brana-geist-text: #ededed;
  --brana-geist-secondary: #a1a1a1;
  --brana-geist-tertiary: #777;
  --brana-geist-border: #252525;
  --brana-geist-border-strong: #3a3a3a;
  --brana-geist-hover: #171717;
}

/* Shared shadcn/Radix primitives get Geist materials from this layer across every Doska screen. */
.doska-root.brana-geist [data-slot='card'] {
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-card);
  background: var(--brana-geist-surface);
  color: var(--brana-geist-text);
  box-shadow: none;
}
.doska-root.brana-geist [data-slot='button'] { border-radius: var(--brana-geist-radius-control); }
.doska-root.brana-geist input[data-slot='input'],
.doska-root.brana-geist select[data-slot='select-trigger'] {
  border-radius: var(--brana-geist-radius-control);
}
.doska-root.brana-geist [data-slot='dialog-content'] { border-radius: 12px; }
.doska-root.brana-geist :is([data-slot='popover-content'], [data-slot='dropdown-menu-content'], [data-slot='tooltip-content']) {
  border-color: var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-card);
  background: var(--brana-geist-surface);
  color: var(--brana-geist-text);
  box-shadow: none;
}

/* Memory and project cards use the prototype's 8px surface, 36px icon tile and 78px row. */
.doska-root.brana-geist [data-memory-grid],
.doska-root.brana-geist .brana-geist-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.doska-root.brana-geist .brana-geist-memory-card,
.doska-root.brana-geist .brana-geist-project-card {
  min-height: 78px;
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-card);
  background: var(--brana-geist-surface);
  color: var(--brana-geist-text);
  box-shadow: none;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.doska-root.brana-geist .brana-geist-project-card { padding: 12px; }
.doska-root.brana-geist .brana-geist-memory-card-button {
  min-height: 78px;
  border-radius: var(--brana-geist-radius-card);
  color: inherit;
}
.doska-root.brana-geist .brana-geist-memory-card:hover,
.doska-root.brana-geist .brana-geist-memory-card:focus-within,
.doska-root.brana-geist .brana-geist-project-card:hover {
  border-color: var(--brana-geist-border-strong);
  background: var(--brana-geist-subtle);
}
.doska-root.brana-geist .brana-geist-card-icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-control);
  background: var(--brana-geist-subtle);
  color: var(--brana-geist-secondary);
}
.doska-root.brana-geist .brana-geist-pill {
  border-radius: 999px;
  background: var(--brana-geist-hover);
  color: var(--brana-geist-secondary);
}
.doska-root.brana-geist .brana-geist-pill-active { color: var(--brana-geist-text); }
.doska-root.brana-geist .doska-stash-page-content:has([data-memory-files]) { max-width: none; }

/* Today and Waiting use the prototype page rhythm and surface hierarchy without changing their data model. */
.doska-root.brana-geist [data-geist-today],
.doska-root.brana-geist [data-geist-waiting] {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}
.doska-root.brana-geist [data-geist-today] [data-geist-page-heading],
.doska-root.brana-geist [data-geist-waiting] [data-geist-page-heading] {
  width: 100%;
  max-width: none;
  /* Match the shared section heading inset: cancel the shell's 32px top padding,
     then restore the standard 24px title offset. */
  margin: -36px auto 20px !important;
}
.doska-root.brana-geist [data-geist-today] [data-geist-page-heading] {
  padding: 24px 0 0 !important;
}
.doska-root.brana-geist [data-geist-waiting] [data-geist-page-heading] {
  padding: 24px 32px 0 !important;
}
.doska-root.brana-geist [data-geist-eyebrow] { color: var(--brana-geist-tertiary); font-size: 12px; }
.doska-root.brana-geist [data-geist-description] { color: var(--brana-geist-secondary); font-size: 13px; }
.doska-root.brana-geist [data-geist-today-overview],
.doska-root.brana-geist [data-geist-today-signals],
.doska-root.brana-geist [data-geist-today-content],
.doska-root.brana-geist [data-geist-today-account] {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}
.doska-root.brana-geist [data-geist-today-overview] > .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.doska-root.brana-geist [data-geist-overview-card] {
  min-width: 0;
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-card);
  background: var(--brana-geist-surface);
  padding: 14px;
}
.doska-root.brana-geist [data-geist-overview-card] h2 { font-size: 14px; font-weight: 600; line-height: 1.4; }
.doska-root.brana-geist [data-geist-overview-card] [data-geist-overview-row] {
  display: flex;
  width: 100%;
  min-height: 62px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  border-top: 1px solid var(--brana-geist-border);
  border-radius: 0;
  background: transparent;
  padding: 9px 0;
  text-align: left;
}
.doska-root.brana-geist [data-geist-overview-card] [data-geist-overview-row]:hover { background: var(--brana-geist-hover); }
.doska-root.brana-geist [data-geist-overview-card] [data-geist-overview-row] > span:first-child { font-size: 13px; font-weight: 500; }
.doska-root.brana-geist [data-geist-overview-card] [data-geist-overview-row] > span:last-child { color: var(--brana-geist-tertiary); font-size: 12px; }
.doska-root.brana-geist [data-geist-today-card] { overflow: hidden; }
.doska-root.brana-geist [data-geist-today-card-heading] {
  min-height: 48px;
  border-bottom: 0;
  padding: 14px 14px 8px;
}
.doska-root.brana-geist [data-geist-today-card-heading] h3 {
  color: var(--brana-geist-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.doska-root.brana-geist [data-geist-today-card] [data-geist-today-row],
.doska-root.brana-geist [data-geist-today-card] [data-geist-today-skeleton-row] {
  min-height: 62px;
  border-color: var(--brana-geist-border);
  padding: 9px 14px;
}
.doska-root.brana-geist [data-geist-today-card] [data-geist-today-row]:hover { background: var(--brana-geist-hover); }

/* Waiting cards use the same horizontal row as prototype section cards, including their empty state. */
.doska-root.brana-geist [data-geist-waiting-grid] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.doska-root.brana-geist [data-geist-waiting-content] {
  width: calc(100% - 64px);
  max-width: none;
  margin-inline: auto;
}
.doska-root.brana-geist [data-geist-waiting-grid] [data-waiting-card] {
  display: flex;
  min-height: 78px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-card);
  background: var(--brana-geist-surface);
  padding: 14px;
}
.doska-root.brana-geist [data-geist-waiting-grid] [data-waiting-card] > span:first-child {
  width: 36px;
  height: 36px;
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-control);
  background: var(--brana-geist-subtle);
  color: var(--brana-geist-secondary);
}
.doska-root.brana-geist [data-geist-waiting-grid] [data-geist-waiting-copy] {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.doska-root.brana-geist [data-geist-waiting-title] { min-width: 0; color: var(--brana-geist-text); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.doska-root.brana-geist [data-geist-waiting-detail] {
  min-width: 0;
  color: var(--brana-geist-tertiary);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.doska-root.brana-geist [data-geist-waiting-grid] [data-geist-waiting-action] {
  flex: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.doska-root.brana-geist [data-geist-waiting-empty] .doska-stash-empty { padding: 48px 20px; }

/* Integration cards retain their connect actions and provider marks, with the same Geist surface. */
.doska-root.brana-geist .doska-integrations-groups {
  width: 100%;
  max-width: none;
  margin-inline: auto;
}
.doska-root.brana-geist .doska-integrations-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}
@media (max-width: 1024px) {
  .doska-root.brana-geist .doska-integrations-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.doska-root.brana-geist .doska-integrations-grid .doska-settings-card.doska-settings-card,
.doska-root.brana-geist .doska-integrations-groups .doska-settings-card.doska-settings-card {
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-card);
  background: var(--brana-geist-surface);
  padding: 16px;
  box-shadow: none;
}
.doska-root.brana-geist .doska-integrations-grid .doska-settings-card.doska-settings-card:hover,
.doska-root.brana-geist .doska-integrations-groups .doska-settings-card.doska-settings-card:hover {
  border-color: var(--brana-geist-border-strong);
  background: var(--brana-geist-subtle);
}
.doska-root.brana-geist .doska-integrations-grid:has(> .doska-settings-card[data-open]) {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 760px;
}

/* Standalone Brana auth pages: preserve the logo and flow, replace the legacy auth card treatment. */
.doska-root.brana-geist.doska-auth-page {
  position: fixed;
  inset: 0;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 24px;
  background: var(--brana-geist-bg);
  color: var(--brana-geist-text);
}
.doska-root.brana-geist .doska-auth-card {
  width: 100%;
  max-width: 448px;
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-card);
  background: var(--brana-geist-surface);
  padding: 24px;
  box-shadow: none;
}
.doska-root.brana-geist .doska-auth-label { color: var(--brana-geist-secondary); font-size: 13px; }
.doska-root.brana-geist .doska-auth-input {
  min-height: 36px;
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-control);
  background: var(--brana-geist-surface);
  color: var(--brana-geist-text);
  font-family: 'Geist Variable', Geist, system-ui, sans-serif;
  font-size: 14px;
  padding: 8px 12px;
}
.doska-root.brana-geist .doska-auth-input:focus { border-color: var(--brana-geist-border-strong); }
.doska-root.brana-geist .doska-auth-submit.doska-auth-submit {
  min-height: 36px;
  border: 1px solid var(--brana-geist-text);
  border-radius: var(--brana-geist-radius-control);
  background: var(--brana-geist-text);
  color: var(--brana-geist-bg);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
}
.doska-root.brana-geist .doska-auth-google.doska-auth-google {
  min-height: 36px;
  border: 1px solid var(--brana-geist-border-strong);
  border-radius: var(--brana-geist-radius-control);
  background: var(--brana-geist-surface);
  color: var(--brana-geist-text);
  padding: 8px 12px;
  font-size: 13px;
}
.doska-root.brana-geist .doska-auth-link { color: var(--brana-geist-text); }
.doska-root.brana-geist :is(.doska-auth-submit, .doska-auth-google, .doska-auth-link):focus-visible {
  outline: 2px solid var(--brana-geist-text);
  outline-offset: 2px;
}

/* Standalone auth routes share the same isolated surface and form dimensions. */
.auth-geist {
  --brana-geist-bg: #fff;
  --brana-geist-surface: #fff;
  --brana-geist-subtle: #fafafa;
  --brana-geist-text: #171717;
  --brana-geist-secondary: #666;
  --brana-geist-border: #eaeaea;
  --brana-geist-radius-control: 6px;
  --brana-geist-radius-card: 8px;
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background: var(--brana-geist-bg);
  color: var(--brana-geist-text);
}
.auth-geist > div { width: 100%; max-width: 448px; margin-inline: auto; }
.auth-geist [data-slot='card'],
.auth-geist .auth-surface {
  overflow: hidden;
  border: 1px solid var(--brana-geist-border);
  border-radius: var(--brana-geist-radius-card, 8px);
  background: var(--brana-geist-surface);
  box-shadow: none;
}
.auth-geist [data-slot='card-content'],
.auth-geist .auth-surface { padding: 24px; }
.auth-geist h1,
.auth-geist h2 { font-size: 24px; font-weight: 600; letter-spacing: -.03em; line-height: 1.25; }
.auth-geist label { color: var(--brana-geist-text); font-size: 13px; font-weight: 500; }
.auth-geist input[data-slot='input'] { height: 36px; border-radius: var(--brana-geist-radius-control); font-size: 13px; }
.auth-geist [data-slot='button'] { border-radius: var(--brana-geist-radius-control); }

@media (max-width: 639px) {
  .doska-root.brana-geist [data-memory-grid],
  .doska-root.brana-geist .brana-geist-project-grid,
  .doska-root.brana-geist .doska-integrations-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .doska-root.brana-geist [data-geist-today] [data-geist-page-heading] { padding-top: 24px !important; }
  .doska-root.brana-geist [data-geist-waiting] [data-geist-page-heading] { padding-top: 24px !important; padding-right: 16px !important; padding-left: 16px !important; }
  .doska-root.brana-geist [data-geist-waiting-content] { width: calc(100% - 32px); }
  .doska-root.brana-geist [data-geist-today-overview] > .grid,
  .doska-root.brana-geist [data-geist-waiting-grid] { grid-template-columns: minmax(0, 1fr); }
  .doska-root.brana-geist .brana-geist-memory-card-button { flex-wrap: wrap; }
  .doska-root.brana-geist.doska-auth-page { align-items: flex-start; padding: 24px 16px; }
  .doska-root.brana-geist .doska-auth-card { padding: 20px; }
  .doska-root.brana-geist .doska-auth-input { min-height: 40px; font-size: 16px; }
  .auth-geist { justify-content: flex-start; padding: 24px 16px; }
  .auth-geist [data-slot='card-content'],
  .auth-geist .auth-surface { padding: 20px; }
}
.tg-setup { min-height: 100dvh; box-sizing: border-box; display: grid; place-items: center; padding: 32px 20px; color: var(--doska-text); background: var(--doska-canvas); font-family: var(--doska-font-ui); }
.tg-setup-frame { width: min(100%, 620px); }
.tg-setup-brand { display: block; width: -moz-fit-content; width: fit-content; margin: 0 auto 42px; color: var(--doska-text); font-size: 22px; font-weight: 700; letter-spacing: -.04em; text-decoration: none; }
.tg-setup-brand span { color: #a3e635; }
.tg-setup-progress { display: flex; justify-content: center; gap: 8px; margin-bottom: 24px; }
.tg-setup-progress span { width: 58px; height: 3px; border-radius: 9px; background: var(--doska-hairline-strong); }
.tg-setup-progress span.is-active { background: #a3e635; }
.tg-setup-panel { border: 1px solid var(--doska-hairline); border-radius: 16px; background: var(--doska-surface); padding: clamp(24px, 5vw, 40px); }
.tg-setup-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border-radius: 12px; color: #a3e635; background: color-mix(in srgb, #a3e635 12%, transparent); }
.tg-setup-panel h1 { margin: 0; font-size: clamp(25px, 4vw, 32px); line-height: 1.15; letter-spacing: -.03em; font-weight: 650; }
.tg-setup-lead { margin: 10px 0 26px; max-width: 54ch; color: var(--doska-text-muted); font-size: 15px; line-height: 1.6; }
.tg-setup-steps { display: grid; gap: 14px; margin: 0 0 28px; }
.tg-setup-steps > span { display: flex; align-items: center; gap: 12px; color: var(--doska-text-muted); font-size: 14px; line-height: 1.45; }
.tg-setup-steps > span.is-current { color: var(--doska-text); }
.tg-setup-steps > span.is-done { color: var(--doska-text); }
.tg-setup-steps b { flex: 0 0 24px; width: 24px; height: 24px; display: grid; place-items: center; border: 1px solid var(--doska-hairline-strong); border-radius: 50%; font-size: 12px; font-weight: 600; }
.tg-setup-steps .is-current b, .tg-setup-steps .is-done b { border-color: #a3e635; color: #a3e635; }
.tg-setup-steps a { display: inline-flex; align-items: center; gap: 4px; color: #a3e635; text-decoration: none; }
.tg-setup-steps a:hover { text-decoration: underline; text-underline-offset: 3px; }
.tg-setup-form > label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.tg-token-wrap { position: relative; }
.tg-token-wrap input { display: block; box-sizing: border-box; width: 100%; height: 48px; padding: 0 48px 0 14px; border: 1px solid var(--doska-hairline-strong); border-radius: 8px; outline: 0; background: var(--doska-surface-raised); color: var(--doska-text); font: 14px ui-monospace, SFMono-Regular, Menlo, monospace; }
.tg-token-wrap input::-moz-placeholder { color: var(--doska-text-muted); opacity: .8; }
.tg-token-wrap input::placeholder { color: var(--doska-text-muted); opacity: .8; }
.tg-token-wrap input:focus-visible { border-color: #a3e635; box-shadow: 0 0 0 3px color-mix(in srgb, #a3e635 20%, transparent); }
.tg-token-toggle { position: absolute; top: 0; right: 4px; height: 48px; width: 40px; display: grid; place-items: center; border: 0; background: transparent; color: var(--doska-text-muted); cursor: pointer; }
.tg-setup-primary { display: flex; justify-content: center; align-items: center; gap: 9px; box-sizing: border-box; min-height: 48px; width: 100%; margin-top: 16px; padding: 0 16px; border: 0; border-radius: 8px; background: #a3e635; color: #18181b; font: inherit; font-size: 14px; font-weight: 650; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.tg-setup-primary:hover:not(:disabled) { background: #bef264; }
.tg-setup-primary:active:not(:disabled) { transform: translateY(1px); }
.tg-setup-primary:focus-visible, .tg-setup-retry:focus-visible, .tg-token-toggle:focus-visible { outline: 2px solid #a3e635; outline-offset: 3px; }
.tg-setup-primary:disabled { opacity: .55; cursor: not-allowed; }
.tg-token-note { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 14px 0 0; color: var(--doska-text-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.tg-setup-error { margin: 8px 0 0; color: #f87171; font-size: 13px; line-height: 1.5; }
.tg-setup-status { padding-top: 4px; }
.tg-status-line { display: flex; align-items: center; gap: 9px; min-height: 24px; color: var(--doska-text); font-size: 14px; }
.tg-status-dot { width: 9px; height: 9px; border-radius: 50%; background: #a1a1aa; }
.tg-status-dot.is-ready { background: #a3e635; }
.tg-open-bot { margin-top: 16px; }
.tg-phone-note { margin: 12px 0 0; color: var(--doska-text-muted); font-size: 13px; line-height: 1.6; }
.tg-phone-note strong { color: var(--doska-text); }
.tg-setup-retry { margin-top: 12px; border: 0; padding: 4px 0; background: transparent; color: #a3e635; font: inherit; cursor: pointer; }
.tg-setup-foot { margin: 18px 4px 0; color: var(--doska-text-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.tg-spin { animation: tg-spin .9s linear infinite; }
@keyframes tg-spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .tg-setup { padding: 24px 14px; place-items: start center; } .tg-setup-frame { margin: auto 0; } .tg-setup-brand { margin-bottom: 30px; } .tg-setup-panel { padding: 24px 20px; } }
@media (prefers-reduced-motion: reduce) { .tg-spin { animation-duration: 2.5s; } .tg-setup-primary { transition: none; } }
