:root {
  color: #17243a;
  background: #f3f6fb;
  font: 16px/1.5 Inter, "Segoe UI", system-ui, sans-serif;
  --blue: #2456ba;
  --muted: #53637c;
  --border: #dce4ef;
}
* { box-sizing: border-box; }
body { margin: 0; display: grid; grid-template-columns: 235px minmax(0, 1fr); min-height: 100vh; }
[hidden] { display: none !important; }
a { color: var(--blue); font-weight: 600; }
button, input, select { font: inherit; }
button, select, input { border: 1px solid #aab9ce; border-radius: 7px; background: white; color: inherit; padding: .52rem .8rem; }
button { cursor: pointer; font-weight: 600; }
:focus-visible { outline: 3px solid #5487ef; outline-offset: 3px; }
.sidebar { display: flex; flex-direction: column; gap: 2.4rem; padding: 2rem 1.15rem; background: #102342; color: #dbe8ff; }
.brand { display: flex; align-items: center; gap: .65rem; color: white; text-decoration: none; font-weight: 750; }
.mark { display: block; flex-shrink: 0; }
nav { display: grid; gap: .45rem; }
nav a { color: #c5d5ef; text-decoration: none; padding: .68rem .8rem; border-radius: 8px; }
nav a:hover, nav a[aria-current="page"] { color: white; background: #234475; }
.sidebar-footer { margin-top: auto; font-size: .875rem; }
main { width: 100%; max-width: 1500px; margin: 0 auto; padding: 2.4rem clamp(1rem, 4vw, 4rem); }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.eyebrow { margin: 0; color: var(--blue); font-size: .875rem; font-weight: 700; }
h1 { margin: .16rem 0; font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.04em; line-height: 1.15; }
h2 { margin: 0; font-size: 1.17rem; }
#status, .muted, footer { color: var(--muted); font-size: .9rem; }
.metrics, .grid { display: grid; gap: 1rem; margin-bottom: 1rem; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.card { padding: clamp(1rem, 2vw, 1.5rem); background: white; border: 1px solid var(--border); border-radius: 13px; box-shadow: 0 4px 12px #16376709; }
.metric-label { color: var(--muted); font-size: .875rem; }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr)); gap: .85rem; margin: 1rem 0; }
.report-kpi h4 { margin: 0; color: var(--muted); }
.report-kpi small { display: block; margin-top: .6rem; }
.kpi-chart { display: block; width: 100%; max-width: 260px; margin-top: .65rem; }
.metric-value { display: block; font-size: clamp(1.25rem, 3vw, 2rem); line-height: 1.25; margin-top: .45rem; font-weight: 750; overflow-wrap: anywhere; }
.chart { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: .5rem; margin: 1rem 0; }
.bar { text-align: center; display: grid; grid-template-rows: auto 7rem auto; align-items: end; gap: .3rem; }
.bar span { color: var(--muted); font-size: .875rem; font-variant-numeric: tabular-nums; }
.bar meter { writing-mode: vertical-lr; direction: rtl; width: 1.8rem; height: 100%; justify-self: center; }
.coverage-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; margin: .75rem 0; }
.coverage-row meter { width: 37%; }
meter { accent-color: var(--blue); }
meter::-webkit-meter-optimum-value { background: #3d70df; }
meter::-moz-meter-bar { background: #3d70df; }
.filters, .actions, footer { display: flex; flex-wrap: wrap; gap: .8rem 1rem; }
.filters { margin: 1rem 0; align-items: end; }
.filters label { display: grid; min-width: 0; gap: .3rem; font-weight: 600; font-size: .9rem; }
select { width: 100%; max-width: 32rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-variant-numeric: tabular-nums; }
th, td { padding: .7rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); background: #f3f6fb; font-size: .875rem; }
#product-details { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 1.25rem; margin-top: 1rem; padding: 1rem; background: #edf3ff; border-radius: 8px; }
.catalog-product { display: flex; align-items: center; gap: .75rem; text-align: left; padding: .3rem .6rem .3rem .3rem; }
.product-thumbnail, .product-photo { display: grid; place-items: center; background: white; border: 1px solid var(--border); border-radius: 8px; color: var(--muted); text-align: center; }
.product-thumbnail { flex: 0 0 54px; width: 54px; height: 54px; padding: .2rem; }
.product-photo { align-self: start; aspect-ratio: 1; padding: .7rem; }
.product-thumbnail img, .product-photo img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-photo { grid-template: minmax(0, 1fr) / minmax(0, 1fr); }
.catalog-entry, .photo-toolbar { display: flex; align-items: center; gap: .65rem; }
.photo-trigger { width: 100%; height: 100%; min-height: 0; padding: 0; border: 0; cursor: zoom-in; }
#photo-viewer { width: min(90vw, 850px); max-height: 92dvh; padding: 1rem; border: 1px solid var(--border); border-radius: .8rem; }
#photo-viewer::backdrop { background: rgb(10 22 42 / 75%); }
.photo-toolbar { margin-bottom: .65rem; }
.photo-toolbar h2 { flex: 1; overflow-wrap: anywhere; }
#photo-zoom[aria-pressed="true"] { background: var(--blue); color: white; }
#photo-viewport { overflow: auto; height: min(68dvh, 640px); }
#enlarged-photo { display: block; width: 100%; height: 100%; object-fit: contain; }
#photo-viewer:has(#photo-zoom[aria-pressed="true"]) #enlarged-photo { width: 200%; height: 200%; }
.product-info { overflow-wrap: anywhere; }
.actions { margin: 1.15rem 0 1.75rem; }
.account-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.account-actions span { font-size: .9rem; overflow-wrap: anywhere; }
.login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  min-height: 100svh;
  padding: 1.5rem;
  background:
    radial-gradient(ellipse at 17% 14%, #2a56ab 0%, transparent 47%),
    radial-gradient(ellipse at 87% 86%, #145566 0%, transparent 44%),
    linear-gradient(145deg, #101c38, #0c1930);
}
.login-page .login-card {
  width: min(100%, 440px);
  margin: 0;
  padding: clamp(1.35rem, 5vw, 2.5rem);
  border-radius: 20px;
  box-shadow: 0 28px 80px #05102280;
}
.login-brand { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.6rem; font-weight: 750; }
.login-card #switch-language { float: right; }
.company-page { display: block; }
.company-header { background: #102342; padding: 1rem clamp(1rem, 5vw, 5rem); display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.company-header nav { margin-left: auto; display: flex; flex-wrap: wrap; }
.company-header .public-tabs { gap: .25rem; }
.public-tabs a { border-bottom: 3px solid transparent; border-radius: .45rem .45rem 0 0; }
.public-login { display: flex; flex-direction: column; }
.public-login .login-page { flex: 1; min-height: auto; }
.company-page main { max-width: 1100px; padding-block: clamp(2rem, 6vw, 5rem); }
.company-intro { font-size: 1.2rem; max-width: 65ch; margin: 1rem 0 2.5rem; }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 1rem; margin: 1rem 0 2rem; }
.service-grid h3 { margin: 0; }
.founder-profile { display: grid; grid-template-columns: minmax(200px, 1fr) 1.6fr; align-items: start; gap: clamp(1.5rem, 5vw, 4rem); }
.founder-profile img { width: 100%; height: auto; border-radius: 13px; }
.founder-profile h2 { margin-top: 1.5rem; }
.founder-cv { margin-top: 2.5rem; }
.founder-cv details { margin-block: .65rem; background: white; border: 1px solid var(--border); border-radius: .75rem; }
.founder-cv summary { padding: 1rem 1.25rem; cursor: pointer; font-size: 1.15rem; font-weight: 650; }
.founder-cv summary::marker { color: var(--blue); }
.cv-section { border-top: 1px solid var(--border); padding: 1rem 1.25rem; }
.cv-section > :first-child { margin-top: 0; }
.cv-section > :last-child { margin-bottom: 0; }
.cv-section dt { font-weight: 650; }
.cv-section dd { margin: .25rem 0 1rem; }
.cv-section address { font-style: normal; }
@media (prefers-reduced-motion: no-preference) {
  .founder-cv details[open] > .cv-section { animation: cv-reveal 240ms ease-out; }
  @keyframes cv-reveal {
    from { opacity: 0; transform: translateY(-.35rem); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 650px) {
  .founder-profile { grid-template-columns: 1fr; }
  .founder-profile img { max-width: 320px; }
  .company-header nav { order: 1; width: 100%; }
  .company-header button { margin-left: auto; }
}
.login-description { margin: .55rem 0 0; color: var(--muted); }
.login-form, .login-form label { display: grid; gap: .45rem; }
.login-form { margin-top: 1.4rem; gap: 1rem; }
.login-form label { font-size: .9rem; font-weight: 650; }
.login-form input { min-width: 0; min-height: 46px; font-size: 1rem; font-weight: 400; }
.login-form button { min-height: 46px; margin-top: .35rem; background: var(--blue); color: white; }
.login-form button:hover { background: #194696; }
.login-form .quiet-button { background: white; color: var(--blue); }
.login-form .quiet-button:hover { background: #edf3ff; }
.login-page .account-card { width: min(100%, 520px); overflow-wrap: anywhere; }
.account-card h2 { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.account-card .login-form { margin-top: .75rem; }
.login-card [role="alert"] { padding: .65rem .8rem; border-radius: 7px; color: #8a2639; background: #fff0f2; }
.actions a { padding: .55rem .8rem; border-radius: 7px; text-decoration: none; border: 1px solid var(--blue); }
.primary { color: white; background: var(--blue); }
li { margin-bottom: .5rem; }
footer { border-top: 1px solid var(--border); padding-top: 1rem; margin-top: 1.75rem; }
@media (max-width: 940px) { .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) {
  body { display: block; }
  .sidebar { padding: .9rem; gap: .65rem; }
  nav { display: flex; flex-wrap: wrap; gap: .25rem; }
  nav a { padding: .4rem .5rem; font-size: .875rem; }
  .sidebar-footer { display: none; }
  #product-details { grid-template-columns: minmax(0, 1fr); }
  .product-photo { width: min(100%, 240px); }
  main { padding-top: 1.2rem; }
}
