/* byeKevin — reusable components */

/* ============================================================ Layout */

.app-shell {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0));
}

.page {
    max-width: var(--app-max);
    margin: 0 auto;
    padding: var(--sp-5) var(--sp-4) var(--sp-8);
}

.section { margin-top: var(--sp-6); }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
    padding: 0 var(--sp-1);
}
.section-head h2 {
    font-size: var(--fs-sm);
    font-weight: var(--fw-semi);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.section-head .action {
    font-size: var(--fs-sm);
    color: var(--text-dim);
}
.section-head .action:hover { color: var(--accent); }

/* ============================================================ Top bar */

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-h);
    padding: 0 var(--sp-4);
    background: rgba(11, 15, 26, 0.72);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--border-soft);
}

/* Left-handed: swap logo and hamburger so the menu button sits on the
 * left where the thumb actually reaches. */
html[data-handed="left"] .topbar { flex-direction: row-reverse; }

.topbar .brand {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    font-weight: var(--fw-semi);
    font-size: var(--fs-md);
    letter-spacing: -0.01em;
    color: var(--text);
}

.topbar .brand .logo { height: 22px; width: auto; }
.topbar .brand .title { color: var(--text); }
.topbar .brand .title .bracket { color: var(--accent); }

.topbar .actions {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
}

/* ============================================================ Bottom nav */

.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 30;
    height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0));
    padding-bottom: env(safe-area-inset-bottom, 0);
    background: rgba(11, 15, 26, 0.82);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    border-top: 1px solid var(--border-soft);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: var(--sp-2) var(--sp-1) 0;
    color: var(--text-faint);
    font-size: 11px;
    font-weight: var(--fw-medium);
    letter-spacing: 0.02em;
    transition: color var(--t-fast) var(--ease);
}

.bottom-nav a:hover { color: var(--text-muted); }

.bottom-nav a.active {
    color: var(--accent);
}

.bottom-nav a .nav-ico {
    width: 24px; height: 24px;
    display: inline-flex;
    align-items: center; justify-content: center;
    transition: transform var(--t-base) var(--ease-out);
}

.bottom-nav a.active .nav-ico { transform: translateY(-1px); }

.bottom-nav a .nav-ico svg {
    width: 22px; height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ============================================================ Card */

.card {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: var(--sp-4);
    transition: border-color var(--t-base) var(--ease), transform var(--t-fast) var(--ease);
}

.card.card-raised {
    background: var(--surface-2);
    box-shadow: var(--shadow-sm);
}

.card.clickable { cursor: pointer; }
.card.clickable:hover { border-color: var(--border-strong); }
.card.clickable:active { transform: scale(0.995); }

.card-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    color: var(--text);
    line-height: 1.35;
}

.card-meta {
    font-size: var(--fs-xs);
    color: var(--text-faint);
    margin-top: var(--sp-1);
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--sp-3);
}

/* ============================================================ Greeting card */

.greeting {
    position: relative;
    background:
        linear-gradient(180deg, rgba(255, 138, 107, 0.08), rgba(255, 138, 107, 0) 60%),
        var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-xl);
    padding: var(--sp-5);
    overflow: hidden;
}

.greeting::before {
    content: "";
    position: absolute;
    top: -60px; right: -60px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, var(--accent-soft), transparent 70%);
    pointer-events: none;
}

.greeting .kevin-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px 2px 6px;
    border-radius: var(--r-full);
    background: var(--accent-soft);
    color: var(--accent-2);
    font-size: 11px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--sp-3);
}
.greeting .kevin-tag .dot {
    width: 6px; height: 6px;
    border-radius: var(--r-full);
    background: var(--accent-2);
    box-shadow: 0 0 8px var(--accent);
}

.greeting .hello {
    font-size: var(--fs-2xl);
    font-weight: var(--fw-semi);
    color: var(--text-strong);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.greeting .sub {
    margin-top: var(--sp-2);
    font-size: var(--fs-md);
    color: var(--text-muted);
    line-height: 1.45;
}

/* ============================================================ Stats row */

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
    margin-top: var(--sp-4);
}

.stat {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: var(--sp-3);
    text-align: left;
}

