/* Wyjściowo — static mockups · Heroic Design System */
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(20 14% 8%);
  --card: hsl(0 0% 100%);
  --muted: hsl(30 20% 96%);
  --muted-foreground: hsl(25 6% 45%);
  --secondary: hsl(36 33% 94%);
  --border: hsl(30 10% 88%);
  --input: hsl(30 10% 88%);
  --primary: hsl(20 14% 8%);
  --primary-foreground: hsl(0 0% 100%);
  --accent: hsl(18 88% 52%);
  --accent-foreground: hsl(0 0% 100%);
  --destructive: hsl(0 75% 50%);
  --destructive-foreground: hsl(0 0% 100%);
  --radius: 4px;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Archivo", "Inter", system-ui, sans-serif;
  /* Report page (session_status completed) — warm editorial palette, overridable by themes */
  --report-bg: #faf8f4;
  --report-ink: #1a1a1a;
  --report-muted: #6b6b6b;
  --report-border: #e6e2d8;
  --report-panel-alt: #f1ede4;
  --report-accent: #9c4a2e;
  --report-surface: #fff;
}
html.dark {
  color-scheme: dark;
  --background: hsl(20 10% 8%);
  --foreground: hsl(0 0% 96%);
  --muted: hsl(20 8% 14%);
  --muted-foreground: hsl(25 6% 55%);
  --secondary: hsl(20 8% 14%);
  --border: hsl(20 8% 20%);
  --input: hsl(20 8% 20%);
  --card: hsl(20 10% 10%);
  --report-bg: hsl(20 10% 8%);
  --report-ink: hsl(0 0% 96%);
  --report-muted: hsl(25 6% 55%);
  --report-border: hsl(20 8% 20%);
  --report-panel-alt: hsl(20 8% 14%);
  --report-accent: hsl(15 55% 55%);
  --report-surface: hsl(20 10% 10%);
}
html.dark select { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%23F5F5F5' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>"); }
html.dark .report-page .photo-ph,
html.dark .report-page .ph { background: rgba(255,255,255,.06); }
html.dark .report-page tbody tr:nth-child(even) { background: rgba(255,255,255,.04); }
html.dark .report-page .chip { border-color: rgba(255,255,255,.4); }
* { box-sizing: border-box; border-color: var(--border); }
html { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: var(--font-sans); line-height: 1.6; }
a { color: inherit; }

.shell { max-width: 640px; margin: 0 auto; padding: 40px 24px 80px; min-height: 100vh; display: flex; flex-direction: column; }
@media (min-width: 640px) { .shell { padding-top: 64px; } }
.header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 48px; }
.wordmark { font-size: 1.125rem; font-weight: 600; text-decoration: none; letter-spacing: -0.005em; }
.main { flex: 1; }
.footer { margin-top: 80px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8125rem; color: var(--muted-foreground); }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: none; background: transparent; color: var(--foreground); cursor: pointer; padding: 0; flex-shrink: 0; }
.theme-toggle:hover { opacity: 0.7; }

/* Type */
.font-display { font-family: var(--font-display); }
.text-display { font-family: var(--font-display); font-size: clamp(3rem,7vw,5.75rem); line-height: 1.02; letter-spacing: -0.025em; font-weight: 600; margin: 0; }
.text-h1 { font-family: var(--font-display); font-size: clamp(2.25rem,4vw,3.25rem); line-height: 1.08; letter-spacing: -0.02em; font-weight: 600; margin: 0; }
.text-h2 { font-family: var(--font-display); font-size: clamp(1.75rem,3vw,2.25rem); line-height: 1.15; letter-spacing: -0.015em; font-weight: 600; margin: 0; }
.text-h3 { font-family: var(--font-display); font-size: 1.5rem; line-height: 1.25; letter-spacing: -0.01em; font-weight: 600; margin: 0; }
.text-h4 { font-size: 1.125rem; line-height: 1.35; font-weight: 600; margin: 0; }
.text-body-lg { font-size: 1.125rem; line-height: 1.6; }
.text-body { font-size: 1rem; line-height: 1.6; }
.text-caption { font-size: 0.8125rem; line-height: 1.45; color: var(--muted-foreground); }
.text-overline { font-size: 0.75rem; line-height: 1.2; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }

.muted { color: var(--muted-foreground); }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; } .mt-10 { margin-top: 40px; } .mt-12 { margin-top: 48px; } .mt-16 { margin-top: 64px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; } .mb-8 { margin-bottom: 32px; } .mb-10 { margin-bottom: 40px; } .mb-12 { margin-bottom: 48px; }

/* Page title */
.page-title { margin-bottom: 40px; }
.page-title .eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-foreground); margin: 0 0 16px; }
.page-title .lede { margin: 20px 0 0; font-size: 1.125rem; color: var(--muted-foreground); }

