/* PolarBoard -  Polarbord-inspired UI, original implementation */

:root {
    --bg: #eef6fb;
    --sheet: #ffffff;
    --ink: #0f172a;
    --muted: #64748b;
    --faint: #94a3b8;
    --line: #e0ebf3;
    --line-strong: #c9dcea;
    --brand: #0ea5e9;
    --brand-dark: #0284c7;
    --brand-2: #38bdf8;
    --brand-soft: #e0f2fe;
    --success: #2f7d3b;
    --success-dark: #256630;
    --success-soft: #e7f3e9;
    --accent: #fbbf24;
    --accent-soft: #fef3c7;
    --link: #0284c7;
    --red: #c0392b;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(15, 23, 42, 0.10), 0 2px 8px rgba(15, 23, 42, 0.06);
    --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.55;
    min-height: 100vh;
}

a { color: var(--ink); }
a:hover { color: #000; }

button { font-family: inherit; }

/* ---------- Top bar ---------- */

.topbar {
    max-width: 1120px;
    margin: 0 auto;
    padding: 18px 24px 10px;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar__brand { flex: 1; min-width: 140px; }

.topbar__logo {
    text-decoration: none;
    font-size: 19px;
    letter-spacing: -0.2px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.topbar__logo-img {
    height: 30px;
    width: auto;
    border-radius: 7px;
    display: block;
}

.topbar__nav {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex: 2;
}

.topbar__link {
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    color: var(--ink);
    padding: 7px 14px;
    border-radius: 22px;
    position: relative;
}

.topbar__link:hover { background: rgba(15, 23, 42, 0.06); }

.topbar__link.is-active {
    box-shadow: inset 0 -4px 0 var(--accent);
    border-radius: 22px 22px 4px 4px;
}

.topbar__badge {
    display: inline-block;
    background: #ec4899;
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    text-align: center;
    padding: 1px 6px;
    margin-left: 4px;
    vertical-align: 2px;
}

.topbar__user {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 140px;
}

.linklike {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

/* ---------- Impersonation ---------- */

.impersonation-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--accent-soft);
    color: #a2701f;
    border-bottom: 1px solid #f0dfab;
    padding: 8px 24px;
    font-size: 14px;
    font-weight: 600;
}

.impersonation-bar .linklike {
    color: inherit;
    font-weight: 700;
}

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

/* ---------- Page & sheet ---------- */

.page {
    max-width: 1120px;
    margin: 8px auto 40px;
    padding: 0 16px;
}

.sheet {
    background: var(--sheet);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px 48px 64px;
    min-height: 400px;
}

.sheet--narrow {
    max-width: 820px;
    margin: 0 auto;
}

/* Boards need the whole viewport: lift the page cap when it holds a full sheet. */
.page:has(> .sheet--full) { max-width: none; }

.content-col { max-width: 700px; margin: 0 auto; }

.footer {
    text-align: center;
    color: var(--faint);
    font-size: 13px;
    padding: 12px 0 32px;
}

/* ---------- Breadcrumbs & page headers ---------- */

.crumbs {
    text-align: center;
    font-size: 14.5px;
    color: var(--muted);
    margin-bottom: 4px;
}

.crumbs a {
    color: var(--muted);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--line-strong);
}

.crumbs a:hover { color: var(--ink); border-color: var(--ink); }

.page-head { text-align: center; margin-bottom: 28px; }

.page-head h1 {
    font-size: 30px;
    letter-spacing: -0.4px;
    line-height: 1.2;
    margin: 4px 0 6px;
}

.page-head .sub { color: var(--muted); font-size: 15.5px; }

.page-head__actions { margin-top: 14px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-block;
    border: none;
    border-radius: 24px;
    padding: 10px 20px;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    line-height: 1.3;
    color: var(--ink);
    background: #e6eef5;
}

.btn:hover { background: #d8e5ef; color: var(--ink); }

.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }

.btn--ghost {
    background: transparent;
    border: 1.5px solid var(--line-strong);
}

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

.btn--small { padding: 6px 14px; font-size: 14px; }

.btn--danger { color: var(--red); }

/* ---------- Forms ---------- */

.field { margin-bottom: 18px; }

.field label {
    display: block;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 6px;
}

.input, .textarea, .select {
    width: 100%;
    font-family: inherit;
    font-size: 16px;
    color: var(--ink);
    background: #fff;
    border: 1.5px solid var(--line-strong);
    border-radius: 6px;
    padding: 10px 12px;
    outline: none;
}

.input:focus, .textarea:focus, .select:focus {
    border-color: #7dd3fc;
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.textarea { min-height: 120px; resize: vertical; }

.textarea--tall { min-height: 280px; }

.input--title {
    font-size: 24px;
    font-weight: 700;
    border: none;
    border-bottom: 2px solid var(--line);
    border-radius: 0;
    padding: 8px 2px;
    text-align: center;
}

.input--title:focus { box-shadow: none; border-color: var(--brand-2); }

.error { color: var(--red); font-size: 14px; margin-top: 4px; }

.hint { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

.form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
}

/* ---------- Tabs & stream ---------- */

.tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.tabs__tab {
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    color: var(--muted);
    padding: 8px 14px;
}

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

.tabs__tab.is-active {
    color: var(--ink);
    box-shadow: inset 0 -3px 0 var(--accent);
}

.post-card {
    padding: 20px 0 24px;
    border-bottom: 1px solid var(--line);
}

.post-card:last-child { border-bottom: none; }

.post-card__title {
    margin: 10px 0 8px;
    font-size: 20px;
    letter-spacing: -0.2px;
}

.post-card__title a { text-decoration: none; }

.post-card__title a:hover { text-decoration: underline; }

.post-card__text.is-clamped {
    display: -webkit-box;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__files {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 14px;
}

.post-card__files a {
    color: var(--link);
    text-decoration: none;
}

.post-card__files a:hover { text-decoration: underline; }

.post-card__replies { margin-top: 12px; }

/* ---------- Flash ---------- */

.flash {
    background: var(--success-soft);
    color: var(--success-dark);
    border: 1px solid #cbe5cf;
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

/* ---------- Avatars ---------- */

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
    user-select: none;
    letter-spacing: 0.5px;
}

.avatar-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }

/* ---------- Home: project cards ---------- */

.home-head { text-align: center; margin: 8px 0 24px; }

.home-head h1 { font-size: 26px; }

.section-label {
    text-align: center;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    margin: 30px 0 16px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 18px;
}

.project-card {
    display: block;
    background: var(--sheet);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 22px 20px 26px;
    text-decoration: none;
    min-height: 148px;
    border-top: 5px solid var(--brand-2);
    transition: transform 0.06s ease, box-shadow 0.06s ease;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.project-card h3 { font-size: 18px; margin-bottom: 6px; }

.project-card p {
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.project-card .project-card__members { margin-top: 12px; }

.project-card--new {
    border-top-color: var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-weight: 700;
    font-size: 16px;
    border-style: none;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: none;
    border: 2px dashed var(--line-strong);
}

.project-card--new:hover { color: var(--ink); border-color: var(--muted); transform: none; box-shadow: none; }

/* ---------- Project page: tool cards ---------- */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    margin-top: 26px;
}

.tool-card {
    display: block;
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 18px;
    min-height: 230px;
    background: #fafcff;
}

.tool-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.tool-card__head { text-align: center; margin-bottom: 12px; }

.tool-card__icon { font-size: 30px; display: block; margin-bottom: 4px; }

.tool-card__name { font-size: 17px; font-weight: 800; }

.tool-card__preview { font-size: 13.5px; color: var(--muted); }

.tool-card__preview li {
    list-style: none;
    padding: 5px 0;
    border-top: 1px dotted var(--line);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tool-card__empty {
    color: var(--faint);
    text-align: center;
    font-size: 13.5px;
    padding-top: 26px;
}

/* ---------- Lists of things (messages, docs...) ---------- */

.item-list { list-style: none; }

.item-row {
    display: flex;
    gap: 14px;
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.item-row__body { flex: 1; min-width: 0; }

.item-row__title {
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
}

.item-row__title:hover { text-decoration: underline; }

.item-row__excerpt {
    color: var(--muted);
    font-size: 14.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-row__meta { color: var(--faint); font-size: 13px; margin-top: 2px; }

.badge {
    display: inline-block;
    font-size: 13px;
    background: #e8f1f8;
    border-radius: 12px;
    padding: 1px 10px;
    color: var(--muted);
    font-weight: 600;
}

.badge--warn { background: #fdf3e4; color: #a2701f; }

/* ---------- Rich content ---------- */

.prose { font-size: 16.5px; line-height: 1.65; }

.prose p { margin-bottom: 14px; }

.prose a { color: var(--link); }

.byline {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 10px 0 26px;
    color: var(--muted);
    font-size: 14.5px;
}

.byline strong { color: var(--ink); }

/* ---------- To-dos ---------- */

.todolist-block { margin-bottom: 34px; }

.todolist-block__head {
    display: flex;
    align-items: baseline;
    gap: 10px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.todolist-block__head h3 { font-size: 19px; }

.todolist-block__head h3 a { text-decoration: none; }

.todolist-block__head h3 a:hover { text-decoration: underline; }

.todolist-block__desc { color: var(--muted); font-size: 14px; }

.todo-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 9px 2px;
    border-bottom: 1px solid var(--line);
}

.todo-row__check {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid var(--faint);
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.todo-row__check:hover { border-color: var(--success); }

.todo-row__check:checked {
    background: var(--success);
    border-color: var(--success);
}

.todo-row__check:checked::after {
    content: "✓";
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.todo-row__label { flex: 1; min-width: 0; }

.todo-row__label a { text-decoration: none; }

.todo-row__label a:hover { text-decoration: underline; }

.todo-row--done .todo-row__label a {
    color: var(--faint);
    text-decoration: line-through;
}

.todo-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 12px;
    padding: 1px 9px;
    margin-left: 8px;
    background: var(--success-soft);
    color: var(--success-dark);
    vertical-align: 2px;
    text-decoration: none;
}

.todo-chip--due { background: #fdf1d7; color: #8a6d1a; }

.todo-chip--overdue { background: #fde8e4; color: var(--red); }

.todo-add { padding: 10px 2px; }

.todo-add__form {
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    padding: 12px;
    margin-top: 8px;
}

.inline-add {
    background: none;
    border: none;
    color: var(--muted);
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    padding: 6px 0;
}

.inline-add:hover { color: var(--ink); }

.completed-toggle { margin-top: 8px; }

/* ---------- Campfire ---------- */

.chat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 12px;
}

.chat-day {
    text-align: center;
    color: var(--faint);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 18px 0 8px;
}

.chat-line { display: flex; gap: 10px; padding: 5px 0; }

.chat-line__body { flex: 1; min-width: 0; }

.chat-line__head { font-size: 13.5px; color: var(--faint); }

.chat-line__head strong { color: var(--ink); font-size: 14.5px; margin-right: 6px; }

.chat-line__text { font-size: 15.5px; overflow-wrap: break-word; }

.chat-line__ts { font-size: 12.5px; font-variant-numeric: tabular-nums; }

.chat-line__ts--seek {
    background: none;
    border: none;
    padding: 0;
    color: inherit;
    font: inherit;
    font-size: 12.5px;
    cursor: pointer;
    text-decoration: underline dotted;
}

.chat-line__ts--seek:hover { color: var(--brand-dark); }

.recording-player { margin-bottom: 12px; }

.recording-player audio { width: 100%; }

.chat-form {
    position: sticky;
    bottom: 0;
    background: var(--sheet);
    padding: 14px 0 4px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
}

.chat-form .input { flex: 1; border-radius: 22px; padding: 10px 18px; }

/* ---------- Schedule ---------- */

.event-day { margin-bottom: 26px; }

.event-day__date {
    font-weight: 800;
    font-size: 15px;
    border-bottom: 2px solid var(--ink);
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.event-row {
    display: flex;
    gap: 12px;
    padding: 10px 2px;
    border-bottom: 1px solid var(--line);
    align-items: baseline;
}

.event-row__time {
    color: var(--muted);
    font-size: 13.5px;
    width: 130px;
    flex-shrink: 0;
}

.event-row__title { font-weight: 700; text-decoration: none; }

.event-row__title:hover { text-decoration: underline; }

/* ---------- Docs & Files ---------- */

.doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.doc-tile {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 16px;
    text-decoration: none;
    display: block;
    min-height: 150px;
    background: #fafcff;
}

.doc-tile:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }

.doc-tile__icon { font-size: 26px; }

.doc-tile__name {
    font-weight: 700;
    font-size: 15px;
    margin: 8px 0 4px;
    overflow-wrap: break-word;
}

.doc-tile__meta { color: var(--faint); font-size: 12.5px; }

.doc-tile__excerpt {
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
}

/* ---------- People ---------- */

.people-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.person-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    background: #fafcff;
}

.person-card .avatar { margin: 0 auto 10px; }

.person-card h4 { font-size: 16px; }

.person-card .role { color: var(--muted); font-size: 13.5px; }

.person-card .email { color: var(--faint); font-size: 12.5px; overflow-wrap: break-word; }

.person-card form { margin-top: 10px; }

/* ---------- Comments ---------- */

.comments { margin-top: 42px; }

.comments__rule {
    border: none;
    border-top: 1px solid var(--line);
    margin-bottom: 24px;
}

.comments h3 {
    text-align: center;
    font-size: 14px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 20px;
}

.comment {
    display: flex;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.comment__body { flex: 1; min-width: 0; }

.comment__head { font-size: 13.5px; color: var(--faint); margin-bottom: 2px; }

.comment__head strong { color: var(--ink); font-size: 15px; margin-right: 8px; }

.comment__text { font-size: 15.5px; white-space: pre-wrap; overflow-wrap: break-word; }

.comment-form { display: flex; gap: 12px; margin-top: 20px; }

.comment-form .textarea { min-height: 80px; }

.comment-form__col { flex: 1; }

/* ---------- Activity / Hey! ---------- */

.feed { list-style: none; }

.feed-day {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
    margin: 26px 0 10px;
}

.feed-item {
    display: flex;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--line);
    align-items: flex-start;
}

.feed-item--unread { background: var(--brand-soft); border-radius: 6px; padding-left: 10px; padding-right: 10px; }

.feed-item__body { flex: 1; min-width: 0; font-size: 15px; }

.feed-item__meta { color: var(--faint); font-size: 13px; }

.feed-item__desc a { font-weight: 700; text-decoration: none; }

.feed-item__desc a:hover { text-decoration: underline; }

/* ---------- Check-ins ---------- */

.question-row {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 14px;
    background: #fafcff;
}

.question-row h3 a { text-decoration: none; }

/* ---------- Boards (kanban) ---------- */

.board-columns {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    overflow-x: auto;
    padding: 4px 2px 16px;
}

.board-col {
    background: #e9f2f9;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 272px;
    flex-shrink: 0;
    padding: 10px 10px 12px;
}

.board-col--new {
    background: transparent;
    border: 2px dashed var(--line-strong);
}

.board-col__head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 4px 10px;
    cursor: grab;
}

.board-col__name {
    background: none;
    border: none;
    font-family: inherit;
    font-weight: 800;
    font-size: 14.5px;
    color: var(--ink);
    cursor: pointer;
    padding: 0;
    text-align: left;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-col__count {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.06);
    border-radius: 10px;
    padding: 0 8px;
}

.board-col__delete {
    background: none;
    border: none;
    color: var(--faint);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 0 2px;
}

.board-col__delete:hover { color: var(--red); }

.board-col__rename { flex: 1; }

.board-col__rename .input { padding: 4px 8px; font-size: 14px; }

.board-col__cards { min-height: 6px; }

.board-card {
    background: var(--sheet);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    cursor: grab;
    font-size: 14.5px;
}

.board-card:hover { border-color: var(--brand-2); }

.board-card__title { overflow-wrap: break-word; }

.board-card__meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 6px;
    color: var(--faint);
    font-size: 13px;
}

.is-ghost { opacity: 0.4; }

.is-dragging { box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18); }

.board-col .inline-add { padding: 4px; font-size: 14px; }

.board-col__add-form { margin-top: 4px; }

.board-col__add-form .input { padding: 8px 10px; font-size: 14px; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 60;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 8vh 16px 16px;
}

.modal {
    background: var(--sheet);
    border-radius: 12px;
    width: min(540px, 100%);
    padding: 26px 28px;
    box-shadow: 0 10px 40px rgba(15, 23, 42, 0.25);
    max-height: 84vh;
    overflow-y: auto;
}

/* ---------- Meetings ---------- */

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    border-radius: 12px;
    padding: 2px 11px;
    background: var(--line);
    color: var(--muted);
    vertical-align: 2px;
}

.status-chip--live { background: var(--brand-soft); color: var(--brand-dark); }

.status-chip--live::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand);
    animation: chip-pulse 1.6s ease-in-out infinite;
}

.status-chip--ended { background: var(--success-soft); color: var(--success-dark); }

.status-chip--failed { background: #fde8e4; color: var(--red); }

@keyframes chip-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.meeting-notes {
    border: 1px solid var(--line);
    border-left: 4px solid var(--brand-2);
    border-radius: 8px;
    background: #fafcff;
    padding: 20px 24px;
}

.meeting-notes h2 {
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted);
    margin: 18px 0 8px;
}

.meeting-notes h2:first-child { margin-top: 0; }

.meeting-notes ul { margin: 0 0 12px 20px; }

.meeting-notes li { margin: 4px 0; }

.transcript-box {
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafcff;
    padding: 12px 18px;
}

.question-row h3 a:hover { text-decoration: underline; }

.question-row .meta { color: var(--muted); font-size: 13.5px; margin-top: 4px; }

/* ---------- Auth ---------- */

.auth-box {
    max-width: 440px;
    margin: 48px auto;
    background: var(--sheet);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 40px 36px;
}

.auth-box h1 { text-align: center; font-size: 24px; margin-bottom: 4px; }

.auth-box .sub { text-align: center; color: var(--muted); margin-bottom: 26px; font-size: 15px; }

.auth-box .switch { text-align: center; margin-top: 18px; font-size: 14.5px; color: var(--muted); }

.auth-logo { text-align: center; margin-bottom: 14px; }

.auth-logo img { height: 72px; width: auto; border-radius: 14px; }

/* ---------- Misc ---------- */

.empty-state {
    text-align: center;
    color: var(--muted);
    padding: 48px 20px;
    font-size: 16px;
}

.empty-state .big { font-size: 40px; display: block; margin-bottom: 10px; }

.divider-label {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--faint);
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 700;
    margin: 30px 0 12px;
}

.divider-label::before, .divider-label::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--line);
}

