:root {
  color-scheme: light;
  --bg: #f3efe8;
  --paper: #fbfaf7;
  --paper-strong: #ffffff;
  --ink: #24343b;
  --muted: #66757a;
  --faint: #8e9a9b;
  --line: #d9dedb;
  --line-strong: #c5cfca;
  --accent: #b86f55;
  --accent-deep: #8f4f3d;
  --blue: #3d6974;
  --amber: #aa7740;
  --shadow: 0 18px 55px rgba(52, 61, 58, .12);
  --shadow-soft: 0 8px 26px rgba(52, 61, 58, .08);
}
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% -12%, rgba(184,111,85,.14), transparent 30rem),
    radial-gradient(circle at -8% 32%, rgba(61,105,116,.09), transparent 27rem),
    var(--bg);
  font-family: Inter, "Avenir Next", "Segoe UI", sans-serif;
  letter-spacing: .005em;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  z-index: 5;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
.app-shell { max-width: 1580px; margin: 0 auto; padding: 0 42px 42px; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 94px;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); text-decoration: none; }
.wordmark-mark {
  display: block;
  width: 58px;
  height: 58px;
  overflow: visible;
  flex: 0 0 auto;
}
.wordmark-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.wordmark strong { display: block; font-size: 17px; font-weight: 750; letter-spacing: -.035em; }
.wordmark small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 18px; }
.sync-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.sync-status i { width: 7px; height: 7px; border-radius: 50%; background: #6f9b85; box-shadow: 0 0 0 4px rgba(111,155,133,.15); }
.lang-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.58); }
.lang-switch button { min-width: 42px; height: 30px; padding: 0 10px; border: 0; border-radius: 999px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.lang-switch button:hover { color: var(--ink); }
.lang-switch .is-active { color: #fff; background: var(--ink); box-shadow: 0 3px 7px rgba(36,52,59,.18); }
.workspace { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 58px; }
.sidebar { position: sticky; top: 0; align-self: start; height: calc(100vh - 94px); padding: 42px 0 28px; overflow: hidden; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { margin: 0 0 9px; color: var(--accent-deep); font-size: 10px; font-weight: 800; letter-spacing: .17em; line-height: 1.2; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 230px; margin-bottom: 0; font-family: Georgia, "Iowan Old Style", serif; font-size: 34px; font-weight: 400; line-height: 1; letter-spacing: -.055em; }
h2 { max-width: 720px; margin-bottom: 15px; font-family: Georgia, "Iowan Old Style", serif; font-size: clamp(42px, 5.4vw, 78px); font-weight: 400; line-height: .95; letter-spacing: -.07em; }
h3 { margin-bottom: 0; font-size: 21px; font-weight: 720; letter-spacing: -.035em; }
.side-note { max-width: 230px; margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.stat-grid div { padding: 15px 13px 13px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.5); box-shadow: var(--shadow-soft); }
.stat-grid strong { display: block; color: var(--ink); font-size: 25px; font-weight: 650; line-height: 1; }
.stat-grid span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.field { display: grid; gap: 8px; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
input, select { width: 100%; height: 46px; border: 1px solid var(--line); border-radius: 11px; outline: none; color: var(--ink); background: rgba(255,255,255,.78); transition: border-color .2s, background .2s, box-shadow .2s; }
input { padding: 0 14px; }
select { padding: 0 13px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 20px, calc(100% - 12px) 20px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
input::placeholder { color: var(--faint); }
input:focus, select:focus { border-color: rgba(184,111,85,.72); background: #fff; box-shadow: 0 0 0 4px rgba(184,111,85,.11); }
.brand-list { flex: 1; overflow: auto; padding-right: 8px; scrollbar-width: thin; scrollbar-color: rgba(184,111,85,.5) transparent; }
.brand-button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 35px; margin: 1px 0; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; text-align: left; font-size: 13px; }
.brand-button:hover { color: var(--ink); background: rgba(255,255,255,.65); }
.brand-button.is-active { border-color: rgba(184,111,85,.27); color: var(--accent-deep); background: rgba(184,111,85,.10); }
.brand-button span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count { min-width: 28px; color: var(--faint); font-size: 10px; text-align: right; }
.content { min-width: 0; padding: 74px 0 34px; }
.hero-row { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 57px; }
.hero-copy { max-width: 530px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; }
.hero-stamp { display: grid; grid-template-columns: auto auto; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 50px; color: var(--muted); background: rgba(255,255,255,.34); transform: rotate(-3deg); }
.hero-stamp span { color: var(--accent-deep); font-family: Georgia, serif; font-size: 28px; line-height: 1; }
.hero-stamp small { font-size: 9px; font-weight: 800; line-height: 1.3; letter-spacing: .15em; text-transform: uppercase; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 13px; margin-bottom: 25px; }
.input-wrap { position: relative; }
.input-wrap input { padding-left: 40px; }
.search-icon { position: absolute; left: 14px; top: 9px; color: var(--accent-deep); font-family: Georgia, serif; font-size: 23px; line-height: 1; pointer-events: none; }
.result-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 17px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.result-head .eyebrow { margin-bottom: 5px; color: var(--muted); }
.ghost, .secondary { min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 9px; color: var(--muted); background: rgba(255,255,255,.48); font-size: 12px; font-weight: 750; }
.ghost:hover, .secondary:hover { border-color: var(--accent); color: var(--accent-deep); background: #fff; }
.results { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.result-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; margin-top: 24px; }
.result-pagination p { margin: 0; color: var(--muted); font-size: 12px; }
.result-pagination button { min-height: 44px; }
.card { display: grid; grid-template-rows: auto minmax(0,1fr); min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--paper-strong); box-shadow: var(--shadow-soft); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.card:hover { transform: translateY(-3px); border-color: rgba(184,111,85,.35); box-shadow: var(--shadow); }
.thumb { width: 100%; aspect-ratio: 1.22 / 1; object-fit: cover; object-position: center; background: #e6e9e5; }
.card-copy { display: flex; min-width: 0; flex-direction: column; gap: 10px; padding: 16px; }
.card h3 { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.23; }
.meta, .signals { display: flex; flex-wrap: wrap; gap: 6px; }
.pill, .signal { display: inline-flex; align-items: center; min-height: 23px; padding: 3px 8px; border-radius: 999px; background: #f4e5df; color: var(--accent-deep); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.pill.blue { color: var(--blue); background: #e5eef0; }
.pill.amber { color: var(--amber); background: #f3ebdf; }
.signal { min-height: 22px; color: var(--muted); background: #f0f2f0; font-weight: 700; }
.digest { display: -webkit-box; overflow: hidden; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 5px; }
.primary, .card-actions button { display: inline-flex; align-items: center; justify-content: center; min-height: 37px; padding: 0 12px; border-radius: 9px; font-size: 11px; font-weight: 800; text-decoration: none; }
.card-actions button { border: 1px solid var(--line-strong); color: var(--ink); background: #fff; }
.card-actions button:hover { border-color: var(--accent); color: var(--accent-deep); }
.empty { grid-column: 1 / -1; padding: 50px 24px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.38); text-align: center; }
.footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 41px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.footer-mark { color: var(--muted); font-weight: 750; letter-spacing: .08em; }
dialog { width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; color: var(--ink); background: var(--paper); box-shadow: 0 24px 90px rgba(35,47,49,.24); }
dialog::backdrop { background: rgba(35,47,49,.34); backdrop-filter: blur(6px); }
.detail-frame { position: relative; max-height: calc(100vh - 32px); overflow: auto; }
.detail-copy { padding: 31px; }
.detail-heading { display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: start; gap: 26px; }
.detail-heading img { width: 240px; aspect-ratio: 1.2; border-radius: 12px; object-fit: cover; background: #e6e9e5; }
.detail-copy h2 { max-width: 700px; margin-bottom: 17px; font-size: clamp(32px, 5vw, 56px); }
.detail-lead { max-width: 770px; margin: 17px 0; color: var(--muted); font-size: 15px; line-height: 1.65; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.article-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.article-body:empty { display: none; }
.article-note { grid-column: 1 / -1; color: var(--faint); font-size: 12px; }
.article-text { grid-column: 1 / -1; margin: 0; padding: 14px 15px; border-radius: 11px; color: var(--muted); background: #f0f2f0; font-size: 14px; line-height: 1.65; }
.article-photo { width: 100%; max-height: 560px; aspect-ratio: 4 / 3; object-fit: contain; border: 1px solid var(--line); border-radius: 11px; background: #eef0ee; }
.close { position: absolute; top: 13px; right: 13px; z-index: 2; width: 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--ink); background: rgba(255,255,255,.84); font-size: 23px; line-height: 1; }
.close:hover { border-color: var(--accent); color: var(--accent-deep); }
@media (max-width: 1080px) {
  .app-shell { padding-right: 26px; padding-left: 26px; }
  .workspace { grid-template-columns: 235px minmax(0,1fr); gap: 32px; }
}
@media (max-width: 960px) {
  .app-shell { padding: 0 20px 28px; }
  .workspace { grid-template-columns: 1fr; gap: 0; }
  .sidebar { position: relative; height: auto; padding: 30px 0 18px; border-bottom: 1px solid var(--line); }
  .brand-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); max-height: 230px; }
  .content { padding-top: 36px; }
}
@media (max-width: 620px) {
  .app-shell { padding: 0 15px 20px; }
  .topbar { min-height: 78px; }
  .topbar-actions { gap: 9px; }
  .sync-status { display: none; }
  .wordmark-mark { width: 47px; height: 47px; }
  .wordmark strong { max-width: 180px; font-size: 14px; }
  .wordmark small { font-size: 8px; }
  .hero-row { align-items: start; margin-bottom: 35px; }
  .hero-stamp { display: none; }
  h2 { font-size: 46px; }
  .toolbar { grid-template-columns: 1fr; }
  .result-head { align-items: start; flex-direction: column; gap: 10px; }
  .results { grid-template-columns: 1fr; gap: 13px; }
  .footer { align-items: start; flex-direction: column; }
  .detail-copy { padding: 24px 17px; }
  .detail-heading { grid-template-columns: 1fr; }
  .detail-heading img { width: 100%; max-height: 300px; }
  .article-body { grid-template-columns: 1fr; }
}


/* TadasVladimirovich editorial skin */
body { background: radial-gradient(circle at 88% -10%, rgba(185,99,77,.13), transparent 30rem), radial-gradient(circle at -10% 30%, rgba(127,148,134,.12), transparent 27rem), var(--bg); }
body:before { opacity: .16; background-image: radial-gradient(rgba(54,43,32,.14) .5px, transparent .5px); background-size: 5px 5px; mix-blend-mode: multiply; }
.wordmark-mark { border-radius: 14px 14px 14px 4px; background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 rgba(185,99,77,.25); letter-spacing: -.18em; }
.wordmark-mark:before { width: 28px; height: 28px; border-color: rgba(255,253,249,.28); transform: translate(8px,-10px); }
.wordmark-mark span + span { color: #e2a38f; transform: translate(-2px,5px); }
.wordmark strong { letter-spacing: .04em; }
.lang-switch { background: rgba(255,253,249,.72); }
.lang-switch .is-active { color: var(--paper); background: var(--ink); }
.stat-grid div, input, select { background: rgba(255,253,249,.84); }
.card { background: var(--paper-strong); box-shadow: 0 1px 0 rgba(255,255,255,.8); }
.card:hover { box-shadow: 0 18px 38px rgba(53,44,33,.14); }
.card-actions button { border-color: var(--ink); color: var(--ink); }
.card-actions button:hover { color: var(--paper); background: var(--ink); }
.empty { background: rgba(255,253,249,.5); }
dialog { background: var(--paper-strong); box-shadow: 0 24px 70px rgba(53,44,33,.14); }
.close { color: var(--ink); background: rgba(255,253,249,.9); }
@media (max-width: 960px) { .sidebar { min-height: 0; } }


