:root {
  color-scheme: light;
  font: 15px/1.55 'Segoe UI', system-ui, sans-serif;
  color: #23334d;
  background: #f4f6fa;
  --ink: #23334d;
  --muted: #63718a;
  --line: #e2e7f0;
  --accent: #c94b13;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #2e77dc; outline-offset: 3px; }
.shell, main { width: min(1280px, 100% - 40px); margin-inline: auto; }
header { background: #fff; border-bottom: 1px solid var(--line); }
.bar, .actions, .meta, nav, .checks { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; }
.bar { padding-block: 14px; }
.bar nav { margin-right: auto; }
.bar label { grid-auto-flow: column; align-items: center; }
.brand { font-size: 22px; font-weight: 750; margin-right: 8px; }
.username, .company, small { color: var(--muted); }
main { padding: 30px 0 60px; }
h1, h2, h3, p { margin: 0 0 12px; }
h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.035em; line-height: 1.15; }
h2 { font-size: 20px; }
h3 { margin-top: 16px; font-size: 16px; }
.title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 12px; }
.title h1 { margin: 0; }
.company { margin-bottom: 5px; font-weight: 600; }
.card { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.stack, .grid { display: grid; gap: 14px; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 215px), 1fr)); align-items: end; }
.grid > button, .stack > button { justify-self: start; }
label { display: grid; gap: 5px; color: var(--ink); font-weight: 550; }
input:not([type=checkbox]), select, textarea {
  min-width: 0; width: 100%; border: 1px solid #bccfc8; border-radius: 7px; background: #fff;
  color: var(--ink); padding: 8px 10px;
}
textarea { resize: vertical; }
.dropdown { position: relative; min-width: 0; width: 100%; }
.dropdown-native { position: absolute; width: 1px !important; height: 1px; min-height: 0 !important; padding: 0 !important; opacity: 0; pointer-events: none; }
.dropdown-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 9px 12px; border: 1px solid #d6deea; border-radius: 8px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 450; line-height: 1.45; text-align: left; overflow-wrap: anywhere; transition: border-color .15s, box-shadow .15s; }
.dropdown-trigger::after { content: ''; flex: 0 0 7px; width: 7px; height: 7px; border-right: 1.5px solid #73839b; border-bottom: 1.5px solid #73839b; transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.dropdown-trigger:hover { border-color: #a4b8d3; background: #fafcff; }
.dropdown-trigger[aria-expanded=true] { border-color: #9bb5d780; box-shadow: 0 0 0 2px #2e77dc0b; }
.dropdown-trigger[aria-expanded=true]::after { transform: translateY(2px) rotate(225deg); }
.dropdown-trigger:disabled { opacity: .55; cursor: not-allowed; }
.dropdown-menu { position: fixed; inset: auto; margin: 0; padding: 5px; border: 1px solid #dfe6f0; border-radius: 10px; background: #fff; color: var(--ink); box-shadow: 0 12px 36px #23334d24, 0 2px 6px #23334d0a; overflow-y: auto; overscroll-behavior: contain; font: 14px/1.45 'Segoe UI', system-ui, sans-serif; }
.dropdown-option { position: relative; padding: 9px 30px 9px 10px; border-radius: 6px; cursor: pointer; font-weight: 450; overflow-wrap: anywhere; }
.dropdown-option:hover, .dropdown-option.is-highlighted { background: #f0f5fc; }
.dropdown-option[aria-selected=true] { background: #e9f1fc; color: #255b9d; font-weight: 600; }
.dropdown-option[aria-selected=true]::after { content: '✓'; position: absolute; right: 10px; top: 9px; }
.dropdown-option[aria-disabled=true] { opacity: .4; cursor: not-allowed; }
.connection-tasks-empty { padding-bottom: 14px; }
.task-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.task-section-heading h2 { margin: 0; }
.task-section-heading a { flex-shrink: 0; }
.deal-task-row { display: flex; align-items: center; gap: 10px; }
.deal-task-row > time { flex: none; color: rgb(35 51 77 / 68%); font-size: 13px; font-variant-numeric: tabular-nums; }
.deal-task-row > .task-title { min-width: 0; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.deal-task-row > .todo-task-state { margin-left: auto; }
.todo-task-state { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; max-width: 50%; color: var(--muted); font-size: 13px; }
.todo-task-state::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--dot, #8792a1); }
.todo-task-state[data-state=assigned] { --dot: #3972ce; }
.todo-task-state[data-state=accepted] { --dot: #5756b7; }
.todo-task-state[data-state=in_progress] { --dot: #cc870d; }
.todo-task-state:is([data-state=on_hold], [data-state=suspended]) { --dot: #9263b2; }
.todo-task-state[data-state=completed] { --dot: #28835c; }
.todo-task-state[data-state=cancelled] { --dot: #b94a45; }
.deal-inline-scope { display: grid; gap: 18px; min-width: 0; }
.deal-row[data-inline-fields] dd { cursor: text; border-radius: 5px; transition: background .15s; }
.deal-row[data-inline-fields]:hover dd { background: #f3f7fc; }
.deal-row.is-editing dd { background: transparent; }
.inline-editor, .inline-field { display: grid; gap: 9px; min-width: 0; }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-actions button { width: 100px; min-height: 34px; padding: 6px 10px; font-size: 12px; line-height: 1.4; text-align: center; }
.inline-editor textarea { min-height: 90px; }
.inline-editor :is(input, textarea, .dropdown-trigger):focus,
.deal-input-row :is(input, textarea, .dropdown-trigger):focus { outline: 1px solid #2e77dc60; outline-offset: 1px; border-color: #8caed480; box-shadow: 0 0 0 2px #2e77dc0a; }
.deal-participant dd { display: grid; gap: 8px; margin-block: 0; }
.deal-participant form { gap: 6px; }
.deal-participant small { display: block; font-size: 12px; }
.deal-participant [data-auto-submit] .dropdown-trigger { min-height: 22px; padding: 0; border: 0; border-radius: 3px; background: transparent; color: #161a20; font-size: 14px; line-height: 1.6; box-shadow: none; }
.deal-participant [data-auto-submit] .dropdown-trigger::after { display: none; }
.deal-participant [data-auto-submit] .dropdown-trigger:hover { color: var(--accent); }
.deal-participant [data-auto-submit] .dropdown-trigger:focus-visible { outline: 1px solid #2e77dc60; outline-offset: 3px; }
.check { display: flex; align-items: center; gap: 6px; }
.check input { accent-color: var(--accent); }
.channels:not(:has(input[value="Лично"]:checked)) .receiver { display: none; }
.receiver { margin-top: 10px; max-width: 360px; }
fieldset { border: 0; padding: 10px 0; margin: 8px 0; }
legend { font-weight: 650; }
fieldset > label { margin-top: 10px; max-width: 360px; }
.primary, .secondary {
  display: inline-block; border-radius: 7px; border: 1px solid var(--line); padding: 8px 13px;
  text-decoration: none; font-weight: 650;
}
.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.secondary { background: #fff; color: var(--ink); }
.secondary:hover { background: #edf5f0; }
.primary:hover { background: #ae3c0b; }
details { border-top: 1px solid var(--line); padding: 11px 0; }
summary { cursor: pointer; font-weight: 700; }
details[open] > :not(summary) { margin-top: 14px; }
.repeat { border: 1px solid var(--line); border-radius: 8px; padding: 13px; }
.repeat .actions { margin-top: 10px; }
.toolbar { max-width: 390px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; text-align: left; }
td, th { padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); white-space: nowrap; font-size: 13px; }
.empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.status { display: inline-block; color: #0d583e; background: #e1f3e9; border-radius: 20px; padding: 4px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.tabs { border-bottom: 1px solid var(--line); }
.tabs > a { padding: 7px 1px; }
.tabs > [aria-current] { font-weight: 750; border-bottom: 2px solid var(--accent); text-decoration: none; }
.entry { border-top: 1px solid var(--line); padding: 12px 0; overflow-wrap: anywhere; }
.entry small { display: block; }
.message, dd { white-space: pre-wrap; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: minmax(110px, 1fr) 3fr; gap: 5px 12px; }
dt { color: var(--muted); }
dd { margin: 0; }
.login-wrap { min-height: 75vh; display: grid; place-items: center; }
.login { display: grid; gap: 14px; width: min(100%, 390px); }
#notice { position: fixed; right: 18px; bottom: 18px; max-width: min(460px, 90vw); padding: 12px 17px; color: #fff; background: #174d3c; border-radius: 8px; box-shadow: 0 8px 30px #18312e26; }
#notice.error { background: #802b32; }
@media (max-width: 660px) {
  .shell, main { width: calc(100% - 24px); }
  .bar { gap: 8px 12px; }
  .bar nav { order: 2; width: 100%; }
  .card { padding: 14px; }
}

/* CRM workspace: shared shell, requests and card editor. */
.workspace { padding-left: 226px; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 226px; background: #12294b; color: #d6e3f7; display: flex; flex-direction: column; padding: 30px 18px 22px; z-index: 5; }
.brand { color: #fff; text-decoration: none; font-size: 25px; letter-spacing: -.5px; margin: 0 10px 46px; }
.brand span { color: #ff9a57; }
.nav-caption { color: #94adce; font-size: 10px; letter-spacing: 1.4px; padding: 0 12px; margin-bottom: 14px; }
.sidebar nav { display: grid; gap: 6px; }
.task-routing { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 12px; align-items: end; }
.task-routing [hidden], .task-routing [role=status]:empty { display: none; }
.sidebar nav a { padding: 12px; color: #e2eaf7; text-decoration: none; border-radius: 9px; font-size: 14px; }
.sidebar nav a[aria-current="page"] { background: #274365; border-left: 3px solid #ff9a57; }
.sidebar nav a:hover { background: #274365; }
.sidebar-note { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid #36506f; font-size: 12px; color: #aabdda; }
.sidebar-note b { color: #e5edfa; }
.sidebar-note p { margin: 8px 0 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 16px; padding: 12px 32px; font-size: 13px; color: var(--muted); }
.topbar b { color: var(--ink); font-weight: 500; margin-left: 8px; }
.account { display: flex; align-items: center; gap: 10px; }
.account-name-short, .logout-label { display: none; }
.logout-icon { display: block; width: 17px; height: 17px; }
.account-name { white-space: nowrap; }
.account form { display: block; margin-left: 0; }
.account button { display: grid; place-items: center; background: transparent; color: var(--muted); border-color: transparent; padding: 5px; font-size: 12px; }
.avatar { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: #eaf0fa; color: #315c99; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; }
.workspace main { width: 100%; max-width: 1600px; padding: 30px 32px 70px; }
.guest main { max-width: 520px; padding-top: 10vh; }
.page-heading { margin-bottom: 0; }
.workspace-company { display: flex; align-items: center; gap: 8px; margin: 0 0 0 auto; flex-shrink: 0; }
.workspace-company > select, .workspace-company > .dropdown { width: 220px; max-width: 100%; }
.workspace-company > button { margin: 0; white-space: nowrap; }
@media (max-width: 850px) {
  .page-title-row:has(.workspace-company) { flex-wrap: wrap; }
  .workspace-company { flex-wrap: wrap; max-width: 100%; }
}
.page-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-title-row h1, .page-title-row h2 { min-width: 0; overflow-wrap: anywhere; }
.deal-back-link { flex-shrink: 0; font-size: 13px; white-space: nowrap; }
.page-heading .deals-heading { font-size: clamp(23px, 2.5vw, 27px); }
.eyebrow { font-size: 10px; font-weight: 700; color: var(--muted); letter-spacing: 1.6px; margin-bottom: 8px; }
h1 { font-size: 30px; letter-spacing: -.8px; margin: 0; }
h2 { font-size: 18px; letter-spacing: -.3px; }
.subtitle { color: var(--muted); margin: 0; max-width: 600px; font-size: 14px; }
.title { margin: 0; }
.title > .primary { white-space: nowrap; }
.card { border-radius: 13px; box-shadow: 0 2px 3px #132b4c03; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 8px 0; }
.metric { display: grid; grid-template-columns: 1fr auto; align-items: center; background: white; border: 1px solid var(--line); border-top: 3px solid var(--status-color); border-radius: 12px; padding: 16px 20px; }
.metric > span { font-size: 13px; font-weight: 600; }
.metric strong { grid-row: span 2; font-size: 32px; letter-spacing: -1px; font-weight: 650; }
.metric small { font-size: 11px; }
.filters { display: grid; grid-template-columns: 1.2fr 1.6fr 1fr; gap: 16px; padding: 20px; }
.filters .actions { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 14px; }
label { font-size: 13px; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]), textarea, select { border-color: #d6deea; min-height: 40px; border-radius: 8px; font-size: 14px; }
input[type=radio] { width: auto; accent-color: #c94b13; }
textarea { min-height: 90px; }
.grid { align-items: start; }
.primary, .secondary { font-size: 13px; padding: 10px 16px; border-radius: 8px; }
.secondary:hover { background: #f1f5fc; }
.view-toolbar { margin: 12px 0 2px; }
.view-toolbar h2 { margin: 0; }
.view-toolbar small { font-size: 12px; }
.total { color: var(--muted); font-size: 13px; background: #e9eef7; border-radius: 6px; padding: 3px 7px; margin-left: 8px; }
.view-switch { gap: 3px; background: #e9edf4; padding: 4px; border-radius: 9px; }
.view-switch a { padding: 7px 16px; font-size: 13px; color: var(--muted); text-decoration: none; border-radius: 6px; }
.view-switch [aria-current] { color: #225ca3; background: white; box-shadow: 0 1px 4px #152a4514; font-weight: 650; }
.request-table { padding: 0; }
.request-table table { min-width: 1050px; font-size: 13px; }
.request-table th { background: #f9fafc; font-size: 11px; letter-spacing: .2px; padding: 15px; }
.request-table td { padding: 18px 15px; vertical-align: top; }
.request-table tr:last-child td { border-bottom: 0; }
.request-table tbody tr:hover { background: #fafcff; }
.request-table tbody tr[data-request-id] { cursor: pointer; }
.request-table td:first-child { min-width: 240px; max-width: 320px; }
.request-table td small { display: block; margin-top: 5px; font-size: 11px; }
.request-title { display: block; color: #223c63; font-weight: 650; font-size: 14px; text-decoration: none; overflow-wrap: anywhere; }
.request-title:hover { color: #a63b0d; text-decoration: underline; }
.new { --status-color: #d74d55; --status-bg: #fff0f1; --status-ink: #a72e38; }
.active { --status-color: #e5aa21; --status-bg: #fff6d9; --status-ink: #795400; }
.done { --status-color: #2a9b71; --status-bg: #e6f6ed; --status-ink: #18734f; }
.closed { --status-color: #6d8caf; --status-bg: #edf2fa; --status-ink: #42638a; }
.paused { --status-color: #9a7bd0; --status-bg: #f2ecfb; --status-ink: #7150a5; }
.cancelled { --status-color: #8d98aa; --status-bg: #edf0f5; --status-ink: #536174; }
.status { color: var(--status-ink, #315c99); background: var(--status-bg, #edf2fa); font-size: 10px; letter-spacing: .3px; padding: 5px 9px; }
.hint { font-size: 12px; color: var(--muted); margin: 0; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.kanban-column { min-height: 200px; background: #eaf0f6; border: 1px solid #dfe7f1; border-top: 3px solid var(--status-color); border-radius: 10px; padding: 12px; transition: background .15s; }
.kanban-column > h2 { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 14px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-color); }
.count { margin-left: auto; background: white; border-radius: 5px; padding: 1px 7px; font-size: 11px; color: var(--muted); }
.kanban-card { background: #fff; border: 1px solid #dce4ef; border-radius: 9px; box-shadow: 0 2px 4px #1b385908; padding: 15px; margin-bottom: 10px; }
.kanban-card[draggable=true] { cursor: grab; }
.kanban-card:last-child { margin-bottom: 0; }
.card-number { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.card-number span { font-size: 10px; background: #edf3fc; color: #456d9e; padding: 3px 6px; border-radius: 4px; overflow-wrap: anywhere; }
.excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--muted); font-size: 12px; margin: 6px 0 12px; }
.card-address { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; margin: 8px 0 14px; }
.card-owner { border-top: 1px solid var(--line); padding-top: 12px; display: flex; align-items: center; gap: 7px; font-size: 11px; }
.card-owner .avatar { width: 25px; height: 25px; flex-basis: 25px; font-size: 10px; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.card-actions .secondary { padding: 5px 8px; font-size: 11px; }
.text-button { background: none; border: 0; padding: 3px 0; color: #37699d; font-size: 11px; text-align: left; }
.column-empty { text-align: center; border: 1px dashed #cbd7e5; border-radius: 7px; padding: 28px 8px; font-size: 12px; color: var(--muted); }
.dragging { opacity: .45; }
.drag-over { background: #dbeaff; outline: 2px dashed #4a7fbe; outline-offset: -3px; }
dialog { width: min(480px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: 16px; padding: 26px; color: var(--ink); box-shadow: 0 24px 80px #12294b38; }
dialog::backdrop { background: #12294b66; }
.task-dialog { width: min(700px, calc(100% - 24px)); max-height: 90dvh; padding: 0; }
.task-dialog .creation-header { align-items: flex-start; overflow-wrap: anywhere; }
.task-dialog [data-close-task] { color: var(--muted); font-size: 24px; text-decoration: none; line-height: 1; padding: 4px 8px; }
.task-dialog-content { padding: 0 clamp(14px, 4vw, 24px) 22px; }
.task-dialog:modal:has(#discussion:not([hidden])) {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: min(720px, 90dvh);
  overflow: hidden;
}
.task-dialog:modal:has(#discussion:not([hidden])) .task-dialog-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.task-dialog:modal #discussion {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
}
.discussion-history { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
#discussion > form { padding-top: 10px; border-top: 1px solid var(--line); }
#discussion textarea { resize: none; height: clamp(42px, 10dvh, 90px); }
.task-dialog:modal:has(#discussion:not([hidden])) h2 {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
}
@media (max-height: 500px) {
  .task-dialog:modal:has(#discussion:not([hidden])) .creation-header { padding-block: 6px; }
  .task-dialog:modal:has(#discussion:not([hidden])) .task-dialog-content { padding-bottom: 8px; }
  #discussion > form { gap: 4px; }
}
.task-actions { display: flex; align-items: stretch; gap: 8px; }
.task-actions .task-close { background: transparent; border-color: var(--accent); color: var(--accent); }
.task-actions .task-close:hover { color: #a73b0b; border-color: currentColor; }
.task-dialog .tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 16px; }
.task-dialog [role=tab][aria-selected=true] { color: var(--accent); border-bottom: 2px solid currentColor; font-weight: 700; }
#create-deal { width: min(780px, calc(100% - 24px)); max-height: 90dvh; padding: 0; }
.creation-header, .creation-actions { display: flex; align-items: center; gap: 12px; }
.creation-header { justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.creation-header h2 { margin: 0; }
.creation-header button { border: 0; background: transparent; color: var(--muted); font-size: 24px; }
.creation-form { display: grid; gap: 18px; }
#create-deal .creation-form { padding: 20px 24px; }
.creation-sections { gap: 6px; }
.creation-sections button { padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); }
.creation-sections button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.creation-panel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 12px 18px; }
.creation-panel, .creation-channels { min-width: 0; border: 0; margin: 0; padding: 0; }
.creation-panel > legend { font-weight: 650; margin-bottom: 10px; }
.creation-sections:not([hidden]) ~ .creation-panel > legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.creation-channels { grid-column: 1 / -1; }
.creation-channels legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.creation-actions { justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 620px) {
  .creation-panel { grid-template-columns: minmax(0, 1fr); }
  #create-deal .creation-form, .creation-header { padding: 14px; }
}
dialog .title { margin-bottom: 8px; }
dialog .title h2 { margin: 0; }
.form-error { color: #932c36; background: #fff0f1; border: 1px solid #ebc2c7; padding: 12px; border-radius: 8px; overflow-wrap: anywhere; font-size: 13px; }
.form-error a { color: #932c36; }
.tabs { gap: 26px; margin-block: 6px; }
.tabs a { font-size: 14px; text-decoration: none; color: var(--muted); padding: 10px 0; }
.tabs [aria-current] { color: var(--accent); }
.meta { font-size: 13px; }
details { padding-block: 16px; }
summary { font-size: 14px; }
.channels { background: #f8faff; border-radius: 9px; padding: 14px; }
.channels legend { padding-top: 12px; font-size: 13px; }
.channels .check { font-weight: 400; }
.stack > button { margin-top: 4px; }
@media (min-width: 1500px) { .filters { grid-template-columns: 1.1fr 1.5fr repeat(4, 1fr); } }
@media (max-width: 1000px) {
  .workspace { padding-left: 190px; }
  .sidebar { width: 190px; padding-inline: 12px; }
  .workspace main { padding: 24px 20px 50px; }
  .topbar { padding-inline: 20px; }
  .metrics { gap: 10px; }
  .metric { padding: 12px; }
  .metric strong { font-size: 26px; }
}
@media (max-width: 700px) {
  .workspace { padding-left: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .sidebar { position: static; width: 100%; padding: 16px; }
  .brand { margin: 0 0 14px; font-size: 21px; }
  .nav-caption, .sidebar-note { display: none; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .sidebar nav a { padding: 8px; font-size: 12px; }
  .topbar { min-height: 60px; padding: 16px 12px 16px 0; align-items: start; border-bottom: 0; background: #12294b; }
  .topbar > span { display: none; }
  .account { font-size: 12px; gap: 5px; color: #e2eaf7; }
  .account .avatar { width: 24px; height: 24px; flex-basis: 24px; }
  .account-name-full, .logout-label { display: none; }
  .account-name-short { display: inline; }
  .logout-icon { display: block; width: 17px; height: 17px; }
  .account form { margin-left: 2px; }
  .account button { display: grid; place-items: center; padding: 4px; background: transparent; color: #e2eaf7; border-color: transparent; }
  .workspace main { grid-column: 1 / -1; min-width: 0; padding: 22px 16px 40px; }
  .title { flex-wrap: wrap; align-items: start; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; gap: 12px; }
  .view-switch a { padding: 6px 14px; }
  .view-toolbar { gap: 12px; }
  .kanban { grid-template-columns: repeat(4, 250px); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Connection deals: labels and values sit on one readable line. */
.deal-layout { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.deal-main, .deal-side { display: grid; gap: 18px; min-width: 0; }
.deal-properties { display: block; margin: 0; }
.deal-row, .deal-input-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 20px; padding: 12px 0; align-items: start; border-bottom: 1px solid #eef1f5; }
.deal-row:last-child, .deal-input-row:last-child { border-bottom: 0; }
.deal-row dt, .deal-input-row > span { color: #788493; font-size: 13px; font-weight: 400; padding-top: 2px; }
.deal-row dd { color: #161a20; font-size: 14px; line-height: 1.6; min-width: 0; }
.deal-input-row { margin: 0; font-weight: 400; }
.deal-input-row > div { min-width: 0; }
.deal-input-row input:not([type=checkbox]):not([type=radio]), .deal-input-row select, .deal-input-row textarea { color: #161a20; background: #fcfdff; width: 100%; }
.deal-input-row .check { font-weight: 400; color: #161a20; }
.deal-input-row textarea { min-height: 72px; }
.deal-side .deal-input-row { grid-template-columns: 1fr; gap: 6px; }
.contact-editor { padding: 10px 16px; background: #f8fafc; border-radius: 8px; margin-bottom: 14px; }
.connection-checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.connection-checklist li { display: flex; gap: 12px; color: #788493; font-size: 14px; }
.connection-checklist .checked { color: #176c4d; }
.connection-checklist span { width: 18px; }
.prepare { --status-color: #548cce; --status-bg: #e9f2fd; --status-ink: #275a96; }
.connect { --status-color: #8f78c8; --status-bg: #f0ecfa; --status-ink: #654c9d; }
.kanban { grid-template-columns: repeat(6, minmax(230px, 1fr)); }
.metric strong { font-size: clamp(16px, 1.8vw, 28px); overflow-wrap: anywhere; }
.archive-switch { display: flex; gap: 6px; }
.archive-switch a { text-decoration: none; color: #69798f; padding: 8px 18px; border-radius: 7px; }
.archive-switch [aria-current=page] { color: #244e81; background: #e6edf7; font-weight: 600; }
.deal-navigation { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-width: 0; }
.deal-navigation .archive-switch { flex-wrap: nowrap; gap: 4px; min-width: 0; }
.deal-navigation a { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 8px clamp(6px, 1.2vw, 18px); font-size: clamp(12px, 1.2vw, 14px); font-weight: 600; line-height: 1.4; white-space: nowrap; }
.deal-navigation > .primary { border: 0; }
.edit-deal { align-self: start; text-decoration: none; }
@media (max-width: 1100px) { .deal-layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .deal-row, .deal-input-row { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; }
  .deal-row dt, .deal-input-row > span { font-size: 12px; }
  .deal-row dd { font-size: 13px; }
  .deal-layout { gap: 14px; }
  .metric strong { font-size: 19px; }
}

.view-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters-toggle { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: #63718a; font-weight: 500; }
.filters-toggle[aria-expanded=true] { color: #225ca3; border-color: #b6cce8; background: #f4f8ff; }
.filter-chevron { flex: 0 0 16px; transition: transform 260ms ease; }
.filters-toggle[aria-expanded=true] .filter-chevron { transform: rotate(180deg); }
.filters-reveal { position: fixed; z-index: 20; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-8px); border-radius: 13px; box-shadow: 0 14px 42px #18365a24; transition: transform 200ms ease, opacity 180ms ease, visibility 0s linear 200ms; }
.filters-reveal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.filters-reveal-inner { overflow: auto; overscroll-behavior: contain; border-radius: inherit; }
.filters-reveal .filters { margin: 0; }
#filter-form { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; }
#filter-form > label { min-width: 0; grid-template-rows: 20px minmax(42px, 1fr); gap: 7px; }
#filter-form > label > span { display: flex; align-items: center; justify-content: center; text-align: center; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
#filter-form .dropdown-trigger { height: 100%; min-height: 42px; padding: 9px 11px; font-size: 13px; line-height: 1.4; }
#filter-form input:not([type=hidden]) { height: 100%; min-height: 42px; font-size: 13px; }
@media (max-width: 550px) { #filter-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .filters-reveal, .filter-chevron { transition: none; }
}

.card-stage-control { width: 100%; }
.card-stage-control label { color: var(--muted); font-size: 11px; font-weight: 400; }
.card-stage-control select { min-height: 30px; padding: 5px; font-size: 11px; }
.saving-stage { opacity: .6; pointer-events: none; }

.kanban { grid-template-columns: repeat(7, minmax(230px, 1fr)); }

.deal-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.deal-section-title h2 { margin: 0; }
.deal-section-actions { display: flex; align-items: center; gap: 10px; }
.deal-section-actions form { margin: 0; }
.deal-section-actions button, .deal-participant .inline-actions button { width: auto; min-height: 28px; padding: 4px 10px; font-size: 11px; line-height: 18px; }
.deal-participant .inline-actions button { width: 94px; }
.deal-edit-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 7px; color: #63718a; }
.deal-edit-icon:hover { color: #225ca3; background: #edf3fc; }
.deal-record-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.deal-id-chip { padding: 1px 6px; min-height: 22px; border: 1px solid #dce3ed; border-radius: 4px; background: transparent; color: #788493; font-size: 10px; font-weight: 600; cursor: copy; }
.deal-id-chip:hover { color: #255b9d; border-color: #afc4df; background: #edf3fa; }
.deal-copy-status { color: var(--muted); font-size: 11px; }

/* Deal progress: quiet steps with a clear current-stage marker. */
.deal-pipeline { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); container-type: inline-size; list-style: none; counter-reset: deal-step; gap: 0; width: 100%; min-width: 0; margin: 16px 0; padding: 18px 0 14px; border: 0; background: transparent; align-items: start; }
.deal-pipeline li { --step-on: #fff; --step-color: #c94b47; --step-tint: #fbeded; --step-ink: #a63835; --step-size: clamp(16px, 3cqi, 28px); position: relative; counter-increment: deal-step; min-width: 0; padding: 0 clamp(1px, .65cqi, 8px); color: var(--step-ink); font-size: clamp(8px, 1.25cqi, 12px); line-height: 1.45; text-align: center; }
.deal-pipeline li::before { content: counter(deal-step); position: relative; z-index: 1; display: grid; place-items: center; width: var(--step-size); height: var(--step-size); margin: 0 auto clamp(6px, 1cqi, 10px); border: 1px solid color-mix(in srgb, var(--step-color) 38%, white); border-radius: 50%; background: var(--step-tint); color: var(--step-ink); font-size: clamp(9px, 1.2cqi, 11px); font-weight: 600; }
.deal-pipeline li:not(:last-child)::after { content: ''; position: absolute; top: calc(var(--step-size) / 2 - 1px); left: calc(50% + var(--step-size) / 2 + 3px); width: calc(100% - var(--step-size) - 6px); height: 2px; background: #e7ecf3; }
.deal-pipeline li span { display: block; max-width: 150px; margin: 0 auto; overflow-wrap: anywhere; }
.deal-pipeline li:nth-child(2) { --step-on: #4c2c0c; --step-color: #e38a32; --step-tint: #fcf0e1; --step-ink: #995716; }
.deal-pipeline li:nth-child(3) { --step-on: #51430d; --step-color: #d4b238; --step-tint: #fbf6db; --step-ink: #89701c; }
.deal-pipeline li:nth-child(4) { --step-on: #30420e; --step-color: #91b844; --step-tint: #f1f7e3; --step-ink: #627f25; }
.deal-pipeline li:nth-child(5) { --step-color: #35a477; --step-tint: #e7f5ed; --step-ink: #237550; }
.deal-pipeline li:nth-child(6) { --step-color: #4b83ba; --step-tint: #eaf2fa; --step-ink: #34638f; }
.deal-pipeline li:nth-child(7) { --step-color: #8793a2; --step-tint: #edf0f4; --step-ink: #647180; }
.deal-pipeline li.passed { color: var(--step-ink); }
.deal-pipeline li.passed::before { content: '✓'; background: var(--step-tint); border-color: var(--step-color); color: var(--step-ink); font-size: clamp(10px, 1.5cqi, 14px); }
.deal-pipeline li.passed::after { background: color-mix(in srgb, var(--step-color) 45%, white); }
.deal-pipeline li.current { color: var(--step-ink); font-weight: 650; }
.deal-pipeline li.current::before { border-color: var(--step-color); background: var(--step-color); color: var(--step-on); box-shadow: 0 0 0 4px color-mix(in srgb, var(--step-color) 10%, transparent); }

.archive-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.archive-deal { display: block; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.archive-deal:hover { border-color: #b6cce8; box-shadow: 0 5px 18px #18365a0d; }
.archive-deal h2 { font-size: 16px; overflow-wrap: anywhere; }
.archive-deal > p { font-size: 13px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.archive-deal-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; font-size: 13px; }

/* Responsive board: six desktop stages, four laptop stages, one mobile stage. */
.kanban { --board-visible: 6; --board-gap: 12px; display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: calc((100% - (var(--board-visible) - 1) * var(--board-gap)) / var(--board-visible)); gap: var(--board-gap); width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 0; padding-bottom: 10px; align-items: start; }
.kanban.is-dragging { scroll-snap-type: none; scroll-behavior: auto; }
.kanban-column { min-width: 0; padding: 10px; scroll-snap-align: start; }
.kanban-column > h2 { font-size: clamp(11px, .9vw, 13px); line-height: 1.45; min-height: 38px; overflow-wrap: anywhere; align-items: flex-start; }
.kanban-column > h2 .status-dot { flex: 0 0 7px; margin-top: 5px; }
.kanban-column .count { flex: 0 0 auto; }
.kanban-card { min-width: 0; padding: 12px; }
.kanban-card .card-number { flex-wrap: wrap; gap: 5px; font-size: 10px; }
.kanban-card .card-number span { max-width: 100%; white-space: normal; overflow-wrap: anywhere; font-size: 10px; }
.kanban-card .request-title { font-size: clamp(11px, .95vw, 14px); line-height: 1.45; overflow-wrap: anywhere; }
.kanban-card .excerpt { font-size: 11px; line-height: 1.5; -webkit-line-clamp: 3; }
.kanban-card .card-address, .kanban-card .card-owner { font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.kanban-card .card-owner { flex-wrap: wrap; gap: 5px; }
@media (min-width: 768px) and (max-width: 1439px) {
  .kanban { --board-visible: 4; --board-gap: 10px; }
}
@media (max-width: 767px) {
  .kanban { --board-visible: 1; --board-gap: 12px; scroll-snap-type: x mandatory; }
  .kanban-column { padding: 14px; }
  .kanban-column > h2 { font-size: 14px; min-height: 0; }
  .kanban-card { padding: 14px; }
  .kanban-card .request-title { font-size: 14px; }
  .kanban-card .excerpt { font-size: 12px; }
  .kanban-card .card-address, .kanban-card .card-owner { font-size: 12px; }
}

/* Shared quiet scrollbars across the application. */
* { scrollbar-width: thin; scrollbar-color: rgba(100, 120, 148, .28) transparent; }
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(100, 120, 148, .28); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: rgba(100, 120, 148, .48); }
@media (forced-colors: active) {
  * { scrollbar-color: auto; }
}
.discussion-text { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Notification categories and the deal opened after claiming an inquiry. */
.notification-switch { align-self: start; flex-wrap: wrap; }
.notification-switch a { display: inline-flex; align-items: center; gap: 9px; }
.notification-badge { min-width: 20px; padding: 1px 6px; border-radius: 12px; background: #e8edf4; font-size: 11px; text-align: center; }
.notification-switch [aria-current=page] .notification-badge { background: #fff3; }
.notification-entry { border-left: 3px solid transparent; }
.notification-entry.is-unread { border-left-color: var(--accent, #ca4e08); }
.notification-meta { display: flex; gap: 16px; justify-content: space-between; color: var(--muted); font-size: 12px; margin-bottom: 12px; }
.notification-entry h2 { font-size: 16px; margin-bottom: 7px; }
.notification-deal-title { color: var(--muted); font-size: 13px; }
.notification-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.notification-actions form { margin: 0; }
.notification-deal-dialog { width: min(1200px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid var(--line); border-radius: 16px; padding: 28px; color: var(--ink); background: var(--bg, #f6f8fb); }
.notification-deal-dialog::backdrop { background: #132b5270; }
.notification-deal-close { position: sticky; top: 0; float: right; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border-radius: 8px; background: white; line-height: 1; text-decoration: none; }
.notification-deal-close svg { display: block; }
@media (max-width: 600px) { .notification-deal-dialog { padding: 16px; } .notification-meta { flex-wrap: wrap; gap: 4px; } }

/* Temporary development basket. */
.basket-open { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 9px; color: #c43b32; flex-shrink: 0; }
.basket-open svg { width: 22px; height: 22px; }
.basket-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px; border: 0; border-radius: 18px; color: var(--ink, #183254); background: #fff; }
.basket-dialog::backdrop { background: #102c5266; }
.basket-dialog h2 { margin-top: 0; }
.basket-delete { background: #b8322a; }

/* Service types in deal cards and editors. */
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tag { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 5px 10px; border-radius: 18px; background: #e4f1fb; color: #355875; font-size: 13px; overflow-wrap: anywhere; }
.service-tag button { flex: 0 0 19px; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; min-height: 0; padding: 0; margin: 0; border: 0; border-radius: 50%; background: #86b3d4; color: white; font-family: Arial, sans-serif; font-size: 16px; line-height: 19px; }
[data-service-ui] > .service-tags:not(:empty) { margin-top: 10px; }
.service-combobox { position: relative; width: 100%; min-width: 0; }
.service-combobox input { display: block; width: 100%; min-height: 40px; padding: 9px 38px 9px 12px; border: 1px solid #d6deea; border-radius: 8px; background: #fff; color: var(--ink); font: 450 14px/1.45 'Segoe UI', system-ui, sans-serif; }
.service-combobox input::placeholder { color: #929eae; opacity: 1; }
.service-toggle { position: absolute; right: 1px; top: 1px; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; }
.service-toggle::after { content: ''; display: block; width: 7px; height: 7px; margin: -4px auto 0; border-right: 1.5px solid #73839b; border-bottom: 1.5px solid #73839b; transform: rotate(45deg); }
.service-toggle:hover { background: transparent; }
.service-menu:not([popover]) { position: absolute; left: 0; top: calc(100% + 6px); width: 100%; max-height: 280px; z-index: 10; }
[data-service-picker] [hidden] { display: none; }


/* Deal period: paired date fields and a compact calendar. */
.date-period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; }
.date-period-item { display: grid; gap: 6px; min-width: 0; }
.date-period-item > span { color: #788493; font-size: 12px; font-weight: 400; }
.date-period-item > b { color: #161a20; font-size: 14px; font-weight: 500; }
.date-picker { position: relative; min-width: 0; }
.date-picker input { width: 100%; min-width: 0; height: 40px; padding: 8px 38px 8px 11px; border: 1px solid #d6deea; border-radius: 8px; background: white; font-size: 14px; }
.date-picker input::placeholder { color: #929eae; opacity: 1; }
.date-picker-toggle { position: absolute; right: 1px; top: 1px; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; background: transparent; color: #73839b; }
.date-picker-toggle:hover { background: transparent; color: #365e8b; }
.date-picker-toggle[hidden], .date-calendar[hidden] { display: none; }
.date-calendar { position: fixed; inset: auto; margin: 0; padding: 12px; border: 1px solid #dfe6f0; border-radius: 12px; background: white; color: #273d57; box-shadow: 0 12px 36px #23334d24, 0 2px 6px #23334d0a; font: 13px/1.4 'Segoe UI', system-ui, sans-serif; }
.date-calendar:not([popover]) { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; width: 280px; max-width: min(280px, 90vw); }
.date-calendar-header { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 8px; }
.date-calendar-header button, .date-calendar-grid button { display: grid; place-items: center; min-width: 0; width: 100%; height: 32px; padding: 0; border: 0; border-radius: 7px; color: #354b66; background: transparent; font-size: 13px; font-weight: 400; }
.date-calendar-header button { width: 32px; font-size: 22px; }
.date-calendar-header button:hover, .date-calendar-grid button:hover { background: #edf4fc; }
.date-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; text-align: center; }
.date-calendar-grid > span { padding: 6px 0; color: #8b98a9; font-size: 11px; }
.date-calendar-grid button.is-selected { background: #dceefb; color: #205b88; font-weight: 650; }
@media (max-width: 420px) { .date-period { grid-template-columns: 1fr; } }


.completed-filters { display: grid; gap: 16px; }
.completed-primary-filters { display: grid; grid-template-columns: minmax(200px, 1fr) 2fr; gap: 20px; align-items: end; }
.completed-outcomes { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; min-height: 40px; }
.completed-advanced { margin: 0; padding: 0; border-top: 1px solid var(--line); }
.completed-advanced summary { display: flex; justify-content: space-between; align-items: center; padding: 12px 0 0; list-style: none; color: #667b95; font-size: 13px; }
.completed-advanced summary::-webkit-details-marker { display: none; }
.completed-advanced summary span { transition: transform .15s; }
.completed-advanced[open] summary span { transform: rotate(180deg); }
.completed-advanced-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deal-navigation .archive-switch { flex-wrap: wrap; }
@media (max-width: 767px) { .completed-primary-filters, .completed-advanced-grid { grid-template-columns: 1fr; } }


input[data-phone][aria-invalid=true] { border-color: #cf4747 !important; background: #fff6f6 !important; outline-color: #cf4747 !important; box-shadow: 0 0 0 2px #cf474712 !important; }
.phone-error { display: block; margin-top: 5px; color: #b83232; font-size: 12px; line-height: 1.4; }
.phone-error[hidden] { display: none; }

input[data-phone]::placeholder { color: #929eae; opacity: 1; }


.inquiry-card { display: flex; flex-direction: column; gap: 10px; }
.inquiry-card h2, .inquiry-card p { margin: 0; }
.inquiry-card .request-title { font-size: 16px; color: var(--ink); text-decoration: none; }
.inquiry-card .request-title:hover { color: var(--accent); }
.inquiry-card-action { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 12px; }
.inquiry-card-action form { margin: 0; }
.inquiry-card-action .primary { width: 100%; }
.metrics-outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.creation-form textarea[name="note"]::placeholder { color: #929eae; opacity: 1; }


.kanban-column:has(> .quick-inquiry) > h2 { min-height: 0; margin-bottom: 8px; }
.quick-inquiry { margin: 0 0 12px; padding: 0; border: 0; }
.card-number .inquiry-number { padding: 4px 7px; border-radius: 4px; font-weight: 600; }
.card-number .priority-urgent { background: #fde5e5; color: #a64242; }
.card-number .priority-medium { background: #fff2cb; color: #866514; }
.card-number .priority-low { background: #e2effd; color: #456d9e; }
.inquiry-waiting { display: block; flex-shrink: 0; margin-left: auto; text-align: right; color: #df7b23; font-size: 9px; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-actions:has(.inquiry-waiting) { flex-wrap: nowrap; }
.inquiry-overdue .inquiry-waiting { color: #ff2020; }
.inquiry-overdue [data-accept-request], .inquiry-overdue .inquiry-card-action .primary { color: #c91c1c; border-color: #ef4444; background: #fff0f0; animation: inquiry-alert 1.6s ease-in-out infinite; }
@keyframes inquiry-alert {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .12); }
  50% { box-shadow: 0 0 10px 3px rgba(239, 68, 68, .5); }
}
@media (prefers-reduced-motion: reduce) {
  .inquiry-overdue [data-accept-request], .inquiry-overdue .inquiry-card-action .primary { animation: none; box-shadow: 0 0 6px 2px rgba(239, 68, 68, .35); }
}
.contract-control { width: 100%; min-width: 0; }
.contract-input { position: relative; }
.contract-input input { width: 100%; padding-right: 40px; }
.contract-upload { position: absolute; right: 3px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 30px; padding: 0; border: 0; background: transparent; color: #7d8da3; }
.contract-upload:hover { color: var(--accent); background: #edf3fc; }
.contract-download, [data-contract-filename]:not(:empty) { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.quick-inquiry > summary { display: grid; place-items: center; min-height: 34px; padding: 0; border: 1px dashed #bbc8d8; border-radius: 8px; background: #f6f8fb; color: #929eae; list-style: none; font-size: 25px; font-weight: 400; line-height: 1; cursor: pointer; }
.quick-inquiry > summary::-webkit-details-marker { display: none; }
.quick-inquiry > summary:hover { background: #fff; border-color: #8fa5bf; color: #64778e; }
.quick-inquiry[open] > summary span { transform: rotate(45deg); }
.quick-inquiry-form { padding: 12px; border: 1px solid #dce4ee; border-radius: 9px; background: white; gap: 10px; }
.quick-inquiry-form label { gap: 5px; font-weight: 400; font-size: 12px; }
.quick-inquiry-form input, .quick-inquiry-form textarea { width: 100%; min-width: 0; font-size: 13px; }
.quick-inquiry-form input::placeholder, .quick-inquiry-form textarea::placeholder { color: #929eae; opacity: 1; }
.quick-inquiry-form .primary { width: 100%; font-size: 12px; }
.quick-inquiry-form .phone-error { font-size: 11px; }
