/* ============================================================
   ÀTÚNRÁ AI — PAGES.CSS
   Inner page components: page hero, breadcrumb, timeline,
   team cards, feature deep-dives, spec table, tabs, accordion
   ============================================================ */

/* =============================================
   PAGE HERO (inner pages — smaller than homepage)
============================================= */
.page-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 72px;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 20% 60%, rgba(196,82,26,.10) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 85% 20%, rgba(74,155,196,.07) 0%, transparent 50%),
    var(--navy);
}
.page-hero-adire {
  position: absolute; inset: 0; opacity: .45;
  background-image: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='rgba%28212%2C160%2C23%2C0.055%29' stroke-width='1'%3E%3Crect x='6' y='6' width='60' height='60'/%3E%3Crect x='18' y='18' width='36' height='36'/%3E%3Ccircle cx='36' cy='36' r='10'/%3E%3Cline x1='6' y1='36' x2='66' y2='36'/%3E%3Cline x1='36' y1='6' x2='36' y2='66'/%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: var(--max-w);
  margin: 0 auto; padding: 0 40px;
}
.page-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .18em; color: var(--gold);
  margin-bottom: 18px;
}
.page-hero-eyebrow::before {
  content: ''; width: 22px; height: 2px;
  background: var(--gold); border-radius: 2px;
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 20px; letter-spacing: -0.03em;
}
.page-hero-title .accent { color: var(--terracotta); }
.page-hero-title .gold   { color: var(--gold); }
.page-hero-desc {
  font-size: 1.1rem; color: rgba(255,255,255,.6);
  line-height: 1.78; max-width: 620px;
}
.page-hero-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}

/* =============================================
   BREADCRUMB
============================================= */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: .78rem;
  color: rgba(255,255,255,.38); margin-bottom: 20px;
}
.breadcrumb a { color: rgba(255,255,255,.5); transition: color .2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { opacity: .3; }
.breadcrumb-current { color: var(--gold); font-weight: 600; }

/* =============================================
   SECTION DIVIDER
============================================= */
.adire-divider {
  width: 100%; height: 2px;
  background: linear-gradient(90deg,
    transparent 0%, var(--terracotta) 30%, var(--gold) 70%, transparent 100%);
  margin: 0; border: none; opacity: .35;
}

/* =============================================
   MISSION QUOTE BLOCK
============================================= */
.mission-block {
  text-align: center;
  padding: var(--sec-y) 40px;
  background: var(--navy-mid);
  position: relative; overflow: hidden;
}
.mission-block::before {
  content: '"';
  position: absolute; top: -40px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display); font-size: 20rem;
  color: rgba(212,160,23,.04); line-height: 1;
  pointer-events: none; user-select: none;
}
.mission-quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  font-weight: 700;
  line-height: 1.45; color: var(--parchment);
  max-width: 860px; margin: 0 auto 24px;
  position: relative; z-index: 1;
  letter-spacing: -0.01em;
}
.mission-quote .highlight { color: var(--terracotta); font-style: normal; }
.mission-attr {
  font-family: var(--font-ui); font-size: .82rem;
  font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(255,255,255,.35);
  position: relative; z-index: 1;
}

/* =============================================
   TWO-COLUMN STORY SECTION
============================================= */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.story-img-wrap {
  position: relative; border-radius: var(--r-xl);
  overflow: hidden; height: 520px;
  box-shadow: 0 28px 72px rgba(0,0,0,.4);
}
.story-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.story-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(196,82,26,.15), rgba(10,28,46,.3));
}
.story-img-accent {
  position: absolute; bottom: 24px; left: 24px; right: 24px;
  background: rgba(10,28,46,.88); backdrop-filter: blur(10px);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: 16px 20px;
  display: flex; align-items: center; gap: 14px;
}
.sia-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.sia-title { font-family: var(--font-ui); font-size: .88rem; font-weight: 700; color: var(--white); }
.sia-sub   { font-family: var(--font-ui); font-size: .72rem; color: rgba(255,255,255,.45); margin-top: 2px; }

.story-text .eyebrow { color: var(--terracotta); }
.story-text .eyebrow::before { background: var(--terracotta); }

/* =============================================
   STATS ROW (about page)
============================================= */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-top: 48px;
}
.stat-cell {
  padding: 36px 28px; text-align: center;
  border-right: 1px solid var(--border-light);
  transition: background .25s;
}
.stat-cell:last-child { border-right: none; }
.stat-cell:hover { background: rgba(255,255,255,.03); }
.stat-cell-val {
  font-family: var(--font-display);
  font-size: 2.4rem; font-weight: 800;
  color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.stat-cell-lbl {
  font-family: var(--font-ui); font-size: .8rem;
  font-weight: 500; color: rgba(255,255,255,.5); line-height: 1.4;
}

/* =============================================
   TEAM SECTION
============================================= */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 48px;
}
.team-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
  transition: all .3s;
}
.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(196,82,26,.3);
  box-shadow: 0 20px 48px rgba(0,0,0,.3);
}
.team-card-img {
  height: 240px; overflow: hidden; position: relative;
}
.team-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.team-card:hover .team-card-img img { transform: scale(1.05); }
.team-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(10,28,46,.8));
}
.team-card-body { padding: 20px 22px 24px; }
.team-name {
  font-family: var(--font-ui); font-size: 1rem;
  font-weight: 700; color: var(--white); margin-bottom: 4px;
}
.team-role {
  font-family: var(--font-ui); font-size: .78rem;
  font-weight: 600; color: var(--terracotta);
  text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px;
}
.team-bio {
  font-size: .81rem; color: rgba(255,255,255,.5);
  line-height: 1.65;
}
.team-socials { display: flex; gap: 8px; margin-top: 16px; }
.team-soc {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.4); font-size: .75rem;
  transition: all .2s;
}
.team-soc:hover { background: var(--terracotta); color: var(--white); border-color: transparent; }

/* =============================================
   PROJECT TIMELINE
============================================= */
.timeline {
  position: relative; padding-left: 40px; margin-top: 48px;
}
.timeline::before {
  content: ''; position: absolute;
  left: 14px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--terracotta), var(--gold), rgba(212,160,23,.1));
  border-radius: 2px;
}
.timeline-item {
  position: relative; margin-bottom: 40px;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-dot {
  position: absolute; left: -34px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot.done {
  background: var(--terracotta); border-color: var(--terracotta);
}
.timeline-dot.done::after {
  content: '✓'; color: var(--white); font-size: .55rem; font-weight: 700;
}
.timeline-dot.active {
  background: var(--gold); border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(212,160,23,.2);
}
.timeline-date {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-ui); font-size: 1rem;
  font-weight: 700; color: var(--white); margin-bottom: 6px;
}
.timeline-desc {
  font-size: .84rem; color: rgba(255,255,255,.5); line-height: 1.65;
}

/* =============================================
   EVALUATION METRIC BARS
============================================= */
.metric-bars { display: flex; flex-direction: column; gap: 20px; margin-top: 32px; }
.metric-bar-item {}
.metric-bar-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 8px;
}
.metric-bar-label {
  font-family: var(--font-ui); font-size: .84rem;
  font-weight: 600; color: rgba(255,255,255,.8);
}
.metric-bar-val {
  font-family: var(--font-display); font-size: .95rem;
  font-weight: 700; color: var(--gold);
}
.metric-bar-track {
  height: 6px; background: rgba(255,255,255,.07);
  border-radius: var(--r-full); overflow: hidden;
}
.metric-bar-fill {
  height: 100%; border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  width: 0; transition: width 1.4s cubic-bezier(.4,0,.2,1);
}
.metric-bar-fill.animate { width: var(--target-w); }

