/* ============================================================================
   MonitorDesk — themed to the Customer Data Manager / Monitor CRMS design system
   (Poppins + Tabler icons, dark-blue #262262 / bright-blue #12c3f4, pill controls)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
    --bright-blue: #12c3f4;
    --dark-blue: #262262;
    --bright-blue-600: #0fa9d6;
    --bright-blue-100: #d6f4fd;
    --bright-blue-050: #ecfaff;
    --dark-blue-400: #4b4789;
    --blood-orange: #f05125;
    --orange: #f79024;
    --purple: #63288a;
    --pink: #ee759b;
    --grey: #f3f3f3;
    --white: #ffffff;
    --ink: #262262;
    --ink-700: #3c3a6b;
    --ink-500: #6f6d92;
    --ink-300: #a6a4c0;
    --line: #e4e4ee;
    --line-200: #eeeef4;

    --accent: var(--bright-blue);
    --accent-ink: var(--bright-blue-600);
    --success: #1fa971;
    --success-bg: #e4f7ef;
    --warning: var(--orange);
    --warning-bg: #fdeedd;
    --danger: var(--blood-orange);
    --danger-bg: #fde6df;
    --info-bg: var(--bright-blue-100);

    --font-sans: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --r-sm: 10px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(38,34,98,.06), 0 1px 3px rgba(38,34,98,.08);
    --shadow-md: 0 4px 12px rgba(38,34,98,.08), 0 2px 4px rgba(38,34,98,.06);
    --shadow-lg: 0 12px 32px rgba(38,34,98,.12), 0 4px 8px rgba(38,34,98,.06);
    --shadow-blue: 0 8px 24px rgba(18,195,244,.28);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    background: var(--grey);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 14.5px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--bright-blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
code { background: var(--grey); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; font-family: var(--font-mono); font-size: .85em; }
h1, h2, h3 { color: var(--dark-blue); }
h1:focus, h1:focus-visible, .page-title:focus, .page-title:focus-visible { outline: none; }

/* ---- Shell ---------------------------------------------------------------- */
.app-shell { --nav-w: 246px; display: grid; grid-template-columns: var(--nav-w) 1fr; min-height: 100vh; }
.app-shell.nav-collapsed { --nav-w: 68px; }

.sidebar {
    background: var(--white);
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 18px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.main { min-width: 0; display: flex; flex-direction: column; }
.content { padding: 26px 30px 60px; max-width: 1320px; width: 100%; }

/* ---- Brand + nav ---------------------------------------------------------- */
.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; padding: 4px 6px 20px; }
.brand-mono { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--dark-blue); color: #fff;
    font-weight: 800; font-size: 13.5px; letter-spacing: .5px; display: grid; place-items: center; }
.brand-text2 { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-word { font-size: 15px; font-weight: 700; color: var(--dark-blue); letter-spacing: -.2px; }
.brand-sub { font-size: 9.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-300); margin-top: 1px; }

.nav-links { display: flex; flex-direction: column; gap: 3px; }
.nav-item {
    display: flex; align-items: center; gap: 13px;
    padding: 11px 13px; border-radius: var(--r-sm);
    color: var(--ink-500); font-weight: 500; font-size: 14px;
    transition: all .14s;
}
.nav-item:hover { background: var(--grey); color: var(--dark-blue); text-decoration: none; }
.nav-item:hover .nav-ico { color: var(--dark-blue); }
.nav-item.active { background: var(--bright-blue-050); color: var(--dark-blue); font-weight: 600; }
.nav-item.active .nav-ico { color: var(--bright-blue-600); }
.nav-ico { color: var(--ink-300); font-size: 18px; flex: none; display: inline-flex; }

.nav-footer { margin-top: auto; padding: 12px 12px 2px; font-size: 12px; color: var(--ink-300); display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line-200); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 2px var(--success-bg); }

/* ---- Config banner -------------------------------------------------------- */
.config-banner {
    display: flex; align-items: center; gap: 12px;
    background: var(--warning-bg); border-bottom: 1px solid #f2dca0;
    color: #8a5a12; padding: 11px 30px; font-size: 13.5px;
}
.config-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex: none; }

/* ---- Page header ---------------------------------------------------------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-title { font-size: 22px; font-weight: 700; margin: 0; color: var(--dark-blue); letter-spacing: -.2px; }
.page-sub { color: var(--ink-500); font-size: 13px; font-weight: 300; margin: 3px 0 0; }

/* ---- Buttons (pill) ------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1.5px solid var(--line); background: var(--white); color: var(--dark-blue);
    border-radius: var(--r-pill); padding: 9px 18px; font-size: 13px; font-weight: 600;
    cursor: pointer; transition: all .15s; font-family: var(--font-sans); text-decoration: none;
}
.btn:hover { border-color: var(--bright-blue); color: var(--bright-blue-600); text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--bright-blue); border-color: var(--bright-blue); color: #fff; box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--bright-blue-600); border-color: var(--bright-blue-600); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: var(--grey); border-color: transparent; color: var(--dark-blue); }
.btn-sm { padding: 6px 13px; font-size: 12.5px; }

/* ---- Cards / tiles -------------------------------------------------------- */
.card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line-200); }
.card-pad { padding: 20px 22px; }
.card-title { font-size: 11px; font-weight: 700; color: var(--ink-300); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: var(--white); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--shadow-sm); border: 1px solid var(--line-200); }
.stat-label { font-size: 12.5px; color: var(--ink-500); font-weight: 500; display: flex; align-items: center; gap: 7px; }
.stat-value { font-size: 32px; font-weight: 700; margin-top: 6px; color: var(--dark-blue); letter-spacing: -.5px; }
.stat-foot { font-size: 12px; color: var(--ink-300); font-weight: 300; margin-top: 2px; }
.stat-accent { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ---- Bars ----------------------------------------------------------------- */
.bar-row { display: grid; grid-template-columns: 130px 1fr 40px; align-items: center; gap: 12px; margin-bottom: 11px; }
.bar-label { font-size: 13px; color: var(--ink-500); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { display: block; background: var(--grey); border-radius: var(--r-pill); height: 10px; overflow: hidden; }
.bar-fill { display: block; height: 100%; min-width: 6px; border-radius: var(--r-pill); background: var(--bright-blue); }
.bar-val { font-size: 12.5px; color: var(--ink-500); text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }

/* ---- Badges (pill) -------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; }
.st-todo { background: var(--grey); color: var(--ink-500); }
.st-todo .badge-dot { background: var(--dark-blue-400); }
.st-progress { background: var(--info-bg); color: var(--dark-blue); }
.st-progress .badge-dot { background: var(--bright-blue-600); }
.st-done { background: var(--success-bg); color: var(--success); }
.st-done .badge-dot { background: var(--success); }
.st-unknown { background: var(--grey); color: var(--ink-500); }
.st-unknown .badge-dot { background: var(--ink-300); }

.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 2px 9px; border-radius: var(--r-pill); background: var(--grey); color: var(--ink-500); }

/* ---- Priority + type pips -------------------------------------------------- */
.prio { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--ink-500); }
.prio img { width: 15px; height: 15px; display: block; }

/* ---- Avatars -------------------------------------------------------------- */
.avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: var(--dark-blue-400); object-fit: cover; overflow: hidden; }
.avatar-lg { width: 34px; height: 34px; font-size: 13px; }
.avatar-unassigned { background: transparent; color: var(--ink-300); border: 1.5px dashed var(--line); }
.user-cell { display: flex; align-items: center; gap: 8px; }
.user-name { font-size: 13px; color: var(--ink-700); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- Table ---------------------------------------------------------------- */
.tickets { width: 100%; border-collapse: collapse; }
.tickets thead th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-300); font-weight: 700; padding: 6px 14px 12px; }
.tickets tbody td { padding: 13px 14px; border-top: 1px solid var(--line-200); font-size: 14px; color: var(--ink-700); vertical-align: middle; }
.tickets tbody tr { cursor: pointer; transition: background .12s; }
.tickets tbody tr:hover { background: var(--bright-blue-050); }
.tickets tbody tr:hover td { border-top-color: transparent; }
.t-key { font-family: var(--font-mono); font-size: 12.5px; color: var(--bright-blue-600); font-weight: 600; white-space: nowrap; }
.t-summary { font-weight: 500; color: var(--dark-blue); max-width: 460px; }
.t-summary .t-comp { color: var(--ink-300); font-size: 12px; font-weight: 300; }

