/* Канцелярский «планшет» — подключается только с index.php */
* { box-sizing: border-box; }
html { height: 100%; }
body.deskpad-page {
    /* Зазор между колонками верхнего ряда и горизонтальный padding зажима «Все дела» */
    --deskpad-sticker-gutter: clamp(7px, 2.2vw, 13px);
    --deskpad-tablet-clip-pad-x: clamp(6px, 2vw, 12px);
    /* Нижняя граница верхнего nav (body padding + padding sticker-row + высота ряда) */
    --deskpad-nav-bottom: calc(1px + 3px + clamp(42px, 11.5vw, 54px) + 6px);
    /* Между кнопками в паре = gutter + pad-x (как от календаря до синего стикера) */
    --deskpad-pair-inner-gap: calc(var(--deskpad-sticker-gutter) + var(--deskpad-tablet-clip-pad-x));
    min-height: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Дерево: много ступеней, без резких скачков; лёгкая «зерновая» сетка */
    background:
        repeating-linear-gradient(88deg, rgba(0,0,0,0.022) 0 1px, transparent 1px 14px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 9px),
        radial-gradient(120% 85% at 50% 0%, rgba(255, 248, 235, 0.45) 0%, transparent 55%),
        linear-gradient(
            168deg,
            #e9dcc8 0%,
            #ddcdb5 18%,
            #d2c0a5 36%,
            #c4b096 52%,
            #b09a82 70%,
            #9d8872 86%,
            #8f7c68 100%
        );
    padding: 1px 2px 2px;
}

.deskpad-shell {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.deskpad-page .card-form {
    margin: 6px 0 8px;
    flex-shrink: 0;
}

/* Верхний ряд стикеров */
.sticker-row {
    --tb-size: clamp(42px, 11.5vw, 54px);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--deskpad-sticker-gutter);
    width: 100%;
    box-sizing: border-box;
    padding: 3px 0 6px;
    margin: 0;
    overflow: visible;
    flex-shrink: 0;
}
.sticker-row__left,
.sticker-row__right {
    display: flex;
    align-items: center;
    gap: 0;
    flex: 0 0 auto;
}
.sticker-row__left .sticker,
.sticker-row__right .sticker--mint,
.sticker-row__right .paperclip-btn {
    width: var(--tb-size);
    height: var(--tb-size);
    min-width: var(--tb-size);
    padding: 0;
}
/* Зазор в паре = зазор до центра + горизонтальный padding tablet-clip (к синему «Все дела») */
.sticker-row__left {
    gap: var(--deskpad-pair-inner-gap);
}
.sticker-row__left .sticker--cream.sticker--deadline-pin { z-index: 2; }
.sticker-row__left .sticker--sky { z-index: 1; }
.sticker-row__right {
    gap: var(--deskpad-pair-inner-gap);
}
.sticker-row__center {
    flex: 1 1 auto;
    min-width: 0;
    height: var(--tb-size);
    display: flex;
    align-items: center;
}
.sticker-row__center .tablet-clip {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    overflow: visible;
}
.sticker-row__center .deskpad-center-swipe {
    width: 100%;
    height: 100%;
    min-height: 0;
}

a.sticker {
    text-decoration: none;
    color: inherit;
    -webkit-tap-highlight-color: transparent;
}
a.sticker:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.55);
    outline-offset: 2px;
}