/* =============================================
   FEATURE DEEP DIVE SECTIONS
============================================= */
.feature-deep {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.feature-deep.reverse { direction: rtl; }
.feature-deep.reverse > * { direction: ltr; }

.feature-deep-visual {
  border-radius: var(--r-xl); overflow: hidden;
  height: 420px; position: relative;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.feature-deep-visual img {
  width: 100%; height: 100%; object-fit: cover;
}
.feature-deep-visual-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(196,82,26,.15), rgba(10,28,46,.35));
}
.feature-deep-ui {
  border-radius: var(--r-xl);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  height: 420px; display: flex; flex-direction: column;
  overflow: hidden;
}
.feature-deep-ui-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px;
}
.fui-dot { width: 10px; height: 10px; border-radius: 50%; }
.fui-title {
  font-family: var(--font-ui); font-size: .82rem;
  font-weight: 600; color: rgba(255,255,255,.5);
  margin-left: 4px;
}
.feature-deep-ui-body { flex: 1; padding: 20px; overflow: hidden; }

.feat-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 16px;
}
.feat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.feat-number .accent { color: var(--terracotta); }
.feat-number .gold   { color: var(--gold); }

.feat-body-text {
  font-size: .9rem; color: rgba(255,255,255,.58);
  line-height: 1.78; margin-bottom: 24px;
}
.feat-check-list { display: flex; flex-direction: column; gap: 10px; }
.feat-check-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.5;
}
.feat-check-item i {
  color: var(--gold); margin-top: 2px; flex-shrink: 0; font-size: .85rem;
}

/* Mock UI elements inside feature-deep-ui */
.mock-upload-zone {
  border: 2px dashed rgba(212,160,23,.3);
  border-radius: var(--r-lg); padding: 24px;
  text-align: center; margin-bottom: 16px;
}
.mock-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.mock-upload-text { font-family: var(--font-ui); font-size: .78rem; color: rgba(255,255,255,.4); }

.mock-progress-list { display: flex; flex-direction: column; gap: 10px; }
.mock-progress-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md);
}
.mock-progress-icon {
  width: 28px; height: 28px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; flex-shrink: 0;
}
.mock-progress-label {
  flex: 1; font-family: var(--font-ui);
  font-size: .78rem; font-weight: 500; color: rgba(255,255,255,.6);
}
.mock-progress-status {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 600;
  padding: 3px 8px; border-radius: var(--r-full);
}
.mock-status-done    { background: rgba(111,207,151,.15); color: var(--green-ok); }
.mock-status-running { background: rgba(212,160,23,.15);  color: var(--gold); }
.mock-status-queued  { background: rgba(255,255,255,.06); color: rgba(255,255,255,.4); }

.mock-trans-box {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md); padding: 14px 16px;
  margin-bottom: 10px;
}
.mock-trans-lang {
  font-family: var(--font-ui); font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 6px;
}
.mock-trans-text {
  font-size: .84rem; color: rgba(255,255,255,.75); line-height: 1.5;
}

.mock-tag-cloud { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.mock-tag {
  font-size: .7rem; padding: 4px 10px; border-radius: var(--r-full);
  font-family: var(--font-ui); font-weight: 500;
  border: 1px solid;
}

.mock-search-bar {
  display: flex; gap: 8px; align-items: center;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-full); padding: 10px 16px;
  margin-bottom: 16px;
}
.mock-search-bar i { color: rgba(255,255,255,.3); }
.mock-search-bar span { font-family: var(--font-ui); font-size: .82rem; color: rgba(255,255,255,.3); }

.mock-result-item {
  padding: 12px 16px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md); margin-bottom: 8px;
}
.mock-result-title { font-family: var(--font-ui); font-size: .8rem; font-weight: 600; color: var(--white); margin-bottom: 4px; }
.mock-result-match { font-family: var(--font-ui); font-size: .7rem; color: rgba(255,255,255,.4); }
.mock-result-match span { color: var(--gold); }

/* =============================================
   TECHNICAL SPECS TABLE
============================================= */
.spec-table-wrap {
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
  margin-top: 48px;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table thead tr {
  background: rgba(196,82,26,.1);
  border-bottom: 1px solid var(--border-light);
}
.spec-table th {
  padding: 16px 24px;
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: rgba(255,255,255,.5); text-align: left;
}
.spec-table td {
  padding: 16px 24px;
  font-family: var(--font-ui); font-size: .86rem;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.04);
  vertical-align: middle;
}
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.spec-table .feat-col {
  font-weight: 700; color: var(--white); width: 22%;
}
.spec-check { color: var(--green-ok); }
.spec-cross  { color: rgba(255,255,255,.2); }
.spec-partial{ color: var(--gold); }

/* =============================================
   PIPELINE FLOW (features page)
============================================= */
.pipeline-wrap {
  display: flex; align-items: flex-start;
  gap: 0; margin-top: 56px; position: relative;
}
.pipeline-step {
  flex: 1; text-align: center; position: relative; z-index: 1;
}
.pipeline-step + .pipeline-step::before {
  content: '→';
  position: absolute; left: -16px; top: 32px;
  color: var(--gold); font-size: 1.2rem; z-index: 2;
}
.pipeline-icon-wrap {
  width: 64px; height: 64px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin: 0 auto 16px;
  border: 2px solid;
}
.pipeline-label {
  font-family: var(--font-ui); font-size: .88rem;
  font-weight: 700; color: var(--white); margin-bottom: 6px;
}
.pipeline-desc {
  font-size: .73rem; color: rgba(255,255,255,.42); line-height: 1.55;
}

/* =============================================
   APPROACH CARDS (about page)
============================================= */
.approach-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 24px; margin-top: 48px;
}
.approach-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl); padding: 32px 28px;
  transition: all .3s;
}
.approach-card:hover {
  background: rgba(255,255,255,.055);
  transform: translateY(-4px);
}
.approach-num {
  font-family: var(--font-display);
  font-size: 3rem; font-weight: 800;
  color: rgba(212,160,23,.15); line-height: 1;
  margin-bottom: 16px;
}
.approach-title {
  font-family: var(--font-ui); font-size: 1.05rem;
  font-weight: 700; color: var(--white); margin-bottom: 12px;
}
.approach-desc {
  font-size: .84rem; color: rgba(255,255,255,.5); line-height: 1.75;
}

