@font-face {
  font-family: "Tradutur Sans";
  src: url("../fonts/Open_Sans/OpenSans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tradutur Sans";
  src: url("../fonts/Open_Sans/OpenSans-SemiBold.ttf") format("truetype");
  font-weight: 650;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tradutur Sans";
  src: url("../fonts/Open_Sans/OpenSans-Bold.ttf") format("truetype");
  font-weight: 750;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Tradutur Serif";
  src: url("../fonts/Merriweather/Merriweather-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Modern neutral backgrounds - clean slate grays with subtle warmth */
  --product-bg: #fafafa;
  --product-bg-2: #f5f5f5;
  --product-panel: #ffffff;
  --product-panel-2: #fcfcfc;
  
  /* Rich, readable text colors */
  --product-ink: #0f1419;
  --product-muted: #6b7280;
  --product-soft: #d1d5db;
  
  /* Refined borders with better contrast */
  --product-line: rgba(0, 0, 0, 0.08);
  --product-line-strong: rgba(0, 0, 0, 0.12);
  
  /* Sophisticated teal accent - professional yet distinctive */
  --product-accent: #0891b2;
  --product-accent-hover: #0e7490;
  --product-accent-light: #ecfeff;
  --product-accent-2: #3b82f6;
  
  /* Semantic colors - modern and vibrant */
  --product-amber: #f59e0b;
  --product-danger: #ef4444;
  --product-success: #10b981;
  
  /* Generous, modern border radius */
  --product-radius-lg: 16px;
  --product-radius-md: 12px;
  --product-radius-sm: 8px;
  
  /* Refined focus states */
  --product-focus: rgba(8, 145, 178, 0.2);
  
  /* Elegant shadows - subtle depth */
  --product-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --product-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --product-shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  
  --product-sidebar: 292px;
  --product-sidebar-compact: 78px;
}

html {
  min-height: 100%;
  background: #ffffff;
  color-scheme: light;
}

html[data-accessibility-theme="dark"] {
  background: #0b1120;
  color-scheme: dark;
}

html[data-accessibility-theme="light"] {
  background: #ffffff;
  color-scheme: light;
}

html[data-accessibility-font-mode="large"] {
  font-size: 125%;
}

html[data-accessibility-font-mode="xlarge"] {
  font-size: 150%;
}

body.product-shell {
  min-height: 100vh;
  padding: 0 !important;
  color: var(--product-ink);
  background: var(--product-bg);
  color-scheme: light;
  font-family: "Tradutur Sans", "Trebuchet MS", Verdana, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.product-shell p {
  color: #374151;
}

body.product-shell[data-accessibility-theme="dark"],
html[data-accessibility-theme="dark"] body.product-shell {
  --product-bg: #0b1120;
  --product-bg-2: #111827;
  --product-panel: #111827;
  --product-panel-2: #172033;
  --product-ink: #f9fafb;
  --product-muted: #d1d5db;
  --product-soft: #6b7280;
  --product-line: rgba(255, 255, 255, 0.16);
  --product-line-strong: rgba(255, 255, 255, 0.26);
  --product-accent: #67e8f9;
  --product-accent-hover: #a5f3fc;
  --product-accent-light: rgba(103, 232, 249, 0.14);
  --product-accent-2: #93c5fd;
  --product-focus: rgba(103, 232, 249, 0.36);
  --product-shadow: 0 18px 32px rgba(0, 0, 0, 0.38);
  --product-shadow-sm: 0 8px 18px rgba(0, 0, 0, 0.28);
  --product-shadow-md: 0 16px 28px rgba(0, 0, 0, 0.34);
  color-scheme: dark;
}

body.product-shell[data-accessibility-theme="dark"] p,
body.product-shell[data-accessibility-theme="dark"] small,
body.product-shell[data-accessibility-theme="dark"] .context-helper,
body.product-shell[data-accessibility-theme="dark"] .featured-news-body p,
body.product-shell[data-accessibility-theme="dark"] .live-info-item small,
body.product-shell[data-accessibility-theme="dark"] .news-card-body p,
html[data-accessibility-theme="dark"] body.product-shell p,
html[data-accessibility-theme="dark"] body.product-shell small,
html[data-accessibility-theme="dark"] body.product-shell .context-helper,
html[data-accessibility-theme="dark"] body.product-shell .featured-news-body p,
html[data-accessibility-theme="dark"] body.product-shell .live-info-item small,
html[data-accessibility-theme="dark"] body.product-shell .news-card-body p {
  color: #d1d5db;
}

body.product-shell[data-accessibility-theme="dark"] .app-topbar,
body.product-shell[data-accessibility-theme="dark"] .app-sidebar,
body.product-shell[data-accessibility-theme="dark"] .app-footer,
body.product-shell[data-accessibility-theme="dark"] .translator-card,
body.product-shell[data-accessibility-theme="dark"] .translator-main-panel,
body.product-shell[data-accessibility-theme="dark"] .translator-partners,
body.product-shell[data-accessibility-theme="dark"] .context-sidebar-card,
body.product-shell[data-accessibility-theme="dark"] .translator-featured-news,
body.product-shell[data-accessibility-theme="dark"] .homepage-live-info,
body.product-shell[data-accessibility-theme="dark"] .news-index-panel,
body.product-shell[data-accessibility-theme="dark"] .news-compact-hero,
body.product-shell[data-accessibility-theme="dark"] .news-article-card,
body.product-shell[data-accessibility-theme="dark"] .news-landing-hero,
body.product-shell[data-accessibility-theme="dark"] .papers-panel,
body.product-shell[data-accessibility-theme="dark"] .info-hero,
body.product-shell[data-accessibility-theme="dark"] .info-hero-card,
body.product-shell[data-accessibility-theme="dark"] .info-page section,
body.product-shell[data-accessibility-theme="dark"] .project-overview-card,
body.product-shell[data-accessibility-theme="dark"] .project-feature-section,
body.product-shell[data-accessibility-theme="dark"] .project-support-panel,
body.product-shell[data-accessibility-theme="dark"] .project-cta {
  border-color: var(--product-line);
  background: var(--product-panel);
}

body.product-shell[data-accessibility-theme="dark"] .translator-partners {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.96), rgba(23, 32, 51, 0.95) 52%, rgba(17, 24, 39, 0.94)),
    var(--product-panel);
}

body.product-shell[data-accessibility-theme="dark"] .live-info-item,
body.product-shell[data-accessibility-theme="dark"] .live-info-card,
body.product-shell[data-accessibility-theme="dark"] .featured-news-card,
body.product-shell[data-accessibility-theme="dark"] .news-card,
body.product-shell[data-accessibility-theme="dark"] .news-showcase-note,
body.product-shell[data-accessibility-theme="dark"] .news-card-date,
body.product-shell[data-accessibility-theme="dark"] .paper-card,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-item,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-empty,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-loading,
body.product-shell[data-accessibility-theme="dark"] .context-tabs,
body.product-shell[data-accessibility-theme="dark"] .translator-feature-panel article {
  border-color: var(--product-line);
  background: var(--product-panel-2);
}

body.product-shell[data-accessibility-theme="dark"] .context-tab.is-active {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.32);
  background: #111827;
}

body.product-shell[data-accessibility-theme="dark"] input,
body.product-shell[data-accessibility-theme="dark"] select,
body.product-shell[data-accessibility-theme="dark"] textarea,
body.product-shell[data-accessibility-theme="dark"] .source-text,
body.product-shell[data-accessibility-theme="dark"] .target-text,
body.product-shell[data-accessibility-theme="dark"] .tagged-text {
  color: var(--product-ink);
  border-color: var(--product-line);
  background: #0f172a;
}

body.product-shell[data-accessibility-theme="dark"] .topbar-institute-logo,
body.product-shell[data-accessibility-theme="dark"] .partner-link,
body.product-shell[data-accessibility-theme="dark"] .brand-tradutur-logo,
body.product-shell[data-accessibility-theme="dark"] .brand-institute-logo {
  background: #ffffff;
}

body.product-shell[data-accessibility-theme="dark"] .brand-cluster {
  padding: 0.38rem;
  border: 1px solid var(--product-line);
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.16), transparent 52%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.88));
}

body.product-shell[data-accessibility-theme="dark"] .brand-tradutur-logo,
body.product-shell[data-accessibility-theme="dark"] .brand-institute-logo,
body.product-shell[data-accessibility-theme="dark"] .topbar-institute-logo,
body.product-shell[data-accessibility-theme="dark"] .footer-institute-logo,
body.product-shell[data-accessibility-theme="dark"] .footer-partner-logo {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.94)) !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

body.product-shell[data-accessibility-theme="dark"] .brand-tradutur-logo:hover,
body.product-shell[data-accessibility-theme="dark"] .brand-institute-logo:hover,
body.product-shell[data-accessibility-theme="dark"] .topbar-institute-logo:hover,
body.product-shell[data-accessibility-theme="dark"] .footer-institute-logo:hover,
body.product-shell[data-accessibility-theme="dark"] .footer-partner-logo:hover {
  border-color: rgba(103, 232, 249, 0.64);
  background: #ffffff !important;
}

body.product-shell[data-accessibility-theme="dark"] .brand-institute-logo img,
body.product-shell[data-accessibility-theme="dark"] .brand-tradutur-logo img,
body.product-shell[data-accessibility-theme="dark"] .topbar-institute-logo img,
body.product-shell[data-accessibility-theme="dark"] .footer-institute-logo img,
body.product-shell[data-accessibility-theme="dark"] .footer-partner-logo img,
body.product-shell[data-accessibility-theme="dark"] .partner-link img {
  mix-blend-mode: normal;
}

body.product-shell[data-accessibility-theme="dark"] .partner-link {
  color: var(--product-muted);
  border-color: var(--product-line);
  background:
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.12), transparent 56%),
    var(--product-panel-2) !important;
}

body.product-shell[data-accessibility-theme="dark"] .partner-link img {
  padding: 0.35rem 0.5rem;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.96);
}

body.product-shell[data-accessibility-theme="dark"] .topbar-menu {
  border-color: var(--product-line);
  background: var(--product-panel-2);
}

body.product-shell[data-accessibility-theme="dark"] .topbar-menu-logo {
  padding: 0.18rem 0.28rem;
  border-radius: 8px;
  background: rgba(248, 250, 252, 0.96);
}

body.product-shell[data-accessibility-theme="dark"] #copy-translation,
body.product-shell[data-accessibility-theme="dark"] #translate:disabled,
body.product-shell[data-accessibility-theme="dark"] .translator-actionbar,
body.product-shell[data-accessibility-theme="dark"] button.keyboard-button,
body.product-shell[data-accessibility-theme="dark"] div.keyboard > button.keyboard-button,
body.product-shell[data-accessibility-theme="dark"] button.reset-button,
body.product-shell[data-accessibility-theme="dark"] .dictionary-embed-toolbar,
body.product-shell[data-accessibility-theme="dark"] #dictionary-container .card,
body.product-shell[data-accessibility-theme="dark"] #writing-assistant-feature .card,
body.product-shell[data-accessibility-theme="dark"] #phrases-container .card,
body.product-shell[data-accessibility-theme="dark"] .news-list-item,
body.product-shell[data-accessibility-theme="dark"] .writing-language-control select,
body.product-shell[data-accessibility-theme="dark"] .writing-about-grid article,
body.product-shell[data-accessibility-theme="dark"] .live-info-updated,
body.product-shell[data-accessibility-theme="dark"] .live-info-ticker span,
body.product-shell[data-accessibility-theme="dark"] .sitemap-section,
body.product-shell[data-accessibility-theme="dark"] .sitemap-card,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-controls,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-controls select,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-controls input,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-categories,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-results-panel,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-card,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-card-actions a,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-card-actions button,
body.product-shell[data-accessibility-theme="dark"] .phrasebook-empty,
body.product-shell[data-accessibility-theme="dark"] .project-feature-card,
body.product-shell[data-accessibility-theme="dark"] .language-summary-grid article,
body.product-shell[data-accessibility-theme="dark"] .ladin-feature-list article,
body.product-shell[data-accessibility-theme="dark"] .ladin-resource-grid article,
body.product-shell[data-accessibility-theme="dark"] .ladin-institution-grid article,
body.product-shell[data-accessibility-theme="dark"] .language-variant-grid article,
body.product-shell[data-accessibility-theme="dark"] .ladin-article-card,
body.product-shell[data-accessibility-theme="dark"] .ladin-stat-card,
body.product-shell[data-accessibility-theme="dark"] .ladin-language-hero,
body.product-shell[data-accessibility-theme="dark"] .language-code-row span,
body.product-shell[data-accessibility-theme="dark"] .ladin-map-section,
body.product-shell[data-accessibility-theme="dark"] .ladin-content-layout,
body.product-shell[data-accessibility-theme="dark"] .ladin-feature-panel,
body.product-shell[data-accessibility-theme="dark"] .ladin-resources-section,
body.product-shell[data-accessibility-theme="dark"] .ladin-institution-section,
body.product-shell[data-accessibility-theme="dark"] .language-variant-section,
body.product-shell[data-accessibility-theme="dark"] .ladin-map-card,
body.product-shell[data-accessibility-theme="dark"] .textcomplete-dropdown,
body.product-shell[data-accessibility-theme="dark"] .news-hero-latest,
body.product-shell[data-accessibility-theme="dark"] .news-empty-state,
body.product-shell[data-accessibility-theme="dark"] .news-article-image,
body.product-shell[data-accessibility-theme="dark"] .news-article-callout,
body.product-shell[data-accessibility-theme="dark"] .news-citation pre,
body.product-shell[data-accessibility-theme="dark"] .news-back-link,
body.product-shell[data-accessibility-theme="dark"] .news-lang-switch a,
body.product-shell[data-accessibility-theme="dark"] .news-copy-btn,
body.product-shell[data-accessibility-theme="dark"] .card,
body.product-shell[data-accessibility-theme="dark"] .modal-content,
body.product-shell[data-accessibility-theme="dark"] .dropdown-menu,
body.product-shell[data-accessibility-theme="dark"] .list-group-item,
body.product-shell[data-accessibility-theme="dark"] .table,
body.product-shell[data-accessibility-theme="dark"] .form-control,
body.product-shell[data-accessibility-theme="dark"] .form-select {
  color: var(--product-ink) !important;
  border-color: var(--product-line) !important;
  background: var(--product-panel-2) !important;
}

body.product-shell[data-accessibility-theme="dark"] .dropdown-item {
  color: var(--product-ink) !important;
}

body.product-shell[data-accessibility-theme="dark"] .dropdown-item:hover,
body.product-shell[data-accessibility-theme="dark"] .dropdown-item:focus {
  color: var(--product-ink) !important;
  background: #1f2937 !important;
}

