:root {
  --dic-bg: #f8f9fa;
  --dic-text: #1a1a1a;
  --dic-muted: #6b7280;
  --dic-border: rgba(0, 0, 0, 0.06);
  --dic-white: #ffffff;
  --dic-primary: #059669;
  --dic-primary-dark: #047857;
  --dic-primary-soft: #ecfdf5;
  --dic-blue-soft: #eff6ff;
  --dic-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
  --dic-radius-xl: 24px;
  --dic-radius-lg: 18px;
  --dic-radius-md: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.dic-body {
  margin: 0;
  background: var(--dic-bg);
  color: var(--dic-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
.dic-site-shell {
  width: 100%;
  overflow-x: clip;
}
@supports not (overflow: clip) {
  .dic-site-shell { overflow-x: hidden; }
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

.dic-container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.dic-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--dic-border);
}
.dic-header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.dic-header-inner > * { min-width: 0; }
.dic-brand-wrap .custom-logo-link,
.dic-brand-fallback {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.dic-brand-wrap,
.dic-brand-wrap .custom-logo-link,
.dic-brand-fallback {
  min-width: 0;
}
.dic-brand-wrap img {
  display: block;
  max-width: 100%;
  height: auto;
}
.dic-brand-fallback .dic-brand-text {
  min-width: 0;
  overflow-wrap: anywhere;
}
.dic-brand-fallback .dic-brand-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--dic-primary);
  color: #fff;
  border-radius: 14px;
  font-weight: 800;
}
.dic-brand-fallback .dic-brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.03em;
}
.dic-desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.dic-desktop-nav a {
  font-size: .95rem;
  font-weight: 600;
  color: var(--dic-muted);
}
.dic-desktop-nav a:hover,
.dic-footer-links a:hover,
.dic-mobile-menu a:hover,
.dic-back-link:hover { color: var(--dic-primary); }
.dic-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.dic-language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 12px;
  background: #fff;
  min-width: 0;
  max-width: 100%;
}
.dic-language-switcher .dashicons { color: var(--dic-muted); }
.dic-language-switcher select {
  border: 0;
  background: transparent;
  font-weight: 700;
  text-transform: uppercase;
  outline: none;
  cursor: pointer;
  min-width: 0;
}
.dic-mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
}
.dic-mobile-menu {
  border-top: 1px solid var(--dic-border);
  background: #fff;
}
.dic-mobile-menu-inner {
  padding: 12px 0 18px;
  display: grid;
  gap: 10px;
}
.dic-mobile-menu a {
  padding: 12px 16px;
  border-radius: 16px;
  background: #f9fafb;
  font-weight: 600;
}

