/* ==========================================================================
   HIVEX — workspace.css (Phase 2 · buyer + seller areas). Builds on app.css tokens.
   Prefix .ws-* for every component defined here.
   01 Toolbars & tabs · 02 Layout splits · 03 Forms & choices · 04 RFQs & quotes
   05 Inbox · 06 Saved & settings · 07 Page builder · 08 Preview · 09 Products & import
   10 Verification · 11 Analytics · 12 Responsive
   ========================================================================== */

/* 01 · TOOLBARS & TABS ----------------------------------------------------- */
.ws-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.ws-toolbar__note { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--muted); }
.ws-toolbar__note .icon { color: var(--danger); }
.ws-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--porcelain-2); border: 1px solid var(--hair); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.ws-tabs::-webkit-scrollbar { display: none; }
.ws-tab { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: .875rem; text-decoration: none; white-space: nowrap; transition: background-color var(--dur), color var(--dur), box-shadow var(--dur); }
.ws-tab:hover { color: var(--ink); }
.ws-tab.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--sh-2); }
.ws-tab.is-active .icon { color: var(--gold-deep); }
.ws-tab__n { min-width: 22px; height: 20px; padding: 0 6px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(17, 21, 27, .07); color: var(--ink-2); font-size: 11px; font-weight: 800; }
.ws-tab.is-active .ws-tab__n { background: var(--graphite); color: var(--gold-hi); }
.ws-tab__n--hot { background: var(--gold) !important; color: var(--gold-ink) !important; }
.ws-tab__dot { width: 7px; height: 7px; border-radius: 50%; background: #9AA3AE; }
.ws-tab__dot--published { background: var(--success); }
.ws-tab__dot--pending { background: var(--warning); }
.ws-tab__dot--rejected { background: var(--danger); }
.ws-search { position: relative; display: block; min-width: 240px; }
.ws-search > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted-2); pointer-events: none; }
.ws-search .input { padding-left: 36px; min-height: 42px; background: var(--paper); }
.ws-search--block { min-width: 0; width: 100%; }
.ws-mini-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--porcelain-2); }
.ws-mini-tabs a { padding: 6px 12px; border-radius: 8px; font-size: .8125rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.ws-mini-tabs a.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }
.ws-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--paper); border: 1px solid var(--hair-2); box-shadow: var(--sh-1); }
.ws-seg a { display: inline-grid; place-items: center; height: 36px; padding: 0 14px; border-radius: 9px; font-size: .875rem; font-weight: 700; color: var(--muted); text-decoration: none; }
.ws-seg a:hover { color: var(--ink); }
.ws-seg a.is-active { background: var(--graphite); color: var(--gold-hi); }