body.product-shell[data-accessibility-theme="dark"] .system-notice {
  color: #f8fafc;
  border-color: rgba(148, 163, 184, 0.34);
  background: #111827;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

body.product-shell[data-accessibility-theme="dark"] .system-notice button {
  color: #e5e7eb;
}

body.product-shell[data-accessibility-theme="dark"] .system-notice.notification-info {
  color: #ecfeff;
  border-color: rgba(34, 211, 238, 0.5);
  background: linear-gradient(135deg, #0f172a, #164e63);
}

body.product-shell[data-accessibility-theme="dark"] .system-notice.notification-success {
  color: #f0fdf4;
  border-color: rgba(74, 222, 128, 0.48);
  background: linear-gradient(135deg, #0f172a, #14532d);
}

body.product-shell[data-accessibility-theme="dark"] .system-notice.notification-warning {
  color: #fffbeb;
  border-color: rgba(251, 191, 36, 0.56);
  background: linear-gradient(135deg, #111827, #78350f);
}

body.product-shell[data-accessibility-theme="dark"] .system-notice.notification-danger {
  color: #fef2f2;
  border-color: rgba(248, 113, 113, 0.56);
  background: linear-gradient(135deg, #111827, #7f1d1d);
}

body.product-shell[data-accessibility-theme="dark"] .system-notice.notification-info i {
  color: #67e8f9;
}

body.product-shell[data-accessibility-theme="dark"] .system-notice.notification-success i {
  color: #86efac;
}

body.product-shell[data-accessibility-theme="dark"] .system-notice.notification-warning i {
  color: #fcd34d;
}

body.product-shell[data-accessibility-theme="dark"] .system-notice.notification-danger i {
  color: #fca5a5;
}

body.product-shell[data-accessibility-theme="dark"] .toast {
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  background: #111827 !important;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

body.product-shell[data-accessibility-theme="dark"] .toast.text-bg-success {
  background: #14532d !important;
}

body.product-shell[data-accessibility-theme="dark"] .toast.text-bg-danger {
  background: #7f1d1d !important;
}

body.product-shell[data-accessibility-theme="dark"] .toast.text-bg-warning {
  color: #fffbeb !important;
  background: #78350f !important;
}

body.product-shell[data-accessibility-theme="dark"] .toast.text-bg-primary {
  background: #164e63 !important;
}

body.product-shell[data-accessibility-theme="dark"] .translator-feedback-banner {
  color: var(--product-ink);
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.72), rgba(17, 24, 39, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42);
}

body.product-shell[data-accessibility-theme="dark"] .feedback-banner-icon {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.72);
}

body.product-shell[data-accessibility-theme="dark"] .feedback-banner-copy strong {
  color: #fffbeb;
}

body.product-shell[data-accessibility-theme="dark"] .feedback-banner-copy span {
  color: #fde68a;
}

body.product-shell[data-accessibility-theme="dark"] .feedback-banner-actions .btn {
  color: #fffbeb;
  border-color: rgba(251, 191, 36, 0.5);
  background: rgba(15, 23, 42, 0.24);
}

body.product-shell[data-accessibility-theme="dark"] .feedback-banner-actions .btn:hover,
body.product-shell[data-accessibility-theme="dark"] .feedback-banner-actions .btn:focus-visible {
  color: #111827;
  border-color: #fcd34d;
  background: #fcd34d;
}

body.product-shell[data-accessibility-theme="dark"] .feedback-banner-actions .btn-close {
  filter: invert(1) grayscale(100%);
  border-color: rgba(255, 255, 255, 0.22);
}

body.product-shell[data-accessibility-theme="dark"] .textcomplete-item,
body.product-shell[data-accessibility-theme="dark"] .textignore-item,
body.product-shell[data-accessibility-theme="dark"] #ac-suggestions > li,
body.product-shell[data-accessibility-theme="dark"] #typo-suggestions > li {
  color: var(--product-ink) !important;
  border-color: var(--product-line) !important;
  background: transparent !important;
}

body.product-shell[data-accessibility-theme="dark"] .textcomplete-item.active,
body.product-shell[data-accessibility-theme="dark"] .textcomplete-item:hover,
body.product-shell[data-accessibility-theme="dark"] #ac-suggestions > li.active,
body.product-shell[data-accessibility-theme="dark"] #ac-suggestions > li:hover,
body.product-shell[data-accessibility-theme="dark"] #typo-suggestions > li.active,
body.product-shell[data-accessibility-theme="dark"] #typo-suggestions > li:hover {
  color: var(--product-ink) !important;
  background: rgba(103, 232, 249, 0.16) !important;
}

body.product-shell[data-accessibility-theme="dark"] .textignore-item.active,
body.product-shell[data-accessibility-theme="dark"] .textignore-item:hover {
  color: #fecaca !important;
  background: rgba(239, 68, 68, 0.22) !important;
}

body.product-shell[data-accessibility-theme="dark"] .news-card:hover,
body.product-shell[data-accessibility-theme="dark"] .news-card:focus-visible,
body.product-shell[data-accessibility-theme="dark"] .live-info-item:hover,
body.product-shell[data-accessibility-theme="dark"] .sitemap-card:hover {
  color: var(--product-ink) !important;
  background: #1f2937 !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-nav-link,
body.product-shell[data-accessibility-theme="dark"] .app-nav-link small,
body.product-shell[data-accessibility-theme="dark"] .app-nav-section,
body.product-shell[data-accessibility-theme="dark"] .topbar-path {
  color: var(--product-muted) !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-nav-link strong,
body.product-shell[data-accessibility-theme="dark"] .app-nav-link:hover,
body.product-shell[data-accessibility-theme="dark"] .app-nav-link.active,
body.product-shell[data-accessibility-theme="dark"] .live-info-title,
body.product-shell[data-accessibility-theme="dark"] .live-info-card-head h3,
body.product-shell[data-accessibility-theme="dark"] .featured-news-body h3,
body.product-shell[data-accessibility-theme="dark"] .live-info-header h2,
body.product-shell[data-accessibility-theme="dark"] .live-info-header h3,
body.product-shell[data-accessibility-theme="dark"] .info-hero-card strong,
body.product-shell[data-accessibility-theme="dark"] .info-hero-card span,
body.product-shell[data-accessibility-theme="dark"] .project-support-panel h2,
body.product-shell[data-accessibility-theme="dark"] .project-cta h2,
body.product-shell[data-accessibility-theme="dark"] .ladin-stat-card,
body.product-shell[data-accessibility-theme="dark"] .ladin-stat-card strong,
body.product-shell[data-accessibility-theme="dark"] .sitemap-section h2,
body.product-shell[data-accessibility-theme="dark"] .sitemap-card strong,
body.product-shell[data-accessibility-theme="dark"] .live-info-ticker a,
body.product-shell[data-accessibility-theme="dark"] .live-info-ticker b,
body.product-shell[data-accessibility-theme="dark"] .live-info-ticker-text {
  color: var(--product-ink) !important;
}

html[data-accessibility-theme="dark"] body.product-shell .sitemap-section h2,
html[data-accessibility-theme="dark"] body.product-shell .sitemap-card strong {
  color: var(--product-ink) !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-nav-link:hover,
body.product-shell[data-accessibility-theme="dark"] .app-nav-link.active {
  background: var(--product-accent-light) !important;
  border-color: var(--product-line) !important;
}

body.product-shell[data-accessibility-theme="dark"] .nav-icon,
body.product-shell[data-accessibility-theme="dark"] .app-nav-link:hover .nav-icon,
body.product-shell[data-accessibility-theme="dark"] .app-nav-link.active .nav-icon {
  color: var(--product-accent) !important;
  background: #0f172a !important;
}

body.product-shell[data-accessibility-theme="dark"] .translator-page,
body.product-shell[data-accessibility-theme="dark"] .translator-workspace,
body.product-shell[data-accessibility-theme="dark"] .translator,
body.product-shell[data-accessibility-theme="dark"] #translate-form,
body.product-shell[data-accessibility-theme="dark"] .translator-left,
body.product-shell[data-accessibility-theme="dark"] .translator-right {
  color: var(--product-ink) !important;
  background: transparent !important;
}

body.product-shell[data-accessibility-theme="dark"] .translator-container.coretur-container {
  color: var(--product-ink) !important;
  background: var(--product-panel) !important;
}

body.product-shell[data-accessibility-theme="dark"] #translate-form .source-text,
body.product-shell[data-accessibility-theme="dark"] #translate-form .target-text,
body.product-shell[data-accessibility-theme="dark"] #source-text,
body.product-shell[data-accessibility-theme="dark"] #target-text {
  color: var(--product-ink) !important;
  background: #0f172a !important;
}

body.product-shell[data-accessibility-theme="dark"] .writing-actionbar,
body.product-shell[data-accessibility-theme="dark"] .tools-meta-pill,
body.product-shell[data-accessibility-theme="dark"] .info-hero-card,
body.product-shell[data-accessibility-theme="dark"] .project-support-panel,
body.product-shell[data-accessibility-theme="dark"] .project-cta,
body.product-shell[data-accessibility-theme="dark"] .ladin-language-hero,
body.product-shell[data-accessibility-theme="dark"] .language-side-note {
  color: var(--product-ink) !important;
  border-color: var(--product-line) !important;
  background:
    radial-gradient(circle at top left, rgba(103, 232, 249, 0.12), transparent 48%),
    var(--product-panel-2) !important;
}

body.product-shell[data-accessibility-theme="dark"] .tools-meta-pill {
  box-shadow: var(--product-shadow-sm) !important;
}

body.product-shell[data-accessibility-theme="dark"] .project-support-panel p,
body.product-shell[data-accessibility-theme="dark"] .project-cta p,
body.product-shell[data-accessibility-theme="dark"] .language-side-note,
body.product-shell[data-accessibility-theme="dark"] .ladin-stat-card span,
body.product-shell[data-accessibility-theme="dark"] .live-info-ticker span {
  color: var(--product-muted) !important;
}

body.product-shell[data-accessibility-theme="dark"] .project-support-panel img {
  mix-blend-mode: normal;
}

body.product-shell[data-accessibility-theme="dark"] .live-info-ticker {
  border-color: var(--product-line) !important;
  background: rgba(103, 232, 249, 0.08) !important;
}

body.product-shell[data-accessibility-theme="dark"] .live-info-ticker span {
  border: 1px solid var(--product-line);
  background: var(--product-panel-2) !important;
}

body.product-shell[data-accessibility-theme="dark"] .live-info-original {
  color: var(--product-muted) !important;
  border-color: rgba(209, 213, 219, 0.34) !important;
  background: rgba(15, 23, 42, 0.72) !important;
}

body.product-shell[data-accessibility-theme="dark"] .live-info-original strong {
  color: var(--product-ink) !important;
}

body.product-shell[data-accessibility-theme="dark"] .live-info-original small {
  color: var(--product-muted) !important;
}

body.product-shell[data-accessibility-theme="dark"] .live-info-original-toggle {
  color: var(--product-accent-2) !important;
  border-color: rgba(147, 197, 253, 0.34) !important;
  background: rgba(147, 197, 253, 0.1) !important;
}

body.product-shell[data-accessibility-theme="dark"] .live-info-original-toggle:hover,
body.product-shell[data-accessibility-theme="dark"] .live-info-original-toggle:focus-visible {
  color: var(--product-ink) !important;
  border-color: rgba(147, 197, 253, 0.56) !important;
  background: rgba(147, 197, 253, 0.18) !important;
}

body.product-shell[data-accessibility-theme="dark"] .live-info-ticker a::after {
  color: rgba(209, 213, 219, 0.66) !important;
}

body.product-shell[data-accessibility-theme="dark"] #source-text span.sent,
body.product-shell[data-accessibility-theme="dark"] #target-text span.sent,
body.product-shell[data-accessibility-theme="dark"] .source-text span.sent,
body.product-shell[data-accessibility-theme="dark"] .target-text span.sent,
body.product-shell[data-accessibility-theme="dark"] #source-text .token,
body.product-shell[data-accessibility-theme="dark"] #target-text .token,
body.product-shell[data-accessibility-theme="dark"] .source-text .token,
body.product-shell[data-accessibility-theme="dark"] .target-text .token,
body.product-shell[data-accessibility-theme="dark"] #source-text .apertium,
body.product-shell[data-accessibility-theme="dark"] #target-text .apertium,
body.product-shell[data-accessibility-theme="dark"] #source-text .uform,
body.product-shell[data-accessibility-theme="dark"] #target-text .uform,
body.product-shell[data-accessibility-theme="dark"] #source-text .uword,
body.product-shell[data-accessibility-theme="dark"] #target-text .uword,
body.product-shell[data-accessibility-theme="dark"] #source-text .uword-edited,
body.product-shell[data-accessibility-theme="dark"] #target-text .uword-edited,
body.product-shell[data-accessibility-theme="dark"] #source-text .ignored,
body.product-shell[data-accessibility-theme="dark"] #target-text .ignored {
  color: var(--product-ink) !important;
}

body.product-shell[data-accessibility-theme="dark"] #source-text .apertium,
body.product-shell[data-accessibility-theme="dark"] #target-text .apertium,
body.product-shell[data-accessibility-theme="dark"] #source-text .uword,
body.product-shell[data-accessibility-theme="dark"] #target-text .uword,
body.product-shell[data-accessibility-theme="dark"] #source-text .uword-edited,
body.product-shell[data-accessibility-theme="dark"] #target-text .uword-edited,
body.product-shell[data-accessibility-theme="dark"] #source-text .ignored,
body.product-shell[data-accessibility-theme="dark"] #target-text .ignored {
  background-color: #1f2937 !important;
}

body.product-shell[data-accessibility-theme="dark"] #source-text span.sent.active,
body.product-shell[data-accessibility-theme="dark"] #target-text span.sent.active,
body.product-shell[data-accessibility-theme="dark"] .source-text span.sent.active,
body.product-shell[data-accessibility-theme="dark"] .target-text span.sent.active {
  color: var(--product-ink) !important;
  background-color: #374151 !important;
}

body.product-shell[data-accessibility-theme="dark"] #source-text span.sent.active *,
body.product-shell[data-accessibility-theme="dark"] #target-text span.sent.active *,
body.product-shell[data-accessibility-theme="dark"] .source-text span.sent.active *,
body.product-shell[data-accessibility-theme="dark"] .target-text span.sent.active * {
  color: var(--product-ink) !important;
}

body.modal-open .app-topbar,
body.modal-open .app-sidebar,
body.modal-open .mobile-nav-backdrop {
  z-index: 1030 !important;
}

body.product-shell[data-accessibility-theme="dark"] .modal-backdrop {
  background-color: #000;
}

body.product-shell[data-accessibility-theme="dark"] .modal-header,
body.product-shell[data-accessibility-theme="dark"] .modal-footer {
  border-color: var(--product-line) !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal,
body.product-shell[data-accessibility-theme="dark"] .app-modal .modal-body,
body.product-shell[data-accessibility-theme="dark"] .app-modal .modal-title,
body.product-shell[data-accessibility-theme="dark"] .app-modal .form-label,
body.product-shell[data-accessibility-theme="dark"] .app-modal .form-label strong,
body.product-shell[data-accessibility-theme="dark"] .app-modal .form-check-label,
body.product-shell[data-accessibility-theme="dark"] .app-modal .feedback-card-header strong {
  color: var(--product-ink) !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal .text-muted,
body.product-shell[data-accessibility-theme="dark"] .app-modal .modal-eyebrow {
  color: #cbd5e1 !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal .feedback-text-card {
  color: var(--product-ink) !important;
  border-color: var(--product-line-strong) !important;
  background: #0f172a !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal .feedback-text-card p,
body.product-shell[data-accessibility-theme="dark"] .app-modal #feedback-source-text,
body.product-shell[data-accessibility-theme="dark"] .app-modal #feedback-target-text {
  color: #f8fafc !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal .form-control {
  color: #f8fafc !important;
  border-color: var(--product-line-strong) !important;
  background: #0b1120 !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal .form-control::placeholder {
  color: #94a3b8 !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal .btn-outline-secondary {
  color: #f8fafc !important;
  border-color: var(--product-line-strong) !important;
  background: transparent !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal .btn-outline-secondary:hover,
body.product-shell[data-accessibility-theme="dark"] .app-modal .btn-outline-secondary:focus {
  color: #0b1120 !important;
  background: #e2e8f0 !important;
}

body.product-shell[data-accessibility-theme="dark"] .app-modal .btn-close {
  filter: invert(1) grayscale(100%) brightness(180%);
  opacity: 0.9;
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-mark {
  color: #fff7ed;
  background: rgba(245, 158, 11, 0.42);
}

body.product-shell[data-accessibility-theme="dark"] .translator-page #translation-error-container {
  border-color: rgba(248, 113, 113, 0.36);
  border-left-color: #f87171;
  color: #fecaca;
  background: rgba(69, 10, 10, 0.96);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.34);
}

body.product-shell[data-accessibility-theme="dark"] .translator-page #translation-error-container strong,
body.product-shell[data-accessibility-theme="dark"] .translator-page #translation-error,
body.product-shell[data-accessibility-theme="dark"] .translator-page #translation-error-container .fas {
  color: #fecaca;
}

body.product-shell[data-accessibility-theme="dark"] ::placeholder {
  color: #9ca3af;
  opacity: 1;
}

body.product-shell[data-accessibility-contrast="high"] {
  --product-bg: #ffffff;
  --product-bg-2: #ffffff;
  --product-panel: #ffffff;
  --product-panel-2: #ffffff;
  --product-ink: #000000;
  --product-muted: #1f2937;
  --product-soft: #6b7280;
  --product-line: rgba(0, 0, 0, 0.28);
  --product-line-strong: rgba(0, 0, 0, 0.42);
  --product-accent: #005f73;
  --product-accent-hover: #003f4f;
  --product-accent-light: #e6fbff;
  --product-accent-2: #0645ad;
  --product-focus: rgba(0, 95, 115, 0.34);
  --product-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --product-shadow-sm: 0 0 0 1px rgba(0, 0, 0, 0.08);
  --product-shadow-md: 0 0 0 2px rgba(0, 0, 0, 0.12);
  color-scheme: light;
}

body.product-shell[data-accessibility-contrast="high"] p,
body.product-shell[data-accessibility-contrast="high"] small,
body.product-shell[data-accessibility-contrast="high"] .context-helper,
body.product-shell[data-accessibility-contrast="high"] .featured-news-body p,
body.product-shell[data-accessibility-contrast="high"] .live-info-item small,
body.product-shell[data-accessibility-contrast="high"] .news-card-body p {
  color: #111827 !important;
}

body.product-shell[data-accessibility-contrast="high"] .app-topbar,
body.product-shell[data-accessibility-contrast="high"] .app-sidebar,
body.product-shell[data-accessibility-contrast="high"] .app-footer,
body.product-shell[data-accessibility-contrast="high"] .translator-card,
body.product-shell[data-accessibility-contrast="high"] .context-sidebar-card,
body.product-shell[data-accessibility-contrast="high"] .translator-featured-news,
body.product-shell[data-accessibility-contrast="high"] .homepage-live-info,
body.product-shell[data-accessibility-contrast="high"] .news-index-panel {
  border-color: var(--product-line-strong);
}

body.product-shell[data-accessibility-contrast="high"] .translator-page #translation-error-container {
  border: 3px solid #000000;
  border-left-width: 8px;
  color: #000000;
  background: #ffffff;
  box-shadow: 0 0 0 3px #ffffff;
}

body.product-shell[data-accessibility-contrast="high"] .translator-page #translation-error-container strong,
body.product-shell[data-accessibility-contrast="high"] .translator-page #translation-error,
body.product-shell[data-accessibility-contrast="high"] .translator-page #translation-error-container .fas {
  color: #000000;
}

body.product-shell a {
  color: inherit;
}

body.product-shell :focus-visible {
  outline: 3px solid var(--product-focus);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  background: var(--product-ink);
  color: #fff !important;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

.preference-cookie-banner {
  position: fixed;
  right: clamp(1rem, 3vw, 2rem);
  bottom: calc(1rem + env(safe-area-inset-bottom));
  left: clamp(1rem, 3vw, 2rem);
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(100% - 2rem, 920px);
  margin: 0 auto;
  padding: 0.86rem 0.94rem;
  border: 1px solid var(--product-line-strong);
  border-radius: 8px;
  color: var(--product-ink);
  background: color-mix(in srgb, var(--product-panel) 94%, transparent);
  box-shadow: var(--product-shadow-md);
  backdrop-filter: blur(18px);
}

.preference-cookie-banner[hidden] {
  display: none !important;
}

.preference-cookie-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.preference-cookie-copy strong {
  font-size: 0.94rem;
  line-height: 1.25;
}

.preference-cookie-copy span {
  color: var(--product-muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.preference-cookie-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.preference-cookie-button {
  min-height: 2.35rem;
  border: 1px solid var(--product-line-strong);
  border-radius: 8px;
  padding: 0.5rem 0.78rem;
  font-weight: 750;
  line-height: 1.1;
}

.preference-cookie-button-primary {
  border-color: var(--product-accent);
  color: #ffffff;
  background: var(--product-accent);
}

.preference-cookie-button-primary:hover,
.preference-cookie-button-primary:focus-visible {
  border-color: var(--product-accent-hover);
  background: var(--product-accent-hover);
}

.preference-cookie-button-secondary {
  color: var(--product-ink);
  background: var(--product-panel-2);
}

.preference-cookie-button-secondary:hover,
.preference-cookie-button-secondary:focus-visible {
  border-color: var(--product-accent);
  color: var(--product-accent);
}

@media (max-width: 980px) {
  .preference-cookie-banner {
    bottom: calc(5.3rem + env(safe-area-inset-bottom));
  }
}

@media (max-width: 640px) {
  .preference-cookie-banner {
    align-items: stretch;
    flex-direction: column;
    gap: 0.74rem;
    padding: 0.78rem;
  }

  .preference-cookie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

.app-frame {
  display: grid;
  grid-template-columns: var(--product-sidebar) minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
}

body.shell-sidebar-compact .app-frame {
  grid-template-columns: var(--product-sidebar-compact) minmax(0, 1fr);
}

.app-sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  height: 100vh;
  border-right: 1px solid var(--product-line);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
  overflow: hidden;
}

.app-sidebar-inner {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  min-height: 0;
  padding: 1.25rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.brand-cluster {
  display: grid;
  justify-items: stretch;
  gap: 0.55rem;
}

.sidebar-compact-toggle {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--product-line);
  border-radius: 10px;
  color: var(--product-accent);
  background: var(--product-bg-2);
  box-shadow: none;
}

.sidebar-compact-toggle:hover,
.sidebar-compact-toggle:focus-visible {
  border-color: rgba(8, 145, 178, 0.32);
  background: var(--product-accent-light);
}

.brand-institute-logo,
.brand-tradutur-logo,
.topbar-institute-logo,
.footer-institute-logo,
.footer-partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--product-line);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
  transition: all 0.2s ease;
}

.brand-institute-logo,
.brand-tradutur-logo {
  min-height: 76px;
  padding: 0.82rem 0.92rem;
  border-radius: 14px;
  background: var(--product-bg-2);
  transition: all 0.2s ease;
}

.brand-institute-logo:hover,
.brand-tradutur-logo:hover,
.topbar-institute-logo:hover,
.footer-institute-logo:hover,
.footer-partner-logo:hover {
  border-color: var(--product-accent);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-md);
  transform: translateY(-2px);
}

.brand-institute-logo img,
.brand-tradutur-logo img,
.topbar-institute-logo img,
.footer-institute-logo img,
.footer-partner-logo img {
  width: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-institute-logo img,
.brand-tradutur-logo img {
  max-height: 48px;
}

.brand-tradutur-logo img {
  max-height: 58px;
}

.eyebrow,
.tool-eyebrow,
.modal-eyebrow,
.side-card-kicker,
.app-nav-section,
.topbar-kicker {
  display: block;
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.105em;
  text-transform: uppercase;
  text-align: left;
}

.app-nav {
  display: flex;
  flex-direction: column;
  gap: 0.34rem;
}

.app-nav-section {
  margin: 0.8rem 0 0.22rem;
  padding: 0 0.7rem;
}

.app-nav-link {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 0.72rem;
  align-items: center;
  padding: 0.68rem 0.72rem;
  border: 1px solid transparent;
  border-radius: var(--product-radius-md);
  color: var(--product-muted) !important;
  text-decoration: none;
  isolation: isolate;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.app-nav-link > span:last-child,
.sidebar-mobile-switch > span:last-child,
.service-status .status-copy,
.partner-link span,
.sidebar-footer-label {
  transition: opacity 0.16s ease;
}

body.shell-sidebar-compact .app-sidebar-inner {
  gap: 0.7rem;
  padding: 0.7rem;
  overflow-x: hidden;
}

body.shell-sidebar-compact .brand-tradutur-logo {
  min-height: 54px;
  padding: 0.42rem;
}

body.shell-sidebar-compact .brand-tradutur-logo img {
  content: url("../img/logo-q-s.png");
  max-height: 38px;
}

body.shell-sidebar-compact .sidebar-compact-toggle {
  min-height: 34px;
}

body.shell-sidebar-compact .app-nav {
  align-items: stretch;
}

body.shell-sidebar-compact .app-nav-link,
body.shell-sidebar-compact .sidebar-mobile-switch,
body.shell-sidebar-compact .service-status {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 0;
  padding: 0.46rem;
}

body.shell-sidebar-compact .app-nav-link > span:last-child,
body.shell-sidebar-compact .sidebar-mobile-switch > span:last-child,
body.shell-sidebar-compact .service-status .status-copy,
body.shell-sidebar-compact .partner-link span,
body.shell-sidebar-compact .sidebar-footer-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.shell-sidebar-compact .app-nav-link::before {
  width: 100%;
  height: 3px;
  inset: auto 0 0;
}

body.shell-sidebar-compact .nav-icon,
body.shell-sidebar-compact .sidebar-mobile-switch .nav-icon,
body.shell-sidebar-compact .service-status .status-icon {
  width: 38px;
  height: 38px;
}

body.shell-sidebar-compact .sidebar-footer {
  gap: 0.48rem;
}

body.shell-sidebar-compact .sidebar-accessibility {
  padding: 0.45rem;
}

body.shell-sidebar-compact .sidebar-accessibility .accessibility-controls {
  grid-template-columns: 1fr;
  gap: 0.34rem;
}

body.shell-sidebar-compact .sidebar-accessibility .accessibility-btn {
  min-height: 34px;
  padding-inline: 0.2rem;
}

body.shell-sidebar-compact .partner-link {
  padding: 0.46rem;
}

body.shell-sidebar-compact .partner-link img {
  width: 38px;
  max-height: 30px;
}

.app-nav-link::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: all 0.2s ease;
}

.app-nav-link:hover {
  transform: translateX(2px);
  color: var(--product-ink) !important;
  background: var(--product-bg-2);
  border-color: var(--product-line);
}

.app-nav-link.active {
  color: var(--product-ink) !important;
  background: var(--product-accent-light);
  border-color: var(--product-accent);
  box-shadow: var(--product-shadow-sm);
}

.app-nav-link.active::before {
  background: var(--product-accent);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--product-bg);
  color: var(--product-accent);
  transition: all 0.2s ease;
}

.app-nav-link:hover .nav-icon,
.app-nav-link.active .nav-icon {
  background: var(--product-panel);
  color: var(--product-accent);
  transform: scale(1.05);
}

.app-nav-link strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.15;
}