.sticker {
    --tilt: 0deg;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    font-size: clamp(12px, 3.2vw, 14px);
    padding: clamp(8px, 2vw, 10px) clamp(6px, 1.5vw, 10px);
    border-radius: 4px;
    box-shadow: 2px 3px 0 rgba(0,0,0,0.16), inset 0 -2px 0 rgba(0,0,0,0.05);
    position: relative;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: rotate(var(--tilt));
}
.sticker:hover {
    transform: rotate(var(--tilt)) translateY(-1px);
    box-shadow: 2px 4px 0 rgba(0,0,0,0.18), inset 0 -2px 0 rgba(0,0,0,0.05);
}
.sticker--cream { background: linear-gradient(145deg, #fffef6, #f5e6c8); color: #333; }
/* Огонёк: светло-жёлтый стикер */
.sticker-row__left .sticker--cream.sticker--deadline-pin {
    background: linear-gradient(165deg, #fffcef 0%, #fff4c4 35%, #fde894 70%, #fcd34d 100%);
    color: #3a2f0a;
    box-shadow:
        2px 3px 0 rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -2px 0 rgba(180, 140, 40, 0.08);
}
.sticker-row__left .sticker--cream.sticker--deadline-pin:hover {
    box-shadow:
        2px 4px 0 rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        inset 0 -2px 0 rgba(180, 140, 40, 0.1);
}
.sticker--mint { background: linear-gradient(145deg, #e8fff0, #b8e8c8); color: #14532d; }
.sticker--sky { background: linear-gradient(145deg, #e8f4ff, #c5d9f0); color: #1e3a5f; }
.sticker-row__left .sticker--cream,
.sticker-row__left .sticker--sky,
.sticker-row__right .sticker--mint {
    font-size: clamp(1.1rem, 5vw, 1.4rem);
    line-height: 1;
}

.sticker--cream.sticker--deadline-pin { overflow: visible; }
.push-pin {
    position: absolute;
    right: -4px;
    top: -7px;
    left: auto;
    width: 30px;
    height: 26px;
    pointer-events: none;
    z-index: 4;
    transform: rotate(20deg);
    transform-origin: 50% 55%;
    filter:
        drop-shadow(1px 3px 2px rgba(0,0,0,0.35))
        drop-shadow(0 0 1px rgba(0,0,0,0.2));
}
.push-pin__svg {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 0;
}
.push-pin__num {
    position: absolute;
    left: 50%;
    top: 6px;
    right: auto;
    transform: translateX(-50%);
    z-index: 2;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 12px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
    -webkit-text-stroke: 0.55px rgba(0, 0, 0, 0.65);
    text-shadow:
        0 0 3px rgba(0, 0, 0, 0.9),
        0 1px 0 rgba(0, 0, 0, 0.85),
        0 -1px 1px rgba(0, 0, 0, 0.4);
}

.tablet-clip {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4px, 1.2vw, 8px) var(--deskpad-tablet-clip-pad-x);
    border-radius: 4px;
    background:
        linear-gradient(145deg, rgba(255,255,255,0.35) 0%, transparent 45%),
        linear-gradient(180deg, #8b9099 0%, #5c616a 22%, #4a4e56 50%, #3d4148 100%);
    box-shadow:
        0 3px 8px rgba(0,0,0,0.35),
        inset 0 1px 0 rgba(255,255,255,0.45),
        inset 0 -2px 4px rgba(0,0,0,0.25);
}
.tablet-clip::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -5px;
    transform: translateX(-50%);
    width: clamp(22px, 7vw, 30px);
    height: clamp(10px, 3vw, 14px);
    border: 2px solid #6b7280;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(180deg, #d1d5db, #9ca3af);
    box-shadow: 0 -1px 2px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.5);
    pointer-events: none;
}
.tablet-clip::after {
    content: "";
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 3px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.35), transparent);
    pointer-events: none;
}

/* «Все дела» — тот же визуальный стиль, что и пункты выпадающего стикера */
.sticker--primary {
    --tilt: 0deg;
    width: 100%;
    height: 100%;
    min-height: 0;
    min-width: 0;
    background: linear-gradient(165deg, #fffef6 0%, #f3e9d2 55%, #e8dcc4 100%);
    color: #2c2419;
    padding: 0 clamp(3px, 1.2vw, 8px);
    font-size: clamp(11px, 2.8vw, 14px);
    letter-spacing: 0.04em;
    white-space: normal;
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.12),
        0 2px 6px rgba(0, 0, 0, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}
.sticker--primary:hover {
    transform: rotate(var(--tilt)) translateY(-1px);
    filter: brightness(1.02);
    box-shadow:
        0 3px 0 rgba(0, 0, 0, 0.13),
        0 3px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.deskpad-status-wrap {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: visible;
    z-index: 12;
}
.deskpad-status-trigger {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    height: 100%;
    min-width: 0;
    border: none;
    margin: 0;
    padding: 2px 4px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: center;
    -webkit-tap-highlight-color: transparent;
}
.deskpad-status-trigger:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}
.deskpad-status-text {
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.12;
    max-height: 2.35em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    word-break: break-word;
    hyphens: auto;
}
.deskpad-status-trigger .chev {
    flex: 0 0 auto;
    font-size: 0.72em;
    line-height: 1;
    opacity: 0.92;
    transition: transform 0.2s ease;
}
.deskpad-status-wrap.is-open .deskpad-status-trigger .chev {
    transform: rotate(180deg);
}

/* Выпадающая «стопка стикеров» */
.deskpad-status-stack {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 5px);
    z-index: 60;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 0 6px;
    perspective: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.12s ease, transform 0.14s ease, visibility 0.14s;
    pointer-events: none;
}
.deskpad-status-stack:not([hidden]).is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.deskpad-status-stack[hidden] {
    display: none;
}
/* «Все дела»: вплотную к кнопке (в разметке до fixed-pin) */
#deskpad-status-list.deskpad-status-stack {
    top: 100%;
}
.deskpad-status-sticker {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: -6px;
    min-height: 48px;
    padding: 14px 12px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 800;
    font-size: clamp(13px, 3.4vw, 16px);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
    color: #2c2419;
    background: linear-gradient(165deg, #fffef6 0%, #f3e9d2 55%, #e8dcc4 100%);
    box-shadow:
        0 2px 0 rgba(0, 0, 0, 0.14),
        0 3px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
    transform-origin: 50% 0;
    opacity: 0;
    transform: translateY(-8px) rotateX(8deg) scale(0.97);
}
.deskpad-status-sticker:first-child {
    margin-top: 0;
}
.deskpad-status-sticker:hover {
    filter: brightness(1.04);
    z-index: 2;
}
.deskpad-status-sticker.is-current {
    background: linear-gradient(165deg, #e8f1ff 0%, #d0e3ff 100%);
    color: #0b3d91;
    box-shadow:
        0 2px 0 rgba(11, 61, 145, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}
.deskpad-status-sticker:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    z-index: 3;
}
@keyframes deskpadStickerUnfold {
    from {
        opacity: 0;
        transform: translateY(-6px) rotateX(8deg) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}
.deskpad-status-stack.is-open .deskpad-status-sticker {
    animation: deskpadStickerUnfold 0.16s cubic-bezier(0.22, 0.85, 0.28, 1) forwards;
    animation-delay: calc(0.02s * var(--deskpad-sticker-i, 0));
}

/* Порядок списка: пункты как кнопка сортировки (.sticker--sort) */
.deskpad-sort-stack .deskpad-status-sticker {
    color: #0c2744;
    background: linear-gradient(165deg, #eff8ff 0%, #dbeafe 45%, #bfdbfe 100%);
    box-shadow:
        0 2px 0 rgba(15, 60, 100, 0.15),
        0 2px 6px rgba(30, 90, 150, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.75);
}
.deskpad-sort-stack .deskpad-status-sticker:hover {
    filter: brightness(1.03);
}
.deskpad-sort-stack .deskpad-status-sticker.is-current {
    background: linear-gradient(165deg, #bfdbfe 0%, #93c5fd 50%, #7dd3fc 100%);
    color: #0a1e36;
    box-shadow:
        0 2px 0 rgba(30, 64, 120, 0.28),
        0 2px 8px rgba(30, 90, 150, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.paperclip-btn {
    --tilt: 0deg;
    border: none;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: none;
    /* Без наклона и без translateZ: меньше отдельных композитных слоёв рядом с SVG */
    transform: none;
    padding: 0;
    margin: 0;
    -webkit-tap-highlight-color: transparent;
}
.deskpad-page .nav-more-btn.paperclip-btn {
    width: var(--tb-size);
    height: var(--tb-size);
    min-width: var(--tb-size);
    background: transparent;
    border: none;
}
.paperclip-btn:hover .paperclip-btn__glyph {
    opacity: 0.88;
}
.paperclip-btn:focus-visible {
    outline: 2px solid rgba(37, 99, 235, 0.45);
    outline-offset: 2px;
}
/* Пиктограмма U+1F4CE (&#128206;) вместо SVG — поворот дешевле для композитора */
.paperclip-btn__glyph {
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
    font-size: clamp(26px, 7vw, 36px);
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    opacity: 1;
    transform: rotate(-180deg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s ease;
}
.paperclip-btn.is-flipped .paperclip-btn__glyph {
    transform: rotate(0deg);
}

/* Меню скрепки: лист блокнота справа; плавный выезд только через transform (без анимации box-shadow) */
body.deskpad-page .nav-more-wrap {
    position: relative;
    flex-shrink: 0;
}
body.deskpad-page .nav-more-panel.nav-more-panel--notebook {
    --nav-more-line: rgba(100, 90, 78, 0.14);
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + var(--deskpad-nav-bottom));
    right: 0;
    z-index: 120;
    width: min(252px, 82vw);
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    padding-left: 34px;
    padding-right: 2px;
    border: none;
    border-radius: 12px 0 0 12px;
    background-color: #faf6ec;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent 0,
            transparent 27px,
            var(--nav-more-line) 27px,
            var(--nav-more-line) 28px
        ),
        linear-gradient(
            90deg,
            transparent 0,
            transparent 25px,
            rgba(200, 72, 62, 0.45) 25px,
            rgba(200, 72, 62, 0.5) 27px,
            transparent 27px
        );
    box-shadow: -2px 0 14px rgba(0, 0, 0, 0.09);
    overflow: hidden;
    transform: translate3d(100%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s cubic-bezier(0.25, 0.82, 0.28, 1), visibility 0s linear 0.24s;
}
body.deskpad-page .nav-more-panel.nav-more-panel--notebook::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 18px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    box-shadow:
        0 40px 0 rgba(0, 0, 0, 0.07),
        0 80px 0 rgba(0, 0, 0, 0.07);
    pointer-events: none;
}
body.deskpad-page .nav-more-wrap.is-open .nav-more-panel.nav-more-panel--notebook {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.24s cubic-bezier(0.25, 0.82, 0.28, 1), visibility 0s linear 0s;
}
body.deskpad-page .nav-more-panel__link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 10px 10px 10px 2px;
    margin: 0;
    min-height: 44px;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    text-decoration: none;
    color: #2a2620;
    font-size: clamp(13px, 3.3vw, 15px);
    font-weight: 600;
    line-height: 1.25;
    border-bottom: 1px solid rgba(100, 90, 78, 0.12);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.1s ease;
}
body.deskpad-page .nav-more-panel__link:first-child {
    padding-top: 6px;
}
body.deskpad-page .nav-more-panel__link:last-child {
    padding-bottom: 6px;
    border-bottom: none;
}
body.deskpad-page .nav-more-panel__link:hover {
    background-color: rgba(255, 255, 255, 0.5);
}
body.deskpad-page .nav-more-panel__link:active {
    background-color: rgba(255, 255, 255, 0.62);
}
body.deskpad-page .nav-more-panel__link:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: -2px;
}
body.deskpad-page .nav-more-panel__label {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}
body.deskpad-page .nav-more-panel__icon {
    flex: 0 0 auto;
    font-size: 1.35em;
    line-height: 1;
    font-family: 'Segoe UI Emoji', 'Apple Color Emoji', 'Noto Color Emoji', sans-serif;
    opacity: 0.9;
}
@media (prefers-reduced-motion: reduce) {
    body.deskpad-page .nav-more-panel.nav-more-panel--notebook,
    body.deskpad-page .nav-more-wrap.is-open .nav-more-panel.nav-more-panel--notebook {
        transition-duration: 0.01ms;
    }
    .paperclip-btn__glyph {
        transition-duration: 0.01ms;
    }
    body.deskpad-page .jur-chip {
        transition: none;
    }
    body.deskpad-page .jur-slot-bridge {
        transition: none;
    }
    .deskpad-status-stack {
        transition-duration: 0.01ms;
    }
    .deskpad-status-stack.is-open .deskpad-status-sticker {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.deskpad-sheet-block {
    margin-top: 0;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    margin-left: 4px;
    margin-right: 4px;
    margin-bottom: 1px;
    padding: 1px;
    border-radius: 8px;
    /* Рамка планшета — мягкий коричневый без контрастных скачков */
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 40%),
        linear-gradient(
            165deg,
            rgba(118, 98, 78, 0.38) 0%,
            rgba(105, 88, 70, 0.42) 35%,
            rgba(92, 76, 60, 0.46) 65%,
            rgba(78, 64, 52, 0.5) 100%
        );
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        inset 0 1px 2px rgba(0, 0, 0, 0.1),
        0 2px 10px rgba(0, 0, 0, 0.14);
}
.deskpad-sheet-block .jur-paper-wrap {
    margin: 0;
    flex-shrink: 0;
}

/* --- Чипы юрисдикции: трапеции; мост вне потока (не толкает лист); активная выше остальных --- */
body.deskpad-page .jur-paper-wrap {
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    background: transparent;
    position: relative;
    z-index: 2;
    overflow: visible;
}
/* Фиксированная высота ряда — лист с карточками не смещается при смене вкладки */
body.deskpad-page .jur-tabs-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 0;
    box-sizing: border-box;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    flex-shrink: 0;
    background: transparent;
    overflow: visible;
}
body.deskpad-page .jur-chip-slot {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    height: 40px;
    max-height: 40px;
    position: relative;
    align-self: flex-end;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    background: transparent;
    overflow: visible;
}
/* Мост под чипом — только наложение на лист, без высоты в потоке */
/* Мост: анимация через transform, не height — без layout-thrash на каждом кадре */
body.deskpad-page .jur-slot-bridge {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
    margin: 0;
    padding: 0;
    border: none;
    pointer-events: none;
    z-index: 1;
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    transition: transform 0.14s ease, opacity 0.12s ease;
    background: linear-gradient(180deg, #c7dbf7 0%, #e2ecf9 100%);
}
body.deskpad-page .jur-slot-bridge--on {
    transform: scaleY(1);
    opacity: 1;
}
body.deskpad-page .jur-chip {
    margin: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 0 6px;
    height: 40px;
    border: none;
    border-radius: 0;
    font-family: "Segoe UI", Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(12px, 3.1vw, 15px);
    line-height: 1.15;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-align: center;
    -webkit-font-smoothing: antialiased;
    color: #2563eb;
    background: linear-gradient(180deg, #faf8f2 0%, #f0ebe0 100%);
    box-shadow: inset 0 -1px 0 rgba(37, 99, 235, 0.12);
    position: relative;
    z-index: 3;
    transform: none;
    /* Не анимируем background/box-shadow/height — тяжело вместе с clip-path; hover без filter */
    transition: color 0.1s ease;
    clip-path: polygon(8% 0%, 92% 0%, 100% 100%, 0% 100%);
}
body.deskpad-page .jur-chip-slot:first-child .jur-chip {
    clip-path: polygon(0% 0%, 92% 0%, 100% 100%, 0% 100%);
}
body.deskpad-page .jur-chip-slot:last-child .jur-chip {
    clip-path: polygon(8% 0%, 100% 0%, 100% 100%, 0% 100%);
}
body.deskpad-page .jur-chip-slot:only-child .jur-chip {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
}
body.deskpad-page .jur-chip-slot + .jur-chip-slot .jur-chip {
    margin-left: -1px;
    box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.07);
}
body.deskpad-page .jur-chip:hover:not(.is-out) {
    color: #1d4ed8;
}
/* Активная: ровно +2px по высоте вверх, может вылезать из слота — поток страницы не меняется */
body.deskpad-page .jur-chip.is-out {
    height: 42px;
    background: linear-gradient(180deg, #dce9fc 0%, #bdd4f5 38%, #a8c8f0 100%);
    color: #1e3a8a;
    z-index: 4;
    box-shadow: inset 0 -1px 0 rgba(30, 58, 138, 0.15);
}
body.deskpad-page .jur-chip-slot + .jur-chip-slot .jur-chip.is-out {
    box-shadow:
        inset 1px 0 0 rgba(0, 0, 0, 0.1),
        inset 0 -1px 0 rgba(11, 61, 145, 0.12);
}
body.deskpad-page .jur-chip:focus {
    outline: 2px solid rgba(37, 99, 235, 0.4);
    outline-offset: 1px;
}
body.deskpad-page .jur-chip:focus:not(:focus-visible) {
    outline: none;
}
@media (max-width: 520px) {
    body.deskpad-page .jur-tabs-row {
        height: 36px;
        min-height: 36px;
        max-height: 36px;
    }
    body.deskpad-page .jur-chip-slot {
        height: 36px;
        max-height: 36px;
    }
    body.deskpad-page .jur-chip {
        height: 36px;
        font-size: 12px;
        padding: 0 4px;
    }
    body.deskpad-page .jur-chip.is-out {
        height: 38px;
    }
    body.deskpad-page .jur-slot-bridge {
        height: 10px;
    }
}

.deskpad-paper {
    position: relative;
    z-index: 1;
    margin-top: -1px;
    background-color: #faf9f6;
    border-radius: 0 0 5px 5px;
    box-shadow:
        0 1px 2px rgba(0,0,0,0.04),
        0 8px 24px rgba(0,0,0,0.12),
        0 16px 40px rgba(0,0,0,0.08),
        inset 0 0 0 1px rgba(255,255,255,0.75);
    flex: 1 1 auto;
    min-height: 0;
    padding: 10px 10px 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.paper__noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}
.deskpad-paper::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.03), transparent);
    z-index: 2;
    pointer-events: none;
}
.deskpad-paper__inner {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.deskpad-paper__inner .case-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}