.dic-main { padding: 32px 0 48px; }
.dic-page { display: grid; gap: 32px; }
.dic-hero {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.dic-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -.04em;
}
.dic-hero p {
  margin: 0;
  color: var(--dic-muted);
  font-size: 1.1rem;
}
.dic-card,
.dic-article-shell,
.dic-drug-checker-card {
  background: var(--dic-white);
  border: 1px solid var(--dic-border);
  border-radius: var(--dic-radius-xl);
  box-shadow: var(--dic-shadow);
}
.dic-checker-card,
.dic-tool-card {
  padding: 28px;
  max-width: 860px;
  margin: 0 auto;
}
.dic-article-shell {
  max-width: 860px;
  margin: 0 auto;
  padding: 34px;
}
.dic-drug-checker-card {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
}
.dic-drug-card-top {
  padding: 28px;
  background: linear-gradient(135deg, #059669, #0f766e);
  color: #fff;
}
.dic-drug-card-top h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.15;
}
.dic-drug-card-top p { margin: 0; color: rgba(255,255,255,.92); }
.dic-drug-card-body { padding: 28px; }
.dic-drug-badge {
  display: inline-flex;
  padding: 8px 14px;
  background: #d1fae5;
  color: var(--dic-primary-dark);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.dic-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.dic-form-grid-drug { grid-template-columns: 1fr; }
.dic-full-width { grid-column: 1 / -1; }
.dic-checker-form label > span,
.dic-price-label {
  display: inline-block;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dic-input-wrap {
  position: relative;
}
.dic-input-wrap .dashicons {
  position: absolute;
  top: 50%;
  left: 15px;
  transform: translateY(-50%);
  color: #9ca3af;
}
.dic-input-wrap input,
.dic-reminder-form input,
.dic-language-switcher select {
  width: 100%;
  min-height: 56px;
  border: 0;
  outline: 0;
  background: #f9fafb;
  border-radius: 18px;
  padding: 0 18px 0 46px;
}
.dic-reminder-form input[type="time"] { padding-left: 18px; }
.dic-input-wrap input:focus,
.dic-reminder-form input:focus {
  box-shadow: 0 0 0 2px rgba(5, 150, 105, .18);
  background: #fff;
}
.dic-primary-button,
.dic-secondary-button,
.dic-result-actions button,
.dic-reminder-delete {
  border: 0;
  cursor: pointer;
  border-radius: 18px;
  transition: .2s ease;
}
.dic-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  width: 100%;
  background: var(--dic-primary);
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
}
.dic-primary-button:hover { background: var(--dic-primary-dark); }
.dic-primary-button.is-loading { opacity: .7; cursor: wait; }
.dic-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  background: var(--dic-primary-soft);
  color: var(--dic-primary-dark);
  font-weight: 700;
}

