/* ============================================================
   Essay Helper — tool-specific styles
   ============================================================ */

.panel-title { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 0.7rem; }
.field-label { display: block; font-size: 0.8rem; font-weight: 800; color: var(--muted); letter-spacing: 0.02em; margin-bottom: 0.35rem; }
.feedback { margin: 0.6rem 0 0; }

.eh-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1rem; align-items: start; margin-top: 1rem; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip { font: inherit; font-size: 0.85rem; font-weight: 700; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 0.35rem 0.75rem; transition: all 0.12s ease; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-strong); }

.eh-target-row { display: flex; align-items: center; gap: 0.6rem; margin-top: 0.8rem; }
.eh-target-row .number-input { width: 90px; }
.eh-target-note { font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.eh-plan-grid { display: grid; }
.eh-plan-input { resize: vertical; line-height: 1.5; margin-bottom: 0.55rem; }
.eh-title-input { font-weight: 700; margin-bottom: 0.55rem; }
.eh-essay-input { resize: vertical; line-height: 1.7; min-height: 220px; }

.eh-stats-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 0.7rem; }
.eh-stat { font-size: 0.85rem; color: var(--muted); background: var(--brand-softer); border-radius: var(--r-sm); padding: 0.3rem 0.6rem; }
.eh-stat strong { color: var(--brand-strong); font-variant-numeric: tabular-nums; }

.eh-progress { height: 10px; background: var(--line); border-radius: 999px; margin: 0.75rem 0 0.35rem; overflow: hidden; }
.eh-progress-fill { height: 100%; width: 0; background: var(--brand); border-radius: 999px; transition: width 0.35s ease; }
.eh-progress-fill.over { background: var(--bad); }
.eh-progress-note { font-size: 0.78rem; color: var(--muted); font-weight: 700; margin: 0; }

.eh-foot { display: flex; gap: 0.55rem; margin-top: 0.7rem; flex-wrap: wrap; }

.eh-structure-item { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-sm); padding: 0.45rem 0.65rem; margin-bottom: 0.5rem; }
.eh-structure-item h3 { margin: 0 0 0.2rem; font-size: 0.85rem; color: var(--brand-strong); }
.eh-structure-item p { margin: 0; font-size: 0.82rem; color: var(--ink); line-height: 1.45; }

.eh-saved-hint { font-size: 0.78rem; color: var(--muted); margin: 0 0 0.5rem; }
.eh-saved-empty { color: var(--muted); font-size: 0.85rem; border: 1px dashed var(--line); border-radius: var(--r-md); padding: 0.6rem; text-align: center; }
.eh-saved-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.eh-saved-item { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 0.5rem; border: 1px solid var(--line); border-radius: var(--r-md); padding: 0.45rem 0.55rem; background: #fffdf6; }
.eh-saved-title { font-weight: 800; font-size: 0.85rem; margin: 0; }
.eh-saved-meta { font-size: 0.7rem; color: var(--muted); margin: 0; }
.eh-saved-actions { grid-row: span 2; display: flex; flex-direction: column; gap: 0.3rem; }
.eh-saved-actions button { font: inherit; font-size: 0.72rem; font-weight: 700; cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 0.25rem 0.45rem; }
.eh-saved-actions button:hover { border-color: var(--brand); }
.eh-saved-actions .danger:hover { border-color: var(--bad); color: var(--bad); }

.print-sheet { display: none; }
@media print {
  @page { size: A4; margin: 18mm; }
  body > * { display: none !important; }
  .print-sheet { display: block !important; font-size: 11.5pt; line-height: 1.7; }
  .print-sheet h1 { text-align: center; font-size: 20pt; margin: 0 0 12pt; }
  .print-sheet p { margin: 0 0 10pt; text-align: justify; }
}

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