/* Authorium Omnisearch Prototype — Shared Styles */
:root {
  --au-blue: #1d6fc4;
  --au-blue-dark: #155aa3;
  --au-blue-light: #e8f1fb;
  --au-teal: #0b9b8a;
  --au-teal-light: #e0f5f2;
  --au-green: #2e7d4f;
  --au-green-light: #e6f4ec;
  --au-yellow-hi: #fff3a8;
  --au-yellow-hi-border: #f5d858;
  --au-text: #1a1d21;
  --au-text-muted: #5c6370;
  --au-text-subtle: #8a8f98;
  --au-border: #e4e7eb;
  --au-border-strong: #cbd0d6;
  --au-bg: #f7f8fa;
  --au-surface: #ffffff;
  --au-hover: #f1f4f8;
  --au-shadow-sm: 0 1px 2px rgba(20,30,50,0.06);
  --au-shadow-md: 0 4px 12px rgba(20,30,50,0.08);
  --au-shadow-lg: 0 16px 48px rgba(20,30,50,0.16);
  --au-radius-sm: 4px;
  --au-radius: 6px;
  --au-radius-lg: 10px;
  --au-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: var(--au-font); color: var(--au-text); background: var(--au-bg); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
.proto-bar { position: fixed; top: 0; left: 0; right: 0; height: 44px; background: #111418; color: #e4e7eb; display: flex; align-items: center; gap: 16px; padding: 0 20px; z-index: 10000; font-size: 12px; border-bottom: 1px solid #2a2f36; }
.proto-bar__label { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: #8a8f98; font-size: 11px; }
.proto-bar__links { display: flex; gap: 4px; }
.proto-bar__link { color: #c0c4cb; text-decoration: none; padding: 6px 12px; border-radius: var(--au-radius); font-size: 12px; transition: background 0.15s; }
.proto-bar__link:hover { background: #2a2f36; color: #fff; }
.proto-bar__link.is-active { background: #1d6fc4; color: #fff; }
.proto-bar__spacer { flex: 1; }
.proto-bar__note { color: #8a8f98; font-size: 11px; }
body.has-proto-bar { padding-top: 44px; }
.bg-layer { position: fixed; top: 44px; left: 0; right: 0; bottom: 0; background-repeat: no-repeat; background-position: top left; background-size: 100% auto; background-color: #f3f4f6; z-index: 1; pointer-events: none; }
.bg-layer.is-dashboard { background-image: url('assets/bg-dashboard.png'); }
.bg-layer.is-project { background-image: url('assets/bg-project.png'); }
.header-overlay { position: fixed; top: 44px; left: 0; right: 0; height: 64px; z-index: 100; pointer-events: none; }
.header-overlay__inner { position: absolute; top: 14px; right: 60px; left: auto; pointer-events: auto; }
.omni { position: relative; width: 420px; transition: width 0.2s ease; }
.omni.is-expanded { width: 640px; }
.omni__input-wrap { position: relative; display: flex; align-items: center; background: #fff; border: 1px solid var(--au-border-strong); border-radius: 20px; padding: 0 14px 0 12px; height: 36px; box-shadow: var(--au-shadow-sm); transition: box-shadow 0.15s, border-color 0.15s; }
.omni.is-focused .omni__input-wrap { border-color: var(--au-blue); box-shadow: 0 0 0 3px rgba(29,111,196,0.12); }
.omni__icon { color: var(--au-text-subtle); margin-right: 8px; flex-shrink: 0; }
.omni__input { flex: 1; border: none; outline: none; background: transparent; font-size: 13px; font-family: inherit; color: var(--au-text); }
.omni__input::placeholder { color: var(--au-text-subtle); }
.omni__kbd { display: flex; align-items: center; gap: 2px; color: var(--au-text-subtle); font-size: 11px; padding: 2px 6px; background: #f3f4f6; border: 1px solid var(--au-border); border-radius: 4px; font-family: var(--au-font); margin-left: 8px; flex-shrink: 0; }
.omni__clear { display: none; background: transparent; border: none; color: var(--au-text-subtle); cursor: pointer; padding: 4px; margin-left: 4px; border-radius: 4px; }
.omni__clear:hover { background: var(--au-hover); color: var(--au-text); }
.omni.has-value .omni__clear { display: flex; }
.omni.has-value .omni__kbd { display: none; }
.scope-chip { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; background: var(--au-blue-light); border: 1px solid #c7dcf1; border-radius: 14px; color: var(--au-blue-dark); font-size: 11px; font-weight: 500; margin-top: 8px; margin-left: 4px; width: fit-content; }
.scope-chip__future-tag { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; background: #ffecd4; color: #8a5a1e; padding: 1px 5px; border-radius: 3px; font-weight: 600; margin-left: 4px; }
.scope-chip__escape { background: none; border: none; color: var(--au-blue); font-size: 11px; cursor: pointer; padding: 0 0 0 6px; margin-left: 2px; border-left: 1px solid #c7dcf1; font-weight: 500; }
.scope-chip__escape:hover { text-decoration: underline; }
.omni__dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--au-border); border-radius: var(--au-radius-lg); box-shadow: var(--au-shadow-lg); max-height: 560px; overflow: hidden; display: none; flex-direction: column; }
.omni.is-open .omni__dropdown { display: flex; }
.omni__dropdown-body { flex: 1; overflow-y: auto; padding: 0; }
.view-toggle { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-bottom: 1px solid var(--au-border); background: #fafbfc; }
.view-toggle__label { font-size: 11px; color: var(--au-text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.view-toggle__pill { display: inline-flex; background: #fff; border: 1px solid var(--au-border); border-radius: 14px; padding: 2px; }
.view-toggle__pill button { border: none; background: transparent; padding: 4px 12px; border-radius: 12px; font-size: 11px; font-weight: 500; color: var(--au-text-muted); cursor: pointer; transition: background 0.15s, color 0.15s; }
.view-toggle__pill button.is-active { background: var(--au-blue); color: #fff; }
.entity-group { padding: 8px 0; border-bottom: 1px solid var(--au-border); }
.entity-group:last-of-type { border-bottom: none; }
.entity-group__header { display: flex; align-items: center; justify-content: space-between; padding: 6px 14px; }
.entity-group__label { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--au-text-muted); }
.entity-group__count { background: #f1f4f8; color: var(--au-text-muted); padding: 1px 7px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.entity-group__see-all { font-size: 11px; color: var(--au-blue); text-decoration: none; font-weight: 500; }
.entity-group__see-all:hover { text-decoration: underline; }
.result { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; cursor: pointer; text-decoration: none; color: inherit; transition: background 0.1s; border-left: 3px solid transparent; }
.result:hover, .result.is-active { background: var(--au-blue-light); border-left-color: var(--au-blue); }
.result__icon { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 6px; flex-shrink: 0; background: #f1f4f8; color: var(--au-text-muted); }
.result__icon.is-project { background: #fef4e4; color: #b5731f; }
.result__icon.is-contract { background: var(--au-blue-light); color: var(--au-blue); }
.result__icon.is-supplier { background: var(--au-teal-light); color: var(--au-teal); }
.result__icon.is-document { background: #f3f4f6; color: var(--au-text-muted); }
.result__body { flex: 1; min-width: 0; }
.result__title { font-size: 13px; font-weight: 500; color: var(--au-text); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; }
.result__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 11px; color: var(--au-text-muted); }
.result__meta-item { display: inline-flex; align-items: center; gap: 3px; }
.result__match-hint { display: inline-flex; align-items: center; gap: 4px; margin-top: 3px; font-size: 11px; color: var(--au-text-muted); font-style: italic; }
.result__match-hint svg { color: var(--au-text-subtle); }
.container-project { padding: 6px 0; }
.container-project__parent { display: flex; align-items: flex-start; gap: 10px; padding: 8px 14px; cursor: pointer; transition: background 0.1s; border-left: 3px solid transparent; }
.container-project__parent:hover { background: var(--au-blue-light); border-left-color: var(--au-blue); }
.container-project__parent .result__title { font-weight: 600; }
.container-project__children { padding: 0 0 4px 0; margin-left: 40px; border-left: 2px solid #edf0f4; margin-right: 14px; }
.container-project__children .result { padding: 6px 12px; border-left: 2px solid transparent; margin-left: -2px; }
.container-project__children .result:hover { border-left-color: var(--au-blue); background: var(--au-blue-light); }
.container-project__children .result__icon { width: 22px; height: 22px; }
.container-project__children .result__title { font-size: 12px; }
mark.hl { background: var(--au-yellow-hi); padding: 0 2px; border-radius: 2px; color: inherit; font-weight: 500; }
.omni__footer { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--au-border); background: #fafbfc; font-size: 11px; color: var(--au-text-muted); }
.omni__footer-see-all { display: flex; align-items: center; gap: 8px; color: var(--au-blue); text-decoration: none; font-weight: 500; cursor: pointer; padding: 4px 10px; border-radius: 6px; transition: background 0.15s; }
.omni__footer-see-all:hover { background: var(--au-blue-light); }
.omni__footer-see-all .key-badge, .omni__footer-hints .key-badge { display: inline-flex; align-items: center; padding: 1px 6px; background: #fff; border: 1px solid var(--au-border); border-radius: 3px; font-size: 10px; color: var(--au-text-muted); font-weight: 500; margin-right: 4px; }
.omni__footer-hints { display: flex; align-items: center; gap: 12px; }
.omni__empty { padding: 32px 20px; text-align: center; color: var(--au-text-muted); }
.omni__empty-title { font-weight: 500; color: var(--au-text); margin-bottom: 4px; }
.omni__empty-suggestion { font-size: 12px; margin-top: 8px; }
.omni__empty-suggestion a { color: var(--au-blue); text-decoration: none; }
.omni__empty-suggestion a:hover { text-decoration: underline; }
.landing { max-width: 860px; margin: 0 auto; padding: 80px 40px 40px; }
.landing__eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--au-blue); font-weight: 600; margin-bottom: 12px; }
.landing__title { font-size: 32px; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; color: var(--au-text); }
.landing__subtitle { font-size: 16px; color: var(--au-text-muted); margin: 0 0 40px; line-height: 1.6; }
.landing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-bottom: 48px; }
.landing__card { background: #fff; border: 1px solid var(--au-border); border-radius: var(--au-radius-lg); padding: 24px; text-decoration: none; color: inherit; transition: all 0.15s; display: flex; flex-direction: column; gap: 8px; }
.landing__card:hover { border-color: var(--au-blue); box-shadow: var(--au-shadow-md); transform: translateY(-1px); }
.landing__card-tag { display: inline-block; font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--au-text-muted); font-weight: 600; margin-bottom: 4px; }
.landing__card h3 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.landing__card p { margin: 4px 0 0; font-size: 13px; color: var(--au-text-muted); line-height: 1.5; }
.landing__card-arrow { margin-top: 12px; color: var(--au-blue); font-size: 12px; font-weight: 500; display: flex; align-items: center; gap: 4px; }
.landing__section { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--au-border); }
.landing__section h2 { font-size: 14px; font-weight: 600; margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--au-text-muted); }
.landing__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.landing__list li { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: var(--au-text); line-height: 1.5; }
.landing__list li::before { content: ""; display: block; width: 5px; height: 5px; background: var(--au-blue); border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.results-page { padding-top: 44px; min-height: 100vh; background: var(--au-bg); }
.results-header { background: #fff; border-bottom: 1px solid var(--au-border); padding: 20px 32px 0; position: sticky; top: 44px; z-index: 50; }
.results-header__top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.results-header__back { background: transparent; border: 1px solid var(--au-border); color: var(--au-text-muted); padding: 6px 10px; border-radius: 6px; cursor: pointer; font-size: 12px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.results-header__back:hover { background: var(--au-hover); color: var(--au-text); }
.results-header__title { font-size: 20px; font-weight: 600; margin: 0; }
.results-header__title em { font-style: normal; background: var(--au-yellow-hi); padding: 0 4px; border-radius: 3px; }
.results-header__meta { color: var(--au-text-muted); font-size: 13px; margin-left: auto; }
.results-header__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.results-tabs { display: flex; gap: 0; }
.results-tab { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: none; background: transparent; color: var(--au-text-muted); font-size: 13px; font-weight: 500; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; font-family: inherit; }
.results-tab:hover { color: var(--au-text); }
.results-tab.is-active { color: var(--au-blue); border-bottom-color: var(--au-blue); }
.results-tab__count { background: #f1f4f8; color: var(--au-text-muted); padding: 1px 6px; border-radius: 10px; font-size: 10px; font-weight: 600; }
.results-tab.is-active .results-tab__count { background: var(--au-blue-light); color: var(--au-blue); }
.results-body { display: grid; grid-template-columns: 280px 1fr; gap: 0; min-height: calc(100vh - 200px); }
.filter-rail { background: #fff; border-right: 1px solid var(--au-border); padding: 20px; overflow-y: auto; position: sticky; top: 180px; align-self: start; max-height: calc(100vh - 180px); }
.filter-rail__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.filter-rail__title { font-size: 15px; font-weight: 600; margin: 0; }
.filter-rail__actions { display: flex; gap: 6px; }
.filter-rail__btn { border: 1px solid var(--au-border); background: #fff; color: var(--au-text); padding: 4px 10px; border-radius: 4px; font-size: 11px; cursor: pointer; font-family: inherit; }
.filter-rail__btn--primary { background: var(--au-blue); color: #fff; border-color: var(--au-blue); }
.filter-rail__btn:hover { background: var(--au-hover); }
.filter-rail__btn--primary:hover { background: var(--au-blue-dark); }
.applied-filters { padding: 12px 0; border-bottom: 1px solid var(--au-border); margin-bottom: 16px; }
.applied-filters__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.applied-filters__label { font-size: 12px; font-weight: 600; color: var(--au-text); }
.applied-filters__clear { background: none; border: none; color: var(--au-blue); font-size: 11px; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; padding: 0; font-family: inherit; }
.applied-filters__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; background: var(--au-teal-light); border: 1px solid #b8e0d9; border-radius: 4px; font-size: 11px; color: #086e60; }
.chip button { background: none; border: none; color: #086e60; cursor: pointer; padding: 0; display: flex; align-items: center; font-family: inherit; }
.chip button:hover { opacity: 0.7; }
.match-logic { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: 12px; color: var(--au-text-muted); }
.match-logic__toggle { display: inline-flex; background: #f1f4f8; border-radius: 4px; padding: 2px; }
.match-logic__toggle button { background: transparent; border: none; padding: 3px 10px; font-size: 11px; border-radius: 3px; cursor: pointer; color: var(--au-text-muted); font-weight: 500; font-family: inherit; }
.match-logic__toggle button.is-active { background: #fff; color: var(--au-text); box-shadow: var(--au-shadow-sm); }
.filter-group { margin-bottom: 20px; }
.filter-group__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.filter-group__title { font-size: 12px; font-weight: 600; color: var(--au-text); }
.filter-group__select-all { background: none; border: none; color: var(--au-blue); font-size: 11px; cursor: pointer; padding: 0; font-family: inherit; }
.filter-group__select-all:hover { text-decoration: underline; }
.filter-group__options { display: flex; flex-direction: column; gap: 6px; }
.filter-option { display: flex; align-items: center; gap: 8px; font-size: 12px; cursor: pointer; color: var(--au-text); padding: 3px 0; }
.filter-option input[type="checkbox"] { width: 15px; height: 15px; margin: 0; accent-color: var(--au-blue); }
.filter-group__more { background: none; border: none; color: var(--au-blue); font-size: 11px; cursor: pointer; padding: 6px 0; display: inline-flex; align-items: center; gap: 2px; font-family: inherit; }
.filter-search { position: relative; margin-bottom: 16px; }
.filter-search input { width: 100%; padding: 7px 10px 7px 30px; border: 1px solid var(--au-border); border-radius: 4px; font-size: 12px; font-family: inherit; }
.filter-search svg { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--au-text-subtle); }
.results-list { padding: 20px 32px 60px; max-width: 980px; }
.results-view-toggle { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--au-text-muted); }
.results-section { margin-bottom: 28px; }
.results-section__header { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--au-border); margin-bottom: 4px; }
.results-section__icon { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 5px; }
.results-section__title { font-size: 14px; font-weight: 600; color: var(--au-text); }
.results-section__count { background: #f1f4f8; color: var(--au-text-muted); padding: 1px 7px; border-radius: 10px; font-size: 11px; font-weight: 600; }
.results-section__sort { margin-left: auto; font-size: 12px; color: var(--au-text-muted); }
.results-section__sort select { border: 1px solid var(--au-border); padding: 3px 6px; border-radius: 4px; font-size: 12px; font-family: inherit; background: #fff; }
.results-row { display: grid; grid-template-columns: 32px 1fr auto; align-items: flex-start; gap: 12px; padding: 12px 4px; border-bottom: 1px solid #f1f4f8; text-decoration: none; color: inherit; cursor: pointer; }
.results-row:hover { background: var(--au-hover); }
.results-row__body { min-width: 0; }
.results-row__title { font-size: 14px; font-weight: 500; color: var(--au-blue); margin-bottom: 2px; }
.results-row__meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--au-text-muted); margin-top: 4px; }
.results-row__meta-item { display: inline-flex; align-items: center; gap: 4px; }
.results-row__snippet { margin-top: 6px; font-size: 12px; color: var(--au-text-muted); padding: 6px 10px; background: #fafbfc; border-left: 2px solid var(--au-border-strong); border-radius: 2px; font-style: italic; }
.results-row__status { font-size: 11px; padding: 3px 8px; border-radius: 10px; font-weight: 500; flex-shrink: 0; }
.status-active { background: var(--au-green-light); color: var(--au-green); }
.status-in-progress { background: var(--au-blue-light); color: var(--au-blue); }
.status-draft { background: #f3f4f6; color: var(--au-text-muted); }
.status-archived { background: #f3f4f6; color: var(--au-text-muted); }
.container-row { border-bottom: 1px solid var(--au-border); padding: 12px 4px 14px; }
.container-row__parent { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.container-row__children { margin-left: 44px; padding-left: 16px; border-left: 2px solid #edf0f4; display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.container-row__child { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: flex-start; padding: 6px 0; text-decoration: none; color: inherit; border-radius: 4px; }
.container-row__child:hover { background: var(--au-hover); padding: 6px 8px; }
.container-row__child .results-row__title { font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }