/*
 * Informix Analyser - page-specific CSS overlay.
 *
 * Loaded by /drwatson/content.php so it applies to every analyser page
 * without touching the shared site CSS. Adds rules the legacy site
 * stylesheet does not provide (notably table styling) and aligns the
 * heading / list / pre / em / link rendering with the surrounding
 * legacy.css typography so headings, paragraphs, lists, and tables
 * read as one cohesive page.
 */

/* DrWatson product mark anchored to the top-right of the content
   card on every page (rendered by content.php). Floated so the page
   body text wraps around it cleanly when the fragment starts with
   an <h3>; the small bottom margin keeps the first line of text
   from butting against the bottom edge. */
.drwatson-content .drwatson-corner-mark {
	float: right;
	width: 100px;
	height: auto;
	margin: 0 0 8px 12px;
	image-rendering: -webkit-optimize-contrast;
}

/* Tables: visible grid, tahoma cells matching the legacy <td>/<th> rules */
.drwatson-content table.legacy {
	border-collapse: collapse;
	margin: 8px 4px 12px 4px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
	width: auto;
	max-width: 100%;
	text-align: left;
}

.drwatson-content table.legacy th,
.drwatson-content table.legacy td {
	border: 1px solid #c0a880;
	padding: 6px 10px;
	vertical-align: top;
	text-align: left;
}

/* Page tagline rendered by content.php above every page's h3 title.
   Matched to the live h2 styling from /css/oninit.css (Quicksand
   18 px, weight 500, orange #e68a00) so the tagline reads as part of
   the same visual family as the section headings. Thin tan underline
   rule separates the tagline from the page content below. */
.drwatson-content .analyser-page-tagline {
	font-family: 'Quicksand', sans-serif;
	font-size: 18px;
	font-weight: 500;
	color: #e68a00;
	border-bottom: 1px solid #d8c8a8;
	padding-bottom: 6px;
	margin-bottom: 8px;
	text-align: left;
}

/* Bottom variant — rule sits above the tagline so it reads as a
   page-closing kicker rather than a heading. The .analyser-page-
   tagline-bottom class is applied alongside .analyser-page-tagline
   in content.php; this rule overrides the border placement. */
.drwatson-content .analyser-page-tagline.analyser-page-tagline-bottom {
	border-bottom: none;
	border-top: 1px solid #d8c8a8;
	padding-bottom: 0;
	padding-top: 6px;
	margin-bottom: 0;
	margin-top: 18px;
}

/* Glossary: matches the titled-box style used on the ripper
   schema-translation page (.dialect-example fieldset). Each term is
   its own <fieldset> with the term as the <legend>; clicking
   through from a finding (<a href="...#anchor">) highlights the
   target box rather than a single line. */
.drwatson-content .glossary-entry fieldset {
	border: 1px solid #c0a880;
	background: #fbf8ee;
	padding: 8px 12px 12px 12px;
	margin: 0 0 12px 0;
	font-family: tahoma;
	font-size: 12px;
	color: #000;
	max-width: 64em;
	scroll-margin-top: 90px;       /* anchored jump leaves the box visible
	                                  below the sticky site header */
}

.drwatson-content .glossary-entry fieldset:target {
	border-color: #b07e25;
	box-shadow: 0 0 0 2px #fdf6df;
}

.drwatson-content .glossary-entry legend {
	font-family: tahoma;
	font-size: 13px;
	font-weight: bold;
	color: #7e4400;
	padding: 0 6px;
	text-align: left;
}

.drwatson-content .glossary-entry p {
	margin: 4px 0;
}

.drwatson-content table.legacy th {
	background-color: #f2eddc;
	color: #7e4400;
	font-weight: bold;
}

.drwatson-content table.legacy tr:nth-child(even) td {
	background-color: #fbf8ee;
}

/* Lists: legacy.css sets font but not list-style; round bullets plus
 * a sensible indent so the bullet itself shows up. li is left without
 * the tahoma colour cascade from li.legacy (#cccccc) which would make
 * the bullet itself invisible on the cream background. */
.drwatson-content ul.legacy {
	list-style-type: disc;
	margin-left: 24px;
	padding-left: 16px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
}

.drwatson-content ul.legacy li {
	margin-top: 2px;
	margin-bottom: 2px;
	color: #000000;
}

/* Ordered lists: same baseline as ul.legacy plus an explicit
 * list-style-type so site-wide framework CSS that resets list-style
 * to none does not leave the steps unnumbered. The number is the
 * point of an ordered list - if it disappears the procedure reads
 * as a flat block of unrelated paragraphs. */