.stat .value {
    display: block;
    font-size: var(--fs-2xl);
    font-weight: var(--fw-bold);
    color: var(--text-strong);
    letter-spacing: -0.02em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat .label {
    display: block;
    margin-top: var(--sp-2);
    font-size: var(--fs-xs);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: var(--fw-medium);
}

.stat.overdue .value { color: var(--overdue-fg); }
.stat.today   .value { color: var(--accent-2); }
.stat.done    .value { color: var(--done-fg); }

/* Day-Header: Headline links, kompakte Stats rechts (Mein Tag) */
.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-5);
}

.day-header-title {
    min-width: 0;
    flex: 0 1 auto;
}

.day-header-title h1 { line-height: 1.1; }

.stats.compact {
    display: flex;
    gap: 6px;
    margin: 0;
    flex: 0 0 auto;
}

.stats.compact .stat {
    padding: 6px 10px;
    border-radius: var(--r-sm, 8px);
    text-align: center;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.stats.compact .stat .value {
    font-size: var(--fs-lg);
    line-height: 1;
}

.stats.compact .stat .label {
    margin-top: 0;
    font-size: 10px;
    letter-spacing: 0.04em;
    text-transform: lowercase;
}

@media (max-width: 359px) {
    .day-header {
        flex-direction: column;
        align-items: flex-start;
    }
    .stats.compact { align-self: stretch; justify-content: space-between; }
    .stats.compact .stat { flex: 1; }
}

/* ============================================================ Quick capture */

.composer {
    position: relative;
    display: flex;
    gap: var(--sp-2);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 6px;
    transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease);
}

.composer:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

.composer input {
    flex: 1;
    min-width: 0;
    padding: var(--sp-3) var(--sp-3);
    background: transparent;
    border: none;
    color: var(--text);
    font-size: var(--fs-md);
}

.composer input::placeholder { color: var(--text-faint); }

.composer button {
    flex-shrink: 0;
    width: 40px; height: 40px;
    border-radius: var(--r-md);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 22px;
    font-weight: var(--fw-semi);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--t-fast) var(--ease);
}

.composer button:hover { background: var(--accent-2); }
.composer button:active { transform: scale(0.94); }
.composer button:disabled { opacity: 0.5; cursor: progress; }

.composer-hint {
    margin: var(--sp-2) var(--sp-2) 0;
    font-size: var(--fs-xs);
    color: var(--text-faint);
}

/* ============================================================ Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-4);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--surface-1);
    color: var(--text);
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    transition: all var(--t-fast) var(--ease);
    min-height: 40px;
    user-select: none;
}

.btn:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.btn:active { transform: scale(0.98); }

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
    font-weight: var(--fw-semi);
}
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--accent-ink); }

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text-muted);
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }

/* Danger button — warmes Amber, kein Rot, kein Shame. Fuer Loeschaktionen. */
.btn-danger {
    background: transparent;
    color: var(--overdue-fg);
    border: 1px solid var(--overdue-fg);
    font-weight: var(--fw-semi);
}
.btn-danger:hover {
    background: rgba(251, 191, 119, 0.10);
    border-color: var(--overdue-fg);
    color: var(--overdue-fg);
}

.btn-sm { min-height: 32px; padding: 6px var(--sp-3); font-size: var(--fs-xs); border-radius: var(--r-sm); }
.btn-icon {
    width: 40px; padding: 0;
    aspect-ratio: 1;
    flex-shrink: 0;
}

/* Kleine Icon-Buttons (z.B. inline neben Titeln). Transparent, currentColor. */
.icon-btn {
    width: 32px; height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    color: var(--text-dim);
    flex-shrink: 0;
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn.sm { width: 26px; height: 26px; }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.sm svg { width: 14px; height: 14px; }
.icon-btn.danger { color: var(--overdue-fg); }
.icon-btn.danger:hover { background: rgba(251, 191, 119, 0.10); color: var(--overdue-fg); }

/* FAB (floating action button) — generic */
.fab {
    position: fixed;
    right: var(--sp-4);
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0) + var(--sp-4));
    width: 56px; height: 56px;
    border-radius: var(--r-full);
    background: var(--accent);
    color: var(--accent-ink);
    font-size: 26px;
    font-weight: var(--fw-semi);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 32px rgba(255, 138, 107, 0.35), var(--shadow-md);
    z-index: 25;
    transition: transform var(--t-base) var(--ease-out);
}
.fab:hover { transform: translateY(-2px); }
.fab:active { transform: scale(0.96); }

