/* LeadDNA OS workspace shell: light, quiet chrome — white sidebar with large plain links, a slim top bar,
   a greeting with ask box and start cards, and a clean table of your work. Only for registered businesses (.os-shell). */
.os-shell { --sidebar-w: 270px; }
.os-shell .sidebar { background: var(--bg-elev); color: var(--text); border-right: 1px solid var(--border); padding: 16px 0 10px; scrollbar-color: var(--border) transparent; }
.os-shell .ws { padding: 2px 22px 18px; }
.os-shell .ws-name { color: var(--text); font-size: 20px; letter-spacing: -.5px; }
.os-shell .ws-name em { color: var(--accent); }
.os-shell .ws-sub { color: var(--text-3); letter-spacing: .3px; text-transform: none; font-size: 12px; font-weight: 500; }
.os-shell .search-btn { display: none; }
.os-shell .nav { color: var(--text); font-size: 15.5px; font-weight: 500; padding: 11px 22px; margin: 0; border-radius: 0; gap: 14px; }
.os-shell .nav svg { width: 19px; height: 19px; color: var(--text-2); opacity: 1; }
.os-shell .nav:hover { background: var(--bg-hover); color: var(--text); }
.os-shell .nav.active { background: var(--bg-sub); color: var(--text); font-weight: 700; }
.os-shell .nav.active::before { left: 0; top: 6px; bottom: 6px; width: 3px; background: var(--text); }
.os-shell .nav.active svg { color: var(--text); }
.os-shell .nav .count { background: var(--danger-weak); color: var(--danger); }
.os-shell .nav-chev { margin-left: auto; display: flex; } .os-shell .nav-chev svg { width: 16px; height: 16px; }
.os-shell .upg { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; background: #fff4d6; color: #a86a00; font-size: 12px; font-weight: 600; border: 1px solid #f6dfa0; }
.os-shell .upg svg { width: 12px; height: 12px; color: #a86a00; }
.os-div { height: 1px; background: var(--border); margin: 8px 0; }
.os-shell .side-foot { border-top: 1px solid var(--border); padding-top: 8px; }
.os-shell .header { padding: 0 24px; gap: 14px; }
.os-upgrade { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 8px; background: #2563eb; color: #fff; font-weight: 600; font-size: 14px; text-decoration: none; }
.os-upgrade:hover { background: #1d4ed8; color: #fff; text-decoration: none; } .os-upgrade svg { width: 15px; height: 15px; }
.os-credits { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; text-decoration: none; }
.os-credits svg { width: 17px; height: 17px; color: #16a34a; } .os-credits b { color: var(--text); font-weight: 700; }
.os-user { display: flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; text-align: left; padding: 4px; color: var(--text); }
.os-user b { display: block; font-size: 14px; line-height: 1.2; } .os-user small { display: block; font-size: 12px; color: var(--text-3); }
.os-user .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent-ink); font-weight: 700; }

/* home */
.os-home { max-width: 1320px; }
.home-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 18px; }
.home-top h1 { font: 700 30px/1.2 var(--display); letter-spacing: -.02em; margin: 0; color: var(--text); }
.os-show { display: inline-flex; align-items: center; gap: 6px; } .os-show svg { width: 14px; height: 14px; }
.os-ask2 { display: flex; align-items: center; gap: 12px; max-width: 690px; border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 8px 8px 14px; background: var(--bg-elev); margin-bottom: 28px; }
.os-ask2:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
.os-ask2 .orb { width: 22px; height: 22px; border-radius: 50%; flex: none; background: conic-gradient(from 200deg, #0bb3a2, #3a6fd8, #7a5cf0, #f0a020, #0bb3a2); }
.os-ask2 input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 400 15.5px var(--font); color: var(--text); }
.os-ask2 .go { width: 32px; height: 32px; border-radius: 7px; border: 0; background: #93b4f5; color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.os-ask2 .go svg { width: 16px; height: 16px; transform: rotate(-90deg); } .os-ask2:focus-within .go { background: #2563eb; }
.start-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 40px; }
.start-card { display: block; padding: 22px 22px 20px; border-radius: 12px; background: var(--bg-sub); border: 1px solid transparent; box-shadow: 0 2px 6px rgba(16, 31, 59, .06); color: var(--text); text-decoration: none; }
.start-card:hover { border-color: var(--border-strong); background: var(--bg-elev); text-decoration: none; }
.start-card b { display: flex; align-items: center; gap: 10px; font: 600 18px var(--font); margin-bottom: 8px; }
.start-card small { display: block; color: var(--text-2); font-size: 14px; line-height: 1.45; padding-left: 36px; }
.sc-ic { width: 26px; height: 26px; display: grid; place-items: center; flex: none; } .sc-ic svg { width: 24px; height: 24px; stroke-width: 2.4; }
.c-green { color: #16a34a; } .c-pink { color: #db2777; } .c-orange { color: #f59e0b; } .c-blue { color: #0ea5e9; }
.seg-tabs { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; margin-bottom: 26px; }
.seg-tabs button { border: 0; background: var(--bg-elev); padding: 9px 30px; font: 500 15.5px var(--font); color: var(--text); cursor: pointer; border-right: 1px solid var(--border-strong); }
.seg-tabs button:last-child { border-right: 0; } .seg-tabs button.on { color: #2563eb; box-shadow: inset 0 0 0 2px #2563eb; border-radius: 6px; }
.files-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; } .files-head h2 { font: 700 24px var(--display); margin: 0; letter-spacing: -.01em; }
.files-search { display: flex; align-items: center; gap: 8px; width: 272px; max-width: 45vw; height: 40px; border: 1px solid var(--border-strong); border-radius: 6px; padding: 0 12px; background: var(--bg-elev); }
.files-search svg { width: 16px; height: 16px; color: var(--text-3); } .files-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 14px var(--font); color: var(--text); }
.os-new { height: 40px; background: #2563eb; color: #fff; border: 0; font-size: 15px; padding: 0 16px; } .os-new:hover { background: #1d4ed8; color: #fff; }
.files-filter { border-top: 1px solid var(--border); margin: 0 -28px; padding: 12px 28px; display: flex; gap: 12px; }
.seg-sel { display: inline-flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 6px; overflow: hidden; font-size: 14px; }
.seg-sel span { padding: 5px 10px; border-right: 1px solid var(--border-strong); } .seg-sel select { border: 0; background: var(--bg-elev); padding: 5px 8px; font: 14px var(--font); color: var(--text); }
.files-table { margin: 0 -28px; overflow-x: auto; } .files-table table { width: 100%; border-collapse: collapse; font-size: 15px; }
.files-table th { text-align: left; font-weight: 600; font-size: 14.5px; color: var(--text); padding: 12px 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); white-space: nowrap; }
.files-table th:first-child, .files-table td:first-child { padding-left: 28px; } .files-table th:last-child, .files-table td:last-child { padding-right: 20px; }
.files-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text); }
.files-table tbody tr[data-href] { cursor: pointer; } .files-table tbody tr[data-href]:hover td { background: var(--bg-hover); }
.files-table .c { text-align: center; } .files-table .r { text-align: right; }
.files-table .nm { display: flex; align-items: center; gap: 10px; max-width: 560px; } .files-table .nm svg { width: 17px; height: 17px; color: var(--text-3); flex: none; }
.files-table .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13.5px; color: var(--text-2); margin-right: 6px; white-space: nowrap; }
.tag::before { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #a855f7; }
.tag.t-done::before, .tag.t-on::before { border-color: #16a34a; } .tag.t-failed::before { border-color: #ef4444; } .tag.t-running::before, .tag.t-queued::before { border-color: #f59e0b; } .tag.t-paused::before { border-color: #94a3b8; }
.star { border: 0; background: none; cursor: pointer; color: var(--text-2); padding: 4px; } .star svg { width: 19px; height: 19px; } .star.on svg { fill: var(--text-2); }
.dots { width: 30px; height: 30px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--bg-elev); cursor: pointer; display: grid; place-items: center; color: var(--text-2); }
.dots svg { width: 15px; height: 15px; }
.owner { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); } .avatar.xs { width: 22px; height: 22px; font-size: 11px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-weak); color: var(--accent-ink); font-weight: 700; }
.empty-row { text-align: center; color: var(--text-3); padding: 40px 14px !important; }
/* Long sector categories stay inside their column */
.os-shell .lgrid .c-cat { min-width: 0; overflow: hidden; }
.os-shell .lgrid .c-cat .cat { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: middle; }

