
.seller-dash, .booking-workspace, .chat-page { max-width: 1200px; margin-inline: auto; }
.seller-dash { --dash-line: #e1e8df; color: #18352c; display: grid; gap: 22px; }
.seller-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px; background: #143d33; color: white; border-radius: 18px; }
.seller-heading h1 { color: #fff; margin: 5px 0 0; font-size: clamp(26px, 4vw, 37px); letter-spacing: -.04em; line-height: 1.14; }
.seller-kicker { color: #d5f6a0; margin: 0; font-size: 13px; font-weight: 650; }
.seller-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.seller-actions .btn { min-height: 42px; }
.seller-actions .btn:not(.secondary) { background: #d3f78d; color: #17352b; border-color: #d3f78d; }
.dash-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.dash-metric { display: flex; align-items: center; min-width: 0; gap: 12px; min-height: 88px; padding: 13px 15px; border: 1px solid var(--dash-line); border-radius: 13px; background: white; text-decoration: none; color: inherit; }
.dash-metric:hover, .dash-item:hover { background: #f4f8f1; }
.dash-icon { width: 38px; height: 38px; background: #ecf5e7; color: #235e49; border-radius: 9px; display: inline-grid; place-items: center; flex-shrink: 0; }
.dash-icon svg, .queue-row-actions svg, .chat-tool svg, .chat-file svg, [data-file-draft] svg { width: 20px; height: 20px; }
.dash-metric strong { display: block; font-size: 24px; line-height: 1.15; letter-spacing: -.035em; }
.dash-metric small { display: block; font-size: 13px; color: #4e685e; line-height: 1.4; }
.seller-columns { display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); gap: 16px; align-items: start; }
.seller-column { display: grid; min-width: 0; gap: 16px; }
.dash-panel { min-width: 0; background: #fff; border: 1px solid var(--dash-line); border-radius: 14px; overflow: hidden; }
.dash-panel-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 16px; border-bottom: 1px solid var(--dash-line); }
.dash-panel-head h2, .chat-side-head h2, .chat-thread-head h2, .chat-dialog h2 { font-size: 17px; letter-spacing: -.018em; line-height: 1.3; margin: 0; }
.dash-panel-head a, .chat-side-head a, .chat-thread-head a { color: #1d624b; font-size: 13px; font-weight: 650; }
.dash-item { display: flex; gap: 10px; padding: 11px 16px; align-items: center; color: inherit; text-decoration: none; }
.dash-item + .dash-item { border-top: 1px solid var(--dash-line); }
.dash-item-body, .chat-thread-label { flex: 1; min-width: 0; }
.dash-item-body strong, .dash-item-body small, .chat-thread-label strong, .chat-thread-label small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-item-body strong { font-size: 14px; }
.dash-item-body small, .chat-thread-label small { font-size: 13px; color: #53695e; line-height: 1.45; }
.dash-unread { display: inline-grid; place-items: center; flex-shrink: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #25664e; color: #fff; font-size: 11px; font-weight: 700; }
.dash-unread:empty { min-width: 8px; height: 8px; padding: 0; }
.dash-badge { display: inline-block; justify-self: start; background: #ecf5e7; border-radius: 7px; color: #255843; font-size: 12px; font-weight: 650; padding: 4px 8px; line-height: 1.35; }
.dash-empty, .dashboard-loading { color: #53695e; padding: 19px 16px; margin: 0; font-size: 14px; line-height: 1.45; }
.booking-queue { display: grid; gap: 12px; min-width: 0; }
.queue-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.queue-tabs button { background: #fff; color: #284437; border: 1px solid #dce6db; border-radius: 8px; padding: 7px 10px; min-height: 37px; cursor: pointer; font: inherit; font-size: 13px; }
.queue-tabs button[aria-pressed=true] { background: #235c48; color: #fff; border-color: #235c48; }
.queue-tabs button span { padding: 1px 4px; opacity: .8; }
.queue-table { border: 1px solid #dce6db; border-radius: 14px; background: #fff; overflow: hidden; }
.queue-table-head, .queue-table-row { display: grid; align-items: center; grid-template-columns: minmax(160px,1.6fr) minmax(130px,1fr) minmax(120px,.9fr) minmax(76px,.55fr) 70px; gap: 12px; padding: 13px 16px; font-size: 14px; }
.queue-table-head { background: #f4f7f3; font-size: 12px; font-weight: 650; color: #53695e; }
.queue-table-row { border-top: 1px solid #e5eae4; min-height: 65px; }
.queue-name { min-width: 0; display: flex; align-items: center; gap: 10px; color: #18352c; text-decoration: none; }
.queue-name strong { overflow-wrap: anywhere; }
.queue-date { color: #53695e; }
.queue-row-actions { display: flex; gap: 7px; justify-content: end; }
.queue-row-actions a { width: 30px; height: 30px; display: inline-grid; place-items: center; color: #205f49; border: 1px solid #dce6db; border-radius: 7px; text-decoration: none; }
.chat-page > .pagehead { margin-bottom: 0; }
.chat-page > .pagehead .kicker:empty { display: none; }
.chat-shell { display: grid; grid-template-columns: minmax(240px,310px) minmax(0,1fr); height: clamp(490px, calc(100dvh - 168px), 850px); min-height: 0; border: 1px solid #dce6db; border-radius: 14px; background: white; overflow: hidden; }
.chat-side, .chat-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.chat-side { background: #fff; border-right: 1px solid #e1e8df; }
.chat-side-head, .chat-thread-head { display: flex; gap: 12px; min-height: 65px; align-items: center; padding: 12px 16px; border-bottom: 1px solid #e1e8df; }
.chat-side-head { justify-content: space-between; }
.chat-thread-head p { margin: 2px 0 0; font-size: 13px; color: #53695e; }
.chat-search { padding: 12px; }
.chat-search input { width: 100%; min-height: 38px; background: #f5f8f3; font-size: 14px; padding: 8px 11px; border-radius: 8px; }
.chat-side-list { min-height: 0; overflow: auto; }
.chat-thread-link { display: flex; align-items: center; gap: 10px; min-height: 62px; padding: 10px 12px; border-bottom: 1px solid #eef1ed; text-decoration: none; color: #19372e; }
.chat-thread-link:hover, .chat-thread-link[aria-current] { background: #edf5e9; }
.chat-avatar { display: inline-grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: #e7f2e3; color: #275f4a; font-size: 13px; font-weight: 700; overflow: hidden; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-thread-label strong { font-size: 14px; }
.chat-page .message-log { min-height: 0; flex: 1; overflow: auto; max-height: none; padding: 16px; background: #fafbf9; border: 0; border-radius: 0; }
.chat-page .message-bubble { margin: 0 0 10px; width: fit-content; max-width: min(78%,580px); padding: 9px 12px; border: 1px solid #e4ebe1; border-radius: 5px 13px 13px; background: white; color: #18352c; }
.chat-page .message-bubble.mine { margin-left: auto; background: #e9f5e5; color: #173b2e; border-radius: 13px 5px 13px 13px; }
.chat-page .message-bubble small { display: block; font-size: 11px; color: #52675c; margin-bottom: 2px; }
.chat-page .message-bubble p { font-size: 14px; margin: 0; }
.chat-page .message-composer { display: block; padding: 12px; border-top: 1px solid #e1e8df; background: white; }
.chat-composer-row { display: flex; align-items: end; gap: 7px; }
.chat-page .message-composer textarea { min-width: 0; flex: 1; resize: vertical; min-height: 44px; max-height: 130px; background: #f7f9f6; border-radius: 9px; border: 1px solid #dce6db; color: #19372e; font-size: 14px; padding: 9px; }
.chat-page .message-composer textarea::placeholder { color: #587165; }
.chat-page .message-composer .chat-send { flex-shrink: 0; min-height: 41px; padding: 8px 11px; font-size: 13px; }
.chat-tool { width: 38px; height: 38px; flex-shrink: 0; display: inline-grid; place-items: center; border: 1px solid #dce6db; background: white; color: #205d48; border-radius: 8px; cursor: pointer; font: inherit; font-size: 20px; }
.chat-tool:hover, .chat-file:hover { background: #edf5e9; }
.chat-empty { margin: auto; padding: 20px; text-align: center; color: #53695e; }
.chat-empty h2 { font-size: 19px; color: #1d3c32; margin: 10px 0 3px; }
.chat-empty-icon { font-size: 26px; color: #28674f; }
.chat-placeholder { padding: 12px; color: #53695e; font-size: 14px; }
.chat-page .thread-back { display: inline-grid; place-items: center; text-decoration: none; min-width: 30px; min-height: 30px; font-size: 20px; }
.chat-standalone { border: 1px solid #dce6db; border-radius: 14px; background: #fff; height: clamp(440px, calc(100dvh - 170px), 780px); overflow: hidden; }
.chat-file, [data-file-draft] span { display: inline-flex; align-items: center; gap: 5px; overflow-wrap: anywhere; min-width: 0; }
.chat-file { color: #215e49; background: #f5faf4; border: 1px solid #d8e5d6; border-radius: 6px; padding: 5px 8px; margin-top: 3px; cursor: pointer; font: inherit; font-size: 13px; }
.chat-file svg, [data-file-draft] svg { flex-shrink: 0; }
[data-file-draft]:not([hidden]) { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 8px; margin-bottom: 7px; background: #edf5e9; border-radius: 8px; font-size: 13px; }
[data-file-draft] .chat-tool { width: 29px; height: 29px; }
.chat-offer-card { max-width: 420px; border: 1px solid #cfe0cd; border-radius: 11px; background: #fff; padding: 13px; display: grid; gap: 9px; margin-bottom: 10px; }
.chat-offer-top, .chat-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.chat-offer-top small { color: #53695e; }
.chat-offer-card h3 { font-size: 16px; margin: 0; }
.chat-offer-price { font-size: 20px; color: #205d48; }
.chat-offer-card details { background: #f6f9f4; border: 0; border-radius: 7px; padding: 8px; }
.chat-offer-card summary { color: #225c48; cursor: pointer; font-weight: 650; font-size: 13px; }
.chat-offer-card .btn { min-height: 34px; font-size: 13px; padding: 6px 8px; }
.chat-dialog { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 28px); overflow: auto; color: #19372e; border: 1px solid #dce6db; border-radius: 14px; padding: 18px; }
.chat-dialog::backdrop { background: #0c211a8c; }
.bot-chat-shell { grid-template-columns: minmax(0,1fr) minmax(250px,320px); }
.bot-chat-shell .chat-side { border-right: 0; border-left: 1px solid #e1e8df; padding: 14px; overflow: auto; gap: 9px; }
.bot-chat-shell .chat-side h2 { font-size: 16px; margin: 0; }
.bot-chat-shell .bot-match { display: block; padding: 9px; border: 1px solid #dce6db; color: #225d48; border-radius: 8px; text-decoration: none; font-size: 13px; }
.bot-chat-shell .bot-match small { display: block; color: #53695e; }
.bot-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 7px 12px; }
.bot-quick button { font: inherit; font-size: 12px; border: 1px solid #dce6db; color: #235944; background: #fff; border-radius: 14px; padding: 5px 9px; cursor: pointer; }
.bot-response-status { padding: 4px 12px; color: #53695e; font-size: 12px; }
.resume-work-list { display: grid; gap: 8px; }
.resume-entry { border: 1px solid #e1e8df; border-radius: 9px; padding: 12px; display: grid; gap: 8px; }
.resume-entry button { justify-self: start; }
.public-work-profile { max-width: 820px; }
.public-work-profile .expert-head .detail-title { margin: 0; }
@media(max-width:900px) {
  .queue-table-head,.queue-table-row { grid-template-columns:minmax(128px,1.35fr) minmax(100px,1fr) minmax(94px,.85fr) minmax(62px,.5fr) 60px; gap: 8px; }
}
@media(max-width:700px) {
  .seller-heading { align-items: start; flex-direction: column; padding: 19px; gap: 14px; }
  .seller-columns { grid-template-columns: minmax(0,1fr); }
  .dash-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .dash-metric { padding: 9px; min-height: 68px; gap: 7px; }
  .dash-metric strong { font-size: 20px; }
  .dash-metric small { font-size: 12px; }
  .dash-metric .dash-icon { width: 30px; height: 30px; }
  .queue-table-head { display: none; }
  .queue-table-row { display: grid; grid-template-columns: 1fr auto; gap: 7px; padding: 11px; }
  .queue-name { grid-column: 1/-1; }
  .queue-date { grid-column: 1/-1; }
  .queue-table-row > strong { grid-column: 1; }
  .queue-row-actions { grid-column: 2; grid-row: 3/span 2; align-self: center; }
  .chat-shell { grid-template-columns: minmax(0,1fr); height: var(--chat-mobile-height, min(680px, calc(100dvh - 218px))); min-height: 260px; }
  .chat-shell:not(.thread-open):not(.bot-chat-shell) .chat-main, .chat-shell.thread-open .chat-side { display: none; }
  .chat-side { border-right: 0; }
  .chat-standalone { height: var(--chat-mobile-height, min(680px, calc(100dvh - 218px))); min-height: 260px; }
  .chat-page .message-log { padding: 10px; }
  .chat-page .message-bubble { max-width: 87%; }
  .chat-page .message-composer { padding: 8px; }
  .chat-composer-row { gap: 5px; }
  .chat-tool { width: 32px; height: 34px; }
  .chat-page .message-composer .chat-send { padding-inline: 7px; }
  .chat-send span { display: none; }
  .bot-chat-shell { height: auto; min-height: 0; }
  .bot-chat-shell .chat-main { height: var(--chat-mobile-height, clamp(260px,calc(100dvh - 218px),680px)); }
  .bot-chat-shell .chat-side { border: 0; border-top: 1px solid #e1e8df; }
}

.bid-details { background: #f5f8f3; border: 1px solid #e1e8df; border-radius: 8px; padding: 9px 11px; }
.bid-details summary { color: #235c48; font-size: 14px; font-weight: 650; }

.primary-market-nav { display:flex; align-items:center; flex-wrap:wrap; gap:clamp(9px,1.45vw,22px); }
.primary-market-nav[hidden], [data-seller-notifications][hidden], [data-switch-workspace][hidden] { display:none; }
.primary-market-nav a { white-space:nowrap; }
.primary-market-nav a[aria-current="page"] { color:#19523f; text-decoration:underline; text-underline-offset:5px; }
.market-topbar .workspace-switch { white-space:nowrap; padding:6px 9px; color:#205d48; background:#edf5e9; border:1px solid #dce7da; border-radius:8px; font-size:12px; }
.seller-alert-icon { display:inline-grid; place-items:center; width:34px; height:34px; border:1px solid #dce7da; border-radius:9px; color:#235b48; }
.seller-alert-icon svg { width:18px; height:18px; }
.seller-workspace { max-width:1200px; margin-inline:auto; }
.seller-secondary-nav { display:flex; flex-wrap:wrap; gap:8px 16px; padding:11px 14px; border:1px solid #e0e9dc; border-radius:10px; background:#fff; }
.seller-secondary-nav a, .seller-quick-links a { color:#205d48; font-size:13px; font-weight:650; }
.seller-secondary-nav a[aria-current] { text-decoration:underline; text-underline-offset:4px; }
.seller-quick-links { padding:14px 16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.seller-mode #provider-link { display:none; }
@media(max-width:620px) {
  .primary-market-nav { gap:7px 12px; }
  .market-topbar .primary-market-nav { flex-basis:100%; }
  .primary-market-nav a { font-size:12px; }
  .seller-secondary-nav { gap:8px 12px; }
}