/* ============================================================ Quick-Capture FAB */
.qc-fab {
    position: fixed;
    right: var(--sp-4);
    bottom: calc(var(--nav-h) + env(safe-area-inset-bottom, 0) + var(--sp-4));
    height: 56px;
    padding: 0 var(--sp-5) 0 var(--sp-4);
    border-radius: var(--r-full);
    background: linear-gradient(180deg, var(--accent-2), var(--accent));
    color: var(--accent-ink);
    font-size: var(--fs-md);
    font-weight: var(--fw-semi);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 12px 32px rgba(255, 138, 107, 0.38), var(--shadow-md);
    z-index: 25;
    transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease);
}
.qc-fab svg {
    width: 22px; height: 22px;
    stroke-width: 2.25;
}
.qc-fab-label {
    font-size: var(--fs-sm);
    letter-spacing: 0.01em;
}
.qc-fab:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(255, 138, 107, 0.45), var(--shadow-md);
}
.qc-fab:active { transform: scale(0.96); }

/* On narrow phones the text label disappears — icon-only circle. */
@media (max-width: 380px) {
    .qc-fab {
        width: 56px;
        padding: 0;
        justify-content: center;
    }
    .qc-fab-label { display: none; }
}

/* Quick-Capture modal tweaks */
.qc-modal { padding: var(--sp-5) var(--sp-5) var(--sp-4); }
.qc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-3);
}
.qc-head .close {
    color: var(--text-dim);
    padding: 4px;
    border-radius: var(--r-sm);
}
.qc-head .close svg { width: 18px; height: 18px; }
.qc-head .close:hover { color: var(--text); background: var(--surface-hover); }

.qc-input {
    width: 100%;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: var(--fs-md);
    font-family: inherit;
    line-height: 1.5;
    resize: vertical;
    min-height: 100px;
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.qc-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-ring);
}
.qc-input::placeholder { color: var(--text-faint); }
.qc-hint {
    margin: var(--sp-2) var(--sp-1) 0;
    font-size: var(--fs-xs);
    color: var(--text-faint);
}

/* ============================================================ Pills / Badges */

.pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: var(--r-full);
    font-size: 11px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pill-task     { background: var(--info-bg);    color: var(--info-fg); }
.pill-shopping { background: var(--note-bg);    color: var(--note-fg); }
.pill-note     { background: var(--done-bg);    color: var(--done-fg); }
.pill-event    { background: var(--overdue-bg); color: var(--overdue-fg); }
.pill-unknown  { background: var(--border-soft); color: var(--text-dim); }

.pill.prio-low  { background: var(--prio-low-bg);  color: var(--prio-low-fg); }
.pill.prio-med  { background: var(--prio-med-bg);  color: var(--prio-med-fg); }
.pill.prio-high { background: var(--prio-high-bg); color: var(--prio-high-fg); }

.pill.overdue { background: var(--overdue-bg); color: var(--overdue-fg); }
.pill.today   { background: var(--accent-soft); color: var(--accent-2); }

/* ============================================================ Task rows */

.task {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    border-radius: var(--r-md);
    background: transparent;
    border: 1px solid transparent;
    transition: background var(--t-fast) var(--ease);
    width: 100%;
    text-align: left;
}

.task:hover { background: var(--surface-hover); }

.task .check {
    width: 22px; height: 22px;
    flex-shrink: 0;
    border: 1.75px solid var(--border-strong);
    border-radius: var(--r-full);
    background: var(--surface-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 13px;
    transition: all var(--t-base) var(--ease);
}

.task:hover .check { border-color: var(--accent); }

.task.done .check {
    background: var(--done-bg);
    border-color: var(--done-fg);
    color: var(--done-fg);
}

.task .check svg { width: 12px; height: 12px; }

.task .body {
    flex: 1;
    min-width: 0;
}

.task .title {
    font-size: var(--fs-md);
    color: var(--text);
    line-height: 1.35;
    font-weight: var(--fw-medium);
}

.task.done .title {
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: var(--border-strong);
}

.task .meta {
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    margin-top: 4px;
    font-size: var(--fs-xs);
    color: var(--text-faint);
}

.task .meta .sep { color: var(--border-strong); }

.task .prio-dot {
    width: 8px; height: 8px;
    border-radius: var(--r-full);
    flex-shrink: 0;
    background: var(--prio-med-fg);
}
.task .prio-dot.prio-low  { background: var(--prio-low-fg); }
.task .prio-dot.prio-high { background: var(--prio-high-fg); box-shadow: 0 0 8px var(--prio-high-bg); }

.task.overdue .meta .due { color: var(--overdue-fg); }

/* ============================================================ Inbox card */

.inbox-card {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-3) var(--sp-2);
    transition: border-color var(--t-base) var(--ease);
}
.inbox-card:hover { border-color: var(--border); }