/* ---- Filters -------------------------------------------------------------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; color: var(--ink-500); font-weight: 500; }
.input, .select, textarea.input {
    border: 1.5px solid var(--line); border-radius: var(--r-sm);
    padding: 9px 13px; font-size: 14px; font-weight: 300; background: var(--white); color: var(--dark-blue);
    font-family: var(--font-sans); min-width: 0; outline: none; transition: all .15s;
}
.input:focus, .select:focus, textarea.input:focus { border-color: var(--bright-blue); box-shadow: 0 0 0 3px var(--bright-blue-100); }
.select { appearance: none; cursor: pointer; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a6a4c0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.search { flex: 1 1 240px; display: flex; align-items: center; gap: 10px; background: var(--grey); border: 1px solid transparent; border-radius: var(--r-pill); padding: 3px 8px 3px 16px; transition: all .15s; }
.search:focus-within { background: var(--white); border-color: var(--bright-blue); box-shadow: 0 0 0 3px var(--bright-blue-100); }
.search::before { content: "\ea9b"; font-family: "tabler-icons"; color: var(--ink-300); font-size: 17px; }
.search .input { flex: 1; border: none; background: none; box-shadow: none; padding: 8px 4px; }
.search .input:focus { box-shadow: none; }

/* ---- Board ---------------------------------------------------------------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.board-col { background: var(--grey); border-radius: var(--r-lg); padding: 12px; min-height: 120px; }
.board-col-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 2px 4px; }
.board-col-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-500); display: flex; align-items: center; gap: 8px; }
.board-count { background: var(--white); border-radius: var(--r-pill); font-size: 11px; padding: 1px 9px; color: var(--ink-500); font-weight: 600; }
.board-card { background: var(--white); border-radius: var(--r-md); border: 1.5px solid var(--line); padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-sm); cursor: pointer; transition: border-color .14s, box-shadow .14s; }
.board-card:hover { border-color: var(--bright-blue); box-shadow: var(--shadow-md); }
.board-card .bc-key { font-family: var(--font-mono); font-size: 11.5px; color: var(--bright-blue-600); font-weight: 600; }
.board-card .bc-summary { font-size: 13.5px; margin: 6px 0 10px; color: var(--dark-blue); font-weight: 500; }
.board-card .bc-foot { display: flex; align-items: center; justify-content: space-between; }

/* ---- Ticket detail -------------------------------------------------------- */
.detail-grid { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-desc { color: var(--ink-700); font-size: 14px; }
.detail-desc img { max-width: 100%; height: auto; border-radius: 8px; }
.detail-desc p:first-child { margin-top: 0; }

.side-panel { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); border: 1px solid var(--line-200); overflow: hidden; }
.side-row { padding: 14px 16px; border-bottom: 1px solid var(--line-200); }
.side-row:last-child { border-bottom: none; }
.side-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-300); font-weight: 700; margin-bottom: 8px; }

.comment { display: flex; gap: 12px; padding: 15px 0; border-top: 1px solid var(--line-200); }
.comment:first-of-type { border-top: none; }
.comment-body { flex: 1; min-width: 0; }
.comment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; flex-wrap: wrap; }
.comment-author { font-weight: 600; font-size: 13.5px; color: var(--dark-blue); }
.comment-time { font-size: 12px; color: var(--ink-300); font-weight: 300; }
.comment-text { font-size: 13.5px; color: var(--ink-700); }
.comment-text p:first-child { margin-top: 0; }
.comment-text img { max-width: 100%; height: auto; border-radius: 8px; }
.internal-tag { background: var(--warning-bg); color: var(--orange); border-radius: var(--r-pill); font-size: 10px; font-weight: 700; padding: 2px 8px; text-transform: uppercase; letter-spacing: .05em; }
.internal .comment-text { background: var(--warning-bg); border: 1px solid #f2dca0; border-radius: var(--r-md); padding: 10px 12px; }

.reply-tabs { display: flex; gap: 4px; margin-bottom: 10px; }
.reply-tab { font-size: 12.5px; padding: 7px 13px; border-radius: var(--r-pill); cursor: pointer; border: 1.5px solid transparent; color: var(--ink-500); font-weight: 600; }
.reply-tab.active-public { background: var(--info-bg); color: var(--dark-blue); border-color: transparent; }
.reply-tab.active-internal { background: var(--warning-bg); color: var(--orange); border-color: transparent; }

/* ---- Misc ----------------------------------------------------------------- */
.section-title { font-size: 15px; font-weight: 700; color: var(--dark-blue); margin: 26px 0 12px; }
.muted { color: var(--ink-300); }
.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 56px 24px; color: var(--ink-300); font-size: 13px; }
.empty-mark { font-size: 34px; opacity: .5; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--line); border-top-color: var(--bright-blue); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-row { display: flex; align-items: center; gap: 10px; color: var(--ink-300); padding: 40px; justify-content: center; }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--dark-blue); color: #fff; padding: 12px 18px; border-radius: var(--r-md); box-shadow: var(--shadow-lg); font-size: 13.5px; z-index: 50; display: flex; align-items: center; gap: 10px; }
.toast.err { background: var(--danger); }
.alert-err { display: flex; align-items: flex-start; gap: 8px; background: var(--danger-bg); border: 1px solid rgba(240,81,37,.2); color: var(--danger); padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 14px; }
.crumbs { font-size: 12.5px; color: var(--ink-300); margin-bottom: 6px; }
.crumbs a { color: var(--ink-300); }
.pager { display: flex; justify-content: center; margin-top: 18px; }

#blazor-error-ui { background: var(--warning-bg); bottom: 0; box-shadow: 0 -2px 8px rgba(38,34,98,.1); display: none; left: 0; padding: 12px 18px; position: fixed; width: 100%; z-index: 1000; color: var(--ink-700); font-size: 13px; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 14px; top: 10px; font-weight: bold; }

/* ============================================================================
   THE PLANE — whiteboard of sticky-note requests, presence rail, request drawer
   ========================================================================== */