.divider-label--toggle { cursor: pointer; user-select: none; }

.divider-label--toggle:hover { color: var(--muted); }

.divider-label__marker { transition: transform 0.15s ease; }

.divider-label__marker.is-open { transform: rotate(90deg); }

.center { text-align: center; }

.mt-2 { margin-top: 16px; }

.muted { color: var(--muted); }

/* ---------- In-person recorder ---------- */

.recorder-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafcff;
    padding: 12px 16px;
    margin-bottom: 8px;
}

.recorder-bar #live-rec-timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--red); }

/* ---------- Meeting share & send ---------- */

.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.share-link { display: flex; gap: 8px; margin-top: 12px; }

.share-link .input { flex: 1; font-size: 13.5px; }

/* ---------- Meeting agenda ---------- */

.agenda-list {
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafcff;
    padding: 10px 16px;
    margin: 0;
}

.agenda-item {
    display: flex;
    gap: 10px;
    align-items: baseline;
    padding: 6px 0;
    font-size: 15px;
}

.agenda-item__tick { color: var(--faint); flex-shrink: 0; }

.agenda-item--covered .agenda-item__tick { color: var(--success-dark); font-weight: 700; }

.agenda-item__text { flex: 1; }

.agenda-add { display: flex; gap: 10px; margin-top: 12px; }