.inbox-card .row { gap: var(--sp-3); align-items: flex-start; }
.inbox-card .raw {
    flex: 1;
    font-size: var(--fs-md);
    color: var(--text);
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: anywhere;
}

.inbox-card .actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: var(--sp-3);
    padding-top: var(--sp-2);
    border-top: 1px dashed var(--border-soft);
}

.inbox-card .actions .btn-sm { border-radius: var(--r-sm); }

/* ============================================================ Project accordion */

details.project {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: border-color var(--t-base) var(--ease);
}
details.project + details.project { margin-top: var(--sp-3); }
details.project[open] { border-color: var(--border-strong); }

details.project > summary {
    cursor: pointer;
    list-style: none;
    padding: var(--sp-4);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
details.project > summary::-webkit-details-marker { display: none; }

details.project .chev {
    width: 20px; height: 20px;
    color: var(--text-dim);
    transition: transform var(--t-base) var(--ease-out);
    flex-shrink: 0;
}
details.project[open] .chev { transform: rotate(90deg); color: var(--accent); }

details.project .proj-name {
    flex: 1;
    font-weight: var(--fw-semi);
    color: var(--text);
    font-size: var(--fs-md);
}

details.project .proj-count {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    background: var(--surface-3);
    padding: 3px 10px;
    border-radius: var(--r-full);
}

details.project .body {
    padding: 0 var(--sp-3) var(--sp-3);
    border-top: 1px solid var(--border-soft);
}

.progress {
    margin: var(--sp-3) var(--sp-2);
    height: 4px;
    border-radius: var(--r-full);
    background: var(--surface-3);
    overflow: hidden;
}
.progress .fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    transition: width var(--t-slow) var(--ease-out);
}

.group-block { margin: var(--sp-3) 0; }
.group-block h3 {
    margin: 0 var(--sp-2) var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.group-block.orphan h3 { color: var(--text-faint); }

.add-row {
    display: flex;
    gap: var(--sp-2);
    margin-top: var(--sp-3);
    padding: 0 var(--sp-2);
}

/* ============================================================ Empty state */

.empty {
    text-align: center;
    padding: var(--sp-12) var(--sp-4);
    color: var(--text-dim);
}
.empty .empty-icon {
    width: 56px; height: 56px;
    margin: 0 auto var(--sp-3);
    color: var(--text-faint);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r-full);
    background: var(--surface-1);
    border: 1px dashed var(--border);
}
.empty .empty-icon svg { width: 26px; height: 26px; }
.empty h3 {
    font-size: var(--fs-lg);
    color: var(--text);
    font-weight: var(--fw-semi);
    margin-bottom: var(--sp-1);
}
.empty p { font-size: var(--fs-sm); color: var(--text-dim); margin: 0; }

/* ============================================================ Modal */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 50;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeIn var(--t-base) var(--ease-out);
}

@media (min-width: 560px) {
    .modal-backdrop { align-items: center; }
}

.modal {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding: var(--sp-5);
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
    animation: slideUp var(--t-slow) var(--ease-out);
    max-height: 85vh;
    overflow-y: auto;
}

@media (min-width: 560px) {
    .modal { border-radius: var(--r-xl); }
}

@keyframes slideUp {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0); opacity: 1; }
}

.modal .modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--sp-4);
}
.modal h2 {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semi);
    color: var(--text-strong);
}
.modal .close {
    color: var(--text-dim);
    padding: var(--sp-2);
    border-radius: var(--r-sm);
}
.modal .close:hover { background: var(--surface-hover); color: var(--text); }

.modal .field { margin-bottom: var(--sp-3); }
.modal .field label {
    display: block;
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--sp-2);
}