/* International buyers */
.ib-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.ib-steps .panel { margin: 0; } .ib-n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; margin-right: 8px; }
.ib-table .why { color: var(--text-2); font-size: 13px; margin-top: 2px; }
@media (max-width: 1100px) { .ib-steps { grid-template-columns: minmax(0, 1fr); } }

/* Item quotations */
.grid-qi { display: grid; grid-template-columns: minmax(0, 2.4fr) 70px 70px 110px 70px 34px; gap: 6px; align-items: center; margin-bottom: 6px; }
.qi-head { font-size: 11.5px; font-weight: 600; } .qi-total { text-align: right; margin-top: 10px; font-size: 14px; }
@media (max-width: 860px) { .grid-qi { grid-template-columns: 1fr 1fr 1fr; } .qi-head { display: none; } }

/* Find leads */
.lf-form { display: grid; grid-template-columns: 1.4fr 1fr 150px auto; gap: 12px; align-items: end; }
@media (max-width: 860px) { .lf-form { grid-template-columns: minmax(0, 1fr); } }
.lead-list { border-top: 1px solid var(--border); }
.lead-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.lead-row:last-child { border-bottom: 0; } .lead-row.rejected { opacity: .55; }
.lead-row .title { font-weight: 700; font-size: 15.5px; } .lead-row .meta { color: var(--text-3); font-size: 13px; } .lead-row p { margin: 6px 0; color: var(--text-2); font-size: 14px; }
.lead-row .grow { min-width: 0; flex: 1; } .lead-row a { color: var(--accent-ink); }
.fit { width: 54px; height: 54px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; flex: none; background: var(--bg-sub); }
.fit b { font: 800 19px var(--display); line-height: 1; } .fit small { font-size: 10.5px; color: var(--text-3); }
.fit.hi { background: var(--tier-a-bg); color: var(--ok); } .fit.mid { background: var(--blue-weak); color: var(--blue); } .fit.lo { background: #fff4e0; color: #9a6200; }
.lead-act { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; flex: none; }
@media (max-width: 860px) { .lead-row { flex-wrap: wrap; padding: 14px 16px; } .lead-act { flex-direction: row; width: 100%; justify-content: flex-start; } }
.help-steps { padding-left: 18px; } .help-steps li { margin-bottom: 8px; }
@media (max-width: 1100px) { .start-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .home-top h1 { font-size: 23px; } .start-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 24px; }
  .start-card { padding: 16px; }
  .seg-tabs { display: flex; width: 100%; } .seg-tabs button { flex: 1; padding: 9px 4px; font-size: 14px; }
  .files-head { flex-wrap: wrap; } .files-search { width: auto; flex: 1; max-width: none; }
  .files-filter, .files-table { margin: 0 -16px; } .files-filter { padding: 10px 16px; } .files-table th:first-child, .files-table td:first-child { padding-left: 16px; }
  .files-table .nm { max-width: 52vw; } .os-shell .header { padding: 0 12px; gap: 8px; }
}