/* =============================================
   ACCORDION (features FAQ)
============================================= */
.accordion { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.acc-item {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--r-md); overflow: hidden;
}
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 18px 22px; background: none; border: none;
  text-align: left; cursor: pointer; gap: 16px;
}
.acc-trigger-text {
  font-family: var(--font-ui); font-size: .92rem;
  font-weight: 600; color: var(--white);
}
.acc-icon {
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(255,255,255,.07); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: .7rem;
  transition: transform .3s, background .2s;
}
.acc-item.open .acc-icon { transform: rotate(45deg); background: rgba(212,160,23,.15); }
.acc-body {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1), padding .3s;
  padding: 0 22px;
}
.acc-body p {
  font-size: .86rem; color: rgba(255,255,255,.52); line-height: 1.75;
  padding-bottom: 18px;
}

/* =============================================
   FEATURES OVERVIEW GRID
============================================= */
.features-overview-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 56px;
}
.fov-card {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl); padding: 32px 26px;
  transition: all .3s; cursor: default;
}
.fov-card:hover {
  background: rgba(255,255,255,.06);
  border-color: rgba(196,82,26,.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.fov-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 20px;
}
.fov-name {
  font-family: var(--font-ui); font-size: 1.05rem;
  font-weight: 700; color: var(--white); margin-bottom: 10px;
}
.fov-desc {
  font-size: .83rem; color: rgba(255,255,255,.48); line-height: 1.68;
  margin-bottom: 20px;
}
.fov-link {
  font-family: var(--font-ui); font-size: .78rem; font-weight: 600;
  color: var(--terracotta); display: inline-flex; align-items: center; gap: 5px;
  transition: gap .2s;
}
.fov-card:hover .fov-link { gap: 9px; }

/* =============================================
   PARTNERS STRIP
============================================= */
.partners-strip {
  padding: 52px 0; background: rgba(255,255,255,.02);
  border-top: 1px solid var(--border-light);
}
.partners-label {
  text-align: center; font-family: var(--font-ui);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .18em; color: rgba(255,255,255,.28); margin-bottom: 32px;
}
.partners-list {
  display: flex; align-items: center; justify-content: center;
  gap: 48px; flex-wrap: wrap;
}
.partner-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-full);
  font-family: var(--font-ui); font-size: .84rem;
  font-weight: 600; color: rgba(255,255,255,.55);
  transition: all .2s;
}
.partner-pill:hover { color: var(--white); border-color: rgba(255,255,255,.2); }
.partner-pill i { color: var(--gold); }

/* =============================================
   RESPONSIVE — INNER PAGES
============================================= */
@media (max-width: 1100px) {
  .page-hero-two-col  { grid-template-columns: 1fr; }
  .story-grid         { grid-template-columns: 1fr; }
  .story-img-wrap     { height: 320px; }
  .team-grid          { grid-template-columns: repeat(2,1fr); }
  .stats-row          { grid-template-columns: repeat(2,1fr); }
  .feature-deep       { grid-template-columns: 1fr; }
  .feature-deep.reverse { direction: ltr; }
  .feature-deep-visual { height: 280px; }
  .feature-deep-ui    { height: auto; min-height: 280px; }
  .approach-grid      { grid-template-columns: 1fr; }
  .features-overview-grid { grid-template-columns: repeat(2,1fr); }
  .pipeline-wrap      { flex-direction: column; align-items: stretch; }
  .pipeline-step + .pipeline-step::before { content: '↓'; left: 50%; top: -16px; transform: translateX(-50%); }
}
@media (max-width: 768px) {
  .page-hero          { padding: 100px 0 56px; }
  .page-hero-inner    { padding: 0 20px; }
  .team-grid          { grid-template-columns: 1fr; }
  .stats-row          { grid-template-columns: 1fr; }
  .features-overview-grid { grid-template-columns: 1fr; }
  .spec-table th,
  .spec-table td      { padding: 12px 14px; font-size: .78rem; }
}

/* =============================================
   BATCH 3 — ARCHIVE PAGE COMPONENTS
============================================= */

/* Archive search hero */
.archive-search-hero {
  position: relative; z-index: 1;
  max-width: 680px; margin-top: 32px;
}
.archive-search-bar-big {
  display: flex; align-items: center;
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--r-full); overflow: hidden;
  transition: border-color .25s, background .25s;
}
.archive-search-bar-big:focus-within {
  border-color: rgba(212,160,23,.5);
  background: rgba(255,255,255,.1);
}
.archive-search-bar-big i {
  padding: 0 18px; color: rgba(255,255,255,.4); font-size: 1rem; flex-shrink: 0;
}
.archive-search-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--white); font-family: var(--font-ui); font-size: .95rem;
  padding: 14px 0; font-weight: 500;
}
.archive-search-input::placeholder { color: rgba(255,255,255,.35); }
.archive-search-btn {
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  border: none; color: var(--white); padding: 10px 24px;
  font-family: var(--font-ui); font-size: .85rem; font-weight: 600;
  margin: 5px; border-radius: var(--r-full); cursor: pointer;
  transition: opacity .2s; white-space: nowrap;
}
.archive-search-btn:hover { opacity: .9; }
.archive-search-tags {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.search-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.6); cursor: pointer; transition: all .2s;
}
.search-tag:hover { background: rgba(212,160,23,.12); border-color: rgba(212,160,23,.3); color: var(--gold); }

/* Archive stats strip */
.archive-stats {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; background: rgba(255,255,255,.025);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.archive-stat {
  padding: 24px 32px; text-align: center;
  border-right: 1px solid var(--border-light);
}
.archive-stat:last-child { border-right: none; }
.archive-stat-val {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 800; color: var(--gold); line-height: 1;
  letter-spacing: -0.02em;
}
.archive-stat-lbl {
  font-family: var(--font-ui); font-size: .72rem;
  font-weight: 500; color: rgba(255,255,255,.4); margin-top: 5px;
}

/* Archive layout */
.archive-layout {
  display: grid; grid-template-columns: 280px 1fr;
  gap: 40px; align-items: start; margin-top: 40px;
}
.archive-sidebar {
  position: sticky; top: 88px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
}
.archive-sidebar-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
}
.asb-title {
  font-family: var(--font-ui); font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.5);
}
.asb-clear {
  font-family: var(--font-ui); font-size: .75rem; font-weight: 600;
  color: var(--terracotta); cursor: pointer; background: none; border: none;
  transition: opacity .2s;
}
.asb-clear:hover { opacity: .7; }

