:root {
  --bg: #fffaf0;
  --surface: #fffdf9;
  --surface-soft: #fffaf5;
  --ink: #10216f;
  --muted: #68719a;
  --muted-soft: #9298b5;
  --brand: #ffc515;
  --brand-deep: #9b6900;
  --lavender: #e7ebff;
  --lavender-strong: #b4c0ff;
  --peach: #fff0be;
  --peach-strong: #ffd044;
  --mint: #dff4e8;
  --mint-strong: #98d9bb;
  --yellow: #fff3b8;
  --yellow-strong: #ffc515;
  --pink: #ffe1ec;
  --blue: #dde8ff;
  --danger: #c9455d;
  --line: rgba(16, 33, 111, .1);
  --radius-xl: 36px;
  --radius-lg: 30px;
  --radius-md: 22px;
  --radius-sm: 16px;
  --shadow-surface: 0 24px 60px rgba(89, 66, 112, .14), inset 0 1px 0 rgba(255, 255, 255, .9);
  --shadow-lavender: 0 24px 44px rgba(109, 88, 151, .20), inset 0 -7px 14px rgba(105, 78, 151, .14), inset 0 7px 14px rgba(255, 255, 255, .7);
  --shadow-peach: 0 24px 44px rgba(190, 100, 69, .18), inset 0 -7px 14px rgba(165, 76, 49, .12), inset 0 7px 14px rgba(255, 255, 255, .72);
  --shadow-mint: 0 24px 44px rgba(57, 136, 97, .17), inset 0 -7px 14px rgba(43, 119, 78, .11), inset 0 7px 14px rgba(255, 255, 255, .72);
  --shadow-yellow: 0 24px 44px rgba(166, 126, 30, .16), inset 0 -7px 14px rgba(153, 111, 18, .10), inset 0 7px 14px rgba(255, 255, 255, .72);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 100% 4%, rgba(220, 229, 255, .86), transparent 30rem),
    radial-gradient(circle at 0 88%, rgba(255, 232, 128, .42), transparent 28rem),
    var(--bg);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4, h5, h6 { text-shadow: 2px 2px 3px rgb(0 0 0 / 34%); }
