*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #f5f8fa;
    --surface:     #fefefe;
    --border:      #dde0e4;
    --border-dark: #c4c9d0;
    --text:        #111318;
    --muted:       #6b7480;
    --accent:      #FF0A08;
    --accent-h:    #d40806;
    --success:     #16a34a;
    --danger:      #FF0A08;
    --radius:      6px;
    --shadow:      0 1px 3px rgba(0,0,0,.07);
    --shadow-md:   0 4px 16px rgba(0,0,0,.09);
}

body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--text); line-height: 1.6; background: var(--bg); display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 16px; }

/* ── Header ─────────────────────────────────────── */
.header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header__inner { display: flex; align-items: center; height: 56px; gap: 16px; }
.logo { font-size: 1.2rem; font-weight: 700; color: var(--text); text-decoration: none; letter-spacing: -.01em; flex-shrink: 0; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.nav { display: flex; gap: 8px; align-items: center; flex-shrink: 0; margin-left: auto; }

/* City button */
.city-btn { display: flex; align-items: center; gap: 4px; background: none; border: 1px solid var(--border); cursor: pointer; font-size: .82rem; color: var(--muted); padding: 5px 10px; border-radius: var(--radius); transition: all .12s; white-space: nowrap; flex-shrink: 0; }
.city-btn:hover { border-color: var(--border-dark); color: var(--text); }
.city-btn__icon { font-size: .85rem; }
.city-btn__name { font-weight: 500; color: var(--text); }
.city-btn__arrow { font-size: .6rem; opacity: .5; }

/* ── Buttons ─────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 16px; border-radius: var(--radius); font-size: .875rem; font-weight: 500; cursor: pointer; border: none; text-decoration: none; transition: all .15s; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-h); text-decoration: none; color: #fff; }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border-dark); }
.btn--outline:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; background: transparent; }
.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { background: var(--accent-h); }
.btn--sm { padding: 3px 10px; font-size: .78rem; }
.btn--lg { padding: 10px 24px; font-size: .95rem; }
.btn--block { width: 100%; justify-content: center; }

/* ── Layout ──────────────────────────────────────── */
.main-content { padding: 28px 20px; flex: 1; }

/* ── Search bar ──────────────────────────────────── */
.search-bar { margin-bottom: 28px; }
.search-bar__form { display: flex; gap: 8px; }
.search-bar__input { flex: 1; min-width: 0; width: auto; padding: 9px 14px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .95rem; background: var(--surface); color: var(--text); transition: border-color .15s; }
.search-bar__input::placeholder { color: var(--muted); }
.search-bar__input:focus { outline: none; border-color: var(--accent); }

/* ── Section ─────────────────────────────────────── */
.section { margin-bottom: 36px; }
.section__title { font-size: .75rem; font-weight: 600; margin-bottom: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.section__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.section__header h2 { margin: 0; }

/* ── Page header ─────────────────────────────────── */
.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; }

/* ── Categories list ─────────────────────────────── */
.categories-grid { columns: 3; column-gap: 32px; }
.category-card { display: block; break-inside: avoid; padding: 5px 0; color: var(--text); font-size: .9rem; border-bottom: 1px solid transparent; transition: color .1s; }
.category-card:hover { color: var(--accent); text-decoration: none; }

/* ── Companies grid ──────────────────────────────── */
.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.company-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; color: var(--text); transition: all .15s; }
.company-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); text-decoration: none; }
.company-card__logo { width: 52px; height: 52px; flex-shrink: 0; }
.company-card__logo img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius); }
.company-card__logo-placeholder { width: 52px; height: 52px; border-radius: var(--radius); background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 700; }
.company-card__info { flex: 1; min-width: 0; }
.company-card__name { font-size: .95rem; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.company-card__cat { font-size: .78rem; color: var(--muted); }
.company-card__addr { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.company-card__cities { font-size: .78rem; color: var(--muted); margin-top: 2px; }
.company-card__rating { font-size: .82rem; color: var(--accent); margin-top: 2px; }
.company-card__tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 0; }

/* ── Tags ────────────────────────────────────────── */
.tag { display: inline-block; background: var(--bg); color: var(--muted); padding: 2px 9px; border-radius: 20px; font-size: .78rem; border: 1px solid var(--border); }
.tag--light { background: rgba(255,255,255,.15); color: #fff; border-color: transparent; }
.tag--individual { background: #f0f4ff; color: #3b5bdb; border-color: #c5d0fa; }

/* ── Company profile ─────────────────────────────── */
.company-profile__header { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; background: var(--surface); padding: 20px; border-radius: var(--radius); border: 1px solid var(--border); }
.company-profile__logo img { width: 88px; height: 88px; object-fit: cover; border-radius: var(--radius); }
.logo-placeholder { width: 88px; height: 88px; border-radius: var(--radius); background: var(--text); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; }
.logo-placeholder--lg { width: 64px; height: 64px; font-size: 1.6rem; }
.company-profile__meta h1 { font-size: 1.4rem; margin-bottom: 6px; }
.company-profile__meta p { color: var(--muted); margin-top: 4px; font-size: .9rem; }
.rating { color: var(--accent); font-size: .95rem; }

/* ── Photos ──────────────────────────────────────── */
.photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.photo-item img { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius); }
.photo-item p { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.photo-item--admin form { margin-top: 6px; }

/* ── Reviews ─────────────────────────────────────── */
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; margin-bottom: 10px; }
.review-card__header { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.review-card__date { font-size: .78rem; color: var(--muted); margin-left: auto; }
.review-form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-top: 20px; }
.review-form h3 { margin-bottom: 14px; font-size: 1rem; font-weight: 600; }

/* ── Forms ───────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: .82rem; font-weight: 500; margin-bottom: 5px; color: var(--text); }
.form-group small { display: block; color: var(--muted); font-size: .78rem; margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=url], select, textarea {
    width: 100%; padding: 8px 11px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; background: var(--surface); color: var(--text); transition: border-color .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; }
select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236b7480' stroke-width='1.3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 28px; }

/* Upload */
.upload-form { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.upload-form input[type=file] { padding: 6px; }

/* Alerts */
.alert { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px; font-size: .875rem; }
.alert--error { background: #fff5f5; color: #c0392b; border: 1px solid #fecdd3; }
.alert--success { background: #f0fdf4; color: var(--success); border: 1px solid #bbf7d0; }

/* ── Auth ────────────────────────────────────────── */
.auth-page { display: flex; justify-content: center; padding: 40px 0; }
.auth-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; width: 100%; max-width: 440px; }
.auth-form--wide { max-width: 700px; }
.auth-form h1 { font-size: 1.25rem; margin-bottom: 6px; font-weight: 700; }
.auth-form > p { color: var(--muted); margin-bottom: 20px; font-size: .875rem; }
.auth-form__footer { text-align: center; margin-top: 16px; color: var(--muted); font-size: .875rem; }

/* ── Dashboard ───────────────────────────────────── */
.dashboard { display: grid; grid-template-columns: 210px 1fr; gap: 24px; width: 100%; }
.dashboard__sidebar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; height: fit-content; position: sticky; top: 76px; }
.dashboard__company-name { font-weight: 600; font-size: .875rem; padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 10px; }
.dashboard__nav { display: flex; flex-direction: column; gap: 2px; }
.dashboard__nav-item { padding: 7px 10px; border-radius: var(--radius); color: var(--muted); font-size: .875rem; text-decoration: none; transition: all .12s; }
.dashboard__nav-item:hover, .dashboard__nav-item--active { background: var(--bg); color: var(--text); text-decoration: none; }
.dashboard__logout { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); }
.dashboard__content { min-width: 0; }
.dashboard__content h1 { font-size: 1.35rem; margin-bottom: 20px; font-weight: 700; }

/* Stats */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; text-align: center; }
.stat-card__value { font-size: 1.7rem; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-card__label { font-size: .75rem; color: var(--muted); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }

/* Logo upload */
.logo-upload { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.logo-preview { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }

/* Pagination */
.pagination { display: flex; gap: 8px; margin-top: 20px; }

/* Empty state */
.empty-state { text-align: center; padding: 48px 24px; background: var(--surface); border-radius: var(--radius); border: 1px dashed var(--border-dark); }
.empty-state__text { color: var(--muted); margin-bottom: 14px; font-size: .9rem; }

/* Error page */
.error-page { text-align: center; padding: 80px 0; }
.error-page h1 { font-size: 5rem; font-weight: 700; color: var(--border); }
.error-page p { font-size: 1rem; color: var(--muted); margin-bottom: 24px; }

/* ── CTA banner ──────────────────────────────────── */
.cta-banner { background: #444444; color: #fff; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw; margin-bottom: 0; }
.cta-banner__inner { display: flex; align-items: stretch; }
.cta-banner__item { flex: 1; text-align: center; padding: 32px 28px; }
.cta-banner__icon { display: none; }
.cta-banner__item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.cta-banner__item p { font-size: .85rem; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.cta-banner__divider { width: 1px; background: rgba(255,255,255,.12); flex-shrink: 0; }
.btn--outline-white { background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.25); }
.btn--outline-white:hover { background: rgba(255,255,255,.08); text-decoration: none; color: #fff; border-color: rgba(255,255,255,.45); }

/* ── Category checkboxes ─────────────────────────── */
.categories-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; margin-bottom: 8px; }
.cat-check { cursor: pointer; }
.cat-check__input { display: none; }
.cat-check__body { display: flex; align-items: center; gap: 7px; padding: 7px 11px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: all .12s; font-size: .85rem; color: var(--text); }
.cat-check__input:checked + .cat-check__body { border-color: var(--accent); color: var(--accent); background: #fff5f5; font-weight: 500; }
.cat-check__body:hover { border-color: var(--accent); }
.cat-check--disabled .cat-check__body { opacity: .4; cursor: not-allowed; }
.cat-check__icon { display: none; }
.cat-check__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.label-hint { font-size: .78rem; font-weight: 400; color: var(--muted); }

/* ── City modal ──────────────────────────────────── */
.city-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 68px; }
.city-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.city-modal__box { position: relative; background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 540px; max-height: calc(100vh - 96px); display: flex; flex-direction: column; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.city-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.city-modal__header h2 { font-size: .95rem; font-weight: 600; }
.city-modal__close { background: none; border: none; cursor: pointer; font-size: .85rem; color: var(--muted); width: 26px; height: 26px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; transition: background .12s; }
.city-modal__close:hover { background: var(--bg); color: var(--text); }
.city-modal__body { overflow-y: auto; padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.city-modal__search-wrap { position: relative; display: flex; align-items: center; }
.city-modal__search-icon { position: absolute; right: 10px; display: flex; align-items: center; color: var(--muted); pointer-events: none; }
.city-modal__search { width: 100%; padding: 8px 33px 8px 11px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .9rem; color: var(--text); background: var(--surface); transition: border-color .15s; }
.city-modal__search::placeholder { color: var(--muted); }
.city-modal__search:focus { outline: none; border-color: var(--accent); }
.city-modal__geo { display: flex; align-items: center; gap: 7px; background: none; border: none; color: var(--accent); font-size: .85rem; cursor: pointer; padding: 0; }
.city-modal__geo:hover { text-decoration: underline; }
.city-modal__geo svg { flex-shrink: 0; stroke: var(--accent); }
.city-modal__pills { display: flex; flex-wrap: wrap; gap: 5px; }
.city-pill { background: none; border: 1px solid var(--border); border-radius: 20px; padding: 4px 12px; font-size: .82rem; cursor: pointer; transition: all .12s; color: var(--text); white-space: nowrap; }
.city-pill:hover { border-color: var(--accent); color: var(--accent); }
.city-pill--active { background: var(--accent); border-color: var(--accent); color: #fff; }
.city-modal__hint { background: var(--bg); border-radius: var(--radius); padding: 10px 14px; border: 1px solid var(--border); margin-top: 10px; }
.city-modal__hint-title { display: block; font-size: .85rem; font-weight: 500; }
.city-modal__hint-sub { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.city-modal__results { display: flex; flex-direction: column; }
.city-result { display: flex; align-items: center; justify-content: space-between; background: none; border: none; border-radius: var(--radius); padding: 8px 10px; cursor: pointer; text-align: left; transition: background .1s; width: 100%; }
.city-result:hover { background: var(--bg); }
.city-result--active .city-result__name { color: var(--accent); font-weight: 600; }
.city-result__name { font-size: .875rem; color: var(--text); }
.city-result__region { font-size: .78rem; color: var(--muted); }
.city-modal__empty { color: var(--muted); font-size: .875rem; padding: 8px 0; }

/* ── Footer ──────────────────────────────────────── */
.footer { background: #444444; padding: 16px 0; color: rgba(255,255,255,.45); font-size: .82rem; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; }
.footer__feedback-btn { background: none; border: none; color: rgba(255,255,255,.45); font-size: .82rem; cursor: pointer; padding: 0; transition: color .12s; }
.footer__feedback-btn:hover { color: rgba(255,255,255,.85); }

/* ── Feedback modal ──────────────────────────────── */
.fb-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: flex-start; justify-content: center; padding-top: 68px; }
.fb-modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.fb-modal__box { position: relative; background: var(--surface); border-radius: var(--radius); width: 100%; max-width: 440px; display: flex; flex-direction: column; box-shadow: var(--shadow-md); border: 1px solid var(--border); }
.fb-modal__header { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 14px; border-bottom: 1px solid var(--border); }
.fb-modal__header h2 { font-size: .95rem; font-weight: 600; }
.fb-modal__body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.fb-topics__label { font-size: .75rem; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .07em; }
.fb-topics__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fb-topic { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 13px; font-size: .875rem; cursor: pointer; text-align: left; transition: all .12s; color: var(--text); line-height: 1.35; }
.fb-topic:hover { border-color: var(--accent); color: var(--accent); }
.fb-topic--active { border-color: var(--accent); background: #fff5f5; color: var(--accent); font-weight: 500; }
.fb-selected-topic { display: flex; align-items: center; gap: 10px; }
.fb-back { background: none; border: none; color: var(--muted); font-size: .82rem; cursor: pointer; padding: 0; }
.fb-back:hover { color: var(--accent); }
#fb-topic-name { font-weight: 600; font-size: .875rem; }
.fb-success { text-align: center; padding: 8px 0 4px; }
.fb-success__icon { font-size: 1.3rem; color: var(--success); background: #f0fdf4; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; border: 1px solid #bbf7d0; }
.fb-success h3 { font-size: .95rem; font-weight: 600; margin-bottom: 5px; }
.fb-success p { color: var(--muted); font-size: .875rem; margin-bottom: 16px; }

/* ── Radio group (company type) ─────────────────── */
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-option { display: flex; align-items: center; gap: 7px; cursor: pointer; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: .875rem; transition: all .12s; }
.radio-option:hover { border-color: var(--accent); }
.radio-option input[type="radio"] { accent-color: var(--accent); }
.radio-option:has(input:checked) { border-color: var(--accent); background: #fff5f5; color: var(--accent); font-weight: 500; }

/* ── City checklist ──────────────────────────────── */
.city-filter-input { width: 100%; padding: 7px 11px; border: 1px solid var(--border); border-radius: var(--radius); font-size: .875rem; background: var(--surface); color: var(--text); margin-bottom: 8px; }
.city-filter-input:focus { outline: none; border-color: var(--accent); }
.cities-check-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; max-height: 220px; overflow-y: auto; padding: 6px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); }
.city-check { cursor: pointer; }
.city-check__input { display: none; }
.city-check__name { display: block; padding: 5px 9px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-size: .82rem; text-align: center; transition: all .12s; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-check__input:checked + .city-check__name { border-color: var(--accent); color: var(--accent); background: #fff5f5; font-weight: 500; }
.city-check__name:hover { border-color: var(--accent); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .dashboard { grid-template-columns: 1fr; }
    .dashboard__sidebar { position: static; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .categories-grid { columns: 2; }
    .cta-banner__inner { flex-direction: column; }
    .cta-banner__divider { width: 100%; height: 1px; }
    .categories-check-grid { grid-template-columns: 1fr 1fr; }
    .cities-check-grid { grid-template-columns: repeat(2, 1fr); }
    .radio-group { flex-direction: column; gap: 6px; }
}

/* Additional category tags */
.cat-tag { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; background:var(--bg); border:1px solid var(--border-dark); border-radius:var(--radius); font-size:.82rem; color:var(--text); font-weight:500; }
.cat-tag__remove { background:none; border:none; cursor:pointer; color:var(--muted); font-size:1rem; line-height:1; padding:0; display:flex; align-items:center; }
.cat-tag__remove:hover { color:var(--accent); }
.link-action { font-size:.875rem; color:var(--accent); text-decoration:none; cursor:pointer; display:inline-block; }
.link-action:hover { text-decoration:underline; }

/* Category autocomplete */
.cat-tags { display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:.4rem; }
.cat-ac { position:relative; }
.cat-ac__input { width:100%; }
.cat-ac__input::placeholder { color:var(--muted); }
.cat-ac__list { position:absolute; top:100%; left:0; right:0; background-color:#ffffff; border:1px solid var(--border-dark); border-radius:var(--radius); box-shadow:0 4px 16px rgba(0,0,0,.13); max-height:220px; overflow-y:auto; z-index:200; margin:2px 0 0; padding:4px 0; list-style:none; list-style-type:none; }
.cat-ac__item { padding:8px 12px; cursor:pointer; font-size:.88rem; color:var(--text); list-style:none; list-style-type:none; }
.cat-ac__item:hover { background-color:var(--bg); color:var(--accent); }

/* Optional collapsible form section */
.form-optional { border:1px solid var(--border); border-radius:var(--radius); margin-bottom:14px; }
.form-optional > summary { padding:10px 14px; cursor:pointer; font-size:.875rem; font-weight:500; color:var(--muted); list-style:none; display:flex; align-items:center; gap:6px; user-select:none; }
.form-optional > summary::-webkit-details-marker { display:none; }
.form-optional > summary::before { content:'›'; font-size:1rem; transition:transform .15s; display:inline-block; }
.form-optional[open] > summary::before { transform:rotate(90deg); }
.form-optional > summary:hover { color:var(--text); }
.form-optional__body { padding:0 14px 14px; }

/* Link rows */
.links-list { display:flex; flex-direction:column; gap:6px; margin-bottom:.4rem; }
.link-row { display:flex; align-items:center; gap:8px; }
.link-row__type { font-size:.8rem; font-weight:600; color:var(--muted); min-width:72px; flex-shrink:0; }
.link-row__input { flex:1; min-width:0; }
.link-row__remove { background:none; border:none; cursor:pointer; color:var(--muted); font-size:1.1rem; line-height:1; padding:0 4px; flex-shrink:0; }
.link-row__remove:hover { color:var(--accent); }
