:root {
  --bg:#f7f8fa;
  --surface:#fff;
  --text:#202834;
  --muted:#78818f;
  --line:#e6e9ee;
  --blue:#315bce;
  --blue-soft:#edf2ff;
  --green:#258466;
  --radius:10px;
  --sidebar:216px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  font-size:14px;
  color:var(--text);
  background:var(--bg);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
a {
  color:var(--blue);
  text-decoration:none
}
a:hover {
  text-decoration:underline
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea,summary {
  touch-action:manipulation
}
button {
  cursor:pointer
}
button:disabled {
  cursor:wait;
  opacity:.6
}
a,button,input,select,textarea,summary {
  outline-offset:4px
}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #7899ff
}
svg {
  width:19px;
  height:19px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
h1,h2,h3,p {
  margin-top:0
}
h1 {
  font-size:28px;
  font-weight:650;
  letter-spacing:-.7px;
  margin-bottom:7px;
  line-height:1.25
}
h2 {
  font-size:16px;
  font-weight:650;
  letter-spacing:-.15px;
  margin-bottom:16px
}
h3 {
  font-size:17px
}
p {
  line-height:1.65
}
small {
  font-size:12px
}
.muted,.help {
  color:var(--muted)
}
.help {
  font-size:12px;
  line-height:1.6;
  margin:8px 0
}
.preserve {
  white-space:pre-wrap;
  overflow-wrap:anywhere
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0)
}
.skip-link {
  position:fixed;
  left:240px;
  top:-100px;
  z-index:20;
  padding:14px;
  background:white
}
.skip-link:focus {
  top:8px
}
.sidebar {
  position:fixed;
  inset:0 auto 0 0;
  width:var(--sidebar);
  background:#fff;
  border-right:1px solid var(--line);
  padding:28px 15px 0;
  display:flex;
  flex-direction:column;
  z-index:5
}
.brand {
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  padding:0 8px;
  margin-bottom:43px;
  font-weight:650;
  font-size:15px;
  white-space:nowrap
}
.brand:hover {
  text-decoration:none
}
.brand small {
  display:block;
  font-weight:400;
  color:var(--muted);
  font-size:11px;
  margin-top:4px
}
.brand-mark {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  position:relative;
  flex-shrink:0;
  width:37px;
  height:37px;
  border-radius:10px;
  background:var(--blue);
  color:white;
  font-weight:750;
  font-size:22px;
  letter-spacing:-2px
}
.brand-mark span {
  color:#ffd183;
  position:absolute;
  font-size:17px;
  right:4px;
  top:0
}
.nav-caption {
  font-size:9px;
  letter-spacing:1.05px;
  font-weight:650;
  color:#969da8;
  padding:0 12px;
  margin-bottom:13px
}
.nav-link {
  display:flex;
  align-items:center;
  gap:11px;
  color:#677180;
  min-height:44px;
  padding:11px 12px;
  border-radius:7px;
  margin-bottom:5px;
  font-size:13px;
  font-weight:500
}
.nav-link:hover {
  background:#f6f8fc;
  text-decoration:none
}
.nav-link.selected {
  color:var(--blue);
  background:var(--blue-soft);
  font-weight:600
}
.sidebar-footer {
  margin-top:auto;
  padding-bottom:12px
}
.profile {
  border-top:1px solid var(--line);
  margin-top:17px;
  padding:19px 4px 0;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:12px
}
.profile small {
  display:block;
  font-size:10px;
  color:var(--muted);
  margin-top:4px
}
.profile form {
  margin-left:auto
}
.avatar,.mini-avatar {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f0eee9;
  color:#78715f;
  border:1px solid #e8e5df;
  border-radius:50%;
  flex-shrink:0
}
.avatar {
  height:32px;
  width:32px;
  font-size:12px;
  font-weight:600
}
.mini-avatar {
  width:21px;
  height:21px;
  font-size:9px;
  margin-right:6px;
  vertical-align:middle
}
.icon-button {
  padding:7px;
  border:0;
  background:transparent;
  color:#8a929f;
  display:flex
}
.workspace {
  margin-left:var(--sidebar);
  min-width:0
}
.topbar {
  height:65px;
  background:white;
  border-bottom:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 30px;
  font-size:12px;
  color:#687282
}
.breadcrumb span {
  padding:0 13px;
  color:#c3c8d1
}
.workspace-label {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
  color:#8a929c
}
.status-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#47a78a
}
main#content {
  padding:29px 30px 45px;
  max-width:1920px;
  margin:auto
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:20px;
  margin-bottom:25px
}
.page-heading p {
  font-size:13px;
  color:var(--muted);
  margin-bottom:0
}
.heading-actions {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding-top:1px
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:38px;
  padding:9px 14px;
  border:1px solid #dce1e8;
  background:#fff;
  color:#475366;
  border-radius:7px;
  font-size:12px;
  font-weight:550;
  line-height:1.35;
  white-space:nowrap
}
.button:hover {
  background:#f8faff;
  text-decoration:none;
  border-color:#c7d3ef
}
.button.primary {
  background:var(--blue);
  border-color:var(--blue);
  color:white;
  box-shadow:0 1px 2px #193b8015
}
.button.primary:hover {
  background:#264db8
}
.button.small {
  min-height:32px;
  padding:6px 10px;
  font-size:11px
}
.full-width {
  width:100%
}
.quiet-link {
  font-size:12px;
  color:#6b7890
}
.text-button {
  background:transparent;
  border:0;
  color:var(--muted);
  min-height:40px;
  padding:8px 0
}
.notice,.demo-banner {
  padding:11px 14px;
  border-radius:7px;
  background:#edf3ff;
  border:1px solid #dce5fc;
  font-size:12px;
  margin-bottom:18px;
  line-height:1.6
}
.notice.success {
  background:#edf8f2;
  border-color:#d3eddf;
  color:#32795c
}
.notice.error {
  background:#fff1f0;
  border-color:#f1d6d3;
  color:#aa4840
}
.demo-banner {
  color:#8a7448;
  border-color:#ece3cc;
  background:#faf6eb;
  font-size:11px
}
.errorlist {
  margin:7px 0 14px;
  padding-left:18px;
  color:#b34a43;
  font-size:12px;
  line-height:1.6
}
.field-error {
  font-size:12px;
  color:#b34a43;
  margin:6px 0 0
}
.stats {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:16px;
  margin-bottom:24px
}
.stat {
  background:#fff;
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:20px
}
.stat>span {
  display:block;
  color:#6f7886;
  font-size:12px;
  margin-bottom:16px
}
.stat strong {
  display:block;
  font-weight:650;
  font-size:29px;
  letter-spacing:-.7px;
  line-height:1.1;
  margin-bottom:10px
}
.stat em {
  font-style:normal;
  font-size:19px;
  font-weight:400;
  color:#b1b8c2
}
.stat small {
  font-size:10px;
  color:#969daa
}
.filter-bar {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-bottom:27px
}
.filter-bar input,.filter-bar select {
  background:#fff;
  min-height:37px;
  font-size:11px;
  border-color:#e0e4eb;
  margin:0;
  max-width:220px
}
.filter-bar .search {
  flex:1;
  min-width:180px;
  max-width:330px
}
.filter-bar .search input {
  width:100%;
  max-width:none;
  padding-left:12px
}
.filter-bar .button {
  min-height:37px;
  font-size:11px
}
.task-section {
  margin-bottom:29px
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:15px
}
.section-heading h2 {
  margin:0;
  display:flex;
  align-items:center;
  gap:8px;
  font-size:15px
}
.section-heading .muted {
  font-size:11px
}
.count {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:22px;
  height:21px;
  padding:0 6px;
  font-size:10px;
  font-weight:500;
  background:#edf0f4;
  border:1px solid #e8ebf0;
  color:#85909f;
  border-radius:5px;
  margin-left:3px
}
.card-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(235px,1fr));
  gap:14px
}
.partner-card {
  background:#fff;
  border:1px solid #e1e5ec;
  border-radius:9px;
  padding:17px 16px 0;
  min-width:0;
  box-shadow:0 2px 3px #23344c02
}
.partner-card:hover {
  border-color:#c8d3e6;
  box-shadow:0 3px 10px #23344c05
}
.card-top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:12px
}
.priority {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font-size:10px;
  font-weight:550;
  line-height:1.4;
  border-radius:4px;
  padding:3px 7px;
  white-space:nowrap;
  background:#f0f2f5;
  color:#8b929d
}
.priority:before {
  content:"";
  height:4px;
  width:4px;
  border-radius:50%;
  background:currentColor
}
.priority.now {
  color:#288565;
  background:#edf7f1
}
.priority.clarify {
  color:#b28835;
  background:#fbf5e7
}
.priority.later {
  color:#85909e;
  background:#f0f2f5
}
.reply-dot {
  width:7px;
  height:7px;
  background:#4e79df;
  border-radius:50%;
  display:inline-block;
  flex-shrink:0
}
.card-title {
  font-size:14px;
  font-weight:650;
  line-height:1.5;
  color:#293344;
  display:block;
  overflow-wrap:anywhere
}
.card-location {
  font-size:11px;
  color:#8b94a1;
  margin:5px 0 12px
}
.tags {
  display:flex;
  flex-wrap:wrap;
  gap:5px
}
.tag {
  display:inline-flex;
  font-size:10px;
  background:#f5f6f9;
  border:1px solid #eceef3;
  border-radius:4px;
  color:#7d8798;
  padding:3px 6px
}
.card-reason {
  font-size:11px;
  line-height:1.65;
  color:#7f8895;
  margin:12px 0 13px;
  min-height:34px
}
.card-volume {
  font-size:10px;
  color:#5f6e82;
  margin-bottom:15px
}
.card-footer {
  border-top:1px solid #f0f1f4;
  padding:12px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#949ca8;
  font-size:9px;
  gap:5px
}
.card-action {
  border-top:1px solid var(--line);
  padding:12px 0;
  font-size:11px;
  color:#53647d;
  display:flex;
  justify-content:space-between;
  gap:12px
}
.card-action small {
  white-space:nowrap;
  font-size:10px;
  color:#8b95a4
}
.contact-stop {
  color:#b35b56;
  font-size:11px;
  margin:10px 0
}
.info-strip {
  display:flex;
  align-items:center;
  gap:13px;
  background:#f0f3f8;
  border:1px solid #e7ebf2;
  padding:13px 17px;
  border-radius:8px;
  color:#8390a4
}
.info-strip>span {
  font-size:19px
}
.info-strip p {
  font-size:11px;
  margin:0;
  line-height:1.6
}
.empty-state {
  background:#fff;
  border:1px dashed #dce2eb;
  border-radius:9px;
  padding:40px 24px;
  text-align:center;
  color:#536176
}
.empty-state h3 {
  font-size:16px;
  margin-bottom:10px
}
.empty-state p {
  font-size:12px;
  color:#8a94a2;
  max-width:450px;
  margin:0 auto 20px
}
.empty-icon {
  color:var(--blue);
  font-size:24px;
  line-height:1;
  margin-bottom:15px
}
.empty-state.compact {
  padding:28px 16px;
  border:0
}
.empty-state.compact p {
  margin-bottom:0
}
.board-meta {
  display:flex;
  justify-content:space-between;
  color:#8993a1;
  font-size:11px;
  margin-bottom:18px;
  gap:10px
}
.board-meta a {
  color:#8993a1;
  margin-left:18px
}
.kanban {
  display:flex;
  gap:14px;
  overflow-x:auto;
  align-items:flex-start;
  padding-bottom:20px;
  min-height:400px;
  scrollbar-width:thin
}
.kanban-column {
  width:252px;
  min-width:252px;
  max-width:252px;
  border-radius:9px;
  background:#eef1f5;
  padding:0 8px 12px;
  transition:background .1s
}
.column-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:6px;
  padding:14px 5px 16px
}
.column-heading h2 {
  font-size:11px;
  display:flex;
  align-items:center;
  gap:7px;
  margin:0;
  white-space:nowrap
}
.column-heading .count {
  border:0;
  background:#e4e8ee;
  font-size:9px
}
.stage-dot {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#a0abba;
  display:inline-block
}
.stage-dot.ready {
  background:#819cce
}
.stage-dot.contacted {
  background:#d8ae5d
}
.stage-dot.dialogue {
  background:#9a8dcc
}
.stage-dot.connecting {
  background:#699cbe
}
.stage-dot.active {
  background:#62a58a
}
.column-cards {
  display:flex;
  flex-direction:column;
  gap:10px;
  min-height:100px
}
.kanban .partner-card {
  padding:14px 12px 0;
  cursor:grab
}
.kanban .card-title {
  font-size:12px
}
.kanban .card-reason {
  font-size:10px
}
.kanban .tag {
  font-size:9px
}
.kanban .card-footer {
  font-size:9px
}
.kanban .card-location {
  font-size:10px
}
.column-empty {
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:100px;
  color:#a6aeba;
  font-size:10px;
  border:1px dashed #dce1e9;
  border-radius:7px
}
.drop-target {
  background:#e0e8fb;
  outline:2px dashed #93a9df;
  outline-offset:-2px
}
.dragging {
  opacity:.35
}
.stage-pill,.badge {
  display:inline-flex;
  align-items:center;
  line-height:1.4;
  font-size:11px;
  border:1px solid #e5e9ef;
  background:#f5f7f9;
  color:#7b8798;
  padding:5px 9px;
  border-radius:5px
}
.stage-pill.dialogue,.badge.blue {
  background:#f1effb;
  border-color:#e7e1f6;
  color:#8d7fbd
}
.stage-pill.active {
  background:#edf7f2;
  border-color:#daede2;
  color:#3c9473
}
.stage-pill.contacted {
  background:#fff8ea;
  border-color:#f0e5ca;
  color:#ba9453
}
.badge.red {
  color:#af5d58;
  background:#fff1ef;
  border-color:#eed7d4
}
.partner-list {
  border:1px solid var(--line);
  background:white;
  border-radius:9px;
  overflow:hidden
}
.list-head,.list-row {
  display:grid;
  grid-template-columns:1.4fr 1fr .8fr 1.1fr;
  gap:20px;
  padding:18px 22px;
  align-items:center
}
.list-head {
  background:#fafbfd;
  color:#8a93a0;
  font-size:10px;
  border-bottom:1px solid var(--line)
}
.list-row {
  color:#49566b;
  border-bottom:1px solid #edf0f5;
  font-size:11px;
  min-height:94px
}
.list-row:last-child {
  border-bottom:0
}
.list-row:hover {
  background:#fafcff;
  text-decoration:none
}
.list-row strong {
  font-size:12px;
  font-weight:600
}
.list-row small {
  display:block;
  font-size:10px;
  color:#949ca8;
  margin-top:8px;
  line-height:1.4
}
.list-row>div {
  min-width:0;
  overflow-wrap:anywhere
}
.pagination {
  display:flex;
  justify-content:center;
  align-items:center;
  gap:18px;
  margin-top:22px;
  font-size:12px;
  color:var(--muted)
}
.detail-badges {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:-6px;
  margin-bottom:22px
}
.detail-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 350px;
  gap:20px;
  max-width:1320px
}
.panel {
  background:white;
  border:1px solid var(--line);
  border-radius:9px;
  padding:24px;
  margin-bottom:18px;
  min-width:0
}
.panel>p:last-child {
  margin-bottom:0
}
.panel p {
  font-size:13px
}
.details {
  display:grid;
  grid-template-columns:155px minmax(0,1fr);
  column-gap:22px;
  row-gap:15px;
  margin:20px 0 0;
  font-size:12px;
  line-height:1.6
}
.details dt {
  color:#8a94a3
}
.details dd {
  margin:0;
  overflow-wrap:anywhere;
  white-space:pre-wrap
}
.contact-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  border-top:1px solid #edf0f4;
  padding:15px 0;
  min-width:0
}
.contact-row:first-of-type {
  border-top:0;
  padding-top:0
}
.contact-row:last-child {
  padding-bottom:0
}
.contact-row>div {
  min-width:0
}
.contact-row strong {
  font-size:12px
}
.contact-row small {
  display:block;
  color:#919aa7;
  font-size:10px;
  margin:6px 0
}
.contact-row a {
  font-size:12px;
  overflow-wrap:anywhere
}
.volume-large {
  font-size:19px;
  font-weight:600;
  letter-spacing:-.3px;
  margin:10px 0
}
.source {
  border-top:1px solid #edf0f4;
  padding-top:15px;
  margin-top:15px
}
.source a {
  font-size:12px;
  font-weight:550;
  overflow-wrap:anywhere
}
.source small {
  display:block;
  font-size:10px;
  color:#9aa2ad;
  margin-top:7px
}
.source p {
  margin-top:8px;
  font-size:12px
}
.next-action {
  background:#f1f5ff;
  border-color:#dfe7fb
}
.eyebrow {
  font-size:9px;
  letter-spacing:1.2px;
  color:#8193b4;
  font-weight:650;
  margin-bottom:12px
}
.next-action h2 {
  font-size:16px;
  line-height:1.5
}
.next-action p {
  font-size:12px;
  color:#8795ac
}
.timeline {
  padding-left:8px
}
.timeline article {
  position:relative;
  padding:0 0 20px 20px;
  border-left:1px solid #e8ecf2
}
.timeline article:last-child {
  padding-bottom:0;
  border-color:transparent
}
.timeline strong {
  font-size:11px;
  font-weight:600
}
.timeline small {
  display:block;
  color:#9aa2ae;
  font-size:9px;
  margin:6px 0
}
.timeline p {
  font-size:11px;
  line-height:1.6;
  color:#798698;
  margin:8px 0 0
}
.timeline-dot {
  position:absolute;
  left:-4px;
  top:4px;
  width:7px;
  height:7px;
  background:#b6c6e4;
  border-radius:50%;
  box-shadow:0 0 0 4px white
}
.settings-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:20px;
  max-width:1100px
}
.settings-layout>.panel {
  align-self:start
}
.definition-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  padding:17px 0;
  border-bottom:1px solid #edf0f4;
  color:#546077;
  font-size:12px
}
.definition-row strong {
  font-weight:550
}
.definition-row small {
  display:block;
  color:#9aa2af;
  margin-top:5px;
  font-size:10px
}
.definition-row:hover {
  text-decoration:none
}
.definition-row .tag {
  white-space:nowrap
}
.settings-layout form>.button {
  margin-top:10px
}
label {
  display:block;
  font-size:12px;
  color:#626e80;
  margin-bottom:7px;
  font-weight:500
}
input,select,textarea {
  width:100%;
  max-width:100%;
  background:#fff;
  border:1px solid #dce1e9;
  border-radius:6px;
  padding:10px 11px;
  color:#364257;
  min-height:39px;
  margin-bottom:0
}
input::placeholder,textarea::placeholder {
  color:#a4acb8
}
textarea {
  resize:vertical;
  line-height:1.6
}
input[type=checkbox] {
  width:16px;
  min-height:16px;
  height:16px;
  vertical-align:middle;
  accent-color:var(--blue);
  margin:0 7px 0 0
}
select {
  padding-right:27px;
  font-size:12px
}
input[type=date] {
  min-width:0;
  appearance:none
}
select:disabled {
  background:#f6f7fa;
  color:#9199a6
}
.form-field {
  margin-bottom:18px;
  min-width:0
}
.form-field.wide {
  grid-column:1/-1
}
.form-field:has(.field-error) input,.form-field:has(.field-error) select,.form-field:has(.field-error) textarea {
  border-color:#cb8a83
}
.checkbox-label {
  display:flex;
  align-items:center;
  min-height:30px;
  font-size:12px;
  line-height:1.5
}
.required {
  color:#a7b2c4
}
.form-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 22px
}
.form-grid>.form-field:last-child {
  margin-bottom:0
}
.form-grid [id=id_categories] {
  display:flex;
  flex-wrap:wrap;
  gap:8px 20px;
  padding:6px 0
}
.form-grid [id=id_categories] label {
  display:flex;
  align-items:center;
  white-space:nowrap;
  margin:0;
  min-height:30px
}
.edit-form {
  max-width:960px
}
.edit-form .panel {
  padding:26px
}
.edit-form h2 {
  margin-bottom:24px
}
.formset-row {
  border:1px solid #e8ebf0;
  background:#fcfdff;
  border-radius:7px;
  padding:18px;
  margin-bottom:15px
}
.save-bar {
  position:sticky;
  bottom:0;
  z-index:3;
  border:1px solid #dce3ee;
  background:#ffffffef;
  backdrop-filter:blur(10px);
  border-radius:8px;
  padding:13px 16px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  box-shadow:0 -4px 20px #233c6006
}
.save-bar span {
  font-size:11px;
  color:#95a0b1
}
.toast {
  position:fixed;
  bottom:25px;
  left:50%;
  transform:translateX(-50%);
  max-width:calc(100% - 30px);
  padding:13px 19px;
  border-radius:8px;
  background:#26344d;
  color:white;
  z-index:30;
  font-size:12px;
  box-shadow:0 4px 20px #0002
}
.toast[hidden] {
  display:none
}
.auth-body {
  background:#f4f6fa
}
.auth-shell {
  width:100%;
  max-width:460px;
  margin:60px auto;
  padding:0 20px
}
.auth-brand {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:11px;
  margin-bottom:30px;
  font-size:16px
}
.auth-brand strong {
  font-weight:600
}
.auth-brand strong>span {
  color:#9aa4b5;
  font-size:13px;
  margin-left:5px
}
.auth-panel {
  background:white;
  padding:32px;
  border:1px solid var(--line);
  border-radius:13px;
  box-shadow:0 10px 40px #253b6305
}
.auth-panel h1 {
  font-size:24px;
  line-height:1.35
}
.auth-panel>.muted {
  font-size:13px;
  line-height:1.7;
  margin-bottom:24px
}
.auth-panel form>.button {
  margin-top:15px
}
.auth-panel .form-field {
  margin-bottom:17px
}
.auth-panel .help {
  font-size:10px;
  line-height:1.6
}
.auth-panel .help ul {
  padding-left:16px;
  margin:7px 0
}
.auth-panel .text-button {
  width:100%;
  font-size:11px;
  margin-top:10px
}
.auth-footnote {
  font-size:10px;
  color:#a2aaba;
  text-align:center;
  margin-top:22px
}
.qr {
  display:block;
  max-width:100%;
  margin:0 auto 20px
}
.auth-panel details {
  margin:15px 0 22px;
  font-size:11px;
  color:#7c899b
}
.auth-panel summary {
  cursor:pointer;
  min-height:30px
}
.secret-key {
  font-family:monospace;
  overflow-wrap:anywhere;
  padding:12px;
  background:#f2f5fa;
  border-radius:5px;
  font-size:12px
}
.recovery-codes {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
  background:#f3f6fb;
  padding:15px;
  border-radius:8px;
  margin:20px 0;
  font-size:12px;
  line-height:2
}
.recovery-codes code {
  display:block
}
.auth-panel>.button {
  margin-top:10px
}
@media(min-width:1600px) {
  .card-grid {
    grid-template-columns:repeat(4,minmax(0,1fr))
  }
}
@media(max-width:1150px) {
  :root {
    --sidebar:190px
  }
  .sidebar {
    padding-left:10px;
    padding-right:10px
  }
  .nav-caption {
    font-size:8px;
    letter-spacing:.7px
  }
  .brand {
    font-size:13px
  }
  .topbar {
    padding:0 22px
  }
  main#content {
    padding:25px 22px 40px
  }
  .stats {
    gap:10px
  }
  .stat {
    padding:17px 13px
  }
  .stat>span {
    font-size:10px
  }
  .detail-layout {
    grid-template-columns:minmax(0,1fr) 300px;
    gap:15px
  }
  .panel {
    padding:20px
  }
  .details {
    grid-template-columns:120px minmax(0,1fr);
    gap:12px
  }
  .filter-bar .search {
    max-width:none
  }
  .filter-bar select {
    max-width:180px
  }
  .list-head,.list-row {
    gap:14px;
    padding:17px
  }
  .page-heading h1 {
    font-size:25px
  }
}
@media(max-width:850px) {
  :root {
    --sidebar:0px
  }
  .sidebar {
    position:static;
    width:auto;
    padding:12px 18px;
    border-right:0;
    border-bottom:1px solid var(--line);
    display:block
  }
  .brand {
    margin:0;
    font-size:14px;
    padding:0
  }
  .brand small,.nav-caption,.sidebar-footer {
    display:none
  }
  .brand-mark {
    width:30px;
    height:30px;
    border-radius:8px;
    font-size:19px
  }
  .sidebar nav {
    display:flex;
    gap:4px;
    margin-top:13px;
    overflow-x:auto
  }
  .nav-link {
    gap:7px;
    min-height:40px;
    margin:0;
    white-space:nowrap;
    padding:9px 10px;
    font-size:12px
  }
  .nav-link svg {
    width:16px;
    height:16px
  }
  .workspace {
    margin-left:0
  }
  .topbar {
    height:44px;
    padding:0 20px;
    font-size:10px
  }
  .workspace-label {
    font-size:9px
  }
  .breadcrumb span {
    padding:0 8px
  }
  .page-heading {
    margin-bottom:22px;
    gap:12px
  }
  .page-heading h1 {
    font-size:24px
  }
  .page-heading p {
    font-size:12px
  }
  .heading-actions .button {
    font-size:11px;
    padding:9px 11px
  }
  .stats {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-bottom:20px
  }
  .stat>span {
    font-size:11px;
    margin-bottom:10px
  }
  .stat {
    padding:17px
  }
  .stat strong {
    font-size:26px
  }
  .detail-layout {
    grid-template-columns:minmax(0,1fr)
  }
  .detail-aside {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
    align-items:start
  }
  .detail-aside>.panel:last-child {
    grid-column:1/-1
  }
  .detail-aside .panel {
    margin-bottom:0
  }
  .settings-layout {
    grid-template-columns:1fr 1fr
  }
  .filter-bar input,.filter-bar select {
    font-size:12px
  }
  .filter-bar .search {
    flex-basis:100%;
    max-width:none
  }
  .filter-bar>label:not(.search) {
    flex:1;
    min-width:130px
  }
  .filter-bar select {
    max-width:none;
    width:100%
  }
  .card-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))
  }
  .card-title {
    font-size:14px
  }
  .card-reason {
    font-size:12px
  }
  .card-location,.card-volume {
    font-size:11px
  }
  .card-footer {
    font-size:10px
  }
  .list-row,.list-head {
    grid-template-columns:1.3fr 1fr 1fr
  }
  .list-row>div:last-child,.list-head>span:last-child {
    display:none
  }
  .section-heading .muted {
    font-size:10px
  }
  .kanban-column {
    width:260px;
    min-width:260px;
    max-width:260px
  }
  .kanban .card-reason {
    font-size:11px
  }
  .kanban .card-title {
    font-size:13px
  }
}
@media(max-width:540px) {
  main#content {
    padding:22px 16px 30px
  }
  .sidebar {
    padding:12px 14px
  }
  .sidebar nav {
    justify-content:space-between;
    gap:0
  }
  .nav-link {
    font-size:11px;
    padding:8px 7px;
    gap:5px
  }
  .nav-link svg {
    width:15px
  }
  .topbar {
    padding:0 16px
  }
  .workspace-label {
    display:none
  }
  .page-heading {
    flex-direction:column;
    gap:15px
  }
  .heading-actions {
    width:100%;
    padding:0
  }
  .page-heading p {
    line-height:1.65;
    font-size:11px
  }
  .stats {
    gap:9px
  }
  .stat {
    padding:15px 12px
  }
  .stat>span {
    font-size:10px;
    line-height:1.5;
    margin-bottom:12px;
    min-height:15px
  }
  .stat strong {
    font-size:27px
  }
  .stat small {
    font-size:9px
  }
  .filter-bar {
    gap:8px;
    margin-bottom:23px
  }
  .filter-bar input,.filter-bar select {
    font-size:12px;
    min-height:42px
  }
  .filter-bar>label:not(.search) {
    min-width:calc(50% - 4px)
  }
  .filter-bar .button {
    min-height:42px;
    flex:1
  }
  .filter-bar .quiet-link {
    padding:10px
  }
  .card-grid {
    grid-template-columns:1fr;
    gap:12px
  }
  .partner-card {
    padding:17px 17px 0
  }
  .card-reason {
    min-height:0
  }
  .card-title {
    font-size:15px
  }
  .card-footer {
    padding:13px 0
  }
  .priority {
    font-size:11px
  }
  .tag {
    font-size:10px
  }
  .section-heading {
    align-items:flex-start;
    gap:12px
  }
  .section-heading h2 {
    font-size:14px
  }
  .section-heading .muted {
    max-width:138px;
    text-align:right;
    font-size:10px;
    line-height:1.5
  }
  .task-section {
    margin-bottom:25px
  }
  .info-strip {
    padding:12px;
    align-items:flex-start
  }
  .info-strip p {
    font-size:10px
  }
  .board-meta {
    font-size:10px;
    line-height:1.6
  }
  .board-meta a {
    margin-left:12px
  }
  .kanban {
    margin-right:-16px;
    padding-right:16px
  }
  .list-head {
    display:none
  }
  .partner-list {
    background:transparent;
    border:0;
    border-radius:0
  }
  .list-row {
    grid-template-columns:1fr 1fr;
    gap:17px;
    padding:17px;
    background:#fff;
    border:1px solid var(--line);
    border-radius:9px;
    margin-bottom:12px;
    align-items:start
  }
  .list-row>div:first-child {
    grid-column:1/-1
  }
  .list-row strong {
    font-size:14px
  }
  .list-row small {
    font-size:11px
  }
  .list-row>div:last-child {
    display:block;
    grid-column:1/-1;
    border-top:1px solid #eef0f5;
    padding-top:12px
  }
  .panel,.edit-form .panel {
    padding:20px 17px;
    margin-bottom:14px
  }
  .panel h2 {
    font-size:15px
  }
  .details {
    grid-template-columns:1fr;
    gap:6px;
    font-size:12px
  }
  .details dd {
    margin-bottom:11px
  }
  .details dt {
    font-size:11px
  }
  .detail-layout {
    gap:0
  }
  .detail-aside {
    display:block
  }
  .detail-aside .panel {
    margin-bottom:14px
  }
  .detail-badges {
    margin-top:0;
    margin-bottom:18px
  }
  .volume-large {
    font-size:18px
  }
  .settings-layout {
    display:block
  }
  .form-grid {
    grid-template-columns:1fr;
    gap:0
  }
  .form-field {
    margin-bottom:20px
  }
  .form-grid>.form-field:last-child {
    margin-bottom:0
  }
  input,select,textarea {
    font-size:16px;
    min-height:44px
  }
  .filter-bar input,.filter-bar select {
    font-size:16px
  }
  .form-grid [id=id_categories] {
    display:block
  }
  .form-grid [id=id_categories] label {
    min-height:37px
  }
  .formset-row {
    padding:15px 12px
  }
  .save-bar {
    padding:12px;
    gap:10px
  }
  .save-bar span {
    font-size:9px;
    max-width:85px;
    line-height:1.5
  }
  .save-bar .button {
    font-size:11px;
    min-height:44px
  }
  .button {
    min-height:42px
  }
  .button.small {
    min-height:40px
  }
  .icon-button {
    min-width:44px;
    min-height:44px
  }
  .contact-row {
    align-items:flex-start
  }
  .contact-row .button {
    min-height:38px;
    font-size:10px;
    padding:7px
  }
  .auth-shell {
    margin:30px auto;
    padding:0 16px
  }
  .auth-panel {
    padding:27px 22px
  }
  .auth-panel h1 {
    font-size:23px
  }
  .auth-panel>.muted {
    font-size:12px
  }
  .auth-panel .help {
    font-size:11px
  }
  .auth-brand {
    font-size:15px;
    margin-bottom:25px
  }
  .recovery-codes {
    font-size:11px;
    padding:13px;
    gap:6px
  }
  .empty-state {
    padding:30px 18px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    transition:none!important
  }
}
.mobile-text,.mobile-account {
  display:none
}
select {
  appearance:none;
  background:#fff url('/static/chevron.svg') no-repeat right 10px center / 12px;
  padding-right:29px
}
.kanban .partner-card {
  user-select:none
}
@media(max-width:850px) {
  .mobile-account {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:44px;
    min-width:55px;
    font-size:11px
  }
  .breadcrumb {
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap
  }
  .topbar {
    gap:10px
  }
}
@media(max-width:540px) {
  .desktop-text {
    display:none
  }
  .mobile-text {
    display:inline
  }
  .sidebar nav {
    overflow:visible
  }
  .nav-link {
    min-height:44px;
    min-width:60px
  }
  .filter-bar select {
    min-height:44px
  }
}
.kanban .partner-card {
  -webkit-user-drag:none;
  cursor:default
}
.card-tools {
  display:flex;
  align-items:center;
  gap:8px
}
.drag-handle {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:25px;
  height:25px;
  color:#9aa5b6;
  font-size:21px;
  cursor:grab;
  touch-action:none;
  user-select:none;
  -webkit-user-drag:none;
  border-radius:4px
}
.drag-handle:hover {
  background:#f1f4fa;
  text-decoration:none
}
.kanban .dragging {
  pointer-events:none
}
@media(pointer:coarse) {
  .drag-handle {
    touch-action:manipulation;
    min-width:44px;
    min-height:44px
  }
}