/* Forms */
label.field-label { display: block; margin-bottom: 8px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }
label.field-label .hint { margin-left: 8px; font-size: 0.8125rem; font-weight: 400; text-transform: none; letter-spacing: normal; color: var(--muted-foreground); }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--input); background: var(--card); color: var(--foreground); font-family: inherit; font-size: 1rem; line-height: 1.6; border-radius: var(--radius); transition: border-color 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--foreground); }
textarea { min-height: 112px; resize: vertical; }
select { appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='none' stroke='%230F1117' stroke-width='1.5' d='M1 1l5 5 5-5'/></svg>"); background-repeat: no-repeat; background-position: right 16px center; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { padding: 0; margin: 0 0 24px; }
.field-error { margin: 8px 0 0; font-size: 0.8125rem; color: var(--destructive); }

/* Buttons */
.btn { display: inline-block; padding: 16px 24px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; border-radius: var(--radius); border: 0; cursor: pointer; font-family: inherit; text-decoration: none; transition: opacity 0.2s; text-align: center; }
.btn:hover { opacity: 0.9; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-danger { background: var(--destructive); color: var(--destructive-foreground); }
.btn-outline { background: transparent; color: var(--foreground); border: 1px solid var(--foreground); }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-logout { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-foreground); }
.btn-logout:hover { color: var(--foreground); }

/* Cards / callouts */
.card { padding: 20px 24px; border: 1px solid var(--border); background: var(--secondary); border-radius: var(--radius); }
.callout { padding: 16px 20px; border-left: 2px solid var(--accent); background: var(--secondary); border-radius: var(--radius); }
.callout-error { border-left-color: var(--destructive); }
.outfit { padding: 24px; border: 1px solid var(--border); background: var(--card); border-radius: var(--radius); }
.outfit ul { margin: 16px 0 0; padding: 0 0 0 20px; list-style: none; border-left: 2px solid var(--accent); }
.outfit ul li { padding: 4px 0; }

.grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3,1fr); } }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2,1fr); } .grid-2 .col-2 { grid-column: span 2; } }
dl { margin: 0; } dt { margin: 0; } dd { margin: 0; }
.space-y-5 > * + * { margin-top: 20px; }
.space-y-8 > * + * { margin-top: 32px; }

/* Upload zone */
.upload {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px dashed var(--input); background: var(--card); padding: 40px 24px;
  border-radius: var(--radius); cursor: pointer; text-align: center; color: var(--muted-foreground);
}
.upload:hover { border-color: var(--foreground); }
.upload .file-name { display: block; margin-top: 16px; color: var(--foreground); font-size: 1.125rem; font-weight: 600; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Spinner */
.spinner { width: 56px; height: 56px; border: 2px solid var(--border); border-top-color: var(--foreground); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Icon badge */
.badge-icon { width: 64px; height: 64px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--foreground); border-radius: var(--radius); }
.badge-icon.solid { background: var(--accent); color: var(--accent-foreground); border-color: transparent; }

/* Mockup index */
.mockup-list { list-style: none; padding: 0; }
.mockup-list li { border-bottom: 1px solid var(--border); }
.mockup-list a { display: block; padding: 16px 0; text-decoration: none; }
.mockup-list a:hover { color: var(--accent); }
.mockup-list .num { display: inline-block; width: 48px; color: var(--muted-foreground); font-size: 0.8125rem; }

/* Report page (session_status completed) — editorial scope, themable via --report-* tokens */
.report-page {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--report-ink);
}
.report-page * { box-sizing: border-box; }
.report-page .overline { font-size: 0.6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--report-muted); font-weight: 500; }
.report-page h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.05; font-weight: 400; margin: 24px 0 0; letter-spacing: -.02em; }
.report-page h2 { font-family: Georgia, serif; font-size: clamp(1.75rem, 4vw, 2.625rem); font-weight: 400; margin: 24px 0 0; letter-spacing: -.01em; }
.report-page h3 { font-family: Georgia, serif; font-size: clamp(1.375rem, 3vw, 2rem); font-weight: 400; margin: 0; letter-spacing: -.01em; max-width: 560px; }
.report-page p { margin: 8px 0 0; }
.report-page .muted { color: var(--report-muted); }
.report-page .center { text-align: center; display: block; }
.report-page .cap { font-size: 0.6875rem; }
.report-page .lede { font-size: 1.0625rem; line-height: 1.6; max-width: 640px; margin-top: 20px; }
.report-page .img-caption { margin-top: 8px; }
.report-page .palette-group { margin-top: 32px; }

/* Report — hero */
.report-page .hero { padding: 64px 0 40px; }
@media (min-width: 640px) { .report-page .hero { padding: 96px 0 40px; } }
.report-page .meta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.report-page .hr { height: 1px; background: var(--report-border); margin-top: 40px; }

/* Report — section block */
.report-page section.block { padding: 16px 0 40px; }

/* Report — panel */
.report-page .panel { background: var(--report-surface); border: 1px solid var(--report-border); border-radius: 12px; padding: 32px; }
@media (min-width: 640px) { .report-page .panel { padding: 48px; } }
.report-page .panel.alt { background: var(--report-panel-alt); }
.report-page .panel h2 { margin-top: 16px; }
.report-page .head-icon { display: flex; align-items: center; gap: 12px; }