.app-nav-link small {
  display: block;
  margin-top: 0.15rem;
  color: var(--product-muted);
  font-size: 0.74rem;
  line-height: 1.25;
}

.wayfinder-card,
.side-card,
.translator-command-panel,
.translator-main-panel,
.app-modal {
  border: 1px solid var(--product-line);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.wayfinder-card {
  margin-top: auto;
  padding: 1rem;
  border-radius: var(--product-radius-md);
}

.wayfinder-title {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  margin-bottom: 0.75rem;
  color: var(--product-accent);
  font-weight: 750;
}

.wayfinder-card ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wayfinder-card li {
  display: grid;
  gap: 0.12rem;
}

.wayfinder-card strong {
  font-size: 0.86rem;
}

.wayfinder-card span {
  color: var(--product-muted);
  font-size: 0.78rem;
}

.sidebar-footer {
  display: grid;
  gap: 0.8rem;
}

.sidebar-accessibility {
  display: grid;
  gap: 0.45rem;
  padding: 0.72rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background:
    radial-gradient(circle at top right, rgba(8, 145, 178, 0.08), transparent 58%),
    var(--product-bg-2);
}

.sidebar-footer-label {
  color: var(--product-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-accessibility .accessibility-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-accessibility .accessibility-btn {
  justify-content: center;
  min-height: 40px;
  padding: 0.46rem 0.42rem;
  border-color: var(--product-line);
  background: var(--product-panel);
}

.sidebar-mobile-switch {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  padding: 0.66rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.1), rgba(14, 165, 233, 0.07));
  color: var(--product-ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.sidebar-mobile-switch:hover,
.sidebar-mobile-switch:focus-visible {
  border-color: rgba(8, 145, 178, 0.35);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  color: var(--product-ink);
  text-decoration: none;
  transform: translateY(-1px);
}

.sidebar-mobile-switch .nav-icon {
  width: 40px;
  height: 40px;
}

.sidebar-mobile-switch strong,
.sidebar-mobile-switch small {
  display: block;
}

.sidebar-mobile-switch strong {
  font-size: 0.82rem;
}

.sidebar-mobile-switch small {
  color: var(--product-muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

body.product-shell[data-accessibility-theme="dark"] .sidebar-mobile-switch,
html[data-accessibility-theme="dark"] body.product-shell .sidebar-mobile-switch {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.18), rgba(15, 23, 42, 0.94));
  color: var(--product-ink);
}

body.product-shell[data-accessibility-theme="dark"] .sidebar-mobile-switch strong,
body.product-shell[data-accessibility-theme="dark"] .service-status .status-copy strong,
html[data-accessibility-theme="dark"] body.product-shell .sidebar-mobile-switch strong,
html[data-accessibility-theme="dark"] body.product-shell .service-status .status-copy strong {
  color: var(--product-ink);
}

body.product-shell[data-accessibility-theme="dark"] .sidebar-mobile-switch small,
body.product-shell[data-accessibility-theme="dark"] .service-status .status-copy small,
html[data-accessibility-theme="dark"] body.product-shell .sidebar-mobile-switch small,
html[data-accessibility-theme="dark"] body.product-shell .service-status .status-copy small {
  color: var(--product-muted);
}

.service-status {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-bg-2);
}

.service-status .status-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.1);
  color: var(--product-amber);
}

.service-status[data-status="online"] .status-icon {
  background: rgba(16, 185, 129, 0.1);
  color: var(--product-success);
}

.service-status[data-status="offline"] .status-icon {
  background: rgba(239, 68, 68, 0.1);
  color: var(--product-danger);
}

.service-status[data-status="online"] .status-icon::before,
.service-status[data-status="offline"] .status-icon::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-radius: 999px;
  background: currentColor;
}

.status-copy strong,
.status-copy small {
  display: block;
}

.status-copy strong {
  font-size: 0.83rem;
}

.status-copy small {
  color: var(--product-muted);
  font-size: 0.72rem;
}

.partner-link {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem;
  border-radius: var(--product-radius-md);
  border: 1px solid var(--product-line);
  background: var(--product-bg-2);
  color: var(--product-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.partner-link img {
  width: min(100%, 170px);
  max-height: 54px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.app-topbar {
  position: relative;
  top: auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.78rem;
  align-items: center;
  padding: 0.72rem clamp(0.85rem, 1.8vw, 1.5rem);
  border-bottom: 1px solid var(--product-line);
  background: var(--product-panel);
  box-shadow: none;
}

.topbar-menu,
.topbar-action,
.topbar-user {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  min-height: 38px;
  padding: 0.42rem 0.68rem;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  color: var(--product-ink);
  background: var(--product-panel);
  text-decoration: none;
  box-shadow: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.topbar-menu {
  display: none;
}

.topbar-menu-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.topbar-menu-burger {
  color: var(--product-accent);
  font-size: 1rem;
  line-height: 1;
}

.topbar-menu-logo-wide {
  height: 28px;
  max-width: 126px;
}

.topbar-menu-logo-mark {
  display: none;
  height: 30px;
  max-width: 30px;
}

.topbar-action.primary,
.topbar-action:hover,
.topbar-user:hover {
  border-color: var(--product-accent);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-md);
  transform: translateY(-1px);
}

.topbar-action.primary {
  color: #fff !important;
  border-color: var(--product-accent);
  background: var(--product-accent);
}

.topbar-action.primary:hover {
  color: #fff !important;
  background: var(--product-accent-hover);
}

.topbar-context {
  min-width: 0;
}

.topbar-path {
  display: block;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.08rem, 1.6vw, 1.42rem);
  font-weight: 900;
  letter-spacing: 0;
  text-align: left;
  margin-left: 8px;
}

.topbar-actions {
  display: flex;
  gap: 0.42rem;
  align-items: center;
  justify-content: flex-end;
}

.accessibility-controls {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  padding: 0.2rem;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.accessibility-btn {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 34px;
  padding: 0.34rem 0.58rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--product-ink);
  background: transparent;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.accessibility-btn:hover,
.accessibility-btn:focus-visible,
.accessibility-btn.is-active {
  border-color: rgba(8, 145, 178, 0.25);
  color: var(--product-accent);
  background: var(--product-accent-light);
}

.accessibility-btn[data-font-step="large"] span::after {
  content: " 1";
}

.accessibility-btn[data-font-step="xlarge"] span::after {
  content: " 2";
}

.topbar-institute-logo {
  flex: 0 0 auto;
  min-height: 46px;
  max-width: 214px;
  padding: 0.38rem 0.68rem;
  border-radius: var(--product-radius-md);
  background: var(--product-panel);
}

.topbar-institute-logo img {
  width: auto;
  max-width: 176px;
  max-height: 34px;
}

.ui-language-switch {
  position: relative;
  display: inline-flex;
  gap: 0.34rem;
  align-items: center;
  min-height: 38px;
  padding: 0.3rem 0.45rem 0.3rem 0.62rem;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  color: var(--product-ink);
  background: var(--product-panel);
  box-shadow: none;
  margin-bottom: 0rem;
}

.ui-language-switch > i {
  color: var(--product-accent);
}

.ui-language-button {
  display: inline-flex;
  gap: 0.34rem;
  align-items: center;
  justify-content: space-between;
  min-height: 30px;
  min-width: 6.6rem;
  max-width: 8.8rem;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  font-weight: 800;
  outline: 0;
  cursor: pointer;
}

.ui-language-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ui-language-button .fa-chevron-down {
  flex: 0 0 auto;
  color: var(--product-muted);
  font-size: 0.68rem;
}

.ui-language-menu {
  position: absolute;
  top: calc(100% + 0.48rem);
  right: 0;
  z-index: 60;
  width: min(18rem, calc(100vw - 1.5rem));
  padding: 0.42rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-lg);
}

.ui-language-group + .ui-language-group {
  margin-top: 0.42rem;
  padding-top: 0.42rem;
  border-top: 1px solid var(--product-line);
}

.ui-language-group-label {
  padding: 0.2rem 0.46rem 0.34rem;
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.ui-language-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0.38rem 0.46rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--product-ink);
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
}

.ui-language-menu button:hover,
.ui-language-menu button:focus-visible,
.ui-language-menu button.is-active {
  border-color: rgba(8, 145, 178, 0.25);
  color: var(--product-accent);
  background: var(--product-accent-light);
  outline: 0;
}

.ui-language-menu button.is-active::after {
  content: "\f00c";
  margin-left: auto;
  font-family: "Font Awesome 7 Free";
  font-size: 0.76rem;
  font-weight: 900;
}

@media (prefers-reduced-motion: reduce) {
  .skip-link,
  .app-nav-link,
  .app-nav-link::before,
  .nav-icon,
  .topbar-menu,
  .topbar-action,
  .topbar-user,
  .brand-institute-logo,
  .brand-tradutur-logo,
  .topbar-institute-logo,
  .footer-institute-logo,
  .footer-partner-logo {
    transition-duration: 0.01ms !important;
  }

  .app-nav-link:hover,
  .topbar-action:hover,
  .topbar-user:hover {
    transform: none;
  }
}

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1800;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
}

body.product-shell .app-content,
body.product-shell .content {
  width: 100%;
  max-width: none;
  padding: 0 !important;
}

.system-notice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  margin: 1rem clamp(1rem, 2.3vw, 2rem) 0;
  padding: 0.95rem 1rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.system-notice i {
  color: var(--product-accent);
  font-size: 1.15rem;
}

.system-notice.notification-info {
  color: #083344;
  border-color: rgba(8, 145, 178, 0.32);
  background: #ecfeff;
}

.system-notice.notification-success {
  color: #052e16;
  border-color: rgba(22, 163, 74, 0.34);
  background: #dcfce7;
}

.system-notice.notification-warning {
  color: #422006;
  border-color: rgba(217, 119, 6, 0.4);
  background: #fef3c7;
}

.system-notice.notification-danger {
  color: #450a0a;
  border-color: rgba(220, 38, 38, 0.38);
  background: #fee2e2;
}

.system-notice.notification-info i {
  color: #0e7490;
}

.system-notice.notification-success i {
  color: #15803d;
}

.system-notice.notification-warning i {
  color: #b45309;
}

.system-notice.notification-danger i {
  color: #b91c1c;
}

.system-notice button {
  border: 0;
  background: transparent;
  color: var(--product-muted);
}

body.product-shell .btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--product-accent);
  --bs-btn-border-color: var(--product-accent);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--product-accent-hover);
  --bs-btn-hover-border-color: var(--product-accent-hover);
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #155e75;
  --bs-btn-active-border-color: #155e75;
  --bs-btn-disabled-color: rgba(255, 255, 255, 0.72);
  --bs-btn-disabled-bg: #9ca3af;
  --bs-btn-disabled-border-color: #9ca3af;
  color: #fff !important;
  border-color: var(--product-accent) !important;
  background: var(--product-accent) !important;
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.18);
}

body.product-shell .btn-primary:hover,
body.product-shell .btn-primary:focus-visible {
  color: #fff !important;
  border-color: var(--product-accent-hover) !important;
  background: var(--product-accent-hover) !important;
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.22);
}

body.product-shell .btn-primary:active,
body.product-shell .btn-primary.active {
  color: #fff !important;
  border-color: #155e75 !important;
  background: #155e75 !important;
  box-shadow: 0 6px 14px rgba(8, 145, 178, 0.18);
}

body.product-shell .btn-primary:disabled,
body.product-shell .btn-primary.disabled {
  color: rgba(255, 255, 255, 0.72) !important;
  border-color: #9ca3af !important;
  background: #9ca3af !important;
  box-shadow: none;
}

.app-footer {
  display: grid !important;
  grid-template-columns: minmax(260px, 0.9fr) minmax(560px, 1.6fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: stretch;
  width: 100%;
  margin-top: clamp(1.2rem, 2.4vw, 2rem);
  padding: clamp(1.4rem, 3vw, 2.35rem) clamp(1rem, 2.3vw, 2rem);
  border-top: 1px solid var(--product-line);
  color: var(--product-muted);
  font-size: 0.82rem;
  background: var(--product-bg-2);
}

.footer-brand-panel {
  align-content: start;
  display: grid;
  gap: 0.72rem;
  max-width: 520px;
  min-width: 0;
}

.footer-brand-panel strong {
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.footer-brand-panel p {
  max-width: 36rem;
  margin: 0;
  color: var(--product-muted);
  line-height: 1.6;
}

.footer-partners,
.footer-bottomline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: center;
}

.footer-partners {
  color: var(--product-ink);
  font-weight: 850;
  line-height: 1.35;
}

.footer-partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.footer-partner-logo {
  flex: 0 1 236px;
  min-height: 68px;
  padding: 0.7rem 0.85rem;
  border-radius: var(--product-radius-md);
  background: var(--product-panel);
}

.footer-partner-logo img {
  max-height: 44px;
}

.footer-university-logo img {
  max-height: 38px;
}

.footer-link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(8.5rem, 1fr));
  gap: clamp(0.9rem, 2vw, 1.6rem);
  justify-self: stretch;
  min-width: 0;
}

.footer-link-group {
  display: grid;
  align-content: start;
  gap: 0.42rem;
  min-width: 0;
}

.footer-link-group h2 {
  margin: 0 0 0.28rem;
  color: var(--product-ink);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  text-align: left;
}

.footer-link-group a,
.footer-link-group button {
  width: fit-content;
  min-height: 1.65rem;
  padding: 0.12rem 0.26rem;
  border: 0;
  border-radius: 8px;
  color: var(--product-muted);
  background: transparent;
  font: inherit;
  line-height: 1.45;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.footer-link-group a:hover,
.footer-link-group button:hover {
  color: var(--product-accent);
  background: var(--product-accent-light);
  text-decoration: none;
}

.footer-bottomline {
  grid-column: 1 / -1;
  width: 100%;
  justify-content: space-between;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--product-line);
  font-size: 0.76rem;
}

.app-modal {
  border-radius: var(--product-radius-lg);
  overflow: hidden;
}

.feedback-text-card {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-bg-2);
}

.feedback-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.translator-page {
  width: min(100%, 1720px);
  margin: 0 auto;
  padding: clamp(1rem, 2.2vw, 2rem);
}

.translator-command-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border-radius: var(--product-radius-lg);
  background: var(--product-panel);
}

.translator-command-panel h1 {
  max-width: 820px;
  margin: 0.18rem 0 0.4rem;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.85rem, 3.8vw, 3.55rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.02;
}

.translator-command-panel h2 {
  max-width: 780px;
  margin: 0.12rem 0 0.32rem;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.translator-command-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--product-muted);
  font-size: clamp(0.96rem, 1.2vw, 1.05rem);
}

.command-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.command-metrics span,
.shortcut-pill {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  padding: 0.52rem 0.72rem;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  color: var(--product-muted);
  background: var(--product-bg-2);
  font-size: 0.82rem;
  font-weight: 750;
}

.translator-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 1rem;
  align-items: start;
  min-height: auto !important;
  margin: 0;
}

.translator-main-panel {
  min-width: 0;
  padding: clamp(0.85rem, 1.4vw, 1.1rem);
  border-radius: var(--product-radius-lg);
}

.translator {
  display: grid !important;
  gap: 0.85rem;
  width: 100%;
  max-width: none !important;
  min-height: 0 !important;
}