.attn-legend { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.attn-pill { font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); letter-spacing: .02em; }
.attn-pill.a-escalated, .attn-escalated .attn-pill { background: var(--danger-bg); color: var(--danger); }
.attn-pill.a-needs     { background: var(--warning-bg); color: #b9770e; }
.attn-pill.a-active    { background: var(--info-bg); color: var(--dark-blue); }
.attn-pill.a-await     { background: var(--grey); color: var(--ink-500); }
.attn-pill.a-resolved  { background: var(--success-bg); color: var(--success); }

.plane-wrap { display: grid; grid-template-columns: 1fr 252px; gap: 18px; align-items: start; }
@media (max-width: 1050px) { .plane-wrap { grid-template-columns: 1fr; } }

.whiteboard {
    position: relative;
    background-color: #fbfbfe;
    background-image: radial-gradient(circle, #e2e2ee 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    min-height: 720px;
    overflow: auto;
    touch-action: none;
}

/* ── Post-its (absolutely placed on the canvas, draggable) ── */
.postit {
    position: absolute;
    width: 212px; min-height: 152px; text-align: left;
    border: none; font-family: var(--font-sans);
    border-radius: 3px 3px 8px 3px;
    padding: 13px 14px 12px;
    display: flex; flex-direction: column; gap: 7px;
    box-shadow: 0 6px 14px rgba(38,34,98,.14), 0 1px 2px rgba(38,34,98,.10);
    color: var(--dark-blue);
    transform: rotate(var(--rot, 0deg));
    cursor: grab;
    user-select: none; -webkit-user-select: none;
    touch-action: none;
    transition: box-shadow .13s ease, transform .1s ease, left .34s cubic-bezier(.22,.61,.36,1), top .34s cubic-bezier(.22,.61,.36,1);
}
.postit:hover { transform: rotate(var(--rot, 0deg)) translateY(-4px); box-shadow: 0 14px 30px rgba(38,34,98,.20); z-index: 2; }
.postit.is-open { outline: 2.5px solid var(--bright-blue); outline-offset: 2px; z-index: 3; }
.postit.dragging { transform: rotate(0deg) scale(1.03); box-shadow: 0 20px 44px rgba(38,34,98,.26); z-index: 20; cursor: grabbing; transition: none; }
/* Member of the open bucket: pinned square to the grid, sits above the ring frame. */
.postit.fenced { z-index: 4; }
.postit.fenced:hover { transform: rotate(0deg) translateY(-4px); }

.tint-y { background: #fff4c2; }
.tint-b { background: #d6f0fb; }
.tint-g { background: #e0f5ec; }
.tint-p { background: #fce0ec; }
.tint-o { background: #ffe6d1; }

.postit-flag { position: absolute; top: 9px; right: 10px; color: var(--danger); font-size: 17px; line-height: 1; }
.postit-flag.needs { width: 9px; height: 9px; border-radius: 50%; background: var(--warning); box-shadow: 0 0 0 3px rgba(250,178,25,.28); animation: pulse 1.8s infinite; }
.postit.attn-escalated .postit-flag { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.postit-id { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: rgba(38,34,98,.55); letter-spacing: .02em; }
.postit-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.postit-last { font-size: 11.5px; color: rgba(38,34,98,.72); display: flex; flex-direction: column; gap: 3px; margin-top: 1px; }
.postit-last .ml-body { color: rgba(38,34,98,.62); }
.postit-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 6px; }
.postit-avatars { display: flex; }
.postit-avatars .pavatar { margin-right: -6px; box-shadow: 0 0 0 2px rgba(255,255,255,.85); }

.ai-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); background: linear-gradient(120deg, var(--bright-blue), var(--purple)); color: #fff; white-space: nowrap; }
.ai-chip i { font-size: 11px; }

/* ── Move tags (shared post-it + drawer) ── */
.ml-tag { display: inline-flex; align-items: center; font-size: 9px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: var(--r-pill); white-space: nowrap; }
.mk-customermessage { background: rgba(38,34,98,.10); color: var(--dark-blue); }
.mk-staffreply { background: var(--info-bg); color: var(--dark-blue); }
.mk-internalnote { background: var(--warning-bg); color: #b9770e; }
.mk-aianswer { background: linear-gradient(120deg, var(--bright-blue), var(--purple)); color: #fff; }
.mk-helparticle { background: #ede7fb; color: var(--purple); }
.mk-escalation { background: var(--danger-bg); color: var(--danger); }
.mk-resolution { background: var(--success-bg); color: var(--success); }
.mk-system { background: var(--grey); color: var(--ink-500); }

/* ── Participant avatars + presence ── */
.pavatar { position: relative; width: 26px; height: 26px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 10px; font-weight: 700; color: #fff; }
.pavatar.sm { width: 24px; height: 24px; font-size: 9.5px; }
.pavatar i { font-size: 12px; }
.pavatar.kind-customer { background: var(--purple); }
.pavatar.kind-staff { background: var(--bright-blue-600); }
.pavatar.kind-ai { background: linear-gradient(135deg, var(--bright-blue), var(--purple)); }
.pavatar.kind-developer { background: var(--dark-blue-400); }
.pavatar.kind-system { background: var(--ink-300); }
.pavatar.more { background: rgba(38,34,98,.14); color: var(--dark-blue); font-size: 10px; }
.pdot { position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
.pdot.on { background: var(--success); }
.pdot.away { background: var(--orange); }
.pdot.off { background: var(--ink-300); }

/* ── Presence rail ── */
.rail { background: var(--white); border: 1px solid var(--line-200); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); padding: 16px 14px; position: sticky; top: 18px; }
.rail-title { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-300); margin-bottom: 12px; }
.rail-group { margin-bottom: 14px; }
.rail-head { font-size: 11px; font-weight: 700; color: var(--ink-500); display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; }
.rail-count { font-size: 10px; font-weight: 500; color: var(--ink-300); }
.prow { display: flex; align-items: center; gap: 9px; padding: 5px 4px; border-radius: 8px; }
.prow.is-off { opacity: .5; }
.prow-info { min-width: 0; }
.prow-name { font-size: 12.5px; font-weight: 600; color: var(--dark-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow-detail { font-size: 10.5px; color: var(--ink-300); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── Request drawer ── */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 468px; max-width: 94vw; background: var(--white); box-shadow: var(--shadow-lg); z-index: 60; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--line-200); display: flex; justify-content: space-between; gap: 12px; }
.drawer-title { font-size: 16px; font-weight: 700; color: var(--dark-blue); margin: 6px 0 10px; line-height: 1.3; }
.drawer-parts { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; }
.drawer-parts .pavatar { margin-right: -4px; box-shadow: 0 0 0 2px #fff; }
.drawer-cust { font-size: 11.5px; color: var(--ink-500); margin-left: 10px; }
.btn-close { border: none; background: var(--grey); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; color: var(--ink-500); font-size: 16px; display: grid; place-items: center; flex: none; }
.btn-close:hover { background: var(--danger-bg); color: var(--danger); }

.drawer-moves { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; }
.move { display: flex; gap: 10px; }
.move-body { flex: 1; min-width: 0; }
.move-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; flex-wrap: wrap; }
.move-author { font-size: 12.5px; font-weight: 700; color: var(--dark-blue); }
.move-time { font-size: 10.5px; color: var(--ink-300); }
.move-x { margin-left: auto; border: none; background: transparent; cursor: pointer; color: var(--ink-300); font-size: 13px; display: grid; place-items: center; padding: 2px 4px; border-radius: var(--r-sm); opacity: 0; transition: opacity .12s, color .12s, background .12s; }
.move:hover .move-x { opacity: 1; }
.move-x:hover { color: var(--danger); background: var(--grey); }
.cust-tag { font-size: 9.5px; font-weight: 600; color: var(--bright-blue-600); background: var(--bright-blue-050); border-radius: var(--r-pill); padding: 1px 7px; }
.move-text { font-size: 13px; color: var(--ink-700); line-height: 1.5; }
.move.is-ai .move-text { background: linear-gradient(180deg, #f4f9ff, #faf7ff); border: 1px solid #e2e0f5; border-radius: 10px; padding: 9px 11px; }
.move.mk-internalnote .move-text { background: #fffaef; border: 1px solid #f3e6c4; border-radius: 10px; padding: 9px 11px; }
.move.mk-escalation .move-text { background: var(--danger-bg); border: 1px solid rgba(240,81,37,.25); border-radius: 10px; padding: 9px 11px; color: #a2331b; }
.kb-card { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 9px 11px; border: 1px solid #e2e0f5; background: #f7f5ff; border-radius: 10px; font-size: 12.5px; color: var(--purple); font-weight: 600; text-decoration: none; }
.kb-card:hover { background: #efeaff; text-decoration: none; }
.kb-card span { flex: 1; }

.composer { border-top: 1px solid var(--line-200); padding: 14px 20px 16px; }
.seg { display: flex; gap: 4px; margin-bottom: 10px; background: var(--grey); padding: 3px; border-radius: var(--r-pill); }
.seg-tab { flex: 1; border: none; background: none; font-family: var(--font-sans); font-size: 11.5px; font-weight: 600; color: var(--ink-500); padding: 7px 8px; border-radius: var(--r-pill); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; }
.seg-tab i { font-size: 13px; }
.seg-tab.on { background: var(--white); color: var(--dark-blue); box-shadow: var(--shadow-sm); }
.composer textarea.input { width: 100%; min-height: 62px; resize: none; }
.composer textarea.input.is-internal { background: #fffaef; border-color: #f3e6c4; }
.int-toggle { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: var(--ink-500); cursor: pointer; margin: 9px 0 3px; user-select: none; }
.int-toggle i { font-size: 14px; color: var(--ink-300); }
.int-toggle input { width: 15px; height: 15px; cursor: pointer; accent-color: var(--orange); }
.int-toggle.on, .int-toggle.on i { color: var(--orange); }
.composer-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.ai-actions { display: flex; gap: 6px; }
.send-actions { display: flex; gap: 6px; }
.ai-btn { border-color: #d9d2f5; color: var(--purple); }
.ai-btn:hover { border-color: var(--purple); color: var(--purple); background: #f7f5ff; }

/* ============================================================================
   Calmer detail drawer — mute the colour on the request panel (cards stay bright)
   Scoped to .drawer so post-it colour on the board is untouched.
   ========================================================================== */
/* Pills: one neutral, readable chip for every type — legibility over colour */
.drawer .ml-tag,
.drawer .ml-tag.mk-customermessage,
.drawer .ml-tag.mk-staffreply,
.drawer .ml-tag.mk-internalnote,
.drawer .ml-tag.mk-aianswer,
.drawer .ml-tag.mk-helparticle,
.drawer .ml-tag.mk-escalation,
.drawer .ml-tag.mk-resolution {
    background: var(--grey);
    color: var(--ink-700);
    font-weight: 700;
    letter-spacing: .03em;
}
.drawer .cust-tag { background: var(--grey); color: var(--ink-500); font-weight: 600; }
.drawer .attn-pill { background: var(--grey); color: var(--ink-700); }

/* The move row itself must stay transparent — the type class (mk-*) otherwise
   leaks a tag background onto the whole header band and avatar column. */
.drawer .move { background: transparent; }
.drawer .move-head { background: transparent; }

/* Bubbles: plain white boxes with a single thin border — no fills, no side bars */
.drawer .move .move-text,
.drawer .move.is-ai .move-text,
.drawer .move.mk-customermessage .move-text,
.drawer .move.mk-staffreply .move-text,
.drawer .move.mk-escalation .move-text,
.drawer .move.mk-helparticle .move-text {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 9px 11px;
    color: var(--ink-700);
}
/* Internal note keeps a faint tint so "not customer-visible" still reads — same simple border */
.drawer .move.mk-internalnote .move-text {
    background: #fffdf7;
    border: 1px solid #ece0c4;
    border-radius: 10px;
    padding: 9px 11px;
    color: var(--ink-700);
}

/* Supporting bits neutral */
.drawer .kb-card { background: var(--white); border-color: var(--line); color: var(--ink-700); }
.drawer .kb-card:hover { background: var(--grey); }
.drawer .kb-card i { color: var(--ink-500); }
.composer .ai-btn { border-color: var(--line); color: var(--ink-500); }
.composer .ai-btn:hover { border-color: var(--bright-blue); color: var(--bright-blue-600); background: var(--white); }

/* ============================================================================
   Auth: login, sidebar user chip + super-user switch, customer request list
   ========================================================================== */
.login-wrap { min-height: 100vh; display: grid; place-items: center; background: var(--grey); padding: 24px; }
.login-card { background: var(--white); border: 1px solid var(--line-200); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); padding: 34px 32px; width: 384px; max-width: 100%; text-align: center; }
.login-logo { height: 32px; }
.login-sub { font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-300); margin-top: 8px; }
.login-title { font-size: 22px; font-weight: 700; margin: 18px 0 4px; }
.login-lead { color: var(--ink-500); font-size: 13px; margin: 0 0 20px; }
.login-form { text-align: left; }
.login-form .field { margin-bottom: 14px; }
.login-form .input { width: 100%; }
.login-btn { width: 100%; justify-content: center; margin-top: 6px; }
.login-demo { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-200); font-size: 11.5px; color: var(--ink-500); line-height: 1.8; }
.login-demo strong { color: var(--dark-blue); }

.switcher { margin-top: 16px; padding: 12px; background: var(--grey); border-radius: var(--r-md); }
.switch-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-300); margin-bottom: 7px; }
.switch-select { width: 100%; }
.switch-note { font-size: 12.5px; color: var(--dark-blue); display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.switch-note i { color: var(--bright-blue-600); }
.switch-back { width: 100%; justify-content: center; }

.nav-footer-user { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-200); }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 6px 4px 10px; }
.user-chip .avatar { width: 34px; height: 34px; font-size: 12px; }
.user-chip-info { min-width: 0; }
.user-chip-name { font-size: 13px; font-weight: 600; color: var(--dark-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-chip-role { font-size: 11px; color: var(--ink-300); }
.signout { display: flex; align-items: center; gap: 8px; width: 100%; border: none; background: none; padding: 8px 6px; border-radius: var(--r-sm); font-family: var(--font-sans); font-size: 12.5px; font-weight: 500; color: var(--ink-500); cursor: pointer; }
.signout:hover { background: var(--danger-bg); color: var(--danger); }

.new-req { max-width: 640px; margin-bottom: 18px; }
.req-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.req-card { text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); padding: 16px; cursor: pointer; transition: border-color .12s, box-shadow .12s; font-family: var(--font-sans); }
.req-card:hover { border-color: var(--bright-blue); box-shadow: var(--shadow-md); }
.req-card.is-open { border-color: var(--bright-blue); box-shadow: 0 0 0 3px var(--bright-blue-100); }
.req-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.req-key { font-family: var(--font-mono); font-size: 11.5px; color: var(--bright-blue-600); font-weight: 600; }
.req-card-title { font-size: 14px; font-weight: 600; color: var(--dark-blue); margin-bottom: 10px; line-height: 1.35; }
.req-card-foot { font-size: 11.5px; color: var(--ink-300); }

/* ---- Settings page ---- */
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line-200); }
.set-row:first-of-type { border-top: none; }
.set-label { display: block; font-size: 14px; font-weight: 600; color: var(--dark-blue); }
.set-hint { display: block; font-size: 12px; color: var(--ink-500); font-weight: 300; margin-top: 2px; max-width: 400px; }
.set-switch { width: 18px; height: 18px; cursor: pointer; accent-color: var(--bright-blue); flex: none; }
.set-field { margin: 14px 0; }
.set-field label { display: block; font-size: 12px; font-weight: 500; color: var(--ink-500); margin-bottom: 6px; }
.set-field .input { width: 100%; }
.set-field .set-hint { margin-top: 6px; }
.set-saved { font-size: 13px; font-weight: 600; color: var(--success); display: inline-flex; align-items: center; gap: 5px; }

/* ---- View toggle (board / list) — tickets + tasks ---- */
.view-toggle { display: inline-flex; background: var(--grey); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.view-toggle .vt { display: inline-flex; align-items: center; gap: 6px; border: none; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; color: var(--ink-500); padding: 6px 14px; border-radius: var(--r-pill); transition: background .12s, color .12s; }
.view-toggle .vt i { font-size: 15px; }
.view-toggle .vt:hover { color: var(--dark-blue); }
.view-toggle .vt.on { background: var(--white); color: var(--dark-blue); box-shadow: var(--shadow-sm); }

/* List rendered inside the plane wrap (keeps the presence rail beside it) */
.list-in-plane { flex: 1; min-width: 0; align-self: flex-start; padding: 0; overflow: hidden; }
.list-in-plane .tickets { margin: 0; }
.list-in-plane .tickets tbody tr { cursor: pointer; }

/* ---- Link chip (task ↔ ticket) ---- */
.link-chip { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--bright-blue-600); background: var(--bright-blue-050); border: 1px solid var(--bright-blue-100); border-radius: var(--r-pill); padding: 2px 9px; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-chip:hover { background: var(--bright-blue-100); text-decoration: none; }
.link-chip i { font-size: 13px; }

/* Linked-tasks list on the ticket drawer */
.linked-tasks { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.linked-tasks .side-label { width: 100%; margin-bottom: 4px; }

/* ---- Task drawer controls ---- */
.drawer-title-input { width: 100%; font-size: 18px; font-weight: 600; color: var(--dark-blue); border: 1px solid transparent; background: transparent; border-radius: var(--r-sm); padding: 4px 8px; margin: 2px -8px 0; font-family: var(--font-sans); }
.drawer-title-input:hover { border-color: var(--line); }
.drawer-title-input:focus { border-color: var(--bright-blue); background: var(--white); box-shadow: 0 0 0 3px var(--bright-blue-100); outline: none; }

.include-select { border: 1px dashed var(--line); background: transparent; color: var(--ink-500); font-size: 12px; padding: 3px 8px; border-radius: var(--r-pill); height: auto; width: auto; cursor: pointer; }

.drawer-scroll { flex: 1; overflow-y: auto; padding: 4px 2px; }

.task-controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; padding-bottom: 4px; }
.task-status-set { display: inline-flex; gap: 6px; }
.status-btn { border: 1px solid var(--line); background: var(--white); color: var(--ink-500); font-family: var(--font-sans); font-size: 12.5px; font-weight: 600; padding: 6px 14px; border-radius: var(--r-pill); cursor: pointer; transition: border-color .12s, color .12s; }
.status-btn:hover { border-color: var(--bright-blue); color: var(--dark-blue); }
.status-btn.on { color: var(--dark-blue); }
.status-btn.on.st-todo { background: var(--grey); border-color: var(--dark-blue-400); }
.status-btn.on.st-progress { background: var(--info-bg); border-color: var(--bright-blue-600); }
.status-btn.on.st-done { background: var(--success-bg); border-color: var(--success); color: var(--success); }

.task-link { min-width: 200px; }
.task-link .select { margin-top: 2px; }
.linked-row { display: flex; align-items: center; gap: 8px; margin-top: 2px; }

/* ---- Buckets: nestable, droppable grouping shared by every plane ---- */
.bucket-bar { margin-bottom: 16px; }
.bucket-crumbs { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.bucket-crumbs .crumb { display: inline-flex; align-items: center; gap: 5px; border: none; background: transparent; cursor: pointer; font-family: var(--font-sans); font-size: 13px; font-weight: 600; color: var(--ink-500); padding: 4px 9px; border-radius: var(--r-pill); }
.bucket-crumbs .crumb:hover { background: var(--grey); color: var(--dark-blue); }
.bucket-crumbs .crumb.on { color: var(--dark-blue); background: var(--bright-blue-050); }
.bucket-crumbs .crumb i { font-size: 15px; }
.crumb-sep { color: var(--ink-300); font-size: 14px; }
.crumb-tools { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding-left: 10px; border-left: 1px solid var(--line); }
.crumb-rename { height: 30px; padding: 4px 10px; font-size: 12.5px; width: 180px; }

.bucket-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.bucket { display: flex; align-items: center; gap: 10px; min-width: 168px; max-width: 240px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .12s, box-shadow .12s, transform .08s; font-family: var(--font-sans); text-align: left; }
.bucket:hover { border-color: var(--bright-blue); box-shadow: var(--shadow-md); }
.bucket.drop-hot { border-color: var(--bright-blue); box-shadow: 0 0 0 3px var(--bright-blue-100); transform: translateY(-2px); }
.bucket-ico { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; font-size: 18px; color: var(--dark-blue); background: rgba(255,255,255,.6); }
.bucket.tint-y .bucket-ico { background: #fff4c2; } .bucket.tint-b .bucket-ico { background: #d6f0fb; }
.bucket.tint-g .bucket-ico { background: #e0f5ec; } .bucket.tint-p .bucket-ico { background: #fce0ec; }
.bucket.tint-o .bucket-ico { background: #ffe6d1; }
.bucket-main { min-width: 0; }
.bucket-name { font-size: 13.5px; font-weight: 600; color: var(--dark-blue); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bucket-meta { font-size: 11.5px; color: var(--ink-500); margin-top: 1px; }
.bucket.new-bucket { cursor: default; border-style: dashed; background: transparent; box-shadow: none; color: var(--ink-500); gap: 6px; padding: 8px 10px; }
.bucket.new-bucket:hover { border-color: var(--ink-300); box-shadow: none; }
.bucket.new-bucket .input { height: 30px; padding: 4px 10px; font-size: 12.5px; width: 140px; }
.bucket.new-bucket > i { color: var(--ink-300); }

/* Bucket tags on cards and in drawers */
.bkt-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--dark-blue); background: var(--grey); border-radius: var(--r-pill); padding: 2px 8px; line-height: 1.5; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bkt-chip i { font-size: 11px; opacity: .7; }
.bkt-chip.sm { font-size: 10px; padding: 1px 7px; }
.bkt-chip.more { background: transparent; color: var(--ink-500); }
.postit-buckets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 1px; }
.postit-buckets .bkt-chip { background: rgba(255,255,255,.65); }
.row-buckets { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 8px; vertical-align: middle; }
.drawer-buckets { margin-top: 12px; }
.bkt-chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.bkt-chip .bkt-x { border: none; background: transparent; cursor: pointer; padding: 0 0 0 2px; color: inherit; opacity: .55; display: inline-flex; }
.bkt-chip .bkt-x:hover { opacity: 1; color: var(--danger); }
.bkt-chip .bkt-x i { font-size: 11px; }

/* ---- Settings: database card ---- */
.alert-ok { display: flex; align-items: flex-start; gap: 8px; background: var(--success-bg); border: 1px solid rgba(31,169,113,.25); color: var(--success); padding: 11px 14px; border-radius: var(--r-sm); font-size: 13px; }
.conn-view { font-family: var(--font-mono); font-size: 12px; color: var(--ink-700); background: var(--grey); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; word-break: break-all; }
.conn-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 12px; color: var(--ink-700); }
.conn-facts strong { color: var(--dark-blue); font-weight: 600; }

/* ---- Connections panel (structured DB / Jira fields) ---- */
.panel-title { font-size: 16px; font-weight: 700; color: var(--dark-blue); margin: 0; }
.conn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .conn-grid { grid-template-columns: 1fr; } }
.conn-cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.conn-cell .input { width: 100%; }
.conn-lbl { font-size: 11px; font-weight: 600; color: var(--ink-500); }
.conn-check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--dark-blue); cursor: pointer; }
.conn-check .set-switch { flex: none; margin: 0; }

/* ==== Plane revamp: full-bleed canvas + right tool rail + popups ==== */
/* The dot-grid lives on the stage (the fixed viewport) and scrolls with the pan via
   background-position, so it tiles endlessly in every direction — no edges. */
.plane-stage { position: fixed; top: 0; left: var(--nav-w, 246px); right: 0; bottom: 0; z-index: 5;
    background-color: #fbfbfe;
    background-image: radial-gradient(circle, #e2e2ee 1.2px, transparent 1.2px);
    background-size: 22px 22px;
    overflow: hidden; transition: left .16s ease; cursor: grab; }
.plane-stage.panning { cursor: grabbing; }
@media (max-width: 700px) { .plane-stage { left: 0; } }

/* Endless canvas: an unbounded surface panned with a transform; the stage clips it.
   No box, no background of its own — items may sit at any coordinate, including negative. */
.plane-stage .whiteboard { position: absolute; top: 0; left: 0; width: 100%; height: 100%; min-height: 0;
    border: none; border-radius: 0; background: none; overflow: visible; will-change: transform; touch-action: none; cursor: grab; }
.plane-stage .whiteboard.panning { cursor: grabbing; }

/* List view fills the stage and scrolls on its own. */
.plane-list { position: absolute; inset: 0; overflow: auto; padding: 22px 26px; }
.plane-list .tickets { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.plane-list .tickets tbody tr { cursor: pointer; }

.plane-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--ink-300); font-size: 14px; pointer-events: none; }
.plane-empty i { font-size: 42px; opacity: .45; }

/* Right-hand vertical tool rail */
.plane-tools { position: absolute; top: 16px; right: 16px; z-index: 40; display: flex; flex-direction: column; gap: 6px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px; box-shadow: var(--shadow-md); }
.ptool { position: relative; width: 40px; height: 40px; border: none; background: transparent; border-radius: 50%; cursor: pointer;
    color: var(--ink-500); display: grid; place-items: center; font-size: 19px; transition: background .12s, color .12s; }

/* Zoom cluster, bottom-left of the plane */
.plane-zoom { position: absolute; left: 16px; bottom: 16px; z-index: 40; display: flex; align-items: center; gap: 2px;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; box-shadow: var(--shadow-md); }
.pz-btn { width: 32px; height: 32px; border: none; background: transparent; border-radius: 50%; cursor: pointer;
    color: var(--ink-500); display: grid; place-items: center; font-size: 17px; transition: background .12s, color .12s; }
.pz-btn:hover { background: var(--grey); color: var(--dark-blue); }
.pz-btn.on { background: var(--bright-blue); color: #fff; }
.pz-sep { width: 1px; align-self: stretch; margin: 4px 2px; background: var(--line); }
.pz-pct { min-width: 52px; height: 32px; border: none; background: transparent; border-radius: var(--r-pill); cursor: pointer;
    color: var(--dark-blue); font-family: var(--font-sans); font-size: 12.5px; font-weight: 700; padding: 0 6px; }
.pz-pct:hover { background: var(--grey); }

/* "Go to bucket" picker anchored above the zoom cluster */
.plane-zoom-pop { position: absolute; left: 16px; bottom: 60px; z-index: 96; width: 232px; max-height: 340px; overflow-y: auto;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); padding: 6px; }
.zt-head { font-size: 10.5px; font-weight: 800; color: var(--ink-500); text-transform: uppercase; letter-spacing: .05em; padding: 4px 8px 6px; }
.zt-row { display: flex; align-items: center; gap: 9px; width: 100%; border: none; background: transparent; cursor: pointer;
    padding: 7px 8px; border-radius: var(--r-sm, 8px); font-family: var(--font-sans); font-size: 13px; color: var(--dark-blue); text-align: left; }
.zt-row:hover { background: var(--grey); }
.zt-row.here { background: var(--bright-blue-050, #eef4ff); }
.zt-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zt-count { font-size: 11px; font-weight: 700; color: var(--ink-500); background: var(--grey); border-radius: 9px; padding: 1px 7px; }
.zt-empty { padding: 10px 8px; font-size: 12.5px; color: var(--ink-400, var(--ink-300)); }
.ptool:hover { background: var(--grey); color: var(--dark-blue); }
.ptool.on { background: var(--bright-blue); color: #fff; }
.ptool-count { position: absolute; top: 2px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--blood-orange); color: #fff; font-size: 9.5px; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--white); }
.ptool.on .ptool-count { box-shadow: 0 0 0 2px var(--bright-blue); }
.ptool-tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap;
    background: var(--dark-blue); color: #fff; font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 8px;
    opacity: 0; pointer-events: none; transition: opacity .12s; box-shadow: var(--shadow-md); z-index: 1; }
.ptool:hover .ptool-tip { opacity: 1; }

/* Popup panels (presence, buckets, attention key) */
.plane-pop { position: absolute; top: 16px; left: 16px; z-index: 39; width: 50%;
    max-height: calc(100% - 32px); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.pop-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--line-200);
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-300); }
.pop-x { border: none; background: transparent; cursor: pointer; color: var(--ink-300); font-size: 15px; display: grid; place-items: center; padding: 2px; }
.pop-x:hover { color: var(--danger); }
.pop-body { padding: 12px 14px; overflow-y: auto; }
.pop-body .bucket-bar { margin-bottom: 0; }

/* Quick-add: jot a note straight onto the plane */
.ptool.add { color: var(--bright-blue); }
.ptool.add:hover { background: var(--bright-blue-100); color: var(--bright-blue); }
.ptool.add.on { background: var(--bright-blue); color: #fff; }
.add-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-300); margin-bottom: 6px; }
.add-input { width: 100%; }
.add-actions { margin-top: 10px; display: flex; justify-content: flex-end; }
.add-hint { margin-top: 10px; font-size: 12px; line-height: 1.5; color: var(--ink-500); }

/* Jira shadow cards on the plane */
.postit-jira { color: var(--bright-blue); font-size: 12px; margin-left: 4px; vertical-align: middle; }
.jira-bar { border-top: 1px solid var(--line-200); padding: 12px 16px; background: var(--bright-blue-050, #f3f7ff); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.jira-meta { display: flex; align-items: center; gap: 8px; }
.jira-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--bright-blue-600, var(--bright-blue)); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px 10px; }
.jira-tagline { font-size: 11.5px; font-weight: 600; color: var(--ink-500); }
.jira-note { flex: 1 1 100%; font-size: 11.5px; color: var(--ink-500); line-height: 1.5; }

/* Jira detail panel in the drawer */
.jira-detail { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.jira-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-200); background: var(--bright-blue-050, #f3f7ff); }
.jira-field { display: flex; flex-direction: column; gap: 4px; }
.jira-field .side-label { margin: 0; }
.jira-field .select { min-width: 150px; }
.jira-open { align-self: center; }
.jira-loading { padding: 14px 16px; font-size: 13px; color: var(--ink-500); display: flex; align-items: center; gap: 8px; }
.jira-desc { padding: 14px 16px; font-size: 13.5px; line-height: 1.6; color: var(--dark-blue); border-bottom: 1px solid var(--line-200); overflow-wrap: anywhere; }
.jira-desc img { max-width: 100%; height: auto; }
.jira-comments { flex: 1; overflow-y: auto; padding: 6px 16px; }
.jira-empty { padding: 14px 2px; font-size: 13px; color: var(--ink-300); }
.jcomment { padding: 10px 0; border-bottom: 1px solid var(--line-200); }
.jcomment.internal { background: #fffaef; margin: 0 -16px; padding: 10px 16px; border-bottom-color: #f3e6c4; }
.jc-head { display: flex; align-items: center; gap: 7px; margin-bottom: 4px; }
.jc-author { font-size: 12.5px; font-weight: 700; color: var(--dark-blue); }
.jc-body { font-size: 13.5px; line-height: 1.55; color: var(--dark-blue); overflow-wrap: anywhere; }
.jc-body img { max-width: 100%; height: auto; }
.thread-label { display: block; margin: 4px 0 8px; }

/* Full Jira ticket panel embedded in the plane drawer */
.jira-panel-wrap { padding: 14px 16px; border-bottom: 1px solid var(--line-200); background: var(--bright-blue-050, #f8fafe); }
.tp { display: flex; flex-direction: column; gap: 14px; }
.tp-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.tp-field { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.tp-field .side-label { margin: 0; }
.tp-block { display: flex; flex-direction: column; gap: 6px; }
.tp-transitions { display: flex; flex-direction: column; gap: 6px; }
.tp-trans { justify-content: flex-start; }
.tp-trans .muted { margin-left: auto; }
.tp-assign { width: 100%; max-width: 320px; }
.tp-dates { font-size: 12px; }
.jira-send { color: var(--bright-blue); border-color: var(--bright-blue-100, var(--line)); }
.jira-send:hover:not(:disabled) { background: var(--bright-blue-050, #f3f7ff); }

.attn-legend.col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* ==== Collapsible main menu ==== */
.sidebar { position: sticky; transition: padding .16s ease; }
.nav-collapse { position: absolute; top: 16px; right: -12px; width: 24px; height: 24px; border-radius: 50%;
    border: 1px solid var(--line); background: var(--white); color: var(--ink-500); cursor: pointer;
    display: grid; place-items: center; font-size: 14px; box-shadow: var(--shadow-sm); z-index: 50; transition: color .12s, border-color .12s; }
.nav-collapse:hover { color: var(--dark-blue); border-color: var(--bright-blue); }

.nav-collapsed .sidebar { padding-left: 10px; padding-right: 10px; }
.nav-collapsed .brand { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
.nav-collapsed .brand-text2 { display: none; }
.nav-collapsed .nav-label { display: none; }
.nav-collapsed .nav-item { justify-content: center; gap: 0; padding-left: 0; padding-right: 0; }
.nav-collapsed .switcher { display: none; }
.nav-collapsed .nav-footer-user { padding-left: 0; padding-right: 0; }
.nav-collapsed .user-chip { justify-content: center; padding-left: 0; padding-right: 0; }
.nav-collapsed .user-chip-info { display: none; }
.nav-collapsed .nav-footer-user form { display: flex; justify-content: center; }
.nav-collapsed .signout { justify-content: center; gap: 0; }

/* ==== Left-menu section overlays (open over the always-mounted plane) ==== */
button.nav-item { border: none; background: none; width: 100%; text-align: left; font-family: inherit; cursor: pointer; }

/* A floating workspace panel beside the plane. It deliberately stops short of the
   right edge (right: 33%) so the plane stays in view and usable on the right. */
.shell-overlay { position: fixed; top: 12px; left: calc(var(--nav-w, 246px) + 12px); right: 33%; bottom: 12px; z-index: 65;
    background: var(--white); display: flex; flex-direction: column; border: 1px solid var(--line);
    border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; transition: left .16s ease; }
.shell-topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px 8px 16px;
    background: var(--white); border-bottom: 1px solid var(--line); flex: none; }
.shell-title { font-size: 15px; font-weight: 700; color: var(--dark-blue); }
.shell-close { border: none; background: var(--grey); width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    color: var(--ink-500); display: grid; place-items: center; font-size: 16px; flex: none; }
.shell-close:hover { background: var(--danger-bg); color: var(--danger); }
.shell-body { flex: 1; overflow: auto; padding: 20px 22px; background: var(--grey); }
/* Sections drop their page padding when hosted in an overlay (the shell adds it). */
.shell-body > .page-head:first-child { margin-top: 0; }

/* Jira workspace tabs (Dashboard / Tickets / Board) live in the panel's top bar. */
.jw-tabs { display: flex; gap: 2px; }
.jw-tab { display: inline-flex; align-items: center; gap: 7px; border: none; background: transparent; cursor: pointer;
    font-family: var(--font-sans); font-size: 13.5px; font-weight: 600; color: var(--ink-500); padding: 8px 14px;
    border-radius: var(--r-sm); transition: background .12s, color .12s; }
.jw-tab i { font-size: 16px; }
.jw-tab:hover { background: var(--grey); color: var(--dark-blue); }
.jw-tab.on { background: var(--bright-blue); color: #fff; }
.jw-head { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1; }
.jw-project { max-width: 260px; height: 34px; padding: 5px 30px 5px 12px; font-size: 13px; font-weight: 600; margin-left: auto; }
.jw-project-loading { font-size: 12px; margin-left: auto; }

/* Ticket popup — opening a Jira ticket from a table / board keeps you in place */
.ticket-modal-backdrop { position: fixed; inset: 0; background: rgba(20, 24, 51, 0.28); z-index: 90; }
.ticket-modal { position: fixed; z-index: 91; top: 4vh; bottom: 4vh; left: 50%; transform: translateX(-50%);
    width: min(920px, 92vw); background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.ticket-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid var(--line); flex: none; }
.tm-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tm-title .t-key { font-size: 15px; font-weight: 800; color: var(--bright-blue); flex: none; }
.tm-summary { font-size: 14px; color: var(--dark-blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ticket-modal-body { flex: 1; overflow: auto; padding: 16px 18px; background: var(--grey); }

/* ==== Buckets on the plane ==== */
.plane-bucket { position: absolute; width: 140px; user-select: none; cursor: grab; text-align: center;
    touch-action: none; transition: transform .12s ease, filter .12s; }
.plane-bucket:hover { transform: translateY(-2px) scale(1.03); filter: drop-shadow(0 7px 13px rgba(20,24,51,.18)); }
.plane-bucket.dragging { cursor: grabbing; transform: scale(1.06) rotate(-1.5deg); z-index: 30; }
/* Selected bucket: a bold tinted halo + ring behind it, a solid name pill and an "Open"
   chip, so select/unselect (click again to close) reads at a glance. */
.plane-bucket.active { transform: translateY(-2px) scale(1.05); }
.plane-bucket.active::before {
    content: ''; position: absolute; inset: -10px -6px; border-radius: 20px; z-index: -1;
    background: color-mix(in srgb, currentColor 16%, transparent);
    box-shadow: inset 0 0 0 2.5px color-mix(in srgb, currentColor 62%, #fff);
    animation: bkt-sel .18s ease; }
@keyframes bkt-sel { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.plane-bucket.active .pb-shape { filter: drop-shadow(0 0 0 2.5px #fff) drop-shadow(0 7px 11px rgba(20,24,51,.30)); }
.plane-bucket.active .pb-name { color: #fff; background: var(--dark-blue); border-radius: var(--r-pill); padding: 1px 10px; }
.pb-open { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
    background: var(--dark-blue); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .02em;
    padding: 2px 8px; border-radius: var(--r-pill); box-shadow: 0 2px 6px rgba(20,24,51,.25); }
.pb-open i { font-size: 11px; }
.plane-bucket.drop-hot { transform: scale(1.13); filter: drop-shadow(0 0 0 3px #fff) drop-shadow(0 8px 18px rgba(20,24,51,.32)); animation: bkt-bounce .45s ease; }
.pb-shape { width: 80px; height: 80px; display: block; margin: 0 auto; filter: drop-shadow(0 3px 4px rgba(20,24,51,.18)); }
.pb-badge { position: absolute; top: 0; right: 30px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
    background: var(--dark-blue); color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center;
    box-shadow: 0 0 0 2px #fff; pointer-events: none; z-index: 2; }
.pb-name { font-size: 12px; font-weight: 700; color: var(--dark-blue); margin-top: 2px; max-width: 140px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.pb-nested { font-size: 12px; color: var(--ink-300); vertical-align: middle; }
.pb-edit { position: absolute; top: -4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; border: none;
    background: #fff; box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.15)); color: var(--ink-500); cursor: pointer;
    display: none; place-items: center; font-size: 13px; }
.plane-bucket:hover .pb-edit { display: grid; }
.pb-edit:hover { color: var(--dark-blue); }
@keyframes bkt-bounce { 0%,100% { } 45% { transform: scale(1.2); } }

/* Colour-split cards + pulsating bucket dots */
.postit.tinted { border: 1px solid rgba(20,24,51,.07); }
.postit-dots { position: absolute; left: 10px; bottom: 8px; display: flex; gap: 5px; z-index: 2; }
.pdot-bkt { width: 11px; height: 11px; border-radius: 50%; border: 2px solid #fff; padding: 0; cursor: pointer;
    background: var(--dc, #64748b); animation: pdot-pulse 1.9s ease-out infinite; transition: transform .1s; }
.pdot-bkt:hover { transform: scale(1.3); }
@keyframes pdot-pulse {
    0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dc) 55%, transparent); }
    70%  { box-shadow: 0 0 0 7px color-mix(in srgb, var(--dc) 0%, transparent); }
    100% { box-shadow: 0 0 0 0 transparent; }
}


/* Bucket create / edit popup */
.bkt-edit-pop { position: absolute; top: 16px; right: 70px; z-index: 45; width: 280px; background: var(--white);
    border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lg); overflow: hidden; }
.bkt-name { width: 100%; }
.swatches { display: flex; gap: 8px; margin: 12px 0; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; }
.swatch.on { border-color: var(--dark-blue); box-shadow: inset 0 0 0 2px #fff; }
.bkt-edit-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.bkt-del { color: var(--danger); }
.bkt-del:hover { background: var(--danger-bg); }
.ptool.bkt-new { color: var(--bright-blue); }

/* Right-click context menu */
.ctx-backdrop { position: fixed; inset: 0; z-index: 95; }
.plane-ctx { position: fixed; z-index: 96; min-width: 196px; max-height: 72vh; overflow: auto; background: var(--white);
    border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 5px; animation: ctx-in .1s ease; }
@keyframes ctx-in { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
.ctx-item { display: flex; align-items: center; gap: 9px; width: 100%; border: none; background: transparent; cursor: pointer;
    font-family: var(--font-sans); font-size: 13px; color: var(--dark-blue); padding: 8px 10px; border-radius: 7px; text-align: left; }
.ctx-item:hover { background: var(--grey); }
.ctx-item > i { font-size: 15px; color: var(--ink-500); flex: none; }
.ctx-item.danger { color: var(--danger); }
.ctx-item.danger > i { color: var(--danger); }
.ctx-item.danger:hover { background: var(--danger-bg); }
.ctx-sep { height: 1px; background: var(--line-200); margin: 4px 6px; }
.ctx-group-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-300); padding: 6px 10px 2px; }
.ctx-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ctx-check { margin-left: auto; color: var(--success) !important; font-size: 14px; }
.ctx-empty { font-size: 12.5px; color: var(--ink-300); padding: 6px 10px; }
.ctx-swatches { display: flex; gap: 7px; padding: 4px 10px 8px; }
.ctx-swatch { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
.ctx-swatch.on { border-color: var(--dark-blue); box-shadow: inset 0 0 0 2px #fff; }
a.ctx-item { text-decoration: none; }

/* Archived buckets restore list (Buckets popup) */
.arch-list { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-200); }
.arch-row { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.arch-name { flex: 1; font-size: 13px; color: var(--dark-blue); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Ring-fence: a bordered frame drawn behind a bucket's REAL post-its, which OpenBucket
   has gathered into a grid. Pointer-events off so cards/panning work through it; only
   the title bar is interactive. */
.plane-ring { position: absolute; z-index: 0; pointer-events: none;
    background: color-mix(in srgb, var(--fence) 7%, #fff);
    border: 2.5px dashed color-mix(in srgb, var(--fence) 50%, #fff); border-radius: 16px;
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--fence) 8%, transparent);
    animation: ring-in .25s ease; }
@keyframes ring-in { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
.ring-bar { pointer-events: auto; cursor: grab; position: absolute; top: 8px; left: 12px; right: 12px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: color-mix(in srgb, var(--fence) 15%, #fff); border: 1px solid color-mix(in srgb, var(--fence) 32%, #fff);
    border-radius: var(--r-pill); padding: 5px 10px; box-shadow: var(--shadow-sm); }
.ring-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--dark-blue); }
.ring-swatch { width: 12px; height: 12px; border-radius: 4px; }
.ring-count { font-size: 11px; font-weight: 700; color: #fff; background: color-mix(in srgb, var(--fence) 72%, #333); border-radius: 9px; padding: 1px 7px; }
.ring-sub { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-pill); padding: 3px 9px; font-size: 11.5px; font-weight: 600; color: var(--dark-blue); cursor: pointer; }
.ring-sub i { color: var(--dc); font-size: 13px; }
.ring-x { margin-left: auto; border: none; background: transparent; cursor: pointer; color: var(--ink-500); font-size: 15px; display: grid; place-items: center; }
.ring-x:hover { color: var(--danger); }
.ring-empty { position: absolute; top: 52px; left: 0; right: 0; text-align: center; font-size: 12.5px; color: var(--ink-400, var(--ink-300)); }
