/* Brand and navigation */
.brand { display: inline-flex; gap: .7rem; align-items: center; color: var(--ink-950); font-weight: 700; text-decoration: none; }
.brand:hover { color: var(--ink-950); }
.brand-mark { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid rgb(255 255 255 / 16%); border-radius: .72rem; color: var(--white); background: linear-gradient(145deg, var(--brand-600), var(--brand-900)); box-shadow: inset 0 1px rgb(255 255 255 / 24%), 0 7px 18px rgb(9 98 92 / 18%); }
.brand-copy { display: grid; line-height: 1.1; }
.brand-name { font-size: 1.06rem; letter-spacing: -.025em; }
.brand-tagline { margin-top: .2rem; color: var(--ink-500); font-size: .68rem; font-weight: 540; letter-spacing: .02em; }
.brand--light, .brand--light:hover { color: var(--white); }
.brand--light .brand-tagline { color: #9fb1bc; }
.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid transparent; background: rgb(255 255 255 / 86%); backdrop-filter: blur(18px) saturate(150%); }
.site-header.is-scrolled { border-color: rgb(213 221 225 / 75%); box-shadow: 0 7px 22px rgb(7 26 47 / 5%); }
.site-header__inner { display: flex; min-height: 74px; justify-content: space-between; align-items: center; }
.site-nav { display: flex; gap: 1.7rem; align-items: center; }
.site-nav > a { color: var(--ink-700); font-size: .91rem; font-weight: 600; text-decoration: none; }
.site-nav > a:hover { color: var(--brand-700); }
.site-nav__actions { display: flex; gap: .55rem; align-items: center; margin-left: .6rem; }
.site-nav__actions form { margin: 0; }
.nav-toggle { display: none !important; }
.site-footer { padding: 4.5rem 0 1.3rem; color: #aebdc6; background: #061726; }
.site-footer__grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 3rem; }
.site-footer__grid > div > p { max-width: 25rem; margin-top: 1.25rem; font-size: .9rem; }
.site-footer nav { display: grid; align-content: start; gap: .65rem; }
.site-footer nav strong { margin-bottom: .35rem; color: var(--white); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer nav a { color: #aebdc6; font-size: .9rem; text-decoration: none; }
.site-footer nav a:hover { color: var(--accent-400); }
.site-footer__bottom { display: flex; justify-content: space-between; margin-top: 3.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 9%); font-size: .78rem; }

/* Buttons and links */
.button { display: inline-flex; min-height: 2.75rem; gap: .48rem; justify-content: center; align-items: center; padding: .68rem 1.05rem; border: 1px solid transparent; border-radius: .72rem; font-size: .88rem; font-weight: 700; line-height: 1.15; text-align: center; text-decoration: none; box-shadow: var(--shadow-xs); transition: transform .22s var(--ease), box-shadow .22s var(--ease), background-color .2s, border-color .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0) scale(.985); }
.button--primary { color: var(--white); background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); box-shadow: 0 9px 22px rgb(9 98 92 / 20%); }
.button--primary:hover { color: var(--white); box-shadow: 0 13px 28px rgb(9 98 92 / 27%); }
.button--secondary { border-color: var(--border-strong); color: var(--ink-800); background: var(--white); }
.button--secondary:hover { border-color: var(--brand-200); color: var(--brand-800); background: var(--brand-50); }
.button--ghost { border-color: transparent; color: var(--ink-700); background: transparent; box-shadow: none; }
.button--ghost:hover { color: var(--brand-800); background: var(--brand-50); }
.button--accent { color: var(--ink-950); background: linear-gradient(135deg, var(--accent-400), var(--accent-500)); box-shadow: 0 10px 26px rgb(217 237 110 / 18%); }
.button--accent:hover { color: var(--ink-950); box-shadow: 0 14px 32px rgb(217 237 110 / 25%); }
.button--glass { border-color: rgb(255 255 255 / 32%); color: var(--white); background: rgb(255 255 255 / 10%); box-shadow: none; backdrop-filter: blur(10px); }
.button--glass:hover { color: var(--white); background: rgb(255 255 255 / 17%); }
.button--telegram { color: var(--white); background: linear-gradient(135deg, #238bc1, #1472a9); box-shadow: 0 9px 24px rgb(35 139 193 / 22%); }
.button--telegram:hover { color: var(--white); }
.button--google { border-color: var(--border-strong); color: var(--ink-800); background: var(--white); box-shadow: 0 5px 16px rgb(7 26 47 / 7%); }
.button--google:hover { border-color: #b7c5ce; color: var(--ink-950); background: #fbfcfd; box-shadow: 0 9px 22px rgb(7 26 47 / 10%); }
.button[aria-disabled="true"] { cursor: not-allowed; opacity: .62; pointer-events: none; transform: none; }
.google-mark { flex: 0 0 auto; }
.button--danger { color: var(--white); background: var(--danger-700); }
.button--danger:hover { color: var(--white); background: #8c2d31; }
.button--sm { min-height: 2.25rem; padding: .48rem .78rem; border-radius: .58rem; font-size: .79rem; }
.button--lg { min-height: 3.2rem; padding: .86rem 1.3rem; }
.button--block { width: 100%; }
.button-row { display: flex; gap: .55rem; flex-wrap: wrap; align-items: center; }
.button-row form { margin: 0; }
.button-row--center { justify-content: center; }
.icon-button { display: inline-grid; width: 2.55rem; height: 2.55rem; padding: 0; place-items: center; border: 1px solid transparent; border-radius: .68rem; color: var(--ink-700); background: transparent; }
.icon-button:hover { color: var(--brand-800); background: var(--brand-50); }
.icon-button--danger { color: var(--danger-700); }
.icon-button--danger:hover { color: var(--danger-700); background: var(--danger-100); }
.text-link { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; text-decoration: none; }
.text-link--center { justify-content: center; }
.text-button { display: inline-flex; gap: .35rem; align-items: center; padding: 0; border: 0; color: var(--brand-700); background: transparent; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.text-button:disabled { cursor: not-allowed; color: var(--ink-400); }

/* Cards, labels and data */
.card { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.card-heading { display: flex; gap: 1rem; justify-content: space-between; align-items: center; margin-bottom: 1.35rem; }
.card-heading > div { display: flex; gap: .75rem; align-items: center; }
.card-heading h2, .card-heading h3, .card-heading p { margin: 0; }
.card-heading p { margin-top: .2rem; color: var(--text-soft); font-size: var(--step--1); }
.section-icon { display: grid; width: 2.4rem; height: 2.4rem; flex: 0 0 auto; place-items: center; border-radius: .68rem; color: var(--brand-700); background: var(--brand-100); }
.section-icon--telegram { color: #167caf; background: #dceff9; }
.section-icon--danger { color: var(--danger-700); background: var(--danger-100); }
.eyebrow { display: block; margin-bottom: .65rem; color: var(--ink-500); font-size: .71rem; font-weight: 780; letter-spacing: .105em; line-height: 1.2; text-transform: uppercase; }
.eyebrow--brand { color: var(--brand-700); }
.eyebrow--accent { color: #becf58; }
.step-kicker { display: inline-block; margin-bottom: .75rem; color: var(--brand-700); font-size: .75rem; font-weight: 780; letter-spacing: .1em; text-transform: uppercase; }
.trust-pill { display: inline-flex; gap: .4rem; align-items: center; padding: .42rem .7rem; border: 1px solid rgb(255 255 255 / 17%); border-radius: var(--radius-pill); color: #e6efb2; background: rgb(255 255 255 / 8%); font-size: .76rem; font-weight: 700; backdrop-filter: blur(10px); }
.status-badge { display: inline-flex; width: fit-content; gap: .3rem; align-items: center; padding: .29rem .58rem; border-radius: var(--radius-pill); color: var(--ink-700); background: var(--ink-100); font-size: .7rem; font-weight: 720; line-height: 1.2; white-space: nowrap; }
.status-badge--success { color: var(--success-700); background: var(--success-100); }
.status-badge--warning { color: var(--warning-700); background: var(--warning-100); }
.status-badge--danger { color: var(--danger-700); background: var(--danger-100); }
.status-badge--brand { color: var(--brand-800); background: var(--brand-100); }
.chip-row { display: flex; gap: .42rem; flex-wrap: wrap; }
.chip { display: inline-flex; gap: .28rem; align-items: center; padding: .32rem .62rem; border: 1px solid var(--border); border-radius: var(--radius-pill); color: var(--ink-700); background: var(--surface-soft); font-size: .72rem; font-weight: 650; line-height: 1.25; }
.chip--match { border-color: #c5e7d5; color: var(--success-700); background: #edf8f2; }
.chip--learning { border-color: #f0dca8; color: var(--warning-700); background: #fff8e6; }
.chip--editable { gap: .38rem; padding-right: .28rem; }
.chip--editable button { display: grid; width: 1.25rem; height: 1.25rem; padding: 0; place-items: center; border: 0; border-radius: 50%; color: inherit; background: rgb(7 26 47 / 7%); line-height: 1; }
.company-avatar, .avatar { display: grid; width: 3rem; height: 3rem; flex: 0 0 auto; place-items: center; border: 1px solid rgb(15 118 110 / 14%); border-radius: .82rem; color: var(--brand-800); background: linear-gradient(145deg, var(--brand-50), #dff0ee); font-size: .78rem; font-weight: 800; letter-spacing: .04em; }
.company-avatar--sm, .avatar--sm { width: 2.25rem; height: 2.25rem; border-radius: .65rem; font-size: .68rem; }
.company-avatar--lg { width: 4.5rem; height: 4.5rem; border-radius: 1rem; font-size: 1rem; }
.avatar--telegram { color: #167caf; background: #dceff9; }
.count-badge { display: inline-grid; min-width: 1.65rem; height: 1.65rem; padding-inline: .4rem; place-items: center; border-radius: var(--radius-pill); color: var(--ink-700); background: var(--ink-100); font-size: .72rem; font-weight: 750; }
.progress-ring { --ring-size: 4.25rem; display: grid; width: var(--ring-size); height: var(--ring-size); flex: 0 0 auto; padding: 5px; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand-600) calc(var(--progress) * 1%), var(--ink-100) 0); }
.progress-ring > span { display: grid; width: 100%; height: 100%; place-content: center; border-radius: inherit; text-align: center; background: var(--white); }
.progress-ring strong { color: var(--ink-900); font-size: .9rem; line-height: 1; }
.progress-ring small { margin-top: .18rem; color: var(--ink-500); font-size: .5rem; line-height: 1; text-transform: uppercase; }
.score-track { overflow: hidden; height: .38rem; border-radius: var(--radius-pill); background: rgb(255 255 255 / 15%); }
.score-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-500), var(--accent-300)); }
.micro-label { display: block; margin-bottom: .55rem; color: var(--ink-500); font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }

/* Forms */
.form-stack { display: grid; gap: 1rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { min-width: 0; }
.field--full, .choice--full { grid-column: 1 / -1; }
.field label, fieldset legend { display: block; margin-bottom: .42rem; color: var(--ink-800); font-size: .79rem; font-weight: 720; }
.label-row { display: flex; justify-content: space-between; align-items: center; }
.label-row a { font-size: .76rem; font-weight: 650; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]), textarea, select { width: 100%; min-height: 2.85rem; padding: .68rem .78rem; border: 1px solid var(--border-strong); border-radius: .65rem; outline: 0; color: var(--ink-900); background: var(--white); box-shadow: inset 0 1px 2px rgb(7 26 47 / 3%); transition: border-color .18s, box-shadow .18s, background .18s; }
textarea { min-height: 6rem; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8b9ba6; }
input:focus, textarea:focus, select:focus { border-color: var(--brand-500) !important; box-shadow: 0 0 0 4px rgb(22 139 128 / 12%) !important; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--danger-700) !important; }
.input-wrap { display: flex; position: relative; align-items: center; }
.input-wrap > .icon { position: absolute; left: .78rem; z-index: 1; color: var(--ink-500); pointer-events: none; }
.input-wrap > input { padding-left: 2.45rem !important; }
.input-wrap--action > input { padding-right: 2.7rem !important; }
.input-action { display: grid; position: absolute; right: .38rem; width: 2.1rem; height: 2.1rem; padding: 0; place-items: center; border: 0; border-radius: .5rem; color: var(--ink-500); background: transparent; }
.input-action:hover { color: var(--brand-700); background: var(--brand-50); }
.field-help, .field-error { margin: .35rem 0 0; font-size: .72rem; line-height: 1.45; }
.field-help { color: var(--ink-500); }
.field-error { color: var(--danger-700); font-weight: 620; }
.field-help--center, .field-error--center { text-align: center; }
.inline-check, .choice { display: flex; gap: .65rem; align-items: flex-start; color: var(--ink-700); font-size: .79rem; }
.inline-check input, .choice input { width: 1rem; height: 1rem; flex: 0 0 auto; margin: .18rem 0 0; accent-color: var(--brand-700); }
.choice { padding: .8rem; border: 1px solid var(--border); border-radius: .7rem; background: var(--surface-soft); }
.choice span { display: grid; }
.choice small { margin-top: .15rem; color: var(--ink-500); }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 1.1rem; }
.inline-choices { display: flex; gap: .55rem; flex-wrap: wrap; }
.inline-choices label { position: relative; margin: 0; }
.inline-choices input { position: absolute; opacity: 0; pointer-events: none; }
.inline-choices span { display: block; padding: .55rem .85rem; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); color: var(--ink-700); background: var(--white); font-size: .78rem; font-weight: 650; cursor: pointer; }
.inline-choices input:checked + span { border-color: var(--brand-500); color: var(--brand-800); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand-500); }
.inline-choices input:focus-visible + span { outline: 3px solid rgb(22 139 128 / 25%); outline-offset: 2px; }
.range-field output { padding: .25rem .5rem; border-radius: .45rem; color: var(--brand-800); background: var(--brand-100); font-size: .75rem; font-weight: 750; }
input[type="range"] { width: 100%; accent-color: var(--brand-700); }
.form-section { display: grid; gap: 1.2rem; padding: clamp(1.15rem, 2.5vw, 1.75rem); }
.form-actions { display: flex; justify-content: flex-end; padding-top: .3rem; }
.form-actions--split { gap: .7rem; justify-content: space-between; align-items: center; }
.form-alert { display: flex; gap: .55rem; align-items: flex-start; padding: .72rem .85rem; border: 1px solid #f0caca; border-radius: .65rem; color: var(--danger-700); background: var(--danger-100); font-size: .78rem; font-weight: 620; }

/* Notices and feedback */
.notice { display: flex; gap: .7rem; align-items: flex-start; padding: .9rem 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface-soft); font-size: .82rem; }
.notice .icon { margin-top: .08rem; }
.notice p { margin: 0; }
.notice p strong { display: block; color: var(--ink-900); }
.notice > .button, .notice > a { flex: 0 0 auto; margin-left: auto; }
.notice--brand { border-color: var(--brand-200); color: var(--brand-800); background: var(--brand-50); }
.notice--warning { border-color: #efdcaa; color: var(--warning-700); background: #fffaed; }
.notice--danger { border-color: #efc6c8; color: var(--danger-700); background: #fff3f3; }
.flash-stack { display: grid; position: fixed; z-index: 500; top: 5.3rem; right: 1rem; width: min(26rem, calc(100% - 2rem)); gap: .6rem; pointer-events: none; }
.flash { display: grid; grid-template-columns: auto 1fr auto; gap: .65rem; align-items: center; padding: .78rem .85rem; border: 1px solid var(--border); border-radius: .78rem; background: rgb(255 255 255 / 96%); box-shadow: var(--shadow-md); pointer-events: auto; backdrop-filter: blur(12px); }
.flash--success { border-color: #bfe2cd; color: var(--success-700); }
.flash--warning { border-color: #eed8a0; color: var(--warning-700); }
.flash--danger { border-color: #edc2c4; color: var(--danger-700); }
.flash--dev { border-color: #c6cbea; color: #4e5295; }
.flash span { color: var(--ink-800); font-size: .79rem; font-weight: 620; }
.flash__close { display: grid; width: 1.8rem; height: 1.8rem; padding: 0; place-items: center; border: 0; border-radius: .4rem; color: var(--ink-500); background: transparent; }
.toast-region { display: grid; position: fixed; z-index: 600; right: 1rem; bottom: 1rem; gap: .5rem; }
.toast { padding: .7rem .9rem; border: 1px solid var(--border); border-radius: .7rem; color: var(--ink-800); background: var(--white); box-shadow: var(--shadow-md); font-size: .78rem; }
.empty-state { display: grid; max-width: 31rem; justify-items: center; margin-inline: auto; padding: clamp(2rem, 5vw, 4rem) 1.2rem; text-align: center; }
.empty-state__icon { display: grid; width: 3.3rem; height: 3.3rem; margin-bottom: 1rem; place-items: center; border-radius: 1rem; color: var(--brand-700); background: var(--brand-100); }
.empty-state h2 { margin-bottom: .45rem; font-size: var(--step-1); }
.empty-state p { max-width: 27rem; color: var(--text-soft); }
.empty-inline { display: flex; gap: .8rem; align-items: center; padding: .85rem; border: 1px dashed var(--border-strong); border-radius: .75rem; background: var(--surface-soft); }
.empty-inline > span { display: grid; width: 2.5rem; height: 2.5rem; flex: 0 0 auto; place-items: center; border-radius: .65rem; color: var(--brand-700); background: var(--brand-100); }
.empty-inline p { margin: .1rem 0 0; color: var(--text-soft); font-size: .76rem; }
.empty-inline .button { margin-left: auto; }

/* Dialog */
.dialog { width: min(33rem, calc(100% - 1.25rem)); padding: 0; border: 0; border-radius: var(--radius-lg); background: transparent; box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: rgb(4 18 31 / 67%); backdrop-filter: blur(5px); }
.dialog__panel { display: grid; gap: 1rem; padding: 1.35rem; border-radius: inherit; background: var(--white); }
.dialog__heading { display: grid; grid-template-columns: auto 1fr auto; gap: .75rem; align-items: start; }
.dialog__heading h2, .dialog__heading p { margin: 0; }
.dialog__heading p { margin-top: .2rem; color: var(--text-soft); font-size: .78rem; }
.danger-icon { display: grid; width: 2.55rem; height: 2.55rem; place-items: center; border-radius: .72rem; color: var(--danger-700); background: var(--danger-100); }
.dialog__actions { display: flex; gap: .6rem; justify-content: flex-end; padding-top: .25rem; }
.no-js [data-password-toggle], .no-js [data-dialog-open], .no-js [data-dialog-close], .no-js [data-remove-tag], .no-js [data-add-tag] { display: none !important; }
.no-js form[data-confirm] { display: none !important; }
.no-js .dialog { display: block; position: static; width: min(33rem, calc(100% - 1.25rem)); margin: 1rem auto; box-shadow: var(--shadow-sm); }

/* Application shell */
.app-header { display: flex; position: fixed; z-index: 150; top: 0; right: 0; left: 0; height: var(--app-header); justify-content: space-between; align-items: center; padding-inline: 1.35rem; border-bottom: 1px solid var(--border); background: rgb(255 255 255 / 92%); backdrop-filter: blur(16px); }
.app-header__actions { display: flex; gap: .55rem; align-items: center; }
.profile-menu { position: relative; }
.profile-menu summary { display: flex; gap: .55rem; align-items: center; padding: .3rem .45rem; border-radius: .7rem; cursor: pointer; list-style: none; }
.profile-menu summary::-webkit-details-marker { display: none; }
.profile-menu summary:hover { background: var(--brand-50); }
.profile-menu__name { max-width: 10rem; overflow: hidden; font-size: .78rem; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.profile-menu__panel { display: grid; position: absolute; top: calc(100% + .55rem); right: 0; width: 12.5rem; padding: .45rem; border: 1px solid var(--border); border-radius: .75rem; background: var(--white); box-shadow: var(--shadow-md); }
.profile-menu__panel::before { position: absolute; top: -.55rem; right: 1.1rem; width: .9rem; height: .9rem; content: ""; border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--white); transform: rotate(45deg); }
.profile-menu__panel a, .profile-menu__panel button { display: flex; width: 100%; gap: .55rem; align-items: center; padding: .62rem .68rem; border: 0; border-radius: .5rem; color: var(--ink-700); background: transparent; font-size: .78rem; font-weight: 620; text-decoration: none; }
.profile-menu__panel a:hover, .profile-menu__panel button:hover { color: var(--brand-800); background: var(--brand-50); }
.app-shell { display: grid; min-height: 100vh; grid-template-columns: var(--sidebar) minmax(0, 1fr); padding-top: var(--app-header); }
.app-sidebar { display: flex; position: fixed; z-index: 80; top: var(--app-header); bottom: 0; left: 0; width: var(--sidebar); flex-direction: column; padding: 1.25rem .9rem; border-right: 1px solid var(--border); background: #fbfcfc; }
.sidebar-label { margin: 0 .65rem .55rem; color: var(--ink-500); font-size: .64rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: .22rem; }
.sidebar-nav a { display: flex; gap: .7rem; align-items: center; padding: .65rem .72rem; border-radius: .65rem; color: var(--ink-600); font-size: .8rem; font-weight: 620; text-decoration: none; }
.sidebar-nav a:hover { color: var(--brand-800); background: var(--brand-50); }
.sidebar-nav a.active { color: var(--brand-800); background: var(--brand-100); box-shadow: inset 3px 0 var(--brand-600); }
.sidebar-support { margin-top: auto; padding: .9rem; border: 1px solid var(--brand-200); border-radius: .85rem; background: linear-gradient(145deg, var(--brand-50), #f8fbfa); }
.sidebar-support__icon { display: grid; width: 2rem; height: 2rem; margin-bottom: .55rem; place-items: center; border-radius: .55rem; color: var(--brand-700); background: var(--brand-100); }
.sidebar-support strong { font-size: .77rem; }
.sidebar-support p { margin: .2rem 0 .45rem; color: var(--ink-600); font-size: .7rem; line-height: 1.45; }
.sidebar-support a, .sidebar-footer a { font-size: .7rem; font-weight: 700; }
.sidebar-footer { margin-top: auto; padding: .7rem; }
.sidebar-footer a { display: flex; gap: .45rem; align-items: center; text-decoration: none; }
.app-main { grid-column: 2; min-width: 0; }
.app-content { width: min(1320px, 100%); margin-inline: auto; padding: clamp(1.4rem, 3.2vw, 2.75rem); }
.mobile-app-nav { display: none; }
.page-heading { margin-bottom: clamp(1.4rem, 3vw, 2.2rem); }
.page-heading > p { max-width: 700px; color: var(--text-soft); }
.page-heading--split { display: flex; gap: 1.5rem; justify-content: space-between; align-items: flex-end; }
.page-heading--split > div > p { max-width: 720px; margin: 0; color: var(--text-soft); }
.page-heading--split h1 { margin-bottom: .5rem; }
.section-title-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1rem; }
.section-title-row h2 { margin: 0; }

/* Job cards */
.job-list { display: grid; gap: .9rem; }
.job-card { padding: 1.15rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-xs); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.job-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.job-card__top { display: grid; grid-template-columns: auto 1fr auto; gap: .85rem; align-items: start; }
.job-card__identity .eyebrow { margin: .1rem 0 .25rem; color: var(--ink-500); }
.job-card__identity h3 { margin: 0; font-size: 1.05rem; }
.job-card__identity h3 a { color: var(--ink-950); text-decoration: none; }
.job-meta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .45rem; color: var(--ink-500); font-size: .7rem; }
.job-meta span { display: inline-flex; gap: .25rem; align-items: center; }
.job-card__trust { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .85rem; }
.match-reasons { display: flex; gap: .65rem; align-items: center; margin-top: .9rem; padding: .65rem .75rem; border-radius: .65rem; background: var(--surface-soft); }
.match-reasons__label { flex: 0 0 auto; color: var(--ink-600); font-size: .69rem; font-weight: 720; }
.job-card__gap { margin: .7rem 0 0; color: var(--warning-700); font-size: .72rem; }
.job-card__footer { display: flex; gap: .8rem; justify-content: space-between; align-items: center; margin-top: .9rem; padding-top: .85rem; border-top: 1px solid var(--ink-100); }
.job-card__footer .quiet-text { display: flex; gap: .3rem; align-items: center; }
.job-card--compact .progress-ring { --ring-size: 3.8rem; }

@media (max-width: 980px) {
  .site-nav { gap: 1rem; }
  .site-nav > a { display: none; }
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { display: none; }
  .app-main { grid-column: 1; }
  .app-content { padding-bottom: 6.4rem; }
  .mobile-app-nav { display: grid; position: fixed; z-index: 120; right: .75rem; bottom: .7rem; left: .75rem; grid-template-columns: repeat(4, 1fr); padding: .4rem; border: 1px solid rgb(213 221 225 / 80%); border-radius: 1rem; background: rgb(255 255 255 / 94%); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); }
  .mobile-app-nav a { display: grid; gap: .2rem; justify-items: center; padding: .38rem; border-radius: .7rem; color: var(--ink-500); font-size: .62rem; font-weight: 650; text-decoration: none; }
  .mobile-app-nav a.active { color: var(--brand-800); background: var(--brand-100); }
}
@media (max-width: 760px) {
  .site-header__inner { min-height: 66px; }
  .nav-toggle { display: grid !important; }
  .site-nav { display: none; position: absolute; top: calc(100% + .4rem); right: .65rem; left: .65rem; padding: .75rem; border: 1px solid var(--border); border-radius: .9rem; background: var(--white); box-shadow: var(--shadow-lg); }
  .site-nav.is-open { display: grid; }
  .no-js .site-header__inner { flex-wrap: wrap; padding-block: .55rem; }
  .no-js .nav-toggle { display: none !important; }
  .no-js .site-nav { display: grid; position: static; width: 100%; margin-top: .45rem; padding: .4rem; border-radius: .7rem; box-shadow: none; }
  .site-nav > a { display: block; padding: .65rem; }
  .site-nav__actions { display: grid; grid-template-columns: 1fr 1fr; margin: .4rem 0 0; padding-top: .6rem; border-top: 1px solid var(--border); }
  .site-nav__actions > *, .site-nav__actions .button { width: 100%; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.2rem 1.5rem; }
  .site-footer__grid > div { grid-column: 1 / -1; }
  .site-footer__bottom { gap: .4rem; flex-direction: column; }
  .app-header { height: 64px; padding-inline: .7rem; }
  :root { --app-header: 64px; }
  .profile-menu__name { display: none; }
  .app-content { padding: 1rem .75rem 6.4rem; }
  .page-heading--split { align-items: stretch; flex-direction: column; }
  .page-heading--split > .button, .page-heading--split > form .button { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field--full, .choice--full { grid-column: auto; }
  .form-actions--split { align-items: stretch; flex-direction: column; }
  .form-actions--split > *, .form-actions--split .button { width: 100%; }
  .job-card__top { grid-template-columns: auto 1fr; }
  .job-card__top .progress-ring { --ring-size: 3.6rem; grid-column: 2; grid-row: 2; margin-top: .55rem; }
  .job-card__footer { align-items: stretch; flex-direction: column; }
  .job-card__footer .button-row, .job-card__footer .button-row > * { width: 100%; }
  .job-card__footer .button { flex: 1; }
  .match-reasons { align-items: flex-start; flex-direction: column; }
  .notice { flex-wrap: wrap; }
  .notice > .button, .notice > a { width: 100%; margin-left: 0; }
  .empty-inline { align-items: flex-start; flex-wrap: wrap; }
  .empty-inline .button { width: 100%; margin-left: 0; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__grid > div { grid-column: auto; }
  .site-nav__actions { grid-template-columns: 1fr; }
  .brand-tagline { display: none; }
  .company-avatar--lg { width: 3.5rem; height: 3.5rem; }
  .dialog__actions { align-items: stretch; flex-direction: column-reverse; }
  .dialog__actions .button { width: 100%; }
}