.translator-languages,
.translator > .language-selector-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: end;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.language-control {
  min-width: 0;
}

.translator-label {
  margin: 0 0 0.32rem;
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

select.language {
  width: 100%;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  color: var(--product-ink);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
  transition: all 0.2s ease;
}

button.switch {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 !important;
  border: 1px solid var(--product-accent);
  border-radius: var(--product-radius-md);
  color: var(--product-accent);
  background: var(--product-accent-light);
  transition: all 0.2s ease;
  box-shadow: none !important;
}

button.switch:disabled {
  opacity: 0.55;
}

.translator-container.coretur-container {
  margin: 0 !important;
  border: 1px solid var(--product-line) !important;
  border-radius: var(--product-radius-lg) !important;
  overflow: hidden;
  background: var(--product-panel);
  box-shadow: none !important;
}

.translator-container.coretur-container form,
#translate-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: 100%;
  min-height: 0 !important;
  height: auto !important;
}

.translator-container.coretur-container .translator-left,
.translator-container.coretur-container .translator-right,
.translator-left,
.translator-right {
  display: flex !important;
  flex-direction: column;
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
  min-height: 0 !important;
  padding: clamp(0.85rem, 1.4vw, 1.15rem) !important;
  text-align: left !important;
  float: none !important;
  position: relative;
}

.translator-left {
  border-right: 1px solid var(--product-line);
}

.translator-panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.65rem !important;
}

.translator-panel-heading span {
  color: var(--product-ink);
  font-weight: 800;
}

.translator-panel-heading small {
  display: inline !important;
  color: var(--product-muted);
  font-size: 0.78rem;
}

#translate-form .source-text,
#translate-form .target-text,
.tagged-text {
  flex: 0 1 auto !important;
  width: 100%;
  min-height: 260px !important;
  height: clamp(300px, 42dvh, 500px) !important;
  max-height: 520px !important;
  padding: clamp(0.95rem, 1.4vw, 1.2rem) !important;
  overflow: auto !important;
  border: 1px solid var(--product-line) !important;
  border-radius: var(--product-radius-md) !important;
  color: var(--product-ink) !important;
  background: var(--product-panel) !important;
  box-shadow: var(--product-shadow-sm) !important;
  font-family: "Tradutur Sans", "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(1.04rem, 1.2vw, 1.24rem) !important;
  line-height: 1.7 !important;
  text-align: left;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  transition: all 0.2s ease;
}

#translate-form .target-text,
#target-text {
  background: var(--product-bg) !important;
}

#translate-form .source-text:focus,
#translate-form .target-text:focus,
select.language:focus {
  outline: none;
  border-color: var(--product-accent) !important;
  box-shadow: 0 0 0 3px var(--product-focus) !important;
}

#translate-form .source-text:empty::before {
  content: attr(placeholder);
  color: var(--product-soft);
}

.editor-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
  justify-content: space-between;
  min-height: 2.25rem;
  margin-top: 0.55rem;
}

.char-counter {
  margin: 0 !important;
  color: var(--product-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.char-counter.warning {
  color: var(--product-amber);
}

.char-counter.danger,
.char-limit-warning {
  color: var(--product-danger);
}

.char-limit-warning {
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 750;
}

#copy-translation {
  top: 4.15rem !important;
  right: 1.7rem !important;
  width: 40px;
  height: 40px;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  color: var(--product-accent);
  background: rgba(255, 253, 248, 0.94);
  box-shadow: var(--product-shadow-sm);
}

.translator-actionbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem;
  border: 1px solid var(--product-line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.72);
}

.keyboard,
.translate-buttons {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  padding: 0 !important;
}

.translate-buttons {
  justify-content: flex-end;
  margin-left: auto;
}

button.keyboard-button,
div.keyboard > button.keyboard-button,
button.reset-button {
  min-height: 40px;
  margin: 0 !important;
  padding: 0 0.78rem;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  color: var(--product-ink);
  background: #fffdf8;
  box-shadow: none;
  font-weight: 750;
}

button.keyboard-button:hover,
button.reset-button:hover {
  border-color: rgba(20, 108, 95, 0.28);
  background: rgba(20, 108, 95, 0.07);
}

button.reset-button {
  color: var(--product-danger);
}

#translate,
.translation-stop-button {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  background: var(--product-accent);
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.18);
  font-weight: 800;
}

.translation-stop-button {
  color: var(--product-danger) !important;
  background: rgba(220, 38, 38, 0.1) !important;
  border: 1px solid rgba(220, 38, 38, 0.35) !important;
  box-shadow: none;
}

.translation-stop-button:hover,
.translation-stop-button:focus-visible {
  color: #fff !important;
  background: var(--product-danger) !important;
  border-color: var(--product-danger) !important;
}

#translate:hover:not(:disabled),
#translate:focus-visible:not(:disabled) {
  color: #fff;
  background: var(--product-accent-hover);
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.22);
}

#translate:active:not(:disabled) {
  background: #155e75;
  box-shadow: 0 6px 14px rgba(8, 145, 178, 0.18);
}

#translate:disabled {
  color: var(--product-muted);
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--product-line);
  box-shadow: none;
}

.translation-stop-button {
  min-height: 44px;
  border-radius: 14px !important;
  font-weight: 850;
}

.store {
  min-height: 44px;
  border-radius: 14px !important;
  font-weight: 750;
}

.translator-feedback-banner,
.toast-notification,
#translation-error-container {
  border-radius: 18px;
}

.translator-page #translation-error-container {
  position: fixed;
  top: calc(1rem + env(safe-area-inset-top));
  right: clamp(1rem, 2.4vw, 1.5rem);
  z-index: 1850;
  width: min(420px, calc(100vw - 2rem));
  margin: 0;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(239, 68, 68, 0.28);
  border-left: 5px solid var(--product-danger);
  color: #7f1d1d;
  background: rgba(254, 242, 242, 0.98);
  box-shadow: 0 18px 36px rgba(127, 29, 29, 0.18);
  backdrop-filter: blur(16px);
}

.translator-page #translation-error-container.show {
  display: block !important;
}

.translator-page #translation-error-container .d-flex {
  gap: 0.75rem;
}

.translator-page #translation-error-container .fas {
  flex: 0 0 auto;
  margin-right: 0 !important;
  color: var(--product-danger);
}

.translator-page #translation-error-container strong,
.translator-page #translation-error {
  color: #7f1d1d;
}

.translator-page #translation-error {
  max-height: min(38dvh, 260px);
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.45;
}

.translator-page #translation-error-container .btn-close {
  flex: 0 0 auto;
  margin-left: 0.6rem;
  opacity: 0.7;
}

.translator-feedback-banner {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  max-width: none;
  margin: 0.35rem 0 0;
  padding: clamp(0.95rem, 1.7vw, 1.15rem);
  border: 1px solid rgba(217, 119, 6, 0.24);
  color: var(--product-ink);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(236, 254, 255, 0.9));
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.feedback-banner-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 16px;
  color: #b45309;
  background: #fef3c7;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.62);
}

.feedback-banner-icon i {
  font-size: 1.35rem;
}

.feedback-banner-copy strong,
.feedback-banner-copy span {
  display: block;
}

