:root {
  --navy: #062b50;
  --navy-2: #0b3d6a;
  --blue: #2f6fed;
  --sky: #eaf2ff;
  --ink: #102233;
  --muted: #6b7b8d;
  --line: #dce4ec;
  --surface: #ffffff;
  --canvas: #f4f7fa;
  --green: #168462;
  --green-soft: #e5f6f0;
  --amber: #c97713;
  --amber-soft: #fff2dd;
  --red: #c74343;
  --red-soft: #fdeaea;
  --shadow: 0 18px 48px rgba(18, 42, 66, .10);
  --shadow-sm: 0 6px 20px rgba(18, 42, 66, .08);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); }
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "DM Sans", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 7px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: #9bc2e7; }
.muted { color: var(--muted); }

.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 20px; background: radial-gradient(circle at 50% 30%, #0d477a 0, var(--navy) 44%, #031d36 100%); color: white; transition: opacity .5s ease, visibility .5s ease; }
.splash.done { opacity: 0; visibility: hidden; }
.splash-orbit { position: relative; width: 112px; height: 112px; padding: 14px; border-radius: 34px; background: white; box-shadow: 0 0 0 1px rgba(255,255,255,.16), 0 20px 50px rgba(0,0,0,.22); animation: breathe 2.1s ease-in-out infinite; }
.splash-orbit::before, .splash-orbit::after { content: ""; position: absolute; inset: -14px; border: 1px solid rgba(255,255,255,.22); border-radius: 42px; animation: orbit 3s linear infinite; }
.splash-orbit::after { inset: -28px; border-style: dashed; animation-duration: 6s; animation-direction: reverse; }
.splash-orbit img { width: 100%; height: 100%; object-fit: cover; border-radius: 22px; }
.splash-wordmark { margin-top: 12px; font-family: "Newsreader", serif; font-size: 28px; letter-spacing: .15em; text-align: center; }
.splash-wordmark span { display: block; margin-top: 4px; font-family: "DM Sans", sans-serif; font-size: 10px; letter-spacing: .32em; opacity: .68; }
.loading-line { width: 160px; height: 3px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.14); }
.loading-line i { display: block; width: 45%; height: 100%; border-radius: inherit; background: #9bc2e7; animation: loading 1.2s ease-in-out infinite; }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: translateY(-4px); } }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(340%); } }

.auth-view { min-height: 100vh; display: grid; grid-template-columns: minmax(440px, 1.08fr) minmax(420px, .92fr); }
.auth-brand { position: relative; display: flex; align-items: center; overflow: hidden; padding: 80px max(60px, 8vw); color: white; background: linear-gradient(145deg, #041f39, #0a4778); }
.auth-brand-inner { position: relative; z-index: 1; max-width: 610px; }
.auth-logo { width: 300px; margin-bottom: 76px; border-radius: 4px; mix-blend-mode: screen; filter: contrast(1.1); }
.auth-brand h1 { max-width: 590px; margin: 0 0 20px; font-family: "Newsreader", serif; font-size: clamp(44px, 5.2vw, 76px); font-weight: 600; line-height: .98; letter-spacing: -.035em; }
.auth-brand p:not(.eyebrow) { max-width: 520px; color: #c3d7e9; font-size: 17px; line-height: 1.65; }
.auth-features { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.auth-features span { padding: 9px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 99px; color: #d7e6f3; font-size: 12px; background: rgba(255,255,255,.06); backdrop-filter: blur(10px); }
.brand-rings { position: absolute; width: 570px; height: 570px; right: -240px; bottom: -210px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.025), 0 0 0 160px rgba(255,255,255,.018); }
.auth-panel { display: grid; place-items: center; padding: 50px; background: #f7f9fb; }
.auth-card { width: min(420px, 100%); padding: 42px; border: 1px solid #e3e9ef; border-radius: 24px; background: white; box-shadow: var(--shadow); }
.auth-card h2 { margin: 0 0 12px; font-family: "Newsreader", serif; font-size: 38px; line-height: 1.05; }
.auth-card > p.muted { line-height: 1.6; }
.mobile-auth-mark { display: none; width: 76px; height: 76px; object-fit: cover; margin-bottom: 24px; border-radius: 20px; }
.google-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 30px; padding: 14px 18px; border: 1px solid #cfd8e2; border-radius: 12px; color: var(--ink); font-weight: 700; background: white; transition: .2s ease; }
.google-button:hover { border-color: var(--blue); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.google-button svg { width: 21px; height: 21px; }
.auth-note { display: flex; gap: 8px; align-items: center; margin: 20px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.lock-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.denied-view { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(145deg, #eef3f8, #fff); }
.denied-card { width: min(460px, 100%); padding: 46px; text-align: center; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.denied-card > img { width: 84px; border-radius: 22px; }
.denied-icon { display: grid; place-items: center; width: 44px; height: 44px; margin: 25px auto 12px; color: var(--amber); font-size: 22px; font-weight: 800; border-radius: 50%; background: var(--amber-soft); }
.denied-card h1 { margin: 0; font-family: "Newsreader", serif; font-size: 36px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); background: var(--canvas); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 17px 18px; color: #d6e3ef; background: linear-gradient(180deg, #062b50 0%, #041f39 100%); }
.sidebar-logo { display: flex; align-items: center; gap: 12px; padding: 0 10px 30px; }
.sidebar-logo img { width: 43px; height: 43px; border-radius: 13px; object-fit: cover; }
.sidebar-logo div { display: flex; flex-direction: column; }
.sidebar-logo strong { font-family: "Newsreader", serif; color: white; font-size: 20px; letter-spacing: .08em; }
.sidebar-logo span { color: #87aac9; font-size: 8px; font-weight: 700; letter-spacing: .28em; }
.sidebar nav { display: grid; gap: 6px; }
.nav-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: #9eb7cd; text-align: left; border: 0; border-radius: 11px; background: transparent; transition: .18s ease; }
.nav-item:hover, .nav-item.active { color: white; background: rgba(255,255,255,.1); }
.nav-item.active { box-shadow: inset 3px 0 #7fb3e1; }
.nav-icon { width: 20px; font-size: 18px; text-align: center; }
.sidebar-spacer { flex: 1; }
.install-card { display: flex; align-items: center; gap: 11px; margin: 0 3px 15px; padding: 13px; text-align: left; color: white; border: 1px solid rgba(255,255,255,.11); border-radius: 13px; background: rgba(255,255,255,.06); }
.install-card > span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 9px; background: rgba(255,255,255,.12); }
.install-card div { display: flex; flex-direction: column; }
.install-card strong { font-size: 12px; }
.install-card small { margin-top: 2px; color: #8daac4; font-size: 9px; }
.sidebar-user { display: grid; grid-template-columns: 37px 1fr 28px; align-items: center; gap: 9px; padding: 15px 7px 2px; border-top: 1px solid rgba(255,255,255,.09); }
.sidebar-user img { width: 37px; height: 37px; border-radius: 50%; object-fit: cover; background: #456783; }
.sidebar-user div { min-width: 0; display: flex; flex-direction: column; }
.sidebar-user strong, .sidebar-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user strong { color: white; font-size: 11px; }
.sidebar-user span { margin-top: 2px; color: #809cb5; font-size: 9px; }
.sidebar-user button { color: #88a5bf; border: 0; background: transparent; }

.workspace { min-width: 0; padding: 28px 34px 50px; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-family: "Newsreader", serif; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.02em; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.primary-button, .secondary-button, .ghost-button { min-height: 42px; padding: 10px 16px; border-radius: 11px; font-weight: 700; border: 1px solid transparent; transition: .18s ease; }
.primary-button { color: white; background: var(--navy); box-shadow: 0 6px 15px rgba(6,43,80,.16); }
.primary-button:hover { transform: translateY(-1px); background: var(--navy-2); }
.secondary-button { color: var(--ink); border-color: var(--line); background: white; }
.danger-icon-button { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: #a73737; border: 1px solid #edc9c9; border-radius: 10px; background: #fff5f5; transition: .18s ease; }
.danger-icon-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.danger-icon-button:hover { border-color: #c95a5a; background: #fdeaea; }
.danger-icon-button:disabled { opacity: .55; cursor: wait; }
.ghost-button { color: var(--navy); border-color: #cdd9e5; background: rgba(255,255,255,.66); }
.ghost-button:hover, .secondary-button:hover { border-color: var(--navy); }

.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 13px; margin-bottom: 27px; }
.summary-card { min-height: 104px; display: grid; grid-template-columns: 42px 1fr; gap: 13px; align-items: center; padding: 18px; border: 1px solid #e1e8ef; border-radius: 16px; background: white; box-shadow: 0 4px 12px rgba(18,42,66,.035); }
.summary-card small { grid-column: 2; margin-top: -13px; color: #8a98a7; font-size: 10px; }
.summary-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-weight: 700; }
.summary-icon.navy { color: var(--navy); background: #e8eff5; }
.summary-icon.amber { color: var(--amber); background: var(--amber-soft); }
.summary-icon.green { color: var(--green); background: var(--green-soft); }
.summary-icon.blue { color: var(--blue); background: var(--sky); }
.summary-card div:not(.summary-icon):not(.avatar-stack) { display: flex; flex-direction: column; }
.summary-card strong { font-size: 24px; line-height: 1; }
.summary-card span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.team-card { grid-template-columns: 42px 1fr auto; }
.avatar-stack { display: flex; flex-direction: row-reverse; justify-content: flex-end; }
.avatar-stack img, .avatar-mini { width: 28px; height: 28px; margin-left: -7px; object-fit: cover; border: 2px solid white; border-radius: 50%; background: #d7e1ea; }
.avatar-mini.initials { display: inline-grid; place-items: center; color: white; font-size: 9px; font-weight: 700; background: var(--navy-2); }

.board-section { padding: 22px 0 0; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 17px; }
.section-heading h2 { margin: 0 0 4px; font-size: 19px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 11px; }
.board-controls { display: flex; align-items: center; gap: 8px; }
.search-box { height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.search-box input { width: 150px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.icon-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 10px; color: var(--navy); background: white; }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(230px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding: 0 2px 20px; scroll-snap-type: x proximity; }
.pipeline-column { min-height: 300px; padding: 11px; border: 1px solid #e2e9ef; border-radius: 15px; background: #edf2f6; scroll-snap-align: start; }
.pipeline-column.drag-over { outline: 2px dashed var(--blue); outline-offset: -5px; background: #e8f0fd; }
.column-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 4px 12px; }
.column-title { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status-dot.todo { background: #718092; }.status-dot.in-progress { background: var(--blue); }.status-dot.need-help { background: var(--amber); }.status-dot.incomplete { background: var(--red); }.status-dot.completed { background: var(--green); }
.task-count { min-width: 23px; height: 23px; display: grid; place-items: center; color: var(--muted); font-size: 10px; border-radius: 8px; background: white; }
.task-list { display: grid; gap: 9px; min-height: 235px; }
.task-card { padding: 14px; border: 1px solid #dfe6ed; border-radius: 12px; background: white; box-shadow: 0 3px 8px rgba(17,40,63,.045); cursor: pointer; transition: .18s ease; }
.task-card:hover { transform: translateY(-2px); border-color: #b9c9d8; box-shadow: var(--shadow-sm); }
.task-card.dragging { opacity: .45; transform: rotate(2deg); }
.task-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.priority-pill { padding: 4px 7px; border-radius: 6px; color: #526578; font-size: 8px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; background: #edf1f5; }
.priority-pill.high { color: #a5610b; background: var(--amber-soft); }.priority-pill.urgent { color: #ab3434; background: var(--red-soft); }.priority-pill.low { color: #55708b; background: #eef5fb; }
.task-menu-dot { color: #a1adba; }
.task-card h3 { margin: 0 0 7px; font-size: 13px; line-height: 1.35; }
.task-card p { display: -webkit-box; overflow: hidden; margin: 0 0 12px; color: var(--muted); font-size: 10px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.task-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid #edf1f4; }
.task-due { color: #718092; font-size: 9px; }
.task-due.overdue { color: var(--red); font-weight: 700; }
.card-assignees { display: flex; flex-direction: row-reverse; }
.card-assignees .avatar-mini { width: 25px; height: 25px; }
.empty-column { padding: 34px 8px; color: #9aa8b6; font-size: 10px; text-align: center; border: 1px dashed #ccd6df; border-radius: 10px; }
.empty-board { padding: 60px; text-align: center; }
.empty-board > div { color: #9db0c1; font-size: 36px; }.empty-board h3 { margin: 8px 0 4px; }.empty-board p { margin: 0; color: var(--muted); }

.modal { width: min(650px, calc(100vw - 30px)); max-height: calc(100vh - 30px); padding: 0; overflow: auto; border: 0; border-radius: 20px; color: var(--ink); background: white; box-shadow: 0 28px 90px rgba(7,25,42,.28); }
.modal::backdrop { background: rgba(3,22,39,.57); backdrop-filter: blur(5px); }
.modal form, .staff-modal { padding: 28px; }
.modal-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin-bottom: 24px; }
.modal-head h2 { margin: 0; font-family: "Newsreader", serif; font-size: 31px; }
.modal-head-actions { display: flex; align-items: center; gap: 8px; }
.close-button { width: 34px; height: 34px; flex: 0 0 auto; display: grid; place-items: center; border: 0; border-radius: 10px; color: #6d7c8b; font-size: 24px; background: #edf2f6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field > span, .assignee-picker legend, .detail-label { color: #5c6d7d; font-size: 10px; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.field input, .field textarea, .field select, .status-field select { width: 100%; padding: 12px 13px; border: 1px solid #d7e0e8; border-radius: 10px; outline: 0; color: var(--ink); background: #fbfcfd; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,111,237,.09); }
.field textarea { resize: vertical; }
.assignee-picker { margin: 2px 0 0; padding: 0; border: 0; }
.assignee-picker legend { width: 100%; margin-bottom: 9px; }
.assignee-picker legend small { float: right; color: #93a0ad; font-size: 9px; font-weight: 500; text-transform: none; letter-spacing: 0; }
.assignee-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 190px; overflow: auto; padding: 2px; }
.assignee-option { display: flex; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.assignee-option:has(input:checked) { border-color: var(--blue); background: var(--sky); }
.assignee-option input { accent-color: var(--navy); }
.assignee-option div { display: flex; flex-direction: column; min-width: 0; }
.assignee-option strong { font-size: 11px; }.assignee-option small { overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 24px; }

.staff-modal { width: min(760px, calc(100vw - 30px)); }
.staff-form { display: grid; grid-template-columns: 1fr 1.25fr .85fr auto; align-items: end; gap: 10px; margin: 0 -28px; padding: 18px 28px !important; background: #f5f8fa; border-block: 1px solid var(--line); }
.staff-list-head { display: flex; justify-content: space-between; margin: 24px 0 10px; font-size: 12px; }
.staff-list-head span { color: var(--muted); }
.staff-list { display: grid; gap: 8px; }
.staff-row { display: grid; grid-template-columns: 38px 1.3fr 1fr auto; gap: 11px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 11px; }
.staff-row > img, .staff-avatar { width: 38px; height: 38px; display: grid; place-items: center; object-fit: cover; border-radius: 50%; color: white; font-size: 11px; font-weight: 700; background: var(--navy-2); }
.staff-row div { min-width: 0; display: flex; flex-direction: column; }
.staff-row strong, .staff-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.staff-row strong { font-size: 11px; }.staff-row span { color: var(--muted); font-size: 9px; }
.staff-status { color: var(--green); font-size: 9px; font-weight: 700; }
.staff-status.inactive { color: var(--red); }
.toggle-button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 9px; background: white; }

.detail-modal { width: min(1000px, calc(100vw - 24px)); height: min(720px, calc(100vh - 24px)); overflow: hidden; }
.detail-layout { height: 100%; display: grid; grid-template-columns: .9fr 1.1fr; }
.detail-main { overflow: auto; padding: 28px; border-right: 1px solid var(--line); }
.detail-content { display: grid; gap: 24px; }
.detail-block p { margin: 8px 0 0; color: #44596c; font-size: 13px; line-height: 1.7; white-space: pre-wrap; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 11px; background: #f2f6f9; }
.detail-grid strong { font-size: 12px; }
.detail-assignees { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.assignee-chip { display: flex; align-items: center; gap: 6px; padding: 6px 9px 6px 6px; border-radius: 99px; color: #334b60; font-size: 9px; background: #edf3f7; }
.assignee-chip .avatar-mini { margin: 0; }
.detail-assignee-editor { grid-template-columns: 1fr; max-height: 190px; margin-top: 9px; }
.assignment-save { width: 100%; margin-top: 9px; }
.status-field { margin-top: auto; }
.chat-panel { min-height: 0; display: grid; grid-template-rows: auto 1fr auto auto; background: #f6f8fa; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 23px 24px 17px; border-bottom: 1px solid var(--line); background: white; }
.chat-head h3 { margin: 0; font-size: 15px; }.chat-head p { margin: 4px 0 0; color: var(--muted); font-size: 9px; }
.live-pill { color: var(--green); font-size: 9px; font-weight: 700; }
.message-list { overflow-y: auto; display: flex; flex-direction: column; gap: 13px; padding: 20px 24px; }
.message-empty { margin: auto; max-width: 250px; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.message { display: grid; grid-template-columns: 30px 1fr; gap: 9px; align-items: start; }
.message.own { grid-template-columns: 1fr 30px; }
.message.own .message-avatar { grid-column: 2; }.message.own .message-body { grid-column: 1; grid-row: 1; align-items: flex-end; }
.message-avatar { width: 30px; height: 30px; display: grid; place-items: center; object-fit: cover; border-radius: 50%; color: white; font-size: 9px; background: var(--navy); }
.message-body { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.message-info { margin: 0 4px 4px; color: #7a8997; font-size: 8px; }
.message-bubble { max-width: 88%; padding: 9px 11px; border-radius: 5px 13px 13px 13px; color: #32485b; font-size: 10px; line-height: 1.55; background: white; box-shadow: 0 2px 6px rgba(18,42,66,.06); white-space: pre-wrap; word-break: break-word; }
.own .message-bubble { color: white; border-radius: 13px 5px 13px 13px; background: var(--navy-2); }
.message-photo { display: block; width: min(260px, 100%); margin-bottom: 6px; border-radius: 10px; cursor: zoom-in; }
.photo-preview { position: relative; width: 84px; margin: 0 24px 8px; }
.photo-preview img { width: 84px; height: 64px; object-fit: cover; border-radius: 9px; }
.photo-preview button { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%; color: white; background: var(--red); }
.message-form { display: grid !important; grid-template-columns: auto 1fr auto; gap: 8px; align-items: end; padding: 13px 18px !important; border-top: 1px solid var(--line); background: white; }
.attach-button input { display: none; }
.attach-button, .send-button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; }
.attach-button { color: var(--navy); background: #edf2f6; cursor: pointer; }
.send-button { color: white; background: var(--navy); }
.message-form textarea { min-height: 38px; max-height: 100px; padding: 10px 12px; resize: none; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #f8fafb; }

.install-banner { position: fixed; z-index: 30; right: 22px; bottom: 22px; width: min(430px, calc(100vw - 30px)); display: grid; grid-template-columns: 45px 1fr auto auto; align-items: center; gap: 11px; padding: 12px; border: 1px solid #d3dee8; border-radius: 15px; background: white; box-shadow: var(--shadow); }
.install-banner img { width: 45px; height: 45px; object-fit: cover; border-radius: 11px; }
.install-banner div { display: flex; flex-direction: column; }.install-banner strong { font-size: 11px; }.install-banner span { color: var(--muted); font-size: 9px; }
.install-banner .primary-button { min-height: 36px; padding: 8px 12px; font-size: 10px; }
.install-banner .close-button { width: 28px; height: 28px; font-size: 18px; }
.toast { position: fixed; z-index: 1100; left: 50%; bottom: 28px; opacity: 0; transform: translate(-50%, 18px); padding: 11px 16px; border-radius: 10px; color: white; font-size: 11px; background: #0f2538; box-shadow: var(--shadow); pointer-events: none; transition: .25s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: #a73737; }
.mobile-nav { display: none; }

@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .workspace { padding-inline: 24px; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pipeline { grid-template-columns: repeat(5, 245px); }
  .staff-form { grid-template-columns: 1fr 1fr; }
  .staff-form .primary-button { align-self: end; }
}

@media (max-width: 800px) {
  .auth-view { grid-template-columns: 1fr; background: linear-gradient(160deg, #062b50 0 38%, #f7f9fb 38%); }
  .auth-brand { display: none; }
  .auth-panel { padding: 30px 20px; background: transparent; }
  .auth-card { padding: 30px 24px; }
  .mobile-auth-mark { display: block; }
  .app-shell { display: block; padding-bottom: 74px; }
  .sidebar { display: none; }
  .workspace { padding: 20px 16px 28px; }
  .topbar { align-items: flex-start; }
  .top-actions .ghost-button, .top-actions .primary-button { display: none; }
  .summary-grid { gap: 9px; }
  .summary-card { min-height: 92px; padding: 14px; }
  .team-card { grid-template-columns: 42px 1fr; }.team-card .avatar-stack { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .board-controls { width: 100%; }.search-box { flex: 1; }.search-box input { width: 100%; }
  .pipeline { margin-inline: -16px; padding-inline: 16px; grid-template-columns: repeat(5, min(82vw, 300px)); }
  .mobile-nav { position: fixed; z-index: 20; bottom: 0; left: 0; right: 0; display: flex; align-items: stretch; justify-content: space-around; padding: 7px 12px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(16px); }
  .mobile-nav-item { min-width: 60px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px; color: #788797; font-size: 8px; border: 0; background: transparent; }.mobile-nav-item span { font-size: 17px; }.mobile-nav-item.active { color: var(--navy); font-weight: 700; }
  .mobile-create { width: 48px; height: 48px; margin-top: -20px; border: 4px solid var(--canvas); border-radius: 50%; color: white; font-size: 25px; background: var(--navy); box-shadow: 0 6px 15px rgba(6,43,80,.25); }
  .detail-modal { width: 100vw; height: 100dvh; max-height: none; border-radius: 0; }
  .detail-layout { grid-template-columns: 1fr; grid-template-rows: auto minmax(420px,1fr); overflow-y: auto; }
  .detail-main { overflow: visible; border: 0; border-bottom: 1px solid var(--line); }
  .chat-panel { min-height: 540px; }
  .message-list { min-height: 280px; }
  .install-banner { right: 15px; bottom: 82px; grid-template-columns: 40px 1fr auto; }.install-banner img { width: 40px; height: 40px; }.install-banner .close-button { display: none; }
}

@media (max-width: 520px) {
  .topbar h1 { font-size: 34px; }
  .summary-grid { grid-template-columns: 1fr 1fr; }
  .summary-card { grid-template-columns: 36px 1fr; gap: 10px; padding: 12px; }.summary-icon { width: 36px; height: 36px; }.summary-card strong { font-size: 20px; }.summary-card small { display: none; }
  .form-grid, .assignee-options { grid-template-columns: 1fr; }
  .modal { width: calc(100vw - 18px); max-height: calc(100dvh - 18px); }.modal form, .staff-modal { padding: 22px 18px; }
  .staff-form { grid-template-columns: 1fr; margin-inline: -18px; padding-inline: 18px !important; }
  .staff-row { grid-template-columns: 34px 1fr auto; }.staff-row > div:nth-of-type(2) { display: none; }
  .detail-main { padding: 21px 18px; }.chat-head, .message-list { padding-inline: 18px; }
  .install-banner span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
