:root {
  --bg: #0d0e0d;
  --bg-soft: #121311;
  --panel: #171815;
  --panel-2: #1d1e1a;
  --panel-3: #24251f;
  --line: rgba(221, 174, 71, 0.20);
  --line-strong: rgba(221, 174, 71, 0.42);
  --gold: #d8a936;
  --gold-bright: #f0c85e;
  --gold-soft: rgba(216, 169, 54, 0.12);
  --text: #f2f0e9;
  --muted: #a5a59d;
  --muted-2: #71736d;
  --red: #db5951;
  --red-soft: rgba(219, 89, 81, 0.12);
  --green: #65b67a;
  --green-soft: rgba(101, 182, 122, 0.13);
  --blue: #6699d5;
  --blue-soft: rgba(102, 153, 213, 0.13);
  --purple: #9f7bd1;
  --purple-soft: rgba(159, 123, 209, 0.13);
  --orange: #df9147;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 14px;
  --sidebar: 246px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); color-scheme: dark; }
body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 70% -20%, rgba(216,169,54,.08), transparent 34%),
    linear-gradient(180deg, #0b0c0b, #10110f 45%, #0c0d0c);
  color: var(--text);
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; }
.hidden { display: none !important; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar) 1fr; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 30;
  display: flex; flex-direction: column;
  padding: 22px 14px 18px;
  background: linear-gradient(180deg, #10110f, #0c0d0c 80%);
  border-right: 1px solid var(--line);
}
.brand {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 12px;
  padding: 2px 8px 22px; cursor: pointer; user-select: none;
}
.brand-mark {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold-bright); border: 1px solid var(--line-strong); background: var(--gold-soft);
  box-shadow: inset 0 0 20px rgba(216,169,54,.08);
}
.brand-columns { font-size: 27px; transform: rotate(90deg); }
.brand-name { color: var(--gold-bright); font-family: Georgia, serif; font-size: 21px; line-height: 1.02; }
.side-nav {
  display: grid;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-right: 6px;
  margin-right: -6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.side-nav::-webkit-scrollbar { width: 5px; }
.side-nav::-webkit-scrollbar-track { background: transparent; }
.side-nav::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.side-nav::-webkit-scrollbar-thumb:hover { background: var(--gold); }
.nav-item {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 11px 13px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: #c7c7c0; cursor: pointer; text-align: left;
  transition: .18s ease;
}
.nav-item:hover { background: rgba(255,255,255,.035); color: var(--text); }
.nav-item.active {
  color: var(--gold-bright); background: linear-gradient(90deg, rgba(216,169,54,.16), rgba(216,169,54,.05));
  border-color: var(--line-strong); box-shadow: inset 3px 0 0 var(--gold);
}
.nav-icon { width: 24px; font-size: 18px; text-align: center; }
.nav-badge {
  margin-left: auto; min-width: 22px; height: 22px; border-radius: 99px; padding: 0 7px;
  display: grid; place-items: center; font-size: 12px; background: var(--red); color: white;
}
.sidebar-bottom { flex: 0 0 auto; margin-top: 18px; display: grid; gap: 20px; }
.support-card {
  display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 13px;
  border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.018);
}
.support-card strong { display: block; color: var(--gold-bright); font-size: 12px; margin-bottom: 7px; }
.support-card span { display: block; color: var(--muted); font-size: 11px; line-height: 1.6; }
.support-icon { color: var(--gold); font-size: 20px; }
.copyright { color: #686a65; font-size: 11px; line-height: 1.5; padding: 0 8px; }

.main-area { grid-column: 2; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; min-height: 86px;
  display: flex; align-items: center; gap: 22px; padding: 16px 22px;
  background: rgba(13,14,13,.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(216,169,54,.14);
}
.mobile-menu { display: none; border: 0; background: transparent; font-size: 25px; cursor: pointer; }
.topbar-title-wrap { min-width: 235px; }
.topbar h1 { margin: 0; font-family: Georgia, serif; font-size: 25px; font-weight: 500; }
.topbar p { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.topbar-actions { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 0; }
.global-search {
  flex: 1; max-width: 460px; min-width: 180px; height: 44px;
  display: flex; align-items: center; gap: 9px; padding: 0 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #11120f;
}
.global-search span { color: var(--gold); font-size: 20px; }
.global-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--text); }
.global-search input::placeholder { color: #777970; }
.role-switcher {
  height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 9px; background: #11120f;
}
.role-label { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.role-switcher select { border: 0; outline: 0; background: transparent; color: var(--text); cursor: pointer; }

.theme-toggle {
  height: 44px;
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--gold-soft);
}
.theme-icon {
  width: 20px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}
.theme-text {
  font-size: 12px;
  white-space: nowrap;
}

.profile-button {
  min-width: 190px; height: 48px; display: flex; align-items: center; gap: 10px;
  border: 0; background: transparent; cursor: pointer; border-radius: 10px; padding: 4px 8px;
}
.profile-button:hover { background: rgba(255,255,255,.035); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, #4b3a1a, #b48727); color: #fff7dc; font-weight: 700;
  border: 1px solid rgba(240,200,94,.45);
}
.profile-copy { display: grid; text-align: left; line-height: 1.3; }
.profile-copy strong { font-size: 13px; }
.profile-copy small { color: var(--muted); font-size: 11px; }
.chevron { margin-left: auto; color: var(--muted); }

.content { padding: 20px 22px 42px; min-height: calc(100vh - 86px); }
.page-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px;
}
.page-head h2 { margin: 0; font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.page-head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.page-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 14px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-grid { grid-template-columns: 1.25fr .9fr; align-items: start; }
.dashboard-bottom { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.contractor-layout { grid-template-columns: minmax(0, 1fr) 280px; align-items: start; }

.card {
  background: linear-gradient(145deg, rgba(29,30,26,.98), rgba(20,21,18,.98));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.card-pad { padding: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 16px 10px; }
.card-header h3 { margin: 0; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.card-header p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.card-body { padding: 0 16px 16px; }
.metric-card { position: relative; overflow: hidden; min-height: 116px; padding: 16px; }
.metric-card::after {
  content: ""; position: absolute; width: 110px; height: 110px; right: -42px; top: -42px;
  border-radius: 50%; background: radial-gradient(circle, rgba(216,169,54,.13), transparent 70%);
}
.metric-top { display: flex; align-items: center; gap: 11px; }
.metric-icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  color: var(--gold-bright); border: 1px solid var(--line-strong); background: var(--gold-soft);
}
.metric-label { color: #d7d5ce; font-size: 12px; }
.metric-value { margin-top: 3px; font-family: Georgia, serif; font-size: 29px; }
.metric-foot { margin-top: 10px; display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.metric-up { color: var(--green); }
.metric-down { color: var(--red); }
.sparkline { color: var(--gold); letter-spacing: -2px; font-size: 18px; }

.btn {
  min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-strong);
  background: transparent; color: var(--gold-bright); cursor: pointer; transition: .18s ease;
}
.btn:hover { transform: translateY(-1px); border-color: rgba(240,200,94,.72); background: rgba(216,169,54,.07); }
.btn-primary {
  border-color: #e4b744; background: linear-gradient(180deg, #e5b740, #c99424); color: #17130a;
  font-weight: 700; box-shadow: 0 8px 20px rgba(201,148,36,.18);
}
.btn-primary:hover { background: linear-gradient(180deg, #f0c85e, #d3a02c); }
.btn-danger { border-color: rgba(219,89,81,.55); color: #ff8a82; background: var(--red-soft); }
.btn-success { border-color: rgba(101,182,122,.5); color: #91d9a2; background: var(--green-soft); }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-small { min-height: 32px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.icon-button {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line);
  background: rgba(255,255,255,.02); cursor: pointer; font-size: 22px;
}
.icon-button:hover { border-color: var(--line-strong); }

.filters {
  display: grid; grid-template-columns: 1.1fr 1.2fr 1fr 1fr auto; gap: 12px; align-items: end;
  padding: 14px; margin-bottom: 14px;
}
.field { display: grid; gap: 7px; min-width: 0; }
.field > span, .field label > span { color: var(--muted); font-size: 11px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); background: #11120f; color: var(--text);
  border-radius: 8px; outline: 0;
}
.input, .select { height: 40px; padding: 0 11px; }
.textarea { min-height: 88px; padding: 10px 11px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(240,200,94,.65); box-shadow: 0 0 0 3px rgba(216,169,54,.08); }
.check-row { display: flex; align-items: center; gap: 8px; color: #d0cec7; font-size: 12px; }
.check-row input { accent-color: var(--gold); width: 16px; height: 16px; }
.inline-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; min-height: 24px; padding: 2px 8px; border-radius: 6px;
  font-size: 11px; border: 1px solid rgba(255,255,255,.12); color: #b9bab4; background: rgba(255,255,255,.025);
}
.tag.gold { color: var(--gold-bright); border-color: var(--line-strong); background: var(--gold-soft); }
.tag.green { color: #82cf94; border-color: rgba(101,182,122,.34); background: var(--green-soft); }
.tag.red { color: #ff827a; border-color: rgba(219,89,81,.40); background: var(--red-soft); }
.tag.blue { color: #8bb8eb; border-color: rgba(102,153,213,.38); background: var(--blue-soft); }
.tag.purple { color: #c3a4eb; border-color: rgba(159,123,209,.38); background: var(--purple-soft); }

.order-list { display: grid; gap: 10px; }
.order-card {
  position: relative; display: grid; grid-template-columns: 88px minmax(0,1fr) 290px;
  border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(145deg,#1b1c18,#151613);
  overflow: hidden;
}
.order-card.recommended { border-color: rgba(216,169,54,.58); box-shadow: inset 3px 0 0 var(--gold); }
.order-card.urgent { border-color: rgba(219,89,81,.46); box-shadow: inset 3px 0 0 var(--red); }
.order-meta { padding: 15px 12px; border-right: 1px solid rgba(216,169,54,.12); color: var(--muted); font-size: 11px; }
.order-number { font-family: Georgia, serif; color: var(--text); font-size: 17px; margin-bottom: 8px; }
.order-fit { margin-top: 14px; color: var(--gold-bright); font-size: 10px; }
.order-fit.urgent-text { color: #ff7770; }
.order-main { padding: 14px 16px; min-width: 0; }
.order-main h3 { margin: 0; font-family: Georgia, serif; font-size: 18px; font-weight: 500; }
.order-location { margin-top: 5px; color: var(--gold); font-size: 11px; }
.order-description { margin: 8px 0 10px; color: #a9aaa3; font-size: 12px; line-height: 1.45; }
.order-side {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px;
  padding: 14px 14px 14px 0; align-items: start;
}
.order-stat strong { display: block; font-family: Georgia, serif; font-size: 17px; font-weight: 500; }
.order-stat small { color: var(--muted); font-size: 10px; }
.order-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 3px; }
.order-actions small { grid-column: 1/-1; text-align: right; color: var(--muted); font-size: 10px; }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { text-align: left; color: var(--muted); font-weight: 500; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.data-table td { padding: 11px 12px; border-bottom: 1px solid rgba(216,169,54,.10); color: #d3d2cc; vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(216,169,54,.035); }
.table-title { color: var(--text); font-weight: 600; }
.table-muted { display: block; color: var(--muted); font-size: 10px; margin-top: 3px; }

.status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 7px; }
.status-dot.green { background: var(--green); }
.status-dot.red { background: var(--red); }
.status-dot.gold { background: var(--gold); }
.status-dot.blue { background: var(--blue); }
.status-dot.purple { background: var(--purple); }

.donut-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; padding: 0 16px 18px; }
.donut {
  width: 160px; aspect-ratio: 1; border-radius: 50%; margin: auto; position: relative;
  background: conic-gradient(var(--blue) 0 25%, var(--gold) 25% 63%, var(--purple) 63% 77%, var(--green) 77% 94%, var(--red) 94% 100%);
}
.donut::after { content: "128\A заказов"; white-space: pre; position: absolute; inset: 26px; border-radius: 50%; background: #171815; display: grid; place-items: center; text-align: center; font-family: Georgia, serif; font-size: 18px; }
.legend { display: grid; gap: 10px; }
.legend-row { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; color: #d4d3cd; font-size: 12px; }
.legend-swatch { width: 9px; height: 9px; border-radius: 3px; }

.chart { height: 235px; padding: 10px 16px 16px; position: relative; overflow: hidden; }
.chart-grid { position: absolute; inset: 22px 16px 34px; background: repeating-linear-gradient(to bottom, transparent 0 42px, rgba(255,255,255,.055) 43px); }
.chart-line { position: absolute; inset: 20px 20px 28px; }
.chart-line svg { width: 100%; height: 100%; overflow: visible; }
.chart-axis { position: absolute; bottom: 10px; left: 42px; right: 25px; display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }

.side-stack { display: grid; gap: 12px; position: sticky; top: 104px; }
.profile-summary { padding: 16px; }
.profile-summary-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.profile-summary .avatar { width: 58px; height: 58px; font-size: 18px; }
.big-rating { color: var(--gold-bright); font-family: Georgia, serif; font-size: 27px; }
.profile-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0; }
.mini-stat { padding: 10px; border-radius: 9px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); }
.mini-stat strong { display: block; font-family: Georgia, serif; font-size: 18px; }
.mini-stat span { color: var(--muted); font-size: 10px; }
.info-list { display: grid; gap: 10px; }
.info-row { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; }
.info-row .bullet { color: var(--gold); }
.info-row small { display: block; color: var(--muted); margin-top: 3px; }

.timeline { display: grid; gap: 0; }
.timeline-item { display: grid; grid-template-columns: 20px 1fr auto; gap: 10px; padding: 11px 0; border-bottom: 1px solid rgba(216,169,54,.1); font-size: 12px; }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item time { color: var(--muted); font-size: 10px; }

.category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.category-card {
  min-height: 142px; position: relative; overflow: hidden; padding: 15px; border-radius: 13px;
  border: 1px solid var(--line); background: linear-gradient(145deg,#22231e,#151613); cursor: pointer;
}
.category-card::after { content:""; position:absolute; inset:auto -20px -35px auto; width:110px; height:110px; border-radius:50%; background: radial-gradient(circle,rgba(216,169,54,.22),transparent 68%); }
.category-card:hover { border-color: rgba(240,200,94,.65); transform: translateY(-2px); }
.category-card.selected { box-shadow: inset 0 0 0 2px var(--gold); }
.category-icon { font-size: 29px; color: var(--gold-bright); }
.category-card h4 { margin: 27px 0 5px; font-family: Georgia,serif; font-size: 16px; font-weight:500; }
.category-card p { margin:0; color:var(--muted); font-size:11px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.form-section { padding: 17px; margin-bottom: 14px; }
.form-section h3 { margin: 0 0 13px; font-family: Georgia,serif; font-size:18px; font-weight:500; }
.form-help { margin: -5px 0 13px; color:var(--muted); font-size:11px; }
.range-preview { padding: 11px; border-radius:9px; background:var(--gold-soft); border:1px solid var(--line); color:var(--gold-bright); font-size:12px; }

.tabs { display:flex; gap:5px; padding:5px; border:1px solid var(--line); border-radius:10px; background:#11120f; width:max-content; max-width:100%; overflow:auto; }
.tab { min-height:34px; border:0; padding:0 12px; border-radius:7px; background:transparent; color:var(--muted); cursor:pointer; white-space:nowrap; }
.tab.active { background:var(--gold-soft); color:var(--gold-bright); }

.application-card { padding:14px; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:15px; align-items:center; border-bottom:1px solid rgba(216,169,54,.1); }
.application-card:last-child { border-bottom:0; }
.application-person { display:flex; align-items:center; gap:11px; }
.application-details h4 { margin:0 0 4px; }
.application-details p { margin:0; color:var(--muted); font-size:11px; }
.application-offer { display:grid; grid-template-columns:repeat(3,auto); gap:18px; align-items:center; }
.offer-stat strong { display:block; font-family:Georgia,serif; }
.offer-stat small { color:var(--muted); font-size:10px; }

.workflow-grid { display:grid; gap:10px; }
.workflow-item { border:1px solid var(--line); border-radius:12px; padding:14px; background:rgba(255,255,255,.018); }
.workflow-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.workflow-top h4 { margin:0; font-size:14px; }
.workflow-top p { margin:5px 0 0; color:var(--muted); font-size:11px; line-height:1.45; }
.workflow-controls { display:grid; grid-template-columns:1fr 180px; gap:12px; margin-top:13px; }
.file-drop { position:relative; min-height:78px; display:grid; place-items:center; text-align:center; padding:12px; border:1px dashed rgba(216,169,54,.42); border-radius:9px; background:rgba(216,169,54,.035); color:var(--muted); font-size:11px; cursor:pointer; }
.file-drop input { position:absolute; inset:0; opacity:0; cursor:pointer; }
.file-drop strong { color:var(--gold-bright); display:block; margin-bottom:3px; }
.no-photo-box { display:grid; gap:8px; align-content:start; padding:10px; border-radius:9px; background:#11120f; border:1px solid rgba(255,255,255,.07); }
.photo-count { color:var(--green); font-size:11px; margin-top:6px; }
.workflow-status { flex:0 0 auto; }

.knowledge-layout { display:grid; grid-template-columns:270px minmax(0,1fr); gap:14px; }
.knowledge-menu { padding:10px; display:grid; gap:5px; align-content:start; }
.knowledge-link { text-align:left; padding:11px 12px; border:1px solid transparent; border-radius:8px; background:transparent; color:#c0c1ba; cursor:pointer; }
.knowledge-link.active { color:var(--gold-bright); background:var(--gold-soft); border-color:var(--line); }
.article { padding:22px; }
.article h2 { font-family:Georgia,serif; font-weight:500; }
.article h3 { margin-top:24px; color:var(--gold-bright); }
.article p, .article li { color:#c1c0ba; font-size:13px; line-height:1.65; }
.callout { padding:13px; border-left:3px solid var(--gold); background:var(--gold-soft); border-radius:0 9px 9px 0; color:#ded9ca; }

.modal-backdrop { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; background:rgba(0,0,0,.72); backdrop-filter:blur(8px); }
.modal { width:min(760px,100%); max-height:calc(100vh - 40px); display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line-strong); border-radius:16px; background:linear-gradient(145deg,#1b1c18,#121310); box-shadow:0 30px 100px rgba(0,0,0,.55); }
.modal.wide { width:min(1050px,100%); }
.modal-header { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; padding:18px 20px 14px; border-bottom:1px solid var(--line); }
.modal-header h2 { margin:0; font-family:Georgia,serif; font-weight:500; }
.modal-header p { margin:5px 0 0; color:var(--muted); font-size:12px; }
.modal-body { padding:18px 20px; overflow:auto; }
.modal-footer { min-height:64px; display:flex; justify-content:flex-end; align-items:center; gap:10px; padding:12px 20px; border-top:1px solid var(--line); }

.toast-stack { position:fixed; right:18px; bottom:18px; z-index:150; display:grid; gap:9px; }
.toast { width:min(370px,calc(100vw - 36px)); padding:13px 14px; border-radius:10px; border:1px solid var(--line-strong); background:#1d1e1a; box-shadow:var(--shadow); animation:toastIn .22s ease; }
.toast strong { display:block; margin-bottom:3px; color:var(--gold-bright); }
.toast span { color:#c6c5bf; font-size:12px; }
.toast.error { border-color:rgba(219,89,81,.55); }
.toast.error strong { color:#ff8a82; }
@keyframes toastIn { from { opacity:0; transform:translateY(12px);} to {opacity:1; transform:none;} }

.empty-state { min-height:260px; display:grid; place-items:center; align-content:center; text-align:center; padding:30px; color:var(--muted); }
.empty-icon { color:var(--gold); font-size:34px; }
.empty-state h3 { color:var(--text); margin:10px 0 5px; }
.empty-state p { margin:0; font-size:12px; }

.mobile-overlay { display:none; }

@media (max-width: 1260px) {
  :root { --sidebar: 220px; }
  .grid-4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard-bottom { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .order-card { grid-template-columns: 76px minmax(0,1fr); }
  .order-side { grid-column:2; padding:0 14px 14px; }
  .category-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .role-label { display:none; }
}

@media (max-width: 980px) {
  :root { --sidebar: 246px; }
  .app-shell { display:block; }
  .sidebar { transform:translateX(-105%); transition:.25s ease; box-shadow:30px 0 60px rgba(0,0,0,.45); }
  .sidebar.open { transform:translateX(0); }
  .main-area { grid-column:auto; }
  .mobile-menu { display:block; }
  .topbar { gap:12px; }
  .topbar-title-wrap { min-width:0; }
  .topbar-actions { gap:8px; }
  .global-search { max-width:none; }
  .profile-copy, .chevron { display:none; }

.theme-toggle {
  height: 44px;
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--gold-soft);
}
.theme-icon {
  width: 20px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}
.theme-text {
  font-size: 12px;
  white-space: nowrap;
}

.profile-button { min-width:auto; }
  .dashboard-grid, .contractor-layout, .knowledge-layout { grid-template-columns:1fr; }
  .side-stack { position:static; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filters > :last-child { grid-column:1/-1; }
}

@media (max-width: 720px) {
  .topbar { padding:11px 12px; min-height:72px; }
  .topbar h1 { font-size:19px; }
  .topbar p { display:none; }
  .global-search { display:none; }
  .role-switcher { flex:1; }
  .role-switcher select { width:100%; }
  .content { padding:14px 12px 30px; }
  .grid-4, .grid-3, .grid-2, .dashboard-bottom, .side-stack, .form-grid { grid-template-columns:1fr; }
  .form-grid .span-2 { grid-column:auto; }
  .page-head { align-items:flex-start; flex-direction:column; }
  .filters { grid-template-columns:1fr; }
  .filters > :last-child { grid-column:auto; }
  .category-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .order-card { grid-template-columns:1fr; }
  .order-meta { border-right:0; border-bottom:1px solid rgba(216,169,54,.12); display:flex; justify-content:space-between; align-items:center; padding:10px 13px; }
  .order-fit { margin:0; }
  .order-side { grid-column:auto; padding:0 13px 13px; }
  .order-actions { grid-template-columns:1fr; }
  .application-card { grid-template-columns:1fr; }
  .application-offer { grid-template-columns:repeat(3,1fr); }
  .workflow-controls { grid-template-columns:1fr; }
  .donut-wrap { grid-template-columns:1fr; }
  .modal-backdrop { padding:8px; }
  .modal { max-height:calc(100vh - 16px); border-radius:12px; }
}

@media (max-width: 450px) {
  .category-grid { grid-template-columns:1fr; }
  .topbar-title-wrap { display:none; }
  .role-switcher { min-width:0; }

.theme-toggle {
  height: 44px;
  min-width: 104px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: .18s ease;
}
.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--gold-soft);
}
.theme-icon {
  width: 20px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}
.theme-text {
  font-size: 12px;
  white-space: nowrap;
}

.profile-button { padding:0; }
  .metric-card { min-height:105px; }
  .application-offer { grid-template-columns:1fr 1fr; }
}


/* Светлая тема — основная */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f1ea;
  --bg-soft: #f8f6f1;
  --panel: #ffffff;
  --panel-2: #f7f4ee;
  --panel-3: #eee9df;
  --line: rgba(128, 91, 21, 0.16);
  --line-strong: rgba(128, 91, 21, 0.34);
  --gold: #a97818;
  --gold-bright: #8d6210;
  --gold-soft: rgba(169, 120, 24, 0.10);
  --text: #28251f;
  --muted: #777168;
  --muted-2: #a39d92;
  --red: #c54d47;
  --red-soft: rgba(197, 77, 71, 0.10);
  --green: #438f5b;
  --green-soft: rgba(67, 143, 91, 0.10);
  --blue: #477db8;
  --blue-soft: rgba(71, 125, 184, 0.10);
  --purple: #805aad;
  --purple-soft: rgba(128, 90, 173, 0.10);
  --orange: #c97a34;
  --shadow: 0 14px 38px rgba(54, 42, 20, 0.08);
}

html[data-theme="light"] body {
  background:
    radial-gradient(circle at 74% -18%, rgba(169, 120, 24, .09), transparent 33%),
    linear-gradient(180deg, #faf8f4, #f3efe7 55%, #f7f4ee);
}

html[data-theme="light"] .sidebar {
  background: linear-gradient(180deg, #ffffff, #f5f1e8 82%);
  border-right-color: rgba(128, 91, 21, .18);
  box-shadow: 8px 0 28px rgba(65, 50, 23, .04);
}

html[data-theme="light"] .brand-mark {
  box-shadow: inset 0 0 20px rgba(169, 120, 24, .06);
}

html[data-theme="light"] .nav-item { color: #5f5b53; }
html[data-theme="light"] .nav-item:hover {
  background: rgba(75, 63, 41, .045);
  color: var(--text);
}
html[data-theme="light"] .nav-item.active {
  color: var(--gold-bright);
  background: linear-gradient(90deg, rgba(169,120,24,.13), rgba(169,120,24,.04));
}
html[data-theme="light"] .support-card { background: rgba(255,255,255,.58); }
html[data-theme="light"] .copyright { color: #9a958b; }

html[data-theme="light"] .topbar {
  background: rgba(250, 248, 244, .90);
  border-bottom-color: rgba(128, 91, 21, .14);
  box-shadow: 0 8px 24px rgba(63, 49, 25, .04);
}

html[data-theme="light"] .global-search,
html[data-theme="light"] .role-switcher,
html[data-theme="light"] .theme-toggle,
html[data-theme="light"] .input,
html[data-theme="light"] .select,
html[data-theme="light"] .textarea,
html[data-theme="light"] .tabs,
html[data-theme="light"] .no-photo-box {
  background: #fff;
}

html[data-theme="light"] .global-search input::placeholder { color: #aaa398; }
html[data-theme="light"] .profile-button:hover { background: rgba(75, 63, 41, .045); }
html[data-theme="light"] .card {
  background: linear-gradient(145deg, rgba(255,255,255,.99), rgba(249,246,239,.99));
}
html[data-theme="light"] .metric-label { color: #625e56; }
html[data-theme="light"] .icon-button { background: rgba(255,255,255,.72); }
html[data-theme="light"] .check-row { color: #58544c; }

html[data-theme="light"] .tag {
  border-color: rgba(72, 65, 53, .13);
  color: #666158;
  background: rgba(72, 65, 53, .035);
}
html[data-theme="light"] .tag.green { color: #337648; }
html[data-theme="light"] .tag.red { color: #ad3e39; }
html[data-theme="light"] .tag.blue { color: #356da9; }
html[data-theme="light"] .tag.purple { color: #704a9b; }

html[data-theme="light"] .order-card {
  background: linear-gradient(145deg, #ffffff, #f9f6ef);
}
html[data-theme="light"] .order-description { color: #6f6a61; }
html[data-theme="light"] .data-table td { color: #4d4942; }
html[data-theme="light"] .data-table tbody tr:hover { background: rgba(169,120,24,.045); }
html[data-theme="light"] .donut::after { background: #fff; }
html[data-theme="light"] .legend-row { color: #555149; }
html[data-theme="light"] .chart-grid {
  background: repeating-linear-gradient(to bottom, transparent 0 42px, rgba(59,51,38,.065) 43px);
}
html[data-theme="light"] .mini-stat {
  background: rgba(76, 66, 48, .035);
  border-color: rgba(76, 66, 48, .08);
}

html[data-theme="light"] .category-card {
  background: linear-gradient(145deg, #ffffff, #f4efe5);
}
html[data-theme="light"] .workflow-item { background: rgba(255,255,255,.62); }
html[data-theme="light"] .knowledge-link { color: #625e55; }
html[data-theme="light"] .article p,
html[data-theme="light"] .article li { color: #5f5a51; }
html[data-theme="light"] .callout { color: #4d4639; }

html[data-theme="light"] .modal-backdrop { background: rgba(33, 29, 23, .38); }
html[data-theme="light"] .modal {
  background: linear-gradient(145deg, #ffffff, #f7f3eb);
  box-shadow: 0 30px 100px rgba(46, 37, 21, .22);
}
html[data-theme="light"] .toast { background: #fff; }
html[data-theme="light"] .toast span { color: #5c574f; }

/* Тёмная тема */
html[data-theme="dark"] { color-scheme: dark; }

@media (max-width: 1260px) {
  .theme-toggle { min-width: 44px; width: 44px; padding: 0; }
  .theme-text { display: none; }
}

@media (max-width: 720px) {
  .theme-toggle { flex: 0 0 42px; width: 42px; height: 42px; }
}


a { color: inherit; text-decoration: none; }
.nav-button { width: 100%; border: 0; font: inherit; cursor: pointer; }
.side-nav form { margin: 0; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; display:grid; place-items:center; border-radius:999px; background:var(--red); color:#fff; font-size:10px; }
.messages { display:grid; gap:8px; margin-bottom:14px; }
.alert { padding:12px 14px; border:1px solid var(--line); border-radius:9px; background:var(--panel); }
.alert.success { border-color:rgba(67,143,91,.4); background:var(--green-soft); }
.alert.error { border-color:rgba(197,77,71,.42); background:var(--red-soft); }
.alert.warning { border-color:rgba(201,122,52,.4); }
.filters { padding:14px; display:flex; align-items:end; gap:12px; margin-bottom:14px; }
.grow { flex:1; }
.order-list { display:grid; gap:10px; }
.order-card { grid-template-columns:100px minmax(0,1fr) 180px; }
.order-title-row { display:flex; justify-content:space-between; gap:12px; }
.order-title-row h3 { margin:0 0 4px; font-family:Georgia,serif; font-weight:500; }
.order-title-row p { margin:0; color:var(--muted); font-size:12px; }
.order-meta { display:grid; gap:8px; align-content:start; }
.order-meta div { display:flex; justify-content:space-between; gap:8px; }
.order-meta small { color:var(--muted); }
.metrics-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:14px; }
.metric-card { min-height:112px; padding:18px; display:flex; align-items:center; gap:15px; }
.metric-card strong { display:block; margin-top:5px; font:500 30px Georgia,serif; }
.metric-card.danger .metric-icon { color:var(--red); border-color:rgba(197,77,71,.4); }
.table-card { overflow:hidden; }
.form-page { max-width:1100px; }
.form-actions { display:flex; justify-content:flex-end; gap:10px; margin-top:14px; }
.field small { color:var(--muted); font-size:11px; }
.field-error { color:var(--red); font-size:11px; }
.check-grid ul, ul.check-grid { list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.check-grid li, .check-grid > div { padding:9px 10px; border:1px solid var(--line); border-radius:8px; background:var(--panel-2); }
.check-grid label { display:flex; gap:8px; align-items:flex-start; }
.check-grid.compact { display:flex; flex-wrap:wrap; gap:10px; margin-top:12px; }
.check-grid.compact > div, .check-grid.compact > label { padding:9px 11px; border:1px solid var(--line); border-radius:8px; }
.detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:14px; }
.stack { display:grid; gap:14px; }
.detail-head { display:flex; justify-content:space-between; gap:20px; }
.detail-head h2 { font-family:Georgia,serif; font-weight:500; }
.price-block { min-width:170px; padding:14px; border:1px solid var(--line); border-radius:10px; background:var(--gold-soft); display:grid; gap:6px; align-content:start; }
.price-block strong { font-size:22px; }
.facts { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; margin:18px 0 0; }
.facts div { padding:10px; border:1px solid var(--line); border-radius:8px; }
.facts dt { color:var(--muted); font-size:11px; }
.facts dd { margin:4px 0 0; }
.facts.vertical { grid-template-columns:1fr; }
.workflow-item { display:flex; justify-content:space-between; gap:12px; align-items:center; padding:12px; border:1px solid var(--line); border-radius:9px; }
.workflow-item small { display:block; color:var(--muted); margin-top:4px; }
.photo-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(130px,1fr)); gap:8px; margin-top:12px; }
.photo-grid img { width:100%; height:120px; object-fit:cover; border:1px solid var(--line); border-radius:8px; }
.evidence-card, .evidence-editor { padding:16px; }
.evidence-card { border:1px solid var(--line); border-radius:10px; }
.evidence-head { display:flex; justify-content:space-between; gap:12px; align-items:start; }
.evidence-head small { display:block; color:var(--muted); margin-bottom:4px; }
.evidence-head h3 { margin:0; font-family:Georgia,serif; font-weight:500; }
.review-form { display:grid; grid-template-columns:190px 1fr auto; gap:8px; margin-top:12px; }
.callout { padding:11px 12px; border-left:3px solid var(--gold); border-radius:7px; background:var(--gold-soft); }
.action-stack h4 { margin:0; }
.btn-wide { width:100%; justify-content:center; }
.narrow { max-width:620px; }
.profile-grid { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:14px; }
.rating-circle { width:72px; height:72px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:50%; color:var(--gold); font:500 22px Georgia,serif; }
code { display:block; padding:12px; margin:10px 0; border:1px solid var(--line); border-radius:8px; background:var(--panel-2); word-break:break-all; }
.knowledge-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.category-card { padding:16px; display:grid; grid-template-columns:52px 1fr; gap:12px; }
.category-card h3 { margin:4px 0 8px; font-family:Georgia,serif; font-weight:500; }
.category-card small { color:var(--muted); }
.category-icon { width:48px; height:48px; display:grid; place-items:center; border:1px solid var(--line-strong); border-radius:50%; color:var(--gold); font-size:22px; }
.mini-list { padding-left:18px; color:var(--muted); }
.notification-list { display:grid; }
.notification-row { display:grid; grid-template-columns:10px 1fr auto; gap:12px; align-items:start; padding:14px 16px; border-bottom:1px solid var(--line); }
.notification-row:last-child { border-bottom:0; }
.notification-row p { margin:4px 0 0; color:var(--muted); }
.notification-row time { color:var(--muted); font-size:11px; }
.status-dot { width:8px; height:8px; margin-top:5px; border-radius:50%; background:var(--gold); }
.muted-dot { background:var(--muted-2); }
.auth-page { min-height:100vh; display:grid; place-items:center; padding:20px; }
.auth-card { width:min(440px,100%); padding:28px; }
.auth-brand { display:flex; gap:14px; align-items:center; margin-bottom:24px; }
.auth-brand h1 { margin:0; font:500 27px Georgia,serif; }
.auth-brand p, .auth-note { color:var(--muted); }
.auth-note { margin:18px 0 0; font-size:12px; }
.danger-text { color:var(--red)!important; }
.muted { color:var(--muted); }
.no-photo-box { min-height:67px; padding:12px; border:1px solid var(--line); border-radius:8px; display:flex; gap:10px; align-items:center; }
.no-photo-box small { display:block; }
@media(max-width:1050px){.metrics-grid{grid-template-columns:repeat(2,1fr)}.detail-grid,.profile-grid{grid-template-columns:1fr}.knowledge-grid{grid-template-columns:repeat(2,1fr)}.facts{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.filters{display:grid}.order-card{grid-template-columns:1fr}.order-number{display:flex;justify-content:space-between}.metrics-grid,.knowledge-grid,.form-grid,.check-grid ul,ul.check-grid{grid-template-columns:1fr}.review-form{grid-template-columns:1fr}.facts{grid-template-columns:1fr}.detail-head{display:grid}.price-block{min-width:0}.topbar-title-wrap{display:none}}

.work-group-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.work-group-card{display:grid;grid-template-columns:150px 1fr;min-height:180px;border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel-2)}.work-group-visual{display:grid;place-items:center;min-height:180px;background:linear-gradient(145deg,var(--gold-soft),var(--panel-3));color:var(--gold);font-size:44px}.work-group-visual img{width:100%;height:100%;object-fit:cover}.work-group-content{padding:14px}.work-group-content h4{margin:0 0 10px;font:500 17px Georgia,serif}.category-options{display:grid;gap:7px}.category-options label{display:flex;align-items:flex-start;gap:8px;padding:7px 8px;border-radius:7px;cursor:pointer}.category-options label:hover{background:var(--gold-soft)}.category-options input{margin-top:3px}@media(max-width:900px){.work-group-grid{grid-template-columns:1fr}}@media(max-width:560px){.work-group-card{grid-template-columns:1fr}.work-group-visual{min-height:120px;max-height:150px}}

.register-card{width:min(560px,100%)}.text-link{color:var(--gold);text-decoration:underline;text-underline-offset:3px}

/* Technology cards editor v0.2.1 */
.technology-toolbar { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:start; margin-bottom:14px; }
.technology-filters { display:grid; grid-template-columns:minmax(220px,1.4fr) minmax(160px,.7fr) minmax(220px,1fr) auto; gap:12px; padding:14px; }
.technology-filter-actions { display:flex; gap:7px; align-items:end; }
.technology-create-button { min-height:70px; padding-inline:20px; }
.technology-card-list { display:grid; gap:11px; }
.technology-manage-card { display:grid; grid-template-columns:56px minmax(0,1fr) 150px; gap:15px; align-items:start; padding:17px; transition:.18s ease; }
.technology-manage-card:hover { border-color:var(--line-strong); transform:translateY(-1px); }
.technology-manage-card.is-archived { opacity:.72; }
.technology-card-icon { width:50px; height:50px; display:grid; place-items:center; border-radius:50%; border:1px solid var(--line-strong); background:var(--gold-soft); color:var(--gold-bright); font-size:22px; }
.technology-card-main h2 { margin:9px 0 6px; font-family:Georgia,serif; font-size:20px; font-weight:500; }
.technology-card-main > p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.technology-category-tags { display:flex; flex-wrap:wrap; gap:5px; margin-top:11px; }
.technology-category-tags span { padding:4px 7px; border-radius:6px; background:rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.07); color:var(--muted); font-size:10px; }
.technology-card-facts { display:flex; flex-wrap:wrap; gap:13px; margin-top:12px; color:var(--muted); font-size:10px; }
.technology-card-facts b { color:var(--text); }
.technology-card-actions { display:grid; gap:7px; }
.technology-card-actions form, .technology-card-actions .btn { width:100%; }
.technology-empty .btn { margin-top:16px; }

.technology-editor-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:14px; align-items:start; }
.technology-editor-main { min-width:0; }
.technology-editor-sidebar { position:sticky; top:102px; }
.section-title-row { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:15px; }
.section-title-row h3 { margin:0 0 4px; }
.section-title-row p { margin:0; color:var(--muted); font-size:11px; line-height:1.45; }
.field-error { color:#ff827a !important; font-size:11px; }
.errorlist { margin:4px 0 0; padding-left:18px; color:#ff827a; font-size:11px; }
.technology-category-picker { max-height:310px; margin-top:12px; overflow:auto; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.015); scrollbar-width:thin; scrollbar-color:var(--line-strong) transparent; }
.technology-category-picker > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; }
.technology-category-picker > div > div { border-bottom:1px solid rgba(216,169,54,.08); }
.technology-category-picker label { display:flex; align-items:flex-start; gap:8px; padding:9px 11px; color:var(--muted); font-size:11px; line-height:1.35; cursor:pointer; }
.technology-category-picker label:hover { background:var(--gold-soft); color:var(--text); }
.technology-category-picker input { flex:0 0 auto; margin-top:1px; accent-color:var(--gold); }

.technology-step-list { display:grid; gap:10px; }
.technology-step-editor { border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.018); overflow:hidden; transition:.18s ease; }
.technology-step-editor.is-dragging { opacity:.45; border-color:var(--gold); }
.technology-step-editor.is-deleted { display:none; }
.technology-step-head { min-height:56px; display:grid; grid-template-columns:28px 74px minmax(0,1fr) auto; align-items:center; gap:9px; padding:9px 11px; background:rgba(216,169,54,.035); border-bottom:1px solid var(--line); }
.technology-drag-handle { border:0; background:transparent; color:var(--muted); font-size:19px; cursor:grab; }
.technology-step-number { color:var(--gold-bright); font-size:11px; font-weight:700; }
.technology-step-title-preview { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; font-size:13px; }
.technology-step-head-actions { display:flex; gap:5px; }
.technology-step-head-actions .icon-button { width:31px; height:31px; font-size:15px; }
.danger-icon { color:#ff827a; }
.technology-step-body { padding:14px; }
.technology-step-editor.is-collapsed .technology-step-body { display:none; }
.technology-step-editor.is-collapsed [data-collapse-step] { transform:rotate(180deg); }
.technology-step-settings { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) 150px; gap:9px; margin-top:13px; }
.technology-step-settings .check-row { align-items:flex-start; padding:10px; border:1px solid rgba(255,255,255,.07); border-radius:9px; background:rgba(255,255,255,.018); }
.technology-step-settings .check-row span { display:grid; gap:3px; }
.technology-step-settings .check-row small { color:var(--muted); font-size:9px; line-height:1.35; }
.technology-min-photos { padding:10px; border:1px solid rgba(255,255,255,.07); border-radius:9px; }
.technology-min-photos.is-disabled { opacity:.45; }
.technology-example-photo { display:grid; grid-template-columns:minmax(0,1fr) 170px; gap:12px; align-items:end; margin-top:13px; padding-top:13px; border-top:1px solid rgba(216,169,54,.1); }
.technology-example-current { display:grid; gap:5px; color:var(--gold-bright); font-size:10px; }
.technology-example-current img { width:100%; height:88px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.technology-no-steps { min-height:210px; display:grid; place-items:center; align-content:center; text-align:center; color:var(--muted); border:1px dashed var(--line-strong); border-radius:12px; }
.technology-no-steps h4 { margin:8px 0 4px; color:var(--text); }
.technology-no-steps p { margin:0 0 13px; font-size:11px; }
.technology-editor-actions { position:sticky; bottom:0; z-index:10; display:flex; justify-content:flex-end; flex-wrap:wrap; gap:8px; padding:12px; border:1px solid var(--line); border-radius:12px; background:rgba(13,14,13,.94); backdrop-filter:blur(16px); }
.technology-version-state h3, .technology-editor-sidebar h3 { margin-top:0; font-family:Georgia,serif; font-weight:500; }
.technology-version-state > p, .technology-publish-note { color:var(--muted); font-size:11px; line-height:1.5; }
.technology-state-line { display:flex; justify-content:space-between; gap:12px; padding:9px 0; border-bottom:1px solid rgba(216,169,54,.1); font-size:11px; }
.technology-state-line span { color:var(--muted); }
.technology-publish-note { margin-top:12px; padding-top:12px; border-top:1px solid var(--line); }
.compact-stack { gap:7px; }
.technology-version-list { display:grid; gap:6px; }
.technology-version-list a { display:grid; grid-template-columns:1fr auto; gap:5px; padding:9px; border:1px solid rgba(255,255,255,.06); border-radius:8px; }
.technology-version-list a:hover { border-color:var(--line-strong); background:var(--gold-soft); }
.technology-version-list small { grid-column:1/-1; color:var(--muted); font-size:9px; }
.technology-audit-list { display:grid; gap:9px; }
.technology-audit-list > div { display:flex; align-items:flex-start; gap:7px; }
.technology-audit-list p { margin:0; display:grid; gap:3px; font-size:11px; }
.technology-audit-list small { color:var(--muted); font-size:9px; }

.technology-preview-toolbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:10px 12px; margin-bottom:14px; }
.technology-preview-layout { display:grid; grid-template-columns:minmax(0,1fr) 290px; gap:14px; align-items:start; }
.technology-preview-layout > aside { position:sticky; top:102px; }
.technology-preview-intro h2 { margin-top:0; font-family:Georgia,serif; font-weight:500; }
.technology-preview-intro > p { color:var(--muted); line-height:1.55; }
.technology-preview-step { overflow:hidden; }
.technology-preview-step-head { display:grid; grid-template-columns:42px minmax(0,1fr) auto; gap:11px; align-items:center; padding:13px 15px; border-bottom:1px solid var(--line); background:rgba(216,169,54,.035); }
.technology-preview-step-number { width:38px; height:38px; display:grid; place-items:center; border-radius:50%; background:var(--gold-soft); border:1px solid var(--line-strong); color:var(--gold-bright); font-family:Georgia,serif; font-size:18px; }
.technology-preview-step-head small { color:var(--muted); font-size:9px; }
.technology-preview-step-head h3 { margin:2px 0 0; font-family:Georgia,serif; font-weight:500; }
.technology-preview-step-body { padding:15px; }
.technology-preview-step-body > p { color:var(--muted); font-size:12px; line-height:1.6; }
.technology-warning { margin:10px 0; padding:12px; border-radius:9px; border:1px solid rgba(223,145,71,.38); background:rgba(223,145,71,.09); color:#e8c19a; font-size:11px; line-height:1.5; }
.technology-preview-example { display:grid; grid-template-columns:130px 1fr; align-items:center; gap:10px; margin:10px 0; color:var(--gold-bright); font-size:11px; }
.technology-preview-example img { width:130px; height:82px; object-fit:cover; border-radius:8px; border:1px solid var(--line); }
.technology-preview-action-mock { display:grid; grid-template-columns:minmax(0,1fr) 190px; gap:10px; margin-top:12px; opacity:.82; pointer-events:none; }
.technology-acceptance { padding:12px; border:1px solid rgba(101,182,122,.34); border-radius:9px; background:var(--green-soft); }
.technology-acceptance p { margin:5px 0 0; color:#b9d8c1; font-size:11px; line-height:1.5; }
.technology-customer-review-mock { display:grid; gap:10px; margin-top:12px; padding:12px; border:1px dashed var(--line); border-radius:9px; opacity:.78; }
.technology-customer-review-mock p { color:var(--muted); font-size:10px; }

html[data-theme="light"] .technology-category-tags span,
html[data-theme="light"] .technology-step-settings .check-row,
html[data-theme="light"] .technology-min-photos,
html[data-theme="light"] .technology-version-list a { border-color:rgba(76,66,48,.10); background:rgba(76,66,48,.025); }
html[data-theme="light"] .technology-category-picker,
html[data-theme="light"] .technology-step-editor { background:rgba(255,255,255,.72); }
html[data-theme="light"] .technology-step-head { background:rgba(169,120,24,.06); }
html[data-theme="light"] .technology-editor-actions { background:rgba(250,248,244,.94); }
html[data-theme="light"] .technology-warning { color:#8e5727; }
html[data-theme="light"] .technology-acceptance p { color:#3f704c; }

@media(max-width:1180px){
  .technology-editor-layout,.technology-preview-layout{grid-template-columns:1fr}
  .technology-editor-sidebar,.technology-preview-layout>aside{position:static}
  .technology-filters{grid-template-columns:1fr 1fr}
  .technology-filter-actions{align-items:end}
}
@media(max-width:820px){
  .technology-toolbar{grid-template-columns:1fr}
  .technology-create-button{min-height:44px}
  .technology-manage-card{grid-template-columns:44px minmax(0,1fr)}
  .technology-card-icon{width:42px;height:42px}
  .technology-card-actions{grid-column:1/-1;grid-template-columns:repeat(2,minmax(0,1fr))}
  .technology-category-picker>div{grid-template-columns:1fr}
  .technology-step-head{grid-template-columns:24px 60px minmax(0,1fr)}
  .technology-step-head-actions{grid-column:1/-1;justify-content:flex-end}
  .technology-step-settings{grid-template-columns:1fr 1fr}
  .technology-example-photo{grid-template-columns:1fr}
}
@media(max-width:620px){
  .technology-filters,.technology-step-settings{grid-template-columns:1fr}
  .technology-filter-actions{display:grid;grid-template-columns:1fr 1fr}
  .technology-card-actions{grid-template-columns:1fr}
  .technology-preview-step-head{grid-template-columns:36px minmax(0,1fr)}
  .technology-preview-step-head>.tag{grid-column:1/-1}
  .technology-preview-action-mock{grid-template-columns:1fr}
  .technology-editor-actions{position:static;display:grid;grid-template-columns:1fr}
}