/* Report — profile grid */
.report-page .pf-grid { margin-top: 32px; display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
@media (max-width: 639px) { .report-page .pf-grid { grid-template-columns: 1fr; } }
.report-page .photo-ph { aspect-ratio: 3/4; border: 1px dashed var(--report-border); background: rgba(241,237,228,.6); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--report-muted); gap: 6px; font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; }
.report-page .photo-ph > span:first-child { font-size: 1.5rem; }
.report-page .portrait-img { width: 200px; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 1px solid var(--report-border); display: block; }
.report-page .pf-list { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 40px; }
@media (max-width: 639px) { .report-page .pf-list { grid-template-columns: 1fr; } }
.report-page .pf { border-bottom: 1px solid var(--report-border); padding-bottom: 14px; }
.report-page .pf dt { margin-bottom: 6px; }
.report-page .pf dd { margin: 0; font-size: 0.9375rem; }

/* Report — outfit cards */
.report-page .outfits { display: flex; flex-direction: column; gap: 40px; padding: 16px 0 40px; }
/* .card intentionally inherits padding:20px 24px from the global .card rule (style.css:85) — not reset here */
.report-page .card { background: var(--report-surface); border: 1px solid var(--report-border); border-radius: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.04); overflow: hidden; }
.report-page .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 32px; border-bottom: 1px solid var(--report-border); flex-wrap: wrap; }
@media (min-width: 640px) { .report-page .card-head { padding: 48px; } }
.report-page .row-h { display: flex; gap: 20px; align-items: baseline; }
.report-page .numeral { font-family: Georgia, serif; font-size: 1.875rem; color: var(--report-accent); line-height: 1; }
.report-page .badge { color: #fff; border-radius: 9999px; padding: 8px 16px; font-size: 0.6875rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 500; align-self: flex-start; white-space: nowrap; background: var(--report-ink); }
.report-page .badge--formalny { background: #1f2a44; }
.report-page .badge--business-casual { background: #6b6a2c; }
.report-page .badge--smart-casual { background: #6b2330; }

/* Report — visualization section */
.report-page .viz { padding: 20px; border-bottom: 1px solid var(--report-border); }
@media (min-width: 640px) { .report-page .viz { padding: 32px; } }
.report-page .viz-grid { margin-top: 16px; display: grid; grid-template-columns: 1fr 260px; gap: 40px; }
@media (max-width: 639px) { .report-page .viz-grid { grid-template-columns: 1fr; gap: 24px; } }
.report-page .viz-text { display: flex; flex-direction: column; gap: 20px; font-size: 0.9375rem; line-height: 1.65; }
.report-page .viz-text p { margin: 6px 0 0; }
.report-page .viz-graphic { display: flex; flex-direction: column; gap: 8px; }
.report-page .ph { aspect-ratio: 3/4; max-width: 280px; width: 100%; border: 1px dashed var(--report-border); background: rgba(241,237,228,.6); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-direction: column; color: var(--report-muted); gap: 6px; font-size: 1.5rem; }
.report-page .ph .cap { font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; }
.report-page .outfit-img { max-width: 280px; width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 8px; border: 1px solid var(--report-border); display: block; }

/* Report — items table */
.report-page .tbl-wrap { overflow-x: auto; padding: 20px; }
@media (min-width: 640px) { .report-page .tbl-wrap { padding: 32px; } }
.report-page table { width: 100%; min-width: 480px; border-collapse: collapse; }
.report-page th { text-align: left; padding: 12px 16px; font-size: 0.6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--report-muted); font-weight: 500; border-bottom: 1px solid var(--report-border); }
.report-page td { padding: 12px 16px; vertical-align: top; font-size: 0.9375rem; }
.report-page tbody tr:nth-child(even) { background: rgba(241,237,228,.5); }
.report-page .right { text-align: right; }
.report-page .cat { font-size: 0.6875rem; letter-spacing: .1em; text-transform: uppercase; color: var(--report-muted); }
.report-page .chip { display: inline-flex; align-items: center; gap: 4px; border: 1px solid rgba(26,26,26,.7); border-radius: 9999px; padding: 4px 10px; font-size: 0.6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--report-ink); text-decoration: none; transition: .15s; white-space: nowrap; }
.report-page .chip:hover { background: var(--report-ink); color: var(--report-bg); }
.report-page td.right { vertical-align: middle; }

/* Report — color palette swatches */
.report-page .palette { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 20px; }
.report-page .sw { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.report-page .dot { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--report-border); box-shadow: 0 1px 2px rgba(0,0,0,.05); display: inline-flex; align-items: center; justify-content: center; position: relative; }
.report-page .sw .x { color: #fff; font-weight: 700; mix-blend-mode: difference; }
.report-page .sw-name { font-size: 0.6875rem; color: var(--report-muted); letter-spacing: .05em; }

/* Report — download */
.report-page .download-block { padding: 32px 0 80px; border-top: 1px solid var(--report-border); margin-top: 8px; }
.report-page .download-block h2 { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; margin: 0 0 12px; }
.report-page .download-block p { font-size: 0.9375rem; color: var(--report-muted); margin: 0 0 24px; }
.report-page .download-block .note { font-size: 0.6875rem; color: var(--report-muted); display: block; margin-top: 16px; }
