:root{--navy:#071833;--navy2:#0b244d;--blue:#135cf2;--sky:#eaf2ff;--soft:#f5f8fc;--line:#dfe8f3;--text:#071833;--muted:#65748b;--orange:#ff8a00;--green:#16a34a;--red:#b91c1c;--purple:#7c3aed;--card:#fff;--shadow:0 20px 55px rgba(7,24,51,.10)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at top left,#e9f2ff,transparent 34%),linear-gradient(180deg,#f8fbff,#eef3fa);font-family:Inter,system-ui,-apple-system,Segoe UI,Arial,sans-serif;color:var(--text)}a{color:inherit;text-decoration:none}.topbar{height:86px;background:rgba(255,255,255,.92);backdrop-filter:blur(14px);display:flex;align-items:center;justify-content:space-between;padding:0 7%;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:12px;font-size:29px;font-weight:950;color:#08285c}.brand img{height:38px}.nav{display:flex;align-items:center;gap:22px;font-weight:850}.nav a{color:#071a36}.btn,button.primary,.primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--navy);color:#fff!important;border:0;border-radius:15px;padding:13px 20px;font-weight:950;box-shadow:0 14px 32px rgba(7,24,51,.18);cursor:pointer;font-size:15px}.btn.small{padding:10px 15px}.btn.ghost{background:white;color:var(--navy)!important;border:1px solid var(--line);box-shadow:none}.btn.orange{background:var(--orange)}.btn.green{background:var(--green)}.btn.blue{background:var(--blue)}.hamb{display:none}.page{min-height:70vh;padding:34px 7%}.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:42px;align-items:center;padding:54px 0}.hero h1{font-size:66px;line-height:1.01;margin:0 0 20px;letter-spacing:-3px}.hero p{font-size:20px;color:var(--muted);line-height:1.65}.hero-card{background:rgba(255,255,255,.86);border:1px solid var(--line);border-radius:34px;padding:28px;box-shadow:0 35px 90px rgba(23,42,70,.14)}.metric-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:28px}.metric{background:white;border:1px solid var(--line);border-radius:22px;padding:20px}.metric b{font-size:28px;display:block}.muted{color:var(--muted)}.grid{display:grid;gap:20px}.grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.grid.four{grid-template-columns:repeat(4,minmax(0,1fr))}.card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:28px;padding:24px;box-shadow:var(--shadow)}.card.compact{padding:18px}.card h1,.card h2,.card h3{margin-top:0}.section-title{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:8px 0 18px}.section-title h1{margin:0;font-size:38px;letter-spacing:-1.2px}.form{max-width:880px;margin:24px auto}.form.full{max-width:none}.fields{display:grid;grid-template-columns:repeat(2,1fr);gap:20px}.fields.three{grid-template-columns:repeat(3,1fr)}label{font-weight:950;display:block;margin-bottom:8px}input,select,textarea{width:100%;border:1px solid #dbe5f2;background:#fff;border-radius:15px;padding:14px 15px;font-size:16px;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 4px rgba(19,92,242,.09)}textarea{min-height:112px}.alert{padding:16px 20px;border-radius:18px;margin:14px 0;font-weight:850}.alert.err{background:#fee2e2;color:#991b1b}.alert.ok{background:#dcfce7;color:#166534}.alert.info{background:#dbeafe;color:#1e40af}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;border-bottom:1px solid var(--line);padding:14px;vertical-align:top}.table th{font-size:13px;color:var(--muted);text-transform:uppercase}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:950;background:#edf2ff;color:#123b91;white-space:nowrap}.badge.green{background:#dcfce7;color:#166534}.badge.orange{background:#ffedd5;color:#9a3412}.badge.red{background:#fee2e2;color:#991b1b}.badge.blue{background:#dbeafe;color:#1d4ed8}.layout{display:grid;grid-template-columns:270px 1fr;gap:24px}.sidebar{background:white;border:1px solid var(--line);border-radius:28px;padding:16px;position:sticky;top:110px;height:max-content;box-shadow:var(--shadow)}.sidebar a{display:flex;gap:10px;align-items:center;padding:13px 14px;border-radius:16px;color:#17365f;font-weight:850}.sidebar a.active,.sidebar a:hover{background:#edf4ff;color:var(--blue)}.auction-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.auction-card{position:relative;display:grid;gap:16px;border-radius:30px;overflow:hidden}.auction-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.auction-title{font-size:23px;font-weight:950;letter-spacing:-.5px;margin:6px 0 8px}.auction-meta{display:flex;gap:10px;flex-wrap:wrap}.auction-price{font-size:30px;font-weight:950;color:var(--navy)}.route-box{background:#f7faff;border:1px solid var(--line);border-radius:22px;padding:16px;display:grid;gap:12px}.route{display:flex;align-items:flex-start;gap:12px;color:#334155;line-height:1.35}.dot{width:12px;height:12px;background:var(--blue);border-radius:50%;display:inline-block;margin-top:4px;flex:0 0 auto;box-shadow:0 0 0 5px #dbeafe}.dot.end{background:var(--orange);box-shadow:0 0 0 5px #ffedd5}.progress{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:18px 0}.progress .step{position:relative;background:#edf2f7;border:1px solid #dbe5f2;border-radius:18px;padding:12px 10px;text-align:center;font-size:12px;font-weight:900;color:#6b7280}.progress .step.done{background:#e8f1ff;color:#0b4dd8;border-color:#bdd4ff}.progress .step.active{background:var(--navy);color:white;border-color:var(--navy)}.timeline{border-left:3px solid #dbe5f2;padding-left:20px}.timeline .event{margin:0 0 18px;position:relative}.timeline .event:before{content:'';position:absolute;left:-28px;top:3px;width:14px;height:14px;background:var(--blue);border-radius:50%;box-shadow:0 0 0 5px #dbeafe}.timeline .event b{display:block}.proof-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.proof{background:#f7faff;border:1px solid var(--line);border-radius:20px;padding:16px}.proof img{width:100%;max-height:180px;object-fit:cover;border-radius:15px;margin-top:10px}.chat{height:420px;overflow:auto;background:#f7faff;border-radius:18px;padding:18px}.msg{max-width:70%;padding:12px 14px;background:white;border:1px solid var(--line);border-radius:15px;margin-bottom:10px}.msg.me{margin-left:auto;background:#08285c;color:white}.footer{display:flex;justify-content:space-between;gap:20px;padding:34px 7%;border-top:1px solid var(--line);background:#fff;color:#52627a}.footer div{display:flex;gap:18px;align-items:center}.kpi{display:flex;justify-content:space-between;align-items:center}.kpi .num{font-size:34px;font-weight:950}.tabs{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 20px}.tabs a{padding:10px 14px;border:1px solid var(--line);border-radius:999px;background:white;font-weight:850}.tabs a.active{background:var(--navy);color:white}.file-list{font-size:13px;color:var(--muted)}.source-pill{display:inline-flex;gap:6px;align-items:center;background:#f8fafc;border:1px solid var(--line);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:850;color:#475569}.warning-panel{background:linear-gradient(135deg,#fff7ed,#fff);border:1px solid #fed7aa;border-radius:22px;padding:18px}.mini-map{min-height:230px;border-radius:24px;background:linear-gradient(135deg,#dbeafe,#fff7ed);border:1px solid var(--line);position:relative;overflow:hidden}.mini-map:before{content:'';position:absolute;inset:24px;border:2px dashed rgba(7,24,51,.24);border-radius:40% 58% 48% 42%}.mini-map .pin{position:absolute;width:16px;height:16px;border-radius:50%;background:var(--blue);box-shadow:0 0 0 8px rgba(19,92,242,.15)}.mini-map .pin.end{background:var(--orange);box-shadow:0 0 0 8px rgba(255,138,0,.15);right:42px;bottom:48px}.mini-map .pin.start{left:48px;top:42px}.role-card{cursor:pointer;border:2px solid transparent}.role-card input{display:none}.role-card:has(input:checked){border-color:var(--blue);background:#f4f8ff}@media(max-width:1100px){.auction-grid{grid-template-columns:1fr}.layout{grid-template-columns:1fr}.sidebar{position:static}.grid.four{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.topbar{padding:0 20px}.nav{display:none}.hamb{display:block}.page{padding:22px}.hero,.grid.two,.grid.three,.grid.four,.fields,.fields.three,.proof-grid{grid-template-columns:1fr}.hero h1{font-size:42px}.auction-card{grid-template-columns:1fr}.footer{flex-direction:column}.progress{grid-template-columns:1fr}.metric-grid{grid-template-columns:1fr}}

/* === Transbid v12 mobile hardening === */
button, .btn, a, input, select, textarea { -webkit-tap-highlight-color: rgba(19,92,242,.14); }
button, input, select, textarea { font: inherit; }
button, select, input[type=file], label { cursor: pointer; }
select, input, textarea { position: relative; z-index: 1; min-height: 50px; -webkit-appearance: auto; appearance: auto; touch-action: manipulation; }
button, .btn, .primary { min-height: 48px; touch-action: manipulation; }
.mobile-backdrop{display:none}
.no-scroll{overflow:hidden}

@media(max-width:900px){
  body{background:linear-gradient(180deg,#f8fbff,#eef3fa)}
  .topbar{height:72px;padding:0 16px;position:sticky;top:0;z-index:1000}
  .brand{font-size:24px;min-width:0}.brand img{height:32px}.brand span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .hamb{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--navy);font-size:24px;font-weight:900;box-shadow:none;z-index:1002}
  .nav{display:flex;position:fixed;top:72px;left:12px;right:12px;max-height:calc(100vh - 90px);overflow:auto;flex-direction:column;align-items:stretch;gap:8px;padding:14px;background:rgba(255,255,255,.98);border:1px solid var(--line);border-radius:22px;box-shadow:0 26px 80px rgba(7,24,51,.25);transform:translateY(-14px) scale(.98);opacity:0;pointer-events:none;transition:.18s ease;z-index:1001}
  .nav.open{transform:translateY(0) scale(1);opacity:1;pointer-events:auto}
  .nav a{display:flex;align-items:center;justify-content:space-between;width:100%;padding:15px 16px;border-radius:15px;background:#f8fbff;border:1px solid #edf2f7;font-size:16px}
  .nav .btn{width:100%;box-shadow:none}
  .mobile-backdrop.show{display:block;position:fixed;inset:72px 0 0;background:rgba(7,24,51,.32);z-index:999}
  .page{padding:18px 14px 34px;overflow-x:hidden}
  .section-title{display:block}.section-title h1{font-size:30px;line-height:1.1}.section-title .btn{width:100%;margin-top:12px}
  .card{border-radius:22px;padding:18px}.card.compact{padding:16px}
  .layout{display:block}.sidebar{display:flex;gap:10px;overflow-x:auto;position:static;margin:0 0 16px;padding:10px;border-radius:20px;box-shadow:none;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.sidebar a{white-space:nowrap;scroll-snap-align:start;flex:0 0 auto;padding:12px 14px}
  .fields,.fields.three{display:grid!important;grid-template-columns:1fr!important;gap:14px}.fields>div,.fields.three>div{grid-column:auto!important;min-width:0}
  input,select,textarea{font-size:16px;width:100%;max-width:100%;min-height:52px;padding:14px;border-radius:14px;background:#fff;color:var(--text)}
  textarea{min-height:118px}
  label{font-size:14px;margin-bottom:7px}
  .grid,.grid.two,.grid.three,.grid.four,.auction-grid,.proof-grid,.metric-grid{grid-template-columns:1fr!important;gap:14px}
  .hero{padding:28px 0;gap:20px}.hero h1{font-size:38px;letter-spacing:-1.5px}.hero p{font-size:17px}.hero-card{border-radius:24px;padding:18px}
  .auction-card{gap:14px;padding:18px;border-radius:24px}.auction-head{display:block}.auction-price{font-size:26px;margin-top:12px}.auction-meta{gap:8px}.source-pill,.badge{font-size:12px;padding:8px 10px}.route-box{padding:14px;border-radius:18px}.progress{grid-template-columns:repeat(5,minmax(72px,1fr))!important;overflow-x:auto;padding-bottom:4px}.progress .step{min-width:72px;padding:10px 8px}
  .table{display:block;overflow-x:auto;white-space:nowrap}.chat{height:360px}.msg{max-width:92%}.footer{padding:28px 16px}.footer div{flex-wrap:wrap}
}

@media(max-width:480px){
  .brand{font-size:21px}.page{padding-left:12px;padding-right:12px}.hero h1{font-size:34px}.section-title h1{font-size:27px}.btn,.primary,button.primary{width:100%;padding:13px 16px}.auction-title{font-size:21px}.kpi .num{font-size:28px}.tabs{display:grid;grid-template-columns:1fr 1fr}.tabs a{text-align:center}.progress{grid-template-columns:repeat(5,86px)!important}.proof img{max-height:150px}
}

/* === Transbid v13 next-level clarity upgrade === */
.cta-row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}.clean-hero{align-items:center}.clean-hero h1{max-width:900px}.command-card{border:1px solid rgba(19,92,242,.16);background:linear-gradient(180deg,#fff,#f8fbff)}.mini-auction{display:block;padding:14px 0;border-bottom:1px solid var(--line)}.mini-auction:last-child{border-bottom:0}.mini-auction b{display:block;font-size:16px}.mini-auction span{display:block;color:var(--muted);font-size:13px;margin:4px 0}.mini-auction div{display:flex;justify-content:space-between;font-weight:900;color:var(--navy)}.flow-panel{background:linear-gradient(135deg,#071833,#123b7a);color:white;border:0}.flow-panel .muted,.flow-panel p{color:rgba(255,255,255,.78)}.flow-road{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-top:18px}.flow-road>div{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:18px}.flow-road b{display:inline-flex;width:36px;height:36px;border-radius:50%;align-items:center;justify-content:center;background:white;color:var(--navy);font-size:18px}.flow-road h3{margin:12px 0 6px}.feature img,.role-explain img{height:54px;width:54px;object-fit:contain;margin-bottom:12px}.pill-grid{display:flex;flex-wrap:wrap;gap:10px}.pill-grid span{display:inline-flex;border:1px solid var(--line);background:#f8fbff;border-radius:999px;padding:10px 14px;font-weight:850}.role-explain ul{padding-left:20px;line-height:1.9;color:#334155}.auction-hero{display:grid;grid-template-columns:1.3fr .7fr;gap:20px;align-items:center;background:linear-gradient(135deg,#fff,#eef6ff)}.auction-guide{display:grid;gap:8px;background:#071833;color:white;border-radius:22px;padding:18px}.auction-guide span{display:block;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);padding:10px 12px;border-radius:14px;font-weight:850}.filter-card{position:relative;z-index:2}.next-auction{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:stretch}.auction-thumb{background:#f3f7fc;border-radius:20px;overflow:hidden;min-height:190px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line)}.auction-thumb img{width:100%;height:100%;object-fit:cover}.auction-body{min-width:0}.compact-progress{margin:14px 0}.public-summary{display:flex;justify-content:space-between;gap:20px;align-items:center;background:#f8fbff}.action-panel{border:2px solid #dbeafe}.timeline.clean{border-left:0;padding-left:0}.timeline.clean .event{background:#f8fbff;border:1px solid var(--line);border-radius:18px;padding:14px;margin-bottom:12px}.timeline.clean .event:before{display:none}
@media(max-width:1100px){.flow-road{grid-template-columns:repeat(2,1fr)}.auction-hero,.next-auction{grid-template-columns:1fr}.auction-thumb{height:220px}.public-summary{align-items:flex-start;flex-direction:column}}
@media(max-width:700px){.flow-road{grid-template-columns:1fr}.auction-guide{border-radius:18px}.next-auction{gap:12px}.auction-thumb{height:180px}.cta-row .btn{width:100%}.pill-grid span{width:100%;justify-content:center}.clean-hero h1{font-size:34px}.public-summary .btn{width:100%}}


/* === Transbid v14 public/mobile polish === */
.public-roles{margin-top:22px}.public-roles .card{min-height:230px}
.topbar .nav a[href^="admin/"]{display:none!important}
.next-auction{grid-template-columns:180px minmax(0,1fr);align-items:stretch;padding:18px}
.next-auction .auction-thumb{width:100%;height:160px;min-height:160px;max-height:160px;border-radius:18px;background:#eef4fb;flex:none}
.next-auction .auction-thumb img{width:100%;height:100%;max-width:100%;object-fit:cover;display:block}
.next-auction .auction-title{font-size:21px;line-height:1.15;margin:8px 0 10px}
.next-auction .auction-head{gap:12px}.next-auction .auction-price{font-size:25px;white-space:nowrap}.next-auction .route-box{padding:13px;gap:8px}.next-auction .route{margin:0;font-size:14px}.next-auction .progress{grid-template-columns:repeat(5,minmax(70px,1fr));gap:6px;margin:12px 0}.next-auction .progress .step{padding:9px 7px;border-radius:13px;font-size:11px}.next-auction .auction-meta{gap:7px}.next-auction .source-pill{font-size:11px;padding:7px 9px}.auction-grid{align-items:start}.feature .btn{margin-top:8px}
@media(max-width:900px){
  .topbar{height:72px}.brand img{height:30px}.brand span{font-size:22px}.hamb{width:44px;height:44px;border-radius:14px;border:1px solid var(--line);background:#fff;font-size:26px;line-height:1;color:var(--navy);display:flex;align-items:center;justify-content:center;z-index:45;position:relative}.topbar .nav.open{position:fixed;top:72px;left:12px;right:12px;display:flex!important;flex-direction:column;align-items:stretch;gap:8px;background:#fff;border:1px solid var(--line);box-shadow:0 28px 80px rgba(7,24,51,.24);border-radius:24px;padding:16px;z-index:44}.topbar .nav.open a{padding:14px 16px;border-radius:16px;background:#f8fbff}.topbar .nav.open .btn{width:100%;text-align:center}.mobile-backdrop.show{display:block;position:fixed;inset:72px 0 0;background:rgba(7,24,51,.35);z-index:40}.no-scroll{overflow:hidden}
  .auction-hero{padding:18px;border-radius:24px}.auction-hero h1{font-size:30px;line-height:1.12}.auction-guide{grid-template-columns:1fr 1fr}.auction-guide b{grid-column:1/-1}.filter-card .fields,.filter-card .fields.three{grid-template-columns:1fr!important}.filter-card button{width:100%}
  .next-auction{grid-template-columns:112px minmax(0,1fr)!important;gap:12px;padding:12px;border-radius:22px}.next-auction .auction-thumb{height:112px;min-height:112px;max-height:112px;border-radius:15px}.next-auction .auction-title{font-size:17px;margin:5px 0 7px}.next-auction .auction-head{display:block}.next-auction .auction-price{font-size:20px;margin-top:8px}.next-auction .route-box{display:none}.next-auction .progress{display:none}.next-auction .source-pill{font-size:10px;padding:6px 8px}.next-auction .auction-meta{max-height:58px;overflow:hidden}.auction-grid{gap:12px}.public-summary{padding:16px}.public-summary .btn{width:100%}
}
@media(max-width:520px){
  .page{padding:16px 12px}.auction-hero h1{font-size:26px}.auction-guide{grid-template-columns:1fr}.grid.four{grid-template-columns:1fr 1fr!important}.card.kpi.compact{padding:14px}.kpi .num{font-size:24px}.next-auction{grid-template-columns:96px minmax(0,1fr)!important;padding:10px}.next-auction .auction-thumb{height:96px;min-height:96px;max-height:96px}.next-auction .badge{font-size:10px;padding:5px 8px}.next-auction .auction-title{font-size:16px}.next-auction .auction-price{font-size:18px}.next-auction .auction-price + .muted{font-size:11px}.section-title{display:block}.section-title .btn{margin-top:10px}.hero .cta-row .btn{width:100%}
}
