/* ==========================================================================
   TaskHub — tema ala ClickUp di atas Bootstrap 5
   ========================================================================== */
:root {
    --brand: #7b68ee;
    --brand-dark: #6a5ae0;
    --brand-soft: #f0eeff;
    --ink: #292d34;
    --muted: #656f7d;
    --line: #e8eaed;
    --line-soft: #f0f1f3;
    --surface: #ffffff;
    --canvas: #f9fafb;
    --sidebar-w: 260px;

    --bs-primary: var(--brand);
    --bs-primary-rgb: 123, 104, 238;
    --bs-link-color: var(--brand);
    --bs-link-color-rgb: 123, 104, 238;
    --bs-link-hover-color: var(--brand-dark);
    --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-font-size: .875rem;
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
}

body { background: var(--surface); color: var(--ink); }

.btn-primary {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark);
    --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
}
.btn-outline-primary {
    --bs-btn-color: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand);
    --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand);
}
.form-control:focus, .form-select:focus, .form-check-input:focus {
    border-color: #b4a9f5; box-shadow: 0 0 0 .2rem rgba(123, 104, 238, .15);
}
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.text-primary { color: var(--brand) !important; }
.dropdown-item:active { background: var(--brand); }
.min-w-0 { min-width: 0; }

.btn-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border: 0; border-radius: 6px;
    background: transparent; color: var(--muted); text-decoration: none; flex-shrink: 0;
}
.btn-icon:hover { background: var(--line-soft); color: var(--ink); }

/* ---------------------------------------------------------------- Layout */
.app { display: flex; min-height: 100vh; }

.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    background: var(--canvas); border-right: 1px solid var(--line);
    display: flex; flex-direction: column;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
    padding: 10px 8px;
}
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sidebar-backdrop { display: none; }

@media (max-width: 991.98px) {
    .sidebar {
        position: fixed; left: 0; top: 0; z-index: 1045;
        transform: translateX(-100%); transition: transform .2s ease;
        box-shadow: 0 0 24px rgba(0,0,0,.12);
    }
    .app.sidebar-open .sidebar { transform: none; }
    .app.sidebar-open .sidebar-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1040; background: rgba(0,0,0,.25);
    }
}

/* Workspace switcher */
.ws-switcher {
    display: flex; align-items: center; gap: 10px; width: 100%;
    border: 0; background: transparent; padding: 6px 8px; border-radius: 8px;
    font-weight: 600; color: var(--ink); text-align: left;
}
.ws-switcher:hover { background: var(--line-soft); }
.ws-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 7px; flex-shrink: 0;
    background: linear-gradient(135deg, #7b68ee, #ff7fab); color: #fff; font-size: 13px; font-weight: 700;
}
.ws-logo-sm { width: 22px; height: 22px; font-size: 11px; border-radius: 5px; }
.ws-menu { min-width: 240px; }

