/* Generated by npm run app:styles. Do not edit directly. */

/* src/client/styles/tokens.css */
:root{
  --bg-page: #f3f6fa;
  --bg-surface: #ffffff;
  --text-main: #152033;
  --text-secondary: #5f6f86;
  --text-muted: #98a4b3;
  --border: #d9e1ec;
  --border-soft: #e8eef5;
  --brand-dark: #0e1b2d;
  --brand-navy: #123a72;
  --brand-blue: #1557b7;
  --brand-blue-hover: #0f4696;
  --accent-cta: #f28c28;
  --accent-cta-hover: #d97616;
  --success: #2e9b4f;
  --warning: #d98a12;
  --danger: #d64545;
  --bg: var(--bg-page);
  --panel: var(--bg-surface);
  --surface: var(--bg-surface);
  --surface-soft: #f8fbff;
  --surface-hover: #f3f6fa;
  --panel-2: var(--surface-soft);
  --ink: var(--text-main);
  --text: var(--text-main);
  --text-soft: var(--text-secondary);
  --muted: var(--text-secondary);
  --text-faint: var(--text-muted);
  --line: var(--border);
  --line-strong: var(--border-soft);
  --border-strong: var(--border-soft);
  --dark: var(--brand-dark);
  --dark-2: var(--brand-navy);
  --primary: var(--brand-blue);
  --primary-hover: var(--brand-blue-hover);
  --primary-soft: rgba(21, 87, 183, 0.08);
  --primary-border: rgba(21, 87, 183, 0.22);
  --accent: var(--brand-blue);
  --accent-dark: var(--brand-blue-hover);
  --steel: var(--brand-dark);
  --steel-soft: #f3f6fa;
  --blue: var(--brand-blue);
  --blue-soft: rgba(21, 87, 183, 0.08);
  --green: var(--success);
  --success-soft: rgba(46, 155, 79, 0.1);
  --green-soft: var(--success-soft);
  --warning-soft: rgba(217, 138, 18, 0.1);
  --amber: var(--warning);
  --urgent: var(--warning);
  --amber-soft: var(--warning-soft);
  --danger-soft: rgba(214, 69, 69, 0.1);
  --radius-sm: 0;
  --radius: 0;
  --radius-md: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --shadow: 0 18px 24px -22px rgba(14, 27, 45, 0.22);
  --shadow-soft: 0 16px 22px -22px rgba(14, 27, 45, 0.18);
  --shadow-card: 0 18px 24px -22px rgba(14, 27, 45, 0.22);
  --shadow-popover: 0 20px 34px -22px rgba(14, 27, 45, 0.28);
  --shadow-nested: var(--shadow-card);
  --shadow-nested-hover: 0 22px 28px -22px rgba(14, 27, 45, 0.3);
}

/* src/client/styles/base.css */
*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

