:root {
  --ink: #15372e;
  --ink-deep: #0c2b23;
  --forest: #124b3a;
  --forest-light: #1c6650;
  --green: #23775a;
  --sell: #277456;
  --sell-soft: #e1efe7;
  --buy: #a36518;
  --buy-soft: #f6ead6;
  --lime: #d5e7a6;
  --cream: #f5f2e9;
  --paper: #fffefa;
  --white: #ffffff;
  --line: #dbe3de;
  --line-dark: #b9c7c0;
  --muted: #62766e;
  --muted-light: #a9bbb4;
  --shadow: 0 16px 45px rgba(18, 65, 51, 0.08);
  --shell: 1280px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
.hidden { display: none !important; }
.anchor-target { position: absolute; top: 0; }
button, a { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.page-shell { width: min(var(--shell), calc(100% - 80px)); margin-inline: auto; }

/* Header */
.topbar { min-height: 76px; display: flex; align-items: center; gap: 38px; padding: 10px max(40px, calc((100vw - var(--shell)) / 2)); border-bottom: 1px solid rgba(21, 55, 46, 0.12); background: rgba(255, 254, 250, 0.97); position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); text-decoration: none; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; display: block; position: relative; overflow: hidden; border-radius: 6px; background: white; }
.brand-mark img { width: 237%; max-width: none; height: auto; position: absolute; top: -39%; left: -68%; display: block; }
.brand-name { font: 700 21px "Manrope", sans-serif; letter-spacing: -0.5px; }
.brand-tag { padding-left: 10px; border-left: 1px solid var(--line-dark); color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.header-actions { display: flex; align-items: center; gap: 9px; margin-right: auto; margin-left: clamp(16px, 3vw, 48px); min-width: 0; }
.auth-actions { display: flex; align-items: center; gap: 9px; }
.member-identity { max-width: 290px; display: inline-flex; align-items: center; gap: 12px; overflow: hidden; padding: 8px 10px; border: 0; background: transparent; color: var(--forest); font-size: 11px; font-weight: 700; white-space: nowrap; }
.member-company-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-dashboard-label { flex: 0 0 auto; padding-left: 12px; border-left: 1px solid var(--line-dark); text-decoration: none; }
.publication-declaration { display: flex; align-items: flex-start; gap: 10px; }
.publication-declaration input { flex: 0 0 auto; margin-top: 3px; }
.publication-declaration-copy { display: grid; gap: 4px; }
.admin-button { border-color: #dfc998; background: var(--buy-soft); color: #7b4d13; }
.language { display: flex; align-items: center; gap: 3px; margin-right: 4px; color: #a1ada8; }
.lang { min-width: 29px; min-height: 34px; padding: 0; border: 0; background: transparent; color: #84938d; font-size: 11px; font-weight: 700; }
.lang.active { color: var(--forest); text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.button { min-height: 42px; padding: 10px 17px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--ink); font-weight: 700; font-size: 13px; transition: background 150ms ease, border-color 150ms ease, transform 150ms ease; }
.button:hover { transform: translateY(-1px); }
.primary { background: var(--forest); color: var(--white); }
.primary:hover { background: var(--ink-deep); }
.danger { background: #a94235; color: var(--white); }
.danger:hover { background: #873228; }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.login-button { border-color: transparent; }
.login-button:hover { background: #eef3f0; }
.notification-control { position: relative; }
.notification-bell { min-width: 42px; position: relative; display: grid; place-items: center; padding-inline: 10px; }
.notification-menu { width: min(380px, calc(100vw - 32px)); max-height: min(520px, calc(100vh - 100px)); position: absolute; top: calc(100% + 10px); right: 0; overflow-y: auto; padding: 10px; border: 1px solid var(--line-dark); border-radius: 10px; background: white; box-shadow: 0 20px 55px rgba(18, 65, 51, .2); }
.notification-menu h2 { margin: 4px 6px 10px; font-size: 18px; }
.notification-item { width: 100%; display: grid; gap: 5px; padding: 13px 12px; border: 0; border-top: 1px solid var(--line); background: white; color: var(--ink); text-align: left; }
.notification-item:first-child { border-top: 0; }
.notification-item.unread { border-left: 3px solid var(--green); background: var(--sell-soft); }
.notification-item strong { font: 700 13px "Manrope", sans-serif; }
.notification-item span, .notification-item time { color: var(--muted); font-size: 12px; line-height: 1.45; }
.notification-empty { margin: 0; padding: 22px 12px; color: var(--muted); text-align: center; }

/* Hero */
.hero { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--cream); }
.hero-copy { min-height: 670px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(460px, 0.8fr); align-items: center; gap: clamp(55px, 7vw, 110px); padding-block: 75px; }
.hero-content { max-width: 690px; }
.eyebrow, .kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow-line { width: 27px; border-top: 2px solid var(--green); }
h1, h2, h3 { margin: 0; font-family: "Manrope", Arial, sans-serif; }
h1 { max-width: 720px; margin: 21px 0 22px; color: var(--ink-deep); font-size: clamp(43px, 4.7vw, 67px); line-height: 1.04; letter-spacing: -0.052em; }
.hero-description { max-width: 625px; margin: 0; color: #536a61; font-size: 17px; line-height: 1.72; }
.trust-line { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 31px; color: #5d7269; font-size: 12px; }
.trust-line > span { display: inline-flex; align-items: center; gap: 7px; }
.trust-line i { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #b8cabc; border-radius: 50%; color: var(--green); font-style: normal; font-size: 10px; }

.hero-visual { min-height: 500px; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 3px 28px 3px 3px; background: linear-gradient(145deg, #0d352b 0%, #155440 55%, #2d7457 100%); box-shadow: 0 30px 70px rgba(11, 48, 37, 0.2); }
.visual-grid { position: absolute; inset: 0; opacity: 0.15; background-image: linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to bottom right, black, transparent 78%); }
.hero-visual::before { content: ""; width: 310px; height: 310px; position: absolute; right: -150px; bottom: -130px; border: 70px solid rgba(213, 231, 166, 0.11); border-radius: 50%; }
.visual-header { height: 64px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; padding: 0 24px; border-bottom: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.62); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; }
.live-indicator i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(213, 231, 166, 0.12); }
.signal-card { width: 57%; min-width: 250px; position: absolute; z-index: 2; padding: 20px; border-radius: 10px; background: rgba(255, 255, 255, 0.97); box-shadow: 0 18px 44px rgba(4, 27, 20, 0.25); }
.sell-signal { top: 104px; left: 27px; }
.buy-signal { right: 25px; bottom: 91px; }
.signal-heading { display: flex; align-items: center; justify-content: space-between; }
.verified-mark { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 10px; }
.signal-card > strong, .signal-card > small { display: block; }
.signal-card > strong { margin-top: 16px; color: var(--ink-deep); font: 700 17px "Manrope", sans-serif; }
.signal-card > small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.signal-route { display: flex; align-items: center; gap: 8px; margin-top: 17px; color: #5a7067; font-size: 10px; font-weight: 700; }
.signal-route i { flex: 1; position: relative; border-top: 1px dashed #acbab4; }
.signal-route i::after { content: "›"; position: absolute; right: -1px; top: -9px; }
.network-note { display: flex; align-items: center; gap: 10px; position: absolute; left: 24px; bottom: 23px; z-index: 2; color: white; }
.network-note strong, .network-note small { display: block; }
.network-note strong { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; }
.network-note small { margin-top: 2px; color: rgba(255, 255, 255, 0.58); font-size: 9px; }
.network-icon { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, 0.34); border-radius: 50%; color: var(--lime); }

/* Shared section headings */
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 50px; }
.heading-copy { display: flex; align-items: flex-start; gap: 19px; }
.section-index { padding-top: 7px; color: #9caaa4; font: 600 10px "Manrope", sans-serif; }
.kicker { margin-bottom: 9px; }
.sell-kicker { color: var(--sell); }
.buy-kicker { color: var(--buy); }
.section-heading h2, .network-copy h2 { color: var(--ink-deep); font-size: clamp(32px, 3vw, 43px); line-height: 1.12; letter-spacing: -0.035em; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.section-rule { height: 1px; margin: 31px 0 29px; background: var(--line); }
.section-rule span { width: 68px; display: block; border-top: 2px solid; }
.sell-rule { border-color: var(--sell) !important; }
.buy-rule { border-color: var(--buy) !important; }
.status-label { display: inline-flex; align-items: center; gap: 6px; color: #70827a; font-size: 9px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; }
.status-label i { width: 6px; height: 6px; border-radius: 50%; background: #73a464; }
.country-code { display: inline-flex; min-width: 27px; min-height: 21px; align-items: center; justify-content: center; padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; background: #f7f9f7; font-size: 10px; letter-spacing: 0.06em; }
.empty, .loading { min-height: 185px; grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; border: 1px dashed var(--line-dark); border-radius: 8px; color: var(--muted); text-align: center; }
.empty span { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; }
.empty strong { font-size: 13px; }

/* Verified network */
.network-section { padding: 100px 0; position: relative; overflow: hidden; background: var(--forest); color: var(--white); }
.network-section::after { content: ""; width: 600px; height: 600px; position: absolute; right: -350px; top: -300px; border: 1px solid rgba(213, 231, 166, 0.14); border-radius: 50%; box-shadow: 0 0 0 90px rgba(213, 231, 166, 0.035), 0 0 0 180px rgba(213, 231, 166, 0.025); }
.network-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(70px, 10vw, 150px); position: relative; z-index: 1; }
.kicker.light { color: var(--lime); }
.network-copy h2 { max-width: 570px; margin: 13px 0 20px; color: var(--white); font-size: clamp(34px, 3.4vw, 48px); }
.network-copy > p { max-width: 575px; margin: 0; color: #bed0c8; font-size: 15px; line-height: 1.72; }
.network-actions { display: flex; align-items: center; gap: 21px; margin-top: 31px; }
.light-button { background: var(--white); color: var(--forest); }
.light-button:hover { background: var(--lime); }
.text-button { display: inline-flex; align-items: center; gap: 8px; padding: 8px 0; border: 0; background: none; color: var(--white); font-size: 12px; font-weight: 700; }
.verification-list { border-top: 1px solid rgba(255, 255, 255, 0.17); }
.verification-list article { display: grid; grid-template-columns: 40px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.17); }
.verification-list article > span { padding-top: 2px; color: var(--lime); font: 600 10px "Manrope", sans-serif; }
.verification-list strong { font: 600 15px "Manrope", sans-serif; }
.verification-list p { margin: 6px 0 0; color: #a9c0b7; font-size: 12px; line-height: 1.55; }

/* Company and footer */
.company-strip { padding: 45px 0; border-bottom: 1px solid var(--line); background: var(--cream); }
.company-strip-layout { display: grid; grid-template-columns: 1.1fr 1fr auto; align-items: center; gap: 45px; }
.company-strip-layout > div span, .company-strip-layout > div strong { display: block; }
.company-strip-layout > div span { margin-bottom: 7px; color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.company-strip-layout > div strong { font: 600 19px "Manrope", sans-serif; }
.company-strip-layout > p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.outline-dark { border-color: var(--line-dark); background: transparent; color: var(--forest); }
.outline-dark:hover { border-color: var(--forest); }
footer { padding: 46px 0; background: var(--paper); }
.footer-layout { display: grid; grid-template-columns: auto minmax(180px, 1fr) auto auto; align-items: center; gap: 34px; }
.footer-brand .brand-mark { width: 31px; height: 31px; font-size: 14px; }
.footer-brand .brand-name { font-size: 18px; }
.footer-layout > p { margin: 0; color: var(--muted); font-size: 11px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; }
.footer-links a { color: var(--forest); font-size: 10px; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--green); text-decoration: underline; }
.footer-meta { display: flex; align-items: flex-end; flex-direction: column; gap: 3px; color: #7b8e86; font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.footer-meta small { font-size: 9px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.footer-layout > .footer-company { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid var(--line); color: #71827b; font-size: 10px; text-align: center; }
.toast { max-width: min(390px, calc(100vw - 32px)); position: fixed; right: 22px; bottom: 22px; z-index: 30; padding: 15px 19px; border-left: 3px solid var(--lime); border-radius: 5px; background: var(--ink-deep); color: white; box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24); font-size: 12px; transform: translateY(90px); opacity: 0; pointer-events: none; transition: transform 220ms ease, opacity 220ms ease; }
.toast.visible { transform: none; opacity: 1; }
.dashboard-back-to-top { width: 44px; height: 44px; position: fixed; right: 22px; bottom: 22px; z-index: 18; display: grid; place-items: center; padding: 0; border: 1px solid rgba(21, 55, 46, .18); border-radius: 50%; background: rgba(255, 254, 250, .94); color: var(--forest); box-shadow: 0 8px 24px rgba(18, 65, 51, .16); font-size: 20px; line-height: 1; cursor: pointer; backdrop-filter: blur(8px); }
.dashboard-back-to-top:hover { border-color: var(--green); color: var(--green); }

/* Authentication and private areas */
.portal-view { min-height: calc(100vh - 76px); padding: 75px 0 100px; background: #f3f5f2; }
.portal-shell { display: flex; flex-direction: column; gap: 30px; }
.portal-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark); }
.portal-heading h1 { margin: 9px 0 10px; font-size: clamp(38px, 4vw, 56px); }
.portal-heading p { max-width: 630px; margin: 0; color: var(--muted); }
.portal-workspace { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: start; gap: 28px; }
.portal-navigation { position: sticky; top: 98px; display: grid; gap: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: white; box-shadow: 0 8px 28px rgba(18, 65, 51, .04); }
.portal-navigation button { min-height: 46px; padding: 11px 13px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 700 13px "Manrope", sans-serif; text-align: left; }
.portal-navigation button:hover, .portal-navigation button.active { background: var(--forest); color: white; }
.portal-content { min-width: 0; }
.portal-content > [data-portal-panel] { flex-direction: column; gap: 30px; }
.portal-content > [data-portal-panel]:not(.hidden) { display: flex; }
.mobile-portal-navigation { display: none; }
[data-portal-panel="activity"].received-interests-only > :not(#received-interests-section) { display: none; }
[data-portal-panel="activity"].represented-companies-only > :not(#broker-section) { display: none; }
.quick-actions-section { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.quick-actions-section .portal-section-heading { margin-top: 0; }
.dashboard-quick-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.quick-action-card { min-height: 92px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf8; color: var(--ink); text-align: left; }
.quick-action-card:hover { border-color: var(--green); box-shadow: 0 7px 22px rgba(18, 65, 51, .08); }
.quick-action-card span { color: var(--green); font-size: 18px; }
.quick-action-card strong { align-self: flex-end; font: 700 14px "Manrope", sans-serif; }
.quick-action-card[data-sent-interests-action] { position: relative; align-items: center; justify-content: center; padding-inline: 42px; text-align: center; }
.quick-action-card[data-sent-interests-action] span { position: absolute; top: 17px; left: 17px; }
.quick-action-card[data-sent-interests-action] strong { align-self: center; }
.dashboard-attention-section { padding: 24px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.dashboard-attention-section .portal-section-heading { margin-top: 0; }
.dashboard-attention { display: grid; gap: 10px; margin-top: 18px; }
.dashboard-attention button { min-height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf8; color: var(--ink); text-align: left; }
.dashboard-attention button:hover { border-color: var(--green); }
.dashboard-attention button span { color: var(--green); font-size: 18px; }
.company-summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 25px 28px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 28px rgba(18, 65, 51, 0.05); }
.company-summary div > span, .company-summary div > strong, .company-summary div > small { display: block; }
.company-summary div > span { color: #8c9b95; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.company-summary div > strong { margin: 6px 0 4px; font: 700 21px "Manrope", sans-serif; }
.company-summary div > small { color: var(--muted); }
.company-profile-card { padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 8px 28px rgba(18, 65, 51, 0.04); }
.company-profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.company-profile-heading h2 { margin: 0; font-size: 25px; }
.company-detail-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px 34px; padding-top: 24px; }
.company-detail-sections section { min-width: 0; }
.company-detail-sections h3 { margin: 0 0 13px; color: var(--green); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.company-capabilities { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(0, 1.4fr); gap: 24px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.company-capabilities h3 { margin: 0 0 7px; color: var(--green); font-size: 14px; }
.company-capabilities p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.company-capabilities form { min-width: 0; }
.capability-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.capability-option { min-height: 52px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; flex-direction: row; align-items: center; gap: 10px; background: #f8faf8; color: var(--ink); font-size: 13px; letter-spacing: 0; text-transform: none; cursor: pointer; }
.capability-option input { width: 22px; min-height: 22px; margin: 0; accent-color: var(--green); }
.capability-pill { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 8px 12px; border-radius: 999px; background: var(--sell-soft); color: var(--sell); font-weight: 700; }
.account-type-read-only { align-self: center; color: var(--ink); font: 700 16px "Manrope", sans-serif; }
.capability-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin-top: 14px; }
.capability-actions .form-feedback { flex: 1; }
.company-detail-sections dl, .company-detail-sections p { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 0; color: var(--ink); font-size: 12px; line-height: 1.55; }
.company-detail-sections dt { margin-bottom: 3px; color: #8b9a94; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.company-detail-sections dd { margin: 0; overflow-wrap: anywhere; }
.company-detail-sections .wide { grid-column: 1 / -1; }
.verified-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 5px; background: var(--sell-soft); color: var(--sell); font-size: 11px; font-weight: 700; }
.verified-status i { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 50%; background: var(--sell); color: white; font-style: normal; font-size: 10px; }
.portal-section-heading { margin-top: 25px; }
.portal-section-heading h2, .admin-user-panel h2 { margin: 5px 0 0; font-size: 30px; }

.admin-view { background: var(--cream); }
.admin-navigation { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.admin-navigation button { min-height: 40px; padding: 9px 18px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: 700 11px "DM Sans", sans-serif; }
.admin-navigation button:hover, .admin-navigation button.active { background: var(--forest); color: white; }
.admin-page { display: flex; flex-direction: column; gap: 22px; }
.admin-dashboard-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.admin-dashboard-cards button { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; min-height: 180px; padding: 28px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); text-align: left; }
.admin-dashboard-cards button:hover { border-color: var(--green); box-shadow: var(--shadow); }
.admin-dashboard-cards span { grid-row: 1 / 3; color: var(--green); font: 700 10px "Manrope", sans-serif; }
.admin-dashboard-cards strong { align-self: end; font: 700 25px "Manrope", sans-serif; }
.admin-dashboard-cards small { align-self: start; color: var(--muted); font-size: 12px; }
.admin-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.admin-page-heading h2 { margin: 5px 0 3px; font-size: 27px; }
.admin-page-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-page-heading > span { min-width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 11px; font-weight: 700; }
.maintenance-card { display: grid; gap: 22px; padding: 26px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.maintenance-warning { padding: 18px; border-left: 4px solid #a94235; border-radius: 5px; background: #fff3f1; }
.maintenance-warning strong { color: #873228; font: 700 17px "Manrope", sans-serif; }
.maintenance-warning p { margin: 7px 0 0; color: #75463f; line-height: 1.55; }
.cleanup-preview { min-height: 62px; }
.cleanup-counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.cleanup-counts div { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--cream); }
.cleanup-counts dt { color: var(--muted); font-size: 11px; }
.cleanup-counts dd { margin: 6px 0 0; color: var(--ink-deep); font: 700 22px "Manrope", sans-serif; }
.maintenance-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.credential-email-card { display: grid; gap: 18px; padding: 23px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.credential-email-card h3 { margin: 5px 0 7px; font-size: 23px; }
.credential-email-card > div > p { margin: 0; color: var(--muted); line-height: 1.55; }
.credential-email-form { display: grid; gap: 14px; }
.credential-email-body { min-height: 300px; font-family: "DM Sans", sans-serif; line-height: 1.55; }
.credential-email-preview { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 7px; background: var(--cream); }
.credential-email-preview dl { display: grid; gap: 8px; margin: 0 0 15px; }
.credential-email-preview dl div { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr); gap: 10px; }
.credential-email-preview dt { color: var(--muted); font-weight: 700; }
.credential-email-preview dd { margin: 0; overflow-wrap: anywhere; }
.credential-email-preview pre { max-height: 420px; margin: 0; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 13px/1.6 "DM Sans", sans-serif; }
.company-export-card, .company-deletion-card { margin-top: 22px; }
.company-export-card h3, .company-deletion-card h3 { margin: 5px 0 7px; font-size: 23px; }
.company-export-card > div > p, .company-deletion-card > div > p { margin: 0; color: var(--muted); line-height: 1.55; }
.test-company-list { display: grid; gap: 9px; }
.test-company-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; }
.test-company-row > label { display: flex; align-items: center; gap: 11px; min-width: 0; }
.test-company-row input[type="checkbox"] { width: 18px; height: 18px; }
.test-company-row strong, .test-company-row small { display: block; }
.test-company-row strong { overflow-wrap: anywhere; }
.test-company-row small { margin-top: 3px; color: var(--muted); }
.demo-protection { min-width: 138px; }
.demo-protection.protected { border-color: #a36518; background: var(--buy-soft); color: #7b4d13; }
.company-deletion-selection { margin: 0 0 12px; color: var(--muted); }
.company-deletion-blockers { display: grid; gap: 10px; }
.company-deletion-blockers > strong { color: #873228; }
.company-deletion-blockers article { padding: 14px; border: 1px solid #e8c7c1; border-radius: 7px; background: #fff7f5; }
.company-deletion-blockers h4, .company-deletion-blockers p, .company-deletion-blockers ul { margin: 0; }
.company-deletion-blockers ul { padding: 8px 0 0 20px; color: #75463f; }
.company-deletion-blockers p { padding-top: 8px; color: var(--muted); }
.admin-filters { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(2, minmax(150px, .45fr)) auto; align-items: end; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
#company-search-form { grid-template-columns: minmax(220px, 1fr) minmax(170px, .45fr) auto; }
.admin-filters .button { min-height: 43px; }
.commercial-history-filters { grid-template-columns: repeat(3, minmax(160px, 1fr)); }
.commercial-history-filter-actions { display: flex; align-items: stretch; gap: 8px; }
.commercial-history-results { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.commercial-history-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.commercial-history-table th, .commercial-history-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; overflow-wrap: anywhere; }
.commercial-history-table th { background: #f8faf8; color: var(--muted); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; }
.commercial-history-table td { color: var(--ink); font-size: 12px; line-height: 1.45; }
.commercial-history-table tbody tr:last-child td { border-bottom: 0; }
.commercial-history-table th:nth-child(1) { width: 15%; }
.commercial-history-table th:nth-child(2) { width: 18%; }
.commercial-history-table th:nth-child(3) { width: 19%; }
.commercial-history-table th:nth-child(4) { width: 17%; }
.commercial-history-table th:nth-child(5) { width: 19%; }
.commercial-history-table th:nth-child(6) { width: 12%; }
.commercial-history-table .button { min-height: 36px; padding: 8px 11px; font-size: 10px; }
.commercial-history-detail-panel { width: min(900px, 100%); }
.commercial-history-detail { display: grid; gap: 20px; }
.commercial-history-detail .modal-heading { margin-bottom: 0; }
.commercial-history-detail section { padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.commercial-history-detail section h3 { margin: 0 0 14px; font-size: 18px; }
.commercial-history-detail dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin: 0; }
.commercial-history-detail dt { margin-bottom: 4px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.commercial-history-detail dd { margin: 0; overflow-wrap: anywhere; font-size: 13px; }
.commercial-history-limited { margin: 0; padding: 14px; border-left: 4px solid var(--buy); background: var(--buy-soft); color: var(--ink); }
.admin-paged-list { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.admin-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 15px; border-top: 1px solid var(--line); background: #f8faf8; }
.admin-pagination:empty { display: none; }
.admin-pagination .button { min-height: 35px; padding: 7px 12px; font-size: 9px; }
.admin-pagination span { min-width: 105px; color: var(--muted); font-size: 11px; text-align: center; }
.admin-groups { display: flex; flex-direction: column; gap: 36px; }
.admin-group { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.admin-group-heading { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #f8faf8; }
.admin-group-heading h2 { margin: 0; font-size: 17px; }
.admin-group-heading > span { min-width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 10px; font-weight: 700; }
.admin-company-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.admin-company-list > .empty { grid-column: 1 / -1; margin: 18px; }
.admin-company-card { padding: 23px; border-bottom: 1px solid var(--line); }
.admin-company-card:nth-child(odd) { border-right: 1px solid var(--line); }
.admin-company-head { display: flex; align-items: center; justify-content: space-between; }
.status-pill { padding: 5px 8px; border-radius: 4px; font-size: 8px; font-weight: 700; letter-spacing: .08em; }
.status-pill.pending { background: var(--buy-soft); color: var(--buy); }
.status-pill.verified { background: var(--sell-soft); color: var(--sell); }
.status-pill.rejected { background: #f3e1df; color: #954a40; }
.status-pill.suspended { background: #f3e1df; color: #954a40; }
.status-pill.open { background: var(--sell-soft); color: var(--sell); }
.status-pill.closed { background: #e7ebea; color: var(--muted); }
.status-pill.cancelled { background: #f3e1df; color: #954a40; }
.deal-room-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.deal-room-card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.deal-room-card:nth-child(2n) { border-right: 0; }
.deal-room-card button { width: 100%; min-height: 154px; padding: 22px 24px; border: 0; background: white; color: var(--ink); text-align: left; }
.deal-room-card button:hover { background: #f8faf8; }
.deal-room-card-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.deal-room-card-top > span:first-child { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.deal-room-card h3 { margin: 16px 0 7px; font-size: 20px; }
.deal-room-card p, .deal-room-card small { margin: 0; color: var(--muted); font-size: 12px; }
.deal-room-card small { display: block; margin-top: 7px; }
.deal-room-modal-panel { width: min(980px, 100%); }
.deal-room-context { margin-top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.deal-room-context > .status-pill { display: inline-block; margin-bottom: 17px; }
.deal-room-context dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; }
.deal-room-context dt { color: #8b9a94; font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.deal-room-context dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.deal-status-actions { display: flex; gap: 10px; margin-top: 18px; }
.deal-status-company { max-width: 320px; margin-top: 18px; }
.deal-room-block { margin-top: 24px; }
.deal-room-block > h3 { margin: 0 0 13px; font-size: 21px; }
.deal-room-microcopy { margin: -7px 0 13px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.deal-proposal-list, .deal-message-list { display: flex; flex-direction: column; gap: 10px; }
.deal-proposal-empty { padding: 12px 14px; border-left: 3px solid var(--line-dark); border-radius: 4px; background: #f8faf8; color: var(--muted); font-size: 12px; line-height: 1.5; }
.deal-proposal-empty p { margin: 3px 0 0; }
.deal-proposal, .deal-message { padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.deal-proposal > div, .deal-message > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.deal-proposal .deal-proposal-author { display: grid; gap: 2px; }
.deal-proposal-author > span { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.deal-proposal span, .deal-message span { color: var(--muted); font-size: 10px; }
.deal-proposal h4 { margin: 11px 0 5px; font-size: 17px; }
.deal-proposal p, .deal-proposal small, .deal-message p { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.deal-message p { color: var(--ink); font-size: 14px; white-space: pre-wrap; }
.deal-proposal-form, .deal-message-form { margin-top: 15px; padding: 18px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf8; }
.deal-proposal-form-title { margin: 0; color: var(--forest); font-size: 17px; }
.deal-offer-toggle { display: flex; justify-content: flex-end; margin-top: 15px; }
.proposal-image-section { min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.proposal-image-section legend { padding: 0 6px; font-weight: 700; }
.proposal-image-section > p { margin: 0 0 10px; color: var(--muted); font-size: 11px; }
.deal-proposal-gallery { margin-top: 12px; }
.deal-message-form { display: grid; gap: 13px; }
.deal-message-form .button { justify-self: end; }
.admin-company-card h3 { margin: 16px 0; font-size: 20px; }
.admin-company-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; margin: 0; }
.admin-company-card dt { margin-bottom: 3px; color: #8b9a94; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-company-card dd { margin: 0; overflow-wrap: anywhere; font-size: 11px; }
.admin-company-card dl .wide { grid-column: 1 / -1; }
.trial-summary { margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 7px; background: #f7faf8; }
.trial-summary h4 { margin: 0 0 12px; }
.trial-status { display: inline-block; padding: 5px 8px; border-radius: 4px; background: #e7ebea; color: var(--muted); font-size: 9px; font-weight: 700; }
.trial-status.trial_active { background: var(--sell-soft); color: var(--sell); }
.trial-status.trial_expired, .trial-status.trial_not_eligible { background: #f3e1df; color: #954a40; }
.trial-company-message { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; padding: 14px 16px; border-left: 4px solid #8b9a94; background: #f7faf8; color: var(--muted); }
.trial-company-message > div { display: grid; gap: 4px; }
.trial-company-message small { display: block; color: var(--muted); font-size: 11px; line-height: 1.45; }
.trial-company-message.trial_active { border-left-color: var(--sell); }
.trial-company-message.trial_expired, .trial-company-message.trial_not_eligible { border-left-color: #954a40; }
.admin-company-card > p { min-height: 39px; margin: 16px 0 7px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.admin-company-card > small { color: #8c9c95; font-size: 9px; }
.admin-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.admin-card-meta small { color: #8c9c95; font-size: 9px; }
.admin-card-meta .button { min-height: 31px; padding: 6px 10px; font-size: 9px; }
.admin-card-actions { margin-top: 17px; padding-top: 16px; border-top: 1px solid var(--line); }
.admin-card-actions textarea { width: 100%; min-height: 59px; resize: vertical; padding: 9px; border: 1px solid var(--line); border-radius: 5px; font: 11px inherit; }
.admin-card-actions > div { display: flex; gap: 8px; margin-top: 8px; }
.approve-button { background: var(--sell); color: white; }
.reject-button { border-color: #d8b5b0; color: #91473d; }
.admin-user-panel { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; margin-top: 25px; padding: 30px; border-radius: 9px; background: var(--forest); color: white; }
.admin-user-panel h2 { color: white; }
.admin-user-panel > div p { color: #b7cac2; line-height: 1.6; }
.compact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.compact-form .form-feedback, .compact-form > button { align-self: end; }
.admin-users-section { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.admin-users-section .admin-filters { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.admin-users-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 23px; border-bottom: 1px solid var(--line); background: #f8faf8; }
.admin-users-heading h2 { margin: 5px 0 3px; font-size: 24px; }
.admin-users-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.admin-users-heading > span { min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: 11px; font-weight: 700; }
.admin-users-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-user-card { display: flex; min-width: 0; flex-direction: column; gap: 16px; padding: 22px; border-bottom: 1px solid var(--line); }
.admin-user-card:nth-child(odd) { border-right: 1px solid var(--line); }
.admin-user-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-user-card h3 { margin: 0 0 4px; font-size: 18px; }
.admin-user-card-head div > span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.admin-user-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0; }
.admin-user-card dt { margin-bottom: 3px; color: #8b9a94; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.admin-user-card dd { margin: 0; font-size: 11px; }
.admin-user-card .button { align-self: flex-start; min-height: 34px; padding: 7px 11px; font-size: 9px; }
.user-status { flex: 0 0 auto; padding: 6px 9px; border-radius: 4px; font-size: 9px; font-weight: 700; }
.user-status.active { background: var(--sell-soft); color: var(--sell); }
.user-status.inactive { background: #f3e1df; color: #954a40; }
.user-company-detail { padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #f8faf8; }
.user-company-detail .company-profile-heading { padding-bottom: 13px; }
.user-company-detail .company-profile-heading h2 { font-size: 19px; }
.user-company-detail .company-detail-sections { grid-template-columns: 1fr; gap: 17px; padding-top: 16px; }
.user-modal { width: min(850px, 100%); }
.catalog-navigation { display: flex; gap: 5px; padding: 5px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.catalog-navigation button { flex: 1; min-height: 40px; padding: 9px 18px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: 700 11px "DM Sans", sans-serif; }
.catalog-navigation button:hover, .catalog-navigation button.active { background: var(--green); color: white; }
.catalog-workspace { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(400px, .8fr); gap: 26px; align-items: start; }
.catalog-workspace > div { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: white; }
.catalog-filters { grid-template-columns: repeat(2, minmax(180px, 1fr)); gap: 15px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.catalog-filters .button { grid-column: 1 / -1; width: 100%; }
.catalog-list > .empty { margin: 18px; }
.catalog-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.catalog-row:last-child { border-bottom: 0; }
.catalog-row small { color: var(--green); font-size: 9px; font-weight: 700; letter-spacing: .04em; }
.catalog-row h3 { margin: 4px 0 0; font-size: 17px; }
.catalog-row p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.catalog-row-detailed dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px 14px; margin: 12px 0 0; }
.catalog-row-detailed dl div { min-width: 0; }
.catalog-row-detailed dt { color: var(--muted); font-size: 8px; font-weight: 700; text-transform: uppercase; }
.catalog-row-detailed dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 10px; }
.catalog-actions { display: flex; gap: 7px; }
.catalog-actions .button { min-height: 32px; padding: 6px 9px; font-size: 8px; }
.catalog-editor { grid-template-columns: minmax(0, 1fr); gap: 17px; width: 100%; padding: 27px; border-radius: 9px; background: var(--forest); color: white; }
.catalog-editor h3 { grid-column: 1 / -1; margin: 0 0 5px; color: white; }
.catalog-editor label { width: 100%; gap: 8px; color: #d8e5df; }
.catalog-editor input:not([type="hidden"]), .catalog-editor select { width: 100%; min-height: 48px; padding: 12px 13px; }
.catalog-editor .form-feedback { grid-column: 1 / -1; }
.catalog-editor > .button { width: 100%; min-height: 44px; }

/* Sale lots */
.lots-section { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.lots-heading { display: flex; align-items: center; justify-content: space-between; padding: 24px; border-bottom: 1px solid var(--line); }
.lots-heading h2 { font-size: 27px; }
.lots-description { max-width: 720px; margin: 7px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.lot-filters { grid-template-columns: repeat(3, minmax(180px, 1fr)) auto; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.sale-lot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.sale-lot-grid > .empty { margin: 18px; }
.sale-lot-card { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sale-lot-card:nth-child(3n) { border-right: 0; }
.lot-card-main { flex: 1; padding: 22px; border: 0; background: white; color: var(--ink); text-align: left; }
.lot-card-main:hover { background: #fafcf9; }
.lot-card-top, .lot-commercial, .lot-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lot-status { padding: 5px 8px; border-radius: 4px; background: var(--sell-soft); color: var(--sell); font-size: 9px; font-weight: 700; text-transform: uppercase; }
.lot-status.upcoming { background: var(--buy-soft); color: var(--buy); }
.lot-status.expired { background: #f3e1df; color: #954a40; }
.sale-lot-card h3 { margin: 18px 0 5px; font-size: 19px; line-height: 1.3; }
.lot-company { margin: 0 0 17px; color: var(--muted); font-size: 11px; }
.sale-lot-card dl, .lot-detail-grid dl { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin: 0; }
.sale-lot-card dt, .lot-detail-grid dt { margin-bottom: 4px; color: #8a9a93; font-size: 8px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sale-lot-card dd, .lot-detail-grid dd { margin: 0; font-size: 11px; line-height: 1.45; }
.lot-certifications { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 17px; }
.lot-certifications span { max-width: 100%; padding: 4px 7px; border-radius: 20px; background: var(--sell-soft); color: var(--sell); font-size: 8px; font-weight: 700; overflow-wrap: anywhere; white-space: pre-wrap; }
.lot-commercial { padding: 12px 16px; border-top: 1px solid var(--line); background: #f8faf8; }
.lot-interest-state { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.lot-interest-state small { color: var(--muted); font-size: 10px; font-weight: 700; }
.lot-commercial > .button { flex: 0 0 auto; min-height: 31px; padding: 6px 9px; font-size: 9px; }
.lot-actions .button { min-height: 31px; padding: 6px 9px; font-size: 9px; }
.lot-actions select { min-height: 31px; padding: 5px 7px; border: 1px solid var(--line-dark); border-radius: 5px; background: white; font-size: 9px; }
.broker-company-card__body { padding: 20px; }
.broker-company-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.broker-company-card .user-status.pending { background: var(--buy-soft); color: var(--buy); }
.broker-company-card__name { margin: 16px 0 18px; overflow-wrap: anywhere; }
.sale-lot-card .broker-company-card__details { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.broker-company-card__details > div { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf8; }
.sale-lot-card .broker-company-card__details dt { margin-bottom: 5px; }
.sale-lot-card .broker-company-card__details dd { font-weight: 700; overflow-wrap: anywhere; }
.broker-company-card__operations { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.55; }
.broker-company-card__actions { align-items: stretch; }
.broker-company-card__actions .lot-actions { width: 100%; justify-content: flex-start; flex-wrap: wrap; }
.broker-company-card__actions .button.primary { order: -1; }
.rfq-interest-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); background: #fff; }
.rfq-interest-summary strong, .rfq-interest-summary span { display: block; font-size: 11px; line-height: 1.4; }
.rfq-interest-summary span { margin-top: 2px; color: var(--buy); font-weight: 700; }
.rfq-interest-summary .button { flex: 0 0 auto; min-height: 31px; padding: 6px 9px; font-size: 9px; }
.interest-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.interest-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.interest-card:nth-child(2n) { border-right: 0; }
.interest-card-content { min-width: 0; flex: 1; }
.interest-card h3 { margin: 10px 0 4px; font-size: 17px; }
.interest-card p, .interest-card small { margin: 0; color: var(--muted); font-size: 11px; }
.interest-card .interest-waiting { margin-top: 10px; color: var(--green-dark); font-weight: 700; line-height: 1.45; }
.interest-status { display: inline-flex; padding: 6px 9px; border-radius: 4px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.interest-status.pending { background: var(--buy-soft); color: var(--buy); }
.interest-status.accepted { background: var(--sell-soft); color: var(--sell); }
.interest-status.rejected { background: #f3e1df; color: #954a40; }
.interest-actions, .lot-detail-interest { display: flex; align-items: center; gap: 8px; }
.interest-contacts { margin-top: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf8; }
.interest-contacts h4 { margin: 0 0 10px; color: var(--green-dark); font-size: 12px; text-transform: uppercase; }
.interest-contacts dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 16px; margin: 0; }
.interest-contacts dt { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.interest-contacts dd { margin: 2px 0 0; overflow-wrap: anywhere; font-size: 11px; }
.lot-detail-interest { justify-content: flex-end; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.sale-lot-modal-panel { width: min(980px, 100%); }
.lot-form fieldset { gap: 18px; }
.input-with-suffix { display: grid; grid-template-columns: 1fr auto; }
.input-with-suffix input { border-radius: 6px 0 0 6px; }
.input-with-suffix strong { min-width: 55px; display: grid; place-items: center; padding: 0 10px; border: 1px solid #cbd6d0; border-left: 0; border-radius: 0 6px 6px 0; background: #f3f6f3; font-size: 12px; }
.lot-product-picker { position: relative; min-width: 0; }
.lot-product-results { max-height: 310px; display: grid; overflow-y: auto; border: 1px solid var(--line-dark); border-radius: 7px; background: white; box-shadow: 0 12px 28px rgba(7, 30, 23, .12); }
.lot-product-results button { min-width: 0; min-height: 64px; display: grid; gap: 3px; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; cursor: pointer; }
.lot-product-results button:last-child { border-bottom: 0; }
.lot-product-results button:hover, .lot-product-results button:focus-visible { background: var(--cream); outline: 2px solid var(--green); outline-offset: -2px; }
.lot-product-results strong, .lot-selected-product strong { overflow-wrap: anywhere; font-size: 13px; }
.lot-product-results span, .lot-selected-product span { overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.lot-product-results small, .lot-selected-product small, #lot-cn-path { overflow-wrap: anywhere; color: #73867d; font-size: 10px; }
.lot-product-results p { margin: 0; padding: 14px; color: var(--muted); font-size: 12px; }
.lot-selected-product { display: grid; gap: 4px; padding: 12px; border-left: 3px solid var(--green); border-radius: 4px; background: #f2f7f3; }
.lot-selected-product .button { width: fit-content; min-height: 40px; margin-top: 6px; }
.lot-cn-browser { display: grid; gap: 12px; justify-items: start; }
.lot-cn-browser-fields { width: 100%; display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #f8faf8; }
.lot-cn-browser-fields p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.mobile-image-upload { display: none; }
.mobile-image-upload > p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.mobile-image-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.image-picker-button { position: relative; min-height: 48px; display: flex; align-items: center; justify-content: center; overflow: hidden; text-align: center; cursor: pointer; }
.image-picker-button input { width: 1px; height: 1px; position: absolute; opacity: 0; pointer-events: none; }
.lot-image-manager { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.lot-image-manager > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 6px; background: #f8faf8; font-size: 11px; }
.lot-image-manager > div > div { display: flex; gap: 6px; }
.lot-image-manager .lot-image-manager-item { align-items: stretch; flex-direction: column; justify-content: flex-start; padding: 0; overflow: hidden; background: white; }
.lot-manager-thumbnail { width: 100%; display: block; padding: 0; border: 0; background: var(--line); cursor: zoom-in; }
.lot-manager-thumbnail img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); transition: transform 160ms ease; }
.lot-manager-thumbnail:hover img, .lot-manager-thumbnail:focus-visible img { transform: scale(1.035); }
.lot-image-manager .lot-image-manager-copy { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 9px; padding: 10px; }
.lot-image-manager-copy > span { overflow: hidden; color: var(--muted); text-overflow: ellipsis; white-space: nowrap; }
.lot-image-manager .lot-image-manager-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.lot-image-manager .button { min-height: 30px; padding: 5px 8px; font-size: 8px; }
.lot-image-manager p { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 11px; }
.lot-detail-grid { margin-top: 25px; }
.lot-detail-grid dl { gap: 20px; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.lot-detail-grid dd { font-size: 13px; }
.lot-detail-grid > p { margin: 22px 0 0; color: var(--muted); line-height: 1.7; }
.admin-readonly-card .lot-card-main { width: 100%; cursor: pointer; }
.admin-readonly-card .lot-card-main:focus-visible { outline: 3px solid var(--green); outline-offset: -3px; }
.admin-detail-link { width: fit-content; display: inline-flex; margin-top: 20px; border-bottom: 1px solid currentColor; color: var(--green-dark); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.admin-lot-detail-heading { padding-right: 44px; }
.admin-lot-statuses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.admin-lot-detail-actions { display: flex; margin-top: 20px; }
.admin-lot-detail-section { margin-top: 26px; }
.admin-lot-detail-section h3, .admin-lot-detail-sections h3 { margin: 0 0 14px; color: var(--green-dark); font-size: 14px; text-transform: uppercase; }
.admin-lot-empty-images { margin: 0; color: var(--muted); }
.admin-lot-detail-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.admin-lot-detail-sections section { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fbfcfa; }
.admin-lot-detail-sections dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; margin: 0; }
.admin-lot-detail-sections dl .wide { grid-column: 1 / -1; }
.admin-lot-detail-sections dd { overflow-wrap: anywhere; font-size: 12px; line-height: 1.55; }
.lot-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 180px)); justify-content: start; gap: 12px; margin-top: 25px; }
.lot-gallery-entry { min-width: 0; margin: 0; }
.lot-gallery-entry figcaption { margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.lot-gallery-item { width: 100%; display: block; padding: 0; border: 0; border-radius: 8px; overflow: hidden; background: var(--line); cursor: zoom-in; }
.lot-gallery img { width: 100%; max-width: 180px; display: block; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--line); transition: transform 160ms ease; }
.lot-gallery-item:hover img, .lot-gallery-item:focus-visible img { transform: scale(1.035); }
.image-lightbox { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 56px 24px 24px; background: rgba(3, 17, 13, .92); backdrop-filter: blur(7px); }
.image-lightbox img { max-width: min(92vw, 1200px); max-height: calc(100vh - 90px); width: auto; height: auto; object-fit: contain; border-radius: 8px; box-shadow: 0 24px 80px rgba(0, 0, 0, .55); }
.image-lightbox-close { width: 42px; height: 42px; position: absolute; top: 13px; right: 17px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%; background: rgba(5, 30, 23, .85); color: white; font-size: 25px; line-height: 1; }
.image-lightbox-close:hover, .image-lightbox-close:focus-visible { background: white; color: var(--forest); }
.legal-page { min-height: 100vh; background: var(--paper); color: var(--ink); }
.legal-header { padding: 20px 0; border-bottom: 1px solid var(--line); background: white; }
.legal-header .page-shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.legal-content { max-width: 820px; padding-block: 70px 90px; }
.legal-content h1 { margin-bottom: 18px; font-size: clamp(38px, 6vw, 64px); }
.legal-notice { padding: 18px 20px; border: 1px solid #e2c48e; border-radius: 8px; background: #fff8e9; color: #6e5429; line-height: 1.65; }
.legal-placeholder { margin-top: 34px; padding: 28px; border: 1px dashed var(--line-dark); border-radius: 10px; background: white; }
.legal-placeholder h2 { margin-top: 0; }
.legal-placeholder p { color: var(--muted); line-height: 1.7; }

@media (min-width: 1101px) {
  #category-search-form { grid-template-columns: minmax(240px, 1fr) minmax(150px, .5fr) auto; }
  #category-search-form .button { grid-column: auto; width: auto; min-width: 100px; }
  #product-search-form { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
  #product-search-form .button { grid-column: 2; }
  #variety-search-form { grid-template-columns: repeat(2, minmax(190px, 1fr)); }
}

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px; background: rgba(7, 30, 23, .72); backdrop-filter: blur(5px); }
.modal-panel { width: min(780px, 100%); max-height: calc(100vh - 48px); position: relative; overflow-y: auto; padding: 34px; border-radius: 12px; background: var(--paper); box-shadow: 0 30px 90px rgba(0, 0, 0, .35); }
.login-modal { width: min(455px, 100%); padding: 40px; }
.modal-close { width: 35px; height: 35px; position: absolute; top: 16px; right: 16px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--muted); font-size: 20px; }
.modal-heading { padding-right: 35px; }
.modal-heading h2 { margin: 8px 0 10px; font-size: 31px; letter-spacing: -.03em; }
.modal-heading p { max-width: 650px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 27px; }
.form-grid .wide { grid-column: 1 / -1; }
.sectioned-form > fieldset { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; }
.sectioned-form > fieldset legend { padding: 0 8px; color: var(--forest); font: 700 12px "Manrope", sans-serif; }
.access-trial-terms { padding: 18px 20px; border: 1px solid #c9d8cf; border-left: 4px solid var(--green); border-radius: 8px; background: #f3f8f4; }
.access-trial-terms h3 { margin: 0 0 10px; color: var(--forest); font-size: 16px; }
.access-trial-terms p { margin: 5px 0; color: var(--ink); font-size: 12px; line-height: 1.55; }
.access-trial-terms small { display: block; margin-top: 9px; color: var(--muted); font-size: 10px; line-height: 1.5; }
form label { display: flex; flex-direction: column; gap: 6px; color: #536a61; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.field-help { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; line-height: 1.45; text-transform: none; }
form input, form textarea, form select { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #cbd6d0; border-radius: 6px; outline: none; background: white; color: var(--ink); font: 13px "DM Sans", sans-serif; text-transform: none; }
form textarea { min-height: 90px; resize: vertical; }
form input:focus, form textarea:focus, form select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(35, 119, 90, .1); }
.form-submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 6px; }
.form-submit p { max-width: 370px; margin: 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.trade-form-submit { display: grid; justify-content: stretch; gap: 14px; }
.trade-form-submit > [data-close] { width: auto; justify-self: start; }
.form-publish-actions { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-publish-actions .button { width: 100%; min-width: 0; justify-content: center; text-align: center; }
.form-feedback { min-height: 18px; color: #a4483d; font-size: 11px; font-weight: 600; }
.form-feedback.success { color: #80c89d; }
button:disabled { cursor: wait; opacity: .55; }
.form-success { padding: 45px 10px 20px; text-align: center; }
.form-success > span { width: 56px; height: 56px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--sell-soft); color: var(--sell); font-size: 24px; }
.form-success h3 { font-size: 26px; }
.form-success p { max-width: 550px; margin: 12px auto 25px; color: var(--muted); line-height: 1.65; }
.login-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 32px; color: var(--forest); font: 700 20px "Manrope", sans-serif; }
.login-form { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.login-form > button { width: 100%; margin-top: 3px; }
.login-apply { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.login-apply button { padding: 0; border: 0; background: none; color: var(--green); font-size: 10px; font-weight: 700; }

/* Tablet */
.support-layout { display: grid; grid-template-columns: minmax(280px, .85fr) minmax(0, 1.6fr); gap: 24px; align-items: start; }
.support-list-panel, .support-detail-panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: white; }
.support-list-panel > .portal-section-heading { padding: 20px; border-bottom: 1px solid var(--line); }
.support-new-form { width: 100%; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr); gap: 18px; margin: 0 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 9px; background: #f8faf8; }
.support-new-form > label { min-width: 0; }
.support-new-form > label:nth-of-type(3), .support-new-form > .form-feedback { grid-column: 1 / -1; }
.support-new-form textarea { min-height: 180px; }
.support-new-form > button { grid-column: 2; min-width: 180px; justify-self: end; }
.support-ticket-list { display: flex; flex-direction: column; min-width: 0; }
.support-ticket-card { width: 100%; min-height: 112px; padding: 18px 20px; border: 0; border-bottom: 1px solid var(--line); background: white; color: var(--ink); text-align: left; }
.support-ticket-card:hover, .support-ticket-card.active { background: #f2f7f3; }
.support-ticket-card > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.support-ticket-card > div > span:first-child { color: var(--green); font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.support-ticket-card strong, .support-ticket-card p, .support-ticket-card small { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.support-ticket-card p, .support-ticket-card small { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.support-detail-panel { min-height: 260px; padding: 24px; }
.support-detail-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.support-detail-heading h2 { margin: 7px 0; font-size: 26px; }
.support-detail-heading > div > span, .support-detail-heading small { color: var(--muted); font-size: 11px; }
.support-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 20px 0; padding: 16px; background: #f8faf8; }
.support-meta dt { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.support-meta dd { margin: 5px 0 0; overflow-wrap: anywhere; font-size: 13px; }
.support-conversation { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.support-conversation h3 { margin: 0 0 4px; }
.support-message { max-width: 88%; padding: 15px 17px; border-radius: 9px; background: #f1f4f2; }
.support-message.admin { align-self: flex-end; background: var(--sell-soft); }
.support-message > div { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.support-message p { margin: 9px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.55; }
.support-reply-form { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.support-closed-notice { margin-top: 22px; padding: 15px; border-left: 3px solid var(--muted); background: #f1f3f2; color: var(--muted); }
.admin-support-layout { margin-top: 20px; }
.admin-support-layout > .support-ticket-list { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }

@media (max-width: 1100px) {
  .page-shell { width: min(100% - 56px, var(--shell)); }
  .topbar { padding-inline: 28px; gap: 20px; }
  .brand-tag { display: none; }
  .hero-copy { min-height: auto; grid-template-columns: 1fr 420px; gap: 45px; padding-block: 64px; }
  .hero-visual { min-height: 480px; }
  .sale-lot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale-lot-card:nth-child(3n) { border-right: 1px solid var(--line); }
  .sale-lot-card:nth-child(2n) { border-right: 0; }
  .network-layout { gap: 70px; }
}

@media (max-width: 860px) {
  html { scroll-padding-top: 74px; }
  .portal-workspace { display: block; }
  .portal-navigation { display: none; }
  .mobile-portal-navigation { position: fixed; right: 0; bottom: 0; left: 0; z-index: 19; display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 3px; padding: 7px max(8px, env(safe-area-inset-right, 0px)) calc(7px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); border-top: 1px solid var(--line-dark); background: rgba(255, 254, 250, .97); box-shadow: 0 -8px 24px rgba(18, 65, 51, .1); backdrop-filter: blur(14px); }
  .mobile-portal-navigation button { min-width: 0; min-height: 48px; padding: 7px 4px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font: 700 12px "Manrope", sans-serif; line-height: 1.2; }
  .mobile-portal-navigation button.active { background: var(--forest); color: white; }
  #member-area { padding-bottom: calc(105px + env(safe-area-inset-bottom, 0px)); }
  .header-actions { margin-right: auto; margin-left: 20px; }
  .hero-copy { grid-template-columns: 1fr; padding-block: 65px 52px; }
  .hero-content { max-width: 720px; }
  .hero-visual { width: min(100%, 650px); min-height: 430px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-rule { margin-top: 25px; }
  .network-layout { grid-template-columns: 1fr; gap: 56px; }
  .network-copy { max-width: 680px; }
  .company-strip-layout { grid-template-columns: 1fr auto; gap: 22px 35px; }
  .company-strip-layout > p { grid-column: 1 / -1; grid-row: 2; max-width: 650px; }
  .admin-company-list { grid-template-columns: 1fr; }
  .admin-company-card:nth-child(odd) { border-right: 0; }
  .admin-user-panel { grid-template-columns: 1fr; gap: 25px; }
  .admin-dashboard-cards { grid-template-columns: 1fr 1fr; }
  .catalog-workspace { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: auto 1fr; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; }
  .footer-layout > .footer-company { grid-row: 3; }
  .admin-filters, #company-search-form { grid-template-columns: 1fr 1fr; }
  .admin-filters .button { grid-column: 1 / -1; }
  .admin-users-list { grid-template-columns: 1fr; }
  .admin-user-card:nth-child(odd) { border-right: 0; }
  .lot-filters { grid-template-columns: 1fr 1fr; }
  .dashboard-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-room-context dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Smartphone */
@media (max-width: 620px) {
  .support-layout { grid-template-columns: 1fr; gap: 16px; }
  .support-new-form { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 16px; padding: 18px 15px; }
  .support-new-form > label, .support-new-form > label:nth-of-type(3), .support-new-form > .form-feedback { grid-column: 1; width: 100%; }
  .support-new-form input, .support-new-form select, .support-new-form textarea { width: 100%; max-width: 100%; }
  .support-new-form textarea { min-height: 160px; }
  .support-new-form > button { grid-column: 1; width: 100%; justify-self: stretch; }
  .support-detail-panel { padding: 18px 15px; }
  .support-detail-heading { flex-direction: column; }
  .support-meta { grid-template-columns: 1fr; }
  .support-message { max-width: 96%; }
  .support-ticket-card { min-height: 96px; padding: 16px; }
  body { font-size: 16px; line-height: 1.6; }
  .page-shell { width: calc(100% - 36px); }
  .topbar { min-height: 112px; display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 9px 18px 10px; }
  .brand { grid-column: 1; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-name { font-size: 19px; }
  .header-actions { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr); width: 100%; margin: 0; }
  .language { grid-row: 1; margin: 0; }
  .auth-actions { grid-column: 2; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); min-width: 0; }
  #member-actions { grid-column: 2; display: flex; min-width: 0; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px; }
  #member-actions .member-identity { width: 100%; max-width: none; min-width: 0; flex: 1 1 100%; justify-content: flex-start; text-align: left; }
  #member-actions .notification-control { position: static; flex: 0 0 auto; }
  #member-actions #support-navigation-button,
  #member-actions #settings-navigation-button,
  #member-actions #admin-button,
  #member-actions [data-action="logout"] { flex: 0 1 auto; min-width: max-content; }
  .member-identity { max-width: 120px; }
  .header-actions .button { min-height: 36px; padding: 7px 10px; font-size: 11px; }
  .login-button { border-color: var(--line); }
  h1 { margin-top: 17px; font-size: clamp(39px, 12vw, 50px); letter-spacing: -0.045em; }
  .hero-copy { gap: 39px; padding-block: 48px 36px; }
  .hero-description { font-size: 15px; line-height: 1.65; }
  .trust-line { gap: 10px 18px; margin-top: 25px; }
  .hero-visual { min-height: 390px; border-radius: 3px 20px 3px 3px; }
  .visual-header { padding-inline: 17px; }
  .signal-card { width: calc(100% - 60px); min-width: 0; padding: 17px; }
  .sell-signal { left: 18px; top: 88px; }
  .buy-signal { right: 18px; bottom: 72px; }
  .network-note { left: 18px; bottom: 17px; }
  .heading-copy { gap: 12px; }
  .section-index { display: none; }
  .section-heading h2 { font-size: 32px; }
  .network-section { padding: 75px 0; }
  .network-copy h2 { font-size: 34px; }
  .network-actions { align-items: stretch; flex-direction: column; gap: 10px; }
  .text-button { justify-content: center; }
  .verification-list article { grid-template-columns: 30px 1fr; gap: 12px; }
  .company-strip { padding: 38px 0; }
  .company-strip-layout { grid-template-columns: 1fr; }
  .company-strip-layout > p { grid-column: auto; grid-row: auto; }
  .company-strip-layout .button { width: 100%; }
  .footer-layout { grid-template-columns: 1fr; gap: 18px; }
  .footer-layout > p { max-width: 320px; text-align: left; line-height: 1.5; }
  .footer-meta { align-items: flex-start; }
  .footer-links { justify-content: flex-start; }
  .footer-layout > .footer-company { grid-row: auto; text-align: left; }
  .toast { right: 16px; bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
  .dashboard-back-to-top { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .portal-view { padding: 48px 0 70px; }
  .portal-heading { align-items: flex-start; flex-direction: column; }
  .dashboard-quick-actions, .deal-room-list { grid-template-columns: 1fr; }
  .quick-action-card { min-height: 76px; }
  .deal-room-card { border-right: 0; }
  .deal-room-context dl { grid-template-columns: 1fr; }
  .deal-status-actions { align-items: stretch; flex-direction: column; }
  .deal-status-actions .button, .deal-message-form .button, .deal-offer-toggle .button { width: 100%; }
  .deal-proposal > div, .deal-message > div { align-items: flex-start; flex-direction: column; gap: 4px; }
  .portal-heading h1 { font-size: 38px; }
  .company-summary { align-items: flex-start; flex-direction: column; }
  .company-profile-heading { align-items: flex-start; flex-direction: column; }
  .company-detail-sections { grid-template-columns: 1fr; }
  .company-capabilities { grid-template-columns: 1fr; }
  .capability-options { grid-template-columns: 1fr; }
  .capability-actions { align-items: stretch; flex-direction: column; }
  .capability-actions .button { width: 100%; min-height: 50px; }
  .admin-user-panel { padding: 22px; }
  .admin-users-heading { align-items: flex-start; }
  .admin-navigation { overflow-x: auto; }
  .admin-navigation button { flex: 1 0 auto; }
  .admin-dashboard-cards, .admin-filters, #company-search-form { grid-template-columns: 1fr; }
  .commercial-history-filter-actions { flex-direction: column; }
  .commercial-history-filter-actions .button { width: 100%; }
  .commercial-history-table, .commercial-history-table tbody, .commercial-history-table tr, .commercial-history-table td { display: block; width: 100%; }
  .commercial-history-table thead { display: none; }
  .commercial-history-table tr { padding: 14px; border-bottom: 1px solid var(--line); }
  .commercial-history-table tbody tr:last-child { border-bottom: 0; }
  .commercial-history-table td { display: grid; grid-template-columns: minmax(100px, .45fr) 1fr; gap: 10px; padding: 7px 0; border: 0; font-size: 15px; }
  .commercial-history-table td::before { content: attr(data-label); color: var(--muted); font-size: 13px; font-weight: 700; }
  .commercial-history-table td.commercial-history-counterparty { display: none; }
  .commercial-history-table td.commercial-history-action { display: block; padding-top: 12px; }
  .commercial-history-table td.commercial-history-action::before { display: none; }
  .commercial-history-table td.commercial-history-action .button { width: 100%; min-height: 48px; font-size: 16px; }
  .commercial-history-detail dl { grid-template-columns: 1fr; }
  .cleanup-counts { grid-template-columns: 1fr; }
  .maintenance-actions .button { width: 100%; }
  .credential-email-preview dl div { grid-template-columns: 1fr; gap: 3px; }
  .credential-email-body { min-height: 360px; }
  .test-company-row { grid-template-columns: 1fr; align-items: stretch; }
  .demo-protection { width: 100%; }
  .catalog-row { grid-template-columns: 1fr auto; }
  .catalog-actions { grid-column: 1 / -1; }
  .admin-filters .button { grid-column: auto; }
  .admin-pagination { gap: 8px; }
  .compact-form, .form-grid { grid-template-columns: 1fr; }
  .sectioned-form > fieldset { grid-template-columns: 1fr; padding: 16px; }
  .sectioned-form > fieldset .wide { grid-column: auto; }
  .form-grid .wide { grid-column: auto; }
  .modal-backdrop { padding: 10px; }
  .modal-panel, .login-modal { max-height: calc(100vh - 20px); padding: 28px 20px; }
  .modal-heading h2 { font-size: 27px; }
  .sale-lot-grid { grid-template-columns: 1fr; }
  .interest-list { grid-template-columns: 1fr; }
  .interest-card, .interest-card:nth-child(2n) { border-right: 0; }
  .sale-lot-card, .sale-lot-card:nth-child(2n), .sale-lot-card:nth-child(3n) { border-right: 0; }
  .broker-company-card__body { padding: 18px; }
  .sale-lot-card .broker-company-card__details { grid-template-columns: 1fr; }
  .broker-company-card__actions .lot-actions { display: grid; grid-template-columns: 1fr; }
  .broker-company-card__actions .lot-actions .button { width: 100%; justify-content: center; }
  .lots-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .lots-heading .button { width: 100%; }
  .desktop-image-upload { display: none; }
  .mobile-image-upload { display: flex; flex-direction: column; gap: 10px; }
  .mobile-image-actions .button { width: 100%; padding: 11px 8px; font-size: 10px; line-height: 1.35; }
  .lot-image-manager { grid-template-columns: 1fr; }
  .lot-image-manager > div { align-items: flex-start; flex-direction: column; }
  .lot-image-manager .lot-image-manager-copy, .lot-image-manager .lot-image-manager-actions { width: 100%; }
  .lot-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lot-gallery img { max-width: none; }
  .admin-lot-detail-actions .button { width: 100%; }
  .admin-lot-detail-sections { grid-template-columns: 1fr; }
  .admin-lot-detail-sections section { padding: 17px; }
  .image-lightbox { padding: 52px 10px 10px; }
  .image-lightbox img { max-width: calc(100vw - 20px); max-height: calc(100vh - 68px); }
  .form-submit { align-items: stretch; flex-direction: column; }
  .form-submit .button { width: 100%; }
  .trade-form-submit > [data-close] { width: auto; }
  .form-publish-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .form-publish-actions .button { padding-inline: 10px; }

  /* Mobile readability and touch targets */
  .button { min-height: 48px; padding: 12px 16px; font-size: 16px; line-height: 1.3; white-space: normal; }
  .header-actions .button { min-height: 44px; padding: 9px 10px; font-size: 14px; }
  .lang, .member-identity { min-height: 44px; font-size: 14px; }
  .auth-actions { min-width: 0; gap: 6px; }
  .auth-actions .button { min-width: 0; }
  .notification-menu { position: absolute; top: 100%; right: 18px; max-height: calc(100vh - 100% - 10px); max-height: calc(100dvh - 100% - 10px); }
  .eyebrow, .kicker { font-size: 14px; line-height: 1.4; }
  h1 { font-size: clamp(35px, 11vw, 43px); line-height: 1.1; }
  .hero-description, .network-copy > p, .section-heading > p, .company-strip-layout > p, .portal-heading p { font-size: 16px; line-height: 1.7; }
  .trust-line { font-size: 15px; line-height: 1.5; }
  .visual-header, .signal-route, .network-note strong, .network-note small { font-size: 14px; line-height: 1.35; }
  .signal-card > strong { font-size: 20px; line-height: 1.3; }
  .signal-card > small { font-size: 14px; line-height: 1.45; }
  .section-heading h2, .network-copy h2 { font-size: 30px; line-height: 1.18; }
  .verification-list article > span { font-size: 14px; }
  .verification-list strong { font-size: 18px; line-height: 1.4; }
  .verification-list p { font-size: 16px; line-height: 1.65; }
  .text-button { min-height: 48px; font-size: 16px; }
  .company-strip-layout > div span { font-size: 14px; }
  .company-strip-layout > div strong { font-size: 20px; line-height: 1.4; }

  .footer-layout > p, .footer-links a, .footer-meta, .footer-meta small, .footer-layout > .footer-company { font-size: 14px; line-height: 1.55; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; }
  .toast { font-size: 15px; line-height: 1.5; }

  .portal-heading h1 { font-size: 32px; line-height: 1.15; }
  .company-summary { padding: 22px; }
  .company-summary div > span, .company-summary div > small { font-size: 14px; line-height: 1.5; }
  .company-summary div > strong { font-size: 22px; line-height: 1.35; }
  .verified-status { font-size: 14px; }
  .company-profile-heading h2 { font-size: 24px; }
  .company-detail-sections h3 { font-size: 16px; line-height: 1.4; }
  .company-detail-sections dl, .company-detail-sections p { grid-template-columns: 1fr; font-size: 16px; line-height: 1.6; }
  .company-detail-sections dt { font-size: 14px; line-height: 1.4; }

  .portal-section-heading h2, .admin-user-panel h2, .lots-heading h2, .admin-page-heading h2, .admin-users-heading h2, .admin-group-heading h2 { font-size: 24px; line-height: 1.25; }
  .lots-description, .admin-page-heading p, .admin-users-heading p, .admin-user-panel > div p { font-size: 16px; line-height: 1.65; }
  .admin-navigation button, .catalog-navigation button { min-height: 48px; padding: 11px 15px; font-size: 16px; }
  .admin-dashboard-cards button { min-height: 160px; padding: 22px; }
  .admin-dashboard-cards span { font-size: 14px; }
  .admin-dashboard-cards strong { font-size: 24px; }
  .admin-dashboard-cards small { font-size: 16px; line-height: 1.55; }

  form label { gap: 8px; font-size: 14px; line-height: 1.4; }
  .field-help { font-size: 14px; }
  form input, form textarea, form select { min-height: 50px; padding: 12px 13px; font-size: 16px; line-height: 1.5; }
  form textarea { min-height: 120px; }
  .sectioned-form > fieldset { gap: 20px; padding: 18px 14px; }
  .sectioned-form > fieldset legend { font-size: 16px; }
  .form-grid, .compact-form { gap: 20px; }
  .form-submit { gap: 14px; padding-top: 10px; }
  .form-submit p, .form-feedback, .modal-heading p, .login-apply, .login-apply button { font-size: 14px; line-height: 1.6; }
  .modal-heading h2 { font-size: 24px; line-height: 1.25; }
  .modal-close { width: 44px; height: 44px; font-size: 24px; }
  .login-brand { font-size: 22px; }

  .country-code, .status-label, .status-pill, .user-status, .lot-status { min-height: 28px; font-size: 14px; line-height: 1.35; }
  .empty, .loading { min-height: 150px; padding: 28px 18px; font-size: 16px; line-height: 1.55; }
  .empty strong { font-size: 16px; }

  .sale-lot-card h3 { font-size: 22px; line-height: 1.35; }
  .broker-company-card__operations { font-size: 15px; line-height: 1.55; }
  .lot-company { font-size: 15px; line-height: 1.5; }
  .sale-lot-card dl, .lot-detail-grid dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
  .sale-lot-card dt, .lot-detail-grid dt { font-size: 14px; line-height: 1.35; }
  .sale-lot-card dd, .lot-detail-grid dd { font-size: 16px; line-height: 1.55; overflow-wrap: anywhere; }
  .lot-certifications span { padding: 7px 10px; font-size: 14px; line-height: 1.4; }
  .lot-commercial, .lot-actions { flex-wrap: wrap; }
  .lot-commercial > .button { min-height: 44px; font-size: 14px; }
  .rfq-interest-summary { align-items: flex-start; }
  .rfq-interest-summary strong, .rfq-interest-summary span { font-size: 15px; }
  .rfq-interest-summary .button { min-height: 44px; padding: 9px 11px; font-size: 14px; }
  .interest-card { align-items: flex-start; flex-direction: column; }
  .interest-card-content { width: 100%; }
  .interest-actions, .interest-actions .button { width: 100%; }
  .interest-contacts dl { grid-template-columns: 1fr; }
  .interest-contacts h4, .interest-contacts dd { font-size: 14px; }
  .interest-contacts dt { font-size: 12px; }
  .lot-actions { width: 100%; }
  .lot-actions .button, .lot-actions select { min-height: 44px; font-size: 16px; }
  .input-with-suffix strong { min-width: 58px; font-size: 16px; }
  .lot-product-results { max-height: 55vh; width: 100%; }
  .lot-product-results button { min-height: 72px; padding: 12px; }
  .lot-product-results strong, .lot-selected-product strong { font-size: 16px; line-height: 1.4; }
  .lot-product-results span, .lot-selected-product span, .lot-product-results small, .lot-selected-product small, #lot-cn-path, .lot-cn-browser-fields p { font-size: 14px; line-height: 1.45; }
  .lot-cn-browser, .lot-cn-browser > .button { width: 100%; }
  .lot-selected-product .button { width: 100%; min-height: 48px; }
  .mobile-image-upload > p, .lot-image-manager, .lot-image-manager p { font-size: 15px; line-height: 1.55; }
  .mobile-image-actions .button, .lot-image-manager .button { min-height: 44px; padding: 9px 11px; font-size: 14px; }
  .lot-image-manager-copy > span { font-size: 14px; }

  .admin-page-heading, .admin-users-heading { align-items: flex-start; padding: 19px; }
  .admin-page-heading > span, .admin-users-heading > span, .admin-group-heading > span { min-width: 36px; height: 36px; font-size: 14px; }
  .admin-pagination { flex-wrap: wrap; gap: 8px; }
  .admin-pagination .button { min-height: 44px; padding: 9px 12px; font-size: 14px; }
  .admin-pagination span { min-width: 90px; font-size: 14px; }
  .admin-company-card, .admin-user-card { padding: 19px; }
  .admin-company-card dl, .admin-user-card dl { grid-template-columns: 1fr; }
  .admin-company-card h3, .admin-user-card h3 { font-size: 22px; line-height: 1.35; }
  .admin-company-card dt, .admin-user-card dt { font-size: 14px; }
  .admin-company-card dd, .admin-company-card > p, .admin-company-card > small, .admin-card-meta small, .admin-user-card dd, .admin-user-card-head div > span { font-size: 15px; line-height: 1.55; }
  .admin-card-meta, .admin-card-actions > div, .admin-user-card-head { align-items: stretch; flex-direction: column; }
  .admin-card-meta .button, .admin-user-card .button { min-height: 44px; padding: 9px 12px; font-size: 14px; }
  .admin-card-actions textarea { min-height: 100px; font-size: 16px; }

  .catalog-row { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .catalog-row small, .catalog-row p { font-size: 14px; line-height: 1.5; }
  .catalog-row h3 { font-size: 21px; }
  .catalog-row-detailed dl { grid-template-columns: 1fr; }
  .catalog-row-detailed dt, .catalog-row-detailed dd { font-size: 14px; line-height: 1.45; }
  .catalog-actions { flex-wrap: wrap; }
  .catalog-actions .button { min-height: 44px; padding: 9px 12px; font-size: 14px; }
  .catalog-editor { padding: 21px 17px; }
  .catalog-editor h3 { font-size: 22px; }
}

@media (max-width: 420px) {
  .topbar { grid-template-columns: minmax(0, 1fr); }
  .brand, .header-actions { grid-column: 1; }
  .header-actions { grid-template-columns: auto minmax(0, 1fr); }
  #member-actions .member-identity { flex-direction: column; align-items: flex-start; gap: 2px; padding-block: 5px; }
  .member-dashboard-label { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Account activation */
.activation-page { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: auto 1fr; background: #f3f5f2; }
.activation-page > .activation-header { display: flex; align-items: center; justify-content: space-between; width: min(1120px, calc(100% - 40px)); margin-inline: auto; padding: 22px 0; }
.activation-page > .activation-main { width: 100%; min-width: 0; min-height: 0; display: flex; align-items: flex-start; justify-content: center; margin-inline: auto; padding: 55px 20px 90px; }
.activation-main > .activation-card { width: 100%; max-width: 540px; margin-inline: auto; padding: 46px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); box-shadow: 0 24px 70px rgba(19, 52, 42, 0.1); }
.activation-card h1 { margin: 10px 0 12px; font: 600 clamp(34px, 6vw, 52px)/1.08 "Manrope", sans-serif; }
.activation-description { margin: 0 0 24px; color: var(--muted); line-height: 1.65; }
.activation-status { min-height: 48px; margin: 0 0 18px; padding: 13px 15px; border-left: 3px solid var(--line-dark); background: var(--cream); color: var(--forest); font-size: 14px; line-height: 1.5; }
.activation-status.success { border-left-color: var(--green); }
.activation-status.error { border-left-color: #a94235; color: #7e2f27; }
.activation-form { display: grid; gap: 18px; }
.activation-form label { display: grid; gap: 8px; color: var(--forest); font-size: 13px; font-weight: 700; }
.activation-form input { min-height: 50px; padding: 12px 13px; border: 1px solid var(--line-dark); border-radius: 4px; background: white; color: var(--ink); font: inherit; }
.activation-form .button, #activation-login { width: 100%; margin-top: 4px; }

@media (max-width: 620px) {
  .activation-page > .activation-header { width: min(100% - 32px, 540px); padding: 18px 0; }
  .activation-page > .activation-main { padding: 28px 16px 60px; }
  .activation-main > .activation-card { padding: 28px 22px; }
  .activation-card h1 { font-size: 34px; }
  .activation-description, .activation-status, .activation-form label { font-size: 16px; }
}
.representation-attestation { align-items: flex-start; display: flex; gap: .7rem; }
.representation-attestation input { flex: 0 0 auto; margin-top: .2rem; width: auto; }
.representation-disclosure { display: block; margin-top: .4rem; color: #8b5817; font-weight: 700; }
.representation-disclosure.confirmed { color: var(--green); }
.representation-review-summary { display: grid; gap: .75rem; margin: 1.25rem 0; }
.representation-review-summary div { display: grid; gap: .2rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.representation-review-summary dt { color: var(--muted); font-size: .78rem; }
.representation-review-summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.representation-review-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; }
@media (max-width: 520px) { .representation-review-actions { grid-template-columns: 1fr; } }