/* Filter groups */
.filter-group { border-bottom: 1px solid var(--border-light); }
.filter-group:last-child { border-bottom: none; }
.filter-group-toggle {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; padding: 16px 22px;
  background: none; border: none; cursor: pointer;
  transition: background .2s;
}
.filter-group-toggle:hover { background: rgba(255,255,255,.03); }
.filter-group-name {
  font-family: var(--font-ui); font-size: .84rem;
  font-weight: 600; color: var(--white);
}
.filter-group-icon {
  color: rgba(255,255,255,.3); font-size: .7rem;
  transition: transform .25s;
}
.filter-group.open .filter-group-icon { transform: rotate(180deg); }
.filter-group-body {
  padding: 0 22px 16px; display: none;
}
.filter-group.open .filter-group-body { display: block; }
.filter-option {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 0; cursor: pointer;
}
.filter-cb {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: transparent; cursor: pointer; flex-shrink: 0;
  appearance: none; position: relative; transition: all .2s;
}
.filter-cb:checked {
  background: var(--terracotta); border-color: var(--terracotta);
}
.filter-cb:checked::after {
  content: '✓'; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); color: #fff; font-size: .65rem;
}
.filter-option-label {
  font-family: var(--font-ui); font-size: .82rem;
  font-weight: 500; color: rgba(255,255,255,.65);
}
.filter-option-count {
  margin-left: auto; font-family: var(--font-ui);
  font-size: .7rem; color: rgba(255,255,255,.28);
}
.filter-apply-btn {
  width: 100%; padding: 11px; margin-top: 8px;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  border: none; border-radius: var(--r-md);
  font-family: var(--font-ui); font-size: .82rem; font-weight: 700;
  color: var(--white); cursor: pointer; transition: opacity .2s;
}
.filter-apply-btn:hover { opacity: .9; }

/* Active filter chips */
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.active-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 12px; border-radius: var(--r-full);
  background: rgba(196,82,26,.15); border: 1px solid rgba(196,82,26,.3);
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600;
  color: var(--terracotta);
}
.active-chip button {
  background: none; border: none; color: var(--terracotta);
  cursor: pointer; font-size: .7rem; line-height: 1; padding: 0; margin: 0;
}

/* Results header */
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; flex-wrap: wrap; gap: 12px;
}
.results-count {
  font-family: var(--font-ui); font-size: .9rem; color: rgba(255,255,255,.6);
}
.results-count strong { color: var(--white); font-weight: 700; }
.results-sort {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: .82rem; color: rgba(255,255,255,.45);
}
.sort-select {
  background: rgba(255,255,255,.06); border: 1px solid var(--border-light);
  border-radius: var(--r-sm); color: var(--white);
  font-family: var(--font-ui); font-size: .82rem; font-weight: 500;
  padding: 7px 12px; cursor: pointer; appearance: none;
}
.sort-select option { background: var(--navy-mid); }

/* Manuscript cards (archive) */
.manuscripts-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
}
.ms-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); overflow: hidden; transition: all .3s; display: flex; flex-direction: column;
}
.ms-card:hover {
  transform: translateY(-4px); border-color: rgba(196,82,26,.3);
  box-shadow: 0 20px 48px rgba(0,0,0,.35);
}
.ms-card-img { height: 160px; overflow: hidden; position: relative; }
.ms-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.ms-card:hover .ms-card-img img { transform: scale(1.05); }
.ms-card-img-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, rgba(10,28,46,.7)); }
.ms-badge-row {
  position: absolute; top: 10px; left: 10px; right: 10px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.ms-lang-badge {
  background: rgba(10,28,46,.85); backdrop-filter: blur(6px);
  border-radius: var(--r-full); padding: 3px 10px;
  font-size: .65rem; font-family: var(--font-ui); font-weight: 600; color: var(--gold);
}
.ms-cat-badge {
  background: rgba(196,82,26,.85); backdrop-filter: blur(6px);
  border-radius: var(--r-full); padding: 3px 10px;
  font-size: .65rem; font-family: var(--font-ui); font-weight: 600; color: var(--white);
}
.ms-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ms-title {
  font-family: var(--font-ui); font-size: .9rem; font-weight: 700;
  color: var(--white); line-height: 1.4;
}
.ms-excerpt {
  font-size: .76rem; color: rgba(255,255,255,.42); line-height: 1.65; flex: 1;
}
.ms-tk-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tk-pill {
  font-size: .62rem; padding: 2px 8px; border-radius: var(--r-full);
  font-family: var(--font-ui); font-weight: 600;
  background: rgba(212,160,23,.1); border: 1px solid rgba(212,160,23,.2); color: var(--gold);
}
.ms-card-footer {
  padding: 12px 18px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
}
.ms-meta {
  font-size: .7rem; font-family: var(--font-ui); color: rgba(255,255,255,.32);
}
.ms-read-link {
  font-size: .75rem; font-family: var(--font-ui); font-weight: 700;
  color: var(--terracotta); display: flex; align-items: center; gap: 4px;
  transition: gap .2s;
}
.ms-card:hover .ms-read-link { gap: 7px; }

/* Pagination */
.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 6px; margin-top: 48px;
}
.page-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui); font-size: .84rem; font-weight: 600;
  background: rgba(255,255,255,.04); border: 1px solid var(--border-light);
  color: rgba(255,255,255,.55); cursor: pointer; transition: all .2s;
}
.page-btn:hover { background: rgba(255,255,255,.08); color: var(--white); }
.page-btn.active { background: var(--terracotta); border-color: var(--terracotta); color: var(--white); }
.page-btn.disabled { opacity: .3; pointer-events: none; }
.page-ellipsis { color: rgba(255,255,255,.3); font-size: .84rem; padding: 0 4px; }

/* Empty state */
.archive-empty {
  text-align: center; padding: 80px 40px;
  background: rgba(255,255,255,.02); border: 1px solid var(--border-light);
  border-radius: var(--r-xl);
}
.archive-empty-icon { font-size: 3rem; margin-bottom: 20px; opacity: .4; }
.archive-empty-title {
  font-family: var(--font-ui); font-size: 1.1rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.archive-empty-desc {
  font-size: .88rem; color: rgba(255,255,255,.45); line-height: 1.7;
}

/* =============================================
   BATCH 3 — AI TOOLS PAGE COMPONENTS
============================================= */

/* Tools sticky nav */
.tools-sticky-nav {
  position: sticky; top: 72px; z-index: 90;
  background: rgba(10,28,46,.96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 0 40px;
}
.tools-nav-inner {
  display: flex; align-items: center; gap: 4px;
  max-width: var(--max-w); margin: 0 auto;
  overflow-x: auto; scrollbar-width: none;
}
.tools-nav-inner::-webkit-scrollbar { display: none; }
.tool-nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 20px; white-space: nowrap;
  font-family: var(--font-ui); font-size: .84rem; font-weight: 600;
  color: rgba(255,255,255,.45); background: none; border: none;
  border-bottom: 2px solid transparent; cursor: pointer;
  transition: all .2s; flex-shrink: 0;
}
.tool-nav-btn:hover { color: rgba(255,255,255,.8); }
.tool-nav-btn.active { color: var(--white); border-bottom-color: var(--terracotta); }
.tool-nav-btn i { font-size: .9rem; }

/* Tool section marker */
.tool-section { scroll-margin-top: 116px; }

/* Tool section header */
.tool-section-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 32px; flex-wrap: wrap; margin-bottom: 40px;
}
.tool-section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; margin-bottom: 12px;
}
.tool-section-title {
  font-family: var(--font-display); font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: var(--white);
}
.tool-section-desc {
  font-size: .9rem; color: rgba(255,255,255,.55); line-height: 1.75;
  margin-top: 10px; max-width: 480px;
}

