.shell--panel {
    width: calc(100% - 4rem);
}

.layout {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    flex: 1;
    width: calc(100% - 4rem);
    padding-bottom: 2rem;
}

.sidebar {
    position: sticky;
    top: 1.25rem;
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 0.875rem;
}

.snav {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.snav-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.5rem 0.625rem;
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: background 140ms var(--ease), color 140ms var(--ease);
}

.snav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.snav-item:hover {
    background: var(--glass);
    color: var(--ink);
}

.snav-item.is-active {
    background: var(--accent-soft);
    border-color: rgba(178, 197, 255, 0.25);
    color: var(--accent-strong);
}

.snav-badge {
    margin-left: auto;
    min-width: 19px;
    padding: 0.05rem 0.35rem;
    border-radius: 999px;
    background: var(--danger-strong);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
}

.snav-section {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-height: 0;
}

.snav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.625rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.snav-add {
    width: 22px;
    height: 22px;
}

.snav-add svg {
    width: 13px;
    height: 13px;
}

.snav-empty {
    padding: 0 0.625rem;
    font-size: 0.8rem;
    color: var(--ink-muted);
}

.room-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.snav-bottom {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid var(--glass-border);
}

.content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.view {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: viewIn 240ms var(--ease);
}

@keyframes viewIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.view-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-head h2 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.field textarea,
.field select,
.select {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
    transition: border-color 160ms var(--ease);
    resize: vertical;
}

.field textarea:focus-visible,
.field select:focus-visible,
.select:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
    border-color: transparent;
}

.select option {
    background: #1a1a1c;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--ink-muted);
    cursor: pointer;
}

.check input {
    accent-color: var(--accent);
    width: 15px;
    height: 15px;
}

.modal-buttons--split {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.modal-buttons-spacer {
    flex: 1;
}

.view-chat {
    height: calc(100vh - 190px);
    min-height: 420px;
}

.online {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.online-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.2rem 0.625rem;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    font-size: 0.78rem;
    color: var(--ink-muted);
}

.online-chip::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 8px rgba(143, 226, 155, 0.6);
}

.chat-scroll {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    scroll-behavior: smooth;
}

.chat-more {
    text-align: center;
    font-size: 0.8rem;
    color: var(--ink-muted);
    padding: 0.375rem 0;
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.chat-day {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--ink-muted);
    margin: 0.875rem 0 0.5rem;
}

.chat-msg {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
}

.chat-msg:hover {
    background: rgba(255, 255, 255, 0.03);
}

.chat-msg.is-first {
    margin-top: 0.625rem;
}

.chat-msg-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.chat-msg-user {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-strong);
}

.chat-msg-time {
    font-size: 0.7rem;
    color: var(--ink-muted);
}

.chat-msg-body {
    font-size: 0.925rem;
    line-height: 1.45;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.chat-msg.is-pending .chat-msg-body {
    opacity: 0.55;
}

.chat-msg-delete {
    position: absolute;
    top: 0.125rem;
    right: 0.25rem;
    opacity: 0;
    width: 24px;
    height: 24px;
}

.chat-msg:hover .chat-msg-delete {
    opacity: 1;
}

.chat-composer {
    display: flex;
    gap: 0.625rem;
    align-items: flex-end;
}

.chat-composer textarea {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
    padding: 0.625rem 0.875rem;
    resize: none;
    max-height: 140px;
}

.chat-composer textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

.chat-send {
    padding: 0.625rem 0.875rem;
}

.chat-send svg {
    width: 17px;
    height: 17px;
    display: block;
}

.board-toolbar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.board-search {
    width: 240px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--ink);
    font: inherit;
    font-size: 0.875rem;
    padding: 0.45rem 1rem;
}

.board-search::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.board-search:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

.board-filters {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
    flex: 1;
}

.zoom-controls {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    margin-left: auto;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.125rem 0.25rem;
}

.zoom-controls .icon-btn {
    width: 26px;
    height: 26px;
}

.zoom-level {
    background: none;
    border: none;
    color: var(--ink-muted);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    min-width: 44px;
    text-align: center;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}

.zoom-level:hover {
    color: var(--ink);
}

.board-wrap {
    overflow-x: auto;
    padding-bottom: 0.75rem;
}

.board {
    display: flex;
    gap: 0.875rem;
    align-items: flex-start;
    min-height: 320px;
}

.board-col {
    width: 300px;
    flex-shrink: 0;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    max-height: calc((100vh - 300px) / var(--board-zoom, 1));
}

.board-col-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem 0.5rem;
    cursor: grab;
}

