/* Shared workspace theme; analysis and report data retain their existing structure. */
.signout { color:#b8cfc5; background:transparent; border:0; text-align:left; font-size:11px; margin:16px 5px 0; cursor:pointer; }
@media(max-width:800px) { .signout { margin:0; padding:10px; } }
:root {
  --font: 'Inter', 'Segoe UI', sans-serif;
  --sidebar: 238px;
  --mist: #f6f8f7;
  --ink: #173b34;
  --muted: #71817c;
  --line: #e4ebe7;
  --shadow: 0 2px 5px #173b3403;
  --radius: 16px;
}
body { font-size: 14px; }
.icon { width: 19px; height: 19px; flex: none; vertical-align: middle; }
.sidebar { padding: 36px 20px 20px; background: #102f2a; }
.brand { padding: 0 10px; }
.logo { gap: 10px; }
.logo-mark { width: 34px; }
.logo-en { font-family: 'Outfit', sans-serif; font-size: 27px; }
.logo-ar { font-size: 24px; }
.logo-rule { opacity: .35; width: 1px; }
.brand-product { font-size: 9px; letter-spacing: .2em; color: #9cb7ad; margin-top: 12px; }
.nav-label { margin: 52px 12px 14px; color: #88a79b; font-size: 10px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.nav { margin: 0; gap: 7px; }
.nav a { display: flex; gap: 12px; align-items: center; padding: 13px; font-size: 12px; border: 1px solid transparent; color: #b8cfc5; }
.nav a.is-current { background: #24483e; border-color: #36594d; color: #e8f5ed; }
.nav a.is-current .icon { color: #83d8bd; }
.side-insight { padding: 22px 15px; border: 1px solid #345247; border-radius: 12px; background: #193b31; }
.side-insight > .icon { color: #8ed6bb; margin-bottom: 14px; }
.side-insight p { color: #d7e8df; font-size: 16px; line-height: 1.5; letter-spacing: -.3px; }
.side-insight > span { display: block; font-size: 10px; color: #9db8aa; margin-top: 12px; }
.workspace-label { display: flex; gap: 10px; align-items: center; margin-top: 24px; padding: 0 5px; font-size: 12px; }
.workspace-avatar { display: grid; place-items: center; background: #35584b; width: 32px; height: 32px; border-radius: 10px; color: #c7dfd0; font-weight: 600; }
.workspace-label small { display: block; color: #98b1a5; font-size: 10px; margin-top: 3px; }
.main { padding: 0 40px 64px; }
.page { margin-inline: auto; max-width: 1180px; }
.workspace-top { height: 78px; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; border-bottom: 1px solid var(--line); margin-bottom: 38px; }
.workspace-top strong { color: #334e43; font-weight: 500; }
.breadcrumb-divider { margin: 0 12px; color: #b3bfb9; }
.workspace-tag { letter-spacing: .16em; font-size: 9px; }
h1, .report-title { font-family: 'Outfit', sans-serif; font-size: clamp(30px, 2.6vw, 42px); font-weight: 500; letter-spacing: -.035em; line-height: 1.18; overflow-wrap: anywhere; }
.page-head { margin-bottom: 28px; }
.kicker { font-size: 9px; letter-spacing: .16em; color: #557e6a; margin-bottom: 10px; }
.lede { font-size: 13px; margin-top: 10px; line-height: 1.7; max-width: 65ch; }
.btn { height: 42px; border-radius: 9px; font-size: 12px; font-weight: 500; padding-inline: 16px; gap: 9px; box-shadow: 0 2px 3px #143b3410; transition: background .15s, box-shadow .15s; }
.btn:hover { box-shadow: 0 4px 12px #143b3418; }
.btn .icon { width: 16px; height: 16px; }
.btn.secondary { box-shadow: inset 0 0 0 1px var(--line); }
.library-summary { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); border: 1px solid var(--line); border-radius: 14px; background: white; margin-bottom: 24px; padding: 22px 0; }
.library-summary > div { display: flex; align-items: flex-start; gap: 16px; padding: 0 26px; }
.library-summary > div + div { border-left: 1px solid var(--line); }
.library-summary .icon { padding: 11px; width: 42px; height: 42px; background: #f0f5f2; border-radius: 12px; color: #5c8875; }
.library-summary span { color: var(--muted); font-size: 11px; }
.library-summary strong { display: block; color: var(--ink); font-size: 28px; font-weight: 500; line-height: 1.2; margin-top: 8px; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.library-feature { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; padding: 32px 38px; min-height: 266px; border: 1px solid #dbe7df; background: #eaf1e9; border-radius: 17px; margin-bottom: 34px; }
.library-feature h2 { font-family: 'Outfit', sans-serif; margin: 0; font-size: 33px; font-weight: 500; letter-spacing: -.04em; line-height: 1.15; }
.library-feature p:not(.kicker) { color: #667e6e; font-size: 12px; max-width: 320px; line-height: 1.8; margin: 14px 0; }
.feature-link { display: inline-flex; gap: 12px; align-items: center; font-size: 12px; font-weight: 600; text-decoration: none; }
a.feature-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.feature-link .icon { width: 16px; height: 16px; }
.feature-court { position: relative; width: 260px; height: 200px; margin-right: 28px; transform: rotate(-22deg) skew(10deg); border-radius: 12px; background: #173f32; box-shadow: -12px 16px 0 #cfdfd0, -22px 30px 40px #1c493222; }
.feature-court svg { width: 100%; height: 100%; transform: rotate(90deg); }
.feature-court svg * { stroke: #d2e2d0; stroke-width: 1; }
.court-player { position: absolute; width: 10px; height: 10px; background: #a1d9b4; border: 2px solid white; border-radius: 50%; box-shadow: 0 0 0 9px #a1d9b412; }
.p1 { left: 28%; top: 28%; }.p2 { left: 30%; top: 65%; }.p3 { left: 67%; top: 22%; background: #fd8a4a; }.p4 { left: 72%; top: 68%; background: #fd8a4a; }
.feature-caption { position: absolute; right: 30px; bottom: 16px; color: #7e9382; font-size: 8px; letter-spacing: .2em; }
.library-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.library-heading h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.03em; }
.library-heading h2 > span { display: inline-grid; place-items: center; background: #e9efea; border-radius: 6px; width: 23px; height: 22px; font-size: 10px; margin-left: 8px; color: #65816e; }
.engine-status { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; color: #7b877e; }
.engine-status::before { content: ''; width: 5px; height: 5px; background: #b9905b; border-radius: 50%; flex: none; }
.engine-status.ready::before { background: #23a681; }
.library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.match-card { min-height: 290px; box-shadow: none; }
.card-visual, .card-visual img { height: 140px; }
.sample-court { display: flex; align-items: center; justify-content: center; gap: 22px; width: 100%; height: 100%; background: #dfe9e1; padding: 20px; }
.sample-court svg { width: 58px; height: 110px; transform: rotate(15deg); opacity: .65; }
.sample-court > span { font-size: 15px; font-weight: 600; letter-spacing: .02em; }
.sample-court > span > span { display: block; font-size: 7px; letter-spacing: .18em; margin-top: 6px; color: #6b8471; }
.card-body { padding: 18px; gap: 10px; flex: 1; }
.card-body h2 { font-size: 14px; line-height: 1.5; }
.card-body p { font-size: 10px; line-height: 1.7; }
.pill { font-size: 10px; padding: 5px 8px; font-weight: 500; letter-spacing: 0; }
.card-link { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 11px; font-weight: 500; }
.card-link .icon { width: 16px; }
.new-match-card { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed #ccd9cf; border-radius: 16px; padding: 28px; text-decoration: none; min-height: 290px; transition: background .2s; }
.new-match-card:hover { background: #edf3ee; }
.upload-symbol { display: grid; place-items: center; background: #e9f0ea; border: 1px solid #dbe5dc; width: 52px; height: 52px; border-radius: 16px; color: #5b8269; margin-bottom: 12px; }
.upload-symbol .icon { width: 22px; height: 22px; }
.new-match-card h3 { font-size: 13px; font-weight: 500; margin: 10px 0 0; }
.new-match-card p { font-size: 11px; line-height: 1.6; color: var(--muted); margin: 10px 0 24px; }
.print-brand { display: none; }
.report-sheet .page-head { align-items: flex-start; }
.report-sheet .page-actions { flex: none; max-width: 260px; justify-content: flex-end; }
.meta { font-size: 11px; line-height: 1.8; }
.kpis { gap: 16px; margin-bottom: 36px; }
.kpi { padding: 22px; min-height: 144px; box-shadow: none; }
.kpi .label { font-size: 10px; letter-spacing: .04em; text-transform: none; }
.kpi .value { font-size: 32px; font-weight: 500; margin-top: 16px; }
.kpi .detail { font-size: 11px; padding-top: 12px; }
.section { margin-top: 32px; }
.section h2 { font-size: 17px; font-weight: 500; margin-bottom: 18px; }
.section h2::after { display: none; }
.findings { gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.finding { grid-template-columns: 150px minmax(0,1fr); padding: 20px 24px; border: 0; border-radius: 0; background: transparent; }
.finding + .finding { border-top: 1px solid var(--line); }
.finding h3 { display: flex; align-items: baseline; gap: 9px; font-size: 12px; }
.finding h3::before { content: ''; width: 6px; height: 6px; flex: none; border-radius: 50%; background: #58ab8e; }
.finding.warn h3::before { background: #dd9b60; }
.finding p { color: #65786e; font-size: 12px; line-height: 1.8; }
th { font-size: 9px; letter-spacing: .05em; background: #f9fbf9; }
td { font-size: 12px; padding-block: 18px; }
th span { font-size: 9px; }
tbody tr:hover { background: #fbfcfb; }
.pairs { gap: 18px; }
.pair { padding: 24px; }
.pair h3 { font-size: 15px; font-weight: 500; }
.pair .who { margin: 6px 0 24px; font-size: 11px; }
.bar-row { font-size: 11px; margin: 14px 0; }
.bar-row strong { font-size: 11px; }
.bar-track { height: 6px; background: #edf2ee; }
.bar-target { height: 12px; top: -3px; width: 1px; }
.bar-net { background: #65bba0; }.bar-back { background: #315c48; }.bar-split { background: #e4a177; }
.metrics { margin-top: 24px; padding-top: 20px; }
.metrics strong { font-weight: 500; font-size: 22px; }
.metrics span { font-size: 10px; line-height: 1.7; }
.note, .report-foot { font-size: 11px; line-height: 1.8; }
.panel { padding: 28px; box-shadow: none; }
.form-section-title { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.form-section-title > .icon { width: 40px; height: 40px; padding: 10px; background: #edf3ee; border-radius: 10px; }
.form-section-title h2 { font-size: 17px; margin: 0; font-weight: 500; }
.form-section-title p { font-size: 11px; margin: 4px 0 0; color: var(--muted); }
.fields { gap: 20px; }
.field { font-size: 11px; font-weight: 500; gap: 8px; }
input[type=text], input[type=date], .name-input { font-size: 12px; border-color: #dfe7e1; padding: 12px; border-radius: 8px; }
input::placeholder { color: #95a299; }
.hint { font-size: 11px; line-height: 1.8; }
.drop { align-items: center; text-align: center; background: #f0f5f0; border-color: #c9d9cc; padding: 32px; }
.drop strong { font-size: 18px; font-weight: 500; }
.drop .hint { max-width: 260px; }
.drop input { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { outline: 2px solid var(--turquoise); outline-offset: 3px; }
.browse-label { display: inline-flex; align-items: center; gap: 16px; background: white; border: 1px solid #d8e3da; padding: 11px 16px; border-radius: 8px; font-size: 12px; margin-top: 12px; }
.file-name { overflow-wrap: anywhere; max-width: 100%; font-size: 13px; }
.steps li { font-size: 12px; }
@media (min-width: 1600px) { .workspace-top { max-width: 1180px; margin-inline: auto; } }
@media (max-width: 1150px) {
  :root { --sidebar: 212px; }
  .main { padding-inline: 28px; }
  .library-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature-court { width: 190px; height: 160px; margin-right: 0; }
  .library-feature { padding: 28px; }
  .library-feature h2 { font-size: 29px; }
}
@media (max-width: 800px) {
  .side-foot:has(.signout) { display: block; margin: 0; padding: 0; }
  .side-foot:has(.signout) .side-insight, .side-foot:has(.signout) .workspace-label { display: none; }
  input[type=text], input[type=date], .name-input { font-size: 16px; }
  .sidebar { padding: 18px 20px 12px; position: relative; }
  .brand { padding: 0; }
  .nav-label { display: none; }
  .nav { gap: 8px; margin-top: 8px; }
  .nav a { padding: 10px 12px; font-size: 12px; }
  .main { padding: 0 20px 40px; }
  .workspace-top { height: 54px; margin-bottom: 26px; font-size: 10px; }
  .workspace-tag { display: none; }
  .page, .page-head, .lede, h1, .kicker { max-width: 100%; }
  .page-head { gap: 18px; }
  .library-summary { padding-block: 18px; }
  .library-summary > div { padding-inline: 14px; gap: 8px; }
  .library-summary .icon { display: none; }
  .library-summary span { font-size: 9px; }
  .library-summary strong { font-size: 25px; }
  .library-feature { padding: 26px; min-height: 240px; }
  .feature-court { width: 170px; height: 135px; margin-left: 20px; }
  .feature-caption { display: none; }
  .library-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .kpi { padding: 18px; }
  .kpi .value { font-size: 28px; }
  .finding { grid-template-columns: 1fr; gap: 8px; padding: 18px; }
  .report-sheet .page-actions { justify-content: flex-start; max-width: 100%; }
  .metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .drop { min-height: 280px; }
  .panel { padding: 22px; }
  .table-wrap { max-width: 100%; }
  table { min-width: 660px; }
}
@media (max-width: 520px) {
  .library-grid { grid-template-columns: 1fr; }
  .feature-court { display: none; }
  .library-feature h2 { font-size: 29px; }
  .new-match-card { min-height: 245px; }
  .pair { padding: 20px; }
  .pair-grid { grid-template-columns: 1fr; }
  .kpi .value { font-size: 25px; overflow-wrap: anywhere; }
  .kpi .detail { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
@media print {
  .main { padding: 0; }
  .print-brand { display: flex; margin: 0 0 24px; padding: 18px; }
  .report-mast .logo { color: #123c36; }
  .kpis { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .kpi, .pair, figure, .finding { break-inside: avoid; }
  .findings { overflow: visible; }
  table { min-width: 0; }
  .table-wrap { overflow: visible; }
  .pairs { grid-template-columns: 1fr 1fr; }
  body { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