/* Full translator layout */
.translator-full-wrap {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
}
.translator-full-tabs {
  display: flex; border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,.02);
}
.tf-tab {
  padding: 16px 28px; font-family: var(--font-ui); font-size: .84rem;
  font-weight: 600; color: rgba(255,255,255,.38);
  border-bottom: 2px solid transparent; cursor: pointer; transition: all .2s;
}
.tf-tab.active { color: var(--terracotta); border-bottom-color: var(--terracotta); }
.tf-tab:hover:not(.active) { color: rgba(255,255,255,.7); }
.translator-full-body {
  display: grid; grid-template-columns: 1fr 60px 1fr; min-height: 260px;
}
.tf-pane { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tf-lang-row {
  display: flex; align-items: center; gap: 10px;
}
.tf-lang-label {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; white-space: nowrap;
}
.tf-lang-select {
  flex: 1; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-sm); color: var(--white);
  font-family: var(--font-ui); font-size: .84rem; font-weight: 500;
  padding: 9px 12px; appearance: none; cursor: pointer;
}
.tf-lang-select option { background: var(--navy-mid); }
.tf-textarea {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md); outline: none; resize: none;
  color: var(--white); font-family: var(--font-body); font-size: 1rem;
  line-height: 1.7; flex: 1; min-height: 140px; padding: 14px 16px;
  transition: border-color .2s;
}
.tf-textarea:focus { border-color: rgba(212,160,23,.35); }
.tf-textarea::placeholder { color: rgba(255,255,255,.2); }
.tf-result {
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r-md); flex: 1; min-height: 140px; padding: 14px 16px;
  font-size: 1rem; line-height: 1.7; color: rgba(255,255,255,.8);
}
.tf-foot {
  display: flex; justify-content: space-between; align-items: center;
}
.tf-char { font-size: .68rem; font-family: var(--font-ui); color: rgba(255,255,255,.28); }
.tf-actions { display: flex; gap: 6px; }
.tf-action-btn {
  width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.4); display: flex; align-items: center;
  justify-content: center; font-size: .72rem; cursor: pointer; transition: all .2s;
}
.tf-action-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }
.tf-mid {
  display: flex; align-items: center; justify-content: center;
  border-left: 1px solid var(--border-light); border-right: 1px solid var(--border-light);
  flex-direction: column; gap: 12px; padding: 8px;
}
.tf-swap-btn {
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  color: var(--white); font-size: .9rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .35s;
}
.tf-swap-btn:hover { transform: rotate(180deg); }
.translator-full-footer {
  padding: 16px 28px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(255,255,255,.015); flex-wrap: wrap; gap: 12px;
}
.tf-note { font-size: .72rem; font-family: var(--font-ui); color: rgba(255,255,255,.28); }
.tf-btn-row { display: flex; gap: 10px; }

/* Try these examples */
.try-examples { margin-top: 20px; }
.try-label {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3);
  margin-bottom: 10px;
}
.try-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.try-pill {
  padding: 7px 14px; border-radius: var(--r-full);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  font-family: var(--font-ui); font-size: .78rem; font-weight: 500;
  color: rgba(255,255,255,.6); cursor: pointer; transition: all .2s;
}
.try-pill:hover { background: rgba(212,160,23,.1); border-color: rgba(212,160,23,.3); color: var(--gold); }

/* OCR upload zone */
.ocr-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.ocr-zone {
  border: 2px dashed rgba(255,255,255,.15); border-radius: var(--r-xl);
  padding: 56px 32px; text-align: center; cursor: pointer;
  transition: all .3s; background: rgba(255,255,255,.02);
}
.ocr-zone:hover, .ocr-zone.dragover {
  border-color: var(--terracotta); background: rgba(196,82,26,.05);
}
.ocr-zone-icon { font-size: 3rem; color: rgba(255,255,255,.2); margin-bottom: 20px; }
.ocr-zone-title {
  font-family: var(--font-ui); font-size: 1rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.ocr-zone-sub {
  font-size: .82rem; color: rgba(255,255,255,.4); line-height: 1.65; margin-bottom: 20px;
}
.ocr-formats { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.ocr-fmt {
  padding: 4px 10px; border-radius: var(--r-full);
  font-size: .68rem; font-family: var(--font-ui); font-weight: 700;
  background: rgba(74,155,196,.1); border: 1px solid rgba(74,155,196,.2);
  color: var(--adire-blue);
}
.ocr-preview {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
}
.ocr-preview-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-size: .82rem; font-weight: 600; color: rgba(255,255,255,.5);
}
.ocr-preview-body { padding: 20px; }
.ocr-text-block {
  font-size: .84rem; color: rgba(255,255,255,.65); line-height: 1.75;
  font-family: var(--font-body);
}
.ocr-confidence {
  display: flex; align-items: center; gap: 10px; margin-top: 16px;
  padding-top: 16px; border-top: 1px solid var(--border-light);
}
.ocr-conf-label { font-family: var(--font-ui); font-size: .75rem; font-weight: 600; color: rgba(255,255,255,.45); }
.ocr-conf-bar { flex: 1; height: 5px; background: rgba(255,255,255,.07); border-radius: var(--r-full); overflow: hidden; }
.ocr-conf-fill { height: 100%; background: linear-gradient(90deg, var(--terracotta), var(--green-ok)); border-radius: var(--r-full); }
.ocr-conf-val { font-family: var(--font-ui); font-size: .8rem; font-weight: 700; color: var(--green-ok); }

/* Auto-categorizer */
.categorizer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.cat-input-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
}
.cat-input-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border-light);
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.45);
}
.cat-input-body { padding: 20px; }
.cat-textarea {
  width: 100%; height: 200px; background: transparent; border: none; outline: none;
  resize: none; color: var(--white); font-family: var(--font-body);
  font-size: .92rem; line-height: 1.7;
}
.cat-textarea::placeholder { color: rgba(255,255,255,.22); }
.cat-input-footer {
  padding: 14px 20px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
}
.cat-result-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
}
.cat-result-header {
  padding: 14px 20px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.45);
}
.cat-result-body { padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.cat-result-row {}
.cat-result-label {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3); margin-bottom: 8px;
}
.cat-result-val {
  font-family: var(--font-ui); font-size: .92rem; font-weight: 600; color: var(--white);
  display: flex; align-items: center; gap: 8px;
}
.conf-badge {
  font-size: .68rem; padding: 2px 8px; border-radius: var(--r-full);
  font-weight: 700; background: rgba(111,207,151,.12); color: var(--green-ok);
}
.cat-tk-output { display: flex; flex-wrap: wrap; gap: 7px; }