.board-col-head h3 {
    font-size: 0.875rem;
    font-weight: 600;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-col-count {
    font-size: 0.75rem;
    color: var(--ink-muted);
    background: var(--glass);
    border-radius: 999px;
    padding: 0.05rem 0.5rem;
}

.board-col-menu {
    width: 24px;
    height: 24px;
    opacity: 0;
}

.board-col:hover .board-col-menu {
    opacity: 1;
}

.board-cards {
    flex: 1;
    min-height: 40px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.25rem 0.625rem 0.625rem;
}

.board-card {
    background: rgba(26, 26, 28, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    transition: border-color 140ms var(--ease), transform 140ms var(--ease);
}

.board-card:hover {
    border-color: var(--glass-border-strong);
    transform: translateY(-1px);
}

.board-card-title {
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.board-card-meta {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.board-card-meta:empty {
    display: none;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.badge-high {
    background: rgba(255, 45, 77, 0.16);
    border-color: rgba(255, 45, 77, 0.35);
    color: var(--danger);
}

.badge-low {
    background: var(--glass);
    border-color: var(--glass-border);
    color: var(--ink-muted);
}

.badge-due {
    background: var(--accent-faint);
    border-color: rgba(178, 197, 255, 0.25);
    color: var(--accent-strong);
}

.badge-due.is-over {
    background: rgba(255, 45, 77, 0.16);
    border-color: rgba(255, 45, 77, 0.35);
    color: var(--danger);
}

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

.avatar {
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid rgba(178, 197, 255, 0.35);
    color: var(--accent-strong);
    font-size: 0.62rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -5px;
    text-transform: uppercase;
}

.avatar:first-child {
    margin-left: 0;
}

.board-card.is-placeholder {
    opacity: 0.35;
    border-style: dashed;
    border-color: var(--accent);
}

.board-ghost {
    position: fixed;
    z-index: 80;
    pointer-events: none;
    width: 256px;
    transform: rotate(2deg);
    box-shadow: var(--shadow);
    opacity: 0.95;
}

.board-add-card {
    margin: 0 0.625rem 0.625rem;
}

.board-add-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
}

.board-add-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.board-add-input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

.board-add-col {
    width: 250px;
    flex-shrink: 0;
}

.cal-tools {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.cal-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cal-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cal-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--ink-muted);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 140ms var(--ease);
}

.cal-filter .room-dot {
    width: 8px;
    height: 8px;
}

.cal-filter.is-active {
    color: var(--ink);
    background: var(--glass-strong);
    border-color: var(--glass-border-strong);
}

.cal-filter:not(.is-active) {
    opacity: 0.5;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 0 0.125rem;
}

.cal-weekdays span {
    padding: 0 0.375rem;
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.375rem;
}

.cal-cell {
    min-height: 108px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.375rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    overflow: hidden;
}

.cal-cell.is-other {
    opacity: 0.45;
}

.cal-cell-day {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--ink-muted);
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cal-cell.is-today .cal-cell-day {
    background: var(--accent);
    color: #10131c;
}

.cal-entry {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border-left: 2px solid var(--accent);
    background: var(--accent-faint);
    color: var(--ink);
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: none;
    border-right: none;
    border-bottom: none;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.cal-entry-time {
    color: var(--ink-muted);
    font-weight: 600;
    flex-shrink: 0;
}

.cal-entry-task::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 2px;
    border: 1.5px solid currentColor;
    flex-shrink: 0;
    opacity: 0.7;
}

.cal-more {
    font-size: 0.7rem;
    color: var(--ink-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    padding: 0.1rem 0.4rem;
    font-family: inherit;
}

.cal-more:hover {
    color: var(--ink);
}

.cal-grid--week {
    grid-template-columns: repeat(7, 1fr);
}

.cal-grid--week .cal-cell {
    min-height: 300px;
}

.cal-cell-head {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.cal-cell-head span:last-child {
    font-size: 0.75rem;
    color: var(--ink-muted);
}

.room-head h2 .room-dot {
    width: 12px;
    height: 12px;
}

.room-tools {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.dropzone--slim {
    padding: 1.25rem;
}

.dropzone--slim .dropzone-inner {
    gap: 0.25rem;
}

.file-room-chip {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    flex-shrink: 0;
}

.assignee-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.assignee-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--ink-muted);
    font: inherit;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 140ms var(--ease);
}

.assignee-option.is-active {
    background: var(--accent-soft);
    border-color: rgba(178, 197, 255, 0.35);
    color: var(--accent-strong);
}

.color-picker {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.375rem;
}

.color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 140ms var(--ease);
}

.color-swatch:hover {
    transform: scale(1.12);
}

.color-swatch.is-active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.4);
}

.modal--task {
    width: min(94vw, 980px);
    max-width: none;
}

#columnModal {
    width: min(94vw, 560px);
}

.role-chip {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--ink-muted);
}

.role-chip.is-owner {
    background: rgba(255, 194, 122, 0.14);
    border-color: rgba(255, 194, 122, 0.35);
    color: var(--warn);
}

