@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('./assets/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('./assets/manrope-extended.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('./assets/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --bg: #f3f7f9;
  --paper: #fff;
  --ink: #0f1d24;
  --muted: #556267;
  --hint: #606d72;
  --line: #dce3e6;
  --dark: #0d1a21;
  --green: #00759f;
  --lime: #00aeed;
  --red: #a62828;
  --sidebar: 220px;
  --shadow: 0 2px 5px #18293008;
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: wait; opacity: .6; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #0088b8; outline-offset: 3px; }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: clamp(1.68rem, 1.3rem + 1.15vw, 2.4rem); line-height: 1.18; letter-spacing: -.055em; font-weight: 800; }
h2 { font-size: 1.24rem; letter-spacing: -.035em; line-height: 1.28; font-weight: 800; }
h3 { font-size: 1rem; font-weight: 800; }
svg { flex-shrink: 0; vertical-align: middle; }
small { font-size: .8rem; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
.sidebar { display: none; }
.workspace { min-width: 0; }
.topbar {
  min-height: 64px; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line);
}
.crumb { display: none; }
.brand { display: grid; justify-items: start; gap: 3px; min-width: 0; }
.brand-logo { display: block; width: 112px; height: auto; }
.brand-caption { font-size: .64rem; color: var(--hint); font-weight: 700; letter-spacing: .02em; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; background: var(--lime); color: #04222d; width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; }
.brand-name { display: grid; gap: 2px; font-size: .98rem; font-weight: 800; letter-spacing: -.04em; line-height: 1.1; white-space: nowrap; }
.brand-name small { font-size: .67rem; color: var(--hint); font-weight: 650; letter-spacing: 0; }
.header-actions { display: flex; align-items: center; gap: 7px; }
.demo-label { display: none; }
.role-picker, .select-shell { position: relative; display: flex; align-items: center; isolation: isolate; gap: 7px; }
.role-picker { color: #204757; }
.role-picker select, .select-shell select {
  appearance: none; background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  min-width: 0; min-height: 44px; color: var(--ink); padding: 8px 30px 8px 12px; font-size: .89rem; font-weight: 800; cursor: pointer;
}
.role-picker select { width: 147px; background: #edf3f6; border-color: #dbe6ea; color: #1e404e; }
.role-picker > svg:first-child { display: none; }
.role-picker > svg:last-child, .select-shell > svg:last-child { position: absolute; right: 9px; pointer-events: none; }
.icon-button { width: 42px; height: 42px; display: inline-grid; place-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; flex-shrink: 0; }
.mobile-reset { width: 32px; border: 0; color: var(--hint); }
.bottom-nav {
  position: fixed; z-index: 9; inset: auto 0 0; display: flex;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px #14262d0b;
}
.nav-button { display: flex; align-items: center; border: 0; background: transparent; font-weight: 750; border-radius: 9px; }
.bottom-nav .nav-button { flex: 1; flex-direction: column; gap: 3px; justify-content: center; min-height: 49px; padding: 5px 2px; color: #526268; font-size: .69rem; white-space: nowrap; }
.bottom-nav .current { color: #1d5065; background: #e8f1f5; }
.main { padding: 16px 14px 92px; max-width: 1800px; margin-inline: auto; }
.button {
  min-height: 48px; min-width: 0; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 14px; font-size: .91rem; font-weight: 800; line-height: 1.3;
}
.primary { background: var(--lime); border-color: #0099d1; color: #04222d; box-shadow: 0 1px 1px #05303f14; }
.primary:hover { background: #46c3f4; }
.secondary { background: var(--paper); border-color: #d8e0e3; color: var(--ink); }
.secondary:hover, .icon-button:hover { background: #f0f4f5; }
.warn-button { color: #815215; border-color: #eadcc6; }
.hero {
  min-height: 187px; padding: 22px 18px; border-radius: 17px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  gap: 16px; color: #fff; overflow: hidden;
  background: linear-gradient(90deg, #0e2027ed 0%, #0e2027d6 40%, #0e202718 100%), #11242c url('./assets/workshop.jpg') right center / cover no-repeat;
}
.hero-kicker { display: inline-flex; align-items: center; gap: 6px; color: #a5def4; font-weight: 800; letter-spacing: .095em; text-transform: uppercase; font-size: .69rem; margin-bottom: 9px; }
.hero h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.65rem); }
.hero-actions .button { white-space: nowrap; }
.page-heading { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin: 6px 0 22px; }
.page-heading p { color: var(--muted); margin-top: 7px; font-size: .97rem; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-heading p { color: var(--muted); font-size: .85rem; margin-top: 5px; }
.statistics { margin-top: 24px; }
.segments { display: inline-flex; gap: 3px; padding: 3px; background: #e8ecee; border: 1px solid #e0e6e9; border-radius: 9px; }
.segments button { background: transparent; border: 0; border-radius: 6px; min-height: 36px; padding: 4px 9px; white-space: nowrap; color: #516066; font-size: .82rem; font-weight: 800; }
.segments button[aria-pressed="true"] { color: var(--ink); background: white; box-shadow: 0 1px 3px #1f313818; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.metric { min-width: 0; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 13px; padding: 12px 10px; }
.metric:last-child:nth-child(odd) { grid-column: 1 / -1; }
.metric-top { display: flex; align-items: center; gap: 7px; font-size: .79rem; color: var(--muted); font-weight: 750; margin-bottom: 8px; }
.metric strong { display: block; line-height: 1.15; font-size: clamp(1.42rem, 1rem + 1.5vw, 2rem); font-weight: 800; letter-spacing: -.055em; white-space: nowrap; }
.metric small { display: block; color: var(--hint); line-height: 1.35; margin-top: 5px; font-size: .73rem; font-weight: 650; }
.icon-tile { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.tone-green { background: #e2f4e7; color: #1d6a3a; }
.tone-slate { background: #eaeef0; color: #4e6067; }
.tone-blue { background: #e7effa; color: #345b91; }
.tone-amber { background: #fff0d6; color: #835514; }
.tone-violet { background: #eeeafa; color: #635095; }
.tone-rose { background: #f7eaf1; color: #86426d; }
.tone-red { background: #fae7e6; color: var(--red); }
.pipeline { margin-top: 26px; }
.main > .pipeline:first-child { margin-top: 5px; }
.pipeline-heading { margin-bottom: 13px; }
.filter-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter {
  display: flex; align-items: center; gap: 5px; min-height: 40px; padding: 5px 8px; border: 1px solid var(--line);
  border-radius: 9px; background: white; color: #4c5b61; font-size: .75rem; font-weight: 800; white-space: nowrap;
}
.filter[aria-pressed="true"] { color: #234f60; background: #e6eff3; border-color: #cedbe0; }
.filter span { display: grid; place-items: center; min-width: 18px; min-height: 17px; border-radius: 5px; background: #ebeff0; padding-inline: 3px; }
.filter .count-red { color: var(--red); background: #fbe9e8; }
.filter .count-amber { color: #835514; background: #fff1d9; }
.board-scroll { overflow-x: auto; padding-bottom: 8px; scrollbar-color: #a6b4b9 #e8eced; scrollbar-width: thin; }
.board { display: grid; grid-template-columns: repeat(6, minmax(220px, 1fr)); gap: 9px; width: 100%; }
.lane { min-width: 0; border: 1px solid #dfe5e8; border-top: 2px solid var(--lane); border-radius: 11px; padding: 8px; background: #edf0f1; }
.lane-slate { --lane: #8ea2aa; }
.lane-blue { --lane: #8eacd0; }
.lane-amber { --lane: #dcb975; }
.lane-violet { --lane: #b6a1d9; }
.lane-rose { --lane: #d99abc; }
.lane-green { --lane: #87a9b7; }
.lane-heading { display: flex; align-items: center; gap: 6px; min-height: 33px; padding: 0 0 7px; }
.lane-heading .icon-tile { width: 26px; height: 26px; border-radius: 7px; }
.lane-heading .icon-tile svg { width: 15px; height: 15px; }
.lane-heading h3 { font-size: .83rem; line-height: 1.15; min-width: 0; letter-spacing: -.018em; }
.lane-count { margin-left: auto; border-radius: 6px; background: #e0e6e9; color: #495960; min-width: 19px; padding: 1px 4px; text-align: center; font-size: .71rem; font-weight: 800; }
.lane-cards { display: grid; gap: 7px; }
.lane-empty { padding: 20px 6px; text-align: center; color: var(--hint); font-size: .83rem; }
.order-card {
  width: 100%; display: flex; flex-direction: column; gap: 6px; text-align: left; min-width: 0;
  border: 1px solid #dfe5e8; border-radius: 9px; background: var(--paper); padding: 10px;
  box-shadow: var(--shadow);
}
.order-card:hover { border-color: #8ea6b0; background: #fbfcfd; }
.order-card-top { width: 100%; display: flex; align-items: center; justify-content: space-between; color: #64757c; }
.order-id { color: #366172; font-size: .76rem; font-weight: 800; letter-spacing: .025em; }
.order-card strong { font-size: .91rem; letter-spacing: -.025em; line-height: 1.3; }
.card-specs, .card-date { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: .76rem; font-weight: 650; }
.card-date { border-top: 1px solid #edeff0; padding-top: 6px; width: 100%; }
.order-card.late-card, .task-card.late-card { border-color: #e4a9a6; background: #fffafa; }
.order-card.issue-card:not(.late-card) { border-color: #e2ce9d; }
.late-text { color: var(--red) !important; font-weight: 800; }
.tags, .card-markers, .detail-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.tag { display: inline-flex; align-items: center; gap: 4px; border-radius: 6px; padding: 4px 6px; font-size: .72rem; line-height: 1.2; font-weight: 800; max-width: 100%; overflow-wrap: anywhere; }
.surface { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.list-surface { overflow: hidden; }
.shipment-worklist { scroll-margin-top: 76px; }
.list-toolbar { padding: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.search { flex: 1; min-width: min(100%, 240px); display: flex; align-items: center; gap: 9px; color: var(--hint); border: 1px solid var(--line); border-radius: 9px; padding: 0 10px; min-height: 45px; background: #fafbfc; }
.search:focus-within { border-color: #7097a7; }
.search input { width: 100%; min-width: 0; color: var(--ink); border: 0; outline: 0; background: transparent; font-size: 1rem; padding-block: 9px; }
.search input::placeholder { color: var(--hint); opacity: 1; }
.select-shell { max-width: 100%; }
.select-shell select { max-width: 100%; }
.person-picker > svg:first-child { position: absolute; left: 12px; pointer-events: none; color: var(--green); }
.person-picker select { padding-left: 37px; }
.customer-picker select { text-overflow: ellipsis; }
.list-header { display: none; }
.list-row {
  display: grid; text-align: left; align-items: center; width: 100%; min-height: 66px; gap: 8px;
  padding: 10px 12px; background: white; border: 0; border-top: 1px solid #e9edee; color: var(--ink);
  font-size: .89rem; font-weight: 700;
}
.list-row:hover, .detail-row:hover { background: #f5f8f9; }
.list-row > svg:last-child, .detail-row > svg:last-child { color: var(--hint); }
.list-row:focus-visible { outline-offset: -3px; }
.table-main { display: flex; align-items: center; gap: 9px; min-width: 0; }
.table-main > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.table-main b { display: block; font-weight: 800; }
.table-main small { display: block; margin-top: 3px; color: var(--hint); font-weight: 650; }
.avatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; flex: none; font-size: .8rem; font-weight: 800; }
.order-row { grid-template-columns: minmax(0, 1fr) auto 13px; }
.order-row > .row-client, .order-row > .row-deadline, .order-row > .row-price { display: none; }
.row-stage { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 110px; }
.client-row { grid-template-columns: minmax(0, 1fr) auto 13px; }
.client-row > .client-telegram, .client-row > .client-count { display: none; }
.payroll-row { grid-template-columns: minmax(0, 1fr) auto 13px; }
.payroll-row .pay-entries, .payroll-row .pay-fixed { display: none; }
.empty { display: grid; justify-items: center; gap: 10px; min-height: 130px; place-content: center; padding: 16px; text-align: center; color: var(--muted); }
.empty svg { color: #647f89; }
.work-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 9px; padding: 13px; margin-bottom: 14px; }
.work-summary > .icon-tile { width: 38px; height: 38px; }
.work-summary small { display: block; color: var(--hint); margin-top: 3px; }
.work-count { padding-left: 9px; min-width: 50px; border-left: 1px solid var(--line); text-align: center; }
.work-count small { font-size: .72rem; }
.tasks-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.task-card { padding: 15px; display: grid; gap: 11px; align-content: start; }
.task-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.task-top .tags { justify-content: flex-end; }
.text-button { border: 0; padding: 3px 0; background: transparent; min-height: 32px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.task-card h3 { font-size: 1.27rem; letter-spacing: -.035em; line-height: 1.22; overflow-wrap: anywhere; }
.task-specs { display: flex; flex-wrap: wrap; gap: 8px 13px; color: var(--muted); font-size: .88rem; }
.task-specs span { display: flex; align-items: center; gap: 4px; }
.task-money { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; font-size: .88rem; color: var(--muted); }
.task-money b { color: var(--green); font-size: 1.1rem; }
.task-actions { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 8px; }
.task-actions .button { min-height: 55px; padding-inline: 7px; }
.earning-hero { min-height: 132px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 15px; justify-content: space-between; background: #192e36; color: #e4edf1; border-radius: 14px; padding: 20px; margin-bottom: 15px; }
.earning-hero span { margin-left: 5px; font-weight: 700; }
.earning-hero strong { display: block; margin-top: 6px; font-size: clamp(2rem, 1.7rem + 2vw, 3rem); line-height: 1.15; letter-spacing: -.055em; color: #d2f2ff; }
.earning-hero svg { color: #00aeed; }
.report-surface, .rates-surface { padding: 15px; }
.report-surface .section-heading, .rates-surface .section-heading { margin-bottom: 13px; }
.fixed-salary { color: var(--muted); padding-block: 9px; }
.rates-grid { display: grid; gap: 10px; }
.rates-grid fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 10px; }
.rates-grid legend { padding-inline: 5px; color: var(--green); font-weight: 800; }
.rate-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rate-inputs label { min-width: 0; display: grid; gap: 5px; font-size: .82rem; color: var(--muted); font-weight: 750; }
.rate-inputs input, .field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 47px; appearance: none; border: 1px solid #d7dfe2;
  padding: 9px 11px; border-radius: 9px; color: var(--ink); background-color: white; font-size: 1rem;
}
.field select {
  padding-right: 29px; background-image: linear-gradient(45deg, transparent 50%, #4e646d 50%), linear-gradient(135deg, #4e646d 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.field input:disabled { background: #eef1f2; }
.field input::placeholder, .field textarea::placeholder { color: #727a7e; opacity: 1; }
.rates-footer { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 15px; }
.rates-footer p { color: var(--muted); font-size: .86rem; display: flex; gap: 7px; align-items: center; }
.chat-wrap { display: grid; justify-items: start; }
.chat { width: min(100%, 505px); border: 1px solid #cfdfdf; background: #e5eff1; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 18px #1a2e3612; }
.chat-title { display: flex; align-items: center; gap: 9px; background: white; padding: 14px 12px; border-bottom: 1px solid #d8e5e8; }
.chat-title b, .chat-title small { display: block; }
.chat-title small { color: var(--muted); }
.chat-title .tag { margin-left: auto; }
.chat-avatar { width: 42px; height: 42px; flex: none; display: grid; place-items: center; background: #2377a5; border-radius: 50%; color: #fff; }
.sms-chat .chat-avatar { background: #355a68; }
.chat-body {
  min-height: 318px; display: flex; flex-direction: column; align-items: flex-start; gap: 9px; padding: 15px 12px 30px;
  background-image: radial-gradient(circle at center, #5b7c821a 1px, transparent 1.5px); background-size: 13px 13px;
}
.sms-chat .chat-body { background: #f3f7f9; }
.chat-day { align-self: center; background: #d3e3e6; color: #3e555b; border-radius: 20px; padding: 4px 9px; font-size: .76rem; font-weight: 800; }
.bubble { background: white; border: 1px solid #d9e2e6; border-radius: 4px 13px 13px; max-width: 92%; padding: 10px 12px; box-shadow: var(--shadow); }
.bubble p { font-size: .93rem; line-height: 1.45; }
.bubble small { display: block; color: var(--hint); text-align: right; margin-top: 3px; }
.ready-bubble { border-color: #c8dae1; background: #e9f5fa; }
.ready-bubble b { color: #2b5a6c; display: flex; align-items: center; gap: 4px; margin-bottom: 4px; }
.track-button { display: flex; align-items: center; gap: 7px; justify-content: center; min-height: 46px; border: 1px solid #c8dce8; border-radius: 9px; background: #f6fcff; color: #205c83; font-size: .91rem; font-weight: 800; padding: 7px 12px; }
.track-button:hover { background: #e7f4fc; }
.tracking { min-width: min(100%, 270px); }
.tracking dl { display: grid; gap: 5px; margin-top: 8px; font-size: .88rem; }
.tracking dl div { display: flex; justify-content: space-between; gap: 16px; }
.tracking dt { color: var(--muted); }
.tracking dd { font-weight: 800; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.chat-shipment-number, .detail-row small { overflow-wrap: anywhere; }
.chat-footer { display: flex; align-items: center; gap: 6px; padding: 13px 12px; background: white; border-top: 1px solid #d8e5e8; color: var(--muted); font-size: .8rem; }
dialog {
  position: fixed; inset: auto 0 0; margin: 0; width: 100%; max-width: none;
  border: 1px solid #d8e2e6; border-radius: 18px 18px 0 0; padding: 0; color: var(--ink); background: white;
  max-height: min(92vh, 92dvh); box-shadow: 0 12px 45px #1321263c;
}
dialog[open] { display: flex; flex-direction: column; }
dialog::backdrop { background: #0c1c23b0; }
.dialog-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; padding: 14px; border-bottom: 1px solid var(--line); }
.dialog-header small { color: var(--green); font-weight: 800; }
.dialog-header h2 { margin-top: 4px; font-size: 1.3rem; overflow-wrap: anywhere; }
.dialog-feedback { flex: none; padding: 9px 14px; border-bottom: 1px solid #dae5ea; background: #e9f3f7; color: #23424e; font-size: .86rem; font-weight: 750; }
.dialog-body { overflow: auto; overscroll-behavior: contain; padding: 14px; }
.dialog-footer { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 11px 14px calc(11px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex: none; }
.dialog-section-title { display: flex; align-items: center; gap: 6px; margin: 17px 0 8px; }
.detail-tags { margin-bottom: 12px; }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 13px; background: #f3f6f7; border: 1px solid #e3e9ec; border-radius: 10px; }
.fact-grid small { display: block; color: var(--muted); margin-bottom: 3px; }
.fact-grid b { font-size: .94rem; overflow-wrap: anywhere; }
.detail-note { color: var(--muted); font-size: .88rem; margin-top: 5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.issue-panel { display: grid; align-items: start; justify-items: start; gap: 8px; background: #fff7e8; color: #65431b; padding: 11px; border-radius: 10px; border: 1px solid #efdfbe; margin-bottom: 12px; }
.issue-panel p { white-space: pre-wrap; overflow-wrap: anywhere; }
.photos { display: flex; flex-wrap: wrap; gap: 8px; }
.photo { padding: 0; background: #eaeef0; display: inline-flex; width: 100px; height: 78px; border: 1px solid #dbe2e5; border-radius: 9px; overflow: hidden; vertical-align: middle; }
.photo-full { display: block; object-fit: contain; width: 100%; max-height: 58dvh; border-radius: 10px; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 8px;
  padding-block: 9px; border-top: 1px solid #e5ebee;
}
.timeline-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; }
.timeline li b, .timeline li strong { font-size: .87rem; }
.timeline li strong { color: var(--green); }
.timeline li small { display: block; color: var(--hint); margin-top: 3px; }
.timeline .photo { margin-top: 6px; }
.detail-list { display: grid; }
.detail-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; text-align: left; background: white; border: 0; border-top: 1px solid #e5ebee; padding: 10px 3px; min-height: 57px; }
.detail-row b { font-size: .9rem; overflow-wrap: anywhere; }
.detail-row small { display: block; color: var(--muted); margin-top: 3px; }
.earning-row strong { color: var(--green); font-size: .91rem; }
.intake-form, .stack { display: grid; gap: 15px; }
.intake-form fieldset { margin: 0; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 11px; }
.intake-form legend { padding-inline: 5px; font-weight: 800; color: var(--green); }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: .88rem; color: var(--muted); font-weight: 800; }
.field textarea { resize: vertical; }
.service-choices { display: flex; flex-wrap: wrap; gap: 6px 11px; }
.checkbox { display: inline-flex; align-items: center; align-self: center; min-height: 41px; gap: 7px; font-size: .88rem; font-weight: 750; cursor: pointer; }
.checkbox input { width: 19px; height: 19px; margin: 0; accent-color: #285d72; flex: none; }
.upload {
  position: relative; display: flex; align-items: center; gap: 10px; min-height: 65px; padding: 8px 11px;
  border: 1px dashed #a2b4bc; border-radius: 10px; background: #f5f8f9; color: var(--green); cursor: pointer;
}
.upload small { display: block; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.upload input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload:focus-within { outline: 2px solid #0088b8; outline-offset: 2px; }
.form-error { color: var(--red); font-size: .88rem; font-weight: 750; }
#toast {
  position: fixed; z-index: 20; left: 50%; bottom: calc(73px + env(safe-area-inset-bottom)); transform: translate(-50%, 10px);
  opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; width: max-content; max-width: calc(100% - 25px);
  padding: 11px 15px; border-radius: 10px; background: #172e37; color: #fff; font-size: .88rem; font-weight: 800; box-shadow: 0 4px 18px #11232a44;
}
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
dialog[open] ~ #toast { display: none; }

@media (max-width: 365px) {
  .mobile-brand .brand-logo { width: 98px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-mark svg { width: 22px; height: 22px; }
  .role-picker select { width: 129px; font-size: .8rem; }
  .header-actions { gap: 3px; }
  .mobile-reset { width: 28px; }
  .table-main > .icon-tile { display: none; }
  .bottom-nav:has(.nav-button:nth-child(6)) .nav-button { font-size: .62rem; padding-inline: 1px; }
}
@media (min-width: 560px) {
  .main { padding-inline: 21px; }
  .hero { min-height: 177px; padding: 23px; }
  .metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
  .metric:last-child:nth-child(odd) { grid-column: auto; }
  .tasks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wide { grid-column: 1 / -1; }
  .rate-inputs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  dialog { inset: 0; margin: auto; width: min(680px, calc(100% - 34px)); border-radius: 18px; }
  .dialog-header, .dialog-body { padding: 18px 20px; }
  .dialog-footer { padding: 12px 20px; }
}
@media (min-width: 850px) {
  .sidebar {
    display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 10;
    color: #e9eff2; background: var(--dark); padding: 20px 14px 15px;
  }
  .sidebar .brand { padding: 0 7px; gap: 6px; }
  .sidebar .brand-logo { width: 156px; }
  .sidebar .brand-caption { color: #a7b5ba; font-size: .7rem; }
  .sidebar-body { margin-top: 38px; }
  .sidebar-body nav { display: grid; gap: 5px; }
  .nav-label { color: #a3b2b8; font-size: .67rem; letter-spacing: .1em; font-weight: 800; margin: 0 0 10px 10px; }
  .sidebar .nav-button { gap: 11px; min-height: 46px; padding: 8px 10px; color: #bbc9ce; text-align: left; font-size: .9rem; }
  .sidebar .nav-button:hover { background: #21333a; color: #fff; }
  .sidebar .nav-button.current { background: #273940; color: #8dddfd; box-shadow: inset 2px 0 0 #00aeed; }
  .sidebar .nav-button:focus-visible, .reset-link:focus-visible { outline-color: var(--lime); }
  .sidebar-footer { margin-top: auto; display: grid; gap: 15px; }
  .reset-link { display: flex; align-items: center; gap: 9px; min-height: 39px; border: 0; border-radius: 8px; background: transparent; color: #b0bec4; text-align: left; padding: 6px 8px; font-size: .82rem; font-weight: 750; }
  .reset-link:hover { background: #21333a; color: white; }
  .persona { display: flex; align-items: center; gap: 9px; border-top: 1px solid #3a494f; padding: 15px 4px 3px; min-width: 0; }
  .persona b { display: block; font-size: .84rem; }
  .persona small { display: block; color: #a8b6bc; margin-top: 3px; }
  .persona .avatar { font-size: .76rem; width: 34px; height: 34px; }
  .workspace { margin-left: var(--sidebar); }
  .topbar { min-height: 65px; padding: 9px 25px; }
  .crumb { display: flex; align-items: center; gap: 9px; color: var(--hint); font-size: .88rem; }
  .crumb b { color: var(--ink); font-weight: 800; }
  .mobile-brand, .mobile-reset, .bottom-nav { display: none; }
  .header-actions { gap: 12px; }
  .demo-label { display: inline-flex; align-items: center; gap: 6px; background: #eaf2f5; color: #355663; border-radius: 20px; padding: 5px 10px; font-size: .75rem; font-weight: 800; }
  .demo-label i { width: 7px; height: 7px; border-radius: 50%; background: #467d93; }
  .role-picker > svg:first-child { display: block; position: absolute; left: 10px; pointer-events: none; }
  .role-picker select { width: 163px; padding-left: 33px; }
  .main { padding: 23px 25px 38px; }
  .hero { flex-direction: row; align-items: center; min-height: 182px; padding: 25px; }
  .hero-kicker { margin-bottom: 9px; }
  .statistics { margin-top: 24px; }
  .pipeline { margin-top: 23px; }
  .board { grid-template-columns: repeat(6, minmax(145px, 1fr)); }
  .filter { min-height: 37px; font-size: .79rem; padding-inline: 9px; }
  .page-heading { margin-top: 9px; }
  .report-surface, .rates-surface { padding: 20px; }
  .list-header { display: grid; padding: 9px 14px; gap: 9px; align-items: center; color: var(--muted); font-size: .81rem; font-weight: 800; background: #f4f6f7; border-top: 1px solid #e6ecef; }
  .list-row { padding: 10px 14px; gap: 9px; }
  .order-row { grid-template-columns: minmax(130px, 1.4fr) minmax(85px, .8fr) minmax(80px, .75fr) minmax(55px, .53fr) minmax(63px, .5fr) 15px; }
  .order-row > .row-client, .order-row > .row-deadline, .order-row > .row-price { display: block; }
  .row-stage { justify-content: flex-start; max-width: none; }
  .client-row { grid-template-columns: minmax(125px, 1.25fr) minmax(110px, 1fr) minmax(100px, 1fr) minmax(70px, .5fr) 15px; }
  .client-row > .client-telegram, .client-row > .client-count { display: block; overflow-wrap: anywhere; }
  .payroll-row { grid-template-columns: minmax(140px, 1.3fr) minmax(86px, .85fr) minmax(94px, .9fr) minmax(70px, .6fr) 15px; }
  .payroll-row .pay-entries, .payroll-row .pay-fixed { display: block; }
  #toast { bottom: 23px; }
}
@media (min-width: 1100px) {
  .main { padding-inline: 29px; }
  .topbar { padding-inline: 29px; }
  .hero { padding: 25px 28px; background-position: center 55%; }
  .metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
  .metric { padding: 12px 13px; min-height: 114px; }
  .metric-top { font-size: .83rem; }
  .metric small { font-size: .76rem; }
  .board { gap: 10px; }
  .lane { padding: 8px; }
  .tasks-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1330px) {
  :root { --sidebar: 226px; }
  .topbar { padding-inline: 30px; }
  .main { padding-inline: 30px; }
  .hero { min-height: 184px; }
  .metric { padding: 13px 14px; }
  .metric-top { font-size: .86rem; }
  .lane { padding: 9px; }
  .lane-heading h3 { font-size: .86rem; }
  .board { grid-template-columns: repeat(6, minmax(153px, 1fr)); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; }
}
.notify-client { margin-top: 14px; }
.notify-buttons { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.notify-buttons .button { justify-content: center; text-decoration: none; }
@media (min-width: 560px) { .notify-buttons { grid-template-columns: repeat(4, 1fr); } }