.modal .field input,
.modal .field select,
.modal .field textarea {
    width: 100%;
    padding: var(--sp-3);
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-size: var(--fs-md);
    transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.modal .field input:focus,
.modal .field select:focus,
.modal .field textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

.modal .field textarea { min-height: 90px; resize: vertical; font-family: inherit; }

.modal .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.modal .chip {
    padding: 6px var(--sp-3);
    border-radius: var(--r-full);
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
}
.modal .chip:hover { color: var(--text); }
.modal .chip.active {
    background: var(--accent-soft);
    color: var(--accent-2);
    border-color: var(--accent-ring);
}

.modal .foot {
    display: flex;
    gap: var(--sp-2);
    justify-content: flex-end;
    margin-top: var(--sp-5);
}

/* ============================================================ Toast */

.toast-host {
    position: fixed;
    top: calc(var(--topbar-h) + var(--sp-3));
    left: 50%;
    transform: translateX(-50%);
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    pointer-events: none;
}

.toast {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: var(--sp-3) var(--sp-4);
    color: var(--text);
    font-size: var(--fs-sm);
    box-shadow: var(--shadow-md);
    animation: fadeIn var(--t-base) var(--ease-out);
    pointer-events: auto;
    max-width: 92vw;
}

.toast.success { border-color: var(--done-ring); }
.toast.info    { border-color: var(--info-ring); }

/* ============================================================ Calendar */

.cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--sp-4);
    gap: var(--sp-3);
}
.cal-title {
    font-size: var(--fs-xl);
    font-weight: var(--fw-semi);
    color: var(--text-strong);
    letter-spacing: -0.01em;
    text-transform: capitalize;
    font-variant-numeric: tabular-nums;
}
.cal-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}
.cal-nav .btn { min-height: 36px; padding: 6px 12px; }
.cal-nav .btn-icon { width: 36px; }
.cal-nav .btn-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.cal-grid {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-lg);
    padding: 8px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 4px;
}
.cal-weekdays div {
    padding: 6px 4px;
    text-align: center;
    font-size: 11px;
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}
.cal-weekdays .we { color: var(--text-faint); }

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.cal-day {
    position: relative;
    aspect-ratio: 1 / 1.05;
    padding: 6px 4px 4px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--r-sm);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
    min-height: 56px;
}
.cal-day:hover {
    background: var(--surface-hover);
    border-color: var(--border-soft);
}
.cal-day .n {
    font-size: var(--fs-sm);
    font-weight: var(--fw-medium);
    color: var(--text);
    font-variant-numeric: tabular-nums;
    padding-left: 2px;
}
.cal-day.other { opacity: 0.35; }
.cal-day.other .n { color: var(--text-faint); }
.cal-day.weekend .n { color: var(--text-muted); }
.cal-day.today {
    border-color: var(--accent-ring);
    background: var(--accent-soft);
}
.cal-day.today .n {
    color: var(--accent-2);
    font-weight: var(--fw-semi);
}

.cal-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    align-items: flex-end;
    flex: 1;
    padding: 0 2px 2px;
}
.cal-dots .dot {
    width: 6px; height: 6px;
    border-radius: var(--r-full);
    background: var(--accent);
}
.cal-dots .dot.prio-high { background: var(--prio-high-fg); }
.cal-dots .dot.prio-low  { background: var(--prio-low-fg); }
.cal-dots .dot.done      { background: var(--done-fg); opacity: 0.65; }
.cal-dots .dot.overdue   { background: var(--overdue-fg); }
.cal-dots .more {
    font-size: 10px;
    color: var(--text-faint);
    margin-left: 2px;
}

/* Day detail modal reuses modal; just style task lists inside. */
.cal-day-tasks { display: flex; flex-direction: column; gap: 6px; }

/* ============================================================ Shopping */

.shop-list { display: flex; flex-direction: column; gap: 4px; }

.shop-group {
    margin-top: var(--sp-3);
}
.shop-group:first-child { margin-top: 0; }
.shop-group h3 {
    margin: 0 var(--sp-2) var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.shop-item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: 10px 12px;
    border-radius: var(--r-md);
    background: var(--surface-1);
    border: 1px solid transparent;
    transition: all var(--t-fast) var(--ease);
    width: 100%;
    text-align: left;
}
.shop-item:hover { border-color: var(--border); }
.shop-item.checked { opacity: 0.5; }
.shop-item.checked .name { text-decoration: line-through; color: var(--text-dim); }