.feedback-banner-copy strong {
  color: var(--product-ink);
  font-weight: 900;
  letter-spacing: 0;
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.feedback-banner-copy span {
  color: var(--product-muted);
  line-height: 1.4;
}

.feedback-banner-copy {
  min-width: 0;
}

.feedback-banner-actions {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.feedback-banner-actions .btn {
  min-height: 42px;
  border-radius: 999px;
  font-weight: 850;
}

.feedback-banner-actions .btn span {
  display: inline;
  color: inherit;
}

.feedback-banner-actions .btn-close {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  background-size: 0.78rem;
  opacity: 0.82;
}

.fragmentshot-panel {
  display: grid;
  gap: 0.9rem;
  padding: clamp(0.9rem, 1.35vw, 1.05rem);
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.context-fragmentshot-panel {
  padding: clamp(1rem, 1.8vw, 1.35rem);
  border-color: var(--product-line-strong);
  background: var(--product-panel);
}

.fragmentshot-header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.fragmentshot-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.fragmentshot-alpha-label {
  display: inline-flex;
  align-items: center;
  min-height: 1.4rem;
  border: 1px solid rgba(230, 168, 74, 0.45);
  border-radius: 999px;
  padding: 0.12rem 0.52rem;
  color: #7c4a03;
  background: rgba(230, 168, 74, 0.16);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.fragmentshot-header h2 {
  margin: 0.15rem 0 0.24rem;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.18rem, 1.65vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0;
}

.fragmentshot-header p {
  max-width: 640px;
  margin: 0;
  color: var(--product-muted);
  font-size: 0.92rem;
}

.fragmentshot-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

.fragmentshot-refresh,
.fragmentshot-expand {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.45rem;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 0.8rem;
  border: 1px solid var(--product-accent);
  border-radius: 999px;
  color: var(--product-accent);
  background: var(--product-accent-light);
  font-size: 0.84rem;
  font-weight: 800;
  transition: all 0.2s ease;
}

.fragmentshot-refresh:hover:not(:disabled),
.fragmentshot-expand:hover:not(:disabled) {
  background: var(--product-bg);
  color: var(--product-accent);
}

.fragmentshot-refresh:disabled,
.fragmentshot-expand:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.fragmentshot-results {
  display: grid;
  gap: 0.6rem;
  max-height: 420px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.context-fragmentshot-panel .fragmentshot-results {
  max-height: 520px;
}

.fragmentshot-panel-expanded {
  position: relative;
  z-index: 8;
}

.fragmentshot-panel-expanded .fragmentshot-results {
  max-height: min(78dvh, 920px);
}

.fragmentshot-empty,
.fragmentshot-loading {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  min-height: 72px;
  padding: 0.85rem 1rem;
  border: 1px dashed rgba(20, 108, 95, 0.24);
  border-radius: 18px;
  color: var(--product-muted);
  background: rgba(255, 255, 255, 0.54);
  font-weight: 700;
}

.fragmentshot-loading {
  align-items: flex-start;
  flex-direction: column;
}

.fragmentshot-loading .loader {
  width: 24px;
  height: 24px;
}

.fragmentshot-loading small {
  display: block;
  max-width: 920px;
  color: var(--product-muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.45;
}

.fragmentshot-empty i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
}

.fragmentshot-empty-soft {
  border-style: solid;
  background: var(--product-bg-2);
}

.fragmentshot-item {
  display: grid;
  gap: 0.78rem;
  padding: clamp(0.85rem, 1.35vw, 1.05rem);
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-bg-2);
  box-shadow: var(--product-shadow-sm);
}

.fragmentshot-item-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.7rem;
  align-items: start;
}

.fragmentshot-index {
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  color: var(--product-accent);
  background: var(--product-accent-light);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.fragmentshot-item-head strong {
  color: var(--product-ink);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
  line-height: 1.3;
}

.fragmentshot-fragment {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.fragmentshot-fragment span,
.fragmentshot-example-label,
.fragmentshot-text-block > span,
.fragmentshot-query-card span {
  color: var(--product-muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fragmentshot-query-card {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-bg-2);
}

.fragmentshot-query-card p {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  font-weight: 800;
  line-height: 1.45;
}

.fragmentshot-example-list {
  display: grid;
  gap: 0.62rem;
}

.fragmentshot-example {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem;
  border: 1px solid var(--product-line);
  border-left: 4px solid var(--product-accent);
  border-radius: var(--product-radius-md);
  background: var(--product-bg-2);
}

.fragmentshot-example.muted {
  border-left-color: var(--product-line-strong);
}

.fragmentshot-source,
.fragmentshot-target {
  display: grid;
  gap: 0.38rem;
  margin: 0;
  color: var(--product-ink);
  line-height: 1.55;
}

.fragmentshot-text-block {
  display: grid;
  gap: 0.38rem;
}

.fragmentshot-sentence-list {
  display: grid;
  gap: 0.32rem;
}

.fragmentshot-sentence {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.45rem;
  align-items: start;
  margin: 0;
  padding: 0.48rem 0.56rem;
  border: 1px solid rgba(20, 108, 95, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
}

.fragmentshot-sentence-number {
  display: inline-grid;
  place-items: center;
  min-width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  color: var(--product-accent);
  background: var(--product-accent-light);
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
}

.fragmentshot-sentence-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.fragmentshot-source {
  font-weight: 650;
}

.fragmentshot-target {
  color: var(--product-muted);
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-example,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-query-card,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-sentence {
  border-color: rgba(148, 163, 184, 0.22);
  background: #111827;
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-source,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-source *,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-target,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-target *,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-query-card p {
  color: #dbeafe !important;
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-source {
  font-weight: 650;
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-text-block > span,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-example-label,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-query-card span {
  color: #93c5fd !important;
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-alpha-label {
  border-color: rgba(245, 158, 11, 0.48);
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-sentence-number {
  color: #dbeafe !important;
  background: rgba(59, 130, 246, 0.24);
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-mark {
  color: #f8fafc !important;
  background: rgba(59, 130, 246, 0.36);
}

.fragmentshot-mark {
  padding: 0.08rem 0.2rem;
  border-radius: 0.38rem;
  color: #163e35;
  background: rgba(230, 168, 74, 0.32);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.fragmentshot-modal {
  --bs-modal-bg: transparent;
  --bs-modal-margin: 0;
  --bs-modal-width: 100vw;
  padding: 0 !important;
}

.fragmentshot-modal .modal-dialog {
  width: 100vw !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  margin: 0 !important;
}

.fragmentshot-modal-content {
  height: 100dvh;
  max-height: 100dvh !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--product-panel);
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
}

.fragmentshot-modal-header {
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--product-line);
  background: rgba(255, 253, 248, 0.96);
}

.fragmentshot-modal-header h2 {
  margin: 0.16rem 0 0.2rem;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.25rem, 2vw, 1.8rem);
  font-weight: 900;
  line-height: 1.08;
}

.fragmentshot-modal-status {
  margin: 0;
  color: var(--product-muted);
  font-size: 0.9rem;
  font-weight: 650;
}

.fragmentshot-modal-body {
  min-height: 0;
  padding: clamp(0.75rem, 1.8vw, 1.2rem);
  background: var(--product-bg);
}

.fragmentshot-modal-results {
  max-height: none;
  min-height: 100%;
  overflow: visible;
}

.fragmentshot-modal-results .fragmentshot-item {
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  align-items: start;
}

.fragmentshot-modal-results .fragmentshot-query-card,
.fragmentshot-modal-results .fragmentshot-item,
.fragmentshot-modal-results .fragmentshot-example,
.fragmentshot-modal-results .fragmentshot-sentence {
  border-radius: 10px;
}

.fragmentshot-modal-results .fragmentshot-query-card p {
  display: block;
  overflow: visible;
  font-size: clamp(0.98rem, 1.1vw, 1.12rem);
  -webkit-line-clamp: unset;
}

body.product-shell[data-accessibility-theme="dark"] .fragmentshot-modal-content,
body.product-shell[data-accessibility-theme="dark"] .fragmentshot-modal-header {
  border-color: var(--product-line);
  background: var(--product-panel);
}

.translator-side-panel {
  display: grid;
  gap: 1rem;
}

.translation-context-panel {
  position: sticky;
  top: 1rem;
  align-self: start;
  gap: 0.85rem;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding-right: 0.15rem;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.context-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  padding: 0.3rem;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--product-shadow-sm);
}

.context-tab {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 0 0.58rem;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--product-muted);
  background: transparent;
  font-size: 0.84rem;
  font-weight: 850;
}

.context-tab i,
.context-tab span {
  min-width: 0;
}

.context-tab span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-tab.is-active {
  color: var(--product-accent);
  border-color: rgba(20, 108, 95, 0.18);
  background: var(--product-panel);
  box-shadow: 0 8px 18px rgba(24, 32, 21, 0.08);
}

.context-tab:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.context-tab-panel[hidden] {
  display: none !important;
}

.context-sidebar-card {
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.88);
  box-shadow: var(--product-shadow-sm);
}

.context-card-header h2 {
  margin: 0.18rem 0 0.45rem;
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.25rem, 1.8vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.context-helper {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

.context-card-header {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  justify-content: space-between;
}

.context-card-header > i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
}

.context-card-header h2 {
  color: var(--product-ink);
}

.context-helper {
  color: var(--product-muted);
}

.dictionary-context-card {
  display: grid;
  gap: 0.85rem;
}

.dictionary-header-actions {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
}

.dictionary-panel-button {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--product-line);
  border-radius: 12px;
  color: var(--product-accent);
  background: var(--product-panel);
  box-shadow: none;
  text-decoration: none;
}

.dictionary-panel-button:hover,
.dictionary-panel-button:focus-visible {
  color: var(--product-accent-hover);
  border-color: rgba(8, 145, 178, 0.32);
  background: var(--product-accent-light);
  text-decoration: none;
}

.translation-context-panel #dictionary-container {
  max-width: none;
  margin: 0 !important;
}

.dictionary-embed-toolbar {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.68rem 0.78rem;
  border: 1px solid rgba(20, 108, 95, 0.13);
  border-radius: 16px;
  color: var(--product-muted);
  background: rgba(255, 255, 255, 0.58);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.35;
}

.dictionary-embed-toolbar a {
  flex: 0 0 auto;
  color: var(--product-accent);
  font-weight: 900;
  text-decoration: none;
}

.dictionary-frame-status {
  margin: -0.25rem 0 0;
  color: var(--product-muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
}

.dictionary-frame-wrap {
  min-height: 590px;
  overflow: hidden;
  border: 1px solid rgba(43, 53, 35, 0.11);
  border-radius: 20px;
  background: #f3f6fa;
}

.dictionary-frame-wrap iframe {
  display: block;
  width: 100%;
  height: 590px;
  border: 0;
  background: #f3f6fa;
}

.translator-workspace.dictionary-minimized {
  grid-template-columns: minmax(0, 1fr) 64px;
}

.translator-workspace.dictionary-minimized .translation-context-panel {
  overflow: visible;
  padding-right: 0;
}

.translator-workspace.dictionary-minimized .dictionary-context-card {
  align-content: start;
  justify-items: center;
  gap: 0.55rem;
  padding: 0.6rem;
  border-radius: 16px;
}

.translator-workspace.dictionary-minimized .context-card-header {
  display: grid;
  gap: 0.48rem;
  justify-items: center;
}

.translator-workspace.dictionary-minimized .context-card-header > div:first-child,
.translator-workspace.dictionary-minimized .context-helper,
.translator-workspace.dictionary-minimized .dictionary-frame-status,
.translator-workspace.dictionary-minimized .dictionary-frame-wrap {
  display: none !important;
}

.translator-workspace.dictionary-minimized .dictionary-header-actions {
  display: grid;
  gap: 0.42rem;
}

.translator-workspace.dictionary-minimized .dictionary-panel-button {
  width: 42px;
  height: 42px;
}

.translator-feature-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.6fr);
  gap: clamp(1rem, 2vw, 1.3rem);
  max-width: 1120px;
  margin: 1rem auto 0;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.translator-feature-copy h2 {
  margin: 0.18rem 0 0.55rem;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.45rem, 2.4vw, 2.45rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
}

.translator-feature-copy p {
  margin: 0;
  color: var(--product-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.translator-feature-metrics {
  justify-content: flex-start;
  margin-top: 1rem;
}

.translator-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

.translator-feature-list article {
  display: grid;
  gap: 0.42rem;
  align-content: start;
  min-height: 100%;
  padding: 0.88rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-bg-2);
}

.translator-feature-list i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
}

.translator-feature-list h3 {
  margin: 0;
  color: var(--product-ink);
  font-size: 0.98rem;
  font-weight: 900;
}

.translator-feature-list p {
  margin: 0;
  color: var(--product-muted);
  font-size: 0.88rem;
  line-height: 1.52;
}

.translator-partners {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(1.5rem, 2.6vw, 2.4rem);
  margin-top: clamp(0.4rem, 1.4vw, 1rem);
  padding: clamp(2.2rem, 4.8vw, 4.2rem) clamp(0.9rem, 3vw, 2.4rem) clamp(1.6rem, 3vw, 2.8rem);
  border-top: 1px solid var(--product-line);
  border-bottom: 1px solid var(--product-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 250, 252, 0.94) 46%, rgba(255, 255, 255, 0.9)),
    var(--product-panel);
  box-shadow: none;
}

.translator-partners::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(100%, 980px);
  height: 3px;
  background: linear-gradient(90deg, transparent, #51b6e7, #fff, #53da55, transparent);
  opacity: 0.78;
  transform: translateX(-50%);
}

.partners-header {
  display: grid;
  gap: clamp(0.9rem, 1.8vw, 1.35rem);
  justify-items: center;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.partners-header .tool-eyebrow {
  color: var(--product-accent-hover);
  letter-spacing: 0.12em;
}

.partners-header h2 {
  max-width: 900px;
  margin: 0.2rem auto 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  text-wrap: balance;
}

.partners-copy {
  display: grid;
  gap: clamp(0.82rem, 1.4vw, 1.1rem);
  justify-items: center;
  width: min(100%, 1040px);
  padding: clamp(1.15rem, 2vw, 1.7rem) 0 0;
  border-top: 1px solid color-mix(in srgb, var(--product-line-strong) 70%, transparent);
  text-align: left;
}

.partners-header p,
.partners-copy p {
  width: min(100%, 940px);
  margin: 0;
  color: var(--product-muted);
  font-size: clamp(0.95rem, 1vw, 1.04rem);
  line-height: 1.72;
}

.partners-copy p:first-child {
  color: color-mix(in srgb, var(--product-ink) 82%, var(--product-muted));
  font-size: clamp(1.04rem, 1.35vw, 1.18rem);
  font-weight: 650;
  line-height: 1.62;
  text-align: center;
  text-wrap: balance;
}

.partners-copy p:last-child {
  margin-top: clamp(0.35rem, 1vw, 0.7rem);
  color: var(--product-ink);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}

.partners-logo-grid {
  --partners-gap: clamp(0.45rem, 1.2vw, 0.9rem);
  display: flex;
  flex-wrap: wrap;
  gap: var(--partners-gap);
  align-items: stretch;
  justify-content: center;
  max-width: none;
  width: 100%;
  margin: clamp(0.2rem, 1vw, 0.6rem) auto 0;
  padding-top: clamp(0.5rem, 1.3vw, 1rem);
}

.partner-logo-card {
  --partner-logo-width: calc((100% - var(--partners-gap) - var(--partners-gap)) / 3);
  --partner-logo-box-width: clamp(150px, 15vw, 230px);
  --partner-logo-box-height: clamp(48px, 5vw, 72px);
  --partner-accent-local: var(--product-accent);
  position: relative;
  display: grid;
  flex: 0 1 var(--partner-logo-width);
  align-content: center;
  justify-items: center;
  max-width: var(--partner-logo-width);
  min-height: clamp(82px, 7vw, 108px);
  min-width: 0;
  overflow: hidden;
  padding: 0.35rem 0.2rem 1.25rem;
  color: var(--product-ink);
  background: transparent;
  cursor: default;
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.partner-logo-card:nth-child(1) {
  --partner-accent-local: #0f766e;
}

.partner-logo-card:nth-child(2) {
  --partner-accent-local: #b45309;
}

.partner-logo-card:nth-child(3) {
  --partner-accent-local: #2563eb;
}

.partner-logo-card:nth-child(4) {
  --partner-accent-local: #be123c;
}

.partner-logo-card:nth-child(5) {
  --partner-accent-local: #7c3aed;
}

.partner-logo-card:nth-child(6) {
  --partner-accent-local: #15803d;
}

.partner-logo-card:hover,
.partner-logo-card:focus-visible {
  color: var(--product-ink);
  transform: translateY(-2px);
}

.partner-logo-frame {
  display: grid;
  place-items: center;
  width: min(100%, var(--partner-logo-box-width));
  min-height: var(--partner-logo-box-height);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.partner-logo-card:hover .partner-logo-frame,
.partner-logo-card:focus-visible .partner-logo-frame {
  transform: translateY(-0.52rem);
}

.partner-logo-frame img,
.partner-logo-card img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: var(--partner-logo-box-height);
  height: auto;
  object-fit: contain;
  filter: grayscale(1) saturate(0.08) opacity(0.58);
  mix-blend-mode: multiply;
  transition: filter 0.18s ease, opacity 0.18s ease, transform 0.18s ease;
}

.partner-logo-card:hover img,
.partner-logo-card:focus-visible img {
  filter: none;
  opacity: 1;
}

.partner-logo-placeholder {
  display: grid;
  place-items: center;
  width: min(100%, var(--partner-logo-box-width));
  min-height: var(--partner-logo-box-height);
  padding: 0.25rem 0.7rem;
  color: color-mix(in srgb, var(--product-muted) 78%, transparent);
  background: transparent;
  font-size: clamp(0.76rem, 1.1vw, 0.95rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  transition: color 0.18s ease, transform 0.18s ease;
}

.partner-logo-card:hover .partner-logo-placeholder,
.partner-logo-card:focus-visible .partner-logo-placeholder {
  color: var(--partner-accent-local);
  transform: scale(1.03);
}

.partner-logo-name {
  position: absolute;
  right: 0.75rem;
  bottom: 0.72rem;
  left: 0.75rem;
  display: -webkit-box;
  overflow: hidden;
  color: var(--product-ink);
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  transform: translateY(0.4rem);
  transition: opacity 0.18s ease, transform 0.18s ease;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.partner-logo-card:hover .partner-logo-name,
.partner-logo-card:focus-visible .partner-logo-name {
  opacity: 1;
  transform: translateY(0);
}

body.product-shell[data-accessibility-theme="dark"] .partner-logo-card img {
  mix-blend-mode: normal;
}

body.product-shell[data-accessibility-theme="dark"] .partner-logo-placeholder {
  color: rgba(209, 213, 219, 0.78);
}

.context-fragmentshot-panel {
  box-shadow: var(--product-shadow-sm);
}

.translation-context-panel .context-fragmentshot-panel {
  gap: 0.62rem;
  padding: 0.72rem;
  border-color: var(--product-line);
  border-radius: 12px;
  box-shadow: var(--product-shadow-sm);
}

.translation-context-panel .fragmentshot-header {
  display: grid;
  gap: 0.56rem;
}

.translation-context-panel .fragmentshot-header h2 {
  margin: 0.08rem 0 0.15rem;
  font-size: 1.05rem;
}

.translation-context-panel .fragmentshot-header p {
  font-size: 0.8rem;
  line-height: 1.35;
}

.translation-context-panel .fragmentshot-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
}

.translation-context-panel .fragmentshot-refresh,
.translation-context-panel .fragmentshot-expand {
  min-height: 34px;
  padding: 0 0.52rem;
  border-radius: 8px;
  font-size: 0.76rem;
}

.translation-context-panel .fragmentshot-results {
  gap: 0.42rem;
  max-height: min(58dvh, 520px);
}

.translation-context-panel .fragmentshot-query-card,
.translation-context-panel .fragmentshot-item,
.translation-context-panel .fragmentshot-example,
.translation-context-panel .fragmentshot-sentence {
  border-radius: 8px;
}

.translation-context-panel .fragmentshot-query-card {
  padding: 0.54rem 0.62rem;
}

.translation-context-panel .fragmentshot-query-card p {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.translation-context-panel .fragmentshot-item {
  gap: 0.5rem;
  padding: 0.58rem;
  box-shadow: none;
}

.translation-context-panel .fragmentshot-item-head {
  grid-template-columns: 1fr;
  gap: 0.36rem;
}

.translation-context-panel .fragmentshot-index {
  width: fit-content;
  padding: 0.22rem 0.42rem;
  font-size: 0.64rem;
}

.translation-context-panel .fragmentshot-item-head strong {
  font-size: 0.92rem;
  line-height: 1.25;
}

.translation-context-panel .fragmentshot-fragment span,
.translation-context-panel .fragmentshot-example-label,
.translation-context-panel .fragmentshot-text-block > span,
.translation-context-panel .fragmentshot-query-card span {
  font-size: 0.6rem;
  letter-spacing: 0.06em;
}

.translation-context-panel .fragmentshot-example-list,
.translation-context-panel .fragmentshot-fuzzy-list {
  display: grid;
  gap: 0.42rem;
}

.translation-context-panel .fragmentshot-example {
  gap: 0.42rem;
  padding: 0.52rem;
  border-left-width: 3px;
}

.translation-context-panel .fragmentshot-sentence-list {
  gap: 0.24rem;
}

.translation-context-panel .fragmentshot-sentence {
  gap: 0.34rem;
  padding: 0.34rem 0.42rem;
}

.translation-context-panel .fragmentshot-sentence-number {
  min-width: 1.1rem;
  height: 1.1rem;
  font-size: 0.62rem;
}

.translation-context-panel .fragmentshot-sentence-text {
  font-size: 0.82rem;
  line-height: 1.38;
}

.translation-context-panel .fragmentshot-empty,
.translation-context-panel .fragmentshot-loading {
  min-height: 58px;
  padding: 0.62rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.translation-context-panel .fragmentshot-empty i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.side-card {
  padding: 1rem;
  border-radius: var(--product-radius-lg);
}

.confidence-card {
  background: var(--product-ink);
  color: #fff;
}

.confidence-card .side-card-kicker,
.confidence-card span {
  color: rgba(255, 255, 255, 0.7);
}

.side-card h2 {
  margin: 0.2rem 0 0.9rem;
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.work-steps {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding-left: 1.15rem;
}

.work-steps li::marker {
  font-weight: 900;
}

.work-steps strong,
.work-steps span,
.side-card-row strong,
.side-card-row span {
  display: block;
}

.work-steps strong {
  color: #fff;
}

.side-card-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.72rem;
  align-items: start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--product-line);
}

.side-card-row:last-child {
  border-bottom: 0;
}

.side-card-row i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  color: var(--product-accent);
  background: var(--product-accent-light);
}

.side-card-row span {
  color: var(--product-muted);
  font-size: 0.84rem;
}

#dictionary-container,
#writing-assistant-feature,
#phrases-container,
.translator-page + .container,
.news-list-item {
  max-width: 1120px;
  margin-left: auto !important;
  margin-right: auto !important;
}

#dictionary-container .card,
#writing-assistant-feature .card,
#phrases-container .card,
.news-list-item {
  border: 1px solid var(--product-line) !important;
  border-radius: 22px !important;
  background: rgba(255, 253, 248, 0.86) !important;
  box-shadow: var(--product-shadow-sm) !important;
  overflow: hidden;
}

.writing-page {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(1rem, 2.3vw, 2rem);
}

.writing-hero,
.writing-composer-card,
.writing-side-panel,
.writing-results-panel,
.writing-about-card {
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.writing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
  padding: clamp(1.15rem, 2.6vw, 2rem);
  overflow: hidden;
  background: var(--product-panel);
}

.writing-hero h1,
.writing-card-header h2,
.writing-results-header h2,
.writing-about-card h2 {
  margin: 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.06;
}

.writing-hero h1 {
  max-width: 780px;
  margin-top: 0.2rem;
  font-size: clamp(2rem, 4vw, 4rem);
}

.writing-hero p {
  max-width: 720px;
  margin: 0.7rem 0 0;
  color: var(--product-muted);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
}

.writing-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  max-width: 320px;
}

.writing-hero-badges span {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  color: var(--product-ink);
  background: var(--product-bg-2);
  font-size: 0.8rem;
  font-weight: 800;
}

.writing-hero-badges i {
  color: var(--product-accent);
}

.writing-layout {
  display: grid;
  gap: 1rem;
  align-items: start;
}

.writing-composer-card,
.writing-results-panel,
.writing-about-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

#writing-form {
  display: grid;
  gap: 1rem;
}

.writing-card-header,
.writing-results-header,
.writing-actionbar,
.writing-result-main {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.writing-card-header h2,
.writing-results-header h2,
.writing-about-card h2 {
  font-size: clamp(1.35rem, 2.2vw, 2.15rem);
}

.writing-language-control {
  display: grid;
  gap: 0.35rem;
  min-width: min(100%, 230px);
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.writing-language-control select {
  min-height: 46px;
  border: 1px solid var(--product-line);
  border-radius: 15px;
  color: var(--product-ink);
  background-color: #fffdf8;
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.writing-editor-shell {
  display: grid;
  gap: 0.6rem;
}

.writing-input {
  min-height: clamp(220px, 34dvh, 420px);
  padding: clamp(1rem, 1.6vw, 1.25rem);
  border: 1px solid rgba(43, 53, 35, 0.14);
  border-radius: 22px;
  color: var(--product-ink);
  background:
    linear-gradient(180deg, #ffffff, #fffdf8);
  box-shadow: inset 0 1px 3px rgba(43, 53, 35, 0.04);
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
  line-height: 1.75;
  resize: vertical;
}

.writing-input:focus,
.writing-language-control select:focus,
.writing-feedback-section textarea:focus {
  border-color: rgba(20, 108, 95, 0.45);
  box-shadow: 0 0 0 4px rgba(20, 108, 95, 0.11);
  outline: 0;
}

.writing-editor-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.8rem;
  align-items: center;
  justify-content: space-between;
  color: var(--product-muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.writing-warning {
  color: var(--product-danger);
}

.writing-actionbar {
  padding: 0.78rem;
  border: 1px solid rgba(43, 53, 35, 0.11);
  border-radius: 20px;
  background: rgba(248, 244, 236, 0.66);
}

.writing-hint {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--product-muted);
  font-size: 0.86rem;
}

.writing-hint i {
  color: var(--product-amber);
}

#translate-btn {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--product-accent);
  border-radius: var(--product-radius-md);
  color: #fff;
  background: var(--product-accent);
  box-shadow: 0 8px 18px rgba(8, 145, 178, 0.18);
  font-weight: 850;
  transition: all 0.2s ease;
}

#translate-btn:hover:not(:disabled),
#translate-btn:focus-visible:not(:disabled) {
  color: #fff;
  border-color: var(--product-accent-hover);
  background: var(--product-accent-hover);
  box-shadow: 0 10px 22px rgba(8, 145, 178, 0.22);
}

#translate-btn:active:not(:disabled) {
  border-color: #155e75;
  background: #155e75;
  box-shadow: 0 6px 14px rgba(8, 145, 178, 0.18);
}

.writing-side-panel {
  display: grid;
  align-content: start;
  padding: 1rem;
  background: var(--product-ink);
}

.writing-side-panel .side-card-row {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.writing-side-panel .side-card-row strong {
  color: #fff;
}

.writing-side-panel .side-card-row span {
  color: rgba(255, 255, 255, 0.7);
}

.writing-side-panel .side-card-row i {
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.writing-results-panel {
  display: grid;
  gap: 1rem;
}

.writing-results-header {
  align-items: end;
}

.writing-results-header p {
  max-width: 440px;
  margin: 0;
  color: var(--product-muted);
  font-size: 0.92rem;
  text-align: right;
}

.writing-results-grid {
  display: grid;
  gap: 0.85rem;
}

.writing-result-card {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.writing-result-text {
  color: var(--product-ink);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  font-weight: 700;
  line-height: 1.65;
}

.writing-result-actions,
.thumbs-group {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  flex: 0 0 auto;
}

.writing-result-actions .btn,
.writing-feedback-section .btn {
  border-radius: 999px;
  font-weight: 800;
}

.writing-feedback-section {
  display: grid;
  gap: 0.55rem;
}

.writing-feedback-section .feedback-extra {
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.55rem;
  align-items: center;
}

.writing-feedback-section .feedback-extra[style*="display: block"],
.writing-feedback-section .feedback-extra[style*="display:block"] {
  display: grid !important;
}

.writing-feedback-section textarea {
  min-height: 40px;
  border-color: rgba(43, 53, 35, 0.13);
  border-radius: 14px;
  resize: vertical;
}

.writing-about-card {
  display: grid;
  gap: 1rem;
  background: var(--product-panel);
}

.writing-about-card figure {
  margin: 0;
  padding: 1rem;
  border-left: 4px solid var(--product-accent);
  border-radius: 0 var(--product-radius-md) var(--product-radius-md) 0;
  background: var(--product-accent-light);
}

.writing-about-card blockquote {
  margin: 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.1rem, 1.7vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0;
}

.writing-about-card p {
  max-width: 980px;
  margin: 0;
  color: var(--product-muted);
  font-size: 0.98rem;
  line-height: 1.75;
}

.writing-about-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.writing-about-grid article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(43, 53, 35, 0.11);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.72);
}

.writing-about-grid i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.15rem;
  border-radius: 14px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
}

.writing-about-grid strong {
  color: var(--product-ink);
}

.writing-about-grid span {
  color: var(--product-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.translator-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  width: 100%;
  max-width: none;
  margin: 0;
}

.translator-resource-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-md);
  color: var(--product-ink);
  background: var(--product-panel);
  text-decoration: none;
  transition: all 0.2s ease;
}

.translator-resource-card:hover {
  border-color: var(--product-accent);
  color: var(--product-ink);
  transform: translateY(-2px);
  box-shadow: var(--product-shadow-md);
}

.translator-resource-card strong,
.translator-resource-card small {
  display: block;
}

.translator-resource-card small {
  color: var(--product-muted);
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--product-radius-sm);
  color: var(--product-accent);
  background: var(--product-accent-light);
}

.homepage-live-info {
  display: grid;
  gap: 0.95rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(20, 108, 95, 0.16);
  border-radius: var(--product-radius-lg);
  background:
    radial-gradient(circle at top left, rgba(20, 108, 95, 0.12), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(250, 247, 239, 0.9));
  box-shadow: var(--product-shadow-sm);
  overflow: hidden;
}

.live-info-header {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.live-info-header h2 {
  margin: 0.12rem 0 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.live-info-embedded {
  margin-top: 0.35rem;
  border-color: rgba(20, 108, 95, 0.12);
  background:
    radial-gradient(circle at top left, rgba(20, 108, 95, 0.08), transparent 34%),
    rgba(20, 108, 95, 0.035);
  box-shadow: none;
}

.live-info-embedded .live-info-header h3 {
  margin: 0.08rem 0 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  font-weight: 900;
  line-height: 1.12;
}

.live-info-showcase-note {
  max-width: 760px;
  margin: 0.46rem 0 0;
  color: var(--product-muted);
  font-size: clamp(0.84rem, 1vw, 0.94rem);
  font-weight: 650;
  line-height: 1.45;
}

.live-info-embedded:not(.live-info-news-page) .live-info-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-info-embedded:not(.live-info-news-page) .live-info-card-weather {
  order: -2;
  grid-column: 1 / -1;
}

.live-info-embedded:not(.live-info-news-page) .live-info-card-weather .live-info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: none;
  overflow: visible;
}

.live-info-embedded:not(.live-info-news-page) .live-info-card-weather .live-info-card-head {
  align-items: center;
}

.live-info-embedded:not(.live-info-news-page) .live-info-card-weather .live-info-item {
  padding: 0.6rem;
}

.live-info-embedded:not(.live-info-news-page) .live-info-card-weather .live-info-item small {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-info-embedded:not(.live-info-news-page) .live-info-card-news {
  order: 1;
}

.live-info-embedded:not(.live-info-news-page) .live-info-card-traffic {
  order: 2;
}

.live-info-ai-badge {
  display: inline-flex;
  gap: 0.32rem;
  align-items: center;
  width: fit-content;
  margin-top: 0.08rem;
  padding: 0.26rem 0.48rem;
  border: 1px solid rgba(196, 123, 34, 0.16);
  border-radius: 999px;
  color: #8a5418;
  background: rgba(196, 123, 34, 0.08);
  font-size: 0.7rem;
  font-weight: 900;
}

.live-info-news-page .live-info-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
}

.live-info-news-page .live-info-card-weather {
  order: -2;
  grid-column: 1 / -1;
}

.live-info-news-page .live-info-card-weather .live-info-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  max-height: none;
  overflow: visible;
}

.live-info-news-page .live-info-card-news {
  order: 1;
}

.live-info-news-page .live-info-card-traffic {
  order: 2;
}

.live-info-news-page .live-info-list {
  max-height: none;
  overflow: visible;
}

.live-info-news-page.homepage-live-info {
  gap: 0.62rem;
  margin-top: 0.1rem;
  padding: clamp(0.72rem, 1.35vw, 0.95rem);
}

.live-info-news-page .live-info-header {
  gap: 0.68rem;
}

.live-info-news-page .live-info-grid {
  gap: 0.5rem;
}

.live-info-news-page .live-info-card {
  gap: 0.54rem;
  padding: 0.7rem;
  border-radius: 14px;
}

.live-info-news-page .live-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
}

.live-info-news-page .live-info-card-head {
  gap: 0.5rem;
}

.live-info-news-page .live-info-card-head h3 {
  font-size: 0.98rem;
}

.live-info-news-page .live-info-list {
  gap: 0.4rem;
}

.live-info-news-page .live-info-item {
  gap: 0.2rem;
  padding: 0.52rem;
  border-radius: 12px;
}

.live-info-news-page .live-info-item strong {
  font-size: 0.9rem;
}

.live-info-news-page .live-info-item small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.78rem;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.live-info-updated {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(20, 108, 95, 0.14);
  border-radius: 999px;
  color: var(--product-muted);
  background: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.live-info-ticker {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(20, 108, 95, 0.14);
  border-radius: 999px;
  background: rgba(20, 108, 95, 0.07);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.live-info-ticker-track {
  display: flex;
  width: max-content;
  gap: 0.75rem;
  padding: 0.55rem 0;
  animation: live-info-scroll var(--live-info-scroll-duration, 90s) linear infinite;
}

.live-info-ticker:hover .live-info-ticker-track {
  animation-play-state: paused;
}

.live-info-ticker a {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  color: var(--product-ink);
  font-size: 0.9rem;
  font-weight: 820;
  text-decoration: none;
  white-space: nowrap;
}

.live-info-ticker b {
  font: inherit;
}

.live-info-ticker a::after {
  content: "•";
  color: rgba(20, 108, 95, 0.45);
}

.live-info-ticker span {
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  color: var(--product-accent);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.live-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
}

.live-info-card {
  display: grid;
  gap: 0.78rem;
  align-content: start;
  min-height: 100%;
  padding: 0.95rem;
  border: 1px solid rgba(43, 53, 35, 0.11);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
}

.live-info-card-head {
  display: flex;
  gap: 0.72rem;
  align-items: center;
}

.live-info-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: var(--product-accent);
  background: var(--product-accent-light);
}

.live-info-card-head span:not(.live-info-icon) {
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.live-info-card-head h3 {
  margin: 0.12rem 0 0;
  color: var(--product-ink);
  font-size: 1.08rem;
  font-weight: 950;
}

.live-info-list {
  display: grid;
  gap: 0.55rem;
  max-height: 31.5rem;
  overflow-y: auto;
  padding-right: 0.18rem;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.live-info-item {
  display: grid;
  gap: 0.28rem;
  padding: 0.72rem;
  border: 1px solid rgba(43, 53, 35, 0.08);
  border-radius: 18px;
  color: var(--product-ink);
  background: rgba(255, 255, 255, 0.58);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.live-info-item:hover {
  border-color: rgba(20, 108, 95, 0.34);
  color: var(--product-ink);
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.live-info-item a {
  color: inherit;
  text-decoration: none;
}

.live-info-item a:hover {
  color: var(--product-accent);
}

.live-info-item strong {
  font-size: 0.95rem;
  font-weight: 920;
  line-height: 1.28;
}

.live-info-item small {
  color: var(--product-muted);
  font-size: 0.82rem;
  line-height: 1.42;
}

.live-info-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.15rem;
}

.live-info-details span {
  display: inline-flex;
  gap: 0.28rem;
  align-items: center;
  padding: 0.26rem 0.42rem;
  border: 1px solid rgba(20, 108, 95, 0.1);
  border-radius: 999px;
  color: var(--product-muted);
  background: rgba(20, 108, 95, 0.06);
  font-size: 0.72rem;
  line-height: 1.25;
}

.live-info-details b {
  color: var(--product-ink);
  font-weight: 900;
}

.live-info-original-toggle {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: 0.16rem;
  padding: 0.28rem 0.52rem;
  border: 1px solid rgba(15, 90, 157, 0.16);
  border-radius: 999px;
  color: var(--product-accent-2);
  background: rgba(15, 90, 157, 0.07);
  font-size: 0.73rem;
  font-weight: 900;
}

.live-info-original-toggle:hover {
  border-color: rgba(15, 90, 157, 0.28);
  background: rgba(15, 90, 157, 0.12);
}

.live-info-original {
  display: grid;
  gap: 0.26rem;
  margin-top: 0.18rem;
  padding: 0.58rem;
  border: 1px dashed rgba(43, 53, 35, 0.18);
  border-radius: 14px;
  color: var(--product-muted);
  background: rgba(248, 244, 236, 0.64);
}

.live-info-original[hidden] {
  display: none;
}

.live-info-item em {
  color: var(--product-accent-2);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

@keyframes live-info-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-info-ticker-track {
    width: auto;
    animation: none;
  }
}

.translator-featured-news {
  display: grid;
  gap: 0.95rem;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.featured-news-header {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.featured-news-header h2 {
  margin: 0.12rem 0 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
}

.featured-news-all {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  border: 1px solid rgba(20, 108, 95, 0.18);
  border-radius: 999px;
  color: var(--product-accent) !important;
  background: rgba(20, 108, 95, 0.07);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.featured-news-list {
  display: grid;
  gap: 0.72rem;
}

.translator-featured-news .news-list-item,
.featured-news-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.18fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
  padding: clamp(0.9rem, 1.6vw, 1.15rem);
  border: 1px solid rgba(43, 53, 35, 0.11) !important;
  border-radius: 22px !important;
  color: var(--product-ink);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 253, 248, 0.84)) !important;
  box-shadow: none !important;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.featured-news-card:hover {
  border-color: var(--product-accent) !important;
  background: var(--product-panel) !important;
  color: var(--product-ink);
  transform: translateY(-2px);
  box-shadow: var(--product-shadow-md) !important;
}

.featured-news-meta {
  display: grid;
  gap: 0.38rem;
  align-content: center;
}

.featured-news-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  color: var(--product-accent-2);
  background: rgba(15, 90, 157, 0.1);
  font-size: 0.75rem;
  font-weight: 900;
}

.featured-news-meta small {
  display: inline-flex;
  gap: 0.38rem;
  align-items: center;
  color: var(--product-muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.featured-news-body h3 {
  margin: 0 0 0.32rem;
  color: var(--product-ink);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 900;
  line-height: 1.25;
}

.featured-news-body p {
  margin: 0;
  color: var(--product-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.featured-news-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  color: var(--product-accent-2);
  background: rgba(15, 90, 157, 0.08);
}

.info-page {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 2rem);
}

.info-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 1rem;
  align-items: stretch;
  margin-bottom: 1rem;
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  border-radius: var(--product-radius-lg);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.95), rgba(255, 253, 248, 0.72)),
    radial-gradient(circle at right top, rgba(20, 108, 95, 0.18), transparent 20rem);
}

.info-hero h1 {
  max-width: 860px;
  margin: 0.2rem 0 0.55rem;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(2rem, 4.3vw, 4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.info-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--product-muted);
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
}

.info-hero-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.4rem;
  min-height: 180px;
  padding: 1rem;
  border: 1px solid rgba(43, 53, 35, 0.14);
  border-radius: 24px;
  color: var(--product-ink);
  background:
    linear-gradient(90deg, rgba(20, 108, 95, 0.14), transparent 0.32rem),
    #eef0ec;
}

.info-hero-card strong,
.info-hero-card span {
  display: block;
}

.info-hero-card span {
  color: var(--product-muted);
}

.sitemap-page {
  max-width: none;
}

.sitemap-grid {
  display: grid;
  gap: 1rem;
}

.sitemap-section {
  display: grid;
  gap: 0.75rem;
  padding: clamp(1rem, 1.8vw, 1.3rem);
  border: 1px solid rgba(43, 53, 35, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.66);
}

.sitemap-section h2 {
  margin: 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 900;
  letter-spacing: 0;
}

.sitemap-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.sitemap-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.9rem;
  border: 1px solid rgba(20, 108, 95, 0.12);
  border-radius: 18px;
  color: var(--product-ink);
  background: #fffdf8;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(43, 53, 35, 0.04);
}

.sitemap-card:hover {
  border-color: rgba(20, 108, 95, 0.28);
  color: var(--product-ink);
  transform: translateY(-1px);
}

.sitemap-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
}

.sitemap-card strong,
.sitemap-card small {
  display: block;
}

.sitemap-card strong {
  margin-bottom: 0.15rem;
  font-weight: 900;
}

.sitemap-card small {
  color: var(--product-muted);
  line-height: 1.45;
}

.phrasebook-controls {
  display: grid;
  grid-template-columns: 180px 180px minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--product-line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.82);
}

.phrasebook-controls label,
.phrasebook-controls span {
  display: block;
}

.phrasebook-controls label > span {
  margin-bottom: 0.3rem;
  color: var(--product-muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phrasebook-controls select,
.phrasebook-controls input {
  width: 100%;
  min-height: 44px;
  padding: 0 0.85rem;
  border: 1px solid var(--product-line);
  border-radius: 14px;
  color: var(--product-ink);
  background: #fffdf8;
}

.phrasebook-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.phrasebook-categories,
.phrasebook-results-panel,
.project-overview-card,
.project-feature-section,
.project-cta {
  border: 1px solid var(--product-line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--product-shadow-sm);
}

.phrasebook-categories {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem;
}

.phrasebook-category-title {
  color: var(--product-muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phrasebook-category,
.phrasebook-subcategory {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid transparent;
  color: var(--product-muted);
  background: transparent;
  font-weight: 800;
}

.phrasebook-category {
  width: 100%;
  padding: 0.72rem 0.78rem;
  border-radius: 15px;
  text-align: left;
}

.phrasebook-category.active,
.phrasebook-category:hover,
.phrasebook-subcategory.active,
.phrasebook-subcategory:hover {
  border-color: rgba(20, 108, 95, 0.18);
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.08);
}

.phrasebook-results-panel {
  min-width: 0;
  padding: clamp(0.9rem, 1.8vw, 1.2rem);
}

.phrasebook-results-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.phrasebook-results-head h2 {
  margin: 0.15rem 0 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2.25rem);
  font-weight: 900;
  letter-spacing: 0;
}

.phrasebook-count {
  flex: 0 0 auto;
  padding: 0.38rem 0.62rem;
  border-radius: 999px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
  font-size: 0.78rem;
  font-weight: 900;
}

.phrasebook-subcategories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
}

.phrasebook-subcategory {
  min-height: 36px;
  padding: 0 0.68rem;
  border-radius: 999px;
}

.phrasebook-results {
  display: grid;
  gap: 0.75rem;
}

.phrasebook-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem;
  border: 1px solid rgba(43, 53, 35, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
}

.phrasebook-group {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 0.42rem;
  padding: 0.24rem 0.5rem;
  border-radius: 999px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.08);
  font-size: 0.72rem;
  font-weight: 900;
}

.phrasebook-card h3 {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(1.02rem, 1.4vw, 1.2rem);
  font-weight: 850;
  line-height: 1.42;
}

.phrasebook-card p {
  margin: 0.45rem 0 0;
  color: var(--product-muted);
}

.phrasebook-card p span {
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--product-accent);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.phrasebook-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
}

.phrasebook-card-actions a,
.phrasebook-card-actions button {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  min-height: 38px;
  padding: 0 0.72rem;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  color: var(--product-ink);
  background: #fffdf8;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.phrasebook-card-actions a:hover,
.phrasebook-card-actions button:hover,
.phrasebook-copy.copied {
  border-color: rgba(20, 108, 95, 0.26);
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.08);
}

.phrasebook-empty {
  padding: 1rem;
  border: 1px dashed rgba(20, 108, 95, 0.24);
  border-radius: 18px;
  color: var(--product-muted);
  background: rgba(255, 255, 255, 0.54);
  font-weight: 750;
}

.phrasebook-empty.compact {
  padding: 0.75rem;
  font-size: 0.9rem;
}

.project-overview-card {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 0.62fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: start;
  padding: clamp(1rem, 2vw, 1.45rem);
}

.project-article {
  max-width: 900px;
}

.project-section-head {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-section-head h2,
.project-article h2,
.project-support-panel h2,
.project-cta h2 {
  margin: 0.2rem 0 0.7rem;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0;
}

.project-article h3 {
  margin: 1.2rem 0 0.45rem;
  color: var(--product-ink);
  font-weight: 900;
}

.project-article p {
  color: var(--product-muted);
  line-height: 1.75;
}

.project-article .lead {
  color: var(--product-ink);
  font-size: 1.08rem;
}

.project-article blockquote {
  margin: 0 0 1rem;
  padding: 0.7rem 0 0.7rem 1rem;
  border-left: 4px solid rgba(20, 108, 95, 0.38);
  color: var(--product-accent);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: 1.28rem;
  font-weight: 800;
}

.project-support-panel {
  display: grid;
  gap: 0.72rem;
  padding: clamp(0.95rem, 1.7vw, 1.25rem);
  border: 1px solid rgba(20, 108, 95, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(244, 239, 230, 0.78), rgba(255, 253, 248, 0.92)),
    radial-gradient(circle at 10% 0%, rgba(20, 108, 95, 0.12), transparent 14rem);
}

.project-support-panel h2 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.project-support-panel p {
  margin: 0;
  color: var(--product-muted);
  line-height: 1.65;
}

.project-support-panel img {
  width: 100%;
  max-width: 280px;
  margin-top: 0.3rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.project-feature-section {
  margin-top: 1rem;
  padding: clamp(1rem, 1.8vw, 1.3rem);
}

.project-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-feature-card {
  padding: 1rem;
  border: 1px solid rgba(43, 53, 35, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.project-feature-card i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.8rem;
  border-radius: 14px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
}

.project-feature-card h3 {
  margin: 0 0 0.35rem;
  color: var(--product-ink);
  font-weight: 900;
}

.project-feature-card p {
  margin: 0;
  color: var(--product-muted);
}

.project-cta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding: clamp(1rem, 1.8vw, 1.3rem);
}

.project-cta p {
  margin: 0;
  color: var(--product-muted);
}

.ladin-language-page {
  max-width: 1440px;
}

.ladin-language-hero {
  background:
    radial-gradient(circle at 8% 18%, rgba(196, 123, 34, 0.18), transparent 20rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(239, 246, 239, 0.86));
}

.ladin-language-code-card {
  min-height: 220px;
}

.language-code-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.language-code-row span {
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(43, 53, 35, 0.12);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  font-size: 0.78rem;
}

.language-side-note {
  margin: 0.35rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(43, 53, 35, 0.1);
  color: var(--product-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ladin-map-section,
.ladin-content-layout,
.ladin-feature-panel,
.ladin-resources-section,
.ladin-institution-section,
.language-variant-section {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid rgba(43, 53, 35, 0.1);
  border-radius: 26px;
  background: rgba(255, 253, 248, 0.74);
  box-shadow: 0 14px 34px rgba(43, 53, 35, 0.06);
}

.ladin-map-section,
.ladin-content-layout,
.ladin-feature-panel {
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: stretch;
}

.ladin-map-copy,
.language-section-heading,
.ladin-feature-panel > div:first-child {
  align-content: center;
  display: grid;
}

.ladin-map-copy h2,
.language-section-heading h2,
.ladin-article-card h2,
.ladin-feature-panel h2,
.ladin-resources-section h2,
.ladin-institution-section h2 {
  margin: 0 0 0.55rem;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.55rem, 2.7vw, 2.6rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.05;
}

.ladin-map-copy p,
.language-section-heading p,
.ladin-article-card p,
.ladin-feature-panel p,
.ladin-resources-section p,
.ladin-institution-section p {
  margin: 0;
  color: var(--product-muted);
  line-height: 1.7;
}

.ladin-map-card {
  overflow: hidden;
  border: 1px solid rgba(43, 53, 35, 0.12);
  border-radius: 22px;
  background: #fffdf8;
}

.ladin-map-card iframe {
  display: block;
}

.ladin-map-card p {
  margin: 0;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(43, 53, 35, 0.08);
}

.ladin-map-card a {
  color: var(--product-accent);
  font-weight: 850;
  text-decoration: none;
}

.language-summary-grid,
.language-variant-grid,
.ladin-feature-list,
.ladin-resource-grid,
.ladin-institution-grid {
  display: grid;
  gap: 0.8rem;
}

.language-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.language-summary-grid article,
.ladin-feature-list article,
.ladin-resource-grid article,
.ladin-institution-grid article,
.language-variant-grid article,
.ladin-article-card,
.ladin-stat-card {
  border: 1px solid rgba(43, 53, 35, 0.12);
  border-radius: 22px;
  background: #f4f5f2;
}

.language-summary-grid article,
.ladin-feature-list article,
.ladin-resource-grid article,
.ladin-institution-grid article {
  padding: 1rem;
}

.language-summary-grid i,
.ladin-feature-list i,
.ladin-resource-grid i,
.ladin-institution-grid article > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.75rem;
  border-radius: 14px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
}

.language-summary-grid h2,
.ladin-feature-list h3,
.ladin-resource-grid h3,
.ladin-institution-grid h3 {
  margin: 0 0 0.4rem;
  color: var(--product-ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.language-summary-grid p,
.ladin-feature-list p,
.ladin-resource-grid p,
.ladin-institution-grid p {
  margin: 0;
  color: var(--product-muted);
  line-height: 1.62;
}

.ladin-article-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.ladin-article-card p + p {
  margin-top: 0.85rem;
}

.ladin-stat-stack {
  display: grid;
  gap: 0.75rem;
}

.ladin-stat-card {
  align-content: center;
  display: grid;
  min-height: 120px;
  padding: 1rem;
  border-color: rgba(43, 53, 35, 0.14);
  background:
    linear-gradient(90deg, rgba(20, 108, 95, 0.16), transparent 0.28rem),
    #eef0ec;
  color: var(--product-ink);
}

.ladin-stat-card strong {
  display: block;
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
}

.ladin-stat-card span {
  color: var(--product-muted);
}

.language-variant-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.language-variant-grid article {
  padding: 0.9rem;
}

.language-variant-grid strong,
.language-variant-grid span {
  display: block;
}

.language-variant-grid strong {
  color: var(--product-ink);
  font-weight: 950;
}

.language-variant-grid span {
  margin-top: 0.22rem;
  color: var(--product-muted);
  font-size: 0.85rem;
}

.ladin-feature-list,
.ladin-resource-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ladin-institution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ladin-institution-grid article {
  display: grid;
  align-content: start;
  gap: 0.45rem;
}

.ladin-institution-grid article > i {
  margin-bottom: 0.3rem;
}

.ladin-institution-grid a {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  width: fit-content;
  margin-top: 0.25rem;
  color: var(--product-accent);
  font-weight: 900;
  text-decoration: none;
}

.ladin-institution-grid a i {
  font-size: 0.82em;
}

.ladin-institution-grid a:hover,
.ladin-institution-grid a:focus-visible {
  color: var(--product-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ladin-feature-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.language-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

@media (max-width: 1060px) {
  .ladin-map-section,
  .ladin-content-layout,
  .ladin-feature-panel,
  .language-summary-grid,
  .language-variant-grid,
  .ladin-feature-list,
  .ladin-resource-grid,
  .ladin-institution-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ladin-language-page {
    padding: 0.75rem;
  }

  .ladin-map-section,
  .ladin-content-layout,
  .ladin-feature-panel,
  .ladin-resources-section,
  .ladin-institution-section,
  .language-variant-section {
    border-radius: 20px;
    padding: 0.9rem;
  }

  .ladin-map-card iframe {
    height: 260px !important;
  }

  .language-cta-actions {
    justify-content: stretch;
  }

  .language-cta-actions .btn {
    flex: 1 1 auto;
  }
}

.textcomplete-dropdown {
  z-index: 1700;
  border: 1px solid var(--product-line);
  border-radius: 14px;
  background: #fffdf8;
  box-shadow: var(--product-shadow-sm);
}

@media (max-width: 1180px) {
  .app-frame {
    grid-template-columns: 1fr;
  }

  .sidebar-compact-toggle {
    display: none;
  }

  .topbar-institute-logo {
    display: none;
  }

  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1600;
    width: min(86vw, 320px);
    transform: translateX(-104%);
    transition: transform 0.22s ease;
    box-shadow: 24px 0 60px rgba(24, 32, 21, 0.18);
  }

  .shell-nav-open .app-sidebar {
    transform: translateX(0);
  }

  .mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: none;
    background: rgba(24, 32, 21, 0.34);
  }

  .shell-nav-open .mobile-nav-backdrop {
    display: block;
  }

  .topbar-menu {
    display: inline-flex;
  }

  .app-sidebar-inner {
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .brand-tradutur-logo {
    min-height: 60px;
    padding: 0.52rem 0.62rem;
    border-radius: 12px;
  }

  .brand-tradutur-logo img {
    max-height: 40px;
  }

  .app-nav {
    gap: 0.24rem;
  }

  .app-nav-link {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.55rem;
    padding: 0.54rem;
  }

  .nav-icon {
    width: 38px;
    height: 38px;
  }

  .service-status,
  .partner-link,
  .sidebar-mobile-switch,
  .sidebar-accessibility {
    padding: 0.56rem;
    border-radius: 11px;
  }

  .sidebar-accessibility .accessibility-btn {
    min-height: 34px;
    padding: 0.34rem 0.32rem;
  }
}

@media (max-width: 1060px) {
  .translator-workspace {
    grid-template-columns: 1fr;
  }

  .translator-side-panel {
    grid-template-columns: 1fr;
  }

  .translation-context-panel {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .fragmentshot-results {
    max-height: 360px;
  }

  .info-hero,
  .translator-feature-panel,
  .phrasebook-layout,
  .project-overview-card,
  .project-feature-grid,
  .writing-layout {
    grid-template-columns: 1fr;
  }

  .partner-logo-card {
    flex-basis: calc(33.333% - var(--partners-gap));
    max-width: calc(33.333% - var(--partners-gap));
  }

  .phrasebook-categories {
    position: static;
  }

  .app-footer,
  .footer-link-grid,
  .sitemap-card-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .translator-actionbar .keyboard {
    display: none !important;
  }

  .translator-page #translation-error-container {
    top: calc(0.75rem + env(safe-area-inset-top));
    right: clamp(0.65rem, 2.8vw, 1rem);
    left: clamp(0.65rem, 2.8vw, 1rem);
    width: auto;
    max-height: min(44dvh, 300px);
  }

  .app-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.15rem;
  }

  .translator-feedback-banner {
    grid-template-columns: auto minmax(0, 1fr);
    width: 100%;
    margin-top: 0;
  }

  .feedback-banner-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .translator-command-panel {
    grid-template-columns: 1fr;
  }

  .command-metrics {
    justify-content: flex-start;
  }

  .translator-languages,
  .translator > .language-selector-row,
  .translator-container.coretur-container form,
  #translate-form,
  .translator-side-panel,
  .translator-feature-list,
  .translator-resource-grid,
  .writing-hero,
  .writing-card-header,
  .writing-results-header,
  .writing-about-grid,
  .app-footer,
  .footer-link-grid,
  .sitemap-card-list,
  .phrasebook-controls {
    grid-template-columns: 1fr !important;
  }

  button.switch {
    width: 100%;
  }

  .translator-left {
    border-right: 0;
    border-bottom: 1px solid var(--product-line);
  }

  #translate-form .source-text,
  #translate-form .target-text,
  .tagged-text {
    height: min(34dvh, 360px) !important;
    min-height: 220px !important;
  }

  .translator-actionbar,
  .translator-feedback-banner,
  .fragmentshot-header {
    align-items: stretch;
    flex-direction: column;
  }

  .fragmentshot-refresh,
  .fragmentshot-expand {
    justify-content: center;
  }

  .phrasebook-card,
  .project-cta {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .phrasebook-card-actions {
    justify-content: flex-start;
  }

  .translate-buttons {
    width: 100%;
    justify-content: stretch;
    margin-left: 0;
  }

  .translate-buttons .btn,
  .translate-buttons .reset-button,
  #translate {
    flex: 1 1 auto;
  }

  .writing-hero-badges,
  .writing-results-header p {
    justify-content: flex-start;
    max-width: none;
    text-align: left;
  }

  .writing-language-control {
    width: 100%;
  }

  .writing-actionbar,
  .writing-result-main,
  .partners-header,
  .featured-news-header {
    align-items: stretch;
    flex-direction: column;
  }

  .writing-result-actions {
    justify-content: flex-start;
  }

  .featured-news-all {
    justify-content: center;
    width: 100%;
  }

  .partner-logo-card {
    flex-basis: min(100%, 220px);
    max-width: min(100%, 220px);
  }

  .writing-feedback-section .feedback-extra[style*="display: block"],
  .writing-feedback-section .feedback-extra[style*="display:block"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 560px) {
  .translator-page,
  .writing-page {
    padding: 0.75rem;
  }

  .translator-command-panel,
  .translator-main-panel,
  .side-card,
  .context-sidebar-card,
  .fragmentshot-panel,
  .writing-hero,
  .writing-composer-card,
  .writing-side-panel,
  .writing-results-panel,
  .writing-about-card {
    border-radius: 20px;
  }

  .translator-command-panel h1 {
    font-size: 1.85rem;
  }

  .writing-hero h1 {
    font-size: 2rem;
  }

  .topbar-action span,
  .shortcut-pill {
    display: none;
  }

  .footer-bottomline {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (hover: none) {
  .partner-logo-card {
    min-height: 96px;
  }

  .partner-logo-card .partner-logo-frame {
    transform: none;
  }
}

/* Translator workbench layout with tabbed context tools. */
.translator-page {
  display: grid;
  gap: 1rem;
  width: 100%;
  max-width: none;
}

.translator-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 420px);
  gap: 1rem;
  align-items: start;
  width: 100%;
  min-height: 0 !important;
}

.translator-main-panel {
  width: 100%;
}

.translator-main-panel .translator {
  min-height: 0 !important;
}

.translator-container.coretur-container form,
#translate-form {
  min-height: clamp(440px, 56dvh, 720px);
}

.translator-fullwidth-panel {
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}

.translator-page > .translator-feature-panel {
  order: 4;
}

.translator-page > .translator-featured-news {
  order: 5;
}

.translator-page > .homepage-live-info {
  order: 6;
}

.translator-page > .translator-resource-grid {
  order: 7;
}

.translator-page > .translator-partners {
  order: 8;
}

.translator-workspace > .translation-context-panel {
  position: sticky;
  top: 1rem;
  display: grid;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  padding-right: 0.15rem;
}

.translator-page > .translator-feature-panel {
  align-items: stretch;
}

.translator-page > .translator-feature-panel {
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1.28fr);
}

.translator-workspace > .translation-context-panel #dictionary-container {
  max-width: none;
}

.translator-workspace > .translation-context-panel .dictionary-frame-wrap {
  min-height: clamp(360px, 54dvh, 590px);
}

.translator-workspace > .translation-context-panel .dictionary-frame-wrap iframe {
  height: clamp(360px, 54dvh, 716px);
}

@media (max-width: 1180px) {
  .translator-workspace {
    grid-template-columns: 1fr;
  }

  .translator-workspace > .translation-context-panel {
    position: static;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 980px) {
  .translator-page > .translator-feature-panel,
  .fragmentshot-modal-results .fragmentshot-item,
  .live-info-grid,
  .translator-featured-news .featured-news-card {
    grid-template-columns: 1fr;
  }

  .translator-container.coretur-container form,
  #translate-form {
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .homepage-live-info {
    border-radius: 20px;
    padding: 0.9rem;
  }

  .live-info-header {
    align-items: stretch;
    flex-direction: column;
  }

  .live-info-updated {
    width: fit-content;
  }

  .live-info-ticker {
    border-radius: 18px;
  }

  .live-info-ticker-track {
    animation-duration: var(--live-info-scroll-duration, 55s);
  }
}

/* Mobile shell and compact translator refinements */
.app-sidebar {
  min-height: 100dvh;
}

.app-sidebar-inner {
  height: 100dvh;
  min-height: 0;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.app-nav {
  flex: 1 1 auto;
}

.sidebar-footer {
  margin-top: auto;
}

.translator-container.coretur-container form,
#translate-form {
  align-items: start;
  min-height: auto !important;
}

#translate-form .source-text,
#translate-form .target-text,
.tagged-text {
  flex: 0 0 auto !important;
  height: auto !important;
  min-height: clamp(180px, 28dvh, 340px) !important;
  max-height: min(62dvh, 680px) !important;
  overflow-y: auto !important;
  contain: none !important;
}

#translate-form .source-text {
  min-height: clamp(220px, 32dvh, 380px) !important;
}

#translate-form .target-text {
  min-height: clamp(160px, 24dvh, 320px) !important;
}

@media (max-width: 1180px) {
  .app-sidebar {
    height: 100dvh;
    overflow: hidden;
  }
}

@media (max-width: 820px) {
  .app-topbar {
    position: relative;
    top: auto;
    z-index: 20;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.34rem;
    padding: 0.42rem 0.52rem;
    backdrop-filter: none;
  }

  .topbar-menu,
  .topbar-action,
  .topbar-user,
  .ui-language-switch {
    min-height: 34px;
    padding: 0.34rem 0.48rem;
    box-shadow: none;
  }

  .topbar-menu {
    width: auto;
    min-width: 0;
    gap: 0.34rem;
    padding-inline: 0.5rem;
  }

  .topbar-context {
    overflow: hidden;
  }

  .topbar-kicker {
    display: none;
  }

  .topbar-path {
    overflow: hidden;
    font-size: clamp(0.94rem, 4vw, 1.12rem);
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-left: 0;
  }

  .topbar-actions {
    grid-column: auto;
    justify-content: flex-end;
    gap: 0.28rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .topbar-action span,
  .topbar-user span {
    display: none;
  }

  .ui-language-switch {
    gap: 0.25rem;
  }

  .ui-language-button {
    max-width: 5.4rem;
    min-height: 24px;
    font-size: 0.72rem;
  }

  .translator-page {
    padding: 0.55rem;
  }

  .translator-workspace {
    gap: 0.65rem;
  }

  .translator-main-panel {
    padding: 0.58rem;
    border-radius: 20px;
  }

  .translator {
    gap: 0.55rem;
  }

  .translator-languages,
  .translator > .language-selector-row {
    grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1fr) !important;
    gap: 0.42rem;
    align-items: end;
  }

  .translator-label {
    margin-bottom: 0.18rem;
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  select.language {
    min-height: 40px;
    padding: 0 0.55rem;
    border-radius: 12px;
    font-size: 0.8rem !important;
  }

  button.switch {
    width: 40px;
    height: 40px;
    margin: 0 !important;
    border-radius: 12px;
  }

  .translator-container.coretur-container {
    border-radius: 18px !important;
  }

  .translator-container.coretur-container .translator-left,
  .translator-container.coretur-container .translator-right,
  .translator-left,
  .translator-right {
    padding: 0.65rem !important;
  }

  .translator-panel-heading {
    margin-bottom: 0.4rem !important;
  }

  .translator-panel-heading small {
    display: none !important;
  }

  #translate-form .source-text,
  #translate-form .target-text,
  .tagged-text {
    min-height: 8.5rem !important;
    max-height: 46dvh !important;
    padding: 0.78rem !important;
    border-radius: 14px !important;
    font-size: 1rem !important;
    line-height: 1.55 !important;
  }

  #translate-form .target-text {
    min-height: 7.5rem !important;
  }

  .editor-foot {
    min-height: 1.6rem;
    margin-top: 0.35rem;
  }

  .char-counter,
  .char-limit-warning {
    font-size: 0.72rem;
  }

  .translator-actionbar {
    gap: 0.36rem;
    padding: 0.45rem;
    border-radius: 14px;
  }

  .keyboard,
  .translate-buttons {
    gap: 0.32rem;
  }

  button.keyboard-button,
  div.keyboard > button.keyboard-button,
  button.reset-button {
    min-height: 32px;
    padding: 0 0.5rem;
    border-radius: 9px;
    font-size: 0.8rem;
  }

  .shortcut-pill {
    display: none;
  }

  #translate,
  .translation-stop-button {
    min-height: 36px;
    min-width: 96px;
    padding: 0.5rem 0.72rem;
    border-radius: 10px;
  }
}

@media (max-width: 520px) {
  .topbar-menu {
    width: auto;
    min-width: 42px;
    gap: 0.34rem;
    justify-content: center;
    padding-inline: 0.42rem;
  }

  .topbar-menu-logo-wide {
    display: none;
  }

  .topbar-menu-logo-mark {
    display: block;
  }

  .app-sidebar {
    width: min(92vw, 330px);
  }

  .app-sidebar-inner {
    gap: 0.68rem;
    padding: 0.58rem 0.58rem calc(1rem + env(safe-area-inset-bottom));
  }

  .brand-cluster {
    padding-bottom: 0.12rem;
  }

  .brand-tradutur-logo {
    min-height: 52px;
    padding: 0.42rem 0.5rem;
    border-radius: 10px;
    box-shadow: none;
  }

  .brand-tradutur-logo img {
    max-height: 34px;
  }

  .app-nav-link {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.46rem;
    padding: 0.46rem;
    border-radius: 11px;
  }

  .nav-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 0.88rem;
  }

  .app-nav-link strong {
    font-size: 0.84rem;
  }

  .app-nav-link small {
    font-size: 0.66rem;
    line-height: 1.15;
  }

  .topbar-menu span {
    display: none;
  }

  .translator-feedback-banner {
    padding: 0.72rem;
  }

  .feedback-banner-actions {
    align-items: stretch;
  }

  .feedback-banner-actions .btn {
    flex: 1 1 auto;
  }

  .ui-language-switch i {
    display: none;
  }

  .translator-languages,
  .translator > .language-selector-row {
    grid-template-columns: 1fr !important;
  }

  button.switch {
    width: 100%;
    height: 36px;
  }

  .translator-page {
    padding: 0.4rem;
  }

  .translator-main-panel {
    padding: 0.42rem;
    border-radius: 18px;
  }

  .translator-container.coretur-container .translator-left,
  .translator-container.coretur-container .translator-right,
  .translator-left,
  .translator-right {
    padding: 0.55rem !important;
  }

  #translate-form .source-text,
  #translate-form .target-text,
  .tagged-text {
    min-height: 7.5rem !important;
    max-height: 44dvh !important;
  }

  .translate-buttons {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
  }

  .translate-buttons .btn,
  .translate-buttons .reset-button,
  #translate,
  .translation-stop-button {
    width: 100%;
  }
}

/* Final mobile polish: keep source, switch, and target on one compact row. */
@media (max-width: 820px) {
  .translator-languages,
  .translator > .language-selector-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) !important;
    gap: 0.38rem !important;
    align-items: end;
  }

  .language-control {
    min-width: 0;
  }

  .translator-label {
    margin-bottom: 0.16rem;
    font-size: 0.58rem;
    letter-spacing: 0.045em;
  }

  select.language {
    min-width: 0;
    min-height: 38px;
    padding: 0 0.48rem;
    border-radius: 11px;
    font-size: 0.76rem !important;
    font-weight: 780;
    text-overflow: ellipsis;
  }

  button.switch {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px;
    border-radius: 11px;
  }
}

@media (max-width: 420px) {
  .translator-languages,
  .translator > .language-selector-row {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) !important;
    gap: 0.3rem !important;
  }

  .translator-label {
    display: none;
  }

  select.language {
    min-height: 36px;
    padding: 0 0.38rem;
    border-radius: 10px;
    font-size: 0.72rem !important;
  }

  button.switch {
    width: 34px !important;
    height: 36px !important;
    min-width: 34px;
    border-radius: 10px;
  }
}

@media (max-width: 980px) {
  .translator-page {
    padding-bottom: calc(8rem + env(safe-area-inset-bottom));
  }

  .translator-actionbar {
    position: fixed;
    right: clamp(0.5rem, 2.6vw, 1rem);
    bottom: calc(0.55rem + env(safe-area-inset-bottom));
    left: clamp(0.5rem, 2.6vw, 1rem);
    z-index: 1200;
    align-items: stretch;
    padding: 0.55rem;
    border-radius: 16px;
    background: rgba(255, 253, 248, 0.96);
    box-shadow: 0 16px 36px rgba(15, 20, 25, 0.18);
    backdrop-filter: blur(16px);
  }

  .translator-actionbar .keyboard,
  .translator-actionbar .shortcut-pill {
    display: none !important;
  }

  .translator-actionbar .translate-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(8.5rem, 100%), 1fr));
    width: 100%;
    margin-left: 0;
  }

  .translator-actionbar .translate-buttons .btn,
  .translator-actionbar .translate-buttons .reset-button,
  .translator-actionbar #translate,
  .translator-actionbar .translation-stop-button {
    width: 100%;
    min-width: 0;
  }
}