body{
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 15px;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

body:has(dialog[open]){
  overflow: hidden;
}

body.auth-open{
  overflow: hidden;
}

body.filters-open{
  overflow: hidden;
}

a{
  color: inherit;
  text-decoration: none;
}

[hidden]{
  display: none !important;
}

.icon-sprite{
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

button,
input,
select,
textarea{
  font: inherit;
}

button,
select{
  cursor: pointer;
}

.app-shell{
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}

.app-shell[hidden],
.auth-screen[hidden]{
  display: none;
}

.auth-screen{
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: var(--bg);
}

body.auth-preview-open .app-shell{
  filter: blur(2px);
  pointer-events: none;
  user-select: none;
}

body.auth-preview-open .auth-screen{
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 27, 45, 0.42);
  backdrop-filter: blur(6px);
}

.auth-card{
  display: grid;
  width: min(460px, 100%);
  gap: 16px;
  padding: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-brand{
  color: var(--ink);
}

.auth-card h1{
  margin-bottom: 8px;
}

.auth-card p{
  margin-bottom: 0;
  color: var(--muted);
}

/* src/client/styles/layout.css */
.sidebar{
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: 100vh;
  padding: 18px;
  color: #eef5f2;
  background:
    radial-gradient(circle at 16% 0%, rgba(21, 87, 183, 0.2), transparent 30%),
    linear-gradient(180deg, var(--brand-navy) 0%, var(--brand-dark) 62%, #07111f 100%);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 10px 0 28px rgba(17, 25, 24, 0.1);
}

.brand{
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
}

.brand-mark{
  display: block;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-weight: 950;
}

.brand strong,
.brand small{
  display: block;
}

.brand strong{
  color: #fff;
  line-height: 1;
}

.brand small{
  color: #aeb7b2;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.side-nav{
  display: grid;
  gap: var(--space-5);
}

.nav-group{
  display: grid;
  gap: 6px;
}

.side-nav a{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  color: #c7d1cc;
  background: transparent;
  border-color: transparent;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 750;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.side-nav a:hover,
.side-nav a.active{
  color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.side-nav a.active{
  box-shadow: inset 3px 0 0 var(--accent);
}

.side-nav a:hover{
  transform: none;
}

.side-nav a > span:first-child{
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.nav-icon{
  display: inline-block;
  width: 21px;
  height: 21px;
  color: currentColor;
  opacity: 0.86;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-badge{
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.nav-badge[hidden]{
  display: none;
}

.sidebar-card{
  margin-top: auto;
  padding: 16px;
  color: #c7d1cc;
  background: rgba(255, 255, 255, 0.055);
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 24px -22px rgba(0, 0, 0, 0.55);
  backdrop-filter: none;
}

.sidebar-card span{
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.3;
}

.sidebar-card p{
  margin: 8px 0 0;
  color: #aeb9b4;
  font-size: 13px;
  line-height: 1.45;
}

.app-main{
  min-width: 0;
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 74px;
  padding: var(--space-4) var(--space-8);
  background: rgba(245, 247, 251, 0.9);
  border-bottom: 1px solid var(--border);
  backdrop-filter: none;
}

.breadcrumb{
  margin: 0 0 3px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

h1,
h2,
h3,
p{
  margin-top: 0;
}

h1{
  color: var(--text);
  margin-bottom: 0;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: 0;
}

h2{
  color: var(--text);
  margin-bottom: 8px;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0;
}

h3{
  color: var(--text);
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.topbar-actions{
  display: flex;
  gap: 10px;
  align-items: center;
}

.user-pill{
  position: relative;
}

.user-pill summary{
  display: block;
  list-style: none;
}

.user-pill summary::-webkit-details-marker{
  display: none;
}

.user-pill summary span{
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 2px 0 12px;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 760;
}

.user-pill summary span::before{
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  place-items: center;
  color: #fff;
  background: var(--dark);
  border-radius: 0;
  content: attr(data-initial);
}

.user-menu{
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  width: 220px;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.user-menu .btn{
  justify-content: flex-start;
  width: 100%;
  min-width: 0;
}

.global-search{
  display: block;
  min-width: min(36vw, 430px);
}

.content{
  padding: var(--space-6) var(--space-8) var(--space-10);
}

.app-footer{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 30px 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.view{
  display: none;
}

.view.active{
  display: block;
}

.eyebrow{
  display: block;
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}

.panel{
  padding: var(--space-6);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.panel:hover{
  box-shadow: var(--shadow-nested-hover);
  transform: translateY(-1px);
}

.panel-head{
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-head p{
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.offer-tabs{
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.offer-tabs button{
  display: inline-flex;
  flex: 1;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  font-weight: 900;
}

.offer-tabs button.active{
  color: var(--ink);
  background: #fff;
  box-shadow: none;
}

.offer-tabs span{
  display: inline-flex;
  min-width: 24px;
  min-height: 24px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 12px;
}

.saved-searches{
  display: grid;
  gap: 8px;
}

.saved-search{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

.saved-search > button:first-child{
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.saved-search span{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.layout-grid{
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-chips{
  display: flex;
  width: 100%;
  gap: 18px;
  margin-bottom: 14px;
  padding: 0 0 10px;
  overflow-x: auto;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
}

.filter-chips button{
  position: relative;
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  font-weight: 760;
}

.filter-chips button::after{
  position: absolute;
  right: 0;
  bottom: -11px;
  left: 0;
  height: 2px;
  content: "";
  background: transparent;
}

.filter-chips button.active{
  color: var(--text);
}

.filter-chips button.active::after{
  background: var(--accent);
}

/* src/client/styles/components.css */
.template-chip{
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  color: var(--text);
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 24px -22px rgba(18, 28, 24, 0.18);
  font-size: 13px;
  font-weight: 760;
}

.template-chip:hover{
  color: var(--accent);
  background: #fff;
}

.market-cards{
  display: grid;
  gap: var(--space-6);
}

.market-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 18px;
  align-items: start;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.28);
  border-radius: 0;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 22px 34px -22px rgba(18, 28, 24, 0.34);
}

.market-card[data-open-request-card]{
  cursor: pointer;
}

.market-card[data-open-request-card]:focus-visible{
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

.market-card h3{
  max-width: 860px;
  margin: 10px 0 7px;
  color: #0d1413;
  font-size: 21px;
  font-weight: 920;
  letter-spacing: -0.018em;
  line-height: 1.14;
}

.market-card-meta{
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 820px);
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.market-card-meta span{
  display: grid;
  gap: 2px;
  min-width: 0;
}

.market-card-meta small{
  color: #7d8984;
  font-size: 12px;
  font-weight: 680;
  text-transform: none;
}

.market-card-meta strong{
  font-size: 14px;
  font-weight: 720;
}

.market-card-actions{
  display: flex;
  width: auto;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.market-card-actions .btn{
  width: 126px;
  max-width: 100%;
  min-height: 38px;
  border-radius: 4px;
  font-weight: 760;
}

.market-card-actions [data-report-request]{
  width: auto;
  align-self: center;
  margin-top: 2px;
  color: #9f2f2a;
  background: transparent;
  border-color: transparent;
}

.market-card-actions [data-report-request]:hover{
  background: transparent;
  border-color: transparent;
  box-shadow: 0 18px 24px -22px rgba(184, 50, 46, 0.28);
}

.market-card-actions .btn:not(.btn-primary):not([data-report-request]){
  color: var(--text);
  background: #fff;
  border-color: var(--border);
}

.market-card-actions .btn:not(.btn-primary):not([data-report-request]):hover{
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 18px 24px -22px rgba(18, 28, 24, 0.28);
}

.advanced-table{
  display: none;
}

.filters{
  position: sticky;
  top: 96px;
  z-index: 1;
  display: grid;
  width: auto;
  max-height: calc(100vh - 120px);
  gap: 14px;
  padding: 18px;
  overflow: auto;
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transform: none;
  transition: transform 0.22s ease;
}

body.filters-open .filters{
  transform: none;
}

.filter-head,
.board-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.filter-close,
[data-filter-toggle]{
  display: none;
}

label{
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.25;
}

.field-label{
  display: block;
  min-height: 16px;
}

.optional{
  margin-left: 5px;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 560;
}

.field-note{
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 560;
  line-height: 1.35;
}

input,
select,
textarea{
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid rgba(18, 28, 24, 0.32);
  border-radius: var(--radius-md);
  outline: none;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

textarea{
  min-height: 132px;
  padding-top: 11px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus{
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 0;
  width: auto;
  padding: 0 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.btn:hover{
  border-color: var(--line-strong);
  box-shadow: none;
}

.btn-primary{
  min-height: 36px;
  padding: 0 14px;
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
  font-weight: 780;
}

.btn-primary:hover{
  color: #fff;
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-ghost,
[data-report-request]{
  min-height: 30px;
  padding: 0 6px;
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.btn-secondary{
  color: var(--steel);
  background: var(--steel-soft);
  border-color: var(--line);
}

.btn-muted{
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
  cursor: default;
  pointer-events: none;
}

.btn-danger{
  color: #a33a34;
  background: #fff;
  border-color: #e5c7c4;
}

.btn-chat{
  color: #fff;
  background: var(--dark);
  border-color: var(--dark);
  box-shadow: none;
}

.btn-chat:hover{
  background: #000;
  border-color: #000;
}

.text-link{
  color: var(--primary);
  font-size: 14px;
  font-weight: 650;
  white-space: nowrap;
}

.counter{
  display: inline-flex;
  min-width: auto;
  min-height: auto;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 760;
}

.table-scroll{
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.request-table{
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.92);
}

.request-table th,
.request-table td{
  padding: 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.request-table th{
  color: var(--muted);
  background: #f4f8f6;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.request-table tr:last-child td{
  border-bottom: 0;
}

.request-table tbody tr{
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease;
}

.request-table tbody tr:hover td{
  background: #fbfdfc;
}

.request-table tr.accepted-row td{
  background: var(--surface);
  border-bottom-color: #bbf7d0;
}

.request-table tr.accepted-row td:first-child{
  box-shadow: inset 3px 0 0 var(--success);
}

.request-title{
  display: grid;
  gap: 6px;
  min-width: 280px;
  min-inline-size: 0;
}

.request-title strong{
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.request-title span,
.muted{
  color: var(--muted);
  font-size: 13px;
}

.accepted-line{
  color: var(--green);
  font-weight: 900;
}

.published-line{
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.tag-row{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag{
  display: inline-flex;
  min-height: 0;
  max-width: 100%;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: #45504b;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
  box-shadow: none;
  overflow-wrap: anywhere;
}

.tag.status-open::before,
.tag.status-urgent::before,
.tag.status-accepted::before,
.tag.status-declined::before,
.tag.status-discussing::before{
  display: none;
}

.status-open,
.status-discussing{
  color: var(--blue);
  background: var(--blue-soft);
  border-color: #b9dcea;
}

.status-urgent{
  color: var(--warning);
  background: var(--warning-soft);
  border-color: #fde68a;
}

.status-accepted{
  color: var(--success);
  background: var(--success-soft);
  border-color: #bbf7d0;
}

.status-declined{
  color: var(--danger);
  background: var(--danger-soft);
  border-color: #fecaca;
}

.compact-list,
.cards-grid{
  display: grid;
  gap: var(--space-5);
}

.compact-item,
.request-card,
.offer-item{
  display: grid;
  gap: 10px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.28);
  border-radius: var(--radius);
  box-shadow: 0 22px 30px -24px rgba(18, 28, 24, 0.32);
  transition:
    transform 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.compact-item:hover,
.request-card:hover,
.offer-item:hover{
  transform: translateY(-1px);
  border-color: rgba(18, 28, 24, 0.42);
  box-shadow: 0 24px 34px -24px rgba(18, 28, 24, 0.42);
}

.compact-item-header,
.card-header{
  display: flex;
  gap: 10px;
  align-items: start;
  justify-content: space-between;
}

.compact-item strong,
.request-card h3,
.offer-item strong{
  line-height: 1.22;
}

.offer-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row .btn,
.offer-actions .btn,
.form-actions .btn{
  min-width: 0;
  width: auto;
}

.request-table td:last-child .tag-row{
  display: grid;
  justify-items: stretch;
}

.request-table td:last-child .btn{
  width: 132px;
}

.request-table td[data-label="Бюджет"] strong{
  color: var(--ink);
  font-size: 16px;
}

.meta-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.meta-box{
  min-height: 58px;
  padding: 9px;
  background: var(--panel-2);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-nested);
}

.meta-box span{
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-box strong{
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

/* src/client/styles/pages/request-form.css */
.request-form,
.request-wizard{
  display: grid;
  gap: 18px;
}

.request-form{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.request-wizard{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.request-wizard input,
.request-wizard select{
  min-height: 42px;
  padding: 0 12px;
  border-color: rgba(18, 28, 24, 0.24);
  font-size: 14px;
}

.request-wizard textarea{
  min-height: 92px;
  padding: 11px 12px;
  border-color: rgba(18, 28, 24, 0.24);
  font-size: 14px;
}

.request-wizard .is-invalid{
  border-color: var(--accent);
  background: #fff8f7;
  box-shadow: inset 0 -2px 0 rgba(199, 54, 47, 0.22);
}

.request-wizard .field-error{
  display: block;
  margin-top: 5px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.25;
}

.request-wizard .checkbox-field{
  min-height: 32px;
  padding-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.request-wizard .checkbox-field input{
  width: 16px;
  min-height: 16px;
}

.template-board{
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.template-board section{
  display: grid;
  gap: 10px;
}

.template-head{
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  flex-wrap: wrap;
}

.template-head h3{
  min-width: 0;
  font-size: 16px;
}

.template-head .muted{
  min-width: 0;
  overflow-wrap: anywhere;
}

.template-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-card{
  display: grid;
  gap: 12px;
  align-content: space-between;
  min-height: 132px;
  padding: 12px;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
}

.template-card div:first-child{
  display: grid;
  gap: 6px;
}

.template-card strong{
  line-height: 1.18;
}

.template-card span{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.template-card .btn{
  min-width: 0;
  width: 100%;
}

.template-empty{
  min-height: 132px;
}

.wizard-step{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 0 20px 0 0;
  border: 0;
  border-right: 1px solid rgba(18, 28, 24, 0.14);
}

.wizard-step:first-of-type{
  padding-top: 0;
  border-top: 0;
}

.wizard-step:nth-of-type(4){
  padding-right: 0;
  border-right: 0;
}

.wizard-step legend{
  grid-column: 1 / -1;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.08;
}

.wizard-step .field-note{
  margin: 0;
}

.wizard-step > label{
  min-width: 0;
}

.wizard-step .span-2{
  grid-column: auto;
}

.request-title-step{
  grid-column: 1 / -1;
  padding: 0 0 18px;
  border-right: 0;
  border-bottom: 1px solid rgba(18, 28, 24, 0.16);
}

.request-title-step legend{
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.05;
}

.request-title-step input{
  min-height: 56px;
  padding: 0 16px;
  border-color: rgba(18, 28, 24, 0.32);
  font-size: 22px;
  font-weight: 760;
  letter-spacing: 0;
}

.wizard-step[hidden]{
  display: none;
}

.wizard-actions{
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid rgba(18, 28, 24, 0.18);
}

.span-3{
  grid-column: 1 / -1;
}

.request-items-step{
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 14px;
  padding: 20px 0 0;
  border-top: 1px solid rgba(18, 28, 24, 0.18);
  border-right: 0;
}

.request-items-table{
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid rgba(18, 28, 24, 0.22);
  box-shadow: 0 16px 22px -24px rgba(18, 28, 24, 0.22);
}

.request-items-table table{
  width: 100%;
  min-width: 1220px;
  border-collapse: collapse;
  table-layout: fixed;
}

.request-item-product-col{ width: 20.5%; }
.request-item-grade-col{ width: 10.5%; }
.request-item-gost-col{ width: 12.5%; }
.request-item-size-col{ width: 12%; }
.request-item-unit-col{ width: 7%; }
.request-item-volume-col{ width: 8%; }
.request-item-price-col{ width: 10%; }
.request-item-total-col{ width: 7.5%; }
.request-item-actions-col{ width: 12%; }

.request-items-table th,
.request-items-table td{
  padding: 7px 8px;
  border-bottom: 1px solid rgba(18, 28, 24, 0.12);
  text-align: left;
  vertical-align: top;
}

.request-items-table th{
  color: var(--muted);
  background: #fbfcfc;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.request-items-table th:nth-child(8),
.request-items-table td.item-total{
  text-align: center;
  vertical-align: middle;
}

.request-items-table tr:last-child td{
  border-bottom: 0;
}

.request-items-table input,
.request-items-table select{
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  font-size: 12px;
  border-color: rgba(18, 28, 24, 0.22);
}

.request-items-table .item-actions{
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
}

.request-items-table .item-actions .btn{
  min-height: 32px;
  padding: 0 6px;
  font-size: 10.5px;
  white-space: nowrap;
}

.request-items-table .item-total{
  color: var(--text);
  font-weight: 850;
  white-space: nowrap;
}

.request-items-summary{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.22);
  font-size: 14px;
  font-weight: 760;
}

.request-items-summary span{
  color: var(--muted);
}

.request-items-summary strong{
  font-size: 18px;
}

.assistant-box{
  display: grid;
  gap: 4px;
}

.legal-warning{
  padding: 10px 12px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
}

.legal-links{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-card{
  display: grid;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
}

/* src/client/styles/pages/profile.css */
.preview-card span,
.preview-card p{
  color: var(--muted);
  font-size: 13px;
}

.profile-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.profile-grid > *{
  min-width: 0;
}

.profile-form{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-form input,
.profile-form select{
  box-sizing: border-box;
  min-height: 50px;
  height: 50px;
  padding: 0 16px;
}

.profile-form select{
  line-height: 1.2;
}

.company-card{
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.company-card-head{
  display: flex;
  gap: 16px;
  align-items: start;
  justify-content: space-between;
  min-width: 0;
}

.company-card h3{
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.company-card .muted,
.company-card .profile-trust-note,
.company-card .meta-box,
.company-card .meta-box strong,
.company-card .meta-box span{
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.company-card .profile-trust-note{
  flex: 0 1 220px;
}

.company-card .meta-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-card .meta-box-categories-long{
  grid-column: 1 / -1;
}

.company-card .meta-box-categories strong{
  white-space: normal;
}

.company-contact-grid span{
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.company-contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.company-contact-grid span{
  min-height: 38px;
  padding: 10px;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.35;
}

.company-contact-grid .company-contact-email{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  word-break: normal;
}

.checkbox-field{
  display: flex;
  min-height: 42px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-top: 18px;
}

.checkbox-field input{
  width: 18px;
  min-height: 18px;
}

.profile-empty{
  text-align: center;
}

.profile-empty div{
  display: grid;
  gap: 8px;
  max-width: 360px;
}

.profile-empty span{
  color: var(--muted);
  font-size: 13px;
}

.span-2{
  grid-column: span 2;
}

.form-actions{
  display: flex;
  gap: 10px;
}

/* src/client/styles/pages/detail.css */
.detail-panel{
  display: grid;
  gap: 18px;
}

.detail-nav{
  display: flex;
  justify-content: flex-start;
}

.detail-top{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.detail-hero{
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: none;
}

.detail-hero h2{
  max-width: 920px;
  margin-top: 10px;
  font-size: 30px;
}

.status-help{
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.detail-description{
  padding: 14px;
  background: var(--panel-2);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-nested);
}

.detail-sections{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-sections > .detail-description:only-child{
  grid-column: 1 / -1;
}

.spec-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.spec-grid span{
  display: grid;
  gap: 3px;
  min-height: 48px;
  padding: 9px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

.spec-grid strong{
  color: var(--ink);
  font-size: 12px;
}

.comparison-panel{
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.22);
  border-radius: var(--radius);
  box-shadow: none;
}

.comparison-scroll{
  overflow-x: auto;
  border: 1px solid rgba(18, 28, 24, 0.18);
  border-radius: var(--radius);
}

.comparison-table{
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
  background: #fff;
}

.comparison-table th,
.comparison-table td{
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th{
  color: var(--muted);
  background: #f4f8f6;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.comparison-table td:first-child{
  min-width: 190px;
}

.comparison-table td:first-child span{
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.accepted-offer-row td{
  background: #f1fbf6;
}

.table-actions{
  display: grid;
  gap: 6px;
}

.table-actions .btn{
  min-width: 110px;
  width: auto;
}

.request-offers-workspace{
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.22);
  border-radius: 0;
  box-shadow: none;
}

.detail-offer-tabs{
  display: flex;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--border);
}

.my-request-tabs{
  margin-bottom: 14px;
}

.deal-contact-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.deal-contact-grid.compact-contacts{
  margin-top: 10px;
}

.deal-contact-card{
  display: grid;
  gap: 7px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.deal-contact-card > strong{
  color: var(--ink);
  font-size: 13px;
}

.deal-contact-card span{
  display: grid;
  gap: 2px;
  color: var(--text-soft);
  font-size: 13px;
}

.deal-contact-card b{
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.detail-offer-tabs button{
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 42px;
  padding: 0 0 10px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  box-shadow: none;
  font-size: 14px;
  font-weight: 780;
}

.detail-offer-tabs button.active{
  color: var(--text);
  border-bottom-color: var(--accent);
}

.detail-offer-tabs span{
  color: var(--accent);
}

.request-card-clickable{
  cursor: pointer;
}

.request-card-clickable:hover h3{
  color: var(--accent);
}

.request-offer-notice{
  display: grid;
  gap: 2px;
  min-width: 142px;
  padding: 9px 11px;
  color: var(--text);
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.24);
  box-shadow: 0 18px 24px -24px rgba(18, 28, 24, 0.35);
  cursor: default;
}

.request-offer-notice strong{
  font-size: 14px;
  font-weight: 860;
  line-height: 1.1;
}

.request-offer-notice span{
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.request-offer-notice.is-new{
  color: var(--accent);
  background: rgba(207, 53, 45, 0.08);
  border-color: rgba(207, 53, 45, 0.28);
}

.request-offer-notice.is-empty{
  color: var(--muted);
  background: rgba(18, 28, 24, 0.03);
}

.inline-badge{
  display: inline-grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.empty-state{
  display: grid;
  min-height: 160px;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.empty-rich{
  gap: 8px;
  padding: 18px;
  text-align: center;
}

.empty-rich strong{
  color: var(--ink);
  font-size: 16px;
}

.empty-rich span{
  max-width: 420px;
  font-size: 13px;
}

/* src/client/styles/pages/chats.css */
.chat-layout{
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.chat-layout.incoming-mode{
  grid-template-columns: minmax(260px, 300px) minmax(0, 1fr);
}

.chat-tabs{
  margin-bottom: 14px;
}

.chat-card{
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--surface);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
}

.chat-card strong,
.chat-card small{
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-counterparty{
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.chat-card small{
  grid-column: 1 / -1;
  color: var(--muted);
  white-space: nowrap;
}

.chat-card-meta{
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  min-width: 34px;
}

.chat-card.active{
  border-color: var(--primary-border);
  background: var(--primary-soft);
  box-shadow: inset 3px 0 0 var(--primary);
}

.incoming-request-card{
  min-height: 96px;
}

.incoming-request-card strong{
  white-space: normal;
}

.incoming-company-list{
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}

.incoming-chat-workspace{
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 14px;
  min-height: 560px;
}

.incoming-company-column{
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding-right: 14px;
  border-right: 1px solid var(--line);
}

.incoming-company-head{
  display: grid;
  gap: 4px;
  padding: 2px 2px 4px;
}

.incoming-company-head strong{
  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.incoming-company-head span{
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.incoming-conversation-column{
  min-width: 0;
  container-type: inline-size;
}

.incoming-conversation-column .deal-room{
  top: 0;
}

.incoming-request-footer{
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  padding-top: 4px;
}

.incoming-company-card{
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 88px;
  border-color: rgba(20, 88, 176, 0.14);
  background: #fff;
}

.incoming-company-card:hover{
  border-color: var(--primary-border);
  background: rgba(20, 88, 176, 0.05);
}

.incoming-request-room{
  position: relative;
  top: auto;
}

.incoming-request-back{
  margin-bottom: 12px;
}

.chat-panel{
  min-height: 420px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.chat-back{
  display: none;
  margin-bottom: 10px;
}

.deal-room{
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 12px 14px;
  align-items: start;
  margin-bottom: 14px;
  padding: 14px;
  color: var(--text);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.deal-room-main{
  min-width: 0;
}

.deal-room-actions{
  align-self: start;
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.deal-room-actions .offer-action-menu{
  flex: 0 0 auto;
}

.deal-room > .field-note,
.deal-room > .chat-contact-strip{
  grid-column: 1 / -1;
}

.deal-room h3{
  margin-bottom: 4px;
  color: var(--text);
  font-size: 18px;
}

.deal-room p{
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.deal-room .btn{
  min-height: 34px;
  padding: 0 12px;
  color: var(--primary);
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

@container (max-width: 980px){
  .deal-room{
    grid-template-columns: minmax(0, 1fr);
  }

  .deal-room-actions{
    justify-content: flex-end;
  }

  .deal-room > .field-note,
  .deal-room > .chat-contact-strip{
    grid-column: 1;
  }

  .chat-contact-strip .deal-contact-card{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .chat-contact-strip .deal-contact-card > strong{
    grid-column: 1 / -1;
  }
}

@container (max-width: 620px){
  .deal-room-actions{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .deal-room-actions .btn,
  .deal-room-actions .offer-action-menu,
  .deal-room-actions .offer-action-menu .btn{
    width: 100%;
  }

  .chat-contact-strip .deal-contact-card{
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-contact-strip .deal-contact-card > strong{
    grid-column: 1;
  }
}

.chat-thread{
  display: grid;
  gap: 10px;
  height: min(52vh, 460px);
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
  align-content: start;
}

.chat-message{
  max-width: 76%;
  padding: 10px 12px;
  background: var(--surface);
  border: 0;
  border-radius: 0;
  box-shadow: var(--shadow-soft);
}

.chat-message.mine{
  justify-self: end;
  color: var(--text);
  background: var(--primary-soft);
  border-color: var(--primary-border);
}

.chat-message span{
  display: block;
  margin-bottom: 4px;
  color: inherit;
  opacity: 0.7;
  font-size: 12px;
  font-weight: 900;
}

.chat-attachments{
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.chat-attachments span{
  display: inline-flex;
  width: fit-content;
  margin: 0;
  padding: 5px 8px;
  color: var(--primary);
  background: #fff;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  opacity: 1;
  font-size: 12px;
}

.message-read-state{
  display: block;
  margin-top: 5px;
  color: #8a98a8;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.message-read-state.read{
  color: #1d6fe8;
}

.chat-form{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 12px;
}

.chat-file-button{
  display: grid;
  min-height: 44px;
  padding: 0 12px;
  place-items: center;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.chat-file-button input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.offer-dialog{
  width: min(1320px, calc(100vw - 28px));
  padding: 0;
  background: transparent;
  border: 0;
}

.offer-dialog::backdrop{
  background: rgba(14, 18, 16, 0.58);
  backdrop-filter: none;
}

.offer-form{
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  padding: 24px;
  background: #fff;
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 24px 34px -22px rgba(0, 0, 0, 0.38);
}

.offer-form h2{
  grid-column: 1 / -1;
  max-width: calc(100% - 44px);
  margin-bottom: 4px;
}

.offer-form label:has(textarea),
.offer-form .btn-primary{
  grid-column: 1 / -1;
}

.icon-btn{
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 24px;
  line-height: 1;
}

.close-dialog{
  position: absolute;
  top: 16px;
  right: 16px;
}

.toast{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  max-width: 340px;
  padding: 13px 15px;
  color: #fff;
  background: var(--dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show{
  opacity: 1;
  transform: translateY(0);
}

.profile-gate-dialog{
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  background: transparent;
  border: 0;
}

.profile-gate-dialog::backdrop{
  background: rgba(11, 23, 40, 0.46);
  backdrop-filter: blur(3px);
}

.profile-gate-card{
  position: relative;
  display: grid;
  gap: 16px;
  padding: 28px;
  color: var(--text);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.24);
}

.profile-gate-kicker{
  width: fit-content;
  padding: 4px 10px;
  color: #185fae;
  background: #eaf3ff;
  border: 1px solid #cfe2f9;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.profile-gate-card h2{
  margin: 0;
  padding-right: 28px;
  font-size: 24px;
  line-height: 1.15;
}

.profile-gate-card p{
  margin: 0;
  color: var(--muted);
}

.profile-gate-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 760px){
  .chat-layout.incoming-mode{
    grid-template-columns: 1fr;
  }

  .incoming-chat-workspace{
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .incoming-company-column{
    padding-right: 0;
    border-right: 0;
  }

  .incoming-conversation-column:has([data-chat-form]) + .incoming-request-footer{
    display: none;
  }

  .profile-gate-dialog{
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin: auto;
  }

  .profile-gate-card{
    gap: 14px;
    padding: 22px 18px;
  }

  .profile-gate-card h2{
    padding-right: 24px;
    font-size: 21px;
  }

  .profile-gate-actions{
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .profile-gate-actions .btn{
    width: 100%;
  }
}

.notification-stack{
  position: fixed;
  right: 20px;
  bottom: 84px;
  z-index: 29;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
}

.app-notification{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.app-notification a{
  display: grid;
  gap: 4px;
  color: var(--text);
}

.app-notification strong{
  font-size: 14px;
}

.app-notification span{
  color: var(--muted);
  font-size: 13px;
}

.chat-company-dialog{width:min(920px,calc(100vw - 28px));max-height:90vh;padding:0;color:var(--text);background:transparent;border:0}.chat-company-dialog::backdrop{background:rgba(4,12,22,.72);backdrop-filter:blur(5px)}.chat-company-dialog-card{position:relative;display:grid;gap:18px;max-height:90vh;overflow:auto;padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 70px rgba(0,0,0,.34)}.chat-company-dialog-card>.close-dialog{position:absolute;top:18px;right:18px}.chat-company-dialog-card>h2{margin:0;padding-right:54px;font-size:30px}.chat-company-status-row{display:flex;flex-wrap:wrap;gap:8px}.chat-company-section{display:grid;gap:14px;padding:18px;background:var(--surface-soft);border:1px solid var(--line);border-radius:14px}.chat-company-section h3,.chat-company-section p{margin:0}.chat-company-section p{line-height:1.65;white-space:pre-wrap}.chat-company-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.chat-company-fields>div{display:grid;gap:5px;padding:13px;background:var(--surface);border:1px solid var(--line);border-radius:10px;min-width:0}.chat-company-fields span{color:var(--muted);font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.chat-company-fields strong{overflow-wrap:anywhere}.chat-company-fields .wide{grid-column:1/-1}@media(max-width:700px){.chat-company-dialog-card{padding:22px 16px}.chat-company-fields{grid-template-columns:1fr}.chat-company-fields .wide{grid-column:auto}.deal-room-actions{flex-wrap:wrap}}

/* Large-screen chat workspace: keep readable line lengths instead of stretching edge to edge. */
[data-view="chats"] > .panel{
  width: 100%;
  max-width: 1560px;
  margin-inline: auto;
}

.chat-layout.incoming-mode{
  grid-template-columns: clamp(250px, 18vw, 300px) minmax(0, 1fr);
}

.incoming-chat-workspace{
  grid-template-columns: clamp(260px, 22vw, 320px) minmax(0, 1fr);
}

.incoming-conversation-column .deal-room,
.incoming-conversation-column .chat-thread,
.incoming-conversation-column .chat-form{
  width: min(100%, 980px);
  margin-inline: auto;
}

.incoming-conversation-column .deal-room{
  margin-bottom: 14px;
}

.chat-message{
  width: fit-content;
  max-width: min(74%, 720px);
  overflow-wrap: anywhere;
}

.chat-message.mine{
  margin-left: auto;
}

@media (min-width: 1800px){
  [data-view="chats"] > .panel{
    padding-inline: 24px;
  }

  .chat-thread{
    height: min(56vh, 560px);
    max-height: 560px;
  }
}

@media (max-width: 1100px){
  .incoming-conversation-column .deal-room,
  .incoming-conversation-column .chat-thread,
  .incoming-conversation-column .chat-form{
    width: 100%;
  }
}

@media (max-width: 760px){
  .chat-layout.incoming-mode,
  .incoming-chat-workspace{
    grid-template-columns: minmax(0, 1fr);
  }

  .chat-message{
    max-width: 88%;
  }
}

/* src/client/styles/responsive.css */
.mobile-bottom-nav,
.mobile-fab{
  display: none;
}

body.auth-open .mobile-bottom-nav,
body.auth-open .mobile-fab{
  display: none;
}

@media (max-width: 760px) {
  .app-shell{
    grid-template-columns: 1fr;
  }

  .content{
    padding: var(--space-4) var(--space-4) 96px;
  }

  .sidebar{
    display: none;
  }

  .topbar{
    grid-template-columns: 1fr;
    position: static;
    padding: var(--space-3) var(--space-4);
    background: var(--bg);
  }

  .panel,
  .board-panel{
    padding: var(--space-4);
    border-radius: var(--radius-lg);
  }

  .form-panel{
    padding: 16px 14px;
  }

  .topbar-actions{
    align-items: stretch;
    flex-wrap: wrap;
  }

  .market-card,
.legal-links{
    grid-template-columns: 1fr;
  }

  .market-card{
    align-items: stretch;
    gap: var(--space-4);
    padding: var(--space-4);
  }

  .filter-chips{
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .filter-chips::-webkit-scrollbar{
    display: none;
  }

  .filter-chips button{
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .market-card-meta{
    grid-template-columns: 1fr;
    width: 100%;
    padding-top: var(--space-3);
    border-top: 1px solid var(--border);
  }

  .user-pill summary span{
    width: 100%;
    justify-content: center;
  }

  .user-menu{
    position: fixed;
    top: auto;
    right: 16px;
    bottom: 92px;
    left: 16px;
    width: auto;
  }

  .global-search{
    min-width: 0;
  }

  .template-board{
    gap: 18px;
    overflow: hidden;
  }

  .template-board section{
    min-width: 0;
  }

  .template-head{
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .template-grid{
    width: 100%;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
  }

  .template-chip{
    flex: 1 1 auto;
  }

  .template-card{
    gap: 14px;
    min-height: auto;
    padding: 16px;
  }

  .template-card strong{
    font-size: 17px;
  }

  .template-card .btn{
    min-height: 44px;
  }

  .wizard-actions{
    display: grid;
    grid-template-columns: 1fr;
  }

  .wizard-actions .btn{
    width: 100%;
  }

.filters,
.request-form,
.request-wizard,
.wizard-step,
.template-grid,
.profile-form,
.profile-grid,
.company-contact-grid,
.deal-contact-grid,
.meta-grid,
.detail-sections,
.spec-grid,
.chat-layout{
    grid-template-columns: 1fr;
  }

  .span-2{
    grid-column: auto;
  }

  .span-3{
    grid-column: auto;
  }

  .panel-head,
.detail-top{
    grid-template-columns: 1fr;
    display: grid;
  }

  .offer-form{
    grid-template-columns: 1fr;
  }

  .offer-form h2,
.offer-form label:has(textarea),
.offer-form .btn-primary{
    grid-column: auto;
  }

  .table-scroll{
    overflow: visible;
    border: 0;
    box-shadow: none;
  }

  .request-table,
.request-table thead,
.request-table tbody,
.request-table tr,
.request-table td{
    display: block;
    width: 100%;
    min-width: 0;
  }

  .request-table thead{
    display: none;
  }

  .request-table{
    background: transparent;
  }

  .request-table tr{
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: none;
  }

  .request-table tr.accepted-row{
    background: var(--surface);
    border-color: #b7ddcb;
    box-shadow: inset 4px 0 0 var(--green);
  }

  .request-table tr.accepted-row td{
    background: transparent;
  }

  .request-table tr.accepted-row td:first-child{
    box-shadow: none;
  }

  .request-table td{
    display: grid;
    grid-template-columns: minmax(98px, auto) minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  .request-table td:first-child,
.request-table td:last-child{
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .request-table td:not(:first-child):not(:last-child)::before{
    color: var(--muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 850;
    text-transform: uppercase;
  }

  .request-table td:not(:first-child):not(:last-child){
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .request-title{
    min-width: 0;
  }

  .request-title strong{
    font-size: 16px;
    line-height: 1.25;
  }

  .request-title span{
    overflow-wrap: anywhere;
  }

  .request-title .tag-row{
    gap: 5px;
  }

  .request-table td:last-child .tag-row{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
    padding-top: 2px;
  }

  .request-table td:last-child .btn{
    width: 100%;
    min-height: 44px;
    min-width: 0;
    padding: 0 10px;
  }

  .request-table td[data-label="Бюджет"] strong{
    font-size: 18px;
  }

  .request-table td[data-label="Предложения"]{
    align-items: center;
  }

  .accepted-line{
    padding: 8px 10px;
    background: rgba(22, 132, 90, 0.08);
    border: 1px solid rgba(22, 132, 90, 0.18);
    border-radius: var(--radius);
    font-size: 12px;
  }

  .mobile-bottom-nav{
    position: fixed;
    right: 10px;
    bottom: 10px;
    left: 10px;
    z-index: 35;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.98);
    border: 0;
    border-radius: var(--radius-xl);
    box-shadow: 0 18px 24px -18px rgba(17, 25, 24, 0.32);
    backdrop-filter: none;
  }

  .mobile-bottom-nav a{
    position: relative;
    display: grid;
    gap: 2px;
    min-height: 54px;
    min-width: 0;
    place-items: center;
    color: var(--text-muted);
    border-radius: var(--radius-md);
    font-size: 11px;
    font-weight: 650;
  }

  .mobile-bottom-nav a span{
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-bottom-nav a.active{
    color: var(--primary);
    background: var(--primary-soft);
  }

  .mobile-bottom-nav a[data-mobile-nav="create"]{
    color: #fff;
    background: var(--primary);
  }

  .mobile-bottom-nav a[data-mobile-nav="create"].active{
    background: var(--primary-hover);
  }

  .mobile-nav-badge{
    position: absolute;
    top: 5px;
    right: 13px;
    display: inline-flex;
    min-width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    color: #fff;
    background: var(--accent);
    border: 2px solid #fff;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 950;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(199, 54, 47, 0.22);
  }

  .mobile-nav-badge[hidden]{
    display: none;
  }

  .mobile-bottom-nav svg,
.mobile-fab-icon{
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-fab{
    position: fixed;
    right: 18px;
    bottom: 86px;
    z-index: 36;
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: #fff;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 18px 24px -18px rgba(199, 54, 47, 0.4);
  }

  .deal-room,
.chat-form{
    grid-template-columns: 1fr;
  }

  .chat-message{
    max-width: 92%;
  }

  .chat-panel{
    min-height: calc(100vh - 160px);
  }

  .chat-layout{
    display: block;
  }

  .chat-layout:not(.chat-open) .chat-panel{
    display: none;
  }

  .chat-layout.chat-open [data-chat-list]{
    display: none;
  }

  .chat-layout.chat-open .chat-panel{
    display: grid;
  }

  .chat-back{
    display: inline-flex;
    width: fit-content;
  }

  .chat-card{
    min-height: 88px;
  }
}

/* src/client/styles/pages/offers.css */
/* Offer card composition: request -> proposal -> supplier -> decision */
.offer-card-pro{
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(18, 28, 24, 0.28);
  box-shadow: 0 22px 30px -24px rgba(18, 28, 24, 0.32);
}

.offer-card-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.offer-card-label{
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.offer-request-title{
  max-width: 560px;
  font-size: 18px;
  font-weight: 860;
  line-height: 1.22;
}

.offer-proposal,
.offer-company-block,
.offer-comment,
.offer-position-list{
  display: grid;
  gap: 8px;
}

.offer-proposal{
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.offer-message{
  margin: 0;
  padding: 10px 12px;
  color: var(--text-soft);
  background: #fff;
  border: 0;
  border-left: 3px solid #bfd0ca;
  border-radius: 0;
  box-shadow: 0 18px 24px -22px rgba(18, 28, 24, 0.18);
}

.offer-actions{
  padding-top: 2px;
  border-top: 1px solid var(--border);
}

.offer-company-line-main{
  margin-top: 4px;
}

.offer-position-section{
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  padding-bottom: 4px;
}

.offer-position-head h3{
  margin: 0 0 3px;
  font-size: 17px;
  line-height: 1.2;
}

.offer-position-head p{
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.offer-position-table{
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.offer-position-table table{
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.offer-position-table th,
.offer-position-table td{
  padding: 10px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
}

.offer-position-table th{
  color: var(--muted);
  font-size: 11px;
  font-weight: 820;
}

.offer-position-table tr:last-child td{
  border-bottom: 0;
}

.offer-position-table td strong,
.offer-position-table td span{
  display: block;
}

.offer-position-table td span{
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.offer-position-table input{
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid var(--border);
}

.deal-workspace{
  display: grid;
  gap: var(--space-6);
}

.deal-group{
  display: grid;
  gap: 14px;
}

.deal-group-head{
  display: flex;
  gap: 16px;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.deal-group-head h3{
  margin: 0;
  font-size: 20px;
}

.deal-group-head p{
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.deal-group-head strong{
  font-size: 26px;
  line-height: 1;
}

.deal-card{
  display: grid;
  gap: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.28);
  box-shadow: 0 22px 30px -24px rgba(18, 28, 24, 0.32);
}

.deal-card-main{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.deal-card h3{
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.deal-actions{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.deal-offer-line{
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 650;
}

.deal-empty{
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

@media (max-width: 760px) {
.filter-chips{
    width: auto;
    gap: 16px;
    overflow-x: auto;
    white-space: nowrap;
  }
}

/* Design refresh: clean industrial marketplace UI */
.nav-badge,
.offer-tabs span,
.mobile-nav-badge{
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  box-shadow: none;
}

.market-card:hover{
  background: var(--surface);
  box-shadow: var(--shadow-nested-hover);
  transform: translateY(-1px);
}

.panel-head p,
.muted,
.request-title span{
  color: var(--text-muted);
}

input::placeholder,
textarea::placeholder{
  color: var(--text-faint);
}

.accepted-card,
.accepted-offer-row td{
  background: var(--surface);
  border-color: rgba(18, 28, 24, 0.28);
}

.accepted-card{
  box-shadow: 0 18px 24px -22px rgba(18, 28, 24, 0.22);
}

[data-filter-toggle],
.filter-close{
  display: none;
}

.board-panel{
  padding: var(--space-6);
}

.request-quality,
.request-preview,
.company-contact-grid span{
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.request-form,
.request-wizard{
  gap: var(--space-4);
}

.preview-card{
  color: var(--text-soft);
}

.profile-trust-note{
  max-width: 220px;
  padding: var(--space-3);
  color: var(--text-soft);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  font-size: 13px;
  font-weight: 600;
}

.mobile-fab{
  display: none;
}

@media (max-width: 760px) {
  .filters{
    position: fixed;
    top: auto;
    right: 0;
    z-index: 42;
    bottom: 0;
    left: 0;
    width: auto;
    max-height: 82vh;
    padding: var(--space-5);
    box-shadow: var(--shadow-popover);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(110%);
  }

  body.filters-open .filters{
    transform: translateY(0);
  }

  body.filters-open::before{
    position: fixed;
    inset: 0;
    z-index: 41;
    content: "";
    background: rgba(15, 23, 42, 0.24);
  }

  [data-filter-toggle],
  .filter-close{
    display: inline-grid;
  }

}

/* Professional detail and compact list system: no card-in-card boxes */
.detail-panel{
  gap: 20px;
}

.detail-hero{
  padding: 22px 24px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.24);
  border-radius: 0;
  box-shadow: 0 16px 22px -24px rgba(18, 28, 24, 0.18);
}

.detail-hero h2{
  max-width: 820px;
  margin: 10px 0 8px;
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.08;
}

.meta-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 14px 18px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.22);
  border-radius: 0;
  box-shadow: none;
}

.meta-box{
  min-height: auto;
  min-width: 170px;
  padding: 2px 22px 2px 0;
  margin-right: 22px;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.meta-box:last-child{
  border-right: 0;
  margin-right: 0;
}

.meta-box span{
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
}

.meta-box strong{
  margin-top: 4px;
  color: var(--text);
  font-size: 15px;
  font-weight: 840;
  line-height: 1.25;
}

.detail-sections{
  gap: 14px;
}

.detail-description{
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.22);
  border-radius: 0;
  box-shadow: none;
}

.detail-description h3{
  margin-bottom: 14px;
  font-size: 18px;
}

.detail-description > p{
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
}

.spec-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 0;
}

.spec-grid span{
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(0, 1fr);
  gap: 14px;
  min-height: auto;
  padding: 10px 0;
  color: var(--text-soft);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
}

.spec-grid span:last-child{
  border-bottom: 0;
}

.spec-grid strong{
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

.compact-item,
.request-card,
.offer-item{
  position: relative;
  overflow: hidden;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid rgba(18, 28, 24, 0.28);
  border-radius: 0;
  box-shadow: 0 16px 22px -24px rgba(18, 28, 24, 0.2);
}

.compact-item-header,
.card-header{
  align-items: start;
}

.compact-item-header strong,
.request-card h3{
  max-width: 740px;
  color: var(--text);
  font-size: 16px;
  font-weight: 840;
  line-height: 1.25;
}

.compact-item-header > .tag,
.compact-item-header > .tag-row,
.card-header > .tag-row{
  margin-left: auto;
}

.compact-item > .muted{
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 620;
}

.request-card .meta-grid{
  padding: 10px 0 0;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: none;
}

.request-card .meta-box{
  min-width: 120px;
}

@media (max-width: 760px) {
.detail-hero{
    padding: 18px;
  }

  .meta-grid{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .meta-box{
    min-width: 0;
    margin: 0;
    padding: 0;
    border-right: 0;
  }

  .spec-grid span{
    grid-template-columns: 1fr;
    gap: 3px;
  }
}

/* Plain status text for offers and urgent flame for recent requests */
.status-text,
.date-text{
  color: var(--muted);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 13px;
  font-weight: 740;
  line-height: 1.2;
}

.status-text.status-accepted{
  color: var(--success);
}

.status-text.status-declined{
  color: var(--danger);
}

.status-text.status-discussing{
  color: var(--blue);
}

.date-text{
  color: var(--muted);
  font-weight: 680;
}

.urgent-mark{
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #a8640d;
  background: transparent;
  border: 0;
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
}

.urgent-mark svg{
  width: 15px;
  height: 15px;
  color: #d47a12;
  fill: currentColor;
}

.compact-item-header > .urgent-mark{
  margin-left: auto;
}

/* Marketplace labels: quieter than pills,
card color already carries status */
.market-card .tag-row,
.compact-item .tag-row,
.request-card .tag-row{
  gap: 8px;
  align-items: center;
}

.market-card .tag,
.compact-item .tag,
.request-card .tag{
  color: var(--muted);
}

.market-card .tag::before,
.compact-item .tag::before,
.request-card .tag::before{
  display: none;
}

.market-card .tag:not(:last-child)::after,
.compact-item .tag:not(:last-child)::after,
.request-card .tag:not(:last-child)::after{
  margin-left: 8px;
  color: #b6c0bb;
  content: "/";
}

.market-card .status-open,
.compact-item .status-open,
.request-card .status-open,
.market-card .status-urgent,
.compact-item .status-urgent,
.request-card .status-urgent,
.market-card .status-accepted,
.compact-item .status-accepted,
.request-card .status-accepted,
.market-card .status-discussing,
.compact-item .status-discussing,
.request-card .status-discussing,
.market-card .status-declined,
.compact-item .status-declined,
.request-card .status-declined{
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.market-card .status-open,
.compact-item .status-open,
.request-card .status-open,
.market-card .status-discussing,
.compact-item .status-discussing,
.request-card .status-discussing{
  color: var(--blue);
}

.market-card .status-urgent,
.compact-item .status-urgent,
.request-card .status-urgent{
  color: #a8640d;
}

.market-card .status-accepted,
.compact-item .status-accepted,
.request-card .status-accepted{
  color: var(--success);
}

.market-card .status-declined,
.compact-item .status-declined,
.request-card .status-declined{
  color: var(--danger);
}

/* Request cards: separate urgency,
useful summary,
balanced facts */
.market-card-top{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
  min-height: 18px;
}

.market-card-top .urgent-mark{
  margin-left: 4px;
}

.market-card-summary{
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 560;
  line-height: 1.5;
}

.market-card .tag-row .tag{
  display: inline-flex;
  min-height: 0;
  align-items: center;
  padding: 0;
  color: #69756f;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.market-card .tag-row .tag::before,
.market-card .tag-row .tag::after{
  display: none;
  content: none;
}

.market-card .tag-row .tag:first-child{
  padding-left: 0;
}

.market-card .tag-row .tag:first-child::before{
  display: none;
  content: none;
}

@media (max-width: 1100px) {
.market-card-meta{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
.market-card-top{
    align-items: flex-start;
  }
}

/* Compact action system: smaller buttons,
clearer hierarchy */
.table-actions .btn,
.request-table td:last-child .btn{
  min-width: 0;
  width: auto;
}

.form-actions,
.wizard-actions,
.table-actions{
  gap: 8px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.offer-actions .btn,
.form-actions .btn,
.wizard-actions .btn{
  min-height: 34px;
}

@media (max-width: 760px) {
.btn,
button.btn,
a.btn{
    min-height: 40px;
    padding: 0 13px;
    font-size: 14px;
  }

  .market-card-actions{
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  .market-card-actions .btn{
    width: 100%;
  }

  .market-card-actions [data-report-request]{
    grid-column: 1 / -1;
    justify-self: center;
    width: auto;
  }

  .template-chip{
    min-height: 40px;
  }
}

/* Dashboard queues and offer cards: cleaner working information */
.work-queue{
  display: grid;
  gap: 0;
}

.queue-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 15px 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.queue-row:last-child{
  border-bottom: 0;
}

.queue-row span{
  font-size: 15px;
  font-weight: 820;
  line-height: 1.25;
}

.queue-row small{
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.queue-row strong{
  grid-column: 2;
  grid-row: 1 / 3;
  color: var(--text);
  font-size: 24px;
  font-weight: 860;
  line-height: 1;
}

.queue-row:hover span{
  color: var(--accent);
}

.queue-row.urgent strong{
  color: var(--accent);
}

.queue-row.warning strong{
  color: #b66a00;
}

.offer-terms-line{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.offer-terms-line span{
  display: inline-flex;
  gap: 5px;
  align-items: baseline;
  margin: 0;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.35;
}

.offer-terms-line strong{
  display: inline;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
  line-height: inherit;
}

.offer-company-line{
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  color: var(--muted);
}

.offer-company-line strong{
  color: var(--text);
  font-size: 15px;
  font-weight: 830;
}

.offer-company-line span{
  position: relative;
  padding: 0 0 0 12px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 650;
}

.offer-company-line span::before{
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 12px;
  content: "";
  background: var(--border-strong);
  transform: translateY(-50%);
}

@media (max-width: 760px) {
.queue-row{
    padding: 14px 0;
  }

  .queue-row strong{
    font-size: 21px;
  }

  .offer-terms-line{
    gap: 7px 12px;
  }
}

.incoming-comparison-panel{
  overflow: visible;
}

.incoming-comparison-workspace{
  display: grid;
  gap: 18px;
}

.comparison-page-head,
.comparison-request-head{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.comparison-page-head h2,
.comparison-request-head h3{
  margin: 0;
}

.comparison-page-head h2{
  font-size: 30px;
  line-height: 1.1;
}

.comparison-page-head p{
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 650;
}

.comparison-page-head > strong{
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 0 14px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  font-size: 14px;
}

.comparison-request{
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(18, 28, 24, 0.2);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 38px -32px rgba(12, 23, 42, 0.35);
}

.comparison-request-head{
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.comparison-request-head h3{
  margin-top: 8px;
  font-size: 24px;
  line-height: 1.18;
}

.comparison-summary-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.comparison-supplier-strip{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.comparison-supplier{
  display: grid;
  gap: 10px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.comparison-supplier-head{
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
}

.comparison-supplier-head strong{
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.comparison-coverage{
  height: 8px;
  overflow: hidden;
  background: #e7edf5;
  border-radius: 999px;
}

.comparison-coverage span{
  display: block;
  width: var(--coverage, 0%);
  height: 100%;
  background: linear-gradient(90deg, #1b63bf, #2b83e6);
  border-radius: inherit;
}

.comparison-supplier-metrics{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.comparison-supplier-metrics span,
.comparison-position-offer-grid span{
  display: grid;
  gap: 2px;
  min-width: 0;
}

.comparison-supplier-metrics strong,
.comparison-position-offer-grid b{
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.comparison-supplier-metrics small,
.comparison-position-offer-grid small,
.comparison-position-demand span{
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 780;
}

.comparison-terms{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.comparison-terms span,
.comparison-position-offer-head span{
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  color: var(--primary);
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 820;
}

.comparison-position-list{
  display: grid;
  gap: 12px;
}

.comparison-position-row{
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 2.4fr);
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.comparison-position-demand{
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.comparison-position-demand strong{
  font-size: 17px;
  line-height: 1.2;
}

.comparison-position-demand small{
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.comparison-position-demand b{
  margin-top: 2px;
  color: var(--primary);
  font-size: 14px;
}

.comparison-position-offers{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.comparison-position-offer{
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.comparison-position-offer.is-best{
  border-color: rgba(27, 99, 191, 0.42);
  background: linear-gradient(180deg, rgba(235, 244, 255, 0.85), #fff);
}

.comparison-position-offer.is-empty{
  align-content: center;
  color: var(--text-muted);
  background: #f8fafc;
}

.comparison-position-offer.is-empty strong{
  color: var(--ink);
}

.comparison-position-offer-head{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.comparison-position-offer-head strong{
  min-width: 0;
  font-size: 14px;
  line-height: 1.2;
}

.comparison-position-offer-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

@media (max-width: 980px) {
  .comparison-summary-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .comparison-position-row{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .comparison-page-head,
  .comparison-request-head{
    display: grid;
  }

  .comparison-summary-grid,
  .comparison-supplier-metrics,
  .comparison-position-offer-grid{
    grid-template-columns: 1fr;
  }
}

/* Incoming comparison matrix */
.comparison-matrix-workspace{
  gap: 18px;
}

.comparison-matrix-head{
  align-items: flex-end;
  justify-content: stretch;
}

.comparison-matrix-head .comparison-toolbar{
  width: 100%;
}

.comparison-toolbar{
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: flex-end;
  justify-content: space-between;
}

.comparison-filter-group{
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.comparison-request-picker{
  display: grid;
  gap: 6px;
  flex: 1 1 560px;
  max-width: 720px;
  min-width: 320px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 780;
}

.comparison-request-picker select{
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 760;
}

.comparison-filter-button{
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  background: #fff;
  white-space: nowrap;
}

.comparison-matrix-meta{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.comparison-matrix-card{
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 48px -38px rgba(12, 23, 42, 0.38);
}

.comparison-matrix-scroll{
  width: 100%;
  overflow-x: auto;
}

.comparison-matrix-table{
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison-matrix-table th,
.comparison-matrix-table td{
  width: 270px;
  min-width: 270px;
  padding: 18px;
  text-align: left;
  vertical-align: top;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.comparison-matrix-table tr > *:last-child{
  border-right: 0;
}

.comparison-matrix-table tfoot tr > *{
  border-bottom: 0;
}

.comparison-sticky-col{
  position: sticky;
  left: 0;
  z-index: 2;
  width: 250px;
  min-width: 250px;
  background: #fff;
}

.comparison-matrix-table thead .comparison-sticky-col,
.comparison-matrix-table tfoot .comparison-sticky-col{
  z-index: 3;
}

.comparison-supplier-column-head{
  background: #fff;
}

.comparison-supplier-column-head strong{
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.comparison-head-badges,
.comparison-cell-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.comparison-badge,
.comparison-cell-badges em{
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.comparison-badge.is-success,
.comparison-cell-badges em{
  color: #176b3a;
  background: #e8f7ee;
  border: 1px solid #bfe8cf;
}

.comparison-badge.is-info{
  color: #1859a8;
  background: #eaf3ff;
  border: 1px solid #c3daf9;
}

.comparison-badge.is-warning,
.comparison-cell-badges em.is-warning{
  color: #9a5b0a;
  background: #fff3d6;
  border: 1px solid #f2d59a;
}

.comparison-head-terms{
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.3;
}

.comparison-position-cell{
  display: table-cell;
  background: #fff;
}

.comparison-position-cell strong{
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.comparison-position-cell span,
.comparison-position-cell small{
  display: block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.comparison-position-cell small{
  margin-top: 8px;
}

.comparison-matrix-offer{
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 12px;
  background: #eff9f2;
  border: 1px solid #dcefe3;
  border-radius: 9px;
}

.comparison-matrix-offer.is-best{
  background: #eef8f1;
  border-color: #bee6ca;
}

.comparison-matrix-offer.is-partial{
  background: #fff7e6;
  border-color: #f0d9a7;
}

.comparison-matrix-offer span{
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
}

.comparison-matrix-offer strong{
  color: var(--ink);
  font-size: 15px;
  line-height: 1.2;
}

.comparison-matrix-empty{
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 760;
}

.comparison-supplier-footer{
  background: #fff;
}

.comparison-supplier-footer > strong,
.comparison-supplier-footer > span{
  display: block;
}

.comparison-supplier-footer > strong{
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 16px;
}

.comparison-supplier-footer > span{
  margin-bottom: 14px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.comparison-footer-actions{
  display: flex;
  gap: 8px;
  align-items: center;
}

.comparison-footer-actions .btn{
  flex: 1;
  min-height: 40px;
}

.comparison-footer-actions .offer-action-menu{
  flex: 0 0 auto;
}

@media (max-width: 980px) {
  .comparison-toolbar{
    flex-wrap: wrap;
    justify-content: stretch;
  }

  .comparison-request-picker{
    flex-basis: 100%;
    min-width: 100%;
  }

  .comparison-filter-group{
    flex: 1 1 100%;
    justify-content: flex-start;
  }

  .comparison-matrix-meta{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .comparison-matrix-meta{
    grid-template-columns: 1fr;
  }

  .comparison-matrix-table th,
  .comparison-matrix-table td{
    width: 230px;
    min-width: 230px;
    padding: 14px;
  }

  .comparison-sticky-col{
    width: 200px;
    min-width: 200px;
  }
}

/* src/client/styles/pages/dashboard.css */
/* Overview dashboard */
[data-view="overview"]{
  --overview-radius: 18px;
  --overview-shadow: 0 14px 34px rgba(18, 28, 24, 0.075);
  --overview-shadow-hover: 0 16px 38px rgba(18, 28, 24, 0.105);
  --overview-line: rgba(214, 224, 219, 0.78);
  display: none;
}

[data-view="overview"].active{
  display: block;
}

[data-view="overview"] > * + *{
  margin-top: 24px;
}

.dashboard-hero-card{
  position: relative;
  display: grid;
  gap: 28px;
  overflow: hidden;
  padding: 30px 32px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 18%, rgba(21, 87, 183, 0.22), transparent 34%),
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 48%, var(--brand-dark) 100%);
  border: 0;
  border-radius: 0;
  box-shadow: 0 22px 34px -24px rgba(14, 27, 45, 0.46);
}

.dashboard-hero-main{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: start;
}

.dashboard-hero-card .eyebrow{
  display: block;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.dashboard-hero-card h2{
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.03;
}

.dashboard-hero-card p{
  max-width: 680px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 16px;
  font-weight: 540;
  line-height: 1.5;
}

.dashboard-hero-actions{
  display: flex;
  min-width: 260px;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-hero-actions .btn,
.dashboard-hero-secondary{
  min-height: 38px;
  padding: 0 15px;
  border-radius: 4px;
  font-size: 14px;
}

.dashboard-hero-actions .btn-primary{
  color: var(--brand-blue-hover);
  background: #fff;
  border-color: #fff;
  box-shadow: 0 18px 24px -20px rgba(15, 23, 42, 0.38);
}

.dashboard-hero-actions .btn-primary:hover,
.dashboard-hero-actions .btn-primary:focus-visible{
  color: #fff;
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
}

.dashboard-hero-secondary{
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

.dashboard-hero-metrics{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.dashboard-hero-metric{
  display: grid;
  gap: 4px;
  padding: 2px 18px;
  color: #fff;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
  transition: opacity 0.16s ease;
}

.dashboard-hero-metric:first-child{
  padding-left: 0;
}

.dashboard-hero-metric:last-child{
  border-right: 0;
}

.dashboard-hero-metric:hover{
  opacity: 0.82;
}

.dashboard-hero-metric strong{
  color: #fff;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 900;
  line-height: 1;
}

.dashboard-hero-metric span{
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.25;
}

.dashboard-hero-metric small{
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 620;
}

.dashboard-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.dashboard-processes,
.dashboard-market,
.dashboard-events{
  overflow: hidden;
  padding: 0;
  background: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 22px 30px -24px rgba(18, 28, 24, 0.28);
}

.dashboard-processes .panel-head,
.dashboard-market .panel-head,
.dashboard-events .panel-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 28px 30px 8px;
}

.dashboard-processes .panel-head h2,
.dashboard-market .panel-head h2,
.dashboard-events .panel-head h2{
  color: var(--text-main);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.dashboard-processes .panel-head p,
.dashboard-market .panel-head p,
.dashboard-events .panel-head p{
  margin-top: 6px;
  color: #6c7974;
  font-size: 14px;
  font-weight: 560;
}

.ops-board,
.market-board{
  display: grid;
  padding: 14px 30px 30px;
}

.ops-board{
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  gap: 28px;
}

.ops-priority{
  grid-row: span 2;
  min-height: 100%;
  padding-right: 8px;
}

.ops-funnel,
.ops-report,
.market-insights{
  padding-left: 28px;
  border-left: 1px solid rgba(214, 224, 219, 0.9);
}

.ops-report{
  align-self: end;
}

.ops-section-title{
  display: grid;
  gap: 5px;
  margin-bottom: 18px;
}

.ops-section-title span{
  color: #9aa49f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ops-section-title strong{
  color: #101817;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.ops-action-list,
.funnel-steps,
.report-metrics,
.market-metric-grid,
.dashboard-event-list{
  display: grid;
  gap: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 0;
  box-shadow:
    0 18px 24px -22px rgba(18, 28, 24, 0.22);
}

.priority-action{
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 82px;
  padding: 14px 16px;
  color: var(--text-main);
  text-decoration: none;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(18, 28, 24, 0.08);
  border-radius: 0;
  box-shadow: none;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    color 0.16s ease;
}

.priority-action:hover{
  z-index: 2;
  background: transparent;
  box-shadow:
    0 14px 26px rgba(18, 28, 24, 0.11);
  transform: translateY(-1px);
}

.priority-action:last-child{
  border-bottom: 0;
}

.priority-action > span{
  color: #101817;
  font-size: 34px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.priority-action.urgent > span{
  color: var(--brand-blue);
}

.priority-action.warning > span{
  color: #b66a00;
}

.priority-action.chat > span,
.priority-action.neutral > span{
  color: #172322;
}

.priority-action strong{
  display: block;
  color: #101817;
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.priority-action small{
  display: block;
  max-width: 460px;
  margin-top: 5px;
  color: #66736e;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.priority-action em{
  padding: 9px 12px;
  color: var(--brand-blue-hover);
  background: rgba(21, 87, 183, 0.08);
  border-radius: 0;
  font-size: 12px;
  font-style: normal;
  font-weight: 820;
  white-space: nowrap;
}

.priority-empty{
  display: grid;
  gap: 10px;
}

.priority-empty strong{
  color: var(--text-main);
  font-size: 16px;
  font-weight: 900;
}

.priority-empty span{
  color: #6c7974;
  font-size: 13px;
  font-weight: 620;
}

.priority-empty div{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.funnel-steps{
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.funnel-step,
.report-metric,
.market-metric,
.dashboard-event{
  position: relative;
  display: grid;
  gap: 5px;
  color: var(--text-main);
  text-decoration: none;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  transition:
    background 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease,
    color 0.16s ease;
}

.funnel-step:hover,
.report-metric:hover,
.market-metric:hover,
.dashboard-event:hover{
  z-index: 2;
  background: transparent;
  box-shadow:
    0 14px 26px rgba(18, 28, 24, 0.11);
  transform: translateY(-1px);
}

.funnel-step,
.report-metric{
  min-height: 128px;
  padding: 18px 16px;
  border-right: 1px solid rgba(18, 28, 24, 0.08);
}

.funnel-step:last-child,
.report-metric:last-child{
  border-right: 0;
}

.report-metrics{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.report-metric{
  min-height: 120px;
}

.funnel-step strong,
.report-metric strong{
  color: var(--text-main);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.funnel-step strong{
  font-size: 34px;
}

.report-metric strong{
  font-size: 30px;
}

.funnel-step span,
.report-metric span,
.market-metric span{
  color: #1f2a28;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.funnel-step small,
.report-metric small{
  color: #66736e;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

.market-board{
  grid-template-columns: minmax(340px, 0.88fr) minmax(420px, 1.12fr);
  gap: 34px;
  align-items: stretch;
}

.market-left{
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 14px;
  align-content: stretch;
}

.market-total-card{
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 22px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 75% 15%, rgba(21, 87, 183, 0.22), transparent 36%),
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-navy) 48%, var(--brand-dark) 100%);
  border-radius: 0;
  box-shadow: 0 22px 34px -24px rgba(14, 27, 45, 0.46);
}

.market-total-card span{
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 800;
}

.market-total-card strong{
  margin-top: 8px;
  color: #fff;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.market-total-card small{
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 650;
}

.market-metric-grid{
  grid-template-columns: 1fr;
  gap: 0;
  background: transparent;
  box-shadow: 0 18px 24px -22px rgba(18, 28, 24, 0.22);
}

.market-metric{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(18, 28, 24, 0.08);
}

.market-metric:last-child{
  border-bottom: 0;
}

.market-metric strong{
  grid-column: 2;
  grid-row: 1;
  color: var(--text-main);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.market-metric span{
  grid-column: 1;
  grid-row: 1;
  color: #394843;
}

.market-insights{
  display: grid;
  align-content: start;
  gap: 16px;
  padding-left: 30px;
  border-left: 1px solid rgba(214, 224, 219, 0.9);
}

.market-insights-title{
  color: #101817;
  font-size: 18px;
  font-weight: 900;
}

.market-donut-wrap{
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  height: 100%;
  min-height: 100%;
  padding: 30px;
  background: transparent;
  border-radius: 0;
  box-shadow: 0 18px 24px -22px rgba(18, 28, 24, 0.22);
}

.market-donut{
  position: relative;
  display: grid;
  width: min(300px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
}

.market-donut svg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: rotate(-90deg);
}

.market-donut-base,
.market-donut-segment{
  fill: none;
  stroke-width: 16;
}

.market-donut-base{
  stroke: #e8efeb;
}

.market-donut-segment{
  cursor: pointer;
  transition:
    opacity 0.16s ease,
    stroke-width 0.16s ease,
    filter 0.16s ease;
}

.market-donut-segment.is-muted{
  opacity: 0.22;
}

.market-donut-segment.is-active{
  opacity: 1;
  stroke-width: 20;
  filter: drop-shadow(0 8px 12px rgba(18, 28, 24, 0.18));
}

.market-donut-center{
  position: relative;
  z-index: 1;
  display: grid;
  width: 142px;
  aspect-ratio: 1;
  align-content: center;
  justify-items: center;
  padding: 12px;
  text-align: center;
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 18px 24px -20px rgba(18, 28, 24, 0.28);
}

.market-donut-center strong{
  max-width: 116px;
  color: #172322;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
}

.market-donut-center span{
  max-width: 112px;
  margin-top: 5px;
  color: #7b8782;
  font-size: 11px;
  font-weight: 760;
  line-height: 1.15;
}

.donut-legend{
  display: grid;
  gap: 8px;
}

.donut-legend-item{
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 9px 0 9px 18px;
  border-bottom: 1px solid rgba(18, 28, 24, 0.08);
}

.donut-legend-item:last-child{
  border-bottom: 0;
}

.donut-legend-item::before{
  position: absolute;
  top: 15px;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--dot);
  border-radius: 50%;
}

.donut-legend-item::after{
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 3;
  padding: 8px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
  content: "Оборот: " attr(data-turnover);
  background: #172322;
  border-radius: 0;
  box-shadow: 0 18px 24px -18px rgba(18, 28, 24, 0.5);
  opacity: 0;
  transform: translateY(4px);
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
}

.donut-legend-item:hover::after{
  opacity: 1;
  transform: translateY(0);
}

.donut-legend-item.is-active span,
.donut-legend-item.is-active strong{
  color: var(--brand-blue-hover);
}

.donut-legend-item span{
  min-width: 0;
  color: #3f4d48;
  font-size: 13px;
  font-weight: 820;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.donut-legend-item strong{
  color: var(--text-main);
  font-size: 14px;
  font-weight: 900;
}

.dashboard-event-list{
  gap: 0;
  margin: 4px 30px 30px;
  padding: 0;
}

.dashboard-event{
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 17px 14px;
  border-bottom: 1px solid rgba(18, 28, 24, 0.08);
}

.dashboard-event:last-child{
  border-bottom: 0;
}

.dashboard-event span{
  color: #9a3b37;
  font-size: 11px;
  font-weight: 860;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.dashboard-event strong{
  color: var(--text-main);
  font-size: 16px;
  font-weight: 840;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.dashboard-event small{
  color: #7b8782;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.dashboard-events .empty-state{
  margin: 0 30px 30px;
}

@media (max-width: 1180px) {
.dashboard-hero-main,
.dashboard-hero-metrics,
.ops-board,
.market-board{
    grid-template-columns: 1fr;
  }

  .dashboard-hero-actions{
    justify-content: flex-start;
  }

  .dashboard-hero-metric{
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .dashboard-hero-metric:last-child{
    border-bottom: 0;
  }

  .ops-funnel,
.ops-report,
.market-insights{
    padding-left: 0;
    border-left: 0;
  }

  .market-donut-wrap{
    grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  }

  .market-donut{
    width: min(240px, 100%);
  }

  .market-donut-center{
    width: 122px;
  }
}

@media (max-width: 760px) {
[data-view="overview"] > * + *{
    margin-top: 18px;
  }

  .dashboard-hero-card,
.dashboard-processes,
.dashboard-market,
.dashboard-events{
    border-radius: 0;
  }

  .dashboard-hero-card{
    padding: 22px;
  }

  .dashboard-hero-card h2{
    font-size: 30px;
  }

  .dashboard-hero-actions,
.priority-empty div{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .dashboard-hero-actions{
    min-width: 0;
  }

  .dashboard-hero-actions .btn,
.priority-empty .btn{
    width: 100%;
  }

  .dashboard-processes .panel-head,
.dashboard-market .panel-head,
.dashboard-events .panel-head{
    grid-template-columns: 1fr;
    padding: 22px 20px 8px;
  }

  .ops-board,
.market-board{
    padding: 12px 20px 20px;
  }

  .dashboard-event-list{
    margin: 12px 20px 20px;
    padding: 0;
  }

  .priority-action{
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .priority-action em{
    grid-column: 1 / -1;
    justify-self: start;
  }

  .funnel-steps,
.report-metrics,
.market-metric-grid,
.market-donut-wrap,
.dashboard-event{
    grid-template-columns: 1fr;
  }

  .funnel-step,
  .report-metric{
    border-right: 0;
    border-bottom: 1px solid rgba(18, 28, 24, 0.08);
  }

  .funnel-step:last-child,
  .report-metric:last-child{
    border-bottom: 0;
  }

  .market-donut-wrap{
    height: auto;
    min-height: 0;
    justify-items: center;
  }

  .donut-legend{
    width: 100%;
  }

  .dashboard-event small{
    white-space: normal;
  }
}

/* src/client/styles/design-refresh.css */
:root{
  --bg-page: #f4f7fb;
  --bg-surface: #ffffff;
  --text-main: #111827;
  --text-secondary: #5b6778;
  --text-muted: #8a95a5;
  --border: #dce4ee;
  --border-soft: #edf2f7;
  --brand-dark: #0b1728;
  --brand-navy: #123866;
  --brand-blue: #1458b0;
  --brand-blue-hover: #0f4894;
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 8px;
  --radius-lg: 10px;
  --radius-xl: 12px;
  --shadow: 0 18px 42px -34px rgba(15, 23, 42, 0.42);
  --shadow-soft: 0 14px 32px -28px rgba(15, 23, 42, 0.32);
  --shadow-card: 0 18px 38px -30px rgba(15, 23, 42, 0.34);
  --shadow-popover: 0 22px 48px -30px rgba(15, 23, 42, 0.44);
  --shadow-nested: 0 10px 24px -22px rgba(15, 23, 42, 0.25);
  --shadow-nested-hover: 0 18px 36px -28px rgba(15, 23, 42, 0.34);
}

html{
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body{
  color: var(--text-main);
  background: var(--bg-page);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.52;
  font-variant-numeric: tabular-nums;
}

h1,
h2,
h3,
.brand strong,
.request-title strong,
.market-card h3,
.dashboard-hero-card h2,
.dashboard-processes .panel-head h2,
.dashboard-market .panel-head h2,
.dashboard-events .panel-head h2{
  text-wrap: balance;
}

h1{
  font-size: clamp(23px, 2vw, 29px);
  font-weight: 720;
  line-height: 1.14;
}

h2{
  font-size: clamp(19px, 1.55vw, 23px);
  font-weight: 720;
  line-height: 1.18;
}

h3{
  font-size: 17px;
  font-weight: 680;
  line-height: 1.25;
}

p,
.panel-head p,
.auth-card p,
.sidebar-card p{
  line-height: 1.55;
}

.breadcrumb,
.eyebrow,
label,
.field-note,
.optional,
.published-line,
.request-table th,
.market-card-meta small{
  font-weight: 600;
}

.topbar{
  grid-template-columns: minmax(260px, 1fr) auto;
  min-height: 72px;
  background: rgba(244, 247, 251, 0.86);
  backdrop-filter: blur(14px);
}

.topbar-actions{
  gap: 12px;
}

.user-pill{
  display: inline-flex;
  justify-content: flex-end;
}

.user-pill summary{
  cursor: pointer;
}

.global-search{
  min-width: min(28vw, 360px);
}

.brand-mark{
  border-radius: 10px;
  font-weight: 780;
}

.brand strong{
  font-weight: 740;
}

.brand small{
  color: rgba(238, 245, 242, 0.72);
  font-size: 11px;
  letter-spacing: 0;
}

.auth-brand strong{
  color: var(--text-main);
}

.auth-brand small{
  color: var(--text-muted);
}

.side-nav a{
  min-height: 42px;
  border-radius: 8px;
  font-weight: 650;
}

.side-nav a.active{
  box-shadow: inset 3px 0 0 var(--accent), 0 8px 18px -18px rgba(255, 255, 255, 0.7);
}

.sidebar-card,
.auth-card,
.panel,
.board-panel,
.filters,
.market-card,
.compact-item,
.request-card,
.offer-item,
.dashboard-hero-card,
.dashboard-processes,
.dashboard-market,
.dashboard-events,
.market-total-card,
.ops-action-list,
.funnel-steps,
.report-metrics,
.market-metric-grid,
.dashboard-event-list,
.table-scroll,
.meta-box,
.user-menu,
.saved-search > button:first-child{
  border-radius: var(--radius-lg);
}

.sidebar-card{
  background: rgba(255, 255, 255, 0.07);
}

label{
  gap: 7px;
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.28;
}

input,
select,
textarea{
  min-height: 42px;
  padding: 0 13px;
  color: var(--text-main);
  background: #fff;
  border-color: #d6e0eb;
  border-radius: var(--radius-md);
  font-size: 14px;
}

textarea{
  padding-top: 12px;
}

input::placeholder,
textarea::placeholder{
  color: #9aa6b6;
}

input:hover,
select:hover,
textarea:hover{
  border-color: #c5d1df;
}

input:focus,
select:focus,
textarea:focus{
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(20, 88, 176, 0.13);
}

.btn{
  min-height: 38px;
  padding: 0 14px;
  color: var(--text-main);
  background: #fff;
  border-color: #d9e2ec;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.1;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.78) inset;
}

.btn:hover{
  border-color: #c8d4e2;
  background: #f9fbfd;
  box-shadow: 0 10px 24px -22px rgba(15, 23, 42, 0.48);
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  min-height: 40px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  font-weight: 680;
  box-shadow: 0 12px 22px -18px rgba(20, 88, 176, 0.78);
}

.btn-primary:hover{
  color: #fff;
  background: var(--brand-blue-hover);
  border-color: var(--brand-blue-hover);
  box-shadow: 0 14px 26px -18px rgba(20, 88, 176, 0.8);
}

.dashboard-hero-actions .btn-primary:hover,
.dashboard-hero-actions .btn-primary:focus-visible{
  color: #fff;
}

.btn-ghost,
[data-report-request]{
  min-height: 36px;
  padding: 0 10px;
  color: var(--text-secondary);
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover,
[data-report-request]:hover{
  color: var(--text-main);
  background: rgba(20, 88, 176, 0.06);
  border-color: transparent;
}

.btn-secondary{
  color: var(--brand-blue-hover);
  background: rgba(20, 88, 176, 0.08);
  border-color: rgba(20, 88, 176, 0.16);
}

.icon-btn{
  border-radius: 8px;
}

.user-pill summary span{
  min-height: 36px;
  padding: 0;
  cursor: pointer;
  user-select: none;
}

.user-pill summary span::before{
  display: none;
}

.user-menu{
  top: calc(100% + 10px);
  right: auto;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  min-width: 240px;
  max-width: min(300px, calc(100vw - 32px));
  gap: 3px;
  padding: 10px;
  z-index: 1200;
}

.user-menu .btn{
  min-height: 38px;
  width: 100%;
  justify-content: flex-start;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}

.filter-chips{
  gap: 14px;
}

.filter-chips button,
.offer-tabs button{
  font-weight: 650;
}

.offer-tabs{
  border-radius: 10px;
}

.offer-tabs button.active{
  border-radius: 7px;
  box-shadow: 0 8px 18px -18px rgba(15, 23, 42, 0.42);
}

.tag{
  min-height: 24px;
  padding: 3px 9px;
  color: #315f9f;
  background: rgba(20, 88, 176, 0.08);
  border: 1px solid rgba(20, 88, 176, 0.14);
  border-radius: 999px;
  font-weight: 620;
}

.market-card .tag,
.compact-item .tag,
.request-card .tag,
.detail-hero .tag{
  color: #315f9f;
  background: rgba(20, 88, 176, 0.08);
  border: 1px solid rgba(20, 88, 176, 0.14);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 650;
}

.market-card .tag::before,
.market-card .tag::after,
.compact-item .tag::before,
.compact-item .tag::after,
.request-card .tag::before,
.request-card .tag::after{
  display: none;
  content: none;
}

.tag.status-accepted{
  color: #1f7a46;
  background: rgba(46, 155, 79, 0.1);
  border-color: rgba(46, 155, 79, 0.18);
}

.tag.status-urgent{
  color: #a15c00;
  background: rgba(217, 138, 18, 0.1);
  border-color: rgba(217, 138, 18, 0.18);
}

.tag.status-declined{
  color: #b33434;
  background: rgba(214, 69, 69, 0.1);
  border-color: rgba(214, 69, 69, 0.18);
}

.tag.status-discussing,
.status-open,
.status-discussing,
.status-urgent,
.status-accepted,
.status-declined{
  border-radius: 999px;
}

.request-table th{
  color: #667386;
  background: #f7f9fc;
  font-size: 11px;
}

.request-table td{
  font-size: 14px;
}

.request-title strong,
.compact-item strong,
.request-card h3,
.offer-item strong,
.priority-action strong,
.dashboard-event strong{
  font-weight: 700;
}

.market-card{
  border-color: rgba(148, 163, 184, 0.26);
}

.market-card h3{
  color: var(--text-main);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.2;
}

.market-card-meta strong{
  font-weight: 680;
}

.market-card-meta{
  grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
  gap: 12px;
}

.market-card-meta span,
.market-card-meta strong,
.market-card-meta small{
  min-width: 0;
  overflow-wrap: anywhere;
}

.market-card-actions .btn,
.dashboard-hero-actions .btn,
.dashboard-hero-secondary{
  min-height: 40px;
  border-radius: 8px;
  font-weight: 650;
}

.dashboard-hero-card{
  padding: 28px 30px;
}

.dashboard-hero-card .eyebrow{
  font-weight: 650;
  letter-spacing: 0;
}

.dashboard-hero-card h2{
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 760;
  line-height: 1.08;
}

.dashboard-hero-card p{
  font-size: 15px;
  font-weight: 500;
}

.dashboard-hero-metric strong,
.funnel-step strong,
.report-metric strong,
.market-total-card strong,
.market-metric strong{
  font-weight: 760;
}

.dashboard-hero-metric span,
.funnel-step span,
.report-metric span,
.market-metric span,
.donut-legend-item span{
  font-weight: 650;
}

.dashboard-processes .panel-head h2,
.dashboard-market .panel-head h2,
.dashboard-events .panel-head h2{
  font-size: 24px;
  font-weight: 760;
  line-height: 1.16;
}

.nav-badge,
.mobile-nav-badge{
  color: var(--brand-blue-hover);
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: 0 10px 20px -14px rgba(0, 0, 0, 0.5);
  font-weight: 820;
}

.mobile-nav-badge{
  background: var(--brand-blue);
  color: #fff;
  border-color: rgba(20, 88, 176, 0.2);
}

.request-offer-notice{
  min-width: 132px;
  border-radius: 999px;
  grid-template-columns: auto;
  gap: 0;
  padding: 7px 12px;
  color: #315f9f;
  background: rgba(20, 88, 176, 0.08);
  border: 1px solid rgba(20, 88, 176, 0.16);
  box-shadow: none;
}

.request-offer-notice strong{
  font-size: 13px;
  font-weight: 760;
}

.request-offer-notice span{
  color: #667386;
  font-size: 11px;
}

.request-offer-notice.is-new{
  color: #0f4894;
  background: rgba(20, 88, 176, 0.11);
  border-color: rgba(20, 88, 176, 0.22);
}

.request-offer-notice.is-empty{
  color: var(--text-muted);
  background: rgba(138, 149, 165, 0.08);
  border-color: rgba(138, 149, 165, 0.16);
}

.notification-stack{
  right: 18px;
  bottom: 88px;
  gap: 8px;
  width: min(330px, calc(100vw - 28px));
}

.app-notification{
  border-radius: 10px;
  border-color: rgba(20, 88, 176, 0.16);
  box-shadow: 0 18px 36px -28px rgba(15, 23, 42, 0.48);
}

.app-notification strong{
  font-size: 13px;
}

.app-notification span{
  font-size: 12px;
  line-height: 1.35;
}

.app-notification .icon-btn{
  width: 30px;
  height: 30px;
  min-height: 30px;
}

.request-detail-card{
  display: grid;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1px solid rgba(20, 88, 176, 0.18);
  border-radius: 14px;
  box-shadow: 0 18px 44px -34px rgba(20, 88, 176, 0.34);
}

.request-detail-card .detail-hero{
  align-items: start;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  border-radius: 0;
  box-shadow: none;
}

.request-detail-card,
.request-detail-card .detail-hero,
.request-detail-card .offer-actions,
.request-card,
.request-card .card-header{
  overflow: visible;
}

.request-detail-card .detail-description{
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.request-detail-card .detail-description h3,
.request-offers-workspace .panel-head h3{
  font-size: 22px;
  font-weight: 760;
  line-height: 1.16;
}

.request-summary-grid{
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
}

.request-offers-workspace{
  gap: 18px;
  border-radius: var(--radius-lg);
  border-color: var(--border-soft);
  box-shadow: var(--shadow-card);
}

.request-offers-workspace .panel-head{
  margin-bottom: 0;
}

.request-offers-workspace .compact-list,
.request-offers-workspace [data-view],
.request-offers-workspace > div:not(.panel-head):not(.detail-offer-tabs){
  min-width: 0;
}

.offer-card-pro + .offer-card-pro{
  margin-top: 14px;
}

.offer-card-pro{
  border-radius: var(--radius-lg);
}

.offer-actions{
  gap: 10px;
  justify-content: flex-end;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.offer-actions .btn,
.table-actions .btn{
  min-height: 38px;
  padding: 0 13px;
  white-space: normal;
  line-height: 1.15;
}

.detail-hero > .offer-actions{
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.offer-action-menu{
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
}

.offer-action-toggle{
  width: 42px;
  height: 28px;
  color: var(--text-main);
  background: rgba(20, 88, 176, 0.07);
  border: 1px solid rgba(20, 88, 176, 0.16);
  border-radius: 999px;
  box-shadow: none;
}

.kebab-dots{
  display: flex;
  gap: 4px;
  place-items: center;
}

.kebab-dots i{
  display: block;
  width: 3.5px;
  height: 3.5px;
  background: currentColor;
  border-radius: 999px;
}

.offer-action-popover{
  position: fixed;
  z-index: 1200;
  top: var(--offer-menu-top, 0);
  left: var(--offer-menu-left, 0);
  display: grid;
  width: var(--offer-menu-width, 260px);
  padding: 7px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-popover);
}

.offer-action-popover[hidden]{
  display: none;
}

.offer-action-popover button,
.offer-action-popover a{
  display: flex;
  min-height: 36px;
  align-items: center;
  padding: 8px 10px;
  color: var(--text-main);
  background: transparent;
  border: 0;
  border-radius: 9px;
  text-align: left;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.offer-action-popover button:hover,
.offer-action-popover a:hover{
  background: rgba(20, 88, 176, 0.08);
}

.offer-action-popover .danger{
  color: #9f3d31;
}

.comparison-table td:last-child{
  overflow: visible;
}

.btn-muted{
  min-width: 132px;
  white-space: nowrap;
  line-height: 1.2;
}

.ops-section-title span,
.dashboard-event span{
  font-weight: 650;
  letter-spacing: 0;
}

.priority-action em{
  border-radius: 999px;
  font-weight: 650;
}

.donut-legend-item::after{
  border-radius: 8px;
}

.profile-grid{
  grid-template-columns: minmax(0, 1fr);
}

.company-card-head{
  display: grid;
  gap: 10px;
}

.company-card h3{
  margin-top: 8px;
}

.request-wizard{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.wizard-step{
  min-height: 100%;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.wizard-step:nth-of-type(4){
  padding-right: 18px;
  border-right: 1px solid var(--border-soft);
}

.request-title-step{
  padding: 0 0 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
}

.request-title-step,
.request-items-step,
.wizard-actions{
  grid-column: 1 / -1;
}

.wizard-step[data-request-step="3"]{
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wizard-step[data-request-step="3"] legend,
.wizard-step[data-request-step="3"] .field-note,
.wizard-step[data-request-step="3"] .span-2{
  grid-column: 1 / -1;
}

.request-items-step{
  grid-template-columns: minmax(0, 1fr) minmax(220px, auto);
  align-items: end;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.request-items-step legend,
.request-items-step .field-note,
.request-items-table{
  grid-column: 1 / -1;
}

.request-items-step [data-add-request-item]{
  grid-column: 1;
  justify-self: start;
}

.request-items-summary{
  grid-column: 1;
  justify-self: start;
  min-width: min(360px, 100%);
  align-self: stretch;
  align-items: center;
  border-radius: var(--radius-md);
}

@media (max-width: 760px){
  body{
    font-size: 14px;
  }

  h1{
    font-size: 24px;
  }

  h2{
    font-size: 20px;
  }

  .btn{
    min-height: 42px;
  }

  .user-menu{
    transform: none;
  }

  .topbar{
    grid-template-columns: 1fr;
    backdrop-filter: none;
  }

  .layout-grid{
    grid-template-columns: minmax(0, 1fr);
  }

  .request-wizard,
  .wizard-step[data-request-step="3"],
  .request-items-step{
    grid-template-columns: 1fr;
  }

  .request-items-step [data-add-request-item],
  .request-items-summary{
    grid-column: 1;
    width: 100%;
  }

  .market-card{
    width: 100%;
  }

.market-card-actions{
    align-items: stretch;
  }

  .market-card-actions .btn{
    width: 100%;
  }
}

/* Dark-theme final cascade — screenshot corrections */
html[data-theme="dark"] .chat-panel,
html[data-theme="dark"] .chat-layout.chat-layout-empty .chat-panel{
  background:#0f1820;
  border-color:#2a3b4c;
}

html[data-theme="dark"] .chat-layout.chat-layout-empty .empty-rich{
  background:#182431;
  color:#edf4fa;
  border:1px solid #34495a;
  box-shadow:0 18px 34px -22px rgba(0,0,0,.72);
}

html[data-theme="dark"] .incoming-company-card,
html[data-theme="dark"] .chat-card,
html[data-theme="dark"] .deal-room,
html[data-theme="dark"] .incoming-chat-workspace{
  background:#121b24;
  color:#edf4fa;
  border-color:#2a3b4c;
}

html[data-theme="dark"] .market-card-actions .btn:not(.btn-primary):not([data-report-request]),
html[data-theme="dark"] .market-card-actions .favorite-button,
html[data-theme="dark"] .market-card-actions .favorite-button:hover{
  color:#b9d3ff;
  background:#182431;
  border-color:#456078;
  box-shadow:none;
}

html[data-theme="dark"] .market-card-actions .favorite-button.is-favorite,
html[data-theme="dark"] .market-card-actions .favorite-button.is-favorite:hover{
  color:#9ce8bb;
  background:#172d25;
  border-color:#35644f;
}

html[data-theme="dark"] .market-card-actions [data-report-request],
html[data-theme="dark"] .market-card-actions [data-report-request]:hover{
  color:#aebbc6;
  background:transparent;
  border-color:#405467;
}

html[data-theme="dark"] .market-card .tag,
html[data-theme="dark"] .detail-hero .tag{
  color:#8cbdff;
  background:rgba(98,160,255,.14);
  border-color:rgba(98,160,255,.38);
}

html[data-theme="dark"] .filter-chips button{
  color:#b7c4d1;
  background:transparent;
  border-color:transparent;
}

html[data-theme="dark"] .filter-chips button:hover{
  color:#edf4fa;
  background:#1b2936;
}

html[data-theme="dark"] .filter-chips button.active{
  color:#edf4fa;
  background:#182431;
}

html[data-theme="dark"] .filter-chips button.active::after{
  background:#62a0ff;
}

html[data-theme="dark"] .profile-verification-badge{
  color:#9ce8bb;
  background:#172d25;
  border-color:#35644f;
}

/* Productivity layer: notifications, onboarding, favorites, trust and dark theme */
.topbar-icon{position:relative;display:grid;place-items:center;width:42px;height:42px;border:1px solid var(--border,#dfe4ea);border-radius:12px;background:var(--surface,#fff);color:inherit;font-size:18px;cursor:pointer;transition:transform .18s ease,background .18s ease}
.topbar-text-action{width:auto;min-width:64px;padding:0 12px;font-size:12px;font-weight:750}
.market-card:empty,.panel.is-loading{min-height:140px;background:linear-gradient(100deg,#eef1f4 20%,#fafbfc 38%,#eef1f4 56%);background-size:220% 100%;animation:skeleton-wave 1.2s linear infinite}
@keyframes skeleton-wave{to{background-position-x:-220%}}
.topbar-icon:hover{transform:translateY(-2px)}
.topbar-icon span{position:absolute;right:-5px;top:-6px;min-width:20px;height:20px;padding:0 5px;border-radius:10px;background:#e5484d;color:white;font:700 11px/20px sans-serif}
.topbar-icon span:empty,
.topbar-icon span[hidden]{display:none!important}
.notification-center{position:relative}
.notification-panel{position:absolute;z-index:80;right:0;top:calc(100% + 10px);width:min(380px,calc(100vw - 28px));max-height:420px;overflow:auto;padding:10px;border:1px solid var(--border,#dfe4ea);border-radius:16px;background:var(--surface,#fff);box-shadow:0 18px 60px rgba(19,31,52,.18)}
.notification-panel-head{display:flex;justify-content:space-between;padding:8px 10px 12px}
.notification-panel>a{display:grid;gap:4px;padding:12px 10px;border-radius:10px;color:inherit;text-decoration:none}
.notification-panel>a:hover{background:var(--surface-soft,#f2f5f8)}
.notification-panel>a span,.notification-panel-empty{color:var(--muted,#657081);font-size:13px}
.notification-panel-empty{padding:24px 10px;text-align:center}
.favorite-button.is-favorite{color:#9a6500;background:#fff5cd;border-color:#eac762}
.draft-status{margin-right:auto;color:#3b7652;font-size:13px;font-weight:650}
.request-timeline{margin-top:26px;padding-top:22px;border-top:1px solid var(--border,#dfe4ea)}
.trust-strip{display:flex;align-items:center;gap:12px;margin-bottom:22px;padding:14px 16px;border-radius:14px;background:linear-gradient(120deg,#eef8f2,#f7fbf8)}
.trust-strip strong{color:#217346;font-size:20px}.trust-strip span{color:#52615a;font-size:13px}
.timeline-event{position:relative;display:flex;gap:12px;padding:0 0 18px 4px}
.timeline-event:not(:last-child)::after{content:"";position:absolute;left:8px;top:15px;bottom:0;width:1px;background:var(--border,#dfe4ea)}
.timeline-event i{z-index:1;width:9px;height:9px;margin-top:5px;border-radius:50%;background:#1c7c54;box-shadow:0 0 0 4px var(--surface,#fff)}
.timeline-event span{display:grid;gap:3px}.timeline-event small{color:var(--muted,#657081)}
.comparison-filter-button.active{color:white;background:#173f35;border-color:#173f35}
.onboarding-dialog{width:min(560px,calc(100vw - 28px));border:0;border-radius:22px;padding:0;box-shadow:0 28px 90px rgba(9,24,39,.28)}
.onboarding-dialog::backdrop{background:rgba(7,19,31,.54);backdrop-filter:blur(4px)}
.onboarding-card{position:relative;padding:34px}.onboarding-card h2{margin:22px 0 10px;font-size:28px}.onboarding-card p{min-height:54px;color:#657081;line-height:1.6}
.onboarding-progress{display:flex;gap:7px;margin:24px 0}.onboarding-progress i{width:28px;height:5px;border-radius:5px;background:#d9e0e7}.onboarding-progress i.active{background:#1c7c54}

html[data-theme="dark"]{color-scheme:dark;--surface:#172026;--surface-soft:#202c33;--border:#34444d;--muted:#a9b5bc;background:#10171b}
html[data-theme="dark"] body,html[data-theme="dark"] .app-main{background:#10171b;color:#edf3f5}
html[data-theme="dark"] .topbar,html[data-theme="dark"] .panel,html[data-theme="dark"] .market-card,html[data-theme="dark"] .request-detail-card,html[data-theme="dark"] .user-menu,html[data-theme="dark"] .meta-box{background:#172026;color:#edf3f5;border-color:#34444d}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea,html[data-theme="dark"] .btn{background:#202c33;color:#edf3f5;border-color:#43545e}
html[data-theme="dark"] .muted,html[data-theme="dark"] .published-line{color:#a9b5bc}
html[data-theme="dark"] .trust-strip{background:linear-gradient(120deg,#173127,#1c292b)}

/* Dark palette: neutral steel surfaces with accessible semantic accents */
html[data-theme="dark"]{
  --bg-page:#0b1117;--bg-surface:#121b24;--text-main:#edf4fa;--text-secondary:#b7c4d1;--text-muted:#8fa0b0;
  --border:#2a3b4c;--border-soft:#22313f;--brand-dark:#081016;--brand-navy:#183b60;--brand-blue:#62a0ff;
  --brand-blue-hover:#80b3ff;--accent-cta:#ffad5a;--accent-cta-hover:#ffc078;--success:#54d48a;
  --warning:#ffc266;--danger:#ff7676;--bg:#0b1117;--panel:#121b24;--surface:#121b24;--surface-soft:#182431;
  --surface-hover:#1b2936;--panel-2:#182431;--ink:#edf4fa;--text:#edf4fa;--text-soft:#b7c4d1;
  --muted:#b7c4d1;--text-faint:#8fa0b0;--line:#2a3b4c;--line-strong:#34495a;--border-strong:#34495a;
  --dark:#081016;--dark-2:#10283d;--primary:#62a0ff;--primary-hover:#80b3ff;--primary-soft:rgba(98,160,255,.14);
  --primary-border:rgba(98,160,255,.38);--accent:#62a0ff;--accent-dark:#80b3ff;--steel:#edf4fa;
  --steel-soft:#182431;--blue:#62a0ff;--blue-soft:rgba(98,160,255,.14);--green:#54d48a;
  --success-soft:rgba(84,212,138,.14);--green-soft:var(--success-soft);--warning-soft:rgba(255,194,102,.14);
  --amber:#ffc266;--urgent:#ffc266;--amber-soft:var(--warning-soft);--danger-soft:rgba(255,118,118,.14);
  --shadow:0 18px 34px -22px rgba(0,0,0,.72);--shadow-card:0 18px 34px -22px rgba(0,0,0,.72);
  --shadow-popover:0 24px 54px -22px rgba(0,0,0,.86);
}
html[data-theme="dark"] body,html[data-theme="dark"] .app-main,html[data-theme="dark"] .content{background:#0b1117;color:#edf4fa}
html[data-theme="dark"] .sidebar{background:#081016;border-color:#1d2a35}
html[data-theme="dark"] .topbar{background:rgba(11,17,23,.94);border-color:#22313f;backdrop-filter:blur(16px)}
html[data-theme="dark"] :is(.panel,.market-card,.request-card,.compact-item,.offer-item,.meta-box,.table-scroll,.user-menu,.notification-panel,.onboarding-dialog,.profile-gate-dialog,.request-detail-card,.saved-search,.dashboard-processes,.dashboard-market,.dashboard-events,.comparison-matrix-card,.deal-contact-card,.request-items-detail,.request-conditions-detail){background:#121b24;color:#edf4fa;border-color:#2a3b4c;box-shadow:var(--shadow-card)}
html[data-theme="dark"] :is(.market-card:hover,.request-card:hover,.compact-item:hover,.notification-panel>a:hover){background:#182431;border-color:#456078}
html[data-theme="dark"] :is(input,select,textarea,.global-search input){background:#0f1820;color:#edf4fa;border-color:#34495a;caret-color:#80b3ff}
html[data-theme="dark"] :is(input,textarea)::placeholder{color:#7f91a1}
html[data-theme="dark"] :is(input,select,textarea):hover{border-color:#526a7d}
html[data-theme="dark"] :is(input,select,textarea):focus{border-color:#62a0ff;box-shadow:0 0 0 3px rgba(98,160,255,.22)}
html[data-theme="dark"] :is(label,.muted,.published-line,.field-note,.breadcrumb,.notification-panel>a span,.notification-panel-empty,.timeline-event small){color:#b7c4d1}
html[data-theme="dark"] :is(h1,h2,h3,h4,strong,.request-title,.comparison-matrix-table th){color:#edf4fa}
html[data-theme="dark"] :is(.btn,.topbar-icon,.filter-chips button){background:#182431;color:#dce7ef;border-color:#34495a}
html[data-theme="dark"] :is(.btn,.topbar-icon,.filter-chips button):hover{background:#223242;color:#fff;border-color:#526a7d}
html[data-theme="dark"] :is(.btn-primary,.comparison-filter-button.active){background:#1559a6;color:#fff;border-color:#62a0ff}
html[data-theme="dark"] :is(.btn-primary,.comparison-filter-button.active):hover{background:#216bc0}
html[data-theme="dark"] .btn-ghost{background:transparent;color:#b9d3ff}
html[data-theme="dark"] :is(.tag,.counter,.status-text,.comparison-badge){background:#1b2936;color:#cbd8e2;border-color:#34495a}
html[data-theme="dark"] :is(.status-accepted,.comparison-badge.is-success){background:rgba(84,212,138,.14);color:#75e5a4;border-color:rgba(84,212,138,.36)}
html[data-theme="dark"] :is(.urgent-mark,.comparison-badge.is-warning){background:rgba(255,194,102,.14);color:#ffd28a;border-color:rgba(255,194,102,.36)}
html[data-theme="dark"] :is(.status-declined,.danger,.legal-warning){background:rgba(255,118,118,.14);color:#ff9b9b;border-color:rgba(255,118,118,.36)}
html[data-theme="dark"] :is(.favorite-button.is-favorite,.trust-strip){background:#172d25;color:#9ce8bb;border-color:#35644f}
html[data-theme="dark"] .trust-strip strong{color:#75e5a4}html[data-theme="dark"] .trust-strip span{color:#c0d5c9}
html[data-theme="dark"] :is(table,th,td){border-color:#2a3b4c}html[data-theme="dark"] tbody tr:hover{background:#182431}
html[data-theme="dark"] :is(dialog,.onboarding-card,.profile-gate-card){background:#121b24;color:#edf4fa}
html[data-theme="dark"] dialog::backdrop{background:rgba(2,6,10,.76)}
html[data-theme="dark"] ::selection{background:#2e6cb3;color:#fff}
html[data-theme="dark"] *{scrollbar-color:#40566a #0b1117}

@media(max-width:760px){.topbar-actions{gap:6px}.topbar-icon{height:38px}.topbar-text-action{min-width:0;padding:0 9px;font-size:11px}.topbar-actions>[data-onboarding-open]{display:none}.notification-panel{position:fixed;right:14px;top:72px}.trust-strip{align-items:flex-start;flex-direction:column}.onboarding-card{padding:26px 22px}}

/* Motion layer: restrained, product-focused, and reduced-motion safe */
@keyframes view-reveal{
  from{opacity:0;transform:translateY(8px)}
  to{opacity:1;transform:translateY(0)}
}

@keyframes card-reveal{
  from{opacity:0;transform:translateY(12px) scale(.995)}
  to{opacity:1;transform:translateY(0) scale(1)}
}

@keyframes hero-light-drift{
  0%{background-position:0% 50%}
  100%{background-position:100% 50%}
}

@keyframes status-breathe{
  0%,100%{box-shadow:0 0 0 0 rgba(18,99,66,0)}
  50%{box-shadow:0 0 0 5px rgba(18,99,66,.07)}
}

.view.active{
  animation:view-reveal .32s cubic-bezier(.2,.7,.2,1) both;
}

.market-card{
  animation:card-reveal .34s cubic-bezier(.2,.7,.2,1) both;
  animation-delay:calc(var(--motion-index, 0) * 42ms);
  translate:0 0;
  transition:translate .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.market-card:hover,
.market-card:focus-within{
  translate:0 -3px;
  border-color:rgba(20,88,176,.3);
  box-shadow:0 28px 42px -25px rgba(18,28,24,.42);
}

.dashboard-hero-card{
  background-size:180% 180%;
  animation:hero-light-drift 12s ease-in-out infinite alternate;
}

.dashboard-hero-card .btn,
.market-card-actions .btn,
.wizard-actions .btn,
.form-actions .btn,
.mobile-bottom-nav a{
  transition:transform .16s ease,box-shadow .2s ease,background-color .2s ease,color .2s ease;
}

.dashboard-hero-card .btn:hover,
.market-card-actions .btn:hover,
.wizard-actions .btn:hover,
.form-actions .btn:hover{
  transform:translateY(-2px);
}

.dashboard-hero-card .btn:active,
.market-card-actions .btn:active,
.wizard-actions .btn:active,
.form-actions .btn:active,
.mobile-bottom-nav a:active{
  transform:translateY(1px) scale(.985);
}

.profile-verification-badge:not(.is-pending){
  animation:status-breathe 4.8s ease-in-out infinite;
}

.market-pagination:not([hidden]),
.empty-rich{
  animation:view-reveal .28s ease both;
}

.toast.show{
  animation:card-reveal .24s cubic-bezier(.2,.8,.2,1) both;
}

@media (max-width:760px){
  .market-card:hover,
  .market-card:focus-within{
    translate:0 0;
  }
}

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

/* 2026-07 local UX audit improvements */
.market-pagination{
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.market-pagination[hidden]{
  display: none;
}

.market-pagination p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.market-pagination.is-complete{
  padding-bottom: 0;
}

.profile-verification-badge{
  display: inline-flex;
  min-height: 38px;
  padding: 0 14px;
  align-items: center;
  color: #126342;
  background: #eaf8f1;
  border: 1px solid #b8e2ce;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.profile-verification-badge[hidden]{
  display: none;
}

.profile-verification-badge.is-pending{
  color: #795209;
  background: #fff7df;
  border-color: #eed89f;
}

.profile-reset-action{
  margin-left: auto;
  color: var(--muted);
  background: transparent;
}

.request-wizard{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1200px;
  margin-inline: auto;
}

.request-title-step,
.request-contact-step,
.request-comment-step,
.request-items-step,
.wizard-actions{
  grid-column: 1 / -1;
}

.request-title-step label{
  display: grid;
  gap: 8px;
}

.request-title-label{
  color: var(--text);
  font-size: 15px;
  font-weight: 850;
}

.request-contact-step{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-right: 0;
  border-right: 0;
}

.request-wizard label,
.profile-form label,
.filters label,
.field-note,
.market-card-meta small{
  font-size: 13px;
}

.chat-layout.chat-layout-empty{
  grid-template-columns: minmax(0, 1fr);
}

.chat-layout.chat-layout-empty [data-chat-list]{
  display: none;
}

.chat-layout.chat-layout-empty .chat-panel{
  display: grid;
  min-height: 360px;
  place-items: center;
}

.chat-layout.chat-layout-empty .empty-rich{
  max-width: 520px;
  margin-inline: auto;
}

@media (max-width: 760px){
  .request-wizard,
  .request-contact-step{
    grid-template-columns: minmax(0, 1fr);
  }

  .market-pagination,
  .form-actions{
    align-items: stretch;
    flex-direction: column;
  }

  .profile-reset-action{
    margin-left: 0;
  }
}

.market-card-actions{
  align-items: flex-end;
}

.market-card-actions .btn-muted{
  width: 126px;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.market-card-actions [data-report-request]{
  order: 3;
  margin-top: 8px;
  align-self: flex-end;
  opacity: 0.78;
}

.request-offers-workspace.my-offer-workspace{
  margin-top: 18px;
}

.outgoing-offer-list{
  display: grid;
  gap: 14px;
}

.outgoing-offer-card{
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.outgoing-offer-summary{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 18px;
  color: inherit;
  background: #fff;
  border: 0;
  text-align: left;
  cursor: pointer;
}

.outgoing-offer-summary::after{
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid #667386;
  border-bottom: 2px solid #667386;
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.outgoing-offer-card.is-expanded .outgoing-offer-summary::after{
  transform: rotate(225deg);
}

.outgoing-offer-summary-main{
  display: grid;
  gap: 4px;
  min-width: 0;
}

.outgoing-offer-summary-main strong{
  color: var(--text-main);
  font-size: 18px;
  font-weight: 780;
  line-height: 1.2;
}

.outgoing-offer-summary-main span:last-child{
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 650;
}

.outgoing-offer-summary-side{
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.outgoing-offer-body{
  display: grid;
  gap: 16px;
  padding: 0 18px 18px;
  border-top: 1px solid var(--border-soft);
}

.outgoing-request-section,
.outgoing-my-offer-section{
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.outgoing-my-offer-section{
  border-top: 1px solid var(--border-soft);
}

.outgoing-section-head{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.outgoing-section-head h3{
  margin: 0;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 760;
  line-height: 1.18;
}

.outgoing-my-offer-section .offer-proposal{
  padding-bottom: 0;
  border-bottom: 0;
}

/* Final UI polish overrides: keep these after page-specific styles. */
.nav-badge,
.mobile-nav-badge{
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1458b0;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(5, 31, 77, 0.18);
  font-size: 12px;
  font-weight: 800;
}

.market-card .tag,
.compact-item .tag,
.request-card .tag,
.detail-hero .tag{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  color: #315f9f;
  background: rgba(20, 88, 176, 0.1);
  border: 1px solid rgba(20, 88, 176, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: 0;
}

.market-card .tag::before,
.market-card .tag::after,
.compact-item .tag::before,
.compact-item .tag::after,
.request-card .tag::before,
.request-card .tag::after,
.detail-hero .tag::before,
.detail-hero .tag::after{
  display: none;
  content: none;
}

.market-card .status-urgent,
.compact-item .status-urgent,
.request-card .status-urgent,
.detail-hero .status-urgent{
  color: #9a5a05;
  background: rgba(217, 138, 18, 0.12);
  border-color: rgba(217, 138, 18, 0.24);
}

.status-text.status-accepted,
.request-card .status-accepted,
.detail-hero .status-accepted{
  color: #15724f;
  background: rgba(28, 154, 108, 0.12);
  border: 1px solid rgba(28, 154, 108, 0.22);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-text.status-discussing{
  color: #315f9f;
  background: rgba(20, 88, 176, 0.1);
  border: 1px solid rgba(20, 88, 176, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.status-text.status-declined{
  color: #8a3f33;
  background: rgba(191, 87, 64, 0.1);
  border: 1px solid rgba(191, 87, 64, 0.18);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.request-offer-notice{
  display: grid;
  gap: 2px;
  min-width: 112px;
  padding: 8px 11px;
  color: #315f9f;
  background: rgba(20, 88, 176, 0.09);
  border: 1px solid rgba(20, 88, 176, 0.16);
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.request-offer-notice strong{
  color: #174a92;
  font-size: 13px;
  font-weight: 800;
}

.request-offer-notice span{
  color: #69756f;
  font-size: 11px;
  line-height: 1.2;
}

.request-offer-notice.is-new{
  color: #0f6c55;
  background: rgba(28, 154, 108, 0.12);
  border-color: rgba(28, 154, 108, 0.24);
}

.request-offer-notice.is-new strong{
  color: #0f6c55;
}

.request-offer-notice.is-empty{
  color: #69756f;
  background: rgba(19, 28, 34, 0.04);
  border-color: rgba(19, 28, 34, 0.08);
}

.notification-stack{
  top: auto;
  right: 16px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  max-height: none;
  overflow: visible;
  pointer-events: none;
}

.app-notification{
  width: min(300px, calc(100vw - 32px));
  padding: 11px 12px;
  border-radius: 16px;
  pointer-events: auto;
}

.app-notification a span{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notification-more{
  justify-self: end;
  width: fit-content;
  padding: 6px 10px;
  color: #315f9f;
  background: #fff;
  border: 1px solid rgba(20, 88, 176, 0.16);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(19, 28, 34, 0.12);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  pointer-events: auto;
}

.request-detail-card,
.request-offers-workspace,
.offer-card-pro,
.detail-panel,
.detail-description{
  min-width: 0;
  overflow: hidden;
}

.request-detail-card .request-items-table,
.request-detail-card .comparison-scroll,
.request-offers-workspace .comparison-scroll,
.offer-position-table{
  max-width: 100%;
  overflow-x: auto;
}

.request-offers-workspace .offer-actions,
.request-card .card-header > .tag-row{
  flex-wrap: wrap;
}

.request-card .card-header > div:first-child .tag-row{
  margin-bottom: 9px;
}

.request-offers-workspace .offer-actions .btn,
.request-card .card-header .btn{
  white-space: normal;
}

.offer-card-contact-open{
  border-color: rgba(28, 154, 108, 0.28);
  box-shadow: 0 16px 34px rgba(21, 114, 79, 0.08);
}

.requested-position-list{
  padding: 12px;
  background: rgba(20, 88, 176, 0.045);
  border: 1px solid rgba(20, 88, 176, 0.1);
  border-radius: 14px;
}

.requested-position-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.requested-position{
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid rgba(19, 28, 34, 0.08);
  border-radius: 12px;
}

.requested-position strong{
  color: #141c22;
  font-size: 13px;
}

.requested-position span{
  color: #69756f;
  font-size: 12px;
  line-height: 1.25;
}

.close-reason{
  color: #315f9f;
  font-weight: 650;
}

.tag-row > .tag,
.market-card .tag,
.compact-item .tag,
.request-card .tag,
.detail-hero .tag{
  min-height: 24px !important;
  padding: 3px 9px !important;
  color: #315f9f !important;
  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.2 !important;
}

.request-detail-card .detail-hero{
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-top: 0;
}

.request-detail-card .detail-hero > .offer-actions{
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  align-items: center;
  justify-content: flex-end;
  max-width: min(58%, 560px);
  min-width: 0;
  padding-top: 0;
}

.detail-report-row{
  display: flex;
  justify-content: flex-end;
}

.request-detail-card .detail-hero > div:first-child > .tag-row{
  padding-right: min(58%, 560px);
}

.request-summary-grid-top{
  margin-top: 14px;
  padding-top: 0;
  border-top: 0;
  width: 100%;
}

.request-summary-grid-top .meta-box{
  border-color: rgba(20, 88, 176, 0.1);
  box-shadow: none;
}

.detail-published-bottom{
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}

.close-request-menu{
  position: relative;
  display: inline-flex;
}

.close-request-popover{
  position: fixed;
  z-index: 1300;
  top: var(--close-menu-top, 0);
  left: var(--close-menu-left, 0);
  display: grid;
  width: var(--close-menu-width, 280px);
  padding: 8px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-popover);
}

.close-request-popover[hidden]{
  display: none;
}

.close-request-popover button{
  min-height: 36px;
  padding: 8px 10px;
  color: var(--text-main);
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-align: left;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}

.close-request-popover button:hover{
  background: rgba(20, 88, 176, 0.08);
}

.close-request-popover button.danger{
  color: #9f3d31;
}

.status-text.status-accepted,
.request-card .status-accepted,
.detail-hero .status-accepted{
  min-height: 24px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.offer-card-head .status-text.status-accepted,
.offer-card-head .status-text.status-discussing,
.offer-card-head .status-text.status-declined{
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  line-height: 1.2;
  align-self: start;
}

.supplier-contact-strip{
  margin-top: 12px;
}

.supplier-contact-strip .deal-contact-card{
  display: grid;
  grid-template-columns: minmax(130px, 0.7fr) repeat(4, minmax(130px, 1fr));
  gap: 8px 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(20, 88, 176, 0.045);
  border: 1px solid rgba(20, 88, 176, 0.14);
  border-radius: 14px;
  box-shadow: none;
}

.chat-contact-strip{
  margin-top: 10px;
}

.chat-contact-strip .deal-contact-card{
  grid-template-columns: minmax(150px, 0.8fr) repeat(4, minmax(120px, 1fr));
}

.supplier-contact-strip .deal-contact-card > strong{
  font-size: 12px;
  color: #315f9f;
}

.supplier-contact-strip .deal-contact-card span{
  min-width: 0;
  color: #141c22;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.supplier-contact-strip .deal-contact-card b{
  display: block;
  margin-bottom: 2px;
  color: #69756f;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.request-wizard{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.request-wizard .wizard-step{
  min-height: 0;
  align-self: start;
}

.request-wizard label{
  display: grid;
  grid-template-rows: auto minmax(44px, auto);
  align-content: start;
  min-height: 72px;
}

.request-wizard .checkbox-field{
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding-top: 0;
}

.request-wizard .checkbox-field input{
  flex: 0 0 auto;
}

.request-wizard input,
.request-wizard select{
  min-height: 44px;
}

.request-wizard input[type="file"]{
  display: flex;
  align-items: center;
  min-height: 44px;
  height: 44px;
  width: 100%;
  padding: 0 11px;
  line-height: 44px;
}

.request-wizard textarea{
  min-height: 132px;
}

.fieldset-subhead{
  margin-top: 8px;
  padding-top: 12px;
  color: var(--text-main);
  border-top: 1px solid var(--border-soft);
  font-size: 15px;
  font-weight: 800;
}

.request-title-step,
.request-items-step,
.wizard-actions{
  grid-column: 1 / -1;
}

.wizard-step[data-request-step="3"]{
  grid-column: auto;
  grid-template-columns: minmax(0, 1fr);
}

.wizard-step[data-request-step="3"] legend,
.wizard-step[data-request-step="3"] .field-note,
.wizard-step[data-request-step="3"] .span-2{
  grid-column: 1;
}

.request-comment-step{
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
}

.request-comment-step legend{
  grid-column: 1 / -1;
}

.request-comment-step textarea{
  min-height: 148px;
}

.request-items-step{
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.request-items-step .field-note{
  grid-column: 1;
}

.request-items-actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.request-add-position-button{
  justify-self: end;
  margin: 0;
}

.offer-form{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.offer-dialog{
  width: min(1480px, calc(100vw - 24px));
}

.offer-form h2,
.offer-position-section,
.offer-message-field,
.offer-form > .btn-primary{
  grid-column: 1 / -1;
}

.offer-form-section{
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  background: rgba(20, 88, 176, 0.035);
  border: 1px solid rgba(20, 88, 176, 0.1);
  border-radius: 14px;
}

.offer-form-section h3{
  margin: 0;
  font-size: 16px;
}

.offer-form input,
.offer-form select{
  min-height: 42px;
}

.offer-form input[type="file"]{
  display: flex;
  align-items: center;
  min-height: 42px;
  height: 42px;
  width: 100%;
  padding: 0 11px;
  line-height: 42px;
}

.offer-form textarea{
  min-height: 120px;
}

.offer-position-head p{
  display: none;
}

.offer-position-cards{
  display: grid;
  gap: 10px;
}

.offer-position-card{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.36fr);
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid rgba(20, 88, 176, 0.12);
  border-radius: 12px;
  box-shadow: 0 12px 26px -24px rgba(15, 23, 42, 0.32);
}

.offer-position-request{
  min-width: 0;
}

.offer-position-title{
  display: block;
  margin-bottom: 12px;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 720;
  line-height: 1.25;
}

.offer-position-specs{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 0;
}

.offer-position-specs div{
  min-width: 0;
  padding: 9px 10px;
  background: #f8fafc;
  border: 1px solid rgba(20, 88, 176, 0.09);
  border-radius: 8px;
}

.offer-position-specs dt,
.offer-position-total span{
  margin: 0 0 5px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 650;
  line-height: 1.15;
}

.offer-position-specs dd{
  margin: 0;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 690;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.offer-position-spec-primary{
  background: rgba(20, 88, 176, 0.07) !important;
  border-color: rgba(20, 88, 176, 0.16) !important;
}

.offer-position-spec-primary dd{
  color: var(--brand-blue);
  font-size: 15px;
  font-weight: 760;
}

.offer-position-response{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-content: start;
  padding: 12px;
  background: rgba(20, 88, 176, 0.045);
  border: 1px solid rgba(20, 88, 176, 0.1);
  border-radius: 10px;
}

.offer-position-response label{
  min-width: 0;
}

.offer-position-total{
  grid-column: 1 / -1;
  min-height: 42px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid rgba(20, 88, 176, 0.11);
  border-radius: 8px;
}

.offer-position-total strong{
  display: block;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.2;
}

.chat-card{
  grid-template-columns: minmax(0, 1fr) auto;
}

.chat-card-kicker{
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}

.chat-card .chat-card-kicker .tag{
  min-height: 22px !important;
  padding: 2px 8px !important;
  font-size: 11px !important;
}

.calculator-view{
  min-height: calc(100vh - 130px);
}

.calculator-mobile-notice{
  display: none;
}

.calculator-focus-mode .content{
  padding: 14px 18px 28px;
}

.app-shell{
  transition:grid-template-columns .38s cubic-bezier(.22,.8,.24,1);
}

.calculator-focus-mode .app-shell{
  grid-template-columns: 76px minmax(0, 1fr);
}

.calculator-focus-mode.calculator-sidebar-open .app-shell{
  grid-template-columns: 248px minmax(0, 1fr);
}

.calculator-focus-mode .sidebar{
  z-index: 30;
  width: 100%;
  overflow: hidden;
  transition:
    padding .34s cubic-bezier(.22,.8,.24,1),
    box-shadow .34s ease;
}

.calculator-focus-mode .sidebar:hover,
.calculator-focus-mode .sidebar:focus-within,
.calculator-focus-mode .sidebar.sidebar-expanded{
  box-shadow: 16px 0 34px rgba(7, 17, 31, 0.22);
}

.calculator-focus-mode .sidebar.sidebar-expanded .side-nav a{
  width: 212px;
  max-width: 212px;
}

.calculator-focus-mode .sidebar.sidebar-expanded .side-nav,
.calculator-focus-mode .sidebar.sidebar-expanded .nav-group{
  width: 100%;
  min-width: 0;
}

.calculator-focus-mode .sidebar .brand{
  width: 100%;
  min-width: 0;
}

.calculator-focus-mode .sidebar .brand span:not(.brand-mark){
  max-width:180px;
  white-space: nowrap;
}

.calculator-focus-mode .side-nav a > span:first-child{
  min-width: 0;
  white-space: normal;
  line-height: 1.25;
  transition:
    width .32s cubic-bezier(.22,.8,.24,1),
    gap .24s ease,
    font-size .22s ease;
}

.calculator-focus-mode .side-nav a > span:first-child .nav-icon{
  flex: 0 0 auto;
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .brand span:not(.brand-mark),
.calculator-focus-mode .sidebar:not(.sidebar-expanded) .side-nav a > span:first-child{
  width: 42px;
  gap: 0;
  overflow: hidden;
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .brand span:not(.brand-mark){
  width:0;
  max-width:0;
  opacity:0;
  overflow:hidden;
  transform:translateX(-8px);
  visibility:hidden;
}

.calculator-focus-mode .sidebar .brand span:not(.brand-mark){
  transition:
    max-width .3s cubic-bezier(.22,.8,.24,1),
    opacity .2s ease,
    transform .3s cubic-bezier(.22,.8,.24,1);
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .side-nav a{
  justify-content: center;
  padding: 0;
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .side-nav a > span:first-child{
  justify-content: center;
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .side-nav a > span:first-child::after{
  content: "";
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .side-nav a > span:first-child{
  font-size: 0;
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .nav-icon{
  margin: 0;
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .nav-badge{
  position: absolute;
  top: 4px;
  right: 6px;
  min-width: 18px;
  min-height: 18px;
  padding: 0 5px;
  font-size: 10px;
}

.calculator-focus-mode .side-nav a{
  position: relative;
}

.calculator-focus-mode .sidebar:not(.sidebar-expanded) .sidebar-card{
  display: none;
}

.calculator-focus-mode .sidebar.sidebar-expanded .sidebar-card{
  display: block;
  animation:calculator-sidebar-card-in .24s .12s ease both;
}

@keyframes calculator-sidebar-card-in{
  from{opacity:0;transform:translateX(-8px)}
  to{opacity:1;transform:translateX(0)}
}

.calculator-focus-mode .calculator-frame{
  min-height: 1220px;
  height: 1220px;
}

.calculator-frame{
  display: block;
  width: 100%;
  min-height: 1180px;
  height: 1180px;
  border: 1px solid rgba(20, 88, 176, 0.08);
  border-radius: 10px;
  background: #f3f6fa;
  box-shadow: none;
}

@media (max-width: 1080px){
  .request-wizard{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .offer-position-card{
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-position-specs{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .request-publication-step{
    grid-column: 1 / -1;
  }

  .supplier-contact-strip .deal-contact-card{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculator-frame{
    min-height: 1280px;
    height: 1280px;
    border-radius: 12px;
  }
}

@media (max-width: 760px){
  .calculator-focus-mode .app-shell{
    grid-template-columns: 1fr;
  }

  .calculator-focus-mode .sidebar,
  .calculator-focus-mode .sidebar:hover,
  .calculator-focus-mode .sidebar:focus-within{
    width: auto;
  }

  .calculator-view{
    min-height: auto;
  }

  .calculator-mobile-notice{
    display: grid;
    gap: 10px;
    padding: 22px;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
  }

  .calculator-mobile-notice strong{
    font-size: 22px;
    line-height: 1.15;
  }

  .calculator-mobile-notice span{
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
  }

  .calculator-frame{
    display: none;
  }
}

@media (max-width: 760px){
  .request-wizard,
  .request-items-step{
    grid-template-columns: minmax(0, 1fr);
  }

  .request-title-step,
  .request-contact-step,
  .request-publication-step,
  .request-items-step,
  .wizard-actions{
    grid-column: 1;
  }

  .request-detail-card .detail-hero{
    position: static;
    grid-template-columns: minmax(0, 1fr);
  }

  .request-detail-card .detail-hero > .offer-actions{
    position: static;
    transform: none;
    max-width: none;
    justify-content: flex-start;
  }

  .request-detail-card .detail-hero > div:first-child > .tag-row{
    padding-right: 0;
  }

  .supplier-contact-strip .deal-contact-card{
    grid-template-columns: minmax(0, 1fr);
  }

  .offer-position-specs,
  .offer-position-response{
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Final cascade: audited workspace layout */
.request-wizard{
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1200px;
  margin-inline: auto;
}

.request-title-step,
.request-contact-step,
.request-comment-step,
.request-items-step,
.wizard-actions,
.wizard-step[data-request-step="3"]{
  grid-column: 1 / -1;
}

.request-title-step label{
  grid-template-rows: auto auto auto;
  min-height: 0;
}

.request-contact-step,
.wizard-step[data-request-step="3"]{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-right: 0;
  border-right: 0;
}

@media (max-width: 760px){
  .request-wizard,
  .request-contact-step,
  .wizard-step[data-request-step="3"]{
    grid-template-columns: minmax(0, 1fr);
  }

  .request-title-step,
  .request-contact-step,
  .request-comment-step,
  .request-items-step,
  .wizard-actions,
  .wizard-step[data-request-step="3"]{
    grid-column: 1;
  }
}

/* Keep screenshot-driven dark corrections last in the cascade. */
html[data-theme="dark"] .chat-panel,
html[data-theme="dark"] .chat-layout.chat-layout-empty .chat-panel{background:#0f1820;border-color:#2a3b4c}
html[data-theme="dark"] .chat-layout.chat-layout-empty .empty-rich{background:#182431;color:#edf4fa;border:1px solid #34495a;box-shadow:0 18px 34px -22px rgba(0,0,0,.72)}
html[data-theme="dark"] :is(.incoming-company-card,.chat-card,.deal-room,.incoming-chat-workspace){background:#121b24;color:#edf4fa;border-color:#2a3b4c}
html[data-theme="dark"] .market-card-actions .btn:not(.btn-primary):not([data-report-request]),
html[data-theme="dark"] .market-card-actions .favorite-button,
html[data-theme="dark"] .market-card-actions .favorite-button:hover{color:#b9d3ff;background:#182431;border-color:#456078;box-shadow:none}
html[data-theme="dark"] .market-card-actions .favorite-button.is-favorite,
html[data-theme="dark"] .market-card-actions .favorite-button.is-favorite:hover{color:#9ce8bb;background:#172d25;border-color:#35644f}
html[data-theme="dark"] .market-card-actions [data-report-request],
html[data-theme="dark"] .market-card-actions [data-report-request]:hover{color:#aebbc6;background:transparent;border-color:#405467}
html[data-theme="dark"] :is(.market-card .tag,.detail-hero .tag){color:#8cbdff;background:rgba(98,160,255,.14);border-color:rgba(98,160,255,.38)}
html[data-theme="dark"] .filter-chips button{color:#b7c4d1;background:transparent;border-color:transparent}
html[data-theme="dark"] .filter-chips button:hover{color:#edf4fa;background:#1b2936}
html[data-theme="dark"] .filter-chips button.active{color:#edf4fa;background:#182431}
html[data-theme="dark"] .filter-chips button.active::after{background:#62a0ff}
html[data-theme="dark"] .profile-verification-badge{color:#9ce8bb;background:#172d25;border-color:#35644f}

/* Dashboard dark state from supplied screenshot. */
html[data-theme="dark"] :is(.market-board,.market-insights){color:#edf4fa}
html[data-theme="dark"] .market-insights{border-left-color:#34495a}
html[data-theme="dark"] :is(.market-insights-title,.market-metric span,.donut-legend-item span){color:#b7c4d1}
html[data-theme="dark"] :is(.market-metric strong,.donut-legend-item strong){color:#edf4fa}
html[data-theme="dark"] .market-metric-grid{background:transparent;border-color:#2a3b4c;box-shadow:none}
html[data-theme="dark"] .market-metric{background:transparent;border-bottom-color:#2a3b4c}
html[data-theme="dark"] .market-metric:hover{background:#182431}
html[data-theme="dark"] .market-donut-center{background:#121b24;border-color:#2a3b4c;box-shadow:0 0 0 8px #121b24}
html[data-theme="dark"] .market-donut-center strong{color:#edf4fa}
html[data-theme="dark"] .market-donut-center span{color:#9fb0be}
html[data-theme="dark"] .market-donut-base{stroke:#273746}
html[data-theme="dark"] .donut-legend-item{border-bottom-color:#2a3b4c}
html[data-theme="dark"] .dashboard-event-list{background:#121b24;border:1px solid #2a3b4c;box-shadow:none}
html[data-theme="dark"] .dashboard-event{color:#edf4fa;background:#121b24;border-bottom-color:#2a3b4c}
html[data-theme="dark"] .dashboard-event:hover{background:#182431}
html[data-theme="dark"] .dashboard-event strong{color:#dce7ef}
html[data-theme="dark"] .dashboard-event span{color:#ff9292}
html[data-theme="dark"] .dashboard-event small{color:#9fb0be}
html[data-theme="dark"] .dashboard-events .panel-head p{color:#9fb0be}

/* Request form dark state from supplied screenshot. */
html[data-theme="dark"] .request-wizard .wizard-step:not(.request-title-step){
  color:#edf4fa;
  background:#182431;
  border-color:#34495a;
  box-shadow:0 18px 34px -22px rgba(0,0,0,.72);
}
html[data-theme="dark"] .request-wizard .request-title-step{background:transparent;border-color:#34495a}
html[data-theme="dark"] .request-wizard .wizard-step legend,
html[data-theme="dark"] .request-title-label,
html[data-theme="dark"] .fieldset-subhead{color:#edf4fa}
html[data-theme="dark"] .fieldset-subhead{border-color:#34495a}
html[data-theme="dark"] .request-wizard label,
html[data-theme="dark"] .request-wizard .field-label{color:#b7c4d1}
html[data-theme="dark"] .request-wizard :is(.field-note,.optional){color:#8fa0b0}
html[data-theme="dark"] .request-wizard input[type="file"]{color:#b7c4d1;background:#0f1820;border-color:#34495a}
html[data-theme="dark"] .request-wizard input[type="file"]::file-selector-button{height:32px;margin-right:10px;color:#dce7ef;background:#263746;border:1px solid #456078;border-radius:6px}
html[data-theme="dark"] .request-wizard .checkbox-field{color:#b7c4d1}
html[data-theme="dark"] .request-wizard input[type="checkbox"]{accent-color:#62a0ff}
html[data-theme="dark"] .request-items-table{background:#0f1820;border-color:#34495a;box-shadow:none}
html[data-theme="dark"] .request-items-table :is(th,td){color:#dce7ef;background:#121b24;border-color:#2a3b4c}
html[data-theme="dark"] .wizard-actions{border-color:#34495a}
html[data-theme="dark"] .calculator-frame{border-color:#263746;background:#0b1117}

/* Mobile application pass */
@media (max-width:760px){
  html{scroll-padding-bottom:88px}
  body{overflow-x:hidden}
  .app-main{min-width:0}
  .content{padding:12px 12px calc(92px + env(safe-area-inset-bottom))}
  .topbar{position:sticky;top:0;z-index:30;display:block;padding:10px 12px;background:rgba(243,246,250,.96);backdrop-filter:blur(14px)}
  .topbar>div:first-child{display:none}
  .topbar-actions{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:7px;align-items:center}
  .global-search{grid-column:1;min-width:0}
  .global-search input{width:100%;min-height:42px;padding-inline:12px;font-size:16px}
  .topbar-actions>[data-theme-toggle]{display:none}
  .topbar-actions>[data-onboarding-open]{display:none}
  .notification-center{grid-column:2}
  .topbar-text-action{min-height:42px;padding-inline:10px}
  .user-pill{grid-column:3}
  .user-pill summary{width:42px;height:42px;padding:0;font-size:0}
  .user-pill summary::before{content:"П";display:grid;width:100%;height:100%;place-items:center;font-size:14px;font-weight:900}
  .panel,.board-panel,.form-panel{padding:14px}
  .layout-grid{display:block}
  .filters{position:fixed;z-index:70;inset:0 0 0 auto;width:min(92vw,360px);max-height:100dvh;overflow:auto;padding:18px;border-radius:0;transform:translateX(105%);transition:transform .22s ease}
  body.filters-open .filters{transform:translateX(0)}
  body.filters-open::after{content:"";position:fixed;z-index:65;inset:0;background:rgba(5,12,18,.58)}
  .board-panel{margin:0}
  .market-card{padding:15px}
  .market-card h3{font-size:18px;line-height:1.22}
  .market-card-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .market-card-meta span{min-width:0}
  .market-card-actions{display:grid;grid-template-columns:1fr 1fr;width:100%;align-items:stretch}
  .market-card-actions .btn,.market-card-actions .btn-muted{width:100%;min-height:44px}
  .market-card-actions [data-report-request]{grid-column:1/-1;justify-self:start;width:auto}
  .request-wizard .wizard-step:not(.request-title-step){padding:14px}
  .request-title-step input{font-size:17px}
  .request-items-table{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .request-items-table table{min-width:820px}
  .request-detail-card{padding:15px}
  .detail-top .offer-actions{display:grid;grid-template-columns:1fr;width:100%}
  .detail-top .offer-actions .btn{width:100%;min-height:44px}
  .comparison-matrix-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .comparison-matrix-table{min-width:760px}
  .chat-panel{min-height:calc(100dvh - 190px);padding:12px}
  .chat-form{position:sticky;bottom:82px;z-index:5;padding:8px;background:var(--surface);border-top:1px solid var(--border)}
  .mobile-bottom-nav{right:8px;bottom:max(8px,env(safe-area-inset-bottom));left:8px;padding:5px;background:rgba(255,255,255,.97)}
  .mobile-bottom-nav a{min-height:52px}
  .notification-panel{right:8px;left:8px;top:62px;width:auto;max-height:calc(100dvh - 150px)}
  .onboarding-dialog{max-height:calc(100dvh - 20px);overflow:auto}
  .calculator-mobile-notice{display:none}
  .calculator-frame,.calculator-focus-mode .calculator-frame{display:block;width:100%;height:1900px;min-height:1900px;border:0;border-radius:0}
  .calculator-view{margin:-12px}
  html[data-theme="dark"] .topbar{background:rgba(11,17,23,.96)}
  html[data-theme="dark"] .mobile-bottom-nav{background:rgba(18,27,36,.98);border:1px solid #2a3b4c}
  html[data-theme="dark"] .request-table tr{background:#121b24;border-color:#2a3b4c}
}

@media (max-width:390px){
  .content{padding-inline:8px}
  .panel,.board-panel,.form-panel{padding:12px}
  .market-card-meta{grid-template-columns:1fr}
  .market-card-actions{grid-template-columns:1fr}
  .market-card-actions [data-report-request]{grid-column:1}
  .mobile-bottom-nav a{font-size:10px}
  .mobile-bottom-nav svg{width:18px;height:18px}
}

/* Section names already exist inside each workspace; keep the utility bar compact. */
.topbar>div:first-child{display:none}
.topbar{grid-template-columns:minmax(0,1fr);min-height:64px;padding-block:10px}
.topbar-actions{width:100%;justify-content:flex-end}
.global-search{margin-right:auto}
.request-lifetime{display:flex;flex-wrap:wrap;gap:10px 18px;justify-content:space-between;margin-top:14px;padding:11px 13px;color:var(--text-secondary);background:var(--surface-soft);border:1px solid var(--border);font-size:13px}
.request-lifetime strong{color:var(--success)}
.request-lifetime-accepted{color:#176b45;background:#edf9f3;border-color:#a9dec3}.request-lifetime-accepted span{font-weight:800}.request-lifetime-accepted strong{color:#176b45}
html[data-theme="dark"] .request-lifetime{color:#b7c4d1;background:#182431;border-color:#34495a}
html[data-theme="dark"] .request-lifetime-accepted{color:#9ce8bb;background:#172d25;border-color:#35644f}html[data-theme="dark"] .request-lifetime-accepted strong{color:#75e5a4}

/* Request detail dark header — prevent legacy white hero surface. */
html[data-theme="dark"] .request-detail-card .detail-hero{background:#121b24;color:#edf4fa;border-bottom-color:#2a3b4c}
html[data-theme="dark"] .request-detail-card .request-summary-grid-top{background:#121b24}
html[data-theme="dark"] .request-detail-card .request-summary-grid-top .meta-box{background:#182431;border-color:#34495a}
html[data-theme="dark"] .request-detail-card .request-summary-grid-top .meta-box span{color:#9fb0be}
html[data-theme="dark"] .request-detail-card .request-summary-grid-top .meta-box strong{color:#edf4fa}
html[data-theme="dark"] .request-detail-card .request-summary-grid-top .meta-box{background:transparent;border:0;border-left:1px solid #2a3b4c;border-radius:0;box-shadow:none}
html[data-theme="dark"] .request-detail-card .request-summary-grid-top .meta-box:first-child{border-left:0}
html[data-theme="dark"] .request-detail-card .urgent-mark{color:#ffd28a;background:rgba(255,194,102,.14);border-color:rgba(255,194,102,.36)}

/* Offer dialog dark theme — keep the whole commercial form on dark surfaces. */
html[data-theme="dark"] .offer-dialog .offer-form{
  color:#edf4fa;
  background:#101922;
  border:1px solid #34495a;
  box-shadow:0 30px 70px rgba(0,0,0,.58);
}
html[data-theme="dark"] .offer-dialog .offer-form h2,
html[data-theme="dark"] .offer-dialog .offer-form h3,
html[data-theme="dark"] .offer-dialog .offer-position-title{
  color:#edf4fa;
}
html[data-theme="dark"] .offer-dialog .offer-form-section,
html[data-theme="dark"] .offer-dialog .offer-position-card,
html[data-theme="dark"] .offer-dialog .offer-position-response{
  background:#15212c;
  border-color:#2f4354;
  box-shadow:none;
}
html[data-theme="dark"] .offer-dialog .offer-position-specs div,
html[data-theme="dark"] .offer-dialog .offer-position-total{
  background:#1a2835;
  border-color:#34495a;
}
html[data-theme="dark"] .offer-dialog .offer-position-spec-primary{
  background:rgba(80,151,255,.12)!important;
  border-color:rgba(105,170,255,.3)!important;
}
html[data-theme="dark"] .offer-dialog .offer-position-specs dt,
html[data-theme="dark"] .offer-dialog .offer-position-total span,
html[data-theme="dark"] .offer-dialog label{
  color:#9fb0be;
}
html[data-theme="dark"] .offer-dialog .offer-position-specs dd,
html[data-theme="dark"] .offer-dialog .offer-position-total strong{
  color:#edf4fa;
}
html[data-theme="dark"] .offer-dialog .offer-position-spec-primary dd{
  color:#77adff;
}
html[data-theme="dark"] .offer-dialog input,
html[data-theme="dark"] .offer-dialog select,
html[data-theme="dark"] .offer-dialog textarea{
  color:#edf4fa;
  background:#0f1922;
  border-color:#40566a;
}
html[data-theme="dark"] .offer-dialog input::placeholder,
html[data-theme="dark"] .offer-dialog textarea::placeholder{
  color:#8293a3;
}
html[data-theme="dark"] .offer-dialog .close-dialog{
  color:#edf4fa;
  background:#1a2835;
  border-color:#526b80;
}
html[data-theme="dark"] .offer-dialog::backdrop{
  background:rgba(3,8,13,.78);
  backdrop-filter:blur(3px);
}

/* Saved search card dark theme. */
html[data-theme="dark"] .saved-search > button:first-child{
  color:#edf4fa;
  background:#182431;
  border-color:#40566a;
  box-shadow:none;
}
html[data-theme="dark"] .saved-search > button:first-child strong{
  color:#edf4fa;
}
html[data-theme="dark"] .saved-search > button:first-child span{
  color:#aebdca;
}
html[data-theme="dark"] .saved-search > button:first-child:hover{
  background:#223242;
  border-color:#62a0ff;
}
html[data-theme="dark"] .saved-search > button:first-child:focus-visible{
  outline:3px solid rgba(98,160,255,.3);
  outline-offset:2px;
}
html[data-theme="dark"] .saved-search .icon-btn{
  color:#dce7ef;
  background:#182431;
  border-color:#34495a;
}
html[data-theme="dark"] .saved-search .icon-btn:hover{
  color:#fff;
  background:#3a2025;
  border-color:#b95461;
}

/* Comparison matrix dark theme — remove legacy white spreadsheet surfaces. */
html[data-theme="dark"] .comparison-matrix-card,
html[data-theme="dark"] .comparison-matrix-table,
html[data-theme="dark"] .comparison-matrix-table th,
html[data-theme="dark"] .comparison-matrix-table td,
html[data-theme="dark"] .comparison-sticky-col,
html[data-theme="dark"] .comparison-supplier-column-head,
html[data-theme="dark"] .comparison-position-cell,
html[data-theme="dark"] .comparison-supplier-footer{
  color:#dce7ef;
  background:#121b24;
  border-color:#34495a;
}
html[data-theme="dark"] .comparison-matrix-table thead th,
html[data-theme="dark"] .comparison-matrix-table tfoot td,
html[data-theme="dark"] .comparison-matrix-table tfoot th{
  background:#182431;
}
html[data-theme="dark"] .comparison-supplier-column-head strong,
html[data-theme="dark"] .comparison-position-cell strong,
html[data-theme="dark"] .comparison-supplier-footer > strong{
  color:#e8f0f5;
}
html[data-theme="dark"] .comparison-head-terms,
html[data-theme="dark"] .comparison-position-cell span,
html[data-theme="dark"] .comparison-position-cell small,
html[data-theme="dark"] .comparison-supplier-footer > span{
  color:#9fb0be;
}
html[data-theme="dark"] .comparison-matrix-offer{
  color:#dce7ef;
  background:#172d25;
  border-color:#35644f;
}
html[data-theme="dark"] .comparison-matrix-offer.is-best{
  background:#193a2b;
  border-color:#4c906b;
  box-shadow:inset 0 0 0 1px rgba(117,229,164,.12);
}
html[data-theme="dark"] .comparison-matrix-offer.is-partial{
  background:#342817;
  border-color:#765b2c;
}
html[data-theme="dark"] .comparison-matrix-offer span{
  color:#b8c8d3;
}
html[data-theme="dark"] .comparison-matrix-offer strong{
  color:#f0f6f3;
}
html[data-theme="dark"] .comparison-matrix-empty{
  color:#8fa1b0;
  background:#101820;
  border-color:#2a3b4c;
}
html[data-theme="dark"] .comparison-badge.is-info{
  color:#9ac6ff;
  background:rgba(98,160,255,.14);
  border-color:rgba(98,160,255,.36);
}
html[data-theme="dark"] .comparison-cell-badges em{
  color:#75e5a4;
  background:rgba(84,212,138,.14);
  border-color:rgba(84,212,138,.36);
}
html[data-theme="dark"] .comparison-matrix-scroll{
  scrollbar-color:#526a7d #0f1820;
}
html[data-theme="dark"] .toast{
  color:#dce7ef;
  background:#182431;
  border:1px solid #40566a;
  box-shadow:0 22px 52px rgba(0,0,0,.5);
}

/* Persistent in-app notifications use a separate component from the toast. */
html[data-theme="dark"] .app-notification{
  color:#dce7ef;
  background:#182431;
  border-color:#456078;
  box-shadow:0 22px 52px rgba(0,0,0,.52);
}
html[data-theme="dark"] .app-notification a,
html[data-theme="dark"] .app-notification strong{
  color:#edf4fa;
}
html[data-theme="dark"] .app-notification span{
  color:#aebdca;
}
html[data-theme="dark"] .app-notification .icon-btn{
  color:#dce7ef;
  background:#101922;
  border-color:#526b80;
}
html[data-theme="dark"] .app-notification .icon-btn:hover{
  color:#fff;
  background:#3a2025;
  border-color:#b95461;
}
html[data-theme="dark"] .notification-more{
  color:#b9d3ff;
  background:#182431;
  border-color:#456078;
  box-shadow:0 16px 38px rgba(0,0,0,.42);
}

/* My requests summary strip dark theme. */
html[data-theme="dark"] .request-card .meta-grid{
  background:transparent;
  border-top-color:transparent;
}
html[data-theme="dark"] .request-card .meta-box{
  color:#dce7ef;
  background:#182431;
  border-color:#34495a;
}
html[data-theme="dark"] .request-card .meta-box span{
  color:#9fb0be;
}
html[data-theme="dark"] .request-card .meta-box strong{
  color:#edf4fa;
}

.offer-form-error{
  grid-column:1/-1;
  padding:12px 14px;
  color:#9f2525;
  background:#fff1f1;
  border:1px solid #efb4b4;
  border-radius:10px;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
}
.offer-form .field-invalid{
  border-color:#d64545!important;
  box-shadow:0 0 0 3px rgba(214,69,69,.16)!important;
}
html[data-theme="dark"] .offer-form-error{
  color:#ffb0b0;
  background:#351d22;
  border-color:#82404a;
}

/* Request offer workspace dark theme. */
html[data-theme="dark"] .request-offers-workspace{
  color:#dce7ef;
  background:#121b24;
  border-color:#34495a;
  box-shadow:0 18px 34px -22px rgba(0,0,0,.72);
}
html[data-theme="dark"] .request-offers-workspace .panel-head h3{
  color:#edf4fa;
}
html[data-theme="dark"] .request-offers-workspace .detail-offer-tabs{
  border-bottom-color:#34495a;
}
html[data-theme="dark"] .request-offers-workspace .detail-offer-tabs button{
  color:#9fb0be;
  background:transparent;
}
html[data-theme="dark"] .request-offers-workspace .detail-offer-tabs button.active{
  color:#edf4fa;
  border-bottom-color:#62a0ff;
}
html[data-theme="dark"] .request-offers-workspace .detail-offer-tabs span{
  color:#77adff;
}
html[data-theme="dark"] .request-offers-workspace .offer-card-pro{
  color:#dce7ef;
  background:#101922;
  border-color:#34495a;
  box-shadow:none;
}
html[data-theme="dark"] .request-offers-workspace .offer-message{
  color:#c3d0da;
  background:#182431;
  border-left-color:#62a0ff;
  box-shadow:none;
}
html[data-theme="dark"] .offer-card-pro .offer-message{
  color:#c3d0da;
  background:#182431;
  border-left-color:#62a0ff;
  box-shadow:none;
}

/* Outgoing offer accordion dark theme. */
html[data-theme="dark"] .outgoing-offer-card{
  color:#dce7ef;
  background:#121b24;
  border-color:#34495a;
  box-shadow:0 18px 34px -22px rgba(0,0,0,.72);
}
html[data-theme="dark"] .outgoing-offer-summary{
  color:#dce7ef;
  background:#182431;
  transform:none!important;
  translate:none!important;
  transition:none!important;
  animation:none!important;
  filter:none!important;
  opacity:1!important;
  visibility:visible!important;
  backface-visibility:visible;
}
html[data-theme="dark"] .outgoing-offer-summary:hover{
  color:#dce7ef;
  background:#182431;
  transform:none;
  box-shadow:none;
}
html[data-theme="dark"] .outgoing-offer-summary:focus-visible{
  position:relative;
  z-index:1;
  outline:2px solid #62a0ff;
  outline-offset:-3px;
}
html[data-theme="dark"] .outgoing-offer-card.is-expanded .outgoing-offer-summary{
  background:#1b2a37;
}
html[data-theme="dark"] .outgoing-offer-summary-main strong{
  color:#edf4fa;
}
html[data-theme="dark"] .outgoing-offer-summary-main span:last-child,
html[data-theme="dark"] .outgoing-offer-summary-side .date-text,
html[data-theme="dark"] .outgoing-offer-summary .offer-card-label{
  color:#9fb0be;
}
html[data-theme="dark"] .outgoing-offer-summary::after{
  border-color:#9fb0be;
}
html[data-theme="dark"] .outgoing-offer-body,
html[data-theme="dark"] .outgoing-my-offer-section{
  border-color:#34495a;
}

/* Safari stability: keep accordion descendants on one static paint layer. */
html[data-theme="dark"] .outgoing-offer-card,
html[data-theme="dark"] .outgoing-offer-card *{
  animation:none!important;
  filter:none!important;
  -webkit-backface-visibility:visible;
}
html[data-theme="dark"] .outgoing-offer-summary > *{
  pointer-events:none;
  opacity:1!important;
  visibility:visible!important;
}

/* Close request popover dark theme. */
html[data-theme="dark"] .close-request-popover{
  color:#dce7ef;
  background:#182431;
  border-color:#456078;
  box-shadow:0 24px 56px rgba(0,0,0,.58);
}
html[data-theme="dark"] .close-request-popover button{
  color:#dce7ef;
  background:transparent;
}
html[data-theme="dark"] .close-request-popover button:hover{
  color:#fff;
  background:#223242;
}
html[data-theme="dark"] .close-request-popover button.danger{
  color:#ff9b9b;
  background:rgba(255,118,118,.1);
}
html[data-theme="dark"] .close-request-popover button.danger:hover{
  color:#ffc1c1;
  background:rgba(255,118,118,.18);
}

/* Stable request-card action layout. */
.request-card .card-header{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}
.request-card .card-header > .tag-row{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  width:100%;
  margin-left:0;
  justify-content:flex-end;
  align-items:center;
}
.request-card .card-header > .tag-row .btn{
  min-height:40px;
  white-space:nowrap;
}
.request-card .close-request-menu{
  flex:0 0 auto;
}
@media(max-width:900px){
  .request-card .card-header > .tag-row{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .request-card .card-header > .tag-row .btn,
  .request-card .close-request-menu,
  .request-card .close-request-menu .btn{
    width:100%;
  }
}
/* Stable action layout on request detail. */
.request-detail-card .detail-top{
  grid-template-columns:minmax(0,1fr);
  gap:14px;
}
.request-detail-card .detail-top > .offer-actions{
  display:flex;
  flex-wrap:nowrap;
  gap:10px;
  width:100%;
  justify-content:flex-end;
  align-items:center;
}
.request-detail-card .detail-top > .offer-actions .btn{
  min-height:40px;
  white-space:nowrap;
}
.request-detail-card .detail-top > .offer-actions .close-request-menu{
  flex:0 0 auto;
}
@media(max-width:900px){
  .request-detail-card .detail-top > .offer-actions{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .request-detail-card .detail-top > .offer-actions .btn,
  .request-detail-card .detail-top > .offer-actions .close-request-menu,
  .request-detail-card .detail-top > .offer-actions .close-request-menu .btn{
    width:100%;
  }
}
@media(max-width:560px){
  .request-detail-card .detail-top > .offer-actions{
    grid-template-columns:minmax(0,1fr);
  }
}

/* Rounded chat bubbles. */
.chat-message{
  padding:11px 14px;
  border:1px solid var(--border-soft);
  border-radius:16px 16px 16px 5px;
  box-shadow:0 10px 24px -20px rgba(15,23,42,.38);
  line-height:1.45;
}
.chat-message.mine{
  border-radius:16px 16px 5px 16px;
}
.chat-attachments span{
  padding:7px 10px;
  border-radius:10px;
}
html[data-theme="dark"] .chat-message{
  color:#dce7ef;
  background:#182431;
  border-color:#34495a;
  box-shadow:none;
}
html[data-theme="dark"] .chat-message.mine{
  color:#edf4fa;
  background:#17345a;
  border-color:#35649a;
}

/* Keep the report action aligned with the other market-card controls. */
.market-card-actions [data-report-request]{
  width:126px;
  min-height:44px;
  margin-top:0;
  align-self:flex-end;
  justify-content:center;
  text-align:center;
}

@media (max-width:760px){
  .market-card-actions [data-report-request]{
    grid-column:1 / -1;
    width:100%;
    justify-self:stretch;
    align-self:stretch;
  }
}

@media (max-width:390px){
  .market-card-actions [data-report-request]{grid-column:1}
}
html[data-theme="dark"] .chat-attachments span{
  color:#b9d3ff;
  background:#101922;
  border-color:#456078;
}

/* Offer actions popover must follow the active dark theme. */
html[data-theme="dark"] .offer-action-popover{
  color:#dce7ef;
  background:#121b24;
  border-color:#34495a;
  box-shadow:0 22px 50px rgba(0,0,0,.48);
}
html[data-theme="dark"] .offer-action-popover button,
html[data-theme="dark"] .offer-action-popover a{
  color:#dce7ef;
  background:transparent;
}
html[data-theme="dark"] .offer-action-popover button:hover,
html[data-theme="dark"] .offer-action-popover a:hover{
  color:#edf4fa;
  background:#1b2a38;
}
html[data-theme="dark"] .offer-action-popover button:disabled{
  color:#6f7f8d;
  background:transparent;
  opacity:.7;
}
html[data-theme="dark"] .offer-action-popover .danger{
  color:#ffaaa4;
  background:rgba(180,35,24,.12);
}
html[data-theme="dark"] .offer-action-popover .danger:hover{
  color:#ffd0cc;
  background:rgba(180,35,24,.22);
}

html[data-theme="dark"] .supplier-contact-strip .deal-contact-card > strong{
  color:#b9d3ff;
}
html[data-theme="dark"] .supplier-contact-strip .deal-contact-card span{
  color:#dce7ef;
}
html[data-theme="dark"] .supplier-contact-strip .deal-contact-card b{
  color:#91a2b1;
}

.support-fab{position:fixed;z-index:45;left:20px;bottom:20px;display:inline-flex;align-items:center;gap:9px;min-height:46px;padding:0 16px;color:#fff;background:#1859a8;border:1px solid #3b82d0;border-radius:999px;box-shadow:0 16px 36px rgba(24,89,168,.3);font-weight:800;cursor:pointer}
.support-fab{isolation:isolate;overflow:visible;transition:transform .24s cubic-bezier(.2,.8,.2,1),background .24s ease,border-color .24s ease,box-shadow .24s ease}
.support-fab::before,.support-fab::after{content:"";position:absolute;z-index:-1;inset:-1px;pointer-events:none;border:1px solid rgba(77,156,255,.62);border-radius:999px;opacity:0}
.support-fab:hover{transform:translateY(-4px) scale(1.025);background:linear-gradient(110deg,#1a63bd,#2377d5,#1859a8);background-size:180% 100%;border-color:#75b5ff;box-shadow:0 18px 38px rgba(24,89,168,.48),0 0 0 5px rgba(77,156,255,.11);animation:support-fab-shimmer 1.8s linear infinite}
.support-fab:hover::before{animation:support-fab-wave 1.35s ease-out infinite}.support-fab:hover::after{animation:support-fab-wave 1.35s .46s ease-out infinite}
.support-fab:hover svg{animation:support-icon-float .8s ease-in-out infinite alternate}
.support-fab:active{transform:translateY(-1px) scale(.97)}
@keyframes support-fab-wave{0%{inset:-1px;opacity:.58}100%{inset:-16px;opacity:0}}
@keyframes support-fab-shimmer{0%{background-position:0 50%}100%{background-position:180% 50%}}
@keyframes support-icon-float{from{transform:translateY(1px) rotate(-3deg)}to{transform:translateY(-2px) rotate(3deg)}}
.support-fab b{display:inline-grid;min-width:22px;height:22px;padding:0 6px;place-items:center;color:#b42318;background:#fff;border-radius:999px;font-size:11px}.support-fab b[hidden]{display:none}
.sidebar .sidebar-card{margin-bottom:72px}
.support-fab svg{width:19px;height:19px;fill:currentColor}
.support-dialog{width:min(560px,calc(100vw - 28px));padding:0;border:0;border-radius:16px;box-shadow:0 28px 80px rgba(15,23,42,.3)}
.support-dialog::backdrop{background:rgba(8,18,28,.55);backdrop-filter:blur(3px)}
.support-dialog[open]::backdrop{animation:support-backdrop-in .48s ease-out both}
.support-dialog.support-dialog-closing::backdrop{animation:support-backdrop-out .48s ease-in both}
@keyframes support-backdrop-in{from{background:rgba(8,18,28,0);backdrop-filter:blur(0)}to{background:rgba(8,18,28,.55);backdrop-filter:blur(3px)}}
@keyframes support-backdrop-out{from{background:rgba(8,18,28,.55);backdrop-filter:blur(3px)}to{background:rgba(8,18,28,0);backdrop-filter:blur(0)}}
dialog.motion-dialog[open]::backdrop{animation:support-backdrop-in .48s ease-out both}
dialog.motion-dialog.motion-dialog-closing::backdrop{animation:support-backdrop-out .44s ease-in both}
.support-form{position:relative;display:grid;gap:15px;padding:26px;background:var(--surface);color:var(--text)}
.support-form h2,.support-form p{margin:0}.support-form p{color:var(--text-secondary)}
.support-form label{display:grid;gap:6px}.support-form textarea{resize:vertical;min-height:130px}
.support-form-error{padding:11px 13px;color:#a51d16;background:#fff1f0;border:1px solid #f1a7a1;border-radius:8px;font-size:13px;font-weight:800;line-height:1.4}.support-form-error[hidden]{display:none}html[data-theme="dark"] .support-form-error{color:#ffaaa4;background:#321918;border-color:#713a36}
.support-user-inbox{display:grid;gap:10px}.support-ticket-list{display:flex;gap:7px;overflow:auto;padding-bottom:3px}.support-ticket-chip{position:relative;display:grid;gap:2px;min-width:180px;padding:10px;text-align:left;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px;cursor:pointer}.support-ticket-chip.active{border-color:#b42318;box-shadow:inset 3px 0 #b42318}.support-ticket-chip b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-ticket-chip span{color:var(--text-secondary);font-size:12px}.support-ticket-chip em{position:absolute;top:7px;right:7px;display:grid;min-width:20px;height:20px;place-items:center;color:#fff;background:#b42318;border-radius:999px;font-size:10px;font-style:normal}.support-user-thread{display:grid;grid-auto-rows:max-content;align-content:start;align-items:start;gap:8px;max-height:280px;overflow:auto;padding:12px;background:var(--surface-soft);border:1px solid var(--border);border-radius:10px}.support-user-message{align-self:start;justify-self:start;display:grid;gap:4px;max-width:80%;height:max-content;padding:10px 12px;background:var(--surface);border:1px solid var(--border);border-radius:12px 12px 12px 4px}.support-user-message.mine{justify-self:end;color:#fff;background:#1859a8;border-color:#1859a8;border-radius:12px 12px 4px 12px}.support-user-message small{opacity:.72}.support-user-reply{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.support-user-reply input{min-width:0}.support-new-ticket{display:grid;gap:12px;padding-top:12px;border-top:1px solid var(--border)}
.support-chat-tab{color:#b42318!important}.support-chat-tab.active{color:#fff!important;background:#b42318!important;border-color:#b42318!important}.support-chat-tab b{display:inline-grid;min-width:20px;height:20px;padding:0 5px;place-items:center;color:#fff;background:#d92d20;border-radius:999px;font-size:10px}.support-chat-tab.active b{color:#b42318;background:#fff}.support-chat-tab b[hidden]{display:none}.support-chat-card{position:relative!important;text-align:left!important;border-color:#f1a7a1!important;box-shadow:inset 4px 0 #b42318}.support-chat-card.active{background:#fff1f0!important;border-color:#b42318!important}.support-chat-label{color:#b42318;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.04em}.support-chat-unread{position:absolute;top:10px;right:10px;display:grid;min-width:22px;height:22px;place-items:center;color:#fff;background:#b42318;border-radius:999px;font-size:11px}.support-chat-workspace{display:grid;grid-template-rows:auto minmax(220px,1fr) auto;gap:14px;min-height:100%}.support-chat-workspace header{display:flex;align-items:flex-start;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--border)}.support-chat-workspace h2,.support-chat-workspace p{margin:3px 0 0}.support-chat-back{display:none}.support-mode .chat-panel{border-top:3px solid #b42318}html[data-theme="dark"] .support-chat-card.active{background:#321918!important}html[data-theme="dark"] .support-chat-card{border-color:#713a36!important}html[data-theme="dark"] .support-chat-tab.active{background:#b42318!important}
html[data-theme="dark"] .support-form{background:#121b24;color:#edf4fa}
.support-mode .chat-panel{border-top:1px solid var(--border)}
.support-mode{grid-template-columns:340px minmax(0,1fr);align-items:stretch}
.support-mode .chat-panel{min-width:0;border-top:1px solid var(--border)!important}
.support-mode [data-chat-list]{min-width:0;align-content:start}
.support-chat-card{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:7px!important;width:100%;min-height:104px;padding:15px 18px!important;align-content:center;overflow:hidden}
.support-chat-card .support-chat-label,.support-chat-card strong,.support-chat-card small{display:block;grid-column:1;min-width:0;max-width:100%;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.support-chat-card .support-chat-label{padding-right:30px;line-height:1.25}
.support-chat-card strong{font-size:16px;line-height:1.3}
.support-chat-card small{color:var(--text-secondary);font-size:13px;line-height:1.35}
.support-chat-tab.active{color:#b42318!important;background:transparent!important;border-color:transparent!important;border-bottom-color:#b42318!important;box-shadow:inset 0 -3px #b42318!important}
.support-chat-tab.active b{color:#fff;background:#b42318}
.support-chat-workspace{min-width:0}
.support-chat-workspace .support-user-thread{max-height:none;min-height:300px}
.chat-tabs [data-chat-tab]{display:inline-flex;align-items:center;gap:8px}
.chat-tab-count{display:inline-grid;min-width:22px;height:22px;padding:0 6px;place-items:center;color:#fff;background:#1859a8;border-radius:999px;font-size:11px;font-weight:900;line-height:1}
.chat-tab-count[hidden]{display:none!important}
.chat-tabs [data-chat-tab].active:not(.support-chat-tab) .chat-tab-count{color:#1859a8;background:#fff}
.support-chat-tab .chat-tab-count,.support-chat-tab.active .chat-tab-count{color:#fff!important;background:#b42318!important}
.chat-card.has-unread{background:#edf5ff!important;border-color:#78a9e6!important;box-shadow:inset 4px 0 #1859a8,0 12px 24px -20px rgba(24,89,168,.55)!important}
.chat-card.has-unread strong{color:#103f78}
.chat-card.has-unread small,.chat-card.has-unread .chat-counterparty{color:#42658e}
html[data-theme="dark"] .chat-card.has-unread{background:#152c42!important;border-color:#356c9f!important;box-shadow:inset 4px 0 #4d9cff!important}
html[data-theme="dark"] .chat-card.has-unread strong{color:#eef7ff}
html[data-theme="dark"] .chat-card.has-unread small,html[data-theme="dark"] .chat-card.has-unread .chat-counterparty{color:#b9d3ed}
.support-chat-tab,.support-chat-tab.active{color:inherit!important;background:transparent!important;border-color:transparent!important;border-bottom-color:var(--primary)!important;box-shadow:none!important}
.support-chat-tab.active{color:var(--text)!important;box-shadow:inset 0 -3px var(--primary)!important}
.support-chat-tab .chat-tab-count,.support-chat-tab.active .chat-tab-count{color:#fff!important;background:#1859a8!important}
.support-chat-card,.support-chat-card.active{color:var(--text)!important;background:var(--surface)!important;border-color:var(--border)!important;box-shadow:none!important;outline:0!important}
.support-chat-card.active{background:var(--primary-soft)!important;border-color:var(--primary-border)!important;box-shadow:inset 4px 0 var(--primary)!important}
.support-chat-unread{background:#1859a8!important}
html[data-theme="dark"] .support-chat-tab,html[data-theme="dark"] .support-chat-tab.active{color:#edf4fa!important;background:transparent!important;border-color:transparent!important;border-bottom-color:#4d9cff!important;box-shadow:none!important}
html[data-theme="dark"] .support-chat-tab.active{box-shadow:inset 0 -3px #4d9cff!important}
html[data-theme="dark"] .support-chat-card,html[data-theme="dark"] .support-chat-card.active{color:#edf4fa!important;background:#121b24!important;border-color:#2a3b4c!important;box-shadow:none!important}
html[data-theme="dark"] .support-chat-card.active{background:#152c42!important;border-color:#356c9f!important;box-shadow:inset 4px 0 #4d9cff!important}
.support-chat-tab:not(.active){color:var(--text-secondary)!important;border-bottom-color:transparent!important;box-shadow:none!important}
html[data-theme="dark"] .support-chat-tab:not(.active){color:#aebdca!important;border-bottom-color:transparent!important;box-shadow:none!important}
.auth-back-button{width:max-content;min-height:36px;margin-bottom:-4px;padding:0 12px;color:var(--text-secondary);background:transparent;border-color:var(--border)}.auth-back-button:hover{color:var(--primary);background:var(--primary-soft);border-color:var(--primary-border)}html[data-theme="dark"] .auth-back-button{color:#b7c4d1;background:transparent;border-color:#34495a}html[data-theme="dark"] .auth-back-button:hover{color:#fff;background:#182f45;border-color:#4d78a2}
.auth-support-button{display:inline-flex;align-items:center;justify-content:center;gap:9px}.auth-support-button svg{width:18px;height:18px;fill:currentColor}.support-public-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}.support-public-fields label:first-child{grid-column:1/-1}.support-public-fields[hidden]{display:none}@media(max-width:560px){.support-public-fields{grid-template-columns:1fr}.support-public-fields label:first-child{grid-column:auto}}
html[data-theme="dark"] .request-card .meta-grid{background:transparent!important;border:0!important;box-shadow:none!important}
html[data-theme="dark"] .request-card .meta-box{color:#dce7ef;background:transparent!important;border:0!important;border-right:1px solid #2a3b4c!important;border-radius:0!important;box-shadow:none!important}
html[data-theme="dark"] .request-card .meta-box:last-child{border-right:0!important}
html.theme-view-transition::view-transition-old(root),html.theme-view-transition::view-transition-new(root){animation:none;mix-blend-mode:normal}
html.theme-view-transition::view-transition-old(root){z-index:1}
html.theme-view-transition::view-transition-new(root){z-index:9999}
.theme-transition-orb{position:fixed;z-index:10000;width:48px;height:48px;pointer-events:none;border-radius:999px;transform:translate(-50%,-50%) scale(0);will-change:transform,opacity}
.theme-transition-orb-light{background:#f4f7fb}.theme-transition-orb-dark{background:#0b1117}
[data-theme-toggle].theme-toggle-animating{position:relative;z-index:10001;animation:theme-toggle-pop .68s cubic-bezier(.2,.8,.2,1)}
@keyframes theme-toggle-pop{0%{transform:scale(1)}35%{transform:scale(.88) rotate(-4deg)}70%{transform:scale(1.08) rotate(3deg)}100%{transform:scale(1) rotate(0)}}
@media(prefers-reduced-motion:reduce){[data-theme-toggle].theme-toggle-animating{animation:none}.theme-transition-orb{display:none}}
.mouse-water-surface{--water-x:50%;--water-y:50%;--water-tilt-x:0deg;--water-tilt-y:0deg;position:relative;isolation:isolate;overflow:hidden;transform:perspective(1100px) rotateX(var(--water-tilt-x)) rotateY(var(--water-tilt-y));transform-style:preserve-3d;transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .25s ease;will-change:transform}
.mouse-water-surface::before{content:"";position:absolute;z-index:0;inset:-1px;pointer-events:none;background:radial-gradient(circle 210px at var(--water-x) var(--water-y),rgba(255,255,255,.19),rgba(112,183,255,.08) 34%,transparent 72%);opacity:0;transition:opacity .25s ease}
.mouse-water-surface.water-active::before{opacity:1}
.mouse-water-surface.water-active{box-shadow:0 26px 46px -26px rgba(12,45,88,.58)}
.mouse-water-surface>*:not(.mouse-water-ripple){position:relative;z-index:1}
.mouse-water-ripple{position:absolute;z-index:0;width:42px;height:42px;pointer-events:none;border:1px solid rgba(210,235,255,.48);border-radius:50%;transform:translate(-50%,-50%) scale(.12);opacity:.75;box-shadow:0 0 0 1px rgba(110,184,255,.1),inset 0 0 18px rgba(255,255,255,.08);animation:mouse-water-wave .9s cubic-bezier(.12,.62,.24,1) forwards}
@keyframes mouse-water-wave{0%{transform:translate(-50%,-50%) scale(.12);opacity:.72}65%{opacity:.28}100%{transform:translate(-50%,-50%) scale(5.2);opacity:0}}
@media(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){.mouse-water-surface{transform:none!important;transition:none}.mouse-water-surface::before,.mouse-water-ripple{display:none}}
.chat-pin-button{display:inline-grid;width:30px;height:30px;padding:0;place-items:center;color:var(--text-secondary);background:transparent;border:1px solid transparent;border-radius:999px;filter:grayscale(1);opacity:.55;cursor:pointer;transition:transform .18s ease,opacity .18s ease,background .18s ease,border-color .18s ease}
.chat-pin-button:hover{opacity:1;transform:translateY(-1px) scale(1.05);background:var(--primary-soft);border-color:var(--primary-border)}
.chat-pin-button.active{color:#1859a8;background:#e8f2ff;border-color:#8eb8e8;filter:none;opacity:1;transform:rotate(-18deg)}
.chat-card-meta{align-self:start}
html[data-theme="dark"] .chat-pin-button{color:#a9bfd4}html[data-theme="dark"] .chat-pin-button:hover{background:#183047;border-color:#356c9f}html[data-theme="dark"] .chat-pin-button.active{color:#87bdff;background:#173653;border-color:#4d84b8}
@media(prefers-reduced-motion:reduce){.chat-pin-button{transition:none}}
html[data-theme="dark"] .support-chat-tab{color:#aebdca!important;background:transparent!important}
html[data-theme="dark"] .support-chat-tab.active{color:#edf4fa!important;background:transparent!important;border-color:transparent!important;border-bottom-color:#4d9cff!important;box-shadow:inset 0 -3px #4d9cff!important}
html[data-theme="dark"] .support-chat-tab.active b{color:#fff!important;background:#1859a8!important}
html[data-theme="dark"] .support-chat-card,html[data-theme="dark"] .support-chat-card.active{color:#edf4fa!important;background:#121b24!important;border-color:#2a3b4c!important;box-shadow:none!important;outline:0!important}
html[data-theme="dark"] .support-chat-card.active{background:#152c42!important;border-color:#356c9f!important;box-shadow:inset 4px 0 #4d9cff!important}
html[data-theme="dark"] .support-chat-card .support-chat-label{color:#aebdca!important}
@media(max-width:760px){.support-fab{left:12px;bottom:82px}.support-fab span{display:none}.support-fab{width:46px;padding:0;justify-content:center}.support-form{padding:22px 18px}.sidebar .sidebar-card{margin-bottom:0}.support-chat-back{display:inline-flex}.support-user-reply{grid-template-columns:minmax(0,1fr)}.support-chat-workspace{min-height:calc(100vh - 250px)}.support-mode{display:block}.support-chat-card{min-height:92px}}
@media(hover:none),(pointer:coarse),(prefers-reduced-motion:reduce){.support-fab:hover{transform:none;animation:none}.support-fab:hover::before,.support-fab:hover::after,.support-fab:hover svg{animation:none}}
@media(prefers-reduced-motion:reduce){dialog.motion-dialog[open]::backdrop,dialog.motion-dialog.motion-dialog-closing::backdrop{animation:none}}

/* Keep the account control and its menu inside the header viewport. */
.user-pill summary span{
  min-width:72px;
  justify-content:center;
  padding-inline:12px;
  white-space:nowrap;
}
.user-pill .user-menu{
  right:0;
  left:auto;
  transform:none;
}

@media (max-width:760px){
  .user-pill summary span{
    min-width:0;
    padding:0;
  }
  .user-pill .user-menu{
    position:fixed;
    right:16px;
    bottom:92px;
    left:16px;
    width:auto;
  }
}

/* Per-position comments in supplier offers */
.offer-position-note{grid-column:1/-1;display:grid;gap:6px}
.offer-position-note textarea{width:100%;min-height:64px;resize:vertical}
.offer-item-note{display:block;margin-top:6px;color:var(--text-secondary);white-space:pre-wrap}
.offer-item-note strong{color:var(--text-primary)}


/* Light form density and separation pass 2026-07-30 */
html:not([data-theme="dark"]){
  --form-line-strong:#aebdce;
  --form-line-soft:#c9d4e0;
  --form-fill-soft:#f5f8fb;
  --form-fill-blue:#eef4fb;
}
html:not([data-theme="dark"]) .offer-form{
  gap:10px;
  padding:18px;
  border:1px solid var(--form-line-strong);
  border-radius:14px;
  box-shadow:0 22px 46px -28px rgba(15,35,60,.46);
}
html:not([data-theme="dark"]) .offer-form h2{margin:0 0 2px}
html:not([data-theme="dark"]) .offer-position-cards{gap:8px}
html:not([data-theme="dark"]) .offer-position-card{
  grid-template-columns:minmax(0,1fr) minmax(330px,.38fr);
  gap:10px;
  padding:10px;
  border:1px solid var(--form-line-strong);
  border-radius:10px;
  box-shadow:0 8px 20px -20px rgba(15,35,60,.42);
}
html:not([data-theme="dark"]) .offer-position-title{margin-bottom:8px;font-size:15px}
html:not([data-theme="dark"]) .offer-position-specs{gap:6px}
html:not([data-theme="dark"]) .offer-position-specs div{
  padding:6px 8px;
  background:var(--form-fill-soft);
  border-color:var(--form-line-soft);
  border-radius:7px;
}
html:not([data-theme="dark"]) .offer-position-specs dt,
html:not([data-theme="dark"]) .offer-position-total span{margin-bottom:3px}
html:not([data-theme="dark"]) .offer-position-response{
  gap:7px;
  padding:9px;
  background:var(--form-fill-blue);
  border-color:var(--form-line-strong);
  border-radius:8px;
}
html:not([data-theme="dark"]) .offer-position-total{
  min-height:38px;
  padding:6px 8px;
  border-color:var(--form-line-soft);
  border-radius:7px;
}
html:not([data-theme="dark"]) .offer-form-section{
  gap:8px;
  padding:10px;
  background:var(--form-fill-soft);
  border-color:var(--form-line-strong);
  border-radius:10px;
}
html:not([data-theme="dark"]) .offer-form input,
html:not([data-theme="dark"]) .offer-form select{
  min-height:38px;
  height:38px;
  border-color:var(--form-line-strong);
}
html:not([data-theme="dark"]) .offer-form textarea{
  min-height:78px;
  border-color:var(--form-line-strong);
}
html:not([data-theme="dark"]) .offer-position-note textarea{min-height:54px}
html:not([data-theme="dark"]) .offer-message-field{margin-top:0}
html:not([data-theme="dark"]) .request-form,
html:not([data-theme="dark"]) .request-wizard{gap:12px}
html:not([data-theme="dark"]) .wizard-step{
  gap:9px;
  padding-right:14px;
  border-right-color:var(--form-line-strong);
}
html:not([data-theme="dark"]) .wizard-step legend{margin-bottom:4px;font-size:18px}
html:not([data-theme="dark"]) .request-title-step{padding-bottom:12px;border-bottom-color:var(--form-line-strong)}
html:not([data-theme="dark"]) .request-title-step input{min-height:48px;font-size:18px;border-color:var(--form-line-strong)}
html:not([data-theme="dark"]) .request-wizard input,
html:not([data-theme="dark"]) .request-wizard select{min-height:40px;border-color:var(--form-line-strong)}
html:not([data-theme="dark"]) .request-wizard textarea{min-height:78px;border-color:var(--form-line-strong)}
html:not([data-theme="dark"]) .wizard-actions{padding-top:10px;border-top-color:var(--form-line-strong)}
html:not([data-theme="dark"]) .request-items-table{border:1px solid var(--form-line-strong)}
html:not([data-theme="dark"]) .request-items-table th,
html:not([data-theme="dark"]) .request-items-table td{border-color:var(--form-line-soft)}
html:not([data-theme="dark"]) .profile-form{gap:10px}
html:not([data-theme="dark"]) .profile-form input,
html:not([data-theme="dark"]) .profile-form select{min-height:44px;height:44px;border-color:var(--form-line-strong)}
html:not([data-theme="dark"]) .support-form,
html:not([data-theme="dark"]) .support-new-ticket{gap:10px}
html:not([data-theme="dark"]) .support-form input,
html:not([data-theme="dark"]) .support-form select,
html:not([data-theme="dark"]) .support-form textarea{border-color:var(--form-line-strong)}
html:not([data-theme="dark"]) .panel:has(.profile-form),
html:not([data-theme="dark"]) .panel:has(.request-wizard){border-color:var(--form-line-soft)}
@media (max-width:900px){
  html:not([data-theme="dark"]) .offer-form{padding:14px}
  html:not([data-theme="dark"]) .offer-position-card{grid-template-columns:1fr}
}
@media (max-width:640px){
  html:not([data-theme="dark"]) .offer-form{padding:11px;gap:8px}
  html:not([data-theme="dark"]) .offer-position-card{padding:8px}
  html:not([data-theme="dark"]) .offer-position-specs{grid-template-columns:repeat(2,minmax(0,1fr))}
}