button, select { cursor: pointer; }
::selection { color: var(--ink); background: #ffe06b; }
:focus-visible { outline: 3px solid #1c38b6; outline-offset: 3px; }

.page-glow { position: fixed; width: 390px; aspect-ratio: 1; border-radius: 50%; filter: blur(90px); opacity: .17; pointer-events: none; z-index: -2; }
.page-glow-one { top: 8%; right: -160px; background: #8ba2ff; }
.page-glow-two { bottom: 4%; left: -180px; background: #ffd52f; }
.page-doodle { position: fixed; z-index: -1; color: var(--brand); opacity: .22; pointer-events: none; }
.doodle-cross { right: 7vw; top: 18vh; font: 800 72px/1 Manrope, sans-serif; transform: rotate(17deg); }
.doodle-dot { left: 4vw; bottom: 8vh; width: 19px; aspect-ratio: 1; border: 6px solid var(--lavender-strong); border-radius: 50%; }

.app-shell { width: min(1540px, 100%); min-height: 100vh; margin: 0 auto; display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 34px; padding: 28px; }
.clay-surface, .glass-panel, .glass-lite { border: 1px solid rgba(255, 255, 255, .88); background: rgba(255, 253, 249, .92); box-shadow: var(--shadow-surface); }
.clay-surface, .glass-panel { border-radius: var(--radius-lg); }
.glass-lite { border-radius: var(--radius-md); }
.clay-mint { background: var(--mint); box-shadow: var(--shadow-mint); }

.sidebar { position: sticky; top: 28px; height: calc(100vh - 56px); min-height: 0; overflow: hidden; padding: 26px 20px 20px; display: flex; flex-direction: column; z-index: 20; }
.brand { display: flex; align-items: center; min-width: 0; }
.brand-logo { width: 178px; max-width: 100%; height: auto; display: block; object-fit: contain; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--ink); filter: drop-shadow(0 9px 10px rgba(255, 118, 88, .24)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-copy { display: grid; line-height: 1.1; }
.brand-copy strong { font: 800 1.05rem/1 Manrope, sans-serif; letter-spacing: -.03em; }
.brand-copy small { margin-top: 6px; color: var(--muted); font-size: .72rem; }
.workspace-label { display: grid; gap: 5px; margin: 34px 10px 14px; }
.workspace-label strong { font-family: Manrope, sans-serif; font-size: .95rem; }
.eyebrow { color: var(--brand-deep); font: 800 .69rem/1.3 Manrope, sans-serif; letter-spacing: .13em; text-transform: uppercase; }
.nav-stack { min-height: 0; flex: 1 1 auto; display: grid; align-content: start; gap: 7px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 5px 8px 2px; scrollbar-width: thin; scrollbar-color: rgba(16, 33, 111, .24) transparent; }
.nav-stack::-webkit-scrollbar { width: 5px; }
.nav-stack::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(16, 33, 111, .22); }
.nav-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 9px 12px; border-radius: 17px; color: var(--muted); font-weight: 700; transition: color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.nav-link:hover { color: var(--ink); background: var(--surface-soft); transform: translateX(2px); }
.nav-link.is-active { color: var(--ink); background: var(--lavender); box-shadow: inset 0 -3px 7px rgba(86, 58, 132, .1), inset 0 3px 7px rgba(255, 255, 255, .76), 0 9px 18px rgba(90, 62, 132, .12); }
.nav-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 11px; background: rgba(255, 255, 255, .47); }
.nav-icon svg { width: 17px; height: 17px; fill: currentColor; }
.nav-link b { min-width: 19px; padding: 2px 5px; border-radius: 999px; color: var(--ink); background: var(--peach-strong); font-size: .62rem; text-align: center; }
.sidebar-card { flex: 0 0 auto; margin-top: 10px; padding: 17px; border-radius: 25px; }
.mobile-nav-toggle, .mobile-nav-scrim { display: none; }
.mobile-close-label { display: none; }
.profile-row { display: flex; align-items: center; gap: 11px; min-width: 0; }
.profile-row > span:last-child { min-width: 0; }
.profile-row strong, .profile-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-row strong { font: 800 .85rem/1.3 Manrope, sans-serif; }
.profile-row small { margin-top: 3px; color: var(--muted); font-size: .71rem; }
.avatar { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; background: var(--surface); box-shadow: inset 0 -3px 6px rgba(45, 109, 74, .1), inset 0 3px 6px #fff; font: 800 .72rem/1 Manrope, sans-serif; }
.logout-link { width: 100%; display: flex; justify-content: space-between; margin-top: 14px; padding: 8px 2px 0; color: var(--ink); border: 0; border-top: 1px solid rgba(56, 45, 73, .08); background: transparent; font-size: .75rem; font-weight: 800; }
.language-form { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; margin-top: 13px; padding-top: 11px; border-top: 1px solid rgba(16, 33, 111, .08); }
.language-form label { color: var(--muted); font-size: .68rem; font-weight: 800; }
.language-form select { min-width: 0; padding: 6px 7px; border: 0; border-radius: 10px; color: var(--ink); background: rgba(255, 255, 255, .55); font-size: .7rem; font-weight: 700; }

.main-content { min-width: 0; display: flex; flex-direction: column; gap: 24px; padding: 22px 0 6px; }
.topbar { min-height: 126px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 6px 2px 10px; }
.title-group { max-width: 760px; }
.topbar h1 { margin: 10px 0 0; font: 800 clamp(2.25rem, 4vw, 4rem)/.98 Manrope, sans-serif; letter-spacing: -.06em; }
.title-group > p { max-width: 660px; margin: 13px 0 0; color: var(--muted); font-size: 1.02rem; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px; }

.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 20px; border: 0; border-radius: 18px; color: var(--ink); font-weight: 800; line-height: 1; transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--peach-strong); box-shadow: 0 14px 26px rgba(181, 133, 0, .24), inset 0 -5px 9px rgba(139, 95, 0, .14), inset 0 5px 9px rgba(255, 255, 255, .68); }
.btn-secondary, .btn:not(.btn-primary):not(.btn-danger) { background: var(--lavender); box-shadow: 0 13px 24px rgba(103, 82, 153, .18), inset 0 -4px 8px rgba(96, 68, 143, .11), inset 0 4px 8px rgba(255, 255, 255, .72); }
.btn-danger { color: #8f2d42; background: var(--pink); box-shadow: 0 13px 24px rgba(170, 67, 95, .18), inset 0 -4px 8px rgba(144, 49, 75, .1), inset 0 4px 8px rgba(255, 255, 255, .68); }
.btn-sm { min-height: 40px; padding: 9px 14px; border-radius: 15px; font-size: .84rem; }
.ghost-link { color: var(--brand-deep); font-weight: 800; }
.ghost-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.metric-card { position: relative; min-height: 174px; overflow: hidden; padding: 24px; border: 0; }
.metric-card:nth-child(1) { background: var(--lavender); box-shadow: var(--shadow-lavender); }
.metric-card:nth-child(2) { background: var(--peach); box-shadow: var(--shadow-peach); }
.metric-card:nth-child(3) { background: var(--mint); box-shadow: var(--shadow-mint); }
.metric-card:nth-child(4) { background: var(--yellow); box-shadow: var(--shadow-yellow); }
.metric-card::after { content: ""; position: absolute; width: 90px; aspect-ratio: 1; right: -28px; bottom: -35px; border: 18px solid rgba(255, 255, 255, .28); border-radius: 50%; }
.metric-card > span { color: var(--muted); font-size: .86rem; font-weight: 700; }
.metric-card strong { display: block; margin: 14px 0 3px; font: 800 2.75rem/1 Manrope, sans-serif; letter-spacing: -.06em; }
.metric-card small { color: var(--muted); }
.metric-icon { width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 16px; border-radius: 14px; background: rgba(255, 255, 255, .46); box-shadow: inset 0 -3px 6px rgba(67, 46, 83, .08), inset 0 3px 6px rgba(255, 255, 255, .72); font: 800 1rem/1 Manrope, sans-serif; }

.split-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px; }
.section-card { padding: 26px; }
.section-card.narrow { width: min(100%, 920px); margin-inline: auto; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 20px; }
.section-head h2, .section-card h2 { margin: 7px 0 0; font: 800 1.35rem/1.2 Manrope, sans-serif; letter-spacing: -.035em; }
.section-subtitle { margin: 6px 0 0; color: var(--muted); font-size: .9rem; }

.project-list, .issue-feed, .comment-list, .activity-list { display: grid; gap: 12px; }
.project-row, .feed-item { border: 1px solid rgba(255, 255, 255, .76); background: #fbf7fc; transition: transform .18s ease, background .18s ease; }
.project-row:hover, .feed-item:hover { background: var(--lavender); transform: translateY(-2px); }
.project-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 19px; }
.project-row small { display: block; margin-top: 2px; color: var(--muted); }
.project-row em { color: var(--muted); font-size: .78rem; font-style: normal; }
.project-dot { --dot: #a78bfa; width: 14px; height: 14px; display: inline-block; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 6px color-mix(in srgb, var(--dot) 18%, transparent), inset 0 2px 3px rgba(255, 255, 255, .7); }
.project-dot.big { width: 21px; height: 21px; margin-bottom: 14px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.project-card { min-height: 238px; display: flex; flex-direction: column; padding: 25px; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:nth-child(3n + 1) { background: var(--lavender); box-shadow: var(--shadow-lavender); }
.project-card:nth-child(3n + 2) { background: var(--mint); box-shadow: var(--shadow-mint); }
.project-card:nth-child(3n + 3) { background: var(--peach); box-shadow: var(--shadow-peach); }
.project-card:hover { transform: translateY(-7px) rotate(-.35deg); }
.project-card h2 { margin: 9px 0; font: 800 1.35rem/1.2 Manrope, sans-serif; }
.project-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.card-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; color: var(--muted); font-size: .79rem; }
.feed-item { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 15px; border-radius: 18px; color: var(--muted); }
.feed-item > span:nth-child(2) { color: var(--ink); font-weight: 600; }
.issue-key { color: #67499b; font-weight: 900; letter-spacing: -.02em; }

.table-wrap { overflow: auto; border-radius: 20px; }
.glass-table { width: 100%; min-width: 740px; border-collapse: separate; border-spacing: 0; }
.glass-table th, .glass-table td { padding: 15px 13px; text-align: left; border-bottom: 1px solid var(--line); }
.glass-table th { color: var(--muted); font: 800 .68rem/1.2 Manrope, sans-serif; letter-spacing: .09em; text-transform: uppercase; }
.glass-table td { color: #4d415c; }
.glass-table tbody tr { transition: background .18s ease; }
.glass-table tbody tr:hover { background: rgba(238, 228, 255, .46); }
.glass-table tbody tr:last-child td { border-bottom: 0; }
.user-cell { display: flex; align-items: center; gap: 11px; }
.user-avatar { width: 39px; aspect-ratio: 1; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; color: var(--ink); background: var(--peach); box-shadow: inset 0 -3px 6px rgba(150, 60, 40, .08), inset 0 3px 6px #fff; font: 800 .7rem/1 Manrope, sans-serif; }
.user-cell strong, .user-cell small { display: block; }
.user-cell small { color: var(--muted); }

.pill, .tag, .badge { display: inline-flex; align-items: center; gap: 5px; min-height: 29px; padding: 5px 11px; border: 0; border-radius: 999px; color: var(--ink); background: var(--lavender); box-shadow: inset 0 -2px 5px rgba(79, 54, 116, .07), inset 0 2px 5px rgba(255, 255, 255, .72); font-size: .72rem; font-weight: 800; }
.status-todo, .priority-low { background: #eeeaf0; }
.status-in_progress, .priority-medium, .type-task { background: var(--blue); }
.status-in_review, .priority-high, .type-spike { background: var(--yellow); }
.status-done, .type-story { background: var(--mint); }
.priority-urgent, .type-bug { color: #93384f; background: var(--pink); }
.type-epic { background: var(--lavender); }
.role-developer { background: var(--blue); }
.role-ui_ux { background: var(--pink); }
.role-pm { background: var(--lavender); }
.role-unassigned { background: #eeeaf0; }
.status-active { background: var(--mint); }
.status-inactive { background: #eeeaf0; color: var(--muted); }

.filter-bar { display: flex; align-items: center; gap: 12px; }
.filter-bar.multi { display: grid; grid-template-columns: minmax(220px, 1.45fr) repeat(4, minmax(112px, .7fr)) auto auto; }
.control { width: 100%; min-height: 48px; padding: 12px 15px; color: var(--ink); background: #fbf8fc; border: 1px solid rgba(75, 54, 91, .1); border-radius: 17px; box-shadow: inset 0 3px 8px rgba(75, 54, 91, .06), 0 1px 0 rgba(255, 255, 255, .8); outline: none; }
.control::placeholder { color: #a49aab; }
.control:focus { border-color: #a887dd; box-shadow: 0 0 0 4px rgba(168, 135, 221, .18), inset 0 3px 8px rgba(75, 54, 91, .04); }
textarea.control { min-height: 128px; resize: vertical; }
.color-input { min-height: 50px; padding: 6px 9px; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); }

.project-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 31px; background: var(--peach); box-shadow: var(--shadow-peach); }
.project-hero::after { content: ""; position: absolute; width: 190px; height: 150px; right: 24%; bottom: -100px; border: 28px solid rgba(255, 255, 255, .27); border-radius: 48% 52% 60% 40%; transform: rotate(-14deg); }
.project-hero p { max-width: 790px; margin: 13px 0 0; color: var(--muted); line-height: 1.7; }
.hero-stats { z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(76px, 92px)); gap: 10px; }
.hero-stats span { display: grid; place-items: center; gap: 4px; padding: 15px 9px; border-radius: 20px; background: rgba(255, 253, 249, .7); box-shadow: inset 0 -4px 8px rgba(135, 63, 43, .07), inset 0 4px 8px rgba(255, 255, 255, .78); }
.hero-stats strong { font: 800 1.55rem/1 Manrope, sans-serif; }
.hero-stats small { color: var(--muted); font-size: .72rem; }

.kanban-board { display: grid; grid-template-columns: repeat(4, minmax(274px, 1fr)); align-items: start; gap: 18px; overflow-x: auto; padding: 5px 2px 26px; }
.kanban-column { min-height: 455px; padding: 16px; border-radius: 28px; box-shadow: var(--shadow-surface); }
.kanban-column[data-status="todo"] { background: #f5f1f7; }
.kanban-column[data-status="in_progress"] { background: var(--blue); }
.kanban-column[data-status="in_review"] { background: var(--yellow); }
.kanban-column[data-status="done"] { background: var(--mint); }
.column-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding: 3px 4px; }
.column-head h2 { margin: 0; font: 800 .95rem/1.2 Manrope, sans-serif; }
.column-head span { min-width: 28px; padding: 4px 8px; border-radius: 999px; background: rgba(255, 255, 255, .55); text-align: center; font-size: .73rem; font-weight: 800; }
.column-dropzone { min-height: 342px; display: grid; align-content: start; gap: 12px; }
.kanban-column.drag-over { outline: 3px dashed #8055c8; outline-offset: -7px; transform: translateY(-3px); }
.issue-card { padding: 16px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 21px; background: rgba(255, 253, 249, .88); box-shadow: 0 12px 24px rgba(67, 46, 83, .1), inset 0 2px 0 rgba(255, 255, 255, .8); cursor: grab; transition: transform .18s ease, box-shadow .18s ease; }
.issue-card:hover { transform: translateY(-4px) rotate(-.25deg); box-shadow: 0 17px 30px rgba(67, 46, 83, .15); }
.issue-card.dragging { opacity: .45; transform: scale(.97) rotate(2deg); }
.issue-title { display: block; margin-bottom: 13px; font-weight: 800; line-height: 1.35; }
.issue-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.issue-card-meta.spacious { margin: 19px 0; }
.issue-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: 15px; color: var(--muted); font-size: .77rem; }
.due { display: block; margin-top: 9px; color: var(--muted); font-size: .73rem; }
.overdue { color: var(--danger); font-weight: 800; }

.empty-column, .empty-state { padding: 20px; color: var(--muted-soft); border: 2px dashed rgba(79, 58, 96, .13); border-radius: 19px; text-align: center; }
.empty-state-wide { grid-column: 1 / -1; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.field { display: grid; align-content: start; gap: 8px; }
.field > span { font-weight: 800; }
.field small { color: var(--muted); font-size: .78rem; }
.field-error { color: var(--danger); font-size: .78rem; font-style: normal; font-weight: 700; }
.span-2 { grid-column: span 2; }
.form-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 9px; }
.form-note { margin: 0 0 22px; padding: 16px 18px; border-radius: 19px; color: var(--muted); background: var(--yellow); box-shadow: inset 0 -3px 7px rgba(153, 111, 18, .07), inset 0 3px 7px rgba(255, 255, 255, .72); }

.issue-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 24px; }
.issue-main { background: var(--lavender); box-shadow: var(--shadow-lavender); }
.issue-side { background: var(--yellow); box-shadow: var(--shadow-yellow); }
.issue-main h2 { margin: 10px 0 12px; font: 800 clamp(1.8rem, 3vw, 2.8rem)/1.07 Manrope, sans-serif; letter-spacing: -.05em; }
.issue-main h3 { margin-top: 30px; font-family: Manrope, sans-serif; }
.description { color: #5f536b; line-height: 1.75; }
.label-stack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.detail-list { display: grid; grid-template-columns: 112px 1fr; gap: 13px; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.comment-form { display: grid; gap: 11px; margin-bottom: 20px; }
.comment-item, .activity-item { padding: 16px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 19px; background: #fbf7fc; }
.comment-item small, .activity-item small { display: block; margin-top: 4px; color: var(--muted-soft); }
.comment-item p, .activity-item p { margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.activity-item span { font-weight: 900; text-transform: capitalize; }

.messages { display: grid; gap: 10px; }
.message { display: flex; align-items: center; gap: 10px; padding: 14px 17px; border-radius: 18px; color: #365f49; background: var(--mint); box-shadow: var(--shadow-mint); font-weight: 700; }
.message > span { width: 25px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.message.error { color: #8f2d42; background: var(--pink); box-shadow: 0 14px 30px rgba(170, 67, 95, .14); }

.login-layout { min-height: 570px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, .72fr); gap: 26px; }
.login-art { position: relative; min-height: 100%; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 42px; background: var(--lavender); box-shadow: var(--shadow-lavender); }
.login-art h2 { max-width: 550px; margin: 12px 0; font: 800 clamp(2.2rem, 4vw, 4rem)/1.02 Manrope, sans-serif; letter-spacing: -.06em; }
.login-art p { max-width: 510px; margin: 0; color: var(--muted); }
.art-board { position: absolute; inset: 42px 44px auto auto; width: min(43%, 300px); aspect-ratio: 1.15; border: 7px solid var(--ink); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow-surface); transform: rotate(4deg); }
.art-board::before { content: ""; position: absolute; left: 28px; right: 28px; top: 42px; height: 12px; border-radius: 10px; background: var(--peach-strong); box-shadow: 0 37px 0 var(--lavender-strong), 0 74px 0 var(--mint-strong); }
.art-board::after { content: ""; position: absolute; width: 48px; aspect-ratio: 1; right: -29px; top: -25px; border-radius: 50%; background: var(--yellow); box-shadow: var(--shadow-yellow); }
.login-card { align-self: center; padding: 34px; }
.login-card h2 { margin: 8px 0; font: 800 1.7rem/1.2 Manrope, sans-serif; }
.login-card > p { margin: 0 0 24px; color: var(--muted); }
.login-form { display: grid; gap: 17px; }
.login-form .field { gap: 7px; }
.login-form .btn { width: 100%; margin-top: 6px; }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 22px; }
.mini-stat { padding: 18px; border-radius: 21px; background: var(--surface-soft); border: 1px solid rgba(255, 255, 255, .86); }
.mini-stat strong { display: block; font: 800 1.55rem/1 Manrope, sans-serif; }
.mini-stat span { color: var(--muted); font-size: .78rem; }
.mini-stat:nth-child(1) { background: var(--lavender); }
.mini-stat:nth-child(2) { background: var(--mint); }
.mini-stat:nth-child(3) { background: var(--peach); }

.delete-card { width: min(100%, 680px); margin: 48px auto; padding: 36px; text-align: center; background: var(--pink); box-shadow: 0 25px 48px rgba(170, 67, 95, .18), inset 0 -7px 14px rgba(144, 49, 75, .08), inset 0 7px 14px rgba(255, 255, 255, .68); }
.delete-icon { width: 74px; aspect-ratio: 1; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 26px; background: rgba(255, 255, 255, .5); box-shadow: inset 0 -4px 8px rgba(144, 49, 75, .08), inset 0 4px 8px #fff; font: 800 2rem/1 Manrope, sans-serif; }
.delete-card p { color: var(--muted); }
.delete-card .form-actions { justify-content: center; }

.app-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: auto; padding: 20px 4px 6px; color: var(--muted-soft); font-size: .73rem; }
.planning-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: start; gap: 24px; }
.planning-main { min-width: 0; display: grid; gap: 20px; }
.planning-side { position: sticky; top: 28px; }
.stack-form { display: grid; gap: 16px; margin-top: 22px; }
.sprint-card { padding: 24px; }
.sprint-card.sprint-active { background: var(--blue); box-shadow: 0 24px 44px rgba(44, 73, 165, .16), inset 0 -7px 14px rgba(33, 63, 154, .08), inset 0 7px 14px rgba(255, 255, 255, .72); }
.sprint-card.backlog-card { background: var(--surface); }
.sprint-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.sprint-head h2, .release-card h2, .component-card h2 { margin: 9px 0 5px; font: 800 1.3rem/1.2 Manrope, sans-serif; letter-spacing: -.035em; }
.sprint-head p, .release-card p, .component-card p { margin: 0; color: var(--muted); }
.sprint-head small { color: var(--muted-soft); }
.sprint-actions, .component-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.progress-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto auto; align-items: center; gap: 11px; margin: 20px 0 15px; }
.progress-row strong { font: 800 .82rem/1 Manrope, sans-serif; }
.progress-row small { color: var(--muted); }
.progress-track { height: 12px; overflow: hidden; border-radius: 999px; background: rgba(16, 33, 111, .09); box-shadow: inset 0 2px 4px rgba(16, 33, 111, .09); }
.progress-track span { width: var(--progress); height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, #1937b4, #ffc515); box-shadow: inset 0 2px 3px rgba(255, 255, 255, .35); }
.backlog-list { display: grid; gap: 9px; margin-top: 17px; }
.backlog-item { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto minmax(210px, .7fr); align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .86); border-radius: 18px; background: rgba(255, 253, 249, .78); transition: transform .18s ease, box-shadow .18s ease; }
.backlog-item:hover { transform: translateY(-2px); box-shadow: 0 11px 22px rgba(16, 33, 111, .08); }
.backlog-copy { min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: baseline; }
.backlog-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.backlog-copy small { grid-column: 2; color: var(--muted); }
.sprint-picker { display: flex; align-items: center; gap: 7px; }
.sprint-picker .control { min-height: 40px; padding: 8px 10px; font-size: .76rem; }
.completed-sprints { display: grid; gap: 10px; }
.completed-sprints > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 15px; border-radius: 17px; background: #fbf8fc; }
.completed-sprints strong, .completed-sprints small { display: block; }
.completed-sprints small { color: var(--muted); }
.release-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.release-card { padding: 25px; }
.release-card:nth-child(3n + 1) { background: var(--lavender); box-shadow: var(--shadow-lavender); }
.release-card:nth-child(3n + 2) { background: var(--yellow); box-shadow: var(--shadow-yellow); }
.release-card:nth-child(3n + 3) { background: var(--mint); box-shadow: var(--shadow-mint); }
.release-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.release-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 20px; }
.release-dates span { padding: 13px; border-radius: 17px; background: rgba(255, 255, 255, .48); }
.release-dates small, .release-dates strong { display: block; }
.release-dates small { color: var(--muted); font-size: .7rem; }
.release-dates strong { margin-top: 3px; font-size: .82rem; }
.component-grid { display: grid; gap: 16px; }
.component-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 22px; }
.component-card:nth-child(3n + 1) { background: var(--lavender); box-shadow: var(--shadow-lavender); }
.component-card:nth-child(3n + 2) { background: var(--yellow); box-shadow: var(--shadow-yellow); }
.component-card:nth-child(3n + 3) { background: var(--mint); box-shadow: var(--shadow-mint); }
.component-card small { color: var(--muted); }
.component-mark { width: 58px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 20px; color: var(--ink); background: rgba(255, 255, 255, .55); box-shadow: inset 0 -4px 8px rgba(16, 33, 111, .08), inset 0 4px 8px rgba(255, 255, 255, .8); font: 800 .85rem/1 Manrope, sans-serif; }
.relationship-list { display: grid; gap: 9px; }
.relationship-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 13px 14px; border: 1px solid rgba(255, 255, 255, .84); border-radius: 18px; background: #fbf8fc; }
.relationship-row + .relationship-list { margin-top: 9px; }
.relationship-row strong, .relationship-row small { display: block; }
.relationship-row small { color: var(--muted); }
.link-form { display: grid; grid-template-columns: .7fr 1.3fr auto; gap: 9px; margin-top: 15px; }
.icon-button { width: 34px; aspect-ratio: 1; display: grid; place-items: center; border: 0; border-radius: 12px; color: var(--danger); background: var(--pink); font-size: 1.15rem; font-weight: 800; }
.type-subtask { background: var(--peach); }
.attachment-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-bottom: 17px; }
.attachment-list, .worklog-list { display: grid; gap: 10px; }
.attachment-row, .worklog-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 13px; border-radius: 18px; background: #fbf8fc; }
.attachment-row strong, .attachment-row small, .worklog-row strong, .worklog-row small { display: block; }
.attachment-row small, .worklog-row small { color: var(--muted); }
.attachment-icon { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; background: var(--yellow); font: 800 .8rem/1 Manrope, sans-serif; }
.compact-form { padding: 16px; margin: 0 0 17px; border-radius: 19px; background: var(--blue); }
.worklog-row { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.worklog-row p { margin: 7px 0 0; color: var(--muted); }
.comment-head, .inline-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.inline-actions { align-items: center; font-size: .75rem; }
.text-button { padding: 0; border: 0; color: var(--danger); background: transparent; font-weight: 800; }
.notification-list { display: grid; gap: 11px; }
.notification-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; border-radius: 20px; background: #fbf8fc; }
.notification-row.is-unread { background: var(--blue); box-shadow: inset 0 3px 7px rgba(255, 255, 255, .72), 0 10px 20px rgba(16, 33, 111, .08); }
.notification-row strong, .notification-row small { display: block; }
.notification-row strong { margin-top: 5px; }
.notification-row small { margin-top: 4px; color: var(--muted); }
.notification-dot { width: 12px; aspect-ratio: 1; border-radius: 50%; background: #aeb4c8; }
.notification-row.is-unread .notification-dot { background: var(--brand); box-shadow: 0 0 0 6px rgba(255, 197, 21, .18); }
.guide-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 22px; }
.guide-toc { position: sticky; top: 28px; display: grid; gap: 6px; padding: 21px; }
.guide-toc a { padding: 9px 11px; border-radius: 13px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.guide-toc a:hover { color: var(--ink); background: var(--lavender); }
.guide-sections { display: grid; gap: 22px; }
.guide-section { scroll-margin-top: 24px; }
.guide-section > h2 { font-size: 1.7rem; }
.guide-items { display: grid; gap: 14px; margin-top: 22px; }
.guide-item { padding: 20px; border-radius: 21px; background: #fbf8fc; }
.guide-item:nth-child(even) { background: var(--blue); }
.guide-item h3 { margin: 0 0 7px; font: 800 1rem/1.3 Manrope, sans-serif; }
.guide-item p { margin: 0; color: var(--muted); }
.guide-item ol { margin: 14px 0 0; padding-left: 21px; color: var(--muted); }
.guide-item li + li { margin-top: 7px; }
.d-none { display: none !important; }

@media (max-width: 1240px) {
  .app-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 22px; }
  .filter-bar.multi { grid-template-columns: 1fr 1fr 1fr; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-grid, .issue-layout { grid-template-columns: 1fr; }
  .planning-layout { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-toc { position: static; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .planning-side { position: static; }
  .backlog-item { grid-template-columns: minmax(220px, 1fr) auto auto; }
  .sprint-picker { grid-column: 1 / -1; }
}

.preference-row { display: flex; align-items: flex-start; gap: .8rem; padding: 1rem; border-radius: 18px; background: rgba(255,255,255,.5); }
.preference-row input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--navy); }
.preference-row span { display: grid; gap: .2rem; }
.participant-list { display: grid; grid-template-columns: auto 1fr; gap: .4rem .8rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(21,40,71,.12); font-size: .85rem; }
.reaction-bar { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }
.reaction-bar form { margin: 0; }
.reaction-button { border: 1px solid rgba(21,40,71,.14); background: rgba(255,255,255,.7); border-radius: 999px; padding: .3rem .55rem; cursor: pointer; box-shadow: 0 3px 8px rgba(21,40,71,.08); }
.reaction-button.is-active { background: var(--gold-soft); border-color: var(--gold); }
.jql-bar { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1rem; }
.filter-chip-row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: .8rem 0; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1rem; margin-top: 1rem; }
.custom-value-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: .7rem; margin-top: 1rem; }
.custom-value-grid span { display: grid; gap: .2rem; padding: .8rem; border-radius: 16px; background: rgba(255,255,255,.56); }
.transition-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(21,40,71,.12); }
.transition-actions form { margin: 0; }
.report-bars { display: grid; gap: .8rem; margin-top: 1rem; }
.report-bars > div { display: grid; grid-template-columns: minmax(90px, .7fr) 2fr auto; align-items: center; gap: .8rem; }
.report-bars meter { width: 100%; height: 1rem; accent-color: var(--gold); }
.token-reveal { display: grid; gap: .5rem; }
.token-reveal code { overflow-wrap: anywhere; user-select: all; font-size: .9rem; }
.calendar-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 1rem; }
.calendar-day { min-height: 150px; padding: 1rem; border-radius: 22px; background: rgba(255,255,255,.56); box-shadow: inset 0 1px rgba(255,255,255,.8); }
.calendar-day > strong { display: block; margin-bottom: .7rem; color: var(--navy); }
.calendar-day a { display: grid; gap: .15rem; margin-bottom: .5rem; padding: .55rem; border-radius: 12px; background: var(--gold-soft); }
.timeline-list { display: grid; gap: .65rem; overflow-x: auto; }
.timeline-row { display: grid; grid-template-columns: 120px minmax(360px,1fr) 140px; align-items: center; gap: .8rem; min-width: 700px; }
.timeline-row > span { display: grid; }
.timeline-track { padding: .35rem; border-radius: 999px; background: linear-gradient(90deg,rgba(21,40,71,.06),rgba(216,166,32,.12)); }
.timeline-bar { display: block; width: min(100%, 72%); padding: .55rem .9rem; border-radius: 999px; background: var(--gold-soft); color: var(--navy); box-shadow: 0 4px 12px rgba(21,40,71,.1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: #1f2a24;
  background: #fff;
  border: 2px solid var(--ink, #1f2a24);
  border-radius: 0.75rem;
  transform: translateY(-180%);
}

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

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

.guest-language-form { min-width: 11rem; }

.release-timeline { position: relative; display: grid; gap: 18px; }
.release-timeline::before { content: ""; position: absolute; top: 28px; bottom: 28px; left: 95px; width: 2px; background: linear-gradient(var(--brand), var(--lavender-strong), transparent); }
.changelog-release { position: relative; display: grid; grid-template-columns: 165px minmax(0, 1fr); gap: 26px; padding: 27px; }
.changelog-release.is-current { background: linear-gradient(135deg, rgba(255, 243, 184, .95), rgba(231, 235, 255, .94)); box-shadow: var(--shadow-yellow); }
.release-version-column { position: relative; z-index: 1; display: grid; align-content: start; justify-items: start; gap: 9px; }
.release-version-column time { color: var(--muted); font-size: .76rem; font-weight: 700; }
.version-badge { display: inline-flex; min-height: 38px; align-items: center; padding: 8px 13px; border-radius: 14px; color: var(--ink); background: var(--surface); box-shadow: 0 9px 20px rgba(16, 33, 111, .11), inset 0 2px 5px #fff; font: 800 .85rem/1 Manrope, sans-serif; }
.release-copy h2 { margin: 6px 0 8px; font: 800 1.35rem/1.2 Manrope, sans-serif; letter-spacing: -.035em; }
.release-copy p { margin: 0; color: var(--muted); }
.release-copy ul { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.release-copy li + li { margin-top: 7px; }
.app-footer a { color: var(--ink); font-weight: 800; }
.mobile-search-results { display: none; }


@media (min-width: 901px) and (max-height: 860px) {
  .sidebar { top: 16px; height: calc(100vh - 32px); padding: 18px 16px 15px; }
  .brand-logo { width: 150px; }
  .workspace-label { margin: 20px 8px 10px; }
  .nav-stack { gap: 4px; }
  .nav-link { min-height: 43px; padding: 7px 10px; }
  .nav-icon { width: 28px; height: 28px; }
  .sidebar-card { padding: 13px; border-radius: 20px; }
}

@media (max-width: 900px) {
  body.mobile-nav-open { overflow: hidden; }
  .app-shell { display: block; padding: 14px 14px calc(94px + env(safe-area-inset-bottom)); }
  .main-content { padding-top: 2px; gap: 17px; }

  .is-authenticated .sidebar {
    position: fixed;
    inset: auto 10px max(8px, env(safe-area-inset-bottom));
    width: auto;
    height: 72px;
    min-height: 0;
    overflow: hidden;
    padding: 7px 8px;
    border-radius: 24px;
    z-index: 50;
    background: rgba(255, 253, 249, .96);
    box-shadow: 0 16px 42px rgba(16, 33, 111, .18), inset 0 1px rgba(255, 255, 255, .92);
    backdrop-filter: blur(20px);
  }
  .is-authenticated .sidebar > .brand,
  .is-authenticated .workspace-label,
  .is-authenticated .sidebar-card { display: none; }
  .is-authenticated .nav-stack {
    flex: 0 0 auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    overflow: visible;
    padding: 0;
  }
  .is-authenticated .nav-stack > .nav-link:not([data-mobile-primary]) { display: none; }
  .is-authenticated .nav-link,
  .mobile-nav-toggle {
    min-width: 0;
    min-height: 58px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
    padding: 4px 2px;
    border: 0;
    border-radius: 17px;
    color: var(--muted);
    background: transparent;
    font-size: .61rem;
    font-weight: 800;
    line-height: 1.1;
  }
  .is-authenticated .nav-link:hover { transform: none; }
  .is-authenticated .nav-icon { width: 27px; height: 27px; background: transparent; }
  .is-authenticated .nav-icon svg { width: 16px; height: 16px; }
  .is-authenticated .nav-link.is-active,
  .mobile-nav-toggle.is-active { color: var(--ink); background: var(--lavender); box-shadow: inset 0 -3px 7px rgba(86, 58, 132, .09), inset 0 3px 7px rgba(255, 255, 255, .75); }
  .is-authenticated .nav-link.is-active .nav-icon,
  .mobile-nav-toggle.is-active .nav-icon { background: rgba(255, 255, 255, .58); }

  .is-authenticated .sidebar.is-mobile-open {
    inset: auto 10px max(8px, env(safe-area-inset-bottom));
    height: auto;
    max-height: calc(100dvh - 20px - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 13px;
    border-radius: 28px;
  }
  .is-authenticated .sidebar.is-mobile-open .nav-stack { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; }
  .is-authenticated .sidebar.is-mobile-open .nav-stack > .nav-link { display: grid; }
  .is-authenticated .sidebar.is-mobile-open .nav-link,
  .is-authenticated .sidebar.is-mobile-open .mobile-nav-toggle { min-height: 64px; }
  .is-authenticated .sidebar.is-mobile-open .mobile-nav-toggle { order: -1; }
  .is-authenticated .sidebar.is-mobile-open .sidebar-card { display: block; margin-top: 10px; padding: 14px; border-radius: 21px; }
  .sidebar.is-mobile-open .mobile-more-label { display: none; }
  .sidebar.is-mobile-open .mobile-close-label { display: inline; }
  .mobile-nav-scrim:not([hidden]) { position: fixed; inset: 0; z-index: 45; display: block; border: 0; background: rgba(16, 22, 51, .34); backdrop-filter: blur(3px); }

  .is-guest .app-shell { padding-bottom: 24px; }
  .is-guest .sidebar { position: relative; inset: auto; width: 100%; height: auto; display: flex; margin-bottom: 12px; padding: 13px 16px; overflow: visible; }
  .is-guest .sidebar > .brand { display: flex; }
  .is-guest .brand-logo { width: 154px; }
  .topbar { min-height: auto; align-items: flex-start; padding: 20px 2px 8px; }
  .topbar h1 { font-size: clamp(2.15rem, 8vw, 3.15rem); }
  .login-layout { grid-template-columns: 1fr; min-height: auto; }
  .login-card { order: -1; }
  .login-art { min-height: 270px; }

  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .metric-card { min-height: 130px; padding: 18px; }
  .metric-card strong { margin-block: 9px 2px; font-size: 2.05rem; }
  .metric-icon { width: 34px; height: 34px; margin-bottom: 10px; }

  .desktop-search-results { display: none; }
  .mobile-search-results { display: grid; gap: 10px; }
  .mobile-issue-result { display: grid; gap: 10px; padding: 14px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 18px; background: rgba(255, 253, 249, .86); box-shadow: 0 9px 20px rgba(16, 33, 111, .08), inset 0 1px rgba(255, 255, 255, .9); }
  .mobile-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .mobile-result-title { color: var(--ink); font: 800 .92rem/1.35 Manrope, sans-serif; }
  .mobile-result-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .mobile-result-meta > span { min-width: 0; display: grid; gap: 2px; padding: 8px; border-radius: 12px; color: var(--ink); background: rgba(231, 235, 255, .52); font-size: .72rem; overflow-wrap: anywhere; }
  .mobile-result-meta small { color: var(--muted); font-size: .58rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
}

@media (max-width: 680px) {
  :root { --radius-xl: 28px; --radius-lg: 25px; --radius-md: 20px; --radius-sm: 14px; }
  body { font-size: 15px; line-height: 1.45; }
  .app-shell { padding: 10px 10px calc(90px + env(safe-area-inset-bottom)); }
  .main-content { gap: 14px; }
  .topbar { display: grid; gap: 14px; padding: 15px 2px 5px; }
  .topbar h1 { margin-top: 7px; font-size: clamp(1.95rem, 9.4vw, 2.55rem); line-height: 1.02; letter-spacing: -.055em; }
  .title-group > p { margin-top: 9px; font-size: .9rem; line-height: 1.48; }
  .eyebrow { font-size: .62rem; }
  .btn { min-height: 44px; padding: 10px 15px; border-radius: 15px; font-size: .8rem; }
  .btn-sm { min-height: 40px; padding: 8px 12px; border-radius: 13px; font-size: .76rem; }
  .control { min-height: 46px; padding: 10px 12px; border-radius: 14px; font-size: 16px; }
  textarea.control { min-height: 108px; }
  .clay-surface, .glass-panel { border-radius: 25px; }
  .glass-lite { border-radius: 20px; }
  .glass-panel, .glass-lite, .clay-surface { box-shadow: 0 15px 34px rgba(89, 66, 112, .12), inset 0 1px 0 rgba(255, 255, 255, .9); }

  .project-grid, .form-grid, .filter-bar, .filter-bar.multi { grid-template-columns: 1fr; display: grid; gap: 12px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .metric-card { min-height: 116px; padding: 15px; border-radius: 21px; }
  .metric-card::after { width: 62px; right: -20px; bottom: -24px; border-width: 12px; }
  .metric-card > span { font-size: .72rem; line-height: 1.25; }
  .metric-card strong { margin: 7px 0 2px; font-size: clamp(1.55rem, 7vw, 1.9rem); }
  .metric-card small { display: -webkit-box; overflow: hidden; font-size: .66rem; line-height: 1.28; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .metric-icon { width: 31px; height: 31px; margin-bottom: 8px; border-radius: 10px; font-size: .8rem; }
  .section-card { padding: 17px; }
  .section-head { align-items: flex-start; gap: 12px; margin-bottom: 15px; }
  .section-head h2, .section-card h2 { font-size: 1.18rem; }
  .section-subtitle { font-size: .84rem; }
  .span-2 { grid-column: auto; }
  .project-grid { margin-top: 15px; }
  .project-card { min-height: 184px; padding: 19px; }
  .project-card:hover, .issue-card:hover, .project-row:hover, .feed-item:hover { transform: none; }
  .project-card h2 { font-size: 1.18rem; }
  .project-card p { line-height: 1.5; }
  .card-meta { padding-top: 15px; font-size: .72rem; }
  .project-row { grid-template-columns: auto minmax(0, 1fr); padding: 12px; border-radius: 16px; }
  .project-row > :last-child { grid-column: 2; }
  .feed-item { grid-template-columns: 1fr; gap: 5px; padding: 12px; border-radius: 16px; }
  .form-grid, .stack-form { gap: 13px; }
  .stack-form { margin-top: 16px; }
  .field { gap: 6px; }
  .field > span { font-size: .84rem; }
  .form-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
  .form-actions .btn { width: 100%; }
  .filter-bar .btn, .filter-bar .ghost-link { width: 100%; text-align: center; }
  .table-wrap { margin-inline: -4px; border-radius: 16px; scrollbar-width: thin; }
  .glass-table { min-width: 620px; font-size: .82rem; }
  .glass-table th, .glass-table td { padding: 11px 10px; }

  .project-hero { grid-template-columns: 1fr; gap: 17px; padding: 20px; }
  .project-hero p { margin-top: 9px; line-height: 1.5; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hero-stats span { padding: 12px 8px; border-radius: 16px; }
  .hero-stats strong { font-size: 1.3rem; }
  .kanban-board { grid-template-columns: repeat(4, minmax(min(82vw, 300px), 1fr)); gap: 12px; scroll-snap-type: x mandatory; padding-bottom: 16px; }
  .kanban-column { min-height: 390px; padding: 12px; border-radius: 23px; scroll-snap-align: start; }
  .column-dropzone { min-height: 290px; gap: 10px; }
  .issue-card { padding: 14px; border-radius: 18px; }
  .issue-layout { gap: 14px; }
  .issue-main h2 { font-size: 1.75rem; }
  .detail-list { grid-template-columns: 96px minmax(0, 1fr); gap: 10px; font-size: .83rem; }
  .comment-item, .activity-item { padding: 13px; border-radius: 16px; }

  .login-layout { gap: 14px; }
  .login-card { padding: 21px 18px; }
  .login-card h2 { font-size: 1.4rem; }
  .login-art { min-height: 220px; padding: 22px; }
  .login-art h2 { max-width: 70%; font-size: 1.85rem; }
  .login-art p { max-width: 78%; font-size: .84rem; }
  .art-board { width: 130px; inset: 22px 20px auto auto; opacity: .45; border-width: 5px; border-radius: 24px; }
  .stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .mini-stat { padding: 12px 8px; border-radius: 16px; text-align: center; }
  .mini-stat strong { font-size: 1.3rem; }
  .mini-stat span { font-size: .65rem; }

  .planning-layout, .planning-main { gap: 14px; }
  .sprint-card { padding: 17px; }
  .sprint-head, .component-card { grid-template-columns: 1fr; display: grid; gap: 12px; }
  .progress-row { grid-template-columns: 1fr auto; gap: 8px; margin: 15px 0 12px; }
  .progress-row small { grid-column: 1 / -1; }
  .backlog-item { grid-template-columns: 1fr 1fr; padding: 11px; }
  .backlog-copy, .sprint-picker { grid-column: 1 / -1; }
  .release-grid { grid-template-columns: 1fr; }
  .release-card, .component-card { padding: 17px; }
  .release-dates { gap: 7px; margin-top: 14px; }
  .link-form, .attachment-form, .notification-row { grid-template-columns: 1fr; }
  .notification-row { align-items: start; padding: 13px; }
  .guide-layout { gap: 14px; }
  .guide-toc { display: flex; overflow-x: auto; padding: 12px; gap: 5px; border-radius: 20px; }
  .guide-toc > * { flex: 0 0 auto; }
  .guide-toc a { padding: 8px 10px; font-size: .75rem; }
  .guide-section > h2 { font-size: 1.35rem; }
  .guide-items { margin-top: 15px; gap: 10px; }
  .guide-item { padding: 15px; border-radius: 17px; }
  .guide-item ol { padding-left: 18px; }

  .release-timeline { gap: 12px; }
  .release-timeline::before { display: none; }
  .changelog-release { grid-template-columns: 1fr; gap: 13px; padding: 18px; }
  .release-version-column { display: flex; align-items: center; justify-content: space-between; }
  .release-copy h2 { font-size: 1.18rem; }
  .release-copy ul { padding-left: 18px; }
  .calendar-grid { grid-template-columns: 1fr; gap: 10px; }
  .calendar-day { min-height: 120px; padding: 14px; border-radius: 18px; }
  .timeline-row { grid-template-columns: 90px minmax(300px, 1fr) 110px; min-width: 540px; font-size: .8rem; }
  .report-bars > div { grid-template-columns: 78px 1fr auto; gap: 7px; font-size: .75rem; }
  .app-footer { display: grid; gap: 5px; padding: 15px 4px 4px; text-align: center; font-size: .68rem; }
}

@media (max-width: 420px) {
  .app-shell { padding-inline: 8px; }
  .is-authenticated .sidebar { inset-inline: 7px; }
  .is-authenticated .nav-link, .mobile-nav-toggle { font-size: .57rem; }
  .is-authenticated .sidebar.is-mobile-open { inset-inline: 7px; padding: 10px; }
  .is-authenticated .sidebar.is-mobile-open .nav-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .topbar-actions { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-list { grid-template-columns: 1fr; gap: 3px; }
  .detail-list dd { margin-bottom: 8px; }
  .stats-strip { grid-template-columns: 1fr; }
  .mini-stat { text-align: left; }
  .mobile-result-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-result-meta > span:last-child { grid-column: 1 / -1; }
}

@media (max-width: 350px) {
  .metric-grid { gap: 7px; }
  .metric-card { min-height: 108px; padding: 12px; border-radius: 18px; }
  .metric-card strong { font-size: 1.45rem; }
  .metric-card small { font-size: .61rem; }
}

.app-utility-actions { position: fixed; z-index: 60; top: 14px; right: 14px; display: flex; gap: 8px; }
.utility-button { width: 42px; height: 42px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.8); border-radius: 15px; color: var(--ink); background: color-mix(in srgb, var(--surface) 90%, transparent); box-shadow: 0 10px 22px rgba(16,33,111,.13), inset 0 2px 5px rgba(255,255,255,.65); backdrop-filter: blur(16px); font-weight: 900; }
.utility-button[hidden] { display: none; }
.theme-dark-icon, [data-theme="dark"] .theme-light-icon { display: none; }
[data-theme="dark"] .theme-dark-icon { display: inline; }
.realtime-toast { position: fixed; z-index: 70; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 17px; border-radius: 18px; color: var(--ink); background: var(--mint); box-shadow: var(--shadow-mint); font-weight: 800; }
.realtime-toast[hidden] { display: none; }
.realtime-toast button { min-height: 34px; padding: 7px 11px; border: 0; border-radius: 12px; color: var(--ink); background: var(--surface); font-weight: 800; }

.rich-text-source { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.rich-text-editor { overflow: hidden; border: 1px solid rgba(75,54,91,.1); border-radius: 18px; background: var(--surface-soft); box-shadow: inset 0 3px 8px rgba(75,54,91,.06); }
.rich-text-toolbar { display: flex; flex-wrap: wrap; gap: 5px; padding: 8px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--lavender) 58%, transparent); }
.editor-tool { min-width: 35px; min-height: 35px; padding: 5px 8px; border: 0; border-radius: 11px; color: var(--ink); background: color-mix(in srgb, var(--surface) 76%, transparent); box-shadow: inset 0 2px 4px rgba(255,255,255,.45); font-weight: 900; }
.rich-text-canvas { min-height: 138px; padding: 14px 15px; color: var(--ink); outline: 0; overflow-wrap: anywhere; }
.comment-form .rich-text-canvas { min-height: 100px; }
.rich-text-canvas:focus { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--lavender-strong) 44%, transparent); }
.rich-text-content p, .rich-text-canvas p { margin: .55em 0; }
.rich-text-content ul, .rich-text-content ol, .rich-text-canvas ul, .rich-text-canvas ol { padding-left: 1.5rem; }
.rich-text-content blockquote, .rich-text-canvas blockquote { margin: .8rem 0; padding: .55rem .9rem; border-left: 4px solid var(--brand); border-radius: 8px; background: color-mix(in srgb, var(--surface) 45%, transparent); }
.rich-text-content a, .rich-text-canvas a { color: var(--brand-deep); text-decoration: underline; }
.rich-text-content { overflow-wrap: anywhere; line-height: 1.7; }
.rich-text-content pre, .rich-text-content code { white-space: pre-wrap; overflow-wrap: anywhere; }
.draft-status { display: block; min-height: 23px; padding: 5px 11px; color: var(--muted); font-size: .7rem; }
.push-preference { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 18px; padding: 18px; border-radius: 20px; background: var(--lavender); }
.push-preference > div { display: grid; gap: 4px; }
.push-preference small { color: var(--muted); }
.offline-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.offline-card { width: min(620px, 100%); display: grid; justify-items: center; gap: 18px; padding: clamp(25px, 6vw, 52px); text-align: center; }
.offline-card img { width: min(270px, 75%); }
.offline-card h1 { margin: 0; font: 800 clamp(2rem, 7vw, 3.5rem)/1.02 Manrope,sans-serif; letter-spacing: -.05em; }
.offline-card p { margin: 0; color: var(--muted); line-height: 1.7; }
.offline-mark { width: 76px; height: 76px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 26px; background: var(--yellow); box-shadow: var(--shadow-yellow); font-size: 2rem; font-weight: 900; }

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11162b;
  --surface: #1c233e;
  --surface-soft: #171d35;
  --ink: #f5f7ff;
  --muted: #b9c1df;
  --muted-soft: #8993bc;
  --brand: #ffd044;
  --brand-deep: #ffd968;
  --lavender: #282f55;
  --lavender-strong: #6979d8;
  --peach: #44391f;
  --peach-strong: #e8ad11;
  --mint: #203e38;
  --mint-strong: #55a683;
  --yellow: #463d20;
  --yellow-strong: #d9a819;
  --pink: #472937;
  --blue: #233753;
  --danger: #ff91a6;
  --line: rgba(226,232,255,.12);
  --shadow-surface: 0 24px 60px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.08);
  --shadow-lavender: 0 24px 44px rgba(0,0,0,.28), inset 0 -7px 14px rgba(0,0,0,.13), inset 0 7px 14px rgba(255,255,255,.05);
  --shadow-peach: var(--shadow-lavender);
  --shadow-mint: var(--shadow-lavender);
  --shadow-yellow: var(--shadow-lavender);
}
[data-theme="dark"] body { background: radial-gradient(circle at 100% 4%, rgba(54,70,135,.48), transparent 30rem), radial-gradient(circle at 0 88%, rgba(126,92,16,.24), transparent 28rem), var(--bg); }
[data-theme="dark"] .clay-surface, [data-theme="dark"] .glass-panel, [data-theme="dark"] .glass-lite { border-color: rgba(255,255,255,.08); background-color: rgba(28,35,62,.94); }
[data-theme="dark"] .project-row, [data-theme="dark"] .feed-item, [data-theme="dark"] .comment-item, [data-theme="dark"] .activity-item, [data-theme="dark"] .issue-card, [data-theme="dark"] .guide-item { border-color: rgba(255,255,255,.08); background: #1a213b; }
[data-theme="dark"] .glass-table td, [data-theme="dark"] .description { color: var(--muted); }
[data-theme="dark"] .glass-table tbody tr:hover { background: rgba(105,121,216,.13); }
[data-theme="dark"] .control { color: var(--ink); border-color: rgba(255,255,255,.1); background: #171d35; box-shadow: inset 0 3px 8px rgba(0,0,0,.18); }
[data-theme="dark"] .nav-icon, [data-theme="dark"] .language-form select, [data-theme="dark"] .hero-stats span, [data-theme="dark"] .column-head span, [data-theme="dark"] .reaction-button { background: rgba(255,255,255,.07); }
[data-theme="dark"] .kanban-column[data-status="todo"] { background: #20263f; }
[data-theme="dark"] .issue-key { color: #b9a4ff; }
[data-theme="dark"] .btn-danger, [data-theme="dark"] .priority-urgent, [data-theme="dark"] .type-bug { color: #ffc0cc; }
[data-theme="dark"] .is-authenticated .sidebar { background: rgba(28,35,62,.97); }

@media (max-width: 900px) {
  .app-utility-actions { top: 8px; right: 8px; }
  .utility-button { width: 38px; height: 38px; border-radius: 13px; }
  .topbar { padding-right: 84px; }
  .realtime-toast { right: 10px; bottom: calc(89px + env(safe-area-inset-bottom)); left: 10px; justify-content: space-between; }
}
@media (max-width: 680px) {
  .push-preference { align-items: stretch; flex-direction: column; padding: 14px; }
  .rich-text-canvas { min-height: 120px; padding: 12px; font-size: 16px; }
  .editor-tool { min-width: 38px; min-height: 38px; }
  .topbar-actions { width: calc(100vw - 20px); display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: none; }
  .topbar-actions::-webkit-scrollbar { display: none; }
  .topbar-actions > *, .topbar-actions .btn { width: auto; flex: 0 0 auto; scroll-snap-align: start; }
  .table-wrap:not(.desktop-search-results) { overflow: visible; margin-inline: 0; border-radius: 0; }
  .responsive-table { min-width: 0; display: block; }
  .responsive-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .responsive-table tbody { display: grid; gap: 10px; }
  .responsive-table tbody tr { min-width: 0; display: grid; gap: 0; overflow: hidden; padding: 7px 13px; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 9px 20px rgba(16,33,111,.07), inset 0 1px rgba(255,255,255,.64); }
  .responsive-table tbody td { min-width: 0; display: grid; grid-template-columns: minmax(78px, .36fr) minmax(0, 1fr); align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); overflow-wrap: anywhere; }
  .responsive-table tbody td::before { content: attr(data-label); color: var(--muted); font: 800 .58rem/1.25 Manrope,sans-serif; letter-spacing: .07em; text-transform: uppercase; }
  .responsive-table tbody td:last-child { border-bottom: 0; }
  .responsive-table tbody td[colspan] { display: block; padding: 15px 4px; border: 0; }
  .responsive-table tbody td[colspan]::before { display: none; }
  .responsive-table .user-cell { min-width: 0; }
  .responsive-table .user-cell > span:last-child { min-width: 0; overflow-wrap: anywhere; }
}