.news-page,
.news-article-page {
  display: grid;
  gap: clamp(0.7rem, 1.5vw, 1rem);
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: clamp(0.7rem, 1.8vw, 1.35rem);
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: clamp(1rem, 2.2vw, 1.5rem);
  align-items: stretch;
  overflow: hidden;
  padding: clamp(1.1rem, 2.4vw, 1.7rem);
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background:
    radial-gradient(circle at 10% 15%, rgba(196, 123, 34, 0.16), transparent 18rem),
    radial-gradient(circle at 92% 5%, rgba(20, 108, 95, 0.12), transparent 22rem),
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(244, 245, 242, 0.88));
  box-shadow: var(--product-shadow-sm);
}

.news-hero-copy {
  display: grid;
  align-content: center;
}

.news-hero h1,
.news-index-head h2,
.news-article-hero h1,
.news-article-callout h2,
.news-citation h2,
.news-empty-state h2 {
  margin: 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
}

.news-hero h1 {
  max-width: 880px;
  margin-top: 0.15rem;
  font-size: clamp(2rem, 5vw, 4.6rem);
}

.news-hero p {
  max-width: 780px;
  margin: 0.75rem 0 0;
  color: var(--product-muted);
  font-size: clamp(0.98rem, 1.35vw, 1.14rem);
  line-height: 1.65;
}