.dic-result-card {
  margin-top: 26px;
  padding: 26px;
  border-radius: 24px;
  border: 1px solid #bbf7d0;
  background: #fff;
}
.dic-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.dic-result-head h3 { margin: 0; font-size: 1.2rem; }
.dic-result-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dic-result-actions button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f9fafb;
  color: var(--dic-muted);
  font-weight: 600;
}
.dic-result-actions button:hover { background: #f3f4f6; }
.dic-loading, .dic-error, .dic-empty-state {
  padding: 18px;
  border-radius: 18px;
  background: #f9fafb;
}
.dic-error { background: #fef2f2; color: #b91c1c; }

.dic-prose { color: #4b5563; overflow-wrap: anywhere; word-break: break-word; }
.dic-prose h1, .dic-prose h2, .dic-prose h3 {
  color: #111827;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.dic-prose h1 { font-size: 2rem; margin: 0 0 22px; }
.dic-prose h2 { font-size: 1.55rem; margin: 32px 0 12px; }
.dic-prose h3 { font-size: 1.18rem; margin: 24px 0 10px; }
.dic-prose p { margin: 0 0 16px; }
.dic-prose ul { margin: 0 0 16px 22px; }
.dic-prose li { margin-bottom: 9px; }
.dic-prose strong { color: #0f172a; }

.dic-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 980px;
  margin: 0 auto;
  padding-top: 14px;
}
.dic-related-section h3 {
  margin: 0 0 16px;
  font-size: 1.15rem;
}
.dic-related-list { display: grid; gap: 12px; }
.dic-related-card {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
  background: #fff;
  border: 1px solid #eef2f7;
  border-radius: 20px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
}
.dic-related-card:hover {
  border-color: #a7f3d0;
  transform: translateY(-1px);
}
.dic-related-card-article:hover { border-color: #bfdbfe; }
.dic-related-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #ecfdf5;
  color: var(--dic-primary);
  flex: none;
}
.dic-related-card-article .dic-related-icon {
  background: #eff6ff;
  color: #2563eb;
}
.dic-related-text { flex: 1; font-weight: 600; }
.dic-related-arrow { color: #cbd5e1; font-size: 1.5rem; }

.dic-reminder-form {
  display: grid;
  grid-template-columns: 1.4fr .8fr auto;
  gap: 12px;
  margin-bottom: 16px;
}
.dic-reminder-actions { margin-bottom: 16px; }
.dic-reminder-list { display: grid; gap: 12px; }
.dic-reminder-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: #f9fafb;
}
.dic-reminder-item.is-taken { background: #ecfdf5; }
.dic-reminder-check {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #fff;
  cursor: pointer;
}
.dic-reminder-meta strong { display: block; }
.dic-reminder-meta span { color: var(--dic-muted); font-size: .95rem; }
.dic-reminder-delete {
  padding: 10px 12px;
  background: #fff;
  color: #b91c1c;
  font-weight: 700;
}

.dic-quiz-shell { display: grid; gap: 18px; }
.dic-quiz-question {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}
.dic-quiz-options { display: grid; gap: 12px; }
.dic-quiz-option {
  border: 2px solid transparent;
  border-radius: 18px;
  background: #f9fafb;
  padding: 16px;
  text-align: left;
  font-weight: 600;
  cursor: pointer;
}
.dic-quiz-option:hover { background: #f3f4f6; }
.dic-quiz-option.is-correct {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.dic-quiz-option.is-wrong {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.dic-quiz-explanation {
  padding: 18px;
  border-radius: 18px;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
}
.dic-quiz-explanation h4 { margin: 0 0 8px; }
.dic-quiz-explanation p { margin: 0 0 14px; }

.dic-price-shell { display: grid; gap: 16px; }
.dic-price-result-card {
  padding: 18px;
  border-radius: 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.dic-price-result-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.dic-price-result-kicker {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--dic-primary);
  margin-bottom: 6px;
}
.dic-price-result-name { font-size: 1.35rem; font-weight: 800; color: #064e3b; }
.dic-price-savings { text-align: right; }
.dic-price-savings span { display: block; color: #047857; font-size: .95rem; }
.dic-price-savings strong { font-size: 2rem; line-height: 1; color: var(--dic-primary); }
.dic-info-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: #eff6ff;
  color: #1d4ed8;
}

.dic-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #9ca3af;
  max-width: 920px;
  margin: 0 auto;
}

.dic-site-footer {
  margin-top: 48px;
  padding: 48px 0 0;
  background: #fff;
  border-top: 1px solid var(--dic-border);
}
.dic-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr 1fr;
  gap: 28px;
}
.dic-footer-grid h4 {
  margin: 0 0 14px;
  color: #9ca3af;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dic-footer-brand {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 12px;
}
.dic-footer-text { color: var(--dic-muted); }
.dic-footer-legal { font-size: .88rem; }
.dic-footer-links { display: grid; gap: 8px; }
.dic-footer-links a { color: #4b5563; }
.dic-footer-bottom {
  margin-top: 28px;
  padding: 20px 0 28px;
  border-top: 1px solid var(--dic-border);
  text-align: center;
  color: #9ca3af;
  font-size: .9rem;
}

.dic-ad-slot {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
}
.dic-ad-card,
.dic-promo-card {
  border-radius: 24px;
  padding: 22px;
  background: #fff;
  border: 1px dashed #cbd5e1;
}
.dic-ad-label,
.dic-promo-badge {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #64748b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dic-promo-card {
  background: linear-gradient(135deg, #059669, #0f766e);
  color: #fff;
  border: 0;
}
.dic-promo-card .dic-promo-badge { background: rgba(255,255,255,.15); color: #ecfdf5; }
.dic-promo-card h3,
.dic-ad-card h3 { margin: 0 0 10px; }
.dic-promo-card p,
.dic-ad-card p { margin: 0 0 16px; }
.dic-promo-card a {
  display: inline-flex;
  padding: 12px 16px;
  border-radius: 14px;
  background: #fff;
  color: var(--dic-primary-dark);
  font-weight: 800;
}

.dic-promo-card-original {
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(5, 150, 105, .18);
}
.dic-promo-content {
  position: relative;
  z-index: 2;
}
.dic-promo-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  pointer-events: none;
}
.dic-promo-orb-top {
  width: 110px;
  height: 110px;
  right: -20px;
  top: -20px;
  background: rgba(255,255,255,.16);
}
.dic-promo-orb-bottom {
  width: 150px;
  height: 150px;
  left: -30px;
  bottom: -30px;
  background: rgba(16, 185, 129, .18);
}
.dic-promo-headline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.dic-promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255,255,255,.16);
  color: #d1fae5;
}
.dic-promo-kicker {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d1fae5;
}
.dic-promo-card-original a {
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.dic-promo-note {
  margin: 12px 0 0;
  text-align: center;
  font-size: .72rem;
  color: rgba(209, 250, 229, .78);
  font-style: italic;
}

@media (max-width: 900px) {
  .dic-header-inner {
    min-height: auto;
    padding: 12px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }
  .dic-brand-wrap {
    min-width: 0;
  }
  .dic-brand-wrap .custom-logo-link,
  .dic-brand-fallback {
    gap: 10px;
  }
  .dic-brand-wrap img {
    max-height: 42px;
    width: auto;
  }
  .dic-brand-fallback .dic-brand-text {
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dic-desktop-nav { display: none; }
  .dic-header-actions {
    justify-self: end;
    max-width: 100%;
    gap: 8px;
  }
  .dic-language-switcher {
    max-width: min(100%, 96px);
    padding: 6px 8px;
  }
  .dic-language-switcher .dashicons {
    flex: 0 0 auto;
  }
  .dic-language-switcher select {
    width: auto;
    max-width: 100%;
    padding-right: 0;
  }
  .dic-mobile-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }
  .dic-mobile-menu {
    position: relative;
    z-index: 49;
  }
  .dic-mobile-menu-inner {
    padding: 12px 0 18px;
  }
  .dic-mobile-menu a {
    display: block;
    width: 100%;
  }
  .dic-form-grid,
  .dic-footer-grid,
  .dic-related-grid,
  .dic-reminder-form,
  .dic-price-result-head {
    grid-template-columns: 1fr;
  }
  .dic-price-savings { text-align: left; }
  .dic-result-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .dic-main { padding-top: 24px; }
  .dic-checker-card,
  .dic-tool-card,
  .dic-article-shell,
  .dic-drug-card-top,
  .dic-drug-card-body {
    padding: 20px;
  }
  .dic-container { width: min(1120px, calc(100% - 20px)); }
  .dic-header-inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }
  .dic-brand-wrap img {
    max-height: 38px;
  }
  .dic-language-switcher {
    max-width: 76px;
  }
  .dic-language-switcher select {
    font-size: .9rem;
  }
  .dic-result-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .dic-result-actions button { flex: 1 1 160px; justify-content: center; }
  .dic-related-card {
    align-items: flex-start;
  }
  .dic-related-arrow {
    display: none;
  }
  .dic-reminder-item {
    grid-template-columns: auto 1fr;
  }
  .dic-reminder-delete {
    grid-column: 1 / -1;
    width: 100%;
  }
  .dic-promo-card a,
  .dic-ad-card a {
    width: 100%;
    justify-content: center;
  }
}

@media print {
  .dic-site-header,
  .dic-site-footer,
  .dic-related-grid,
  .dic-ad-slot,
  .dic-result-actions,
  .dic-back-link {
    display: none !important;
  }
  .dic-main { padding: 0; }
  .dic-card, .dic-article-shell, .dic-drug-checker-card { box-shadow: none; border: 0; }
}


.dic-food-shell { display: grid; gap: 16px; }
.dic-food-result-card {
  padding: 20px;
  border-radius: 20px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}
.dic-result-head-stack {
  align-items: flex-start;
  justify-content: flex-start;
}
.dic-food-result-body h4 {
  margin: 0 0 10px;
  color: #064e3b;
}
.dic-food-list {
  margin: 0 0 16px 20px;
  color: #14532d;
}
.dic-food-list li { margin-bottom: 10px; }
.dic-food-suggestions {
  padding: 18px;
  border-radius: 18px;
  background: #f9fafb;
}
.dic-food-suggestions strong {
  display: block;
  margin-bottom: 12px;
}
.dic-food-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.dic-food-chip {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 14px;
  background: #ecfdf5;
  color: var(--dic-primary-dark);
  font-weight: 700;
}
.dic-food-chip:hover { background: #d1fae5; }

.dic-med-worklist {
  margin-top: 22px;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  overflow: hidden;
}
.dic-med-worklist-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
}
.dic-med-worklist-summary::-webkit-details-marker {
  display: none;
}
.dic-med-worklist-summary-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.dic-med-worklist-summary-title {
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
}
.dic-med-worklist-summary-subtitle {
  color: var(--dic-muted);
  font-size: .92rem;
}
.dic-med-worklist-summary-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.dic-med-worklist-summary-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-weight: 800;
}
.dic-med-worklist-summary-icon {
  width: 12px;
  height: 12px;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: rotate(45deg);
  transition: transform .2s ease;
  margin-top: -4px;
}
.dic-med-worklist[open] .dic-med-worklist-summary-icon {
  transform: rotate(225deg);
  margin-top: 4px;
}
.dic-med-worklist-panel {
  padding: 0 22px 22px;
  border-top: 1px solid #e5e7eb;
}
.dic-med-worklist-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}
.dic-med-worklist-head h3 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 1.15rem;
}
.dic-med-worklist-head p {
  margin: 0;
  color: var(--dic-muted);
}
.dic-med-worklist-stats,
.dic-med-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dic-med-stat-pill,
.dic-med-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.dic-med-badge.is-current {
  background: #dcfce7;
  color: #166534;
}
.dic-med-badge.is-past {
  background: #f3f4f6;
  color: #4b5563;
}
.dic-med-badge.is-favorite {
  background: #fef3c7;
  color: #92400e;
}
.dic-med-worklist-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 12px;
}
.dic-med-worklist-add-field span {
  display: inline-block;
  margin-bottom: 8px;
  color: #9ca3af;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.dic-med-worklist-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dic-med-worklist-actions p {
  margin: 0;
  color: var(--dic-muted);
  font-size: .95rem;
}
.dic-text-button {
  border: 0;
  background: transparent;
  color: #b91c1c;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}
.dic-med-worklist-list {
  display: grid;
  gap: 12px;
}
.dic-med-worklist-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.dic-med-worklist-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.dic-med-worklist-item-copy {
  min-width: 0;
}
.dic-med-name {
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 800;
  color: #111827;
  cursor: pointer;
  text-align: left;
  margin-bottom: 8px;
}
.dic-med-name:hover {
  color: var(--dic-primary);
}
.dic-med-worklist-row-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.dic-mini-button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 9px 11px;
  background: #f3f4f6;
  color: #374151;
  font-weight: 700;
}
.dic-mini-button.is-danger {
  background: #fef2f2;
  color: #b91c1c;
}
.dic-batch-summary {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}
.dic-batch-summary h3 {
  margin: 0 0 8px;
  color: #1e3a8a;
}
.dic-batch-summary p {
  margin: 0;
  color: #1d4ed8;
}
.dic-batch-result-group,
.dic-batch-source-group {
  margin-top: 16px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
}
.dic-batch-result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.dic-batch-result-head h4,
.dic-batch-source-group h4 {
  margin: 0;
  color: #111827;
  font-size: 1rem;
}
.dic-batch-source-group .dic-result-sources h3 {
  font-size: .95rem;
}

@media (max-width: 900px) {
  .dic-med-worklist-summary,
  .dic-med-worklist-head,
  .dic-med-worklist-item-top,
  .dic-batch-result-head,
  .dic-med-worklist-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .dic-med-worklist-summary-meta {
    width: 100%;
    justify-content: space-between;
  }
  .dic-med-worklist-toolbar {
    grid-template-columns: 1fr;
  }
  .dic-med-worklist-row-actions {
    justify-content: flex-start;
  }
}
