@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
    font-weight: 200 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-sans: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
    --ink: #18251f;
    --ink-soft: #52615a;
    --ink-muted: #68746d;
    --canvas: #f3f0e9;
    --canvas-deep: #ebe6dd;
    --surface: #fffefa;
    --surface-soft: #faf8f2;
    --surface-muted: #f1eee6;
    --line: #e7e1d6;
    --line-strong: #d9d2c5;
    --green: #1c6a55;
    --green-deep: #134b3c;
    --green-soft: #e7f1eb;
    --green-pale: #f1f7f3;
    --coral: #c55d42;
    --coral-soft: #faeee9;
    --amber: #b47725;
    --amber-soft: #fbf1e1;
    --violet: #73569d;
    --violet-soft: #f0ecf8;
    --red: #bd4b3d;
    --red-soft: #faece9;
    --blue: #467792;
    --blue-soft: #eaf2f7;
    --sidebar: #14241e;
    --sidebar-soft: #1d3028;
    --sidebar-line: rgba(255, 255, 255, 0.09);
    --shadow-xs: 0 1px 2px rgba(24, 37, 31, 0.05);
    --shadow-sm: 0 2px 5px rgba(24, 37, 31, 0.05), 0 10px 24px -18px rgba(24, 37, 31, 0.24);
    --shadow-md: 0 4px 10px rgba(24, 37, 31, 0.06), 0 24px 55px -28px rgba(24, 37, 31, 0.34);
    --shadow-lg: 0 12px 35px rgba(13, 25, 20, 0.16), 0 50px 100px -40px rgba(13, 25, 20, 0.4);
    --radius-xs: 7px;
    --radius-sm: 10px;
    --radius-md: 13px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --sidebar-width: 252px;
    --topbar-height: 68px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --focus-ring: 0 0 0 3px rgba(28, 106, 85, 0.22);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--canvas);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.62;
}

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

svg {
    display: block;
}

.svg-sprite {
    position: absolute !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
}

.icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.icon-sm {
    width: 15px;
    height: 15px;
}

.icon-lg {
    width: 22px;
    height: 22px;
}

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

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 999;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-md);
    transform: translateY(-160%);
    transition: transform 0.18s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

::selection {
    background: rgba(28, 106, 85, 0.2);
}

:focus-visible {
    outline: 0;
    box-shadow: var(--focus-ring);
}

/* Shared controls */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -0.01em;
    white-space: nowrap;
    transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.btn .icon {
    width: 17px;
    height: 17px;
}

.btn-primary {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 1px 2px rgba(19, 75, 60, 0.18);
}

.btn-primary:hover {
    background: var(--green-deep);
    border-color: var(--green-deep);
    box-shadow: 0 6px 18px -8px rgba(19, 75, 60, 0.55);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-soft);
    border-color: var(--line);
}

.btn-ghost:hover {
    color: var(--ink);
    background: var(--surface-soft);
    border-color: var(--line-strong);
}

.btn-filter {
    background: var(--surface);
    color: var(--ink-soft);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
    min-height: 36px;
    padding: 0 12px;
    font-size: 12.5px;
}

.btn-filter:hover,
.btn-filter[aria-expanded="true"] {
    color: var(--ink);
    border-color: var(--line-strong);
    background: var(--surface);
}

.btn-small {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
}

.btn-danger {
    color: var(--red);
    background: var(--surface);
    border-color: #ecd4cf;
}

.btn-danger:hover {
    color: #9f3429;
    background: var(--red-soft);
    border-color: #e4bdb6;
}

.btn-icon-label {
    width: 40px;
    padding: 0;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--ink-soft);
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.icon-button:hover {
    background: var(--surface-soft);
    border-color: var(--line);
    color: var(--ink);
}

.icon-button-dark {
    color: rgba(255, 255, 255, 0.64);
}

.icon-button-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: transparent;
    color: #fff;
}

.icon-button.is-spinning .icon {
    animation: spin 0.75s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.01em;
    background: #e5e9e5;
    color: #4e5f57;
    border: 1px solid rgba(24, 37, 31, 0.06);
    user-select: none;
}

.avatar-sm { width: 28px; height: 28px; font-size: 9px; }
.avatar-md { width: 36px; height: 36px; font-size: 10.5px; }
.avatar-lg { width: 44px; height: 44px; font-size: 12px; }
.avatar-xl { width: 56px; height: 56px; font-size: 15px; }