.news-hero-card {
  display: grid;
  align-content: end;
  gap: 0.35rem;
  min-height: 220px;
  padding: 1rem;
  border: 1px solid rgba(43, 53, 35, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(90deg, rgba(20, 108, 95, 0.14), transparent 0.32rem),
    #eef0ec;
}

.news-hero-card > span {
  color: var(--product-accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.news-hero-card strong {
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.9;
}

.news-hero-card small,
.news-hero-latest {
  color: var(--product-muted);
  font-weight: 750;
}

.news-hero-latest {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  width: fit-content;
  margin-top: 0.55rem;
  padding: 0.42rem 0.58rem;
  border: 1px solid rgba(43, 53, 35, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 0.82rem;
}

.news-compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: clamp(0.9rem, 2vw, 1.35rem);
  align-items: stretch;
  padding: clamp(0.95rem, 1.9vw, 1.35rem);
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--product-shadow-sm);
}

.news-compact-hero h1 {
  margin: 0.12rem 0 0;
  color: var(--product-ink);
  font-family: "Tradutur Serif", Georgia, serif;
  font-size: clamp(1.75rem, 3.2vw, 3rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.04;
}

.news-compact-hero p {
  max-width: 880px;
  margin: 0.58rem 0 0;
  color: var(--product-muted);
  font-size: clamp(0.94rem, 1.15vw, 1.05rem);
  line-height: 1.55;
}

.news-showcase-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.78rem;
  align-content: center;
  padding: 0.9rem;
  border: 1px solid rgba(20, 108, 95, 0.13);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(20, 108, 95, 0.1), transparent 0.3rem),
    rgba(20, 108, 95, 0.045);
}

.news-showcase-note > i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 16px;
  color: var(--product-accent);
  background: rgba(255, 255, 255, 0.82);
}