.role-chip.is-admin {
    background: var(--accent-soft);
    border-color: rgba(178, 197, 255, 0.35);
    color: var(--accent-strong);
}

.notif {
    position: relative;
    margin-left: auto;
    margin-right: 0.75rem;
}

.topbar .account {
    margin-left: 0;
}

.notif-btn {
    position: relative;
    width: 38px;
    height: 38px;
}

.notif-btn svg {
    width: 19px;
    height: 19px;
}

.notif-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 17px;
    padding: 0.05rem 0.3rem;
    border-radius: 999px;
    background: var(--danger-strong);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
}

.notif-menu {
    right: 0;
    left: auto;
    width: 360px;
    max-width: 90vw;
    padding: 0;
}

.notif-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
}

.notif-markall {
    background: none;
    border: none;
    color: var(--accent);
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.notif-markall:hover {
    color: var(--accent-strong);
}

.notif-list {
    max-height: 380px;
    overflow-y: auto;
}

.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    width: 100%;
    padding: 0.625rem 1rem;
    background: none;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: var(--ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.notif-item:last-child {
    border-bottom: none;
}

.notif-item:hover {
    background: var(--glass);
}

.notif-item.is-unread {
    background: var(--accent-faint);
}

.notif-item .avatar {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
    flex-shrink: 0;
    margin: 0;
}

.notif-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-muted);
    flex-shrink: 0;
}

.notif-icon svg {
    width: 16px;
    height: 16px;
}

.notif-content {
    min-width: 0;
}

.notif-message {
    font-size: 0.85rem;
    line-height: 1.35;
}

.notif-time {
    font-size: 0.7rem;
    color: var(--ink-muted);
    margin-top: 0.125rem;
}

.notif-empty {
    padding: 1.25rem 1rem;
    font-size: 0.85rem;
    color: var(--ink-muted);
    text-align: center;
}

.col-type-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.1rem 0.5rem;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(178, 197, 255, 0.25);
    color: var(--accent-strong);
    white-space: nowrap;
    flex-shrink: 0;
}

.board-col--done .col-type-badge {
    background: rgba(143, 226, 155, 0.14);
    border-color: rgba(143, 226, 155, 0.35);
    color: var(--success);
}

.board-col--rejected .col-type-badge {
    background: rgba(255, 45, 77, 0.12);
    border-color: rgba(255, 45, 77, 0.3);
    color: var(--danger);
}

.board-col--done {
    border-top: 2px solid rgba(143, 226, 155, 0.45);
}

.board-col--rejected {
    border-top: 2px solid rgba(255, 45, 77, 0.4);
}

.board-col--typed {
    border-top: 2px solid rgba(178, 197, 255, 0.4);
}

.board-card--high {
    border-left: 3px solid var(--danger-strong);
}

.board-card-thumb {
    width: calc(100% + 1.5rem);
    margin: -0.625rem -0.75rem 0.5rem;
    max-height: 140px;
    object-fit: cover;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    display: block;
    pointer-events: none;
}

.board-card-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.375rem;
}

.label-chip {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    border: 1px solid transparent;
}

.card-count {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    color: var(--ink-muted);
}

.card-count svg {
    width: 13px;
    height: 13px;
}

.is-dimmed {
    opacity: 0.18;
}

.cal-filter.is-neutral {
    opacity: 0.55;
}

.empty-state {
    font-size: 0.8rem;
    color: var(--ink-muted);
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.empty-state--col {
    border: 1px dashed var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 1rem 0.5rem;
}

.option-remove {
    margin-left: 0.25rem;
    opacity: 0.5;
    font-weight: 700;
}

.option-remove:hover {
    opacity: 1;
    color: var(--danger);
}

.assignee-option--add {
    border-style: dashed;
}

.assignee-option .room-dot {
    width: 8px;
    height: 8px;
}

.label-create {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
    padding: 0.625rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.label-create input {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    padding: 0.4rem 0.625rem;
    width: 140px;
}

.type-emoji-input {
    width: 64px !important;
    text-align: center;
}

.color-picker--small .color-swatch {
    width: 22px;
    height: 22px;
}

.prio-seg {
    display: flex;
    gap: 0.25rem;
    margin-top: 0.375rem;
}

.prio-btn {
    flex: 1;
    padding: 0.5rem 0.625rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--ink-muted);
    font: inherit;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 140ms var(--ease);
}

.prio-btn.is-active {
    background: var(--accent-soft);
    border-color: rgba(178, 197, 255, 0.35);
    color: var(--accent-strong);
}

.prio-btn--high.is-active {
    background: rgba(255, 45, 77, 0.16);
    border-color: rgba(255, 45, 77, 0.4);
    color: var(--danger);
}

.due-chips {
    display: flex;
    gap: 0.375rem;
    margin-top: 0.375rem;
}

.task-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    margin-top: 1rem;
}