/* White work area like the rest of the chrome; panels keep their borders. */
.os-shell .view { background: var(--bg-elev); }
.os-shell .panel, .os-shell .wcard { box-shadow: none; }
.os-home > .page-head .ph-main { display: none; }
@media (min-width: 861px) { .os-home > .page-head { display: none; } }

/* Work table: fit the screen — tags on one line, long names ellipsised, minor columns drop on narrower screens. */
.files-table table { table-layout: fixed; }
.files-table th:nth-child(1) { width: auto; } .files-table th:nth-child(2) { width: 90px; } .files-table th:nth-child(3) { width: 230px; }
.files-table th:nth-child(4) { width: 130px; } .files-table th:nth-child(5) { width: 130px; } .files-table th:nth-child(6) { width: 150px; } .files-table th:nth-child(7) { width: 60px; }
.files-table .nm { max-width: none; min-width: 0; }
.files-table td:nth-child(3) { white-space: nowrap; overflow: hidden; }
.files-table .owner { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
@media (max-width: 1280px) { .files-table th:nth-child(4), .files-table td:nth-child(4), .files-table th:nth-child(6), .files-table td:nth-child(6) { display: none; } }
@media (max-width: 860px) {
  .files-table th:nth-child(2) { width: 56px; } .files-table th:nth-child(5) { width: 92px; } .files-table th:nth-child(7) { width: 44px; }
  .files-table td, .files-table th { padding: 12px 8px; font-size: 14px; }
}

/* Phone headers in the same light style as the desktop chrome. */
@media (max-width: 860px) {
  .os-shell .page-head { background: var(--bg-elev); color: var(--text); border-bottom: 1px solid var(--border); border-radius: 0; padding-bottom: 16px; }
  .os-shell .mh-brand, .os-shell .mh-brand b { color: var(--text); }
  .os-shell .mh-brand b em { color: var(--accent); }
  .os-shell .mh-brand small { display: none; }
  .os-shell .mh-btn { background: var(--bg-sub); color: var(--text); }
  .os-shell .ph-main h1 { color: var(--text); font-size: 24px; }
  .os-shell .ph-main p { color: var(--text-2); }
  .os-shell .ph-main .actions .btn.primary { background: #2563eb; border: 0; color: #fff; }
  .os-home > .page-head { margin-bottom: 12px; }
  .os-shell .page-head::after { display: none; }   /* the rounded sheet belongs to the dark header design */
}
.files-table th:nth-child(3) { width: 270px; }


/* Searching animation (research runs in the background; no internal steps are shown) */
.sa { display: flex; gap: 28px; align-items: center; padding: 28px; }
.sa-visual { position: relative; width: 132px; height: 132px; flex: none; }
.sa-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--accent); opacity: 0; animation: sa-ripple 2.6s ease-out infinite; }
.sa-ring.d2 { animation-delay: .85s; } .sa-ring.d3 { animation-delay: 1.7s; }
.sa-sweep { position: absolute; inset: 14px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 290deg, color-mix(in srgb, var(--accent) 45%, transparent) 360deg); animation: sa-spin 2.2s linear infinite; }
.sa-core { position: absolute; inset: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--accent-ink); box-shadow: 0 0 0 1px var(--border), 0 8px 24px -10px rgba(16,24,40,.25); }
.sa-core svg { width: 26px; height: 26px; }
.sa-text { min-width: 0; flex: 1; }
.sa-text > b { display: block; font-size: 17px; color: var(--text); }
.sa-sub { display: block; margin-top: 4px; color: var(--text-3); font-size: 13.5px; }
.sa-bar { margin-top: 14px; height: 6px; border-radius: 99px; background: var(--bg-sub); overflow: hidden; }
.sa-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent), #17C8CC); transition: width .6s ease; }
.sa-meta { margin-top: 8px; font-size: 13px; color: var(--text-2); }
.sa-places { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.sa-places span { font-size: 12px; padding: 4px 10px; border-radius: 99px; background: var(--bg-sub); color: var(--text-3); animation: sa-pulse 5.6s ease-in-out infinite; }
@keyframes sa-ripple { 0% { transform: scale(.35); opacity: .7; } 100% { transform: scale(1); opacity: 0; } }
@keyframes sa-spin { to { transform: rotate(360deg); } }
@keyframes sa-pulse { 0%, 100% { background: var(--bg-sub); color: var(--text-3); } 8%, 14% { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent-ink); } 22% { background: var(--bg-sub); color: var(--text-3); } }
@media (prefers-reduced-motion: reduce) { .sa-ring, .sa-sweep, .sa-places span { animation: none; } .sa-ring { opacity: .25; } }
@media (max-width: 640px) { .sa { flex-direction: column; text-align: center; padding: 22px 16px; } .sa-places { justify-content: center; } }
/* Market snapshot cards and "found in" chips on buyer results */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; padding: 16px 20px; border-top: 1px solid var(--border); }
.mk-card { border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.mk-card .mk-k { font-size: 12px; color: var(--text-3); } .mk-card .mk-v { font-weight: 700; font-size: 18px; color: var(--text); }
.mk-card .mk-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-top: 4px; }
.via { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--bg-sub); color: var(--text-2); margin: 4px 4px 0 0; }
.callout.ok { border-left-color: var(--ok); }