.drwatson-content ol.legacy {
	list-style-type: decimal;
	list-style-position: outside;
	margin: 8px 4px 12px 24px;
	padding-left: 16px;
	font-family: tahoma;
	font-size: 12px;
	color: #000000;
}

.drwatson-content ol.legacy li {
	display: list-item;
	margin-top: 2px;
	margin-bottom: 2px;
	color: #000000;
}

/* Headings: legacy.css sets h2.legacy / h3.legacy, but raw <h3> tags
 * (used by some pages for the page title) and <h2> without class are
 * unstyled. Bring them in line. */
.drwatson-content h3 {
	font-size: 16px;
	font-family: tahoma;
	color: #7e4400;
	margin-top: 8px;
	margin-bottom: 12px;
	text-align: left;
}

.drwatson-content h2.legacy {
	margin-top: 18px;
	margin-bottom: 6px;
}

/* Inline em used for code-ish identifiers - legacy.css declares the
 * font but not the colour distinction; use the same olive code shade
 * as pre.legacy / .command so they read as code inline. */
.drwatson-content em.legacy,
.drwatson-content em {
	color: #6b5a1f;
	font-style: normal;
}

/* Body paragraphs: keep them readable with a comfortable line-height. */
.drwatson-content p,
.drwatson-content p.legacy {
	line-height: 1.45;
	max-width: 64em;
	text-align: left;
}

/* Code blocks: the legacy class sets monospace + olive but no
 * background; a faint cream wash makes long pre blocks separable
 * from the surrounding prose. */
.drwatson-content pre.legacy {
	background-color: #fbf8ee;
	border: 1px solid #e8e0c8;
	padding: 8px 10px;
	overflow-x: auto;
	max-width: 100%;
	white-space: pre;
	margin: 8px 0;
}

/* Sidenav section divider. Used to group "Documentation" links under
 * a non-clickable label without nesting markup. The legacy site CSS
 * has no rule for this, so style it inline-ish here. */
.sidenav .sidenav-section {
	display: block;
	margin-top: 14px;
	margin-bottom: 4px;
	padding: 4px 12px 4px 12px;
	border-top: 1px solid #d8c8a8;
	font-family: tahoma;
	font-size: 11px;
	font-weight: bold;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	color: #7e4400;
}

/* CODE_ACTIONS.MD icon button on the Q&A answer card.
 * 24x24 chip, cream palette, .copied flip-state for the 1.5 s
 * success blip. button. qualifier keeps it specificity-tied with
 * the surrounding `.drwatson-content button` rules. */
.drwatson-content button.copy-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 1px solid #c0a880;
    border-radius: 4px;
    background: transparent;
    color: #7e4400;
    cursor: pointer;
    vertical-align: middle;
    flex: 0 0 auto;
}
.drwatson-content button.copy-icon-btn:hover { background: #f2eddc; }
.drwatson-content button.copy-icon-btn svg {
    width: 14px; height: 14px; display: block;
}
.drwatson-content button.copy-icon-btn .icon-check { display: none; }
.drwatson-content button.copy-icon-btn.copied {
    color: #2e7d32; border-color: #2e7d32;
}
.drwatson-content button.copy-icon-btn.copied .icon-copy  { display: none; }
.drwatson-content button.copy-icon-btn.copied .icon-check { display: block; }
.drwatson-content button.copy-icon-btn--inset {
    margin: 0;
    background: #fbf8ee;
}

/* DrWatson sidenav — moved out of sidenav.inc (UI §6.4: no <style> under
   <aside>, no inline style=). The signout <form> starts hidden and is shown
   by the whoami JS (which sets element.style.display directly). */
.legal-nav .signout-form { display: none; margin: 0; }
.legal-nav .signout-link {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 100%;
    text-align: left;
    cursor: pointer;
}
.legal-nav .signout-link:hover { color: var(--orange); }
.legal-nav .nav-internal-tag {
    font-size: 9px;
    color: var(--muted);
    font-weight: normal;
}

/* ===== moved out of fragment <style> blocks (§6.4 element-permitted-content) ===== */
/* portal.html — portal app UI */

/* Portal-specific UI bits (drop zone, cards, status pills, Q&A
   panel) layered on top of the drwatson-content legacy palette.
   Inline so they ship with the fragment and don't require a
   separate stylesheet on the static side. */
.drwatson-content .portal-offline {
    background: #fbece6; border: 1px solid #b04a2a; color: #7e2c10;
    padding: 8px 12px; border-radius: 4px; font-weight: bold;
    text-align: center;
}
.drwatson-content #upload-section.upload-greyed {
    opacity: 0.45; pointer-events: none; filter: grayscale(0.6);
}
.drwatson-content #upload-section.upload-greyed .drop-zone {
    cursor: not-allowed;
}
.drwatson-content #reasons-to-register {
    margin: 12px 0 16px 0; padding: 12px 16px;
    background: #fdf6df; border: 1px solid #c0a880;
    border-left: 4px solid #7e4400;
}
/* Top header strip wrapping the status-bar + product radio on a
   single row. Wraps on narrow viewports. */