.shop-item .check {
    width: 22px; height: 22px;
    flex-shrink: 0;
    border: 1.75px solid var(--border-strong);
    border-radius: var(--r-sm);
    background: var(--surface-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    transition: all var(--t-base) var(--ease);
}
.shop-item:hover .check { border-color: var(--accent); }
.shop-item.checked .check {
    background: var(--done-bg);
    border-color: var(--done-fg);
    color: var(--done-fg);
}
.shop-item .check svg { width: 14px; height: 14px; }
.shop-item .name {
    flex: 1;
    font-size: var(--fs-md);
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-item .qty {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.shop-item .del {
    color: var(--text-faint);
    padding: 4px;
    border-radius: var(--r-xs);
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
}
.shop-item:hover .del { opacity: 1; }
.shop-item .del svg { width: 16px; height: 16px; }
.shop-item .del:hover { color: var(--text); background: var(--surface-hover); opacity: 1; }

/* ============================================================ Shopping list item emoji (list view) */

.shop-item .emoji {
    width: 28px; height: 28px;
    font-size: 22px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    /* Use system emoji font so colours work across platforms. */
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
                 "Twemoji Mozilla", sans-serif;
}

/* ============================================================ Shopping — view toggle + grid */

.shop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    margin-bottom: var(--sp-3);
}

.view-toggle {
    display: inline-flex;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 3px;
    gap: 2px;
}
.view-toggle button {
    width: 40px; height: 34px;
    border-radius: var(--r-sm);
    color: var(--text-muted);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t-fast) var(--ease);
}
.view-toggle button:hover { color: var(--text); }
.view-toggle button.active {
    background: var(--accent);
    color: var(--accent-ink);
}
.view-toggle button svg {
    width: 18px; height: 18px;
    stroke: currentColor; fill: none;
    stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
@media (min-width: 600px) { .shop-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .shop-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1200px){ .shop-grid { grid-template-columns: repeat(6, 1fr); } }

.shop-tile {
    position: relative;
    aspect-ratio: 1 / 1.1;
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.shop-tile:hover   { border-color: var(--accent); transform: translateY(-1px); }
.shop-tile:active  { transform: scale(0.97); }
.shop-tile.checked { opacity: 0.5; }
.shop-tile.checked:hover { opacity: 0.65; }

.shop-tile .tile-emoji {
    font-size: 40px;
    line-height: 1;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji",
                 "Twemoji Mozilla", sans-serif;
    transition: transform var(--t-base) var(--ease);
}
.shop-tile:hover .tile-emoji { transform: scale(1.08); }

.shop-tile .tile-name {
    font-size: 12px;
    font-weight: var(--fw-medium);
    color: var(--text);
    text-align: center;
    line-height: 1.2;
    max-width: 100%;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}
.shop-tile.checked .tile-name {
    color: var(--text-dim);
    text-decoration: line-through;
    text-decoration-color: var(--border-strong);
}

.shop-tile .tile-qty {
    position: absolute;
    bottom: 4px;
    right: 6px;
    font-size: 10px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.shop-tile .tile-check {
    position: absolute;
    top: 6px; right: 6px;
    width: 20px; height: 20px;
    border-radius: var(--r-full);
    background: var(--done-bg);
    border: 1px solid var(--done-ring);
    color: var(--done-fg);
    display: none;
    align-items: center;
    justify-content: center;
    transition: all var(--t-base) var(--ease);
}
.shop-tile .tile-check svg { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.shop-tile.checked .tile-check { display: flex; }

.shop-tile .tile-del {
    position: absolute;
    top: 4px; left: 4px;
    width: 22px; height: 22px;
    border-radius: var(--r-full);
    background: rgba(0, 0, 0, 0.55);
    color: var(--text);
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.shop-tile:hover .tile-del { display: flex; }
.shop-tile .tile-del svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.shop-group-head-grid {
    grid-column: 1 / -1;
    margin: var(--sp-3) 0 2px;
    padding: 0 var(--sp-2);
    font-size: var(--fs-xs);
    font-weight: var(--fw-semi);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

/* ============================================================ Notes */

.note-card {
    background: var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-md);
    padding: var(--sp-4);
    transition: border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
    cursor: pointer;
    display: block;
    text-align: left;
    width: 100%;
}
.note-card:hover { border-color: var(--border); transform: translateY(-1px); }
.note-card .n-title {
    font-size: var(--fs-md);
    font-weight: var(--fw-semi);
    color: var(--text);
    margin-bottom: 4px;
    line-height: 1.3;
}
.note-card .n-preview {
    font-size: var(--fs-sm);
    color: var(--text-dim);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--sp-2);
}
.note-card .n-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-2);
    font-size: 11px;
    color: var(--text-faint);
}
.note-card .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.note-card .tag {
    padding: 2px 8px;
    background: var(--surface-3);
    color: var(--text-muted);
    border-radius: var(--r-full);
    font-size: 10px;
    font-weight: var(--fw-medium);
}
.note-card.pinned { border-color: var(--accent-ring); }
.note-card.pinned::before {
    content: "";
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: var(--r-full);
    background: var(--accent);
    margin-right: 6px;
    vertical-align: middle;
}

.notes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--sp-3);
}
@media (min-width: 640px) {
    .notes-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Markdown textarea editor */
.md-editor {
    width: 100%;
    min-height: 260px;
    padding: var(--sp-3) var(--sp-4);
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: var(--fs-sm);
    line-height: 1.6;
    resize: vertical;
    transition: border-color var(--t-fast) var(--ease);
}
.md-editor:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-ring);
}