/* Semantic search tool */
.search-tool-wrap {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
}
.search-tool-header {
  padding: 22px 28px; border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,.02);
}
.search-tool-bar {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-full); padding: 4px 4px 4px 20px;
  transition: border-color .25s;
}
.search-tool-bar:focus-within { border-color: rgba(212,160,23,.5); }
.search-tool-input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--white); font-family: var(--font-ui); font-size: .95rem; font-weight: 500; padding: 10px 0;
}
.search-tool-input::placeholder { color: rgba(255,255,255,.3); }
.search-suggestions {
  display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px;
}
.suggestion-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: var(--r-full);
  font-family: var(--font-ui); font-size: .74rem; font-weight: 500;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.55); cursor: pointer; transition: all .2s;
}
.suggestion-pill:hover { background: rgba(212,160,23,.1); border-color: rgba(212,160,23,.25); color: var(--gold); }
.suggestion-pill i { font-size: .7rem; }
.search-results-list {
  padding: 20px 28px; display: flex; flex-direction: column; gap: 12px;
}
.search-result-card {
  padding: 16px 20px; background: rgba(255,255,255,.03);
  border: 1px solid var(--border-light); border-radius: var(--r-md);
  cursor: pointer; transition: all .2s;
}
.search-result-card:hover { background: rgba(255,255,255,.06); border-color: rgba(196,82,26,.3); }
.src-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.src-title { font-family: var(--font-ui); font-size: .88rem; font-weight: 700; color: var(--white); }
.src-score {
  font-size: .68rem; font-family: var(--font-ui); font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-full);
  background: rgba(212,160,23,.1); color: var(--gold); white-space: nowrap;
}
.src-excerpt { font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.65; margin-bottom: 10px; }
.src-excerpt mark { background: rgba(212,160,23,.2); color: var(--gold); border-radius: 2px; padding: 0 2px; }
.src-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.src-meta-item { font-size: .68rem; font-family: var(--font-ui); color: rgba(255,255,255,.32); }

/* Language matrix */
.lang-matrix-wrap {
  border: 1px solid var(--border-light); border-radius: var(--r-xl); overflow: hidden; margin-top: 48px;
}
.lang-matrix-table { width: 100%; border-collapse: collapse; }
.lang-matrix-table th {
  padding: 14px 20px; font-family: var(--font-ui); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.lang-matrix-table td {
  padding: 13px 20px; border-bottom: 1px solid rgba(255,255,255,.04);
  font-family: var(--font-ui); font-size: .84rem; color: rgba(255,255,255,.7);
  vertical-align: middle;
}
.lang-matrix-table tbody tr:last-child td { border-bottom: none; }
.lang-matrix-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.lm-check { color: var(--green-ok); font-size: .9rem; }
.lm-partial { color: var(--gold); font-size: .9rem; }
.lm-no { color: rgba(255,255,255,.15); font-size: .9rem; }
.lm-lang-cell { font-weight: 700; color: var(--white); width: 18%; }

/* =============================================
   BATCH 3 — RESPONSIVE
============================================= */
@media (max-width: 1100px) {
  .archive-layout          { grid-template-columns: 1fr; }
  .archive-sidebar         { position: static; }
  .manuscripts-grid        { grid-template-columns: repeat(2,1fr); }
  .archive-stats           { grid-template-columns: repeat(2,1fr); }
  .ocr-layout              { grid-template-columns: 1fr; }
  .categorizer-layout      { grid-template-columns: 1fr; }
  .translator-full-body    { grid-template-columns: 1fr; }
  .tf-mid                  { flex-direction: row; border-left: none; border-right: none; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); padding: 12px; }
}
@media (max-width: 768px) {
  .manuscripts-grid        { grid-template-columns: 1fr; }
  .archive-stats           { grid-template-columns: repeat(2,1fr); }
  .tools-sticky-nav        { padding: 0 20px; }
  .features-overview-grid  { grid-template-columns: 1fr; }
}

/* =============================================
   BATCH 4 — RESOURCES PAGE
============================================= */

/* Resource download cards */
.resources-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; margin-top: 48px;
}
.resource-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden; transition: all .3s; display: flex; flex-direction: column;
}
.resource-card:hover {
  transform: translateY(-4px); border-color: rgba(212,160,23,.3);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.resource-card-header { padding: 24px 24px 0; }
.resource-type-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-family: var(--font-ui); font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px;
}
.resource-icon-wrap {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.resource-title {
  font-family: var(--font-ui); font-size: .98rem; font-weight: 700;
  color: var(--white); line-height: 1.4; margin-bottom: 8px;
}
.resource-desc {
  font-size: .8rem; color: rgba(255,255,255,.45); line-height: 1.65;
}
.resource-card-body { padding: 14px 24px; flex: 1; }
.resource-meta {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px;
}
.resource-meta-item {
  font-family: var(--font-ui); font-size: .68rem;
  color: rgba(255,255,255,.3); display: flex; align-items: center; gap: 4px;
}
.resource-card-footer {
  padding: 16px 24px; border-top: 1px solid var(--border-light);
  display: flex; justify-content: space-between; align-items: center;
}
.resource-dl-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-ui); font-size: .78rem; font-weight: 700;
  color: var(--terracotta); cursor: pointer; transition: gap .2s;
}
.resource-card:hover .resource-dl-btn { gap: 10px; }
.resource-size {
  font-family: var(--font-ui); font-size: .68rem; color: rgba(255,255,255,.28);
}

/* External links */
.ext-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 48px;
}
.ext-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 24px 26px;
  display: flex; align-items: flex-start; gap: 18px;
  transition: all .25s; cursor: pointer; text-decoration: none;
}
.ext-card:hover {
  background: rgba(255,255,255,.055); border-color: rgba(196,82,26,.25);
  transform: translateY(-2px);
}
.ext-icon {
  width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
}
.ext-name {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 700;
  color: var(--white); margin-bottom: 5px;
}
.ext-desc {
  font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.6;
}
.ext-link-arrow {
  margin-left: auto; color: rgba(255,255,255,.2); flex-shrink: 0;
  transition: color .2s; margin-top: 2px;
}
.ext-card:hover .ext-link-arrow { color: var(--terracotta); }