.agenda-add .input { flex: 1; }

/* ---------- Action items → board ---------- */

.action-pick {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafcff;
    padding: 12px 14px;
}

.action-pick__row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14.5px;
    cursor: pointer;
}

.action-pick__row input { margin-top: 4px; flex-shrink: 0; }

/* ---------- Board labels & attachments ---------- */

.board-card__labels { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; }

.card-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 8px;
    padding: 1px 8px;
    line-height: 16px;
}

.label-picker { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.card-label--pick { border: none; cursor: pointer; opacity: 0.55; font-size: 12px; padding: 3px 10px; }

.card-label--pick.is-on { opacity: 1; }

.card-label__x { font-weight: 700; opacity: 0.7; }

.card-label__x:hover { opacity: 1; }

.label-new { margin-top: 10px; }

.label-swatches { display: flex; gap: 6px; margin: 10px 0; }

.label-swatch {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
}

.label-swatch.is-selected { border-color: var(--ink); }

.attachment-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

.attachment-row { display: flex; align-items: center; gap: 8px; font-size: 14px; }

.attachment-row__name { color: var(--link); font-weight: 600; overflow-wrap: anywhere; }

.attachment-row__meta { color: var(--faint); font-size: 12.5px; white-space: nowrap; }

.attachment-add { cursor: pointer; }

/* ---------- Meeting Q&A ---------- */

.qa-form { display: flex; gap: 10px; }

.qa-form .input { flex: 1; }

.qa-list { margin-top: 14px; }

.qa-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fafcff;
    margin-bottom: 10px;
}

.qa-item__q {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.qa-item__q::-webkit-details-marker { display: none; }

.qa-item__marker {
    color: var(--faint);
    transition: transform 0.15s ease;
}

.qa-item[open] .qa-item__marker { transform: rotate(90deg); }

.qa-item__text { flex: 1; }

.qa-item__meta {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    white-space: nowrap;
}

.qa-item__body {
    padding: 0 16px 12px 34px;
}

.qa-item__actions { display: flex; gap: 8px; margin-top: 8px; }

@media (max-width: 720px) {
    .sheet { padding: 24px 18px 40px; }
    .topbar { justify-content: center; }
    .topbar__nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
}