.news-showcase-note strong,
.news-showcase-note span {
  display: block;
}

.news-showcase-note strong {
  color: var(--product-ink);
  font-weight: 950;
}

.news-showcase-note span {
  margin-top: 0.18rem;
  color: var(--product-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.news-showcase-note .news-hero-latest {
  grid-column: 1 / -1;
  margin-top: 0.18rem;
}

.news-index-panel,
.news-article-card,
.news-empty-state {
  border: 1px solid var(--product-line);
  border-radius: var(--product-radius-lg);
  background: rgba(255, 253, 248, 0.78);
  box-shadow: var(--product-shadow-sm);
}

.news-index-panel {
  display: grid;
  gap: 0.68rem;
  padding: clamp(0.75rem, 1.45vw, 1rem);
}

.news-index-head {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.news-index-head h2 {
  margin-top: 0.1rem;
  font-size: clamp(1.25rem, 2.1vw, 1.9rem);
}

.news-index-head p {
  max-width: 420px;
  margin: 0;
  color: var(--product-muted);
  line-height: 1.55;
  text-align: right;
}

.news-card-list {
  display: grid;
  gap: 0.48rem;
}

.news-card[hidden] {
  display: none;
}

.news-card {
  display: grid;
  grid-template-columns: minmax(108px, 0.16fr) minmax(0, 1fr) auto;
  gap: clamp(0.58rem, 1.1vw, 0.82rem);
  align-items: center;
  padding: clamp(0.62rem, 1.15vw, 0.82rem);
  border: 1px solid rgba(43, 53, 35, 0.11);
  border-radius: 14px;
  color: var(--product-ink);
  background: #f4f5f2;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.news-card.is-featured {
  background: #eef0ec;
}

.news-card:hover,
.news-card:focus-visible {
  border-color: rgba(20, 108, 95, 0.26);
  color: var(--product-ink);
  background: #fffdf8;
  transform: translateY(-2px);
}

.news-card:focus-visible {
  outline: 3px solid rgba(20, 108, 95, 0.18);
  outline-offset: 2px;
}

.news-card-meta {
  display: grid;
  gap: 0.26rem;
  align-content: center;
}

.news-card-meta span,
.news-article-meta span,
.news-tags span {
  display: inline-flex;
  width: fit-content;
  padding: 0.2rem 0.46rem;
  border-radius: 999px;
  color: var(--product-accent-2);
  background: rgba(15, 90, 157, 0.09);
  font-size: 0.68rem;
  font-weight: 900;
}

.news-card-meta small,
.news-article-meta small {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  color: var(--product-muted);
  font-size: 0.73rem;
  font-weight: 760;
}

.news-card-body h3 {
  margin: 0 0 0.18rem;
  color: var(--product-ink);
  font-size: clamp(0.98rem, 1.45vw, 1.22rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
}

.news-card-body p {
  margin: 0;
  color: var(--product-muted);
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.news-card-action {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: var(--product-accent-2);
  background: rgba(15, 90, 157, 0.08);
  font-size: 0.86rem;
}

.news-page {
  gap: clamp(1rem, 2vw, 1.6rem);
  width: min(100%, 1240px);
}

.news-page h1,
.news-page h2,
.news-page h3 {
  font-family: "Tradutur Sans", "Trebuchet MS", Verdana, sans-serif;
  letter-spacing: 0;
}

.news-landing-hero,
.papers-panel,
.news-index-panel {
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: var(--product-panel);
  box-shadow: var(--product-shadow-sm);
}

.news-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: end;
  padding: clamp(1.1rem, 2.8vw, 2rem);
}

.news-landing-hero h1 {
  max-width: 780px;
  margin: 0.16rem 0 0;
  color: var(--product-ink);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 850;
  line-height: 1.04;
}

.news-landing-hero p {
  max-width: 720px;
  margin: 0.72rem 0 0;
  color: var(--product-muted);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.65;
}

.news-landing-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(96px, 1fr));
  gap: 0.65rem;
}

.news-landing-stats span {
  display: grid;
  gap: 0.08rem;
  min-height: 86px;
  align-content: center;
  padding: 0.74rem;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: var(--product-panel-2);
}

.news-landing-stats strong {
  color: var(--product-ink);
  font-size: clamp(1.65rem, 3vw, 2.4rem);
  line-height: 1;
}

.news-landing-stats small {
  color: var(--product-muted);
  font-weight: 800;
}

.papers-panel {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1rem, 2.2vw, 1.5rem);
}

.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: clamp(0.9rem, 1.8vw, 1.2rem);
}

.papers-empty {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  min-height: 180px;
  align-content: center;
  border: 1px dashed var(--product-line-strong);
  border-radius: 8px;
  color: var(--product-muted);
  background: var(--product-panel-2);
  text-align: center;
}

.papers-empty i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--product-danger);
  background: rgba(239, 68, 68, 0.08);
}

.papers-empty p {
  max-width: 440px;
  margin: 0;
}

.paper-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-width: 0;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  color: var(--product-ink);
  background: var(--product-panel-2);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.paper-card:hover,
.paper-card:focus-visible {
  border-color: rgba(8, 145, 178, 0.32);
  color: var(--product-ink);
  box-shadow: var(--product-shadow-md);
  transform: translateY(-3px);
}

.paper-card:focus-visible {
  outline: 3px solid var(--product-focus);
  outline-offset: 3px;
}

.paper-preview {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-bottom: 1px solid var(--product-line);
  background:
    linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(59, 130, 246, 0.08)),
    #f8fafc;
}

.paper-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.paper-preview-fallback {
  display: grid;
  gap: 0.5rem;
  width: min(68%, 180px);
  aspect-ratio: 0.72;
  align-content: start;
  padding: 1.05rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.paper-preview-fallback span {
  color: var(--product-danger);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.paper-preview-fallback i {
  display: block;
  height: 0.48rem;
  border-radius: 999px;
  background: #e5e7eb;
}

.paper-preview-fallback i:nth-child(3) {
  width: 82%;
}

.paper-preview-fallback i:nth-child(4) {
  width: 64%;
}

body.product-shell[data-accessibility-theme="dark"] .paper-preview {
  background:
    linear-gradient(135deg, rgba(103, 232, 249, 0.08), rgba(147, 197, 253, 0.08)),
    #0f172a;
}

body.product-shell[data-accessibility-theme="dark"] .paper-preview-fallback {
  border-color: rgba(255, 255, 255, 0.16);
  background: #111827;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.32);
}

body.product-shell[data-accessibility-theme="dark"] .paper-preview-fallback i {
  background: #334155;
}

.paper-card-body {
  display: grid;
  gap: 0.62rem;
  align-content: start;
  padding: 0.95rem;
}

.paper-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
}

.paper-card-meta span,
.news-card-meta span,
.news-article-meta span,
.news-tags span {
  border-radius: 999px;
}

.paper-card-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.48rem;
  color: var(--product-accent);
  background: var(--product-accent-light);
  font-size: 0.72rem;
  font-weight: 850;
}

.paper-card h3 {
  margin: 0;
  color: var(--product-ink);
  font-size: clamp(1.02rem, 1.35vw, 1.18rem);
  font-weight: 850;
  line-height: 1.25;
}

.paper-authors,
.paper-summary {
  margin: 0;
  color: var(--product-muted);
}

.paper-authors {
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.38;
}

.paper-summary {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.paper-open {
  display: inline-flex;
  gap: 0.42rem;
  align-items: center;
  width: fit-content;
  margin-top: 0.1rem;
  color: var(--product-accent);
  font-size: 0.84rem;
  font-weight: 850;
}

.news-index-panel {
  gap: clamp(0.9rem, 1.7vw, 1.25rem);
  padding: clamp(1rem, 2.2vw, 1.45rem);
}

.news-index-head {
  align-items: start;
}

.news-index-head h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  font-weight: 850;
  line-height: 1.08;
}

.news-index-head p {
  max-width: 520px;
  color: var(--product-muted);
  font-size: 0.96rem;
  line-height: 1.6;
}

.news-card-list {
  gap: 0.74rem;
}

.news-card {
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: clamp(0.8rem, 1.8vw, 1.25rem);
  align-items: start;
  padding: clamp(0.9rem, 1.8vw, 1.15rem);
  border-color: var(--product-line);
  border-radius: 8px;
  background: var(--product-panel-2);
}

.news-card.is-featured {
  background: linear-gradient(135deg, rgba(236, 254, 255, 0.8), var(--product-panel-2));
}

.news-card-date {
  display: grid;
  place-items: center;
  min-height: 74px;
  border: 1px solid var(--product-line);
  border-radius: 8px;
  background: var(--product-panel);
  text-align: center;
}

.news-card-date strong {
  color: var(--product-ink);
  font-size: 1.45rem;
  line-height: 1;
}

.news-card-date span {
  color: var(--product-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.news-card-body {
  display: grid;
  gap: 0.38rem;
}

.news-card-body h3 {
  margin: 0;
  font-size: clamp(1.12rem, 1.6vw, 1.42rem);
  font-weight: 850;
  line-height: 1.24;
}

.news-card-body p {
  font-size: 0.95rem;
  line-height: 1.58;
  -webkit-line-clamp: 3;
}

.news-empty-state {
  display: grid;
  place-items: center;
  gap: 0.45rem;
  min-height: 300px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  text-align: center;
}

.news-empty-state > i {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.09);
}

.news-empty-state h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.news-empty-state p {
  max-width: 560px;
  margin: 0;
  color: var(--product-muted);
}

.news-article-page {
  width: min(100%, 900px);
}

.news-article-toolbar,
.news-article-bottom {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.news-back-link,
.news-lang-switch a,
.news-copy-btn {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 34px;
  padding: 0 0.62rem;
  border: 1px solid var(--product-line);
  border-radius: 999px;
  color: var(--product-ink);
  background: rgba(255, 253, 248, 0.86);
  font-size: 0.84rem;
  font-weight: 850;
  text-decoration: none;
}

.news-back-link:hover,
.news-lang-switch a:hover,
.news-lang-switch a.active {
  border-color: rgba(20, 108, 95, 0.26);
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.08);
}

.news-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.1rem 0.04rem 0.18rem;
}

.news-pagination button {
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
  min-height: 34px;
  padding: 0 0.66rem;
  border: 1px solid rgba(20, 108, 95, 0.16);
  border-radius: 999px;
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.07);
  font-size: 0.82rem;
  font-weight: 900;
}

.news-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.news-pagination span {
  color: var(--product-muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.news-lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.news-article-card {
  overflow: hidden;
}

.news-article-hero {
  padding: clamp(0.9rem, 2.2vw, 1.45rem);
  border-bottom: 1px solid var(--product-line);
  background: rgba(255, 253, 248, 0.92);
}

.news-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
  align-items: center;
  margin-bottom: 0.68rem;
}

.news-article-hero h1 {
  max-width: 760px;
  font-family: "Tradutur Sans", "Trebuchet MS", Verdana, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 850;
  line-height: 1.12;
}

.news-article-hero p {
  max-width: 720px;
  margin: 0.58rem 0 0;
  color: var(--product-muted);
  font-size: clamp(0.94rem, 1.18vw, 1.04rem);
  line-height: 1.55;
}

.news-article-image {
  margin: 0;
  border-bottom: 1px solid var(--product-line);
  background: #eef0ec;
}

.news-article-image img {
  display: block;
  width: 100%;
  height: auto;
}

.news-article-content {
  padding: clamp(0.95rem, 2.2vw, 1.55rem);
  color: var(--product-ink);
  font-size: clamp(0.96rem, 1.12vw, 1.04rem);
  line-height: 1.68;
}

.news-article-content > *:first-child {
  margin-top: 0;
}

.news-article-content > *:last-child {
  margin-bottom: 0;
}

.news-article-content h1,
.news-article-content h2,
.news-article-content h3 {
  color: var(--product-ink);
  font-family: "Tradutur Sans", "Trebuchet MS", Verdana, sans-serif;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.18;
}

.news-article-content h1 {
  margin: 1.35rem 0 0.62rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.news-article-content h2 {
  margin: 1.35rem 0 0.58rem;
  font-size: clamp(1.25rem, 1.9vw, 1.65rem);
}

.news-article-content h3 {
  margin: 1.1rem 0 0.45rem;
  font-size: clamp(1.08rem, 1.45vw, 1.32rem);
}

.news-article-content p,
.news-article-content ul,
.news-article-content ol {
  margin-bottom: 0.9rem;
}

.news-article-content a {
  color: var(--product-accent);
  font-weight: 850;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.news-article-content img {
  max-width: 100%;
  height: auto;
  margin: 1.4rem 0;
  border-radius: 18px;
}

.news-article-callout,
.news-citation,
.news-tags {
  margin: 0 clamp(0.95rem, 2.2vw, 1.55rem) clamp(0.95rem, 2.2vw, 1.55rem);
}

.news-article-callout {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.78rem;
  border: 1px solid rgba(20, 108, 95, 0.14);
  border-radius: 22px;
  background: #eef0ec;
}

.news-article-callout h2 {
  margin-top: 0.1rem;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
}

.news-citation {
  display: grid;
  gap: 0.75rem;
}

.news-citation-head {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
}

.news-citation h2 {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: clamp(1.22rem, 1.8vw, 1.65rem);
}

.news-copy-btn {
  cursor: pointer;
}

.news-copy-btn.is-copied {
  border-color: rgba(20, 108, 95, 0.34);
  color: var(--product-accent);
  background: rgba(20, 108, 95, 0.1);
}

.news-citation pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid var(--product-line);
  border-radius: 18px;
  background: #f4f5f2;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding-top: 0.2rem;
}

@media (max-width: 860px) {
  .news-hero,
  .news-compact-hero,
  .news-landing-hero,
  .live-info-news-page .live-info-grid,
  .news-card {
    grid-template-columns: 1fr;
  }

  .news-landing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-hero-card {
    min-height: auto;
  }

  .news-index-head,
  .news-article-toolbar,
  .news-article-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .news-index-head p {
    max-width: none;
    text-align: left;
  }

  .news-card-action {
    justify-self: start;
  }

  .news-card-date {
    justify-items: start;
    min-height: auto;
    padding: 0.65rem;
  }

  .news-lang-switch {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .news-page,
  .news-article-page {
    padding: 0.65rem;
  }

  .news-hero,
  .news-index-panel,
  .news-landing-hero,
  .papers-panel,
  .news-article-card,
  .news-empty-state {
    border-radius: 8px;
  }

  .news-card {
    border-radius: 8px;
  }

  .news-landing-stats {
    grid-template-columns: 1fr;
  }

  .news-article-meta {
    gap: 0.38rem;
  }
}

/* Final desktop polish: keep the translation desk visually balanced. */
@media (min-width: 821px) {
  body.product-shell #translate-form {
    align-items: stretch !important;
  }

  body.product-shell #translate-form .translator-left,
  body.product-shell #translate-form .translator-right {
    display: flex !important;
    flex-direction: column;
  }

  body.product-shell #translate-form .source-text,
  body.product-shell #translate-form .target-text {
    flex: 0 0 auto !important;
    height: clamp(340px, 42dvh, 560px) !important;
    min-height: clamp(340px, 42dvh, 560px) !important;
    max-height: clamp(340px, 42dvh, 560px) !important;
    overflow-y: auto !important;
  }
}
