:root {
  --ink: #10221f;
  --muted: #667773;
  --line: #dce6e2;
  --paper: #f6faf8;
  --card: rgba(255, 255, 255, 0.88);
  --teal: #087f73;
  --teal-dark: #075c55;
  --mint: #dff5eb;
  --orange: #ed7d42;
  --shadow: 0 22px 55px rgba(30, 73, 61, 0.1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: linear-gradient(145deg, #f9fcfa 0%, #eff8f3 48%, #f8f4ee 100%); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: 0.5; }
code { font-family: "SFMono-Regular", Consolas, monospace; font-size: 0.86em; color: var(--teal-dark); }
.hidden { display: none !important; }
.shell { position: relative; z-index: 1; width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 44px; }
.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(3px); opacity: 0.45; }
.ambient-one { width: 410px; height: 410px; top: -210px; right: -120px; background: #d3f1e3; }
.ambient-two { width: 300px; height: 300px; bottom: -160px; left: -100px; background: #fde5c9; }
.topbar, .app-heading, .objects-heading, .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; color: white; background: var(--teal); font-weight: 800; box-shadow: 0 8px 18px rgba(8, 127, 115, 0.25); }
.brand strong, .brand small { display: block; line-height: 1; }
.brand strong { font-size: 15px; letter-spacing: -0.02em; }
.brand small { margin-top: 5px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: 0.19em; }
.environment-pill, .user-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid #cfe5dc; border-radius: 999px; padding: 8px 12px; color: var(--teal-dark); background: rgba(255,255,255,0.72); font-size: 10px; font-weight: 800; letter-spacing: 0.09em; }
.pulse, .status-dot { width: 7px; height: 7px; border-radius: 50%; background: #31ae6d; box-shadow: 0 0 0 4px rgba(49,174,109,0.14); }
.login-layout { display: grid; grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: clamp(38px, 8vw, 110px); min-height: 650px; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 10px; font-weight: 850; letter-spacing: 0.17em; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 700px; margin-bottom: 19px; font-size: clamp(38px, 5.3vw, 70px); line-height: 0.98; letter-spacing: -0.065em; }
h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -0.035em; }
.lede { max-width: 600px; margin-bottom: 27px; color: #536863; font-size: 16px; line-height: 1.65; }
.lede.compact { margin: 8px 0 0; font-size: 14px; line-height: 1.4; }
.architecture-note { display: inline-flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border: 1px solid #d7e8df; border-radius: 15px; background: rgba(255,255,255,0.6); color: var(--muted); font-size: 12px; line-height: 1.9; }
.architecture-note p { margin: 0; }
.note-icon { display: grid; place-items: center; width: 23px; height: 23px; border-radius: 8px; color: var(--teal); background: var(--mint); font-weight: 800; }
.card { border: 1px solid rgba(204, 222, 215, 0.82); border-radius: 20px; background: var(--card); box-shadow: var(--shadow); backdrop-filter: blur(16px); }
.login-card { max-width: 440px; padding: 31px; }
.card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; margin-bottom: 28px; }
.lock, .step-number { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 11px; color: var(--teal); background: var(--mint); font-weight: 800; }
label { display: block; margin-bottom: 15px; color: #536863; font-size: 11px; font-weight: 750; letter-spacing: 0.02em; }
input, select { width: 100%; margin-top: 7px; border: 1px solid #d6e3de; border-radius: 11px; outline: none; padding: 12px 13px; color: var(--ink); background: rgba(255,255,255,0.82); transition: 150ms ease; }
input:focus, select:focus { border-color: #7cc9b7; box-shadow: 0 0 0 4px rgba(124,201,183,0.15); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; border: 0; border-radius: 11px; padding: 10px 15px; font-size: 12px; font-weight: 800; transition: 150ms ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color: white; background: var(--teal); box-shadow: 0 9px 17px rgba(8,127,115,0.22); }
.button-primary:hover:not(:disabled) { background: var(--teal-dark); }
.button-secondary { color: var(--teal-dark); background: var(--mint); }
.button-quiet { min-height: 34px; color: var(--teal-dark); background: #edf6f1; }
.full-width { width: 100%; margin-top: 5px; }
.form-status { min-height: 19px; margin: 13px 0 0; color: #b35b35; font-size: 12px; line-height: 1.45; }
.form-status.success { color: #16804f; }
.muted { color: var(--muted); }
.small { font-size: 11px; line-height: 1.55; }
.app-heading { padding: 68px 0 29px; }
.app-heading h1 { margin-bottom: 0; font-size: clamp(42px, 5vw, 61px); }
.user-actions { display: flex; align-items: center; gap: 10px; }
.status-strip { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 18px; border: 1px solid #cce9d8; border-radius: 14px; padding: 12px 15px; color: #146b4c; background: rgba(235, 251, 241, 0.78); font-size: 12px; }
.status-strip > div { display: flex; align-items: center; gap: 9px; }
.status-text { color: #579477; }
.workspace-grid { display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 18px; }
.upload-card, .checklist-card, .objects-card { padding: 27px; }
.field-row { display: flex; align-items: flex-end; gap: 9px; }
.grow { flex: 1; }
.icon-button { width: 40px; height: 40px; margin-bottom: 15px; border: 1px solid #d6e3de; border-radius: 11px; color: var(--teal); background: white; font-size: 19px; }
.empty-inline { margin: -2px 0 15px; border-radius: 10px; padding: 11px 12px; color: #7c6d56; background: #fff7e9; font-size: 11px; line-height: 1.5; }
.optional { color: #9baaa5; font-size: 10px; font-weight: 500; }
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 144px; margin: 8px 0 17px; border: 1.5px dashed #a6d5c5; border-radius: 15px; color: var(--muted); background: rgba(239, 250, 245, 0.64); text-align: center; transition: 150ms ease; }
.dropzone:hover, .dropzone.dragging { border-color: var(--teal); background: #e4f8ee; }
.dropzone input { display: none; }
.drop-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 9px; border-radius: 12px; color: var(--teal); background: white; font-size: 24px; }
.dropzone strong { color: var(--ink); font-size: 13px; }
.dropzone span:last-child { margin-top: 5px; font-size: 11px; }
.progress-wrap { margin-top: 17px; }
.progress-label { display: flex; justify-content: space-between; margin-bottom: 7px; color: var(--muted); font-size: 11px; }
progress { width: 100%; height: 8px; border: 0; border-radius: 99px; overflow: hidden; }
progress::-webkit-progress-bar { background: #e3eee9; }
progress::-webkit-progress-value { border-radius: 99px; background: var(--teal); }
.checklist-intro { margin: 16px 0 20px; font-size: 12px; line-height: 1.55; }
.checklist { display: grid; gap: 11px; }
.check-row { display: flex; align-items: center; gap: 10px; color: #5b6d68; font-size: 12px; }
.check-row > span:first-child { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid #bfd6cd; border-radius: 50%; color: #a5bcb4; font-size: 14px; }
.check-row.done { color: var(--ink); font-weight: 700; }
.check-row.done > span:first-child { border-color: #45b67f; color: white; background: #45b67f; font-size: 12px; }
.test-callout { margin-top: 25px; border-left: 3px solid var(--orange); padding: 12px 0 12px 14px; background: linear-gradient(90deg, #fff8ed, transparent); }
.test-callout strong { font-size: 11px; }
.test-callout p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.objects-card { margin-top: 18px; }
.objects-heading { margin-bottom: 22px; }
.objects-list { display: grid; gap: 9px; }
.empty-state { display: flex; min-height: 150px; flex-direction: column; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #d0e0d9; border-radius: 14px; color: var(--muted); text-align: center; font-size: 12px; }
.empty-state strong { color: #4c625c; }
.empty-icon { color: #73ad9c; font-size: 32px; }
.object-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 17px; border: 1px solid #e0eae6; border-radius: 13px; padding: 13px 14px; background: rgba(255,255,255,0.6); }
.object-main { min-width: 0; }
.object-key { overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.object-info { margin-top: 5px; color: var(--muted); font-size: 10px; }
.object-actions { display: flex; gap: 7px; }
.object-actions button { min-height: 31px; border: 0; border-radius: 9px; padding: 6px 9px; color: var(--teal-dark); background: #edf6f1; font-size: 10px; font-weight: 800; }
.object-actions button.danger { color: #a44f45; background: #fff0ed; }
.lab-footer { display: flex; justify-content: space-between; gap: 15px; padding: 23px 2px 0; color: #82938d; font-size: 10px; }
.preview-dialog { width: min(820px, calc(100% - 30px)); border: 1px solid #d0e2da; border-radius: 20px; padding: 25px; color: var(--ink); background: #fbfefc; box-shadow: 0 25px 90px rgba(11, 45, 35, 0.22); }
.preview-dialog::backdrop { background: rgba(15, 38, 31, 0.48); backdrop-filter: blur(5px); }
.close-button { width: 31px; height: 31px; border: 0; border-radius: 50%; color: var(--muted); background: #eef5f1; font-size: 20px; }
.preview-content { display: grid; place-items: center; min-height: 150px; margin: 21px 0 12px; overflow: hidden; border-radius: 13px; background: #10221f; }
.preview-content video, .preview-content audio, .preview-content img { display: block; max-width: 100%; max-height: 62vh; }
.preview-content audio { width: min(100%, 560px); }
.details-summary { margin: 20px 0 18px; border-radius: 11px; padding: 12px 13px; color: var(--muted); background: #eef7f2; font-size: 11px; line-height: 1.55; word-break: break-word; }
.link-label { margin-bottom: 7px; color: var(--muted); font-size: 11px; font-weight: 750; }
.download-link { width: 100%; resize: vertical; margin: 0; border: 1px solid #cfe1d9; border-radius: 11px; padding: 12px; color: var(--teal-dark); background: #f3faf6; font-family: "SFMono-Regular", Consolas, monospace; font-size: 10px; line-height: 1.55; word-break: break-all; }
.dialog-actions { display: flex; gap: 9px; margin: 14px 0 12px; }
.dialog-actions .button { text-decoration: none; }
@media (max-width: 850px) {
  .login-layout, .workspace-grid { grid-template-columns: 1fr; }
  .login-layout { padding: 70px 0 35px; }
  .login-card { max-width: none; }
  .app-heading { align-items: flex-start; flex-direction: column; }
  .user-actions { width: 100%; justify-content: space-between; }
}
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 1180px); padding-top: 18px; }
  .environment-pill { display: none; }
  .upload-card, .checklist-card, .objects-card, .login-card { padding: 21px; }
  .object-row { grid-template-columns: 1fr; gap: 10px; }
  .object-actions { justify-content: flex-start; }
  .lab-footer { flex-direction: column; }
}