.tone-sage { background: #dcece4; color: #205b4a; }
.tone-clay { background: #f3e2d6; color: #965038; }
.tone-sky { background: #deebf2; color: #35687f; }
.tone-plum { background: #eae1f3; color: #694b91; }
.tone-gold { background: #f5ead5; color: #88611f; }
.tone-teal { background: #d9ecea; color: #246a67; }
.tone-rose { background: #f5dfe1; color: #9d4a54; }
.tone-slate { background: #e5e8e4; color: #53655d; }

.avatar-stack {
    display: flex;
    align-items: center;
    padding-left: 7px;
}

.avatar-stack .avatar {
    margin-left: -7px;
    border: 2px solid var(--canvas);
}

.avatar-stack .stack-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-left: -7px;
    border-radius: 50%;
    border: 2px solid var(--canvas);
    background: var(--canvas-deep);
    color: var(--ink-soft);
    font-size: 9.5px;
    font-weight: 800;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field > label,
.field > span,
.label-row label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.005em;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.label-hint {
    margin-left: 4px;
    font-size: 10.5px;
    color: var(--ink-muted);
}

.label-row .label-hint {
    margin-left: 0;
}

.field-compact {
    gap: 6px;
}

.field-compact > span {
    font-size: 11px;
    color: var(--ink-soft);
}

.input-shell {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input-shell:focus-within {
    border-color: var(--green);
    box-shadow: var(--focus-ring);
}

.input-shell .input-icon {
    position: absolute;
    left: 14px;
    color: var(--ink-muted);
    pointer-events: none;
}

.input-shell input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 43px;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 13.5px;
    border-radius: inherit;
}

.input-shell input::placeholder {
    color: #9ba49f;
}

.password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-right: 2px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-muted);
}

.password-toggle:hover {
    color: var(--ink);
    background: var(--surface-soft);
}

.password-toggle .icon-eye-off {
    display: none;
}

.password-toggle.is-visible .icon-eye {
    display: none;
}

.password-toggle.is-visible .icon-eye-off {
    display: block;
}

.text-input,
.select-input,
.textarea-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    outline: 0;
    font-size: 13px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.text-input {
    height: 40px;
}

.select-input {
    height: 40px;
    padding-right: 34px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8781' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5 5.5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 11px center;
    background-size: 15px;
}

.textarea-input {
    min-height: 110px;
    line-height: 1.6;
    resize: vertical;
}

.text-input:focus,
.select-input:focus,
.textarea-input:focus {
    border-color: var(--green);
    box-shadow: var(--focus-ring);
}

.text-input::placeholder,
.textarea-input::placeholder {
    color: #a0a9a4;
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 12.5px;
    line-height: 1.55;
}

.alert .icon {
    width: 17px;
    height: 17px;
    margin-top: 1px;
}

.alert-error {
    color: #8f392e;
    background: var(--red-soft);
    border-color: #efd3ce;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--green);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.pill-admin { background: var(--green-soft); color: var(--green-deep); }
.pill-member { background: #eef0ec; color: #59665f; }
.pill-active { background: var(--green-soft); color: var(--green-deep); }
.pill-inactive { background: #f1ece7; color: #84736a; }

.hidden { display: none !important; }

[hidden] { display: none !important; }

body.has-modal {
    overflow: hidden;
}

.btn.is-busy .btn-spinner {
    display: block;
}

/* =========================================================
   Authentication
   ========================================================= */
.auth-page {
    min-height: 100vh;
    background: #f8f6f1;
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(420px, 46%) minmax(480px, 54%);
    min-height: 100vh;
    min-height: 100dvh;
}

.auth-brand {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 16% 10%, rgba(91, 155, 121, 0.18), transparent 34%),
        radial-gradient(circle at 88% 72%, rgba(197, 93, 66, 0.11), transparent 30%),
        linear-gradient(147deg, #172a22 0%, #112019 52%, #0e1b16 100%);
    color: #f4f8f5;
    padding: clamp(28px, 4.4vw, 58px);
    display: flex;
    isolation: isolate;
}

.auth-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.14) 0.7px, transparent 0.7px);
    background-size: 20px 20px;
    opacity: 0.18;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black, transparent 68%);
}

.auth-orbit {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

.auth-orbit-one {
    width: 720px;
    height: 720px;
    right: -390px;
    top: -250px;
}

.auth-orbit-two {
    width: 510px;
    height: 510px;
    right: -285px;
    top: -145px;
}

.auth-brand-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 610px;
    margin: 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--green);
    color: #fff;
}

.brand-mark .icon {
    width: 25px;
    height: 25px;
}

.brand-word {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.brand-light {
    color: #f7faf8;
}

.brand-light .brand-mark {
    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d9ede2;
    backdrop-filter: blur(6px);
}

.auth-copy {
    margin-top: clamp(44px, 8vh, 94px);
    max-width: 540px;
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #a9c9b7;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.auth-kicker::before {
    content: "";
    width: 22px;
    height: 1px;
    background: #739b85;
}

.auth-copy h1 {
    max-width: 520px;
    font-size: clamp(31px, 3.15vw, 47px);
    line-height: 1.12;
    letter-spacing: -0.048em;
    font-weight: 700;
    color: #f5f8f6;
}

.auth-copy p {
    max-width: 440px;
    margin-top: 17px;
    color: rgba(230, 240, 234, 0.63);
    font-size: 13.5px;
    line-height: 1.7;
}

.auth-board-preview {
    position: relative;
    margin-top: clamp(34px, 6vh, 60px);
    transform: perspective(1400px) rotateX(2.2deg) rotateZ(-1.1deg);
    transform-origin: left center;
    filter: drop-shadow(0 42px 45px rgba(0, 0, 0, 0.34));
}

.preview-window {
    overflow: hidden;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(252, 251, 248, 0.96);
    color: var(--ink);
}

.preview-window-bar {
    display: flex;
    align-items: center;
    gap: 15px;
    height: 43px;
    padding: 0 15px;
    border-bottom: 1px solid #e9e5dc;
    background: #fffefa;
}

.preview-dots {
    display: flex;
    gap: 5px;
}

.preview-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d8d4ca;
}

.preview-window-title {
    font-size: 9.5px;
    font-weight: 700;
    color: #75817a;
    letter-spacing: 0.02em;
}

.preview-avatars {
    display: flex;
    margin-left: auto;
}

.mini-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 1.5px solid #fffefa;
    font-size: 6.5px;
    font-weight: 800;
}

.preview-avatars .mini-avatar + .mini-avatar {
    margin-left: -5px;
}

.preview-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 15px;
    background: #f6f3ed;
}

.preview-column {
    min-width: 0;
    padding: 9px;
    border: 1px solid #e8e3d9;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.44);
}

.preview-column-head {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 8px;
    font-size: 8px;
    font-weight: 800;
    color: #56645d;
}

.dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.dot-slate { color: #7c8a83; }
.dot-amber { color: #bd8130; }
.dot-violet { color: #8060a8; }
.dot-emerald { color: #2e8067; }
.dot-rose { color: #be665b; }
.dot-sky { color: #56839c; }

.preview-count {
    margin-left: auto;
    color: #99a19c;
    font-size: 7px;
    font-weight: 700;
}

.preview-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 7px;
    padding: 8px;
    border: 1px solid #ebe6dd;
    border-radius: 7px;
    background: #fffefa;
    box-shadow: 0 2px 4px rgba(24, 37, 31, 0.03);
}

.preview-card-short {
    opacity: 0.66;
}

.preview-tag {
    width: fit-content;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 5.5px;
    font-weight: 800;
}

.tag-normal { background: #eef1f0; color: #5c6b63; }
.tag-low { background: var(--blue-soft); color: #48728a; }
.tag-high { background: var(--amber-soft); color: #96651f; }

.preview-card-title {
    font-size: 7.5px;
    line-height: 1.35;
    font-weight: 700;
    color: #2c3a33;
}

.preview-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.preview-date {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #98a19c;
    font-size: 6px;
    font-weight: 600;
}

.preview-date .icon {
    width: 7px;
    height: 7px;
}

.preview-card-foot .mini-avatar {
    width: 16px;
    height: 16px;
    border-width: 1px;
    font-size: 5px;
}

.preview-card-done {
    position: relative;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    background: #fbfdfb;
}

.preview-card-done .preview-card-title {
    color: #7c8a82;
    text-decoration: line-through;
}

.preview-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #dcece4;
    color: #27705a;
}

.preview-check .icon {
    width: 8px;
    height: 8px;
}

.preview-progress {
    margin-top: 10px;
    padding: 8px;
    border-radius: 7px;
    background: #e8f1eb;
}

.preview-progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    color: #417562;
    font-size: 6px;
    font-weight: 700;
}

.preview-progress-track {
    height: 3px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(34, 94, 74, 0.16);
}

.preview-progress-track span {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: #3c856c;
}

.auth-brand-foot {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: auto;
    padding-top: 30px;
    color: rgba(220, 235, 225, 0.5);
}

.auth-foot-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.5px;
    font-weight: 600;
}

.auth-foot-item .icon {
    width: 15px;
    height: 15px;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background:
        radial-gradient(circle at 88% 9%, rgba(28, 106, 85, 0.045), transparent 23%),
        #fbf9f4;
    padding: 34px clamp(28px, 5vw, 78px);
}

.auth-panel-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 400px;
    min-height: calc(100vh - 68px);
    min-height: calc(100dvh - 68px);
}

.auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.auth-mobile-brand .brand-mark {
    color: #fff;
}

.auth-form-wrap {
    width: 100%;
    margin: auto 0;
    padding: 44px 0;
}

.auth-form-wrap > .eyebrow {
    margin-bottom: 15px;
}

.auth-form-wrap h2 {
    font-size: clamp(27px, 2.3vw, 34px);
    line-height: 1.16;
    letter-spacing: -0.045em;
    font-weight: 700;
}

.auth-sub {
    margin-top: 9px;
    color: var(--ink-muted);
    font-size: 13px;
    line-height: 1.65;
}

.auth-form-wrap .alert {
    margin-top: 24px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin-top: 31px;
}

.btn-login {
    width: 100%;
    height: 48px;
    margin-top: 3px;
    border-radius: 11px;
    font-size: 13.5px;
    position: relative;
    overflow: hidden;
}

.btn-login .btn-arrow {
    position: absolute;
    right: 16px;
    opacity: 0.62;
    transition: transform 0.18s ease;
}

.btn-login:hover .btn-arrow {
    transform: translateX(2px);
}

.btn-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-login.is-loading .btn-spinner {
    display: block;
}

.btn-login.is-loading .btn-arrow {
    display: none;
}

.auth-note {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 24px;
    padding: 12px 13px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.54);
    color: var(--ink-muted);
}

.auth-note .icon {
    width: 15px;
    height: 15px;
    margin-top: 2px;
    color: var(--green);
}

.auth-note p {
    font-size: 11.5px;
    line-height: 1.6;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding-top: 24px;
    color: #99a29d;
    font-size: 10px;
    font-weight: 600;
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #c6cbc7;
}

/* =========================================================
   Application shell
   ========================================================= */
.app-page {
    overflow: hidden;
    background: var(--canvas);
}

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    width: var(--sidebar-width);
    padding: 19px 15px 15px;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 3%, rgba(74, 134, 106, 0.16), transparent 30%),
        linear-gradient(180deg, #172921, #12211b 64%, #101e18);
    border-right: 1px solid rgba(255, 255, 255, 0.04);
    color: #e8f0eb;
}

.sidebar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: radial-gradient(rgba(255, 255, 255, 0.16) 0.6px, transparent 0.6px);
    background-size: 18px 18px;
    opacity: 0.11;
}

.sidebar > * {
    position: relative;
}

.sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px 0 4px;
    min-height: 40px;
}

.sidebar-close {
    display: none;
}

.sidebar-label {
    display: block;
    color: rgba(219, 234, 225, 0.4);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sidebar-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 7px;
    margin-bottom: 5px;
}

.sidebar-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: rgba(219, 234, 225, 0.48);
    transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-add .icon {
    width: 14px;
    height: 14px;
}

.sidebar-add:hover {
    color: #f2f7f4;
    background: rgba(255, 255, 255, 0.08);
}

.workspace-block {
    margin-top: 25px;
    padding: 11px 12px;
    border: 1px solid var(--sidebar-line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.035);
}

.workspace-block .sidebar-label {
    margin-bottom: 8px;
}

.workspace-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workspace-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    border-radius: 9px;
    background: rgba(155, 205, 177, 0.11);
    color: #a9ceb8;
}

.workspace-symbol .icon {
    width: 16px;
    height: 16px;
}

.workspace-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.workspace-copy strong {
    font-size: 12px;
    font-weight: 700;
    color: #edf5f0;
}

.workspace-copy span {
    overflow: hidden;
    color: rgba(218, 234, 224, 0.42);
    font-size: 9.5px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-section {
    margin-top: 25px;
}

.board-nav-empty {
    padding: 8px 9px;
    color: rgba(216, 232, 222, 0.36);
    font-size: 10px;
    line-height: 1.5;
}

.board-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    max-height: 30vh;
    overflow-y: auto;
    padding-right: 2px;
}

.board-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 38px;
    padding: 0 9px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: rgba(228, 239, 233, 0.64);
    text-align: left;
    font-size: 11.5px;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.board-nav-item:hover {
    color: #f0f6f2;
    background: rgba(255, 255, 255, 0.055);
}

.board-nav-item.is-active {
    color: #f4f9f6;
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(255, 255, 255, 0.055);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.board-nav-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #799d89;
    box-shadow: 0 0 0 3px rgba(121, 157, 137, 0.11);
}

.accent-emerald .board-nav-dot,
.board-nav-dot.accent-emerald { background: #62ab8d; }
.board-nav-dot.accent-amber { background: #d5a056; }
.board-nav-dot.accent-violet { background: #a78ac6; }
.board-nav-dot.accent-rose { background: #d68e84; }
.board-nav-dot.accent-sky { background: #7fa9c0; }
.board-nav-dot.accent-slate { background: #9fafaa; }

.board-nav-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-nav-count {
    margin-left: auto;
    color: rgba(216, 232, 222, 0.35);
    font-size: 9.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.sidebar-spacer {
    flex: 1;
}

.sidebar-utility {
    padding-top: 12px;
    border-top: 1px solid var(--sidebar-line);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: rgba(228, 239, 233, 0.6);
    font-size: 11.5px;
    font-weight: 600;
    text-align: left;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.sidebar-link .icon {
    width: 16px;
    height: 16px;
}

.sidebar-link:hover {
    color: #f2f7f4;
    background: rgba(255, 255, 255, 0.055);
}

.sidebar-link.is-active {
    color: #f4f9f6;
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(255, 255, 255, 0.055);
}

.sidebar-badge {
    margin-left: auto;
    padding: 2px 6px;
    border-radius: 5px;
    background: rgba(153, 197, 171, 0.11);
    color: #9fc5ac;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.sidebar-user-wrap {
    position: relative;
    margin-top: 12px;
    padding-top: 13px;
    border-top: 1px solid var(--sidebar-line);
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 7px 8px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    text-align: left;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.sidebar-user:hover,
.sidebar-user[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.045);
}

.sidebar-user .avatar {
    border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-user-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.sidebar-user-copy strong {
    overflow: hidden;
    color: #eef5f1;
    font-size: 11.5px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-copy span {
    color: rgba(216, 232, 222, 0.4);
    font-size: 9.5px;
    text-transform: capitalize;
}

.sidebar-user-chevron {
    width: 14px;
    height: 14px;
    margin-left: auto;
    color: rgba(216, 232, 222, 0.34);
}

.user-menu {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 6px);
    z-index: 80;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
    transform-origin: bottom center;
    animation: menu-in 0.14s ease-out;
}

@keyframes menu-in {
    from { opacity: 0; transform: translateY(5px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.user-menu-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 9px 7px;
}

.user-menu-head strong {
    font-size: 12px;
    font-weight: 700;
}

.user-menu-head span {
    color: var(--ink-muted);
    font-size: 10.5px;
}

.user-menu-divider {
    height: 1px;
    margin: 4px 3px;
    background: var(--line);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 11.5px;
    font-weight: 600;
    text-align: left;
}

.user-menu-item:hover {
    color: var(--red);
    background: var(--red-soft);
}

.user-menu-item .icon {
    width: 15px;
    height: 15px;
}

.sidebar-trust {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px 2px;
    color: rgba(216, 232, 222, 0.28);
    font-size: 8.5px;
    font-weight: 600;
}

.sidebar-trust .icon {
    width: 12px;
    height: 12px;
}

.sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(9, 18, 14, 0.5);
    backdrop-filter: blur(2px);
    animation: fade-in 0.16s ease;
}

.app-main {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    margin-left: var(--sidebar-width);
    min-width: 0;
}

.topbar {
    position: relative;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar-height);
    flex: 0 0 var(--topbar-height);
    gap: 20px;
    padding: 0 27px;
    border-bottom: 1px solid rgba(217, 210, 197, 0.72);
    background: rgba(246, 243, 237, 0.88);
    backdrop-filter: blur(14px);
}

.topbar-start {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.menu-button {
    display: none;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    color: var(--ink-muted);
    font-size: 11.5px;
}

.breadcrumb-root {
    font-weight: 500;
}

.breadcrumb-sep {
    width: 13px;
    height: 13px;
    color: #b0b7b2;
}

.breadcrumb strong {
    overflow: hidden;
    color: var(--ink);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 228px;
    height: 36px;
    padding: 0 9px 0 11px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(255, 254, 250, 0.72);
    color: var(--ink-muted);
    transition: width 0.22s var(--ease), border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.search-field:focus-within {
    width: 280px;
    border-color: var(--green);
    background: var(--surface);
    box-shadow: var(--focus-ring);
}

.search-field .icon {
    width: 16px;
    height: 16px;
}

.search-field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 11.5px;
}

.search-field input::placeholder {
    color: #969f99;
}

.search-field input::-webkit-search-cancel-button {
    cursor: pointer;
}

.search-kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
    color: #9ba39e;
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    box-shadow: 0 1px 0 rgba(24, 37, 31, 0.04);
}

.topbar-divider {
    width: 1px;
    height: 22px;
    margin: 0 3px;
    background: var(--line);
}

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
}

.topbar-user-name {
    max-width: 110px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view {
    flex: 1;
    min-height: 0;
}

/* =========================================================
   Board
   ========================================================= */
.board-content {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding: 27px 27px 16px;
}

.board-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex: 0 0 auto;
    padding: 0 2px;
}

.board-heading-copy {
    min-width: 0;
}

.board-heading-copy .eyebrow {
    margin-bottom: 9px;
}

.board-heading h1,
.page-heading h1 {
    font-size: clamp(27px, 2.3vw, 36px);
    line-height: 1.13;
    letter-spacing: -0.04em;
    font-weight: 700;
    color: var(--ink);
}

.board-heading p {
    max-width: 650px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--ink-muted);
    font-size: 12.5px;
    line-height: 1.55;
    text-overflow: ellipsis;
}

.board-heading-actions {
    display: flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
    padding-bottom: 2px;
}

.board-heading-actions .btn-icon-label {
    color: var(--ink-muted);
    background: transparent;
}

.board-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex: 0 0 auto;
    margin-top: 24px;
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(217, 210, 197, 0.58);
}

.board-toolbar-start {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    flex-wrap: wrap;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 5px;
    background: var(--green);
    color: #fff;
    font-size: 8.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.filter-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 26px;
    padding: 0 7px 0 9px;
    border: 1px solid #d8e5dd;
    border-radius: 7px;
    background: var(--green-pale);
    color: #326c58;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.filter-chip button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #739485;
}

.filter-chip button:hover {
    background: rgba(28, 106, 85, 0.08);
    color: var(--green);
}

.filter-chip .icon {
    width: 11px;
    height: 11px;
}

.board-progress {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--ink-muted);
    font-size: 10px;
    font-weight: 600;
}

.progress-label {
    white-space: nowrap;
}

.progress-track {
    width: 104px;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #e1dcd2;
}

.progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #307c65, #58a184);
    transition: width 0.35s var(--ease);
}

.board-progress strong {
    min-width: 28px;
    color: var(--ink);
    font-size: 10.5px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-align: right;
}

.filter-popover {
    position: absolute;
    top: 178px;
    left: 29px;
    z-index: 40;
    width: min(560px, calc(100vw - var(--sidebar-width) - 58px));
    padding: 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: popover-in 0.16s var(--ease);
}

@keyframes popover-in {
    from { opacity: 0; transform: translateY(-4px) scale(0.992); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.filter-popover-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.filter-popover-head strong {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
}

.filter-popover-head span {
    display: block;
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 10.5px;
}

.filter-popover-head .icon-button {
    width: 28px;
    height: 28px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.filter-popover-foot {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.board-scroll {
    flex: 1;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding-top: 16px;
    margin: 0 -5px;
    padding-left: 5px;
    padding-right: 5px;
}

.kanban {
    display: flex;
    align-items: stretch;
    gap: 13px;
    height: 100%;
    min-height: 220px;
    padding-bottom: 2px;
}

.column {
    display: flex;
    flex-direction: column;
    flex: 1 1 0;
    min-width: 256px;
    min-height: 0;
    max-height: 100%;
    border: 1px solid rgba(215, 208, 194, 0.78);
    border-radius: 14px;
    background: rgba(236, 231, 222, 0.63);
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.column.is-drop-target {
    border-color: rgba(28, 106, 85, 0.45);
    background: rgba(229, 239, 232, 0.88);
    box-shadow: inset 0 0 0 1px rgba(28, 106, 85, 0.08);
}

.column-head {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    padding: 13px 12px 10px 14px;
}

.column-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.column-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #7c8a83;
    box-shadow: 0 0 0 3px rgba(124, 138, 131, 0.1);
}

.column-dot.color-amber { background: #bd8130; box-shadow: 0 0 0 3px rgba(189, 129, 48, 0.12); }
.column-dot.color-violet { background: #8060a8; box-shadow: 0 0 0 3px rgba(128, 96, 168, 0.1); }
.column-dot.color-emerald { background: #2e8067; box-shadow: 0 0 0 3px rgba(46, 128, 103, 0.1); }
.column-dot.color-rose { background: #be665b; box-shadow: 0 0 0 3px rgba(190, 102, 91, 0.1); }
.column-dot.color-sky { background: #56839c; box-shadow: 0 0 0 3px rgba(86, 131, 156, 0.1); }
.column-dot.color-slate { background: #7c8a83; }

.column-title {
    overflow: hidden;
    color: #39473f;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: -0.005em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.column-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.6);
    color: #7c8881;
    font-size: 9px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.column-add {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #8c9790;
    transition: background 0.15s ease, color 0.15s ease;
}

.column-add .icon {
    width: 15px;
    height: 15px;
}

.column-add:hover {
    background: rgba(255, 255, 255, 0.7);
    color: var(--green);
}

.column-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 72px;
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 9px 4px;
    scrollbar-gutter: stable;
}

.column-foot {
    flex: 0 0 auto;
    padding: 6px 9px 9px;
}

.column-foot .btn {
    width: 100%;
    justify-content: flex-start;
    min-height: 33px;
    padding: 0 8px;
    border-color: transparent;
    background: transparent;
    color: #748079;
    font-size: 10.5px;
    font-weight: 700;
}

.column-foot .btn:hover {
    background: rgba(255, 255, 255, 0.62);
    color: var(--green);
}

.column-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 102px;
    padding: 16px 12px;
    border: 1px dashed rgba(164, 172, 164, 0.56);
    border-radius: 10px;
    color: #7a857f;
    text-align: center;
}

.column-empty .icon {
    width: 18px;
    height: 18px;
    opacity: 0.72;
}

.column-empty p {
    font-size: 9.5px;
    font-weight: 600;
    line-height: 1.5;
}

.column-empty.is-filtered {
    border-style: solid;
    border-color: rgba(215, 208, 194, 0.68);
    background: rgba(255, 255, 255, 0.18);
}

.card {
    position: relative;
    flex: 0 0 auto;
    padding: 12px 13px 11px;
    border: 1px solid rgba(226, 220, 208, 0.9);
    border-radius: 11px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    cursor: grab;
    transition: transform 0.14s ease, box-shadow 0.16s ease, border-color 0.16s ease, opacity 0.16s ease;
}

.card:hover {
    border-color: #d8d0c2;
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.card:active {
    cursor: grabbing;
}

.card:focus-visible {
    box-shadow: var(--focus-ring);
}

.card.is-dragging {
    opacity: 0.32;
    transform: scale(0.985);
}

.card.drag-source {
    display: none;
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.priority {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px 2px 5px;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.5;
}

.priority::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: currentColor;
}

.priority-low { background: var(--blue-soft); color: #4e7890; }
.priority-normal { background: #eef0ed; color: #67756d; }
.priority-high { background: var(--amber-soft); color: #986620; }
.priority-urgent { background: var(--red-soft); color: #a94235; }

.card-grip {
    width: 16px;
    height: 16px;
    color: #c3c9c4;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.card:hover .card-grip,
.card:focus-within .card-grip {
    opacity: 1;
}

.card-title {
    display: -webkit-box;
    overflow: hidden;
    color: #25322b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: -0.006em;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-description {
    display: -webkit-box;
    overflow: hidden;
    margin-top: 5px;
    color: #6f7a74;
    font-size: 11px;
    line-height: 1.55;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    min-height: 25px;
    margin-top: 10px;
}

.card-foot-start {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.card-foot .avatar {
    width: 23px;
    height: 23px;
    font-size: 7.5px;
}

.unassigned {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 23px;
    height: 23px;
    border: 1px dashed #d5d2c8;
    border-radius: 50%;
    color: #b0b6b1;
}

.unassigned .icon {
    width: 11px;
    height: 11px;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6e7a73;
    font-size: 10px;
    font-weight: 600;
    white-space: nowrap;
}

.card-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.card-meta-item .icon {
    width: 12px;
    height: 12px;
}

.card-meta-item.due-overdue {
    color: var(--red);
}

.card-meta-item.due-today {
    color: var(--amber);
}

.card-meta-item.due-done {
    color: #5c8c76;
}

.card-comment-count {
    min-width: 7px;
}

.drop-placeholder {
    flex: 0 0 auto;
    height: 3px;
    margin: 1px 3px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 3px rgba(28, 106, 85, 0.1);
}

.drop-end {
    min-height: 56px;
}

.empty-board {
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 260px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    color: var(--ink-muted);
    text-align: center;
}

.empty-board .icon {
    width: 26px;
    height: 26px;
    color: #a9b2ac;
}

.empty-board h2 {
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
}

.empty-board p {
    max-width: 330px;
    font-size: 11.5px;
}

.board-empty-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 10px;
    padding: 60px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.34);
    text-align: center;
}

.empty-page-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    border-radius: 15px;
    background: var(--green-soft);
    color: var(--green);
}

.empty-page-icon .icon {
    width: 24px;
    height: 24px;
}

.board-empty-page h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.board-empty-page p {
    max-width: 330px;
    margin-bottom: 6px;
    color: var(--ink-muted);
    font-size: 12px;
}

/* =========================================================
   Team view
   ========================================================= */
#viewTeam {
    overflow-y: auto;
}

.page-content {
    padding: 29px 27px 40px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.page-heading-copy .eyebrow {
    margin-bottom: 9px;
}

.page-heading p {
    margin-top: 8px;
    color: var(--ink-muted);
    font-size: 12.5px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 24px;
}

.summary-card {
    display: flex;
    flex-direction: column;
    padding: 16px 17px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(255, 254, 250, 0.68);
    box-shadow: var(--shadow-xs);
}

.summary-label {
    color: var(--ink-muted);
    font-size: 10.5px;
    font-weight: 700;
}

.summary-card strong {
    margin-top: 5px;
    color: var(--ink);
    font-size: 27px;
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.summary-note {
    margin-top: 2px;
    color: #76817b;
    font-size: 9.5px;
}

.panel {
    margin-top: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
}

.panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding: 19px 20px 15px;
    border-bottom: 1px solid var(--line);
}

.panel-head h2 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.panel-head p {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 10.5px;
}

.panel-search {
    width: 230px;
    height: 34px;
    background: var(--surface-soft);
}

.panel-search:focus-within {
    width: 260px;
}

.team-list {
    display: flex;
    flex-direction: column;
}

.team-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 120px;
    color: var(--ink-muted);
    font-size: 11.5px;
}

.loading-ring {
    width: 16px;
    height: 16px;
    border: 2px solid #dfd9ce;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.board-scroll.is-loading {
    opacity: 0.55;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.team-row {
    display: grid;
    grid-template-columns: minmax(180px, 2.1fr) minmax(120px, 1.2fr) minmax(90px, 0.9fr) minmax(100px, 0.9fr) 40px;
    align-items: center;
    gap: 16px;
    min-height: 68px;
    padding: 11px 20px;
    border-bottom: 1px solid #f0ece4;
    transition: background 0.14s ease;
}

.team-row:last-child {
    border-bottom: 0;
}

.team-row:hover {
    background: #fcfaf6;
}

.team-row.is-inactive {
    opacity: 0.68;
}

.team-person {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.team-person-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 1px;
}

.team-person-copy strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-person-copy span {
    color: var(--ink-muted);
    font-size: 10px;
}

.team-phone {
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.team-lastseen {
    color: var(--ink-muted);
    font-size: 10.5px;
}

.team-actions {
    display: flex;
    justify-content: flex-end;
}

.team-actions .icon-button {
    width: 32px;
    height: 32px;
}

.team-badge-self {
    margin-left: 6px;
    color: var(--green);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.access-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid #dce7e0;
    border-radius: 13px;
    background: linear-gradient(115deg, #f5faf7, #fbfaf6);
}

.access-note-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--green-soft);
    color: var(--green);
}

.access-note-icon .icon {
    width: 17px;
    height: 17px;
}

.access-note-copy {
    min-width: 0;
}

.access-note-copy strong {
    display: block;
    color: var(--ink);
    font-size: 11.5px;
    font-weight: 700;
}

.access-note-copy p {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 10.5px;
    line-height: 1.6;
}

.access-note-tag {
    margin-left: auto;
    flex: 0 0 auto;
    padding: 3px 7px;
    border-radius: 5px;
    background: var(--green-soft);
    color: var(--green-deep);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.panel-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    padding: 46px 20px;
    color: var(--ink-muted);
    text-align: center;
}

.panel-empty .icon {
    width: 25px;
    height: 25px;
    color: #aeb6b0;
}

.panel-empty p {
    font-size: 11.5px;
}

.team-row-labels {
    min-height: 34px;
    padding-top: 8px;
    padding-bottom: 8px;
    background: #fbf9f4;
}

.team-row-labels .team-label {
    color: #7a857f;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

/* =========================================================
   Modal and forms
   ========================================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(12, 23, 18, 0.48);
    backdrop-filter: blur(4px);
    animation: fade-in 0.17s ease;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(100%, 560px);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    animation: modal-in 0.24s var(--ease);
}

@keyframes modal-in {
    from { opacity: 0; transform: translateY(12px) scale(0.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-card {
    width: min(100%, 850px);
}

.modal-settings {
    width: min(100%, 660px);
}

.modal-confirm {
    width: min(100%, 410px);
}

.modal-overlay.is-confirm {
    z-index: 130;
    background: rgba(12, 23, 18, 0.56);
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--line);
}

.modal-header-copy {
    min-width: 0;
}

.modal-header h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.modal-header p {
    margin-top: 3px;
    color: var(--ink-muted);
    font-size: 10.5px;
    line-height: 1.5;
}

.modal-close {
    width: 32px;
    height: 32px;
    margin: -3px -4px 0 0;
}

.modal-body {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 20px 22px;
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    flex: 0 0 auto;
    padding: 14px 22px;
    border-top: 1px solid var(--line);
    background: #fcfaf6;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.modal-footer .footer-start {
    margin-right: auto;
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.form-hint {
    color: var(--ink-muted);
    font-size: 10px;
    line-height: 1.5;
}

.form-error {
    display: none;
    align-items: flex-start;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid #efd3ce;
    border-radius: 8px;
    background: var(--red-soft);
    color: #8f392e;
    font-size: 11px;
    line-height: 1.5;
}

.form-error.is-visible {
    display: flex;
}

.form-error .icon {
    width: 14px;
    height: 14px;
    margin-top: 1px;
}

.modal-card .modal-body {
    padding: 0;
}

.card-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 246px;
    min-height: 0;
}

.card-detail-main {
    min-width: 0;
    padding: 22px;
}

.card-detail-main .form-error {
    margin-bottom: 13px;
}

.card-detail-title {
    width: 100%;
    padding: 2px 0 7px;
    border: 0;
    border-bottom: 1px solid transparent;
    background: transparent;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.035em;
    outline: 0;
    transition: border-color 0.15s ease;
}

.card-detail-title:focus {
    border-color: var(--green);
}

.card-detail-title::placeholder {
    color: #a5ada7;
}

.card-detail-section {
    margin-top: 21px;
}

.section-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.section-label .icon {
    width: 14px;
    height: 14px;
    color: #929d96;
}

.card-detail-main .textarea-input {
    min-height: 126px;
    border-color: #e2ddd4;
    background: #fcfaf6;
    font-size: 12px;
}

.card-detail-side {
    padding: 20px 18px;
    border-left: 1px solid var(--line);
    background: #fbf9f4;
}

.side-panel-title {
    margin-bottom: 12px;
    color: var(--ink-muted);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.meta-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-item > span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-muted);
    font-size: 9.5px;
    font-weight: 600;
}

.meta-item > span .icon {
    width: 12px;
    height: 12px;
}

.meta-item .select-input,
.meta-item .text-input {
    height: 37px;
    padding: 0 10px;
    border-color: #e2ddd4;
    background-color: var(--surface);
    font-size: 11px;
}

.meta-item .select-input {
    padding-right: 30px;
    background-position: right 9px center;
}

.card-created {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: #77827c;
    font-size: 9.5px;
    line-height: 1.5;
}

.card-created strong {
    color: var(--ink-soft);
    font-weight: 600;
}

.comments-block {
    padding: 18px 22px 22px;
    border-top: 1px solid var(--line);
}

.comments-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 13px;
}

.comments-head h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
}

.comments-head h3 .icon {
    width: 15px;
    height: 15px;
    color: var(--ink-muted);
}

.comments-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 5px;
    background: var(--surface-muted);
    color: var(--ink-muted);
    font-size: 8.5px;
    font-weight: 800;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.comment {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.comment .avatar {
    width: 27px;
    height: 27px;
    font-size: 8px;
}

.comment-content {
    min-width: 0;
    flex: 1;
}

.comment-head {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 2px;
}

.comment-head strong {
    font-size: 10.5px;
    font-weight: 700;
}

.comment-head time {
    color: #78837d;
    font-size: 9px;
}

.comment-body {
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comment-delete {
    display: inline-flex;
    margin-left: auto;
    padding: 2px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #b7beb9;
    opacity: 0;
    transition: opacity 0.14s ease, color 0.14s ease;
}

.comment:hover .comment-delete,
.comment-delete:focus-visible {
    opacity: 1;
}

.comment-delete:hover {
    color: var(--red);
}

.comment-delete .icon {
    width: 11px;
    height: 11px;
}

.comment-empty {
    padding: 7px 0 12px;
    color: #76817b;
    font-size: 10.5px;
}

.comment-composer {
    display: flex;
    align-items: flex-start;
    gap: 9px;
}

.comment-composer .avatar {
    width: 28px;
    height: 28px;
    font-size: 8px;
    margin-top: 2px;
}

.comment-input-wrap {
    position: relative;
    flex: 1;
}

.comment-input-wrap textarea {
    width: 100%;
    min-height: 40px;
    max-height: 130px;
    padding: 10px 46px 10px 11px;
    border: 1px solid #ded8cd;
    border-radius: 9px;
    background: #fcfaf6;
    font-size: 11px;
    line-height: 1.5;
    outline: 0;
    resize: vertical;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.comment-input-wrap textarea:focus {
    border-color: var(--green);
    box-shadow: var(--focus-ring);
}

.comment-submit {
    position: absolute;
    right: 5px;
    bottom: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    transition: background 0.15s ease;
}

.comment-submit:hover {
    background: var(--green-deep);
}

.comment-submit .icon {
    width: 13px;
    height: 13px;
}

.card-detail-footer {
    position: sticky;
    bottom: 0;
}

/* Board settings */
.settings-section + .settings-section {
    margin-top: 20px;
    padding-top: 19px;
    border-top: 1px solid var(--line);
}

.settings-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.settings-section-head h3 {
    font-size: 11.5px;
    font-weight: 700;
}

.settings-section-head p {
    margin-top: 2px;
    color: var(--ink-muted);
    font-size: 10px;
}

.accent-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.accent-option {
    position: relative;
    display: inline-flex;
}

.accent-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.accent-swatch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 2px solid transparent;
    border-radius: 50%;
    background: #dbe6df;
    cursor: pointer;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.accent-swatch .icon {
    width: 13px;
    height: 13px;
    color: #fff;
    opacity: 0;
}

.accent-option input:checked + .accent-swatch {
    border-color: var(--surface);
    box-shadow: 0 0 0 2px var(--green);
}

.accent-option input:checked + .accent-swatch .icon {
    opacity: 1;
}

.accent-swatch.accent-emerald { background: #2c7a61; }
.accent-swatch.accent-amber { background: #bd8130; }
.accent-swatch.accent-violet { background: #8060a8; }
.accent-swatch.accent-rose { background: #bc665b; }
.accent-swatch.accent-sky { background: #56839c; }
.accent-swatch.accent-slate { background: #78887f; }

.columns-editor {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.column-edit-row {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 104px 82px;
    align-items: center;
    gap: 7px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fcfaf6;
}

.column-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #b1b9b3;
}

.column-drag .icon {
    width: 14px;
    height: 14px;
}

.column-edit-row .text-input,
.column-edit-row .select-input {
    height: 33px;
    padding: 0 8px;
    border-color: transparent;
    background-color: transparent;
    font-size: 11px;
}

.column-edit-row .select-input {
    padding-right: 25px;
    border-color: #e8e3da;
    background-color: var(--surface);
    background-position: right 7px center;
    background-size: 13px;
}

.column-edit-row .text-input:focus {
    border-color: var(--green);
    background: var(--surface);
}

.column-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 2px;
}

.column-edit-actions .icon-button {
    width: 25px;
    height: 25px;
    border-radius: 6px;
}

.column-edit-actions .icon-button .icon {
    width: 13px;
    height: 13px;
}

.column-edit-actions .icon-button:disabled {
    opacity: 0.28;
}

.columns-add {
    margin-top: 8px;
}

.danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 20px;
    padding: 12px 13px;
    border: 1px solid #efd9d4;
    border-radius: 9px;
    background: #fdf4f1;
}

.danger-zone-copy strong {
    display: block;
    color: #8e4035;
    font-size: 10.5px;
    font-weight: 700;
}

.danger-zone-copy span {
    display: block;
    margin-top: 2px;
    color: #a86e65;
    font-size: 9.5px;
    line-height: 1.45;
}

/* User modal */
.user-preview {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface-soft);
}

.user-preview-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.user-preview-copy strong {
    font-size: 12px;
    font-weight: 700;
}

.user-preview-copy span {
    color: var(--ink-muted);
    font-size: 10px;
}

.switch-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface-soft);
}

.switch-copy strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
}

.switch-copy span {
    display: block;
    margin-top: 1px;
    color: var(--ink-muted);
    font-size: 9.5px;
}

.switch {
    position: relative;
    width: 36px;
    height: 21px;
    flex: 0 0 auto;
}

.switch input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #d7d8d2;
    cursor: pointer;
    transition: background 0.15s ease;
}

.switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 2px rgba(24, 37, 31, 0.2);
    transition: transform 0.16s ease;
}

.switch input:checked + .switch-track {
    background: var(--green);
}

.switch input:checked + .switch-track::after {
    transform: translateX(15px);
}

.switch input:focus-visible + .switch-track {
    box-shadow: var(--focus-ring);
}

.password-field-wrap {
    position: relative;
}

.password-field-wrap .text-input {
    padding-right: 40px;
}

.password-field-wrap .password-toggle {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 37px;
    height: 37px;
}

.confirm-body {
    padding: 23px 22px 6px;
}

.confirm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 13px;
    border-radius: 11px;
    background: var(--red-soft);
    color: var(--red);
}

.confirm-icon .icon {
    width: 19px;
    height: 19px;
}

.confirm-body h2 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.confirm-body p {
    margin-top: 6px;
    color: var(--ink-muted);
    font-size: 11.5px;
    line-height: 1.6;
}

.confirm-body strong {
    color: var(--ink-soft);
    font-weight: 700;
}

/* Toasts */
.toast-root {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: min(340px, calc(100vw - 32px));
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    color: var(--ink-soft);
    font-size: 11px;
    line-height: 1.5;
    animation: toast-in 0.25s var(--ease);
    pointer-events: auto;
}

.toast.is-leaving {
    animation: toast-out 0.2s ease forwards;
}

.toast .icon {
    width: 15px;
    height: 15px;
    margin-top: 1px;
}

.toast-success .icon { color: var(--green); }
.toast-error { border-color: #efd3ce; background: #fffaf8; }
.toast-error .icon { color: var(--red); }

@keyframes toast-in {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toast-out {
    to { opacity: 0; transform: translateY(4px); }
}

/* Scrollbars */
* {
    scrollbar-width: thin;
    scrollbar-color: #cfc8bb transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #cfc8bb;
    background-clip: padding-box;
}

.column-cards::-webkit-scrollbar {
    width: 6px;
}

.column-cards::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    background: #c8c1b4;
    background-clip: padding-box;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1250px) {
    .search-field {
        width: 190px;
    }

    .search-field:focus-within {
        width: 235px;
    }

    .topbar-user-name {
        display: none;
    }

    .column {
        min-width: 252px;
    }
}

@media (max-width: 1080px) {
    .auth-shell {
        grid-template-columns: minmax(370px, 43%) minmax(440px, 57%);
    }

    .auth-brand {
        padding: 34px;
    }

    .auth-copy h1 {
        font-size: clamp(29px, 3.4vw, 38px);
    }

    .auth-board-preview {
        margin-top: 38px;
    }

    .preview-columns {
        gap: 7px;
        padding: 11px;
    }

    .preview-column {
        padding: 7px;
    }
}

@media (max-width: 960px) {
    :root {
        --sidebar-width: 252px;
    }

    .auth-shell {
        display: block;
        min-height: 100vh;
    }

    .auth-brand {
        display: none;
    }

    .auth-panel {
        min-height: 100vh;
        min-height: 100dvh;
        padding: 26px 30px;
    }

    .auth-panel-inner {
        max-width: 410px;
        min-height: calc(100vh - 52px);
        min-height: calc(100dvh - 52px);
    }

    .auth-mobile-brand {
        display: inline-flex;
    }

    .auth-footer {
        padding-top: 18px;
    }

    .sidebar {
        transform: translateX(-102%);
        transition: transform 0.24s var(--ease);
        box-shadow: 20px 0 50px rgba(8, 16, 12, 0.25);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar-close {
        display: inline-flex;
    }

    .app-main {
        margin-left: 0;
    }

    .menu-button {
        display: inline-flex;
    }

    .topbar {
        padding: 0 20px;
    }

    .search-field {
        width: 180px;
    }

    .search-field:focus-within {
        width: 220px;
    }

    .search-kbd {
        display: none;
    }

    .board-content,
    .page-content {
        padding-left: 20px;
        padding-right: 20px;
    }

    .filter-popover {
        left: 22px;
        width: min(560px, calc(100vw - 44px));
        top: 174px;
    }

    .column {
        min-width: 272px;
        flex: 0 0 272px;
    }

    .team-row {
        grid-template-columns: minmax(0, 1.8fr) minmax(108px, 1fr) 100px 90px 34px;
        gap: 12px;
    }

    .team-row-labels {
        display: none;
    }
}

@media (max-width: 760px) {
    :root {
        --topbar-height: 60px;
    }

    .topbar {
        padding: 0 14px;
        gap: 10px;
    }

    .breadcrumb-root,
    .breadcrumb-sep {
        display: none;
    }

    .breadcrumb {
        font-size: 11px;
    }

    .search-field {
        width: 36px;
        height: 36px;
        padding: 0;
        justify-content: center;
        background: transparent;
        border-color: transparent;
    }

    .search-field:focus-within {
        position: absolute;
        top: 11px;
        right: 14px;
        z-index: 2;
        width: calc(100vw - 70px);
        padding: 0 10px;
        justify-content: flex-start;
        background: var(--surface);
        border-color: var(--green);
    }

    .search-field input {
        width: 0;
        padding: 0;
        opacity: 0;
    }

    .search-field:focus-within input {
        width: 100%;
        opacity: 1;
    }

    .search-field:focus-within .icon {
        flex: 0 0 auto;
    }

    .topbar-divider,
    .topbar-user {
        display: none;
    }

    .board-content {
        padding: 20px 14px 10px;
    }

    .board-heading {
        align-items: flex-start;
        gap: 14px;
    }

    .board-heading h1,
    .page-heading h1 {
        font-size: 25px;
    }

    .board-heading p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .board-heading-actions {
        gap: 6px;
        padding-top: 20px;
    }

    .board-heading-actions .avatar-stack {
        display: none;
    }

    .board-heading-actions .btn-primary {
        min-height: 38px;
        padding: 0 12px;
    }

    .board-heading-actions .btn-primary span {
        display: none;
    }

    .board-heading-actions .btn-primary .icon {
        width: 18px;
        height: 18px;
    }

    .board-heading-actions .btn-icon-label {
        width: 38px;
        min-height: 38px;
        border-color: var(--line);
        background: var(--surface);
    }

    .board-toolbar {
        margin-top: 17px;
        padding-bottom: 11px;
    }

    .board-progress {
        display: none;
    }

    .filter-popover {
        top: 174px;
        left: 14px;
        right: 14px;
        width: auto;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-popover {
        max-height: calc(100vh - 190px);
        max-height: calc(100dvh - 190px);
        overflow-y: auto;
    }

    .board-scroll {
        padding-top: 12px;
        margin: 0 -14px;
        padding-left: 14px;
        padding-right: 14px;
    }

    .kanban {
        gap: 10px;
    }

    .column {
        flex: 0 0 min(85vw, 315px);
        min-width: min(85vw, 315px);
    }

    .board-empty-page {
        margin-top: 14px;
    }

    .page-content {
        padding: 21px 14px 30px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .page-heading .btn {
        width: 100%;
    }

    .summary-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 18px;
    }

    .summary-card {
        padding: 12px 11px;
    }

    .summary-card strong {
        font-size: 22px;
    }

    .summary-note {
        display: none;
    }

    .access-note {
        align-items: flex-start;
        padding: 14px;
    }

    .access-note-tag {
        display: none;
    }

    .panel-head {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        padding: 16px 15px 13px;
    }

    .panel-search,
    .panel-search:focus-within {
        width: 100%;
    }

    .team-row {
        grid-template-columns: minmax(0, 1fr) auto 32px;
        gap: 9px;
        min-height: 64px;
        padding: 10px 15px;
    }

    .team-row-labels {
        display: none;
    }

    .team-phone {
        display: none;
    }

    .team-lastseen {
        display: none;
    }

    .team-role {
        grid-column: 2;
    }

    .team-status {
        display: none;
    }

    .team-actions {
        grid-column: 3;
    }

    .card-detail-grid {
        grid-template-columns: 1fr;
    }

    .card-detail-main {
        padding: 17px;
    }

    .card-detail-side {
        border-top: 1px solid var(--line);
        border-left: 0;
        padding: 16px 17px;
    }

    .meta-stack {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-created {
        margin-top: 13px;
    }

    .comments-block {
        padding: 15px 17px 17px;
    }

    .modal {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        border-radius: 15px;
    }

    .modal-overlay {
        padding: 10px;
    }

    .modal-header {
        padding: 16px 16px 13px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-footer {
        padding: 12px 16px;
    }

    .card-detail-title {
        font-size: 18px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .modal-card .modal-body {
        padding: 0;
    }

    .danger-zone {
        align-items: flex-start;
        flex-direction: column;
    }

    .column-edit-row {
        grid-template-columns: 16px minmax(0, 1fr) 96px auto;
    }

    .auth-panel {
        padding: 20px 20px;
    }

    .auth-panel-inner {
        min-height: calc(100vh - 40px);
        min-height: calc(100dvh - 40px);
    }

    .auth-form-wrap {
        padding: 34px 0;
    }

    .auth-form-wrap h2 {
        font-size: 28px;
    }

    .toast-root {
        right: 12px;
        bottom: 12px;
    }

    .toast {
        padding: 10px 11px;
    }
}

@media (max-width: 430px) {
    .board-heading {
        flex-wrap: wrap;
    }

    .board-heading-copy {
        flex: 1 1 100%;
    }

    .board-heading-actions {
        width: 100%;
        padding-top: 0;
        justify-content: flex-end;
    }

    .board-heading-actions .avatar-stack {
        display: flex;
        margin-right: auto;
    }

    .board-heading-actions .btn-primary span {
        display: inline;
    }

    .board-heading-actions .btn-primary {
        flex: 1;
    }

    .board-toolbar {
        align-items: flex-start;
    }

    .column {
        flex-basis: calc(100vw - 50px);
        min-width: calc(100vw - 50px);
    }

    .summary-card strong {
        font-size: 20px;
    }

    .summary-label {
        font-size: 9px;
    }

    .auth-panel {
        padding: 18px 18px;
    }

    .auth-form-wrap {
        padding: 28px 0;
    }

    .auth-note {
        margin-top: 19px;
    }

    .auth-footer {
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================================
   View switch (Papan | Linimasa)
   ========================================================= */
.view-switch {
    display: inline-flex;
    gap: 2px;
    height: 36px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: rgba(233, 228, 219, 0.7);
}

.view-switch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 42px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink-muted);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.view-switch-btn .icon {
    width: 15px;
    height: 15px;
}

.view-switch-btn:hover {
    color: var(--ink);
}

.view-switch-btn.is-active {
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 1px 2px rgba(24, 37, 31, 0.1);
}

/* Badge jadwal pada kartu kanban */
.card-schedule-chip {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 17px;
    padding: 0 6px;
    border-radius: 5px;
    font-size: 8.5px;
    font-weight: 800;
    white-space: nowrap;
}

.card-schedule-chip .icon {
    width: 10px;
    height: 10px;
}

.chip-start { background: #e9ecef; color: #5d6f68; }
.chip-ready { background: var(--amber-soft); color: #986620; }

/* =========================================================
   Timeline (Gantt)
   ========================================================= */
.timeline-wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding-top: 16px;
}

.timeline-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex: 0 0 auto;
    margin-bottom: 11px;
    padding: 0 2px;
}

.timeline-toolbar-start {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex-wrap: wrap;
}

.timeline-nav,
.timeline-zoom {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.timeline-nav .icon-button,
.timeline-zoom .icon-button {
    width: 28px;
    height: 28px;
}

.timeline-nav .icon-button .icon,
.timeline-zoom .icon-button .icon {
    width: 14px;
    height: 14px;
}

.timeline-nav .btn {
    min-height: 28px;
    padding: 0 10px;
}

.timeline-stats {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tl-stat {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 24px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-soft);
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
}

.tl-stat strong {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.tl-stat .dot {
    width: 7px;
    height: 7px;
}

.dot-st-planned { background: #97a39b; }
.dot-st-active { background: #567f97; }
.dot-st-soon { background: #bd8130; }
.dot-st-overdue { background: #bc5a4c; }
.dot-st-done { background: #2e8067; }

.timeline-hint {
    color: #8b968f;
    font-size: 9.5px;
    white-space: nowrap;
}

.timeline-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    border: 1px solid rgba(215, 208, 194, 0.78);
    border-radius: 14px;
    background: var(--surface);
    overscroll-behavior: contain;
}

.timeline-inner {
    --dw: 32px;
    --tlw: 264px;
    position: relative;
    min-width: 100%;
}

/* Kepala kolom tanggal */
.tl-head {
    position: sticky;
    top: 0;
    z-index: 7;
    display: flex;
    border-bottom: 1px solid var(--line-strong);
    background: var(--surface);
}

.tl-corner {
    position: sticky;
    left: 0;
    z-index: 8;
    display: flex;
    align-items: flex-end;
    width: var(--tlw);
    flex: 0 0 auto;
    padding: 8px 14px 6px;
    border-right: 1px solid var(--line-strong);
    background: var(--surface);
    color: #9aa39d;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tl-head-track {
    position: relative;
    flex: 0 0 auto;
}

.tl-months {
    display: flex;
    border-bottom: 1px solid #eee9e0;
}

.tl-month {
    overflow: hidden;
    padding: 5px 8px 3px;
    border-right: 1px solid #eee9e0;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.tl-days {
    display: flex;
}

.tl-day {
    flex: 0 0 auto;
    padding: 3px 0 5px;
    text-align: center;
    color: #9aa39d;
    user-select: none;
}

.tl-day span {
    display: block;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.3;
}

.tl-day strong {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
}

.tl-day.is-weekend {
    color: #b3bab4;
}

.tl-day.is-today,
.tl-day.is-today strong {
    color: var(--green);
    font-weight: 800;
}

/* Isi linimasa */
.tl-body {
    position: relative;
}

.tl-stripes {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--tlw);
    right: 0;
    z-index: 0;
    pointer-events: none;
}

.tl-todayline {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 2px;
    background: var(--green);
    opacity: 0.55;
    pointer-events: none;
}

.tl-todayline::before {
    content: "";
    position: absolute;
    top: 0;
    left: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.tl-group-head {
    display: flex;
    position: relative;
    z-index: 2;
    min-height: 34px;
    border-bottom: 1px solid #f0ece4;
    background: #f8f6f0;
}

.tl-group-head .tl-row-label {
    background: #f8f6f0;
    border-bottom: 0;
    min-height: 33px;
}

.tl-group-name {
    overflow: hidden;
    color: var(--ink);
    font-size: 10.5px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-group-count {
    margin-left: 5px;
    color: #9aa39d;
    font-size: 9px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.tl-row {
    display: flex;
    position: relative;
    z-index: 2;
    min-height: 38px;
    border-bottom: 1px solid #f3efe8;
}

.tl-row:hover {
    background: #fdfbf7;
}

.tl-row-label {
    position: sticky;
    left: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 8px;
    width: var(--tlw);
    flex: 0 0 auto;
    min-height: 37px;
    padding: 5px 10px 5px 14px;
    border-right: 1px solid var(--line);
    background: var(--surface);
}

.tl-row:hover .tl-row-label {
    background: #fdfbf7;
}

.tl-row-title-wrap {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.tl-row-title {
    overflow: hidden;
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-row-sub {
    overflow: hidden;
    color: #9aa39d;
    font-size: 8.5px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tl-row-start {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex: 0 0 auto;
    height: 24px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: var(--green);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(19, 75, 60, 0.25);
}

.tl-row-start:hover {
    background: var(--green-deep);
}

.tl-row-start .icon {
    width: 11px;
    height: 11px;
}

.tl-row-track {
    position: relative;
    flex: 0 0 auto;
}

/* Batang jadwal */
.tl-bar {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 24px;
    margin-top: -12px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: grab;
    overflow: hidden;
    touch-action: none;
    transition: box-shadow 0.15s ease, filter 0.15s ease;
}

.tl-bar:hover {
    filter: brightness(0.98);
    box-shadow: 0 2px 6px rgba(24, 37, 31, 0.14);
    z-index: 3;
}

.tl-bar:focus-visible {
    box-shadow: var(--focus-ring);
    z-index: 3;
}

.tl-bar.is-dragging {
    cursor: grabbing;
    box-shadow: 0 8px 20px rgba(24, 37, 31, 0.22);
    z-index: 6;
}

.tl-bar-fill {
    position: absolute;
    inset: 0 auto 0 0;
    background: rgba(24, 37, 31, 0.13);
    pointer-events: none;
}

.tl-bar-label {
    position: relative;
    overflow: hidden;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-overflow: ellipsis;
    pointer-events: none;
}

.tl-bar-check {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    margin-right: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.75);
    color: var(--green-deep);
}

.tl-bar-check .icon {
    width: 9px;
    height: 9px;
}

.tl-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    cursor: ew-resize;
    opacity: 0;
    transition: opacity 0.12s ease;
}

.tl-handle::after {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 999px;
    background: rgba(24, 37, 31, 0.28);
}

.tl-handle-start { left: -3px; }
.tl-handle-start::after { left: 2px; }
.tl-handle-end { right: -3px; }
.tl-handle-end::after { right: 2px; }

.tl-bar:hover .tl-handle,
.tl-bar.is-dragging .tl-handle {
    opacity: 1;
}

/* Warna status batang */
.st-planned { background: #e7eae6; border-color: #d4dad3; color: #5f6d65; }
.st-planned .tl-bar-fill { background: rgba(24, 37, 31, 0.08); }

.st-active { background: #d9e8f0; border-color: #c1d8e4; color: #3d6b84; }

.st-soon { background: #f6ead0; border-color: #ecd6a8; color: #8a611e; }

.st-overdue { background: #f6dcd5; border-color: #eec3b9; color: #a14034; }
.st-overdue .tl-bar-fill { background: rgba(24, 37, 31, 0.06); }

.st-done { background: #dcece3; border-color: #c4dfd2; color: #266f58; }
.st-done .tl-bar-fill { background: rgba(38, 111, 88, 0.16); }

/* Tooltip jadwal saat digeser */
#tlTooltip {
    position: absolute;
    z-index: 20;
    padding: 5px 9px;
    border-radius: 7px;
    background: #1d2c25;
    color: #edf5f0;
    font-size: 9.5px;
    font-weight: 700;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(13, 25, 20, 0.3);
}

/* Tugas tanpa jadwal */
.tl-unscheduled {
    position: relative;
    z-index: 2;
    border-top: 1px solid var(--line);
    background: #fbf9f4;
}

.tl-unscheduled-head {
    position: sticky;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px 4px;
    color: #9aa39d;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.tl-unscheduled-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px 14px 12px;
}

.tl-unscheduled-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 27px;
    padding: 0 6px 0 5px;
    border: 1px dashed #cfc8bb;
    border-radius: 8px;
    background: var(--surface);
    cursor: pointer;
    color: var(--ink-soft);
    font-size: 10px;
    font-weight: 700;
}

.tl-unscheduled-chip:hover {
    border-color: var(--green);
    color: var(--ink);
}

.tl-unscheduled-chip .icon {
    width: 12px;
    height: 12px;
    color: #b3bab4;
}

.timeline-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
    padding: 40px 20px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.4);
    text-align: center;
}

.timeline-empty h2 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.timeline-empty p {
    max-width: 340px;
    color: var(--ink-muted);
    font-size: 11.5px;
}

/* =========================================================
   Timeline responsive
   ========================================================= */
@media (max-width: 1080px) {
    .timeline-hint {
        display: none;
    }
}

@media (max-width: 760px) {
    .view-switch {
        order: -1;
    }

    .view-switch-btn span {
        display: none;
    }

    .view-switch-btn {
        padding: 0 9px;
    }

    .timeline-toolbar {
        flex-wrap: wrap;
        gap: 9px;
        margin-bottom: 9px;
    }

    .timeline-inner {
        --tlw: 172px;
    }

    .tl-corner,
    .tl-row-label {
        padding-left: 10px;
    }

    .tl-row-title {
        font-size: 10px;
    }

    .tl-row-sub {
        font-size: 8px;
    }

    .tl-unscheduled-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 10px;
    }
}