/* ============================================================ Segmented control */

.segmented {
    display: inline-flex;
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 3px;
    gap: 2px;
}
.segmented button {
    padding: 6px 12px;
    border-radius: var(--r-sm);
    font-size: var(--fs-xs);
    font-weight: var(--fw-medium);
    color: var(--text-muted);
    background: transparent;
    transition: all var(--t-fast) var(--ease);
}
.segmented button:hover { color: var(--text); }
.segmented button.active {
    background: var(--accent);
    color: var(--accent-ink);
}

/* ============================================================ Photo-Analyst */

.photo-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-3);
    padding: var(--sp-6) var(--sp-4);
    background: var(--surface-1);
    border: 1.5px dashed var(--border-strong);
    border-radius: var(--r-lg);
    cursor: pointer;
    transition: all var(--t-fast) var(--ease);
    text-align: center;
}
.photo-drop:hover, .photo-drop.dragover {
    border-color: var(--accent);
    background: var(--accent-soft);
}
.photo-drop .ico {
    width: 48px; height: 48px;
    display: flex;
    align-items: center; justify-content: center;
    background: var(--surface-3);
    color: var(--accent);
    border-radius: var(--r-full);
}
.photo-drop .ico svg { width: 24px; height: 24px; }
.photo-drop h3 { color: var(--text); font-size: var(--fs-md); font-weight: var(--fw-semi); }
.photo-drop p  { color: var(--text-dim); font-size: var(--fs-sm); max-width: 320px; }