.nav-main { margin: 10px 0 6px; }
.nav-link-item {
    display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 6px;
    color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav-link-item i { color: var(--muted); font-size: 15px; }
.nav-link-item:hover { background: var(--line-soft); color: var(--ink); }
.nav-link-item.active { background: var(--brand-soft); color: var(--brand); }
.nav-link-item.active i { color: var(--brand); }

.sidebar-section { flex: 1; border-top: 1px solid var(--line); padding-top: 10px; }
.section-title {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 4px 4px 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em;
    text-transform: uppercase; color: var(--muted);
}

.space-row { display: flex; align-items: center; border-radius: 6px; }
.space-row:hover { background: var(--line-soft); }
.space-actions { opacity: 0; }
.space-row:hover .space-actions, .space-actions:has(.show) { opacity: 1; }
.space-toggle {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px;
    border: 0; background: transparent; padding: 5px 10px; font-weight: 600; color: var(--ink); text-align: left;
}
.space-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 5px; color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.space-icon-sm { width: 18px; height: 18px; font-size: 10px; }
.space-icon-xs { width: 10px; height: 10px; border-radius: 3px; }

.list-link {
    display: flex; align-items: center; gap: 8px; padding: 4px 10px 4px 38px; border-radius: 6px;
    color: var(--ink); text-decoration: none;
}
.list-link i { color: var(--muted); }
.list-link:hover { background: var(--line-soft); color: var(--ink); }
.list-link.active { background: var(--brand-soft); color: var(--brand); font-weight: 500; }
.list-link.active i { color: var(--brand); }
.list-link-add { color: var(--muted); font-size: 13px; }

.sidebar-footer {
    display: flex; align-items: center; gap: 8px;
    border-top: 1px solid var(--line); padding: 10px 6px 0; margin-top: 10px;
}

/* ---------------------------------------------------------------- Topbar */
.topbar {
    display: flex; align-items: center; gap: 8px;
    height: 52px; padding: 0 20px; border-bottom: 1px solid var(--line);
    background: var(--surface); position: sticky; top: 0; z-index: 10;
}
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .bi-chevron-right { font-size: 10px; color: #b0b6bf; }

.page-body { padding: 20px; flex: 1; }
.page-narrow { max-width: 920px; width: 100%; margin: 0 auto; padding-top: 32px; }

.card-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; }

/* ---------------------------------------------------------------- View bar & filter */
.view-bar {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.view-tabs { display: flex; gap: 4px; }
.view-tab {
    display: flex; align-items: center; gap: 6px; padding: 12px 10px 10px;
    color: var(--muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent;
}
.view-tab:hover { color: var(--ink); }
.view-tab.active { color: var(--brand); border-bottom-color: var(--brand); }

.filters { display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 8px 0; flex-wrap: wrap; }
.filters .form-select { width: auto; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; }
.input-icon > .form-control { padding-left: 30px; }
.input-icon-lg > i { font-size: 16px; left: 14px; }
.input-icon-lg > .form-control { padding-left: 42px; }

/* ---------------------------------------------------------------- Status & badges */
.status-pill {
    display: inline-block; padding: 3px 8px; border-radius: 4px;
    color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.status-pill-sm { font-size: 10px; padding: 2px 6px; }
.group-count {
    display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px;
    background: var(--line-soft); color: var(--muted); font-size: 12px; font-weight: 500; text-align: center;
}

.status-dot {
    --c: #87909e;
    width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; padding: 0;
    border: 2px solid var(--c); background: transparent; cursor: pointer; position: relative;
}
a > .status-dot, span.status-dot { cursor: default; display: inline-block; }
.status-dot.is-closed { background: var(--c); }
.status-dot.is-closed::after {
    content: ""; position: absolute; left: 3px; top: 0; width: 4px; height: 7px;
    border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
button.status-dot:hover { box-shadow: 0 0 0 3px rgba(0,0,0,.06); }

.priority-flag { white-space: nowrap; font-size: 13px; }
.due { white-space: nowrap; font-size: 12px; }
.due i { font-size: 11px; margin-right: 2px; }
.meta-chip { color: var(--muted); font-size: 12px; white-space: nowrap; }

/* Avatar */
.avatar {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    color: #fff; font-size: 11px; font-weight: 600; letter-spacing: .02em;
}
.avatar-sm { width: 24px; height: 24px; font-size: 10px; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { border: 2px solid var(--surface); }
.avatar-stack .avatar + .avatar { margin-left: -8px; }
.avatar-empty { width: 24px; height: 24px; border: 1px dashed #c3c8cf; color: #a0a7b1; font-size: 12px; }
.avatar-more { background: #dfe1e6 !important; color: var(--muted); }

/* ---------------------------------------------------------------- List view */
.status-group { margin-bottom: 22px; }
.group-header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.btn-collapse i { transition: transform .15s; }
.btn-collapse[aria-expanded="false"] i { transform: rotate(-90deg); }

.task-table { border-left: 1px solid transparent; }
.task-row {
    display: grid; grid-template-columns: minmax(0, 1fr) 120px 110px 110px;
    align-items: center; gap: 12px; min-height: 40px; padding: 0 12px 0 4px;
    border-bottom: 1px solid var(--line-soft); background: var(--surface);
}
.task-rows .task-row:hover { background: #fafbfc; }
.task-row-head { min-height: 30px; font-size: 11px; font-weight: 500; color: var(--muted); border-bottom-color: var(--line); }
.task-row-head .col-name { padding-left: 42px; }
.task-row .col-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.task-title { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-title:hover { color: var(--brand); }
.task-title.is-closed { color: var(--muted); text-decoration: line-through; }
.drag-handle { color: #c3c8cf; cursor: grab; visibility: hidden; font-size: 14px; }
.task-row:hover .drag-handle, .status-edit-row .drag-handle { visibility: visible; }
.task-rows:empty { min-height: 8px; }

.sortable-ghost { opacity: .4; background: var(--brand-soft) !important; }
.sortable-chosen { box-shadow: 0 6px 16px rgba(0,0,0,.08); }

@media (max-width: 767.98px) {
    .task-row { grid-template-columns: minmax(0, 1fr) auto auto; }
    .task-row .col-priority, .task-row-head { display: none; }
}

/* Quick add */
.quick-add {
    display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 26px;
    color: var(--muted);
}
.quick-add-input {
    flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 4px 0; color: var(--ink);
}
.quick-add-input::placeholder { color: var(--muted); }
.quick-add-extra { display: none; }
.quick-add:focus-within { background: #fafbfc; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }
.quick-add:focus-within .quick-add-extra { display: inline-flex; align-items: center; gap: 4px; }

/* ---------------------------------------------------------------- Board view */
.board { display: flex; gap: 12px; overflow-x: auto; align-items: flex-start; background: var(--canvas); }
.board-col {
    --c: #87909e;
    flex: 0 0 272px; background: #f1f2f4; border-radius: 10px; padding: 8px;
    border-top: 3px solid var(--c); max-height: calc(100vh - 150px); display: flex; flex-direction: column;
}
.board-col-header { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.board-cards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; overflow-y: auto; padding: 2px; }
.task-card {
    display: block; background: var(--surface); border-radius: 8px; padding: 10px 12px;
    box-shadow: 0 1px 2px rgba(16,24,40,.08); border: 1px solid transparent;
    color: var(--ink); text-decoration: none; cursor: grab;
}
.task-card:hover { border-color: #d6d0fb; color: var(--ink); }
.task-card-title { font-weight: 500; margin-bottom: 8px; word-break: break-word; }
.task-card-title.is-closed { color: var(--muted); text-decoration: line-through; }
.task-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quick-add-board { padding: 8px 6px 2px; }

/* ---------------------------------------------------------------- Task detail */
.task-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; flex: 1; min-height: 0; }
.task-main { padding: 28px 40px 60px; }
.task-activity {
    border-left: 1px solid var(--line); background: var(--canvas);
    display: flex; flex-direction: column; height: calc(100vh - 52px); position: sticky; top: 52px;
}
@media (max-width: 1199.98px) {
    .task-detail { grid-template-columns: 1fr; }
    .task-activity { height: auto; position: static; border-left: 0; border-top: 1px solid var(--line); }
    .task-main { padding: 20px; }
}

.status-select {
    --c: #87909e;
    appearance: none; border: 0; border-radius: 6px; padding: 6px 30px 6px 12px;
    background: var(--c) url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") no-repeat right 10px center / 10px;
    color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em; cursor: pointer;
}
.status-select option { background: #fff; color: var(--ink); }

.task-title-input {
    width: 100%; border: 0; outline: 0; resize: none; overflow: hidden;
    font-size: 1.6rem; font-weight: 700; line-height: 1.3; padding: 4px 0; margin-bottom: 16px; color: var(--ink);
    border-radius: 6px;
}
.task-title-input:hover { background: var(--canvas); }
.task-title-input:focus { background: transparent; box-shadow: 0 0 0 2px var(--brand-soft); }

.props { display: grid; grid-template-columns: 140px 1fr; row-gap: 6px; align-items: center; margin-bottom: 28px; }
.prop-label { color: var(--muted); display: flex; align-items: center; gap: 8px; }
.prop-btn { border: 0; background: transparent; padding: 4px 6px; border-radius: 6px; }
.prop-btn:hover { background: var(--line-soft); }
.prop-input {
    border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 4px 6px; color: var(--ink);
}
.prop-input:hover { border-color: var(--line); }
.prop-input:focus { outline: 0; border-color: #b4a9f5; }

.section-heading { display: flex; align-items: center; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.description { min-height: 110px; resize: vertical; }
.subtasks { border: 1px solid var(--line); border-radius: 8px; }
.subtask-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--line-soft); }
.subtasks .quick-add { padding-left: 12px; }

.activity-header { padding: 14px 20px; font-weight: 600; border-bottom: 1px solid var(--line); }
.timeline { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.tl-activity { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--muted); }
.tl-activity strong { color: var(--ink); font-weight: 500; }
.tl-dot { width: 6px; height: 6px; border-radius: 50%; background: #c3c8cf; flex-shrink: 0; transform: translateY(-1px); }
.tl-time { margin-left: auto; white-space: nowrap; font-size: 11px; color: #9aa1ab; padding-left: 6px; }
.tl-comment { display: flex; gap: 10px; }
.tl-bubble { flex: 1; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.tl-meta { display: flex; align-items: baseline; margin-bottom: 2px; }
.tl-body { word-break: break-word; }
.comment-form { border-top: 1px solid var(--line); padding: 12px 20px; background: var(--surface); }
.comment-box {
    border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.comment-box:focus-within { border-color: #b4a9f5; box-shadow: 0 0 0 .2rem rgba(123, 104, 238, .15); }
.comment-box.is-dragover { border-color: var(--brand); border-style: dashed; background: var(--brand-soft); }
.comment-box textarea {
    display: block; width: 100%; border: 0; outline: 0; resize: none; background: transparent;
    padding: 8px 10px 4px; max-height: 200px; color: var(--ink);
}
.comment-files { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 8px; }
.comment-files:not(:empty) { padding-bottom: 6px; }
.pending-file {
    display: flex; align-items: center; gap: 6px; max-width: 200px; padding: 3px 6px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--canvas); font-size: 12px;
}
.pending-file img { width: 22px; height: 22px; object-fit: cover; border-radius: 3px; }
.pending-file .bi { color: var(--brand); }
.pending-file .btn-close { font-size: 8px; padding: 4px; margin-left: auto; flex-shrink: 0; }
.comment-toolbar { display: flex; align-items: center; gap: 4px; padding: 4px 6px 6px; }
.comment-hint { font-size: 11px; color: #9aa1ab; }

.tl-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tl-file-img { display: block; width: 88px; height: 66px; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); background: var(--canvas); }
.tl-file-img img { width: 100%; height: 100%; object-fit: cover; }
.tl-file {
    display: flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 8px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--canvas);
    color: var(--ink); text-decoration: none; font-size: 12px; min-width: 0;
}
.tl-file:hover { border-color: #d6d0fb; color: var(--brand); }
.tl-file .bi { color: var(--brand); font-size: 15px; }
.tl-file small { color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------- Lampiran */
.attachments { position: relative; }
.attachment-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.attachment-grid:not(:empty) { margin-bottom: 10px; }
.attachment-card {
    display: flex; align-items: center; gap: 10px; min-width: 0;
    border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--surface);
}
.attachment-card:hover { border-color: #d6d0fb; }
.attachment-thumb {
    width: 48px; height: 48px; flex-shrink: 0; border-radius: 6px; overflow: hidden;
    display: flex; align-items: center; justify-content: center; background: var(--canvas); text-decoration: none;
}
.attachment-thumb img { width: 100%; height: 100%; object-fit: cover; }
.attachment-thumb-file { flex-direction: column; color: var(--brand); font-size: 20px; line-height: 1; }
.attachment-thumb-file span { font-size: 9px; font-weight: 700; color: var(--muted); margin-top: 3px; }
.attachment-info { flex: 1; min-width: 0; }
.attachment-name { display: block; color: var(--ink); text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-name:hover { color: var(--brand); }
.attachment-meta { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-actions { display: flex; opacity: 0; transition: opacity .1s; }
.attachment-card:hover .attachment-actions, .attachment-actions:focus-within { opacity: 1; }
@media (hover: none) { .attachment-actions { opacity: 1; } }

.dropzone {
    display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
    border: 1.5px dashed #d0d4da; border-radius: 8px; padding: 14px; color: var(--muted); font-size: 13px;
    transition: background .15s, border-color .15s;
}
.dropzone > i { font-size: 22px; color: #b0b6bf; }
.dropzone small { font-size: 11px; color: #9aa1ab; }
.attachments.is-dragover .dropzone { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.attachments.is-dragover .dropzone > i { color: var(--brand); }
.upload-progress { margin-top: 10px; }
.upload-progress .progress-bar { background: var(--brand); transition: width .15s; }

.lightbox-img { max-width: 100%; max-height: 80vh; object-fit: contain; border-radius: 6px; margin: 0 auto; display: block; }

/* ---------------------------------------------------------------- My Work / search */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat-card { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.stat-label { color: var(--muted); font-size: 12px; margin-top: 4px; }

.mywork-group { margin-bottom: 24px; }
.mywork-title { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.mywork-list { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mywork-item {
    display: flex; align-items: center; gap: 12px; padding: 10px 14px;
    border-bottom: 1px solid var(--line-soft); color: var(--ink); text-decoration: none; min-width: 0;
}
.mywork-item:last-child { border-bottom: 0; }
.mywork-item:hover { background: #fafbfc; color: var(--ink); }
.mywork-item .location { color: var(--muted); font-size: 12px; white-space: nowrap; }

.empty-state { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty-state > i { font-size: 40px; color: #c3c8cf; display: block; margin-bottom: 8px; }

/* ---------------------------------------------------------------- Settings */
.color-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(255,255,255,.4); }
.btn-check:checked + .swatch { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--ink); }

.status-edit-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.status-edit-row .form-control-color { width: 34px; flex-shrink: 0; padding: 2px; }

.member-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.member-row:last-child { border-bottom: 0; }
.member-row .form-select { width: 110px; }
.role-owner { background: var(--brand-soft); color: var(--brand); }
.role-admin { background: #e6f4ff; color: #1e6fd9; }
.role-member { background: var(--line-soft); color: var(--muted); }

/* ---------------------------------------------------------------- Auth */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: radial-gradient(1200px 600px at 10% -10%, #efeaff 0%, transparent 60%),
                radial-gradient(900px 500px at 110% 110%, #ffe6f0 0%, transparent 60%), #fafbff;
}
.auth-card {
    width: 100%; max-width: 420px; background: #fff; border-radius: 16px; padding: 32px;
    box-shadow: 0 20px 50px rgba(41, 45, 52, .08); border: 1px solid var(--line);
}
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 700; margin-bottom: 24px; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px;
    background: linear-gradient(135deg, #7b68ee, #ff7fab); color: #fff; font-size: 18px;
}