/* Glossary */
.glossary-list { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.glossary-item {
  border-bottom: 1px solid var(--border-light);
}
.glossary-item:first-child { border-top: 1px solid var(--border-light); }
.glossary-trigger {
  width: 100%; display: flex; align-items: center; gap: 16px;
  padding: 18px 0; background: none; border: none; cursor: pointer;
  text-align: left; transition: opacity .2s;
}
.glossary-trigger:hover { opacity: .8; }
.glossary-term-label {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 700; color: var(--white); flex: 1;
}
.glossary-lang {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-full);
  background: rgba(212,160,23,.1); border: 1px solid rgba(212,160,23,.2); color: var(--gold);
}
.glossary-chevron {
  color: rgba(255,255,255,.3); font-size: .75rem; transition: transform .25s;
}
.glossary-item.open .glossary-chevron { transform: rotate(180deg); }
.glossary-def {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), padding .3s;
  font-size: .87rem; color: rgba(255,255,255,.55); line-height: 1.75;
  padding: 0;
}
.glossary-item.open .glossary-def { max-height: 200px; padding-bottom: 18px; }

/* Contribution guide steps */
.guide-steps {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; margin-top: 48px;
}
.guide-step {
  text-align: center; padding: 28px 20px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); transition: all .3s; position: relative;
}
.guide-step:hover { background: rgba(255,255,255,.055); transform: translateY(-3px); }
.guide-step-num {
  font-family: var(--font-display); font-size: 3.5rem; font-weight: 800;
  color: rgba(212,160,23,.1); line-height: 1; margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.guide-step-icon {
  font-size: 1.5rem; margin-bottom: 14px;
}
.guide-step-title {
  font-family: var(--font-ui); font-size: .92rem; font-weight: 700;
  color: var(--white); margin-bottom: 8px;
}
.guide-step-desc {
  font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.65;
}

/* Newsletter strip */
.newsletter-strip {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); padding: 48px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.newsletter-text h3 {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 800;
  color: var(--white); margin-bottom: 8px; letter-spacing: -0.02em;
}
.newsletter-text p { font-size: .9rem; color: rgba(255,255,255,.5); }
.newsletter-form {
  display: flex; gap: 10px; flex: 1; min-width: 280px; max-width: 480px;
}
.newsletter-input {
  flex: 1; background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.12);
  border-radius: var(--r-full); color: var(--white); font-family: var(--font-ui);
  font-size: .88rem; padding: 12px 20px; outline: none; transition: border-color .25s;
}
.newsletter-input:focus { border-color: rgba(212,160,23,.5); }
.newsletter-input::placeholder { color: rgba(255,255,255,.3); }

/* =============================================
   BATCH 4 — CONTACT PAGE
============================================= */
.contact-layout {
  display: grid; grid-template-columns: 3fr 2fr; gap: 48px; align-items: start;
}
.contact-form-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
}
.contact-form-header {
  padding: 24px 28px; border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,.02);
}
.contact-form-title {
  font-family: var(--font-ui); font-size: 1rem; font-weight: 700; color: var(--white);
}
.contact-form-sub {
  font-size: .78rem; color: rgba(255,255,255,.4); margin-top: 4px; font-family: var(--font-ui);
}
.contact-form-body { padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45);
}
.form-label span { color: var(--terracotta); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--r-md); color: var(--white);
  font-family: var(--font-ui); font-size: .9rem; font-weight: 500;
  padding: 12px 16px; outline: none; transition: border-color .25s;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: rgba(212,160,23,.45);
}
.form-input::placeholder, .form-textarea::placeholder { color: rgba(255,255,255,.22); }
.form-select { appearance: none; cursor: pointer; }
.form-select option { background: var(--navy-mid); }
.form-textarea { resize: vertical; min-height: 140px; line-height: 1.65; }
.form-checkbox-row {
  display: flex; align-items: flex-start; gap: 12px;
  font-family: var(--font-ui); font-size: .82rem; color: rgba(255,255,255,.55); line-height: 1.5;
}
.form-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; min-width: 16px; margin-top: 1px;
  accent-color: var(--terracotta);
}
.form-footer { padding: 20px 28px; border-top: 1px solid var(--border-light); }
.form-success {
  display: none; padding: 14px 18px;
  background: rgba(111,207,151,.1); border: 1px solid rgba(111,207,151,.2);
  border-radius: var(--r-md); margin-bottom: 16px;
  font-family: var(--font-ui); font-size: .85rem; color: var(--green-ok);
}
.form-error {
  display: none; padding: 14px 18px;
  background: rgba(229,115,115,.1); border: 1px solid rgba(229,115,115,.2);
  border-radius: var(--r-md); margin-bottom: 16px;
  font-family: var(--font-ui); font-size: .85rem; color: #E57373;
}
.char-counter {
  font-family: var(--font-ui); font-size: .7rem; color: rgba(255,255,255,.28);
  text-align: right; margin-top: 5px;
}

/* Contact info panel */
.contact-info-panel { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 22px 22px;
}
.info-card-title {
  font-family: var(--font-ui); font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3);
  margin-bottom: 14px;
}
.info-item {
  display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px;
}
.info-item:last-child { margin-bottom: 0; }
.info-item-icon {
  width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .85rem;
}
.info-item-label { font-family: var(--font-ui); font-size: .7rem; color: rgba(255,255,255,.35); margin-bottom: 2px; }
.info-item-val {
  font-family: var(--font-ui); font-size: .88rem; font-weight: 600; color: var(--white);
}
.info-item-val a { color: var(--terracotta); text-decoration: none; }
.info-item-val a:hover { text-decoration: underline; }

/* Dept cards */
.dept-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 16px; margin-top: 48px; }
.dept-card {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 24px 22px; transition: all .25s;
}
.dept-card:hover { background: rgba(255,255,255,.055); border-color: rgba(196,82,26,.25); }
.dept-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 14px;
}
.dept-card-name {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 700;
  color: var(--white); margin-bottom: 5px;
}
.dept-card-desc {
  font-size: .78rem; color: rgba(255,255,255,.45); line-height: 1.6; margin-bottom: 14px;
}
.dept-card-email {
  font-family: var(--font-ui); font-size: .8rem; font-weight: 600;
  color: var(--terracotta); display: flex; align-items: center; gap: 6px;
}

/* =============================================
   BATCH 4 — LEGAL PAGES (PRIVACY & TERMS)
============================================= */
.legal-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 64px; align-items: start;
}
.legal-toc {
  position: sticky; top: 100px;
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); overflow: hidden;
}
.legal-toc-title {
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
  font-family: var(--font-ui); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.3);
}
.legal-toc-links { padding: 8px; }
.toc-link {
  display: block; padding: 9px 10px; border-radius: var(--r-sm);
  font-family: var(--font-ui); font-size: .79rem; font-weight: 500;
  color: rgba(255,255,255,.5); text-decoration: none; transition: all .2s;
}
.toc-link:hover { background: rgba(255,255,255,.05); color: var(--white); }
.toc-link.active { color: var(--terracotta); background: rgba(196,82,26,.08); }

