:root {
  color-scheme: light;
  --paper: #f5f6f1;
  --surface: #fffefa;
  --ink: #162c27;
  --muted: #526560;
  --line: #d9e1d9;
  --forest: #103f35;
  --deep: #0a2d26;
  --green: #18715c;
  --mint: #e3efe6;
  --amber: #795207;
  --focus: #237396;
  --radius: 10px;
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
::selection { background: #b9e4cf; color: var(--deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
body { margin: 0; min-width: 300px; }
button, input, select { font: inherit; }
button { color: inherit; cursor: pointer; }
a { color: var(--green); text-underline-offset: 3px; }
button:disabled { opacity: .55; cursor: default; }
svg { width: 1.2rem; height: 1.2rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead-inner { max-width: 1390px; margin: auto; padding: 0 34px; display: flex; align-items: center; gap: 32px; min-height: 71px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-weight: 700; }
.brand-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 8px; color: #e4f5e8; background: var(--forest); }
.brand-icon svg { width: 20px; height: 20px; }
.tabs { display: flex; gap: 22px; align-self: stretch; }
.tab { display: inline-flex; align-items: center; gap: 7px; padding: 0 3px; background: none; border: 0; border-bottom: 2px solid transparent; margin-top: 2px; color: var(--muted); font-weight: 600; }
.tab:hover, .tab.is-active { color: var(--forest); }
.tab.is-active { border-bottom-color: var(--green); }
.tab svg { width: 16px; height: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid var(--line); padding: 7px 13px; background: var(--surface); border-radius: 7px; font-size: .91rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease; }
.btn:not(:disabled):hover { background: var(--mint); border-color: #adcbb9; }
.btn.export { margin-left: auto; background: var(--forest); border-color: var(--forest); color: white; }
.btn.export:not(:disabled):hover { background: #18584a; border-color: #18584a; }
.workspace-content { max-width: 1390px; margin: 0 auto; padding: 26px 34px 54px; }
.intro { position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; min-height: 155px; margin-bottom: 23px; padding: 25px 30px 27px; border-radius: 13px; background: var(--forest); color: #f0f8ed; }
h1, h2, h3, p { margin: 0; }
.intro h1 { margin: 0 0 9px; font-weight: 650; letter-spacing: -.035em; font-size: 2.65rem; line-height: 1.07; }
.intro p { color: #d6e9dd; line-height: 1.45; }
.catalog-stats { display: flex; align-items: baseline; gap: 7px; padding: 8px 11px; border: 1px solid #ffffff42; border-radius: 7px; background: var(--deep); white-space: nowrap; font-size: .88rem; color: #d6e9dd; }
.catalog-number { font-weight: 750; font-variant-numeric: tabular-nums; color: #f0f8ed; }
.stat-divider { width: 4px; height: 4px; border-radius: 100%; margin: 0 3px 3px; background: #97bfb0; }
.catalog-layout { display: grid; gap: 21px; grid-template-columns: minmax(190px, 235px) minmax(0, 1fr); align-items: start; }
.industry-menu { padding: 14px 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.industry-menu h2 { font-size: .94rem; margin: 3px 10px 12px; }
.industry-option { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; width: 100%; padding: 9px 9px; margin-bottom: 2px; border: 0; border-radius: 6px; background: transparent; text-align: left; color: var(--muted); font-size: .87rem; line-height: 1.3; transition: background-color .15s; }
.industry-option:hover, .industry-option.is-current { color: var(--forest); background: var(--mint); }
.industry-option.is-current { font-weight: 700; }
.industry-count { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.search-area { min-width: 0; }
.filters { padding: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.search-line { display: flex; align-items: center; gap: 10px; }
.search-control { display: flex; align-items: center; position: relative; flex: 1; min-width: 0; }
.search-control svg { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search-control input { width: 100%; min-height: 43px; border: 1px solid #bfcbc2; border-radius: 7px; background: #fff; padding: 9px 10px 9px 39px; color: var(--ink); }
.search-control input::placeholder { color: #586c64; }
.filter-toggle { min-height: 43px; }
.filter-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; margin-top: 14px; }
.filter-fields label { min-width: 0; display: grid; gap: 5px; font-weight: 600; font-size: .8rem; color: var(--muted); }
.filter-fields label.mobile-industry { display: none; }
select { color: var(--ink); min-width: 0; width: 100%; min-height: 36px; border: 1px solid #d2ddd4; background: #fff; border-radius: 6px; padding: 5px 7px; font-size: .87rem; }
.active-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 13px; }
.chip { padding: 4px 8px; border: 1px solid transparent; background: #eaf1e9; border-radius: 5px; color: #2c5449; font-size: .74rem; line-height: 1.35; text-align: left; }
.chip:hover { background: #dceadd; color: var(--deep); }
.chip.muted { color: var(--muted); }
.chip.removable { display: inline-flex; align-items: center; gap: 3px; border-color: #cbdace; }
.chip svg { width: 13px; height: 13px; }
.clear { margin-left: 3px; border: 0; padding: 4px; background: none; font-size: .8rem; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.results-head { display: flex; align-items: baseline; gap: 17px; justify-content: space-between; margin: 23px 1px 11px; }
.results-head h2 { font-size: 1.2rem; line-height: 1.22; }
.results-head span { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); font-size: .87rem; }
.results { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 25%); gap: 17px; padding: 16px 16px 16px 18px; }
.result + .result { border-top: 1px solid var(--line); }
.result-meta, .detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.client-name { color: var(--forest); font-weight: 700; }
.dot { width: 3px; height: 3px; border-radius: 100%; background: #66857b; }
.result h3 { margin: 4px 0 4px; }
.result-title { background: none; border: 0; text-align: left; padding: 0; font-weight: 700; font-size: 1.13rem; letter-spacing: -.012em; line-height: 1.24; overflow-wrap: anywhere; }
.result-title:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.result-description { color: var(--muted); font-size: .89rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 86ch; }
.result-tags { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 5px; }
.result-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; text-align: right; }
.status { padding: 4px 7px; border-radius: 5px; color: #505b55; background: #edf0eb; font-size: .74rem; line-height: 1.25; font-weight: 600; }
.status.done { color: #215447; background: #e3efe6; }
.status.work { color: var(--amber); background: #f7eed3; }
.result-type { font-size: .77rem; color: var(--muted); }
.details-button { gap: 5px; min-height: 29px; padding: 4px 7px; margin-top: 6px; color: var(--forest); border-color: transparent; }
.details-button svg { width: 16px; height: 16px; }
.pages { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 17px; }
.page-location { font-size: .88rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.empty { padding: 37px 21px; color: var(--muted); line-height: 1.5; }
.empty h3 { margin-bottom: 5px; color: var(--ink); }
.industry-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.industry-card { position: relative; display: grid; gap: 7px; min-height: 128px; text-align: left; padding: 18px 45px 16px 17px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.industry-card:hover { background: var(--mint); border-color: #adcbb9; }
.industry-card-count { color: var(--green); font-weight: 700; font-size: .8rem; font-variant-numeric: tabular-nums; }
.industry-card-title { font-size: 1.1rem; line-height: 1.2; font-weight: 700; }
.industry-card-clients { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.industry-card svg { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--green); }
dialog { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(690px, 100%); max-width: 100%; padding: 0; background: var(--surface); border: 0; border-left: 1px solid var(--line); color: var(--ink); }
dialog[open] { animation: enter .19s ease-out; }
dialog::backdrop { background: #102a2477; }
body:has(dialog[open]) { overflow: hidden; }
.details-inner { padding: 21px 28px 40px; }
.detail-toolbar { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: .85rem; margin-bottom: 13px; }
.icon-btn { width: 36px; min-height: 36px; padding: 0; }
.detail-meta { margin-bottom: 7px; }
.detail-title { letter-spacing: -.025em; line-height: 1.13; font-size: 1.75rem; }
.detail-classification { margin-top: 9px; color: var(--muted); }
.detail-tags { margin: 13px 0 17px; }
.detail-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.document-link { color: var(--forest); }
.document-link:first-child { background: var(--forest); color: white; border-color: var(--forest); }
.document-link:first-child:hover { background: #18584a; color: white; }
.detail-section { padding: 15px 0 14px; border-top: 1px solid var(--line); }
.detail-section h3 { font-size: .96rem; margin-bottom: 5px; }
.detail-section p { font-size: .94rem; line-height: 1.55; overflow-wrap: anywhere; }
.detail-section .detail-note { margin-top: 6px; color: var(--muted); font-size: .85rem; }
.notice { position: fixed; bottom: 18px; left: 18px; z-index: 5; background: var(--deep); color: white; border-radius: 8px; padding: 13px 16px; max-width: calc(100% - 36px); box-shadow: 0 8px 30px #0003; }
.access { max-width: 620px; margin: min(16vh, 140px) auto; padding: 26px 28px; }
.access h1 { margin-bottom: 13px; }
.access p { color: var(--muted); line-height: 1.6; margin-bottom: 13px; }
@keyframes enter { from { opacity: .85; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 1000px) { .workspace-content, .masthead-inner { padding-right: 23px; padding-left: 23px; } }
@media (max-width: 750px) {
  .masthead-inner { gap: 16px; min-height: 61px; }
  .brand-icon { width: 30px; height: 30px; }
  .tabs { gap: 12px; }
  .industry-menu { display: none; }
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filter-fields label.mobile-industry { display: grid; }
  .industry-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .workspace-content, .masthead-inner { padding-left: 12px; padding-right: 12px; }
  .masthead-inner { flex-wrap: wrap; justify-content: space-between; gap: 0 8px; padding-top: 9px; }
  .masthead-inner .tabs { order: 3; width: 100%; min-height: 42px; }
  .masthead-inner .export { min-height: 35px; }
  .intro { flex-direction: column; align-items: flex-start; gap: 14px; min-height: 0; padding: 18px; margin-bottom: 14px; }
  .intro h1 { font-size: 2.05rem; }
  .workspace-content { padding-top: 14px; }
  .filters { padding: 10px; }
  .filter-toggle { font-size: .78rem; padding-inline: 6px; }
  .filter-toggle svg { display: none; }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 7px; }
  .result { grid-template-columns: 1fr; gap: 8px; padding: 13px; }
  .result-actions { flex-direction: row; flex-wrap: wrap; align-items: center; text-align: left; }
  .details-button { margin-top: 0; margin-left: auto; }
  .industry-cards { grid-template-columns: 1fr; }
  .industry-card { min-height: 100px; }
  .details-inner { padding: 15px 17px 24px; }
  .document-link { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