.photo-drop.has-image {
    border-style: solid;
    padding: 0;
    overflow: hidden;
    min-height: 200px;
}
.photo-drop.has-image img {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    display: block;
}
.photo-drop.has-image .swap-hint {
    position: absolute;
    bottom: 12px; left: 12px;
    padding: 6px 12px;
    background: rgba(11, 15, 26, 0.78);
    color: var(--text);
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.photo-result {
    background:
        linear-gradient(180deg, var(--accent-soft), transparent 60%),
        var(--surface-1);
    border: 1px solid var(--border-soft);
    border-radius: var(--r-xl);
    padding: var(--sp-5);
    margin-top: var(--sp-4);
    animation: fadeIn var(--t-slow) var(--ease-out);
}
.photo-result .lead {
    font-size: var(--fs-lg);
    font-weight: var(--fw-semi);
    color: var(--text-strong);
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: var(--sp-3);
}
.photo-result ol {
    padding-left: 0;
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.photo-result ol li {
    counter-increment: step;
    padding: 10px 14px 10px 42px;
    background: var(--surface-3);
    border-radius: var(--r-md);
    font-size: var(--fs-md);
    color: var(--text);
    line-height: 1.5;
    position: relative;
}
.photo-result ol li::before {
    content: counter(step);
    position: absolute;
    left: 10px; top: 10px;
    width: 24px; height: 24px;
    border-radius: var(--r-full);
    background: var(--accent);
    color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: var(--fw-bold);
}

.photo-history { margin-top: var(--sp-6); }
.photo-history .card {
    padding: 12px 14px;
}
.photo-history .kw {
    font-weight: var(--fw-semi);
    color: var(--text);
}
.photo-history .one {
    color: var(--text-dim);
    font-size: var(--fs-sm);
    margin-top: 2px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================ Hamburger / Sheet panel */

.hamburger {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted);
    border-radius: var(--r-sm);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.hamburger:hover { background: var(--surface-hover); color: var(--text); }
.hamburger svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sheet-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 14, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 45;
    animation: fadeIn var(--t-base) var(--ease-out);
}

.sheet-panel {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: 88vw;
    max-width: 340px;
    background: var(--surface-2);
    border-left: 1px solid var(--border);
    z-index: 46;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    animation: slideIn var(--t-slow) var(--ease-out);
    overflow-y: auto;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Left-handed: slide in from the LEFT edge. Both the attribute-based
 * selector (auto via api.js) and the explicit modifier class (set by
 * nav.js at open time) win over the right-handed default. */
html[data-handed="left"] .sheet-panel,
.sheet-panel.sheet-panel--left {
    right: auto;
    left: 0;
    border-left: none;
    border-right: 1px solid var(--border);
    animation: slideInLeft var(--t-slow) var(--ease-out);
}

@keyframes slideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
}

@keyframes slideInLeft {
    from { transform: translateX(-100%); }
    to   { transform: translateX(0); }
}

.sheet-head {
    padding: var(--sp-5) var(--sp-4) var(--sp-4);
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: var(--sp-3);
}
.sheet-head .avatar {
    width: 44px; height: 44px;
    border-radius: var(--r-full);
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    color: var(--accent-ink);
    font-weight: var(--fw-bold);
    font-size: var(--fs-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.sheet-head .who .name {
    font-weight: var(--fw-semi);
    color: var(--text);
    font-size: var(--fs-md);
}
.sheet-head .who .mail {
    font-size: var(--fs-xs);
    color: var(--text-dim);
    margin-top: 2px;
}
.sheet-head .close {
    margin-left: auto;
    color: var(--text-dim);
    padding: 6px;
    border-radius: var(--r-sm);
}
.sheet-head .close:hover { background: var(--surface-hover); color: var(--text); }
.sheet-head .close svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.sheet-section {
    padding: var(--sp-3) var(--sp-2);
}
.sheet-section + .sheet-section {
    border-top: 1px solid var(--border-soft);
}
.sheet-section .sheet-label {
    padding: 6px var(--sp-3);
    font-size: 11px;
    font-weight: var(--fw-semi);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}

.sheet-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 12px;
    border-radius: var(--r-md);
    color: var(--text);
    font-size: var(--fs-md);
    font-weight: var(--fw-medium);
    transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.sheet-link:hover { background: var(--surface-hover); }
.sheet-link.active {
    background: var(--accent-soft);
    color: var(--accent-2);
}
.sheet-link .ico {
    width: 22px; height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    flex-shrink: 0;
}
.sheet-link.active .ico { color: var(--accent-2); }
.sheet-link .ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

.sheet-link.logout { color: var(--text-muted); }
.sheet-link.logout:hover { color: var(--overdue-fg); background: var(--overdue-bg); }

/* ============================================================ Divider */

.divider {
    height: 1px;
    background: var(--border-soft);
    margin: var(--sp-4) 0;
    border: 0;
}

/* ============================================================ Drag & Drop sortable */

.drag-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    color: var(--text-faint);
    cursor: grab;
    touch-action: none; /* damit Long-Press nicht scrollt */
    flex-shrink: 0;
    user-select: none;
    -webkit-user-select: none;
}
.drag-handle:hover { color: var(--text-dim); background: var(--surface-hover, transparent); }
.drag-handle:active { cursor: grabbing; }
.drag-handle svg { width: 18px; height: 18px; }

.sortable-item {
    transition: transform 120ms ease, box-shadow 120ms ease;
}
.sortable-item.dragging {
    opacity: 0.92;
    transform: scale(1.02);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 100;
    pointer-events: none;
}
.sortable-item.dragging-placeholder {
    background: transparent;
    border: 2px dashed var(--border-soft);
    border-radius: var(--radius-md, 10px);
    opacity: 0.6;
    box-shadow: none;
}
.sortable-item.dragging-placeholder * { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
    .sortable-item { transition: none; }
    .sortable-item.dragging { transform: none; }
}