.ws-table td { vertical-align: middle; }
.ws-table__act { text-align: right; white-space: nowrap; }
.ws-rowact { display: inline-flex; align-items: center; gap: 4px; }
.ws-rowact form { display: contents; }
.ws-prow { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ws-prow__thumb { flex: none; width: 48px; height: 48px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #1D2836, #0A0D12); color: var(--gold-hi); border: 1px solid var(--hair); }
.ws-prow__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-prow__text { display: grid; gap: 3px; min-width: 0; justify-items: start; }
.ws-reason { color: #A1342A; }
.ws-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--porcelain-2); color: var(--ink-2); font-size: 11px; font-weight: 700; letter-spacing: .02em; vertical-align: middle; }
.ws-tag--direct { background: var(--gold-soft); color: var(--gold-deep); }
.ws-tag--req { background: var(--danger-soft); color: #A1342A; }
.ws-icon-danger:hover { background: var(--danger-soft); color: #A1342A; }
.ws-danger-text { color: #A1342A; }
.ws-danger-text:hover { background: var(--danger-soft); }
.ws-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: 11px; background: var(--porcelain-2); font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--ink-2); }

.ws-howto { padding: 22px clamp(18px, 2vw, 26px); display: grid; gap: 16px; background: radial-gradient(90% 140% at 100% 0%, rgba(242, 183, 5, .09), transparent 60%), var(--paper); }
.ws-howto__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ws-howto__steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.ws-howto__steps .num { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--graphite); color: var(--gold-hi); font-family: var(--font-display); font-weight: 700; }
.ws-howto__steps strong { display: block; font-size: .95rem; }
.ws-howto__steps p { color: var(--muted); font-size: .85rem; margin-top: 3px; }

/* 02 · LAYOUT SPLITS ------------------------------------------------------- */
.ws-split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.ws-split--wide { grid-template-columns: minmax(0, 1fr) 360px; }
.ws-main, .ws-aside, .ws-stack { display: grid; gap: 20px; min-width: 0; align-content: start; }
.ws-aside { position: sticky; top: 86px; }

/* 03 · FORMS & CHOICES ----------------------------------------------------- */
.ws-form { gap: 22px; }
.ws-fieldset { display: grid; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--hair); }
.ws-fieldset:last-of-type { border-bottom: 0; padding-bottom: 0; }
.ws-legend { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 14px; padding: 0; }
.ws-legend .num { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--graphite); color: var(--gold-hi); font-size: .85rem; }
.ws-form__actions { padding-top: 6px; }
.ws-form__actions .fineprint { flex-basis: 100%; }
.ws-choice-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ws-choice { position: relative; cursor: pointer; display: flex; }
.ws-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ws-choice__box { flex: 1; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 14px; border: 1.5px solid var(--hair-2); background: var(--paper); transition: border-color var(--dur), box-shadow var(--dur), background-color var(--dur); }
.ws-choice__box strong { font-size: .95rem; }
.ws-choice__box small { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.ws-choice__icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--porcelain); color: var(--ink-2); margin-bottom: 6px; transition: all var(--dur); }
.ws-choice:hover .ws-choice__box { border-color: #BDB8AA; }
.ws-choice input:checked + .ws-choice__box { border-color: var(--graphite); background: linear-gradient(160deg, #FFFCF2, var(--paper)); box-shadow: 0 0 0 3px var(--gold-wash); }
.ws-choice input:checked + .ws-choice__box .ws-choice__icon { background: var(--graphite); color: var(--gold-hi); }
.ws-choice input:focus-visible + .ws-choice__box { box-shadow: var(--ring); }
.ws-choice input:disabled + .ws-choice__box { opacity: .55; cursor: not-allowed; }
.ws-target { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--porcelain); border: 1px solid var(--hair); }
.ws-target > div { display: grid; gap: 4px; min-width: 0; flex: 1; justify-items: start; }
.ws-target strong { font-size: .98rem; }
.ws-target > div > span:not(.badge):not(.status):not(.badges) { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); }
.ws-target small { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.ws-target__thumb { flex: none; width: 56px; height: 56px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: var(--graphite); color: var(--gold-hi); }
.ws-target__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ws-affix-r { position: relative; display: block; }
.ws-affix-r > .input { padding-right: 56px; }
.ws-affix-r > span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .875rem; pointer-events: none; }
.ws-textarea--short { min-height: 76px; }
.ws-price-input { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 8px; }
.ws-file { padding: 7px 10px; }
.ws-tips .checks { gap: 12px; font-size: .9rem; }
.ws-wl { background: radial-gradient(100% 120% at 100% 0%, rgba(242, 183, 5, .14), transparent 60%), linear-gradient(180deg, #FFFCF2, var(--paper)); border-color: rgba(201, 148, 0, .3); }
.ws-wl__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--graphite); color: var(--gold-hi); }
.ws-wl__links { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-wl__links .chip .icon { color: var(--gold-deep); }
.ws-wl__links .chip:hover { border-color: var(--ink); }
.ws-disclosure { border: 1px solid var(--hair); border-radius: 14px; padding: 12px 14px; background: var(--porcelain); }
.ws-disclosure > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: .9rem; list-style: none; }
.ws-disclosure > summary::-webkit-details-marker { display: none; }
.ws-disclosure > summary .icon { color: var(--gold-deep); transition: transform var(--dur); }
.ws-disclosure[open] > summary .icon { transform: rotate(45deg); }
.ws-disclosure[open] > summary { margin-bottom: 12px; }
.ws-disclosure__n { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 700; }
.ws-linklist { display: grid; gap: 2px; }
.ws-linklist a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; margin: 0 -12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.ws-linklist a:hover { background: var(--porcelain); }
.ws-linklist span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-linklist small { flex: none; color: var(--muted); font-weight: 500; font-size: .78rem; }

/* 04 · RFQs & QUOTES ------------------------------------------------------- */
.ws-compare tr.is-best { background: linear-gradient(90deg, rgba(242, 183, 5, .09), transparent 70%); }
.ws-best { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; background: var(--grad-gold); color: var(--gold-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; vertical-align: middle; }
.ws-quotes { display: grid; gap: 14px; }
.ws-quote { display: grid; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--hair); background: var(--paper); box-shadow: var(--sh-1); scroll-margin-top: 90px; transition: border-color var(--dur), box-shadow var(--dur); }
.ws-quote:hover { box-shadow: var(--sh-2); }
.ws-quote--accepted { border-color: rgba(31, 157, 107, .45); background: linear-gradient(180deg, #F3FBF7, var(--paper) 40%); }
.ws-quote--declined, .ws-quote--withdrawn { opacity: .72; }
.ws-quote__head { display: flex; align-items: flex-start; gap: 12px; }
.ws-quote__who { display: grid; gap: 4px; min-width: 0; flex: 1; }
.ws-quote__name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.ws-quote__name:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.ws-quote__loc { display: inline-flex; align-items: center; gap: 7px; font-size: .8125rem; color: var(--muted); }
.ws-quote__price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ws-quote__price strong { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + .8vw, 2rem); letter-spacing: -.03em; line-height: 1; }
.ws-quote__price small { color: var(--muted); font-size: .9rem; }
.ws-quote__total { margin-left: 4px; padding: 3px 9px; border-radius: 8px; background: var(--porcelain); font-size: .8125rem; color: var(--ink-2); font-weight: 600; }
.ws-quote__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 12px; background: var(--porcelain); }
.ws-quote__facts > div { padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.ws-quote__facts > div + div { border-left: 1px solid var(--hair); }
.ws-quote__facts dt { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.ws-quote__facts dd { font-weight: 700; font-size: .9rem; color: var(--ink); }
.ws-expired { color: #A1342A !important; }
.ws-quote__notes { padding: 12px 14px; border-left: 3px solid var(--gold); background: #FFFCF2; border-radius: 0 10px 10px 0; color: var(--ink-2); font-size: .9rem; display: grid; gap: 8px; }
.ws-quote__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--hair); }
.ws-quote__time { font-size: .78rem; color: var(--muted-2); }
.ws-quote__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-quote__actions form { display: contents; }
.ws-waiting { display: flex; gap: 16px; align-items: center; padding: 22px; border-radius: 16px; border: 1px dashed var(--hair-2); background: var(--porcelain); }
.ws-waiting strong { font-family: var(--font-display); font-size: 1.05rem; }
.ws-waiting p { color: var(--muted); font-size: .9rem; margin-top: 3px; }
.ws-waiting__pulse { flex: none; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--graphite); color: var(--gold-hi); animation: ping 2.2s ease-out infinite; }
.ws-dl { display: grid; gap: 0; }
.ws-dl > div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hair); font-size: .9rem; }
.ws-dl > div:last-child { border-bottom: 0; }
.ws-dl dt { color: var(--muted); }
.ws-dl dd { font-weight: 600; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.ws-dl dd a { color: var(--gold-deep); }
.ws-details { font-size: .92rem; padding-top: 4px; }
.ws-steps { display: grid; }
.ws-steps li { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 12px; padding-bottom: 16px; }
.ws-steps li:last-child { padding-bottom: 0; }
.ws-steps li:not(:last-child)::before { content: ""; position: absolute; left: 12px; top: 26px; bottom: 0; width: 2px; background: var(--hair); }
.ws-steps li.is-done:not(:last-child)::before { background: linear-gradient(var(--gold), var(--hair)); }
.ws-steps__dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--porcelain-2); color: var(--muted); border: 1px solid var(--hair-2); font-size: 12px; font-weight: 800; }
.ws-steps li.is-done .ws-steps__dot { background: var(--graphite); color: var(--gold-hi); border-color: var(--graphite); }
.ws-steps--rejected .ws-steps__dot { background: var(--danger) !important; color: #fff !important; border-color: var(--danger) !important; }
.ws-steps--changes_requested .ws-steps__dot { background: var(--warning) !important; color: #fff !important; border-color: var(--warning) !important; }
.ws-steps strong { display: block; font-size: .9rem; margin-top: 3px; }
.ws-steps time, .ws-steps p { display: block; font-size: .78rem; color: var(--muted); margin-top: 1px; }
.ws-kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.ws-kpis > div { display: grid; gap: 4px; padding: 12px 14px; background: var(--porcelain); min-width: 0; }
.ws-kpis > div + div { border-left: 1px solid var(--hair); }
.ws-kpis span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.ws-kpis strong { font-size: .98rem; overflow-wrap: anywhere; }
.ws-kpis strong small { font-weight: 500; color: var(--muted); }
.ws-ref-product { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.ws-ref-product a { color: var(--gold-deep); font-weight: 700; }
.ws-myquote--accepted { border-color: rgba(31, 157, 107, .45); background: linear-gradient(180deg, #F3FBF7, var(--paper) 50%); }
.ws-quote-form { border-color: rgba(201, 148, 0, .35); box-shadow: 0 0 0 4px rgba(242, 183, 5, .07), var(--sh-1); scroll-margin-top: 90px; }
.ws-decline > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; font-size: .9rem; color: var(--ink-2); list-style: none; }
.ws-decline > summary::-webkit-details-marker { display: none; }
.ws-decline > summary .icon { color: var(--muted); }
.ws-decline[open] > summary { margin-bottom: 4px; }
.ws-buyer__id { display: flex; align-items: center; gap: 12px; }
.ws-buyer__id > div { display: grid; gap: 3px; }
.ws-buyer__id > div > span { display: inline-flex; align-items: center; gap: 7px; font-size: .84rem; color: var(--muted); }
.ws-compete { display: flex; align-items: baseline; gap: 8px; }
.ws-compete strong { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.03em; }
.ws-compete span { color: var(--muted); font-size: .9rem; }

/* 05 · INBOX --------------------------------------------------------------- */
.ws-inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: clamp(540px, calc(100vh - 230px), 900px); overflow: hidden; padding: 0; }
.ws-inbox__list { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--hair); background: #FCFBF8; }
.ws-inbox__tools { display: grid; gap: 10px; padding: 14px; border-bottom: 1px solid var(--hair); }
.ws-convs { flex: 1; overflow-y: auto; padding: 6px; scrollbar-width: thin; }
.ws-conv { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px; border-radius: 12px; text-decoration: none; color: inherit; transition: background-color var(--dur); }
.ws-conv:hover { background: var(--porcelain); }
.ws-conv.is-active { background: var(--paper); box-shadow: var(--sh-2), inset 3px 0 0 var(--gold); }
.ws-conv__body { display: grid; gap: 2px; min-width: 0; }
.ws-conv__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ws-conv__top strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-conv__top time { flex: none; font-size: .72rem; color: var(--muted-2); }
.ws-conv__subject { font-size: .8125rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-conv__preview { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-conv.is-unread .ws-conv__top strong, .ws-conv.is-unread .ws-conv__preview { color: var(--ink); font-weight: 700; }
.ws-conv .count-dot { margin-top: 2px; }
.ws-inbox__empty { padding: 10px; }
.ws-inbox__thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--paper); }
.ws-thread__head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--hair); }
.ws-thread__back { display: none; }
.ws-thread__who { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ws-thread__name { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink); text-decoration: none; }
a.ws-thread__name:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.ws-thread__meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.ws-thread__meta span { overflow: hidden; text-overflow: ellipsis; }
.ws-thread__rfq { flex: none; }
.ws-thread__rfq:hover { border-color: var(--ink); }
.ws-thread__body { flex: 1; overflow-y: auto; padding: 20px clamp(14px, 2.4vw, 28px); display: flex; flex-direction: column; gap: 6px;
  background: radial-gradient(60% 50% at 100% 0%, rgba(242, 183, 5, .05), transparent 70%), linear-gradient(180deg, #FBFAF6, var(--paper) 30%); scroll-behavior: smooth; }
.ws-thread__body:focus-visible { outline-offset: -2px; }
.ws-sys { align-self: center; display: inline-flex; align-items: center; gap: 6px; max-width: 520px; margin: 4px 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--porcelain-2); color: var(--muted); font-size: .8rem; text-align: center; }
.ws-day { align-self: center; margin: 10px 0 6px; }
.ws-day span { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hair); font-size: 11px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.ws-msg { display: grid; justify-items: start; gap: 3px; max-width: min(76%, 640px); animation: fadeUp .25s var(--ease-out); }
.ws-msg--mine { align-self: flex-end; justify-items: end; }
.ws-msg__bubble { padding: 10px 14px; border-radius: 16px 16px 16px 4px; background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--sh-1); font-size: .93rem; line-height: 1.5; color: var(--ink); overflow-wrap: anywhere; }
.ws-msg--mine .ws-msg__bubble { border-radius: 16px 16px 4px 16px; background: linear-gradient(160deg, #1D2836, #111824); border-color: #111824; color: #F1F3F5; box-shadow: 0 6px 16px -10px rgba(10, 13, 18, .6); }
.ws-msg__meta { font-size: .7rem; color: var(--muted-2); padding: 0 4px; }
.ws-msg.is-pending .ws-msg__bubble { opacity: .6; }
.ws-composer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; padding: 12px 16px 10px; border-top: 1px solid var(--hair); background: var(--paper); }
.ws-composer__input { min-height: 46px; max-height: 180px; resize: none; padding: 12px 14px; line-height: 1.4; }
.ws-composer__send { height: 46px; }
.ws-composer__hint { grid-column: 1 / -1; font-size: .72rem; color: var(--muted-2); }
.ws-thread__placeholder { flex: 1; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 32px; }
.ws-thread__placeholder p { max-width: 40ch; }
.ws-thread__ph-art { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(circle at 50% 30%, rgba(242, 183, 5, .25), transparent 70%), linear-gradient(160deg, #1D2836, #0A0D12); color: var(--gold-hi); margin-bottom: 4px; }

/* 06 · SAVED & SETTINGS ---------------------------------------------------- */
.ws-saved__item { display: grid; gap: 10px; align-content: start; transition: opacity .3s var(--ease); }
.ws-saved__item.is-removed { opacity: .45; }
.ws-saved__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.ws-settings__nav { position: sticky; top: 86px; display: grid; gap: 2px; padding: 8px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.ws-settings__nav a { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.ws-settings__nav a .icon { color: var(--muted); }
.ws-settings__nav a:hover { background: var(--porcelain); }
.ws-settings__nav a.is-active { background: var(--graphite); color: #fff; }
.ws-settings__nav a.is-active .icon { color: var(--gold-hi); }
.ws-settings__body { display: grid; gap: 20px; min-width: 0; }
.ws-settings__card { scroll-margin-top: 90px; }
.ws-avatar-row { display: flex; gap: 18px; align-items: flex-start; padding-bottom: 6px; }
.ws-avatar-row__pic .avatar { --s: 72px; font-size: 1.5rem; }
.ws-avatar-row .field { flex: 1; }
.ws-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ws-plan { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 14px; border: 1px solid var(--hair); background: var(--porcelain); }
.ws-plan.is-current { background: radial-gradient(120% 90% at 100% 0%, rgba(242, 183, 5, .14), transparent 55%), var(--paper); border-color: rgba(201, 148, 0, .45); box-shadow: 0 0 0 3px var(--gold-wash); }
.ws-plan__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-plan__price { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; }
.ws-plan__text { color: var(--muted); font-size: .84rem; }
.ws-plan form { margin-top: 4px; }
.ws-langs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ws-lang { position: relative; display: grid; gap: 3px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--hair-2); text-decoration: none; color: inherit; transition: border-color var(--dur); }
.ws-lang:hover { border-color: var(--ink); }
.ws-lang span { color: var(--muted); font-size: .84rem; }
.ws-lang .icon { position: absolute; right: 14px; top: 14px; color: var(--success); }
.ws-lang.is-active { border-color: var(--graphite); box-shadow: 0 0 0 3px var(--gold-wash); }

/* 07 · PAGE BUILDER -------------------------------------------------------- */
.ws-status-note { margin-top: -4px; }
.ws-builder { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.ws-builder--product { grid-template-columns: minmax(0, 1fr) 340px; }
.ws-builder__form { display: grid; gap: 18px; min-width: 0; }
.ws-builder__preview { position: sticky; top: 86px; display: grid; gap: 16px; min-width: 0; }
.ws-secnav { position: sticky; top: 74px; z-index: 20; display: flex; gap: 4px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--hair); box-shadow: var(--sh-2); overflow-x: auto; scrollbar-width: none; }
.ws-secnav::-webkit-scrollbar { display: none; }
.ws-secnav a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px; border-radius: 9px; color: var(--muted); font-size: .8125rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background-color var(--dur), color var(--dur); }
.ws-secnav a:hover { color: var(--ink); background: var(--porcelain); }
.ws-secnav a.is-active { background: var(--graphite); color: #fff; }
.ws-secnav a.is-active .icon { color: var(--gold-hi); }
.ws-section { scroll-margin-top: 140px; gap: 18px; }
.ws-section__head { display: flex; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--hair); }
.ws-section__icon { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--graphite); color: var(--gold-hi); }
.ws-meter { height: 4px; border-radius: 4px; background: var(--porcelain-2); overflow: hidden; }
.ws-meter span { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--warning); transition: width .3s var(--ease-out), background-color .3s; }
.ws-meter.is-ok span { background: var(--success); }
.ws-suggest { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ws-suggest > span { font-size: .78rem; color: var(--muted); font-weight: 600; margin-right: 2px; }
.ws-suggest .chip { min-height: 28px; font-size: .78rem; cursor: pointer; }
.ws-suggest .chip:hover { border-color: var(--ink); }
.ws-suggest .chip .icon { color: var(--gold-deep); }
.ws-suggest .chip.is-used { opacity: .4; pointer-events: none; }
.ws-media { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.ws-media__item { display: grid; gap: 8px; min-width: 0; scroll-margin-top: 140px; justify-items: start; }
.ws-media__item > .dropzone { width: 100%; }
.ws-media .dropzone--square .dropzone__area { padding: 20px 14px; }
.ws-media .dropzone--square .dropzone__previews { grid-template-columns: 120px; }
.ws-media .dropzone--square .dz-item { background: var(--paper); }
.ws-media .dropzone--square .dz-item img { object-fit: contain; padding: 10px; }
.ws-crop-guide { display: flex; gap: 16px; align-items: center; padding: 12px; border-radius: 12px; background: var(--porcelain); border: 1px solid var(--hair); }
.ws-crop-guide__frame { position: relative; flex: none; width: 150px; aspect-ratio: 3 / 1; border-radius: 8px; background: linear-gradient(135deg, #2A3646, #10151C); overflow: hidden; }
.ws-crop-guide__safe { position: absolute; inset: 10% 22%; display: grid; place-items: center; border: 1.5px dashed var(--gold-hi); border-radius: 6px; color: var(--gold-hi); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ws-upload .dropzone__area { padding: 22px 18px; }
.ws-glist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.ws-glist:empty { display: none; }
.ws-gitem { position: relative; display: grid; gap: 0; border-radius: 14px; border: 1px solid var(--hair); background: var(--paper); box-shadow: var(--sh-1); overflow: hidden; transition: box-shadow var(--dur), transform var(--dur), opacity var(--dur); }
.ws-gitem:hover { box-shadow: var(--sh-2); }
.ws-gitem.is-dragging { opacity: .45; transform: scale(.98); }
.ws-gitem.is-over { box-shadow: 0 0 0 3px var(--gold); }
.ws-gitem.is-uploading .ws-gitem__img::after { content: ""; position: absolute; inset: 0; background: rgba(255, 255, 255, .55); }
.ws-gitem.is-error { border-color: var(--danger); }
.ws-gitem__drag { position: absolute; left: 8px; top: 8px; z-index: 2; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(10, 13, 18, .7); color: #fff; cursor: grab; backdrop-filter: blur(6px); }
.ws-gitem__img { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--porcelain-2); overflow: hidden; }
.ws-gitem__img img { width: 100%; height: 100%; object-fit: cover; }
.ws-gitem__bar { position: absolute; left: 10px; right: 10px; bottom: 10px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .7); overflow: hidden; z-index: 2; }
.ws-gitem__bar span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s linear; }
.ws-gitem__err { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 6px 8px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 600; }
.ws-gitem__body { display: grid; gap: 8px; padding: 10px; }
.ws-gitem__tools { display: flex; align-items: center; gap: 2px; justify-content: flex-end; }
.ws-gitem__tools .icon-btn { width: 34px; height: 34px; }
.ws-gitem--img .ws-gitem__tools { padding: 8px; }
.ws-gitem--img .ws-setcover { margin-right: auto; }
.ws-cover-badge { position: absolute; right: 8px; top: 8px; display: none; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: var(--grad-gold); color: var(--gold-ink); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: var(--sh-2); }
.ws-glist--images .ws-gitem:first-child .ws-cover-badge { display: inline-flex; }
.ws-glist--images .ws-gitem:first-child .ws-setcover { visibility: hidden; }
.ws-glist--images .ws-gitem:first-child { border-color: rgba(201, 148, 0, .55); box-shadow: 0 0 0 3px var(--gold-wash); }
.ws-glist__empty { padding: 4px 2px; }
.ws-reqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.ws-reqs li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.ws-reqs__box { flex: none; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; border: 1.5px dashed #BDB8AA; color: var(--muted); }
.ws-reqs li.is-done .ws-reqs__box { background: var(--success); border: 0; color: #fff; }
.ws-reqs li.is-done .ws-reqs__box .icon { stroke-width: 3; }
.ws-flow { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-flow li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 5px; border-radius: 999px; background: var(--porcelain); border: 1px solid var(--hair); font-size: .8125rem; font-weight: 700; color: var(--muted); }
.ws-flow .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--hair-2); font-size: 12px; }
.ws-flow li.is-done { color: #13744E; background: var(--success-soft); border-color: rgba(31, 157, 107, .25); }
.ws-flow li.is-done .num { background: var(--success); border-color: var(--success); color: #fff; }
.ws-flow li.is-current { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.ws-flow li.is-current .num { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.ws-savebar { position: sticky; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 12px 10px 16px; border-radius: 16px; background: rgba(17, 24, 36, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--on-dark); box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .55); border: 1px solid rgba(242, 183, 5, .22); }
.ws-savebar__state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ws-savebar__dirty { display: inline-flex; align-items: center; gap: 6px; font-size: .8125rem; color: var(--gold-hi); font-weight: 600; }
.ws-savebar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.ws-savebar .btn--outline { background: rgba(255, 255, 255, .06); color: #fff; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.ws-savebar .btn--outline:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .5); }
.ws-savebar .btn--ghost { color: var(--on-dark-2); }
.ws-savebar .btn--ghost:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* 08 · PREVIEW ------------------------------------------------------------- */
.ws-preview { border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--hair); box-shadow: var(--sh-2); overflow: hidden; }
.ws-preview__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--slate); color: var(--on-dark-2); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ws-preview__bar .link-sm { margin-left: auto; color: var(--gold-hi); text-transform: none; letter-spacing: 0; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; }
.ws-preview__bar .link-sm:hover { text-decoration: underline; }
.ws-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ADE9B; box-shadow: 0 0 0 3px rgba(74, 222, 155, .2); animation: pulse 2.4s ease-in-out infinite; }
.ws-pv__cover { position: relative; aspect-ratio: 3 / 1; background: var(--navy); overflow: hidden; }
.ws-pv__cover > img, .ws-pv__cover > .art { width: 100%; height: 100%; object-fit: cover; }
.ws-pv__cover::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(10, 13, 18, .45)); pointer-events: none; }
.ws-pv__body { display: grid; gap: 8px; padding: 0 16px 16px; }
.ws-pv__logo { margin-top: -30px; position: relative; z-index: 2; }
.ws-pv__logo .logo-tile { border: 3px solid var(--paper); box-shadow: var(--sh-2); }
.ws-pv__name { font-size: 1.2rem; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ws-pv__tagline { color: var(--ink-2); font-size: .875rem; line-height: 1.45; }
.ws-pv__tagline.is-empty, .ws-pv__about.is-empty { color: var(--muted-2); font-style: italic; }
.ws-pv__loc, .ws-pv__ind { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); }
.ws-pv__ind .icon { color: var(--gold-deep); }
.ws-pv__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--hair); border-radius: 10px; background: var(--porcelain); margin-top: 4px; }
.ws-pv__facts > div { padding: 7px 9px; display: grid; gap: 1px; min-width: 0; }
.ws-pv__facts > div + div { border-left: 1px solid var(--hair); }
.ws-pv__facts dt { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); }
.ws-pv__facts dd { font-size: .78rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-pv__about { font-size: .8125rem; color: var(--ink-2); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.ws-pv__gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ws-pv__gallery:empty { display: none; }
.ws-pv__gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.ws-score { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 16px; }
.ws-score__ring { position: relative; width: 76px; height: 76px; }
.ws-score__ring > span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.ws-score strong { font-size: .9rem; }
.ws-score__list { display: grid; gap: 3px; margin-top: 6px; }
.ws-score__list li { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.ws-score__list li.is-done { color: var(--ink-2); }
.ws-score__list li.is-done .icon { color: var(--success); stroke-width: 3; }
.ws-preview--card { padding-bottom: 14px; }
.ws-preview--card .ws-pcard { margin: 14px 14px 0; box-shadow: var(--sh-2); }
.ws-preview--card .ws-pcard:hover { transform: none; }
.ws-preview__note { padding: 10px 16px 0; }

/* 09 · PRODUCTS & IMPORT --------------------------------------------------- */
.ws-specs { display: grid; gap: 8px; }
.ws-specs__head, .ws-spec { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr) 36px; gap: 8px; align-items: center; }
.ws-specs__head span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); padding-left: 4px; }
.ws-spec .icon-btn { width: 36px; height: 36px; }
.ws-specs__add { justify-self: start; }
.ws-import-result { border-color: rgba(31, 157, 107, .3); }
.ws-import-result__sum { display: grid; grid-template-columns: repeat(3, minmax(0, 120px)) minmax(0, 1fr); gap: 12px; align-items: stretch; }
.ws-bigstat { display: grid; gap: 2px; padding: 14px; border-radius: 14px; background: var(--porcelain); border: 1px solid var(--hair); }
.ws-bigstat strong { font-family: var(--font-display); font-size: 1.8rem; letter-spacing: -.03em; line-height: 1; }
.ws-bigstat span { font-size: .78rem; color: var(--muted); font-weight: 600; }
.ws-bigstat--ok { background: var(--success-soft); border-color: rgba(31, 157, 107, .25); }
.ws-bigstat--ok strong { color: #13744E; }
.ws-bigstat--bad { background: var(--danger-soft); border-color: rgba(210, 70, 58, .25); }
.ws-bigstat--bad strong { color: #A1342A; }
.ws-import-result__next { display: grid; gap: 10px; align-content: center; justify-items: start; padding: 0 8px; }
.ws-import-result__next p { color: var(--ink-2); font-size: .9rem; }
.ws-stepper li { background: var(--paper); color: var(--ink-2); }
.ws-stepper li .num { background: var(--graphite); color: var(--gold-hi); border-color: var(--graphite); }
.ws-filebox { position: relative; display: flex; align-items: center; gap: 14px; padding: 20px; border-radius: 16px; border: 1.5px dashed #C7C1B2; background: repeating-linear-gradient(135deg, rgba(17, 21, 27, .012) 0 8px, transparent 8px 16px), var(--paper); cursor: pointer; transition: border-color var(--dur), background-color var(--dur); }
.ws-filebox:hover, .ws-filebox:focus-within { border-color: var(--gold); background-color: #FFFCF1; }
.ws-filebox.has-file { border-style: solid; border-color: var(--success); background: var(--success-soft); }
.ws-filebox__icon { flex: none; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--gold-wash); color: var(--gold-deep); }
.ws-filebox.has-file .ws-filebox__icon { background: var(--success); color: #fff; }
.ws-filebox__text { display: grid; gap: 2px; min-width: 0; }
.ws-filebox__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-filebox__text small { color: var(--muted); font-size: .8125rem; }
.ws-filebox__input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.ws-coltable code { font-size: .82rem; font-weight: 600; color: var(--ink); background: var(--porcelain-2); padding: 2px 6px; border-radius: 5px; }
.ws-ex { color: var(--muted); font-size: .8rem; }
.ws-slugs { display: grid; gap: 2px; max-height: 340px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.ws-slugs li { display: grid; gap: 1px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.ws-slugs code { font-size: .78rem; color: var(--ink); }
.ws-slugs span { font-size: .75rem; color: var(--muted); }

/* 10 · VERIFICATION -------------------------------------------------------- */
.ws-vhero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 22px clamp(18px, 2.4vw, 28px); background: radial-gradient(80% 140% at 0% 0%, rgba(242, 183, 5, .12), transparent 60%), var(--paper); }
.ws-vhero__seal { width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center; background: var(--porcelain-2); color: var(--muted); }
.ws-vhero--documents .ws-vhero__seal { background: #EEF0F3; color: #3D4652; }
.ws-vhero--verified .ws-vhero__seal { background: var(--grad-gold); color: var(--gold-ink); box-shadow: var(--sh-gold); }
.ws-vhero--audited .ws-vhero__seal { background: linear-gradient(160deg, #1D2735, #0F151E); color: var(--gold-hi); box-shadow: 0 0 0 1px rgba(242, 183, 5, .35), var(--sh-2); }
.ws-vhero__body { display: grid; gap: 4px; }
.ws-vhero__body p:last-child { color: var(--muted); font-size: .9rem; max-width: 60ch; }
.ws-ladder { display: flex; gap: 6px; flex-wrap: wrap; }
.ws-ladder li { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 6px; border-radius: 999px; background: var(--porcelain); border: 1px solid var(--hair); font-size: .78rem; font-weight: 700; color: var(--muted); }
.ws-ladder li span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--hair-2); }
.ws-ladder li.is-done { color: var(--gold-deep); background: var(--gold-soft); border-color: rgba(138, 90, 0, .2); }
.ws-ladder li.is-done span { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.ws-docs { display: grid; gap: 8px; }
.ws-doc { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--hair); background: var(--paper); transition: border-color var(--dur), background-color var(--dur); }
.ws-doc.is-done { background: #F7FCF9; border-color: rgba(31, 157, 107, .3); }
.ws-doc.has-file { border-color: rgba(201, 148, 0, .5); background: #FFFCF2; }
.ws-doc__state { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--porcelain); color: var(--muted); }
.ws-doc.is-done .ws-doc__state { background: var(--success); color: #fff; }
.ws-doc.has-file .ws-doc__state { background: var(--gold); color: var(--gold-ink); }
.ws-doc__text { display: grid; gap: 2px; min-width: 0; }
.ws-doc__text strong { font-size: .92rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ws-doc__text p { color: var(--muted); font-size: .8125rem; line-height: 1.45; }
.ws-doc__file { cursor: pointer; }
.ws-doc__file .btn { pointer-events: none; max-width: 210px; }
.ws-doc__file .btn span { overflow: hidden; text-overflow: ellipsis; }
.ws-doc__file:focus-within .btn { box-shadow: var(--ring); }
.ws-files { display: grid; gap: 6px; }
.ws-files li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--porcelain); border: 1px solid var(--hair); }
.ws-files__icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--paper); color: var(--ink-2); border: 1px solid var(--hair); }
.ws-files__name { display: grid; gap: 1px; min-width: 0; }
.ws-files__name a { font-weight: 700; font-size: .875rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-files__name small { font-size: .75rem; color: var(--muted); }

/* 11 · ANALYTICS ----------------------------------------------------------- */
.ws-chart--alt .chart__bar { fill: #3B4A5E; }
.ws-chart--alt .chart__bar:last-of-type { fill: var(--graphite); }
.ws-chart--alt .chart__bar:hover { fill: var(--gold); }
.ws-hbar { display: inline-block; vertical-align: middle; width: min(140px, 60%); height: 8px; border-radius: 4px; background: var(--porcelain-2); overflow: hidden; margin-right: 8px; }
.ws-hbar span { display: block; height: 100%; border-radius: 4px; background: var(--grad-gold-x); }
.ws-hbar__n { font-weight: 700; font-size: .875rem; }
.ws-funnel { display: grid; gap: 14px; }
.ws-funnel__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .875rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.ws-funnel__row span { display: inline-flex; align-items: center; gap: 8px; }
.ws-funnel__row .icon { color: var(--gold-deep); }
.ws-funnel__row strong { font-family: var(--font-display); font-size: 1.05rem; }
.ws-funnel__bar { display: block; height: 10px; border-radius: 6px; background: var(--porcelain-2); overflow: hidden; }
.ws-funnel__bar span { display: block; height: 100%; min-width: 4px; border-radius: 6px; background: linear-gradient(90deg, #1D2836, #3B4A5E); }
.ws-funnel li:first-child .ws-funnel__bar span { background: var(--grad-gold-x); }
.ws-funnel--countries .ws-funnel__bar span { background: linear-gradient(90deg, #C99400, var(--gold-hi)); }

/* 12 · RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 1320px) {
  .ws-builder, .ws-builder--product { grid-template-columns: minmax(0, 1fr) 320px; }
  .ws-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-kpis > div:nth-child(4) { border-left: 0; }
  .ws-kpis > div:nth-child(n+4) { border-top: 1px solid var(--hair); }
}
@media (max-width: 1180px) {
  .ws-split, .ws-split--wide { grid-template-columns: minmax(0, 1fr); }
  .ws-aside { position: static; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
  .ws-builder, .ws-builder--product { grid-template-columns: minmax(0, 1fr); }
  .ws-builder__preview { position: static; order: -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .ws-builder--product .ws-builder__preview { order: 0; }
  .ws-howto__steps { grid-template-columns: 1fr; }
  .ws-import-result__sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-import-result__next { grid-column: 1 / -1; padding: 0; }
  .ws-vhero { grid-template-columns: auto minmax(0, 1fr); }
  .ws-ladder { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .ws-inbox { grid-template-columns: 290px minmax(0, 1fr); }
  .ws-secnav { top: 70px; }
}
@media (max-width: 900px) {
  .ws-inbox { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 520px; }
  .ws-inbox__list { border-right: 0; }
  .ws-inbox .ws-inbox__thread { display: none; }
  .ws-inbox.has-thread .ws-inbox__list { display: none; }
  .ws-inbox.has-thread .ws-inbox__thread { display: flex; height: calc(100vh - 150px); min-height: 480px; }
  .page-inbox.has-thread .ws-inbox-head { display: none; }
  .ws-thread__back { display: grid; margin-left: -8px; }
  .ws-convs { max-height: none; }
  .ws-settings { grid-template-columns: minmax(0, 1fr); }
  .ws-settings__nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; }
  .ws-settings__nav a { white-space: nowrap; flex: none; }
  .ws-plans { grid-template-columns: minmax(0, 1fr); }
  .ws-media { grid-template-columns: minmax(0, 1fr); }
  .ws-builder__preview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .ws-search { min-width: 0; width: 100%; }
  .ws-toolbar > .ws-tabs { width: 100%; }
  .ws-choice-cards, .ws-langs, .ws-reqs { grid-template-columns: minmax(0, 1fr); }
  .ws-quote__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-quote__facts > div:nth-child(3) { border-left: 0; }
  .ws-quote__facts > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .ws-quote__foot { flex-direction: column; align-items: stretch; }
  .ws-quote__actions { justify-content: stretch; }
  .ws-quote__actions .btn { flex: 1; }
  .ws-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-kpis > div:nth-child(odd) { border-left: 0; }
  .ws-kpis > div:nth-child(4) { border-left: 1px solid var(--hair); }
  .ws-kpis > div:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .ws-msg { max-width: 88%; }
  .ws-composer__send span { display: none; }
  .ws-composer__send { width: 46px; padding: 0; }
  .ws-composer__hint { display: none; }
  .ws-doc { grid-template-columns: 36px minmax(0, 1fr); }
  .ws-doc__file { grid-column: 2; }
  .ws-specs__head { display: none; }
  .ws-spec { grid-template-columns: minmax(0, 1fr) 36px; }
  .ws-spec input:nth-child(2) { grid-column: 1; }
  .ws-spec .icon-btn { grid-row: 1 / span 2; grid-column: 2; }
  .ws-spec { padding-bottom: 10px; border-bottom: 1px dashed var(--hair); }
  .ws-savebar { bottom: 8px; padding: 10px; }
  .ws-savebar__actions { width: 100%; }
  .ws-savebar__actions .btn { flex: 1; }
  .ws-crop-guide { flex-direction: column; align-items: flex-start; }
  .ws-avatar-row { flex-direction: column; }
  .ws-import-result__sum { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ws-bigstat strong { font-size: 1.4rem; }
  .ws-vhero { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .ws-table__act { text-align: left; }
  .ws-rowact { flex-wrap: wrap; }
  .ws-glist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-gitem__tools .icon-btn { width: 32px; height: 32px; }
}
@media (max-width: 400px) {
  .ws-glist { grid-template-columns: minmax(0, 1fr); }
}

/* Guard: form help text stays a plain block even if another stylesheet reuses the .help class for a layout. */
p.help, span.help, .field > .help, .label-row > .help { display: block; grid-template-columns: none; gap: 0; }
.label-row > .help { flex: none; }
.ws-ph { visibility: hidden; pointer-events: none; }
.ws-nowrap { white-space: nowrap; }
@media (max-width: 760px) { .ws-ph { display: none; } .ws-nowrap { white-space: normal; } }
p.help > .icon, .fineprint > .icon, .ws-sys > .icon { display: inline-block; vertical-align: -2px; }
.ws-file::file-selector-button { margin-right: 12px; height: 30px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--hair-2); background: var(--porcelain); color: var(--ink); font-weight: 700; font-size: .8125rem; cursor: pointer; }
.ws-file::file-selector-button:hover { border-color: var(--ink); }
.ws-wl p, .ws-tips p { font-size: .9rem; }

/* Shared factory-card fix (used on dashboards + catalog): keep the name below the cover edge instead of overlapping the photo. */
.fcard--grid .fcard__titles { align-self: flex-start; margin-top: 30px; }
@media (max-width: 700px) { .fcard--list .fcard__titles { align-self: flex-start; margin-top: 30px; } }