.legal-content { max-width: 760px; }
.legal-updated {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: rgba(212,160,23,.08); border: 1px solid rgba(212,160,23,.15);
  font-family: var(--font-ui); font-size: .72rem; font-weight: 600; color: var(--gold);
  margin-bottom: 40px;
}
.legal-section { margin-bottom: 48px; scroll-margin-top: 100px; }
.legal-section-num {
  font-family: var(--font-ui); font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .14em; color: var(--terracotta); margin-bottom: 8px;
}
.legal-section-title {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 800;
  color: var(--white); margin-bottom: 18px; letter-spacing: -0.01em;
}
.legal-section p {
  font-size: .9rem; color: rgba(255,255,255,.58); line-height: 1.85; margin-bottom: 14px;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul, .legal-section ol {
  margin: 14px 0 14px 20px;
}
.legal-section li {
  font-size: .9rem; color: rgba(255,255,255,.58); line-height: 1.75; margin-bottom: 7px;
}
.legal-highlight {
  background: rgba(196,82,26,.08); border-left: 3px solid var(--terracotta);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 16px 20px; margin: 20px 0;
  font-size: .88rem; color: rgba(255,255,255,.65); line-height: 1.7;
}
.legal-highlight strong { color: var(--parchment); }
.legal-divider {
  height: 1px; background: var(--border-light); margin: 40px 0;
}
.legal-contact-box {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-lg); padding: 24px 28px; margin-top: 40px;
}
.legal-contact-box h4 {
  font-family: var(--font-ui); font-size: .95rem; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
}
.legal-contact-box p {
  font-size: .84rem; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 0;
}

/* =============================================
   BATCH 4 — RESPONSIVE
============================================= */
@media (max-width: 1100px) {
  .resources-grid   { grid-template-columns: repeat(2,1fr); }
  .ext-grid         { grid-template-columns: 1fr; }
  .guide-steps      { grid-template-columns: repeat(2,1fr); }
  .contact-layout   { grid-template-columns: 1fr; }
  .legal-layout     { grid-template-columns: 1fr; }
  .legal-toc        { position: static; }
}
@media (max-width: 768px) {
  .resources-grid   { grid-template-columns: 1fr; }
  .dept-grid        { grid-template-columns: 1fr; }
  .guide-steps      { grid-template-columns: 1fr; }
  .newsletter-strip { padding: 32px 24px; flex-direction: column; }
  .form-row         { grid-template-columns: 1fr; }
}

/* =============================================
   BATCH 6D — PUBLIC TEXT EXTRACTION TOOL
============================================= */
.extract-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  margin-top: 48px; align-items: start;
}
.extract-panel {
  background: rgba(255,255,255,.03); border: 1px solid var(--border-light);
  border-radius: var(--r-xl); overflow: hidden;
}
.extract-panel-header {
  padding: 18px 24px; border-bottom: 1px solid var(--border-light);
  font-family: var(--font-ui); font-size: .92rem; font-weight: 700; color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
}
.extract-panel-body { padding: 24px; }

.extract-drop-zone {
  border: 2px dashed rgba(255,255,255,.15); border-radius: var(--r-lg);
  padding: 48px 24px; text-align: center; cursor: pointer; transition: all .3s;
  background: rgba(255,255,255,.015);
}
.extract-drop-zone:hover, .extract-drop-zone.dragover {
  border-color: var(--gold); background: rgba(212,160,23,.05);
}
.extract-drop-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 16px;
  background: rgba(212,160,23,.12); color: var(--gold);
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  transition: all .3s;
}
.extract-drop-zone:hover .extract-drop-icon { background: var(--gold); color: var(--navy); }
.extract-drop-title { font-family: var(--font-ui); font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: 6px; }
.extract-drop-sub { font-size: .8rem; color: rgba(255,255,255,.4); margin-bottom: 16px; }
.extract-formats { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.extract-fmt-badge {
  padding: 3px 11px; border-radius: var(--r-full); font-size: .68rem; font-weight: 700;
  background: rgba(74,155,196,.12); border: 1px solid rgba(74,155,196,.25); color: var(--adire-blue);
  font-family: var(--font-ui);
}

.extract-file-preview {
  display: none; align-items: center; gap: 14px; margin-top: 16px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(111,207,151,.25);
  border-radius: var(--r-lg); padding: 16px 18px;
}
.extract-file-preview.show { display: flex; }
.extract-file-icon {
  width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.extract-file-name { font-family: var(--font-ui); font-size: .88rem; font-weight: 700; color: var(--white); }
.extract-file-meta { font-size: .74rem; color: rgba(255,255,255,.4); margin-top: 2px; }
.extract-file-remove {
  margin-left: auto; background: none; border: none; color: rgba(255,255,255,.4);
  cursor: pointer; font-size: .9rem; transition: color .2s;
}
.extract-file-remove:hover { color: #E57373; }

.extract-submit-btn {
  width: 100%; margin-top: 18px; padding: 13px;
  background: linear-gradient(135deg, var(--terracotta), var(--gold));
  color: #fff; border: none; border-radius: var(--r-full);
  font-family: var(--font-ui); font-size: .92rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: all .25s;
}
.extract-submit-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(196,82,26,.4); }
.extract-submit-btn:disabled { opacity: .4; cursor: not-allowed; }

.extract-note {
  display: flex; gap: 10px; margin-top: 18px; padding: 14px 16px;
  background: rgba(74,155,196,.06); border: 1px solid rgba(74,155,196,.18);
  border-radius: var(--r-md); font-size: .8rem; color: rgba(255,255,255,.55); line-height: 1.6;
}

.extract-result-empty { text-align: center; padding: 64px 32px; }
.extract-result-empty-icon { font-size: 2.4rem; color: rgba(255,255,255,.15); margin-bottom: 16px; }
.extract-result-empty-title { font-family: var(--font-ui); font-size: .95rem; font-weight: 700; color: rgba(255,255,255,.6); margin-bottom: 8px; }
.extract-result-empty-desc { font-size: .82rem; color: rgba(255,255,255,.35); line-height: 1.6; }

.extract-result-text {
  width: 100%; min-height: 340px; background: transparent; border: none; outline: none;
  color: rgba(255,255,255,.85); font-family: var(--font-body); font-size: .92rem;
  line-height: 1.75; padding: 24px; resize: vertical;
}
.extract-result-footer {
  padding: 14px 24px; border-top: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.extract-result-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.extract-action-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--r-full); font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.7);
  cursor: pointer; transition: all .2s; font-family: var(--font-ui);
}
.extract-action-btn:hover { background: rgba(255,255,255,.1); color: var(--white); }

@media (max-width: 1024px) {
  .extract-layout { grid-template-columns: 1fr; }
}
