:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  color: #141733;
  background: #f5f5fb;
  font-synthesis: none;
  --blue: #0000c8;
  --ink: #101335;
  --muted: #565b70;
  --line: #d7d9e7;
  --navy: #04082b;
  --gutter: max(clamp(1.25rem, 5vw, 4.5rem), calc((100% - 72rem) / 2));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
h1, h2, p { margin: 0; }
.masthead { background: white; border-bottom: 1px solid #e6e6f0; }
.mast-inner {
  min-height: 5rem; padding: .8rem var(--gutter); display: flex;
  align-items: center; gap: 1.4rem;
}
.identity { display: inline-flex; align-items: center; gap: 1.1rem; }
.identity::after { content: ""; order: 1; width: 1px; height: 1.75rem; background: var(--line); }
.brand { color: var(--ink); font-size: 1.9rem; font-weight: 720; line-height: 1; letter-spacing: -.065em; }
.partner { order: 2; display: block; width: 6rem; height: auto; }

.entry-layout {
  min-height: calc(100vh - 5rem); min-height: calc(100svh - 5rem);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(20rem, 26.25rem);
  align-content: center; align-items: center; gap: clamp(2.5rem, 7vw, 7rem);
  padding: clamp(3rem, 8vh, 6rem) var(--gutter) clamp(4.5rem, 14vh, 9.5rem);
  background: var(--navy) url("/media/fibra.webp") center bottom / cover no-repeat;
}
.intro { color: white; max-width: 39rem; }
.intro::before { content: ""; display: block; width: 2.8rem; height: 3px; margin-bottom: 1.5rem; background: #ff3184; }
.intro h1 { font-size: clamp(3.2rem, 6.7vw, 6.3rem); line-height: .99; letter-spacing: -.06em; font-weight: 620; }
.intro h1 span { display: block; }
.panel, .case-info { min-width: 0; background: white; border: 1px solid var(--line); border-radius: .85rem; padding: clamp(1.5rem, 3.2vw, 2.5rem); }
.entry-layout .panel { border-color: white; box-shadow: 0 1.3rem 4rem #01051e40; }
h2 { color: var(--ink); font-size: clamp(1.45rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -.04em; font-weight: 650; }
.muted, .hint { color: var(--muted); }
.panel > .muted:not(:empty) { margin-top: .7rem; }
form { margin-top: 1.55rem; }
label { display: block; font-size: .94rem; font-weight: 600; }
input {
  width: 100%; padding: .72rem .85rem; margin: .35rem 0 1.05rem; font: inherit;
  color: var(--ink); background: #fafaff; border: 1px solid #9499ad; border-radius: .4rem;
}
button { cursor: pointer; font: inherit; font-weight: 650; border: 1px solid transparent; border-radius: .45rem; padding: .67rem 1.1rem; }
button:disabled, input:disabled { cursor: default; opacity: .63; }
.primary { color: white; background: var(--blue); }
.primary:hover:enabled { background: #15158e; }
.entry-layout .primary { width: 100%; margin-top: .4rem; }
.quiet { color: var(--blue); background: transparent; padding-inline: .65rem; }
.quiet:hover:enabled { text-decoration: underline; }
#back { display: block; margin: .55rem auto 0; }
#logout { margin-left: auto; border-color: var(--line); white-space: nowrap; }
:focus-visible { outline: 3px solid #7562df; outline-offset: 3px; }
.error { margin-top: 1rem; padding: .75rem; border-left: 3px solid #a01c42; background: #fff1f4; color: #801434; overflow-wrap: anywhere; }
noscript { display: block; padding: 1rem var(--gutter); background: white; }

#workspace-title {
  background: var(--navy) url("/media/fibra.webp") center 59% / cover no-repeat;
  color: white; padding: 2.35rem var(--gutter); font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 620; letter-spacing: -.055em; line-height: 1.1;
}
.work-layout { display: grid; grid-template-columns: minmax(14rem, 20rem) minmax(0, 1fr); align-items: start; gap: 1.5rem; padding: 2.25rem var(--gutter) 3rem; }
.case-info { border-top: 3px solid var(--blue); }
.case-info h2 { font-size: 1.3rem; }
dl { margin: 1.25rem 0; }
dt { margin-top: .9rem; color: var(--muted); font-size: .9rem; }
dd { margin: .15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.mono, code { font-family: "IBM Plex Mono", Consolas, monospace; overflow-wrap: anywhere; }
#kit { text-align: left; padding-left: 0; }
input[type=file] { min-height: 5rem; border: 1px dashed #9093c0; padding: 1rem; background: #f5f5fc; }
input::file-selector-button { font: inherit; font-size: .9rem; font-weight: 600; color: var(--blue); background: white; border: 1px solid #a7abc2; border-radius: .3rem; padding: .5rem .7rem; margin-right: .55rem; cursor: pointer; }
.hint { font-size: .92rem; margin: .35rem 0 1.1rem; }
.progress-box { margin-top: 1.4rem; }
.progress-label { display: flex; gap: 1rem; align-items: baseline; justify-content: space-between; }
#bytes { font-size: .9rem; font-variant-numeric: tabular-nums; }
progress { display: block; width: 100%; height: .7rem; margin-top: .45rem; accent-color: var(--blue); }
.receipts { margin-top: 1.2rem; }
.receipts ul { padding: 0; margin-bottom: 0; list-style: none; }
.receipts li { padding: .9rem 0; border-top: 1px solid var(--line); }
.receipts li:last-child { padding-bottom: 0; }
.receipts strong, .receipts code { display: block; overflow-wrap: anywhere; }
.receipts code { margin-top: .25rem; color: var(--muted); }
.receipts .quiet { padding-left: 0; }

@media (max-width: 45rem) {
  .mast-inner { min-height: 4.2rem; gap: .75rem; }
  .brand { font-size: 1.65rem; }
  .identity { gap: .75rem; }
  .partner { width: 5rem; }
  .entry-layout {
    min-height: calc(100svh - 4.2rem); grid-template-columns: minmax(0, 28rem); justify-content: center;
    gap: 1.7rem; padding-block: 2rem 3.2rem; background-position: 63% bottom;
  }
  .intro::before { width: 2rem; margin-bottom: 1rem; }
  .intro h1 { font-size: clamp(2.45rem, 8.5vw, 3.7rem); }
  .intro h1 span { display: inline; }
  .work-layout { grid-template-columns: minmax(0, 1fr); padding-block: 1.3rem 2rem; gap: 1rem; }
  #workspace-title { padding-block: 1.5rem; }
}
@media (max-width: 32rem) {
  .mast-inner { padding-inline: 1rem; gap: .5rem; }
  .identity { gap: .5rem; }
  .partner { width: 4.5rem; }
  #logout { font-size: .88rem; padding-inline: .65rem; }
}