.drwatson-content .portal-header {
    display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px;
    margin: 6px 0 10px 0;
}
.drwatson-content .portal-header > .status-bar {
    flex: 1 1 360px; margin: 0;
}
.drwatson-content .portal-header-product {
    margin: 0; padding: 4px 10px;
    background: #fbf3e0; border: 1px solid #c0a880;
    border-left: 4px solid #2c6da9;
    display: inline-flex; gap: 12px; align-items: center;
    flex: 0 0 auto;
}
.drwatson-content .portal-header-product legend {
    padding: 0 6px; font-weight: bold; color: #5a4a2a;
    font-size: 0.85em;
}
/* Compact one-line status bar — identity + tier + monthly usage +
   signout. Replaces the old vertical usage-panel card per operator
   request 2026-05-29. */
.drwatson-content .status-bar {
    margin: 6px 0 10px 0; padding: 6px 12px;
    background: #fbf3e0; border: 1px solid #c0a880;
    border-left: 4px solid #5a7e44;
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    font-size: 0.92em; line-height: 1.5;
}
.drwatson-content .status-bar.status-bar-anonymous {
    background: #fdf6df; border-left-color: #7e4400;
}
.drwatson-content .status-identity { font-weight: bold; }
/* T243: running total of Q&A tokens on the Submissions title line. */
.user-token-total { font-size: 13px; font-weight: normal; color: #7e6a4a; }
.drwatson-content .status-identity code {
    background: transparent; font-weight: normal;
}
/* T235c: PDF-logo box -- reuses the Product selector's box shape, with a
   distinct amber left border so the two header boxes read apart. */
.drwatson-content .portal-header-logo { border-left-color: #b06c12; }
.drwatson-content .portal-header-logo select {
    font-size: 0.9em; padding: 1px 4px; max-width: 180px;
}
.drwatson-content .status-usage {
    display: inline-flex; align-items: center; gap: 10px;
    flex-wrap: wrap;
}
.drwatson-content .status-tier {
    display: inline-block; padding: 1px 8px; border-radius: 3px;
    color: #fff; font-weight: bold; font-size: 0.85em;
    letter-spacing: 0.4px;
}
.drwatson-content .status-tier-free       { background: #777; }
.drwatson-content .status-tier-basic      { background: #2c6da9; }
.drwatson-content .status-tier-pro        { background: #b06c12; }
.drwatson-content .status-tier-enterprise { background: #2f6f3a; }
.drwatson-content .status-gb,
.drwatson-content .status-counts {
    color: #4a3a20; font-variant-numeric: tabular-nums;
}
.drwatson-content .status-counts { color: #6a5a40; font-size: 0.9em; }
.drwatson-content .status-upgrade {
    color: #7e4400; font-weight: bold; text-decoration: none;
}
.drwatson-content .status-upgrade:hover { text-decoration: underline; }
.drwatson-content .status-bar .logout-form { margin-left: auto; }
.drwatson-content .status-bar .logout-form button {
    padding: 2px 10px; font-size: 0.9em;
    background: #7e4400; color: #fbf8ee;
    border: 1px solid #7e4400; cursor: pointer;
}
.drwatson-content .status-bar .logout-form button:hover {
    background: #b07e25;
}
.drwatson-content .status-loading { color: #888; font-style: italic; }
/* Tier + monthly usage panel rendered via /drwatson-api/usage. */
.drwatson-content .usage-panel {
    margin: 12px 0 12px 0; padding: 10px 14px;
    background: #fbf3e0; border: 1px solid #c0a880;
    border-left: 4px solid #5a7e44;
    font-size: 0.92em; line-height: 1.45;
}
.drwatson-content .usage-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px;
}
.drwatson-content .usage-tier-badge {
    display: inline-block; padding: 2px 8px; border-radius: 3px;
    font-weight: bold; color: #fff; font-size: 0.85em;
    letter-spacing: 0.4px;
}
.drwatson-content .usage-tier-badge.usage-tier-free       { background: #777; }
.drwatson-content .usage-tier-badge.usage-tier-basic      { background: #2c6da9; }
.drwatson-content .usage-tier-badge.usage-tier-pro        { background: #b06c12; }
.drwatson-content .usage-tier-badge.usage-tier-enterprise { background: #2f6f3a; }
.drwatson-content .usage-month {
    color: #5a4a2a; font-variant-numeric: tabular-nums;
}
.drwatson-content .usage-bar-wrap {
    height: 8px; background: #e3d5af; border-radius: 4px;
    overflow: hidden; margin: 4px 0 6px 0;
}
.drwatson-content .usage-bar-fill {
    height: 100%; background: linear-gradient(90deg, #5a7e44, #b06c12 80%, #a02020 100%);
    transition: width 0.4s ease;
}
.drwatson-content .usage-line {
    margin: 2px 0; color: #4a3a20;
    font-variant-numeric: tabular-nums;
}
.drwatson-content .usage-stats { color: #6a5a40; font-size: 0.9em; }
.drwatson-content .usage-upgrade {
    margin-top: 6px; text-align: right;
}
.drwatson-content .usage-upgrade a {
    color: #7e4400; font-weight: bold; text-decoration: none;
}
.drwatson-content .usage-upgrade a:hover { text-decoration: underline; }
.drwatson-content ul.reasons { margin: 8px 0 8px 0; padding-left: 22px; }
.drwatson-content ul.reasons li { margin-bottom: 6px; line-height: 1.45; }
.drwatson-content .drop-zone {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem; padding: 36px 16px;
    border: 1px dashed #c0a880; background: #fbf8ee; cursor: pointer;
    font-family: tahoma, sans-serif; font-size: 12px; margin: 8px 0;
    transition: border-color 100ms, background 100ms;
}
.drwatson-content .drop-zone:hover, .drwatson-content .drop-zone.hover {
    border-color: #7e4400; background: #fdf6df;
}
.drwatson-content .drop-zone .drop-prompt { color: #7e4400; font-weight: bold; }
.drwatson-content .drop-zone .drop-filename { font-family: monospace; color: #000; }
.drwatson-content .drop-zone input[type=file] {
    /* Visually hide but keep focusable: display:none breaks Chrome's
       constraint-validation flow (the input has `required`, and
       hidden-from-flow inputs can't be focused to anchor the
       "please pick a file" bubble, so the submit aborts with the
       "invalid form control … is not focusable" console warning). */
    position: absolute; opacity: 0; width: 1px; height: 1px;
    padding: 0; margin: 0; pointer-events: none;
}
#upload-form button {
    margin-top: 8px; background: #7e4400; color: #fbf8ee; border: 1px solid #7e4400;
    padding: 4px 16px; font-family: tahoma, sans-serif; font-size: 12px; cursor: pointer;
}
/* Product-target radio fieldset. */
.drwatson-content .product-target {
    margin: 0 0 8px 0; padding: 6px 10px;
    background: #fbf3e0; border: 1px solid #c0a880;
    display: inline-flex; gap: 16px; align-items: center;
}
.drwatson-content .product-target legend {
    padding: 0 6px; font-weight: bold; color: #5a4a2a;
    font-size: 0.9em;
}
.drwatson-content .product-target-option {
    cursor: pointer; user-select: none;
    display: inline-flex; align-items: center; gap: 4px;
}
.drwatson-content .product-target-option input[type="radio"] {
    margin: 0;
}
#upload-form button:hover { background: #b07e25; border-color: #b07e25; }

/* SVG fuel gauges for the four upload steps. Semi-circular
   dial, needle rotates with the value, percentage centered below
   the arc, label + meta line below the SVG. Responsive: 4 gauges
   in a row on >= 600 px viewports, 2x2 grid on smaller. */
.drwatson-content .gauges-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 6px;
}
/* Detective-style rotating message under the gauges during the
   server-side processing / analysing phases. Faintly framed so
   it reads as an aside, not as a status string the user needs to
   act on. */
.drwatson-content .detective-message {
    margin: 10px auto 4px;
    text-align: center;
    font-size: 0.95em;
    font-style: italic;
    color: #5a4a2a;
    min-height: 1.4em;
    transition: opacity 0.3s ease;
}
@media (max-width: 600px) {
    .drwatson-content .gauges-row {
        grid-template-columns: repeat(2, 1fr);
    }
}
.drwatson-content .gauge-cell {
    text-align: center;
}
.drwatson-content .fuel-gauge {
    width: 100%;
    max-width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.drwatson-content .fuel-gauge .gauge-bg {
    fill: none;
    stroke: #e3d9bd;
    stroke-width: 8;
    stroke-linecap: round;
}
.drwatson-content .fuel-gauge .gauge-fill {
    fill: none;
    stroke: #b04a2a;          /* red at 0%; JS shifts to yellow + green */
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease, stroke 0.3s ease;
}
.drwatson-content .fuel-gauge .gauge-needle {
    stroke: #3a2a00;
    stroke-width: 2;
    stroke-linecap: round;
    transform-origin: 60px 68px;
    transition: transform 0.3s ease;
}
.drwatson-content .fuel-gauge.indeterminate .gauge-needle {
    animation: gauge-sweep 1.6s ease-in-out infinite alternate;
}
@keyframes gauge-sweep {
    from { transform: rotate(-60deg); }
    to   { transform: rotate(60deg); }
}
.drwatson-content .fuel-gauge .gauge-pivot {
    fill: #3a2a00;
}
.drwatson-content .fuel-gauge .gauge-pct {
    font-family: tahoma, sans-serif;
    font-size: 13px;
    fill: #3a2a00;
    font-weight: bold;
}
.drwatson-content .gauge-label {
    font-family: tahoma, sans-serif;
    font-size: 12px;
    font-weight: bold;
    color: #7e4400;
    margin: 0;
}
.drwatson-content .gauge-meta {
    font-family: monospace;
    font-size: 11px;
    color: #4a3c1a;
    margin: 2px 0 0 0;
    min-height: 1.2em;
}

.drwatson-content #submissions { display: flex; flex-direction: column; gap: 10px; margin: 10px 0; }
.drwatson-content .empty { font-style: italic; color: #4a3c1a; font-size: 12px; }
.drwatson-content .card {
    border: 1px solid #c0a880; border-left-width: 4px; background: #fbf8ee;
    padding: 0; font-family: tahoma, sans-serif; font-size: 12px;
    margin-bottom: 6px;
}
/* 2026-05-30: cards collapse to a filename + timestamp +
   status summary by default. Native <details> handles the expand
   toggle; we add operator-readable styling around it. */
.drwatson-content details.card { display: block; }
.drwatson-content details.card > summary {
    cursor: pointer; padding: 8px 14px;
    list-style: none;
    display: flex; flex-wrap: wrap; align-items: baseline;
    gap: 12px;
}
.drwatson-content details.card > summary::-webkit-details-marker { display: none; }
.drwatson-content details.card > summary::before {
    content: "▶";
    color: #7e4400; font-size: 10px;
    transition: transform 0.15s ease;
    display: inline-block;
}
.drwatson-content details.card[open] > summary::before {
    content: "▼";
}
.drwatson-content details.card > summary .filename {
    flex: 1; font-family: monospace; color: #000;
}
.drwatson-content details.card > summary .submitted-at {
    color: #4a3c1a; font-size: 11px;
    font-variant-numeric: tabular-nums;
}
.drwatson-content details.card > summary .status-pill {
    /* keep the existing pill styling defined below */
}
.drwatson-content details.card > summary .card-summary-findings {
    color: #4a3c1a; font-size: 11px;
}
.drwatson-content details.card[open] > .card-head,
.drwatson-content details.card[open] > .card-md5,
.drwatson-content details.card[open] > .card-body,
.drwatson-content details.card[open] > .download,
.drwatson-content details.card[open] > .qa-form,
.drwatson-content details.card[open] > .qa-answer-slot,
.drwatson-content details.card[open] > .admin-rerender,
.drwatson-content details.card[open] > .qa-saved-count {
    padding-left: 14px; padding-right: 14px;
}
.drwatson-content details.card > .card-head { padding-top: 4px; }
.drwatson-content details.card > p.card-body:first-of-type { padding-top: 4px; }
/* 2026-05-30: in-card animated progress bar shown while
   the submission is queued / processing / rendering. Replaces
   the top-of-page 4-gauge dashboard for re-renders (the gauges
   stay for fresh uploads which need byte+time tracking). The
   card's hx-trigger="every 2s" already swaps the card on each
   status change, so this element appears/disappears automatically. */
.drwatson-content details.card > .card-regen-progress,
.drwatson-content details.card .card-regen-progress {
    margin: 8px 14px; height: 20px;
    background: #f2eddc;
    border: 1px solid #c0a880;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}
.drwatson-content .card-regen-progress-bar {
    position: absolute; top: 0; bottom: 0; left: -30%;
    width: 30%;
    background: linear-gradient(90deg,
        transparent 0%, #c8761a 50%, transparent 100%);
    animation: card-regen-slide 1.6s ease-in-out infinite;
}
@keyframes card-regen-slide {
    0%   { left: -30%; }
    100% { left: 100%; }
}
.drwatson-content .card-regen-progress-label {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: #4a3c1a;
    pointer-events: none;
    font-weight: bold;
}
.drwatson-content details.card > .download:last-of-type,
/* 2026-05-30: Delete button — red so it visibly differs
   from the blue Regenerate. Confirm prompt is in the JS handler. */
.drwatson-content .admin-delete-form {
    display: inline-block; margin-left: 12px;
}
.drwatson-content .admin-delete-btn {
    background: #b52e2e; color: #fff;
    border: 1px solid #b52e2e;
    padding: 3px 10px; font-size: 11px;
    cursor: pointer;
}
.drwatson-content .admin-delete-btn:hover {
    background: #8a1f1f;
}
.drwatson-content details.card > .admin-rerender:last-of-type {
    margin-bottom: 10px;
}
.drwatson-content .card.status-queued       { border-left-color: #3b5f8f; }
.drwatson-content .card.status-running      { border-left-color: #c8761a; }
.drwatson-content .card.status-done         { border-left-color: #3d7b3d; }
.drwatson-content .card.status-failed       { border-left-color: #b52e2e; }
.drwatson-content .card.status-needs_select { border-left-color: #c8761a; }
.drwatson-content .card-head {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 0.5rem; margin-bottom: 6px;
}
.drwatson-content .job-id { font-family: monospace; font-size: 11px; color: #4a3c1a; word-break: break-all; }
.drwatson-content .status-pill {
    text-transform: uppercase; font-size: 10px; letter-spacing: 0.04em;
    padding: 2px 6px; border: 1px solid #c0a880; background: #f2eddc;
    color: #7e4400; font-weight: bold;
}
.drwatson-content .card.status-queued       .status-pill { color: #3b5f8f; }
.drwatson-content .card.status-running      .status-pill { color: #c8761a; }
.drwatson-content .card.status-done         .status-pill { color: #3d7b3d; }
.drwatson-content .card.status-failed       .status-pill { color: #b52e2e; }
.drwatson-content .card.status-needs_select .status-pill { color: #c8761a; }
.drwatson-content .kind-pill {
    background: #f2eddc; border: 1px solid #c0a880; color: #7e4400;
    padding: 1px 5px; margin-left: 4px; font-size: 11px; font-family: monospace;
}
.drwatson-content .card-filename {
    margin: 4px 0 0 0; font-size: 11px; color: #4a3c1a;
}
.drwatson-content .card-filename .card-label {
    font-weight: bold; color: #7e4400; margin-right: 4px;
}
.drwatson-content .card-filename .filename {
    font-family: monospace; color: #000;
    background: #f2eddc; border: 1px solid #c0a880;
    padding: 1px 5px; word-break: break-all;
}
.drwatson-content .card-md5 {
    margin: 4px 0 0 0; font-size: 11px; color: #4a3c1a;
}
.drwatson-content .card-md5 .card-label {
    font-weight: bold; color: #7e4400; margin-right: 4px;
}
.drwatson-content .card-md5 .md5 {
    font-family: monospace; color: #000;
    background: #f2eddc; border: 1px solid #c0a880;
    padding: 1px 5px; word-break: break-all;
    cursor: text; user-select: all;
}
.drwatson-content time.submitted-at { font-variant-numeric: tabular-nums; }
.drwatson-content .card-body { margin: 6px 0; color: #000; font-size: 12px; }
.drwatson-content .card-body.error { color: #b52e2e; }
.drwatson-content .download {
    display: inline-block; margin-top: 6px; padding: 4px 12px;
    background: #7e4400; color: #fbf8ee; text-decoration: none;
    border: 1px solid #7e4400; font-size: 12px;
}
.drwatson-content .download:hover { background: #b07e25; border-color: #b07e25; color: #fff; }
.drwatson-content .error-tail {
    background: #fdf0e8; border: 1px solid #d8a890; color: #7b1f1f;
    font-family: monospace; font-size: 11px; padding: 6px 8px;
    overflow-x: auto; max-height: 10rem; margin: 6px 0;
}
.drwatson-content .af-picker { list-style: none; padding: 0; margin: 6px 0; }
.drwatson-content .af-picker li label {
    display: flex; align-items: center; gap: 8px; padding: 4px 6px;
    cursor: pointer; font-size: 12px;
}
.drwatson-content .af-picker li label:hover { background: #fdf6df; }

.drwatson-content .qa-form {
    margin-top: 10px; display: flex; flex-direction: column; gap: 6px;
    border-top: 1px solid #c0a880; padding-top: 10px;
}
.drwatson-content .qa-label { font-size: 12px; font-weight: bold; color: #7e4400; }
.drwatson-content .qa-form textarea {
    width: 100%; box-sizing: border-box; border: 1px solid #c0a880;
    background: #fff; padding: 6px 8px; font-family: tahoma, sans-serif;
    font-size: 12px; resize: vertical; min-height: 3rem;
}
.drwatson-content .qa-form button {
    align-self: flex-start; background: #7e4400; color: #fbf8ee;
    border: 1px solid #7e4400; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.drwatson-content .qa-form button:hover { background: #b07e25; border-color: #b07e25; }
.drwatson-content .qa-answer-slot:empty { display: none; }
.drwatson-content .qa-answer {
    position: relative;
    margin-top: 8px; padding: 8px 10px; background: #fdf6df;
    border: 1px solid #c0a880; border-left: 3px solid #7e4400;
    font-size: 12px; line-height: 1.45;
    text-align: left;     /* explicit; the legacy centred ancestor is gone */
}
/* Tighten vertical rhythm inside the answer: the LLM emits <p> per
   paragraph, whose default ~1em margins read as too much whitespace
   between lines (operator 2026-06-09). */
.drwatson-content .qa-answer p { margin: 0 0 0.4em 0; }
.drwatson-content .qa-answer p:last-child { margin-bottom: 0; }
.drwatson-content .qa-answer ul,
.drwatson-content .qa-answer ol { margin: 0.3em 0 0.3em 1.2em; }
.drwatson-content .qa-answer li { margin: 0.1em 0; }
.drwatson-content .qa-answer pre { margin: 0.3em 0; }
.drwatson-content .qa-head {
    display: flex; align-items: flex-start; gap: 6px;
    justify-content: space-between;
}
.drwatson-content .qa-head .qa-question { flex: 1; }
.drwatson-content .qa-question {
    margin: 0 0 4px 0; font-size: 11px; color: #7e4400;
    font-weight: bold; text-align: left;
}
/* copy-icon-btn rules moved to /drwatson/drwatson.css per CODE_ACTIONS.MD
   per-product CSS convention. */
.drwatson-content .qa-save-btn[disabled] { cursor: wait; opacity: 0.6; }
/* Once a Q&A has been saved, the icon stays green-check +
   disabled so the operator can't re-click and create a duplicate
   sidecar entry. A new question lands a fresh card with a fresh
   icon. */
.drwatson-content .qa-save-btn.saved[disabled] {
    cursor: default; opacity: 0.7;
    color: #2e7d32; border-color: #2e7d32;
}
.drwatson-content .qa-saved-count {
    margin: 8px 0 4px 0; padding: 6px 10px;
    background: #fbf3e0; border: 1px solid #c0a880;
    border-left: 3px solid #2e7d32;
    font-size: 11px; color: #4a3a20; line-height: 1.5;
}
.drwatson-content .qa-saved-count strong { color: #2e7d32; }
.drwatson-content .qa-saved-hint {
    display: block; color: #6a5a40; font-size: 10px; margin-top: 2px;
}
.drwatson-content .qa-body {
    margin: 4px 0; color: #000;
    text-align: left;
    /* The LLM returns prose with embedded newlines; preserve them
       as paragraph breaks rather than collapsing to a single
       blob the browser then centre-aligns. */
    white-space: pre-wrap;
}
.drwatson-content .qa-body p,
.drwatson-content .qa-body li {
    margin: 0 0 8px 0; text-align: left;
}
.drwatson-content .qa-meta {
    margin: 6px 0 0 0; color: #4a3c1a;
    font-size: 11px; text-align: left;
}

.drwatson-content .logout-form button {
    background: transparent; color: #7e4400; border: 1px solid #c0a880;
    padding: 2px 8px; font-size: 11px; cursor: pointer;
}
.drwatson-content .logout-form button:hover { background: #7e4400; color: #fbf8ee; }
/* pricing.html — pricing CTAs */

.drwatson-content .pricing-cta-form {
    display: inline-block; margin: 0;
}
.drwatson-content .pricing-cta-form button {
    background: #7e4400; color: #fbf8ee;
    border: 1px solid #7e4400; padding: 4px 10px;
    font-family: tahoma, sans-serif; font-size: 12px;
    cursor: pointer; white-space: nowrap;
}
.drwatson-content .pricing-cta-form button:hover:not(:disabled) {
    background: #b07e25; border-color: #b07e25;
}
.drwatson-content .pricing-cta-form button:disabled {
    opacity: 0.55; cursor: not-allowed;
}
.drwatson-content a.pricing-cta-secondary {
    display: inline-block; padding: 4px 10px;
    border: 1px solid #c0a880; background: #fbf3e0; color: #6b4a18;
    font-family: tahoma, sans-serif; font-size: 12px;
    text-decoration: none; white-space: nowrap;
}
.drwatson-content a.pricing-cta-secondary:hover {
    background: #f0e0b0;
}
.drwatson-content .pricing-topup-form {
    margin: 12px 0; padding: 10px 14px;
    background: #fbf3e0; border: 1px solid #c0a880;
    display: inline-flex; gap: 12px; align-items: center;
}
.drwatson-content .pricing-topup-form label {
    font-family: tahoma, sans-serif; font-size: 12px;
}
.drwatson-content .pricing-topup-form input[type=number] {
    width: 5em; padding: 3px 6px;
    border: 1px solid #c0a880; background: #fff;
    font-family: tahoma, sans-serif; font-size: 12px;
}
/* portal-login / portal-enrol-totp / portal-verify-totp — shared login card
   (login uses input[type=email], the totp pages input[type=text]; both included.
   .portal-offline defined here wins over portal.html's, keeping the centered card). */

.drwatson-content .portal-offline {
    background: #fbece6; border: 1px solid #b04a2a; color: #7e2c10;
    padding: 8px 12px; border-radius: 4px; font-weight: bold;
    max-width: 460px; margin: 16px auto;
    text-align: center;
}
.drwatson-content .portal-login-card {
    max-width: 460px; margin: 16px auto;
    border: 1px solid #c0a880; background: #fbf8ee;
    padding: 12px 16px 16px 16px;
    font-family: tahoma, sans-serif; font-size: 12px;
}
.drwatson-content .portal-login-card legend {
    font-size: 13px; font-weight: bold; color: #7e4400; padding: 0 6px;
}
.drwatson-content .portal-login-card label {
    display: block; font-weight: bold; color: #7e4400;
    font-size: 12px; margin: 8px 0 4px 0;
}
.drwatson-content .portal-login-card input[type=email] {
    display: block; width: 100%; padding: 6px 8px;
    border: 1px solid #c0a880; background: #fff;
    font-family: tahoma, sans-serif; font-size: 13px;
    margin-bottom: 8px; box-sizing: border-box;
}
.drwatson-content .portal-login-card form button {
    width: 100%; background: #7e4400; color: #fbf8ee;
    border: 1px solid #7e4400; padding: 6px 12px;
    font-family: tahoma, sans-serif; font-size: 12px; cursor: pointer;
}
.drwatson-content .portal-login-card form button:hover {
    background: #b07e25; border-color: #b07e25;
}
.drwatson-content .login-error {
    color: #b04a2a; font-size: 12px; font-weight: bold;
    margin: 4px 0 8px 0;
}
.drwatson-content .portal-login-card input[type=text] {
    display: block; width: 100%; padding: 6px 8px;
    border: 1px solid #c0a880; background: #fff;
    font-family: tahoma, sans-serif; font-size: 13px;
    margin-bottom: 8px; box-sizing: border-box;
}

/* §6.4 no-inline-style: classes replacing inline style= on the fragments */
.dw-hidden { display: none; }
#upload-progress-row { margin-top: 0.5em; }
.drwatson-content .qpa-note {
    background: #fff4dc; border-left: 4px solid #d09020;
    padding: 0.75em 1em; margin: 0 0 1em 0;
}
.drwatson-content .qpa-note > p { margin: 0 0 0.4em 0; }
.drwatson-content .qpa-note > p:last-child { margin: 0; }
.drwatson-content .qpa-upload {
    background: #f8f8f8; border: 1px solid #c0a880;
    padding: 1em 1.25em; margin: 1em 0;
}
.drwatson-content .qpa-upload h2 { margin-top: 0; }
.drwatson-content .qpa-cta { font-weight: bold; }
.drwatson-content .qpa-internal { font-size: 9px; color: #999; font-weight: normal; }
