/* Imnove Product Studio — sistema visual */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700&family=Figtree:wght@400;500;600;700&display=swap');

:root {
  --blue: #355fff;
  --blue-600: #2446e6;
  --blue-700: #1b35b8;
  --blue-100: #dfe6ff;
  --blue-50: #eff3ff;
  --ink: #0f1b45;
  --ink-2: #47527a;
  --muted: #8790b0;
  --line: #e4e8f5;
  --paper: #f3f5fc;
  --card: #ffffff;
  --mint: #10b981;
  --mint-50: #e6f8f1;
  --amber: #f0a020;
  --amber-50: #fff5e3;
  --coral: #ef4f6c;
  --coral-50: #fdecef;
  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 69, .04), 0 8px 24px -12px rgba(37, 66, 200, .18);
  --shadow-lift: 0 2px 4px rgba(15, 27, 69, .05), 0 22px 48px -20px rgba(37, 66, 200, .35);
  --display: 'Poppins', system-ui, sans-serif;
  --body: 'Figtree', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 15px; line-height: 1.55; color: var(--ink);
  background: var(--paper); -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-700); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; margin: 0; color: var(--ink); }
h1 { font-size: 28px; font-weight: 700; line-height: 1.2; }
h2 { font-size: 18px; font-weight: 600; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(53, 95, 255, .45); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--blue-100); color: var(--ink); }

/* Scrollbars finas con el azul de marca */
* { scrollbar-width: thin; scrollbar-color: #c3cdf5 transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: #c9d2f7; border-radius: 999px; border: 3px solid var(--paper);
}
::-webkit-scrollbar-thumb:hover { background: var(--blue); }
.side ::-webkit-scrollbar-thumb { border-color: var(--blue); background: rgba(255,255,255,.35); }