.task-main {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    min-width: 0;
}

.task-side {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-left: 1px solid var(--glass-border);
    padding-left: 1.5rem;
}

.task-side-title {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-muted);
    margin-bottom: 0.625rem;
}

.task-comments {
    flex: 1;
    min-height: 200px;
    max-height: 46vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.25rem;
}

.comment {
    position: relative;
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.comment .avatar {
    width: 26px;
    height: 26px;
    font-size: 0.72rem;
    margin: 0;
    flex-shrink: 0;
}

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

.comment-head {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.comment-user {
    font-size: 0.8rem;
    font-weight: 600;
}

.comment-time {
    font-size: 0.66rem;
    color: var(--ink-muted);
}

.comment-body {
    font-size: 0.85rem;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.comment-delete {
    position: absolute;
    top: 0;
    right: 0;
    width: 22px;
    height: 22px;
    opacity: 0;
}

.comment:hover .comment-delete {
    opacity: 1;
}

.comment-composer {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    margin-top: 0.75rem;
}

.comment-composer textarea {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    resize: none;
    max-height: 120px;
}

.comment-composer textarea:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

.attach-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.375rem;
}

.attach-tile {
    position: relative;
    width: 86px;
    height: 86px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass);
}

.attach-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

.attach-file {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    height: 100%;
    color: var(--ink-muted);
    text-decoration: none;
    font-size: 0.6rem;
    padding: 0.25rem;
    text-align: center;
}

.attach-file svg {
    width: 22px;
    height: 22px;
}

.attach-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 22px;
    height: 22px;
    background: rgba(0, 0, 0, 0.6);
    opacity: 0;
}

.attach-tile:hover .attach-remove {
    opacity: 1;
}

.attach-btn {
    align-self: flex-start;
    margin-top: 0.375rem;
}

.mention {
    color: var(--accent-strong);
    font-weight: 600;
}

.mention.is-me {
    background: var(--accent-soft);
    border-radius: 4px;
    padding: 0 0.25rem;
}

.chat-msg-head .avatar {
    width: 22px;
    height: 22px;
    font-size: 0.62rem;
    margin: 0;
}

.buylist-form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.buylist-form input {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--ink);
    font: inherit;
    font-size: 0.9rem;
    padding: 0.55rem 0.875rem;
}

.buylist-form input:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -1px;
}

#buyName {
    flex: 1;
    min-width: 200px;
}

#buyQty {
    width: 76px;
}

#buyPrice {
    width: 110px;
}

.buy-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--glass-border-strong);
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--success);
    transition: border-color 140ms var(--ease);
}

.buy-check:hover {
    border-color: var(--success);
}

.buy-check svg {
    width: 14px;
    height: 14px;
}

.buy-row.is-done .buy-check {
    border-color: var(--success);
    background: rgba(143, 226, 155, 0.12);
}

.buy-row.is-done .buy-name {
    text-decoration: line-through;
    color: var(--ink-muted);
}

.buylist-sum {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--ink-muted);
    padding: 0.625rem 0.25rem;
    text-align: right;
}

.analysis-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.kpi-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem;
    text-align: center;
}

.kpi-value {
    font-size: 1.75rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.kpi-label {
    font-size: 0.78rem;
    color: var(--ink-muted);
    margin-top: 0.25rem;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 0.75rem;
}

.analysis-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
}

.analysis-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.875rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 0.5rem;
}

.bar-label {
    width: 140px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
    color: var(--ink-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-label .avatar {
    width: 20px;
    height: 20px;
    font-size: 0.58rem;
    margin: 0;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 10px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 400ms var(--ease);
}

.bar-value {
    width: 28px;
    text-align: right;
    font-size: 0.8rem;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.analysis-card--donut {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.donut {
    width: 140px;
    height: 140px;
}

.donut-text {
    fill: var(--ink);
    font-size: 1.5rem;
    font-weight: 700;
    font-family: inherit;
}

.donut-legend {
    font-size: 0.8rem;
    color: var(--ink-muted);
    margin-top: 0.5rem;
}

@media (max-width: 860px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        position: static;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.5rem;
        gap: 0.25rem;
    }

    .snav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .snav-section {
        flex-direction: row;
        align-items: center;
        gap: 0.25rem;
    }

    .snav-heading {
        display: none;
    }

    .snav-bottom {
        margin-top: 0;
        padding-top: 0;
        border-top: none;
    }

    .snav-item span:not(.room-dot):not(.snav-badge) {
        display: none;
    }

    .snav-item {
        padding: 0.5rem;
    }

    .view-chat {
        height: calc(100vh - 250px);
    }

    .cal-cell {
        min-height: 72px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }

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

    .task-side {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--glass-border);
        padding-top: 1rem;
    }

    .notif-menu {
        position: fixed;
        top: 70px;
        right: 1rem;
    }
}