/* ================= Estructura ================= */
.app { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--blue); color: #fff; padding: 26px 18px 18px; overflow-y: auto;
  background-image: radial-gradient(120% 60% at 0% 0%, rgba(255,255,255,.14), transparent 60%);
}
.side .logo { width: 172px; margin: 4px 8px 34px; }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px;
  color: rgba(255,255,255,.82); font-weight: 600; font-size: 14.5px; transition: background .2s, color .2s;
}
.nav a svg { width: 20px; height: 20px; flex: none; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav a.on { background: #fff; color: var(--blue); box-shadow: 0 10px 24px -12px rgba(10, 20, 80, .6); }
.nav .count {
  margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px;
  background: rgba(255,255,255,.22); color: #fff; font-size: 12px; display: grid; place-items: center;
}
.nav a.on .count { background: var(--blue); }
.side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); }
.me { display: flex; align-items: center; gap: 12px; padding: 8px; }
.avatar {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none;
  background: #fff; color: var(--blue); font-family: var(--display); font-weight: 700;
}
.me b { display: block; font-size: 14px; }
.me small { color: rgba(255,255,255,.7); font-size: 12.5px; }
.me .out {
  margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  color: rgba(255,255,255,.8);
}
.me .out:hover { background: rgba(255,255,255,.12); color: #fff; }

.main { min-width: 0; padding: 34px 40px 60px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head p { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.mob-top { display: none; }

/* ================= Componentes ================= */
.card {
  background: var(--card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid rgba(228, 232, 245, .7); padding: 24px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.btn {
  --bg: var(--blue); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 22px; border: 0; border-radius: 13px; cursor: pointer;
  background: var(--bg); color: var(--fg); font: 600 15px var(--body); white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(37, 66, 220, .8); transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { background: var(--blue-600); color: #fff; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; }
.btn.ghost { --bg: #fff; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--blue-50); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue-100); }
.btn.danger { --bg: var(--coral); box-shadow: 0 10px 22px -12px rgba(239, 79, 108, .8); }
.btn.danger:hover { background: #dc3a58; }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }
.btn.block { width: 100%; }
.btn[disabled], .btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 700; white-space: nowrap; background: var(--blue-50); color: var(--blue-700);
}
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.pendiente { background: #f0f2f9; color: var(--ink-2); }
.pill.procesando { background: var(--amber-50); color: #b97206; }
.pill.procesando::before { animation: pulse 1.2s ease-in-out infinite; }
.pill.completado, .pill.listo { background: var(--mint-50); color: #08865e; }
.pill.error { background: var(--coral-50); color: #c42b4a; }
@keyframes pulse { 50% { opacity: .25; transform: scale(.7); } }

/* Formularios */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; font-weight: 600; font-size: 13.5px; color: var(--ink-2); margin-bottom: 8px; }
.input, .textarea, .select {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 13px; border: 1.5px solid var(--line);
  background: #fbfcff; color: var(--ink); font: 500 15px var(--body); transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; line-height: 1.55; }
.input::placeholder, .textarea::placeholder { color: #a8b0cb; }
.input:focus, .textarea:focus, .select:focus {
  outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(53, 95, 255, .12);
}
.hint { font-size: 12.5px; color: var(--muted); margin-top: 7px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 15px; top: 50%; translate: 0 -50%; width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 46px; }

/* Control segmentado */
.seg { display: flex; padding: 4px; gap: 4px; background: #eef1fa; border-radius: 13px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 42px; padding: 6px 8px; border-radius: 10px; font-weight: 600; font-size: 13.5px; color: var(--ink-2);
  transition: background .2s, color .2s, box-shadow .2s; cursor: pointer;
}
.seg span small { font-weight: 500; font-size: 11.5px; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--blue); box-shadow: 0 4px 12px -6px rgba(37, 66, 200, .45); }
.seg input:focus-visible + span { outline: 3px solid rgba(53, 95, 255, .45); }

/* Chips de prompt */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); border-radius: 999px;
  height: 34px; padding: 0 14px; font: 600 13px var(--body); cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--blue-100); color: var(--blue); background: var(--blue-50); }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ================= Métricas ================= */
.metrics { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.metric { padding: 20px 22px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.metric b { display: block; font-family: var(--display); font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.metric span { color: var(--ink-2); font-size: 13.5px; font-weight: 500; }
.metric.hero {
  background: var(--blue); color: #fff; position: relative; overflow: hidden;
  background-image: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.22), transparent 55%);
}
.metric.hero b { color: #fff; font-size: 40px; }
.metric.hero span { color: rgba(255,255,255,.85); }
.metric.hero .spark { position: absolute; right: 18px; top: 16px; width: 34px; opacity: .9; }

/* ================= Lista de lotes ================= */
.jobs { display: flex; flex-direction: column; }
.job {
  display: grid; grid-template-columns: 56px 1fr 180px 120px; gap: 18px; align-items: center;
  padding: 14px 10px; border-radius: 16px; color: var(--ink); transition: background .2s;
}
.job + .job { border-top: 1px solid var(--line); }
.job:hover { background: var(--blue-50); color: var(--ink); }
.job .thumb { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; background: var(--blue-50); }
.job h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .meta { font-size: 13px; color: var(--muted); }
.job .end { justify-self: end; }
.prog { height: 8px; border-radius: 999px; background: #e9edf8; overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transition: width .6s var(--ease); }
.prog.done i { background: var(--mint); }
.prog-txt { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-2); margin-top: 6px; font-weight: 600; }

.empty { text-align: center; padding: 48px 20px; }
.empty .ill { width: 120px; margin: 0 auto 18px; }
.empty h3 { font-size: 17px; margin-bottom: 6px; }
.empty p { color: var(--ink-2); margin-bottom: 18px; }

.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.toolbar .input-icon { flex: 1; min-width: 220px; }
.filters { display: flex; gap: 6px; }

/* ================= Nuevo lote ================= */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.step { display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.step + .step { margin-top: 30px; padding-top: 28px; border-top: 1px dashed var(--line); }
.step .n {
  width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blue-50); color: var(--blue); font: 700 15px var(--display);
}
.step h2 { margin: 4px 0 4px; }
.step > div > p { color: var(--ink-2); font-size: 14px; margin-bottom: 16px; }

.fondos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.fondo-opt { position: relative; cursor: pointer; }
.fondo-opt input { position: absolute; opacity: 0; }
.fondo-opt .ph {
  aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--blue-50);
  box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, transform .2s var(--ease);
}
.fondo-opt img { width: 100%; height: 100%; object-fit: cover; }
.fondo-opt small { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fondo-opt:hover .ph { transform: translateY(-2px); }
.fondo-opt input:checked ~ .ph { box-shadow: 0 0 0 3px var(--blue), 0 12px 24px -14px rgba(37, 66, 200, .7); }
.fondo-opt input:checked ~ .ph::after {
  content: ''; position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 0 3px #fff;
}
.fondo-opt input:focus-visible ~ .ph { outline: 3px solid rgba(53, 95, 255, .45); outline-offset: 3px; }

.drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px;
  aspect-ratio: 4 / 3; border-radius: 14px; border: 2px dashed #c8d2f5; background: #f8faff; color: var(--ink-2);
  cursor: pointer; transition: border-color .2s, background .2s; font-size: 12.5px; font-weight: 600; padding: 10px;
}
.drop svg { width: 26px; height: 26px; color: var(--blue); }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-50); }

.summary { position: sticky; top: 24px; }
.summary .preview {
  aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; margin-bottom: 18px; position: relative;
  background: repeating-conic-gradient(#eef1fa 0 25%, #f7f8fd 0 50%) 0 0 / 22px 22px;
}
.summary .preview img { width: 100%; height: 100%; object-fit: cover; }
.summary .preview .none { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-weight: 600; font-size: 13.5px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 14px; font-size: 14px; margin-bottom: 20px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.estimate { background: var(--blue-50); border-radius: 14px; padding: 14px 16px; margin-bottom: 18px; font-size: 13.5px; color: var(--ink-2); }
.estimate b { color: var(--blue-700); }

/* ================= Detalle del lote ================= */
.job-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; }
.ring { --p: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--blue) calc(var(--p) * 1%), #e9edf8 0); transition: --p .6s; }
.ring.done { background: conic-gradient(var(--mint) calc(var(--p) * 1%), #e9edf8 0); }
.ring::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: #fff; }
.ring b { position: relative; font: 700 30px var(--display); letter-spacing: -.02em; }
.ring b small { font-size: 15px; color: var(--muted); }
.job-hero .info h1 { margin-bottom: 6px; }
.job-hero .info p { color: var(--ink-2); }
.job-hero .bg-chip { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.job-hero .bg-chip img { width: 54px; height: 40px; border-radius: 9px; object-fit: cover; box-shadow: inset 0 0 0 1px var(--line); }
.job-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.mini-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.mini-stats div { background: var(--paper); border-radius: 14px; padding: 12px 16px; }
.mini-stats b { display: block; font: 700 22px var(--display); }
.mini-stats span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }

.sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.shot { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); position: relative; }
.shot .ph { aspect-ratio: 1; background: var(--blue-50); position: relative; overflow: hidden; }
.shot .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.shot a:hover .ph img { transform: scale(1.04); }
.shot .ph .ico { position: absolute; inset: 0; display: grid; place-items: center; color: #b3bfe9; }
.shot .ph .ico svg { width: 36px; height: 36px; }
.shot.procesando .ph::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.65) 50%, transparent 70%) -100% 0 / 200% 100%;
  animation: sweep 1.6s linear infinite;
}
@keyframes sweep { to { background-position: 100% 0; } }
.shot .cap { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; }
.shot .cap b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot .cap .pill { align-self: flex-start; height: 24px; font-size: 11.5px; padding: 0 10px; }
.shot .err-txt { font-size: 12px; color: #c42b4a; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tabs { display: flex; gap: 6px; background: #eef1fa; padding: 4px; border-radius: 13px; }
.tabs button {
  border: 0; background: none; height: 36px; padding: 0 14px; border-radius: 10px; cursor: pointer;
  font: 600 13.5px var(--body); color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
}
.tabs button em { font-style: normal; font-size: 12px; color: var(--muted); }
.tabs button.on { background: #fff; color: var(--blue); box-shadow: 0 4px 12px -6px rgba(37, 66, 200, .45); }

/* Biblioteca de fondos */
.lib-group + .lib-group { margin-top: 30px; }
.lib-group h2 { margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.lib-group h2 small { font: 600 13px var(--body); color: var(--muted); }
.lib { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.lib-item { background: #fff; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.lib-item .ph { aspect-ratio: 4 / 3; }
.lib-item .ph img { width: 100%; height: 100%; object-fit: cover; }
.lib-item .cap { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 14px; }
.lib-item .cap b { flex: 1; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 10px; border: 0; background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--coral-50); color: var(--coral); }

/* ================= Toasts y modal ================= */
.toasts { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: flex-start; gap: 12px; width: min(380px, calc(100vw - 48px));
  padding: 14px 16px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lift);
  animation: toast-in .35s var(--ease); font-size: 14px; font-weight: 500;
}
.toast .dot { width: 26px; height: 26px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--blue); }
.toast.ok .dot { background: var(--mint); }
.toast.err .dot { background: var(--coral); }
.toast .dot svg { width: 15px; height: 15px; }
.toast p { padding-top: 2px; }
.toast.bye { animation: toast-out .3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

.modal-bg {
  position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px;
  background: rgba(15, 27, 69, .38); backdrop-filter: blur(6px); animation: fade .2s ease;
}
.modal {
  width: min(440px, 100%); background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lift);
  animation: pop .28s var(--ease);
}
.modal .m-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--coral-50); color: var(--coral); margin-bottom: 18px; }
.modal .m-ico.info { background: var(--blue-50); color: var(--blue); }
.modal .m-ico svg { width: 26px; height: 26px; }
.modal h2 { font-size: 20px; margin-bottom: 8px; }
.modal p { color: var(--ink-2); margin-bottom: 24px; }
.modal .m-actions { display: flex; gap: 10px; justify-content: flex-end; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ================= Login ================= */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; background: #fff; }
.login-art {
  position: relative; overflow: hidden; background: var(--blue); color: #fff; padding: 48px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  background-image: radial-gradient(80% 60% at 15% 10%, rgba(255,255,255,.18), transparent 60%);
}
.login-art .logo { width: 230px; position: relative; z-index: 2; }
.login-art .tag { position: relative; z-index: 2; max-width: 30ch; }
.login-art .tag h2 { color: #fff; font-size: 30px; font-weight: 600; line-height: 1.25; }
.login-art .tag p { color: rgba(255,255,255,.82); margin-top: 12px; font-size: 15.5px; }

/* Hoja de contactos: fotos crudas que se revelan editadas */
.contact {
  position: absolute; right: -60px; top: 50%; translate: 0 -54%; rotate: -8deg;
  display: grid; grid-template-columns: repeat(4, 132px); gap: 16px; z-index: 1;
}
.frame {
  width: 132px; height: 158px; padding: 8px 8px 26px; border-radius: 10px; background: #fff;
  box-shadow: 0 24px 40px -22px rgba(6, 14, 70, .7); position: relative;
}
.frame .raw, .frame .ed { position: absolute; inset: 8px 8px 26px; border-radius: 6px; overflow: hidden; }
.frame .raw { background: repeating-conic-gradient(#e3e6ef 0 25%, #f2f4f9 0 50%) 0 0 / 14px 14px; }
.frame .ed { clip-path: inset(0 100% 0 0); animation: reveal 9s var(--ease) infinite; animation-delay: calc(var(--i) * .35s); }
.frame .obj { position: absolute; left: 50%; bottom: 18%; translate: -50% 0; border-radius: 10px 10px 6px 6px; }
.frame .shadow { position: absolute; left: 50%; bottom: 13%; translate: -50% 0; width: 58%; height: 8px; border-radius: 50%; background: rgba(0,0,0,.18); filter: blur(3px); }
.frame::after { content: ''; position: absolute; left: 10px; right: 46px; bottom: 10px; height: 5px; border-radius: 4px; background: #e6e9f3; }
@keyframes reveal { 0%, 8% { clip-path: inset(0 100% 0 0); } 30%, 78% { clip-path: inset(0 0 0 0); } 92%, 100% { clip-path: inset(0 0 0 100%); } }

.login-form { display: grid; place-items: center; padding: 40px 28px; }
.login-form form { width: min(380px, 100%); }
.login-form h1 { font-size: 30px; margin-bottom: 8px; }
.login-form .sub { color: var(--ink-2); margin-bottom: 30px; }
.pass { position: relative; }
.pass .input { padding-right: 52px; }
.pass button { position: absolute; right: 6px; top: 6px; width: 36px; height: 36px; border: 0; background: none; border-radius: 10px; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.pass button:hover { background: var(--blue-50); color: var(--blue); }
.pass svg { width: 20px; height: 20px; }
.form-err {
  display: flex; gap: 10px; align-items: center; background: var(--coral-50); color: #b02442; border-radius: 12px;
  padding: 12px 14px; font-size: 14px; font-weight: 600; margin-bottom: 18px; animation: shake .4s;
}
.form-err svg { width: 18px; height: 18px; flex: none; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.login-foot { margin-top: 28px; text-align: center; color: var(--muted); font-size: 13px; }

/* ================= Responsive ================= */
@media (max-width: 1180px) {
  .wizard { grid-template-columns: 1fr; }
  .summary { position: static; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 56px 1fr 120px; }
  .job .prog-col { display: none; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 268px; z-index: 70; translate: -100% 0; transition: translate .3s var(--ease); }
  .side.open { translate: 0 0; box-shadow: 30px 0 60px rgba(10, 20, 70, .35); }
  .mob-top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; background: var(--blue); position: sticky; top: 0; z-index: 60; }
  .mob-top img { width: 120px; }
  .mob-top button { width: 40px; height: 40px; border: 0; border-radius: 12px; background: rgba(255,255,255,.15); color: #fff; display: grid; place-items: center; }
  .main { padding: 24px 18px 50px; }
  .page-head { flex-direction: column; align-items: stretch; }
  .login { grid-template-columns: 1fr; }
  .login-art { min-height: 260px; padding: 32px 28px; }
  .login-art .tag { display: none; }
  .contact { right: -120px; scale: .8; }
  .job-hero { grid-template-columns: 1fr; justify-items: start; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .job { grid-template-columns: 48px 1fr; }
  .job .end { grid-column: 2; justify-self: start; }
  .seg { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
