:root{--bg:#f3f6fb;--panel:#fff;--dark:#111c2f;--line:#d9e2ef;--text:#07122b;--muted:#667085;--red:#e8122e;--green:#13a665;--orange:#f59e0b;--blue:#2563eb}
*{box-sizing:border-box}body{margin:0;font-family:Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text);font-size:15px}.app{display:flex;min-height:100vh}.sidebar{width:250px;background:var(--dark);color:#fff;padding:18px 14px;position:fixed;left:0;top:0;bottom:0;overflow:auto}.brand{font-size:24px;font-weight:800;margin:0 0 8px}.brand span{color:var(--red)}.userbox{font-size:13px;line-height:1.35;color:#d7deea;margin-bottom:16px}.nav a{display:flex;gap:8px;align-items:center;padding:10px 12px;margin:5px 0;border-radius:10px;color:#e8eef8;text-decoration:none;font-weight:600}.nav a:hover,.nav a.active{background:#21314b}.main{margin-left:250px;padding:26px;width:calc(100% - 250px)}h1{margin:0 0 14px;font-size:28px}h2{margin:0 0 16px;font-size:22px}.grid{display:grid;gap:14px}.cards{grid-template-columns:repeat(4,minmax(160px,1fr));margin-bottom:18px}.card{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:18px;box-shadow:0 2px 8px rgba(17,28,47,.03)}.stat-label{color:var(--muted);font-size:13px}.stat-value{font-size:26px;font-weight:800;margin-top:3px}.table{width:100%;border-collapse:collapse;background:#fff;border-radius:12px;overflow:hidden}.table th,.table td{border-bottom:1px solid #edf1f7;padding:12px;text-align:left}.table th{background:#f8fafc;font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:10px;background:var(--red);color:#fff;padding:10px 14px;font-weight:700;text-decoration:none;cursor:pointer}.btn.secondary{background:#64748b}.btn.green{background:var(--green)}.btn.blue{background:var(--blue)}.btn.small{padding:7px 10px;font-size:13px}.form{background:#fff;border:1px solid var(--line);border-radius:16px;padding:18px;max-width:980px}.row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.row3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.field{margin-bottom:14px}label{display:block;font-weight:700;margin-bottom:6px}input,select,textarea{width:100%;padding:11px 12px;border:1px solid var(--line);border-radius:10px;background:#fff;font-size:15px}textarea{min-height:90px}.hint{color:var(--muted);font-size:13px}.alert{padding:12px 14px;border-radius:12px;margin:10px 0}.alert.ok{background:#eafaf2;color:#0d6b43}.alert.err{background:#ffe2e6;color:#9f1239}.ops-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:9px}.op-card{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:10px;padding:9px 10px;background:#fff;cursor:pointer;min-height:42px}.op-card:hover{border-color:#9bb5d7}.op-card input{width:auto}.op-card strong{font-size:14px}.op-card small{color:var(--muted);font-weight:700}.token-box{position:sticky;bottom:0;margin-top:14px;background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:12px;font-weight:800}.search-wrap{position:relative}.suggestions{position:absolute;z-index:20;left:0;right:0;top:100%;background:#fff;border:1px solid var(--line);border-radius:10px;box-shadow:0 10px 20px rgba(0,0,0,.08);max-height:240px;overflow:auto;display:none}.suggestions div{padding:10px;border-bottom:1px solid #eef2f7;cursor:pointer}.suggestions div:hover{background:#f1f5f9}.badge{display:inline-block;border-radius:999px;padding:4px 8px;font-size:12px;font-weight:800;background:#e2e8f0}.badge.pending{background:#fff7ed;color:#c2410c}.badge.completed{background:#dcfce7;color:#166534}.badge.cancelled{background:#fee2e2;color:#991b1b}.chat{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px}.msg{padding:10px;border-radius:10px;margin:8px 0;max-width:75%}.msg.me{background:#e0f2fe;margin-left:auto}.msg.other{background:#f1f5f9}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.login-wrap{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:20px}.login-card{width:100%;max-width:460px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:26px;box-shadow:0 12px 30px rgba(17,28,47,.08)}.login-card .brand{color:var(--text)}@media(max-width:900px){.sidebar{position:relative;width:100%;bottom:auto}.app{display:block}.main{margin-left:0;width:100%;padding:16px}.cards,.row,.row3{grid-template-columns:1fr}.ops-grid{grid-template-columns:1fr}.table{font-size:13px;display:block;overflow-x:auto}.topbar{display:block}}
/* YekTek UI patch */
.ops-compact{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px;margin:12px 0}.op-pill{display:flex;align-items:center;gap:9px;border:1px solid #dbe3ef;border-radius:12px;padding:9px 10px;background:#fff;cursor:pointer;font-size:14px;min-height:42px}.op-pill:hover{border-color:#e11d2e;box-shadow:0 6px 18px rgba(15,23,42,.08)}.op-pill input{width:auto;margin:0}.op-pill img,.op-admin-icon{width:24px;height:24px;object-fit:contain}.op-pill span{flex:1}.op-pill b{background:#f1f5f9;border-radius:999px;padding:3px 8px;font-size:12px}.op-emoji{width:24px;text-align:center;flex:0 0 24px}.disclaimer-box{border:1px solid #ffd7a1;background:#fff7ed;border-radius:12px;padding:12px;margin:14px 0;display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.disclaimer-box input{width:auto}.mini-btn{display:inline-block;border:0;border-radius:8px;background:#e2e8f0;color:#0f172a;padding:7px 10px;text-decoration:none;cursor:pointer}.mini-btn.danger{background:#fee2e2;color:#991b1b}.modal{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;z-index:999}.modal-card{background:#fff;border-radius:16px;max-width:760px;max-height:80vh;overflow:auto;padding:24px;box-shadow:0 24px 80px rgba(0,0,0,.25)}.suggestions{position:absolute;z-index:20;background:#fff;border:1px solid #dbe3ef;border-radius:10px;box-shadow:0 14px 35px rgba(15,23,42,.13);display:none;overflow:hidden;max-height:280px;overflow-y:auto;width:100%;left:0;top:100%}.suggestions div{padding:10px 12px;cursor:pointer}.suggestions div:hover{background:#f8fafc}.search-wrap{position:relative}.check-line{display:flex;align-items:center;gap:8px;margin-top:28px}.check-line input{width:auto}@media(max-width:760px){.ops-compact{grid-template-columns:1fr}.disclaimer-box{display:block}.modal-card{margin:16px}}


/* V15 operation icon/grid refinement */
.ops-compact{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin:10px 0 14px;
}
.op-pill{
  display:flex;
  align-items:center;
  gap:7px;
  border:1px solid #dbe3ef;
  border-radius:10px;
  padding:8px 9px;
  background:#fff;
  cursor:pointer;
  font-size:13px;
  min-height:38px;
  transition:.15s ease;
}
.op-pill:hover{
  border-color:#e8122e;
  box-shadow:0 5px 14px rgba(15,23,42,.07);
}
.op-pill input{
  width:auto;
  margin:0 2px 0 0;
  flex:0 0 auto;
}
.op-pill img,
.op-admin-icon{
  width:18px;
  height:18px;
  object-fit:contain;
  flex:0 0 18px;
}
.op-emoji{
  width:18px;
  height:18px;
  line-height:18px;
  text-align:center;
  font-size:15px;
  flex:0 0 18px;
}
.op-pill span:not(.op-emoji){
  flex:1;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.op-pill b{
  background:#f1f5f9;
  color:#0f172a;
  border-radius:999px;
  padding:2px 7px;
  font-size:12px;
  flex:0 0 auto;
}
.op-pill:has(input:checked){
  border-color:#e8122e;
  background:#fff5f6;
}
@media(max-width:1100px){.ops-compact{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:650px){.ops-compact{grid-template-columns:1fr;}.op-pill span:not(.op-emoji){white-space:normal;}}


/* YekTek admin simple card flow */
.yt-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}.yt-section-head h2{margin-bottom:4px}.yt-section-head p,.yt-summary-card p{margin:0;color:var(--muted)}.yt-empty{padding:18px;border:1px dashed var(--line);border-radius:14px;color:var(--muted);background:#f8fafc}.yt-card-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(310px,1fr));gap:14px}.yt-card-grid.compact{grid-template-columns:repeat(auto-fill,minmax(280px,1fr))}.yt-work-card{position:relative;background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px;box-shadow:0 8px 22px rgba(17,28,47,.05)}.yt-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}.yt-job{font-weight:900;font-size:16px}.yt-badges{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end;max-width:55%}.yt-badges span{display:inline-flex;flex-direction:column;align-items:flex-end;border-radius:12px;background:#f1f5f9;padding:5px 8px;font-weight:800;font-size:12px}.yt-badges span small{font-size:10px;color:#64748b;font-weight:800;text-transform:uppercase}.yt-card-body{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}.yt-card-body div,.yt-info-list div{background:#f8fafc;border:1px solid #eef2f7;border-radius:12px;padding:9px}.yt-card-body b,.yt-info-list b{display:block;color:#64748b;font-size:12px;margin-bottom:3px}.yt-card-body strong,.yt-info-list span{font-size:14px}.yt-card-footer{display:flex;justify-content:space-between;align-items:center;gap:10px}.yt-status{display:inline-flex;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:900;background:#e2e8f0;color:#334155}.yt-status.pending{background:#fff7ed;color:#c2410c}.yt-status.processing{background:#dbeafe;color:#1d4ed8}.yt-status.completed{background:#dcfce7;color:#166534}.yt-status.cancelled{background:#fee2e2;color:#991b1b}.yt-detail-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:16px;margin-bottom:16px}.yt-info-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.yt-steps{counter-reset:step;list-style:none;margin:0;padding:0;display:grid;gap:9px}.yt-steps li{position:relative;padding:10px 10px 10px 40px;background:#f8fafc;border:1px solid #eef2f7;border-radius:12px}.yt-steps li:before{counter-increment:step;content:counter(step);position:absolute;left:10px;top:9px;width:22px;height:22px;border-radius:999px;background:#e2e8f0;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:12px}.yt-steps li.done:before{content:'✓';background:#dcfce7;color:#166534}.yt-inline-form{margin-top:14px}.yt-inline{display:flex;gap:8px}.yt-inline input{max-width:130px}.yt-file-grid,.yt-mini-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px}.yt-file-card,.yt-mini-card{border:1px solid var(--line);border-radius:14px;padding:13px;background:#fff;display:grid;gap:9px}.yt-file-type{font-size:12px;font-weight:900;color:#64748b;text-transform:uppercase}.yt-mini-card b{font-size:14px}.yt-mini-card span{font-weight:900}.yt-mini-card small{color:#64748b}.yt-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.yt-actions form{display:flex;gap:8px;align-items:center}.btn.danger{background:#dc2626}.ticket-msg{border:1px solid var(--line);background:#f8fafc;border-radius:12px;padding:10px;margin:10px 0}@media(max-width:900px){.yt-detail-grid,.yt-card-body,.yt-info-list{grid-template-columns:1fr}.yt-badges{max-width:100%;justify-content:flex-start}.yt-card-top{display:block}.yt-card-top .yt-badges{margin-top:8px}.yt-actions,.yt-actions form{display:block}.yt-actions input,.yt-actions button{margin-top:8px}}



/* === YekTek clean card UI final override 20260608 === */
.yt-stat-row{display:grid;grid-template-columns:repeat(5,minmax(160px,1fr));gap:16px;margin-bottom:18px}
.yt-stat-card{background:#fff;border:1px solid #dfe8f5;border-radius:16px;padding:18px;box-shadow:0 8px 24px rgba(15,23,42,.05);display:flex;gap:14px;align-items:center}
.yt-stat-icon{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;background:#fee2e2}
.yt-stat-card.blue .yt-stat-icon{background:#dbeafe}.yt-stat-card.green .yt-stat-icon{background:#dcfce7}.yt-stat-card.purple .yt-stat-icon{background:#ede9fe}.yt-stat-card.orange .yt-stat-icon{background:#ffedd5}
.yt-stat-card span{display:block;color:#64748b;font-weight:700;font-size:13px}.yt-stat-card b{display:block;font-size:28px;margin:3px 0}.yt-stat-card small{color:#64748b}

.yt-dashboard-section{margin-bottom:18px}
.yt-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.yt-section-head h2{margin-bottom:4px}.yt-section-head p{margin:0;color:#64748b}
.yt-job-grid{display:grid;gap:16px}.yt-job-grid.small{grid-template-columns:repeat(auto-fit,minmax(290px,1fr))}
.yt-job-card{background:#fff;border:1px solid #dfe8f5;border-radius:16px;padding:18px;box-shadow:0 6px 20px rgba(15,23,42,.06);border-left:4px solid var(--red)}
.yt-job-card.ticket{border-left-color:#2563eb}
.yt-job-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:14px}
.yt-card-tags{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.yt-card-tags span{background:#fee2e2;color:#be123c;border-radius:9px;padding:8px 10px;font-weight:900;font-size:13px}
.yt-card-tags span:nth-child(n+2){background:#eef2ff;color:#4338ca}
.yt-job-no{font-size:24px;font-weight:900;margin-bottom:12px}
.yt-job-main{display:grid;grid-template-columns:1fr 430px;gap:18px}
.yt-job-left p{margin:8px 0}.yt-job-left b{display:inline-block;min-width:95px;color:#64748b}
.yt-id-chip{background:#dbeafe;color:#1d4ed8;border-radius:8px;padding:4px 8px;font-weight:900;margin-left:6px}
.yt-job-side{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.yt-mini-box{border:1px solid #fde68a;background:#fffbeb;border-radius:14px;padding:14px;display:grid;gap:7px}
.yt-mini-box:nth-child(2){border-color:#ddd6fe;background:#faf5ff}.yt-mini-box b{color:#92400e}.yt-mini-box span{display:block}
.yt-job-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #eef2f7}
.yt-status-pill{display:inline-flex;border-radius:9px;padding:8px 10px;font-size:13px;font-weight:900;background:#e2e8f0;color:#334155}
.yt-status-pill.pending{background:#fff7ed;color:#c2410c}.yt-status-pill.processing,.yt-status-pill.reviewing{background:#dbeafe;color:#1d4ed8}.yt-status-pill.completed{background:#dcfce7;color:#166534}.yt-status-pill.cancelled{background:#fee2e2;color:#991b1b}
.yt-empty{background:#f8fafc;border:1px dashed #cbd5e1;border-radius:14px;padding:20px;color:#64748b}.yt-empty-center{text-align:center;line-height:1.7}.yt-empty-center span{color:#64748b}

.yt-request-hero{margin-bottom:16px}
.yt-hero-top{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:16px}
.yt-hero-top h2{font-size:28px;margin:10px 0 4px}.yt-hero-top p{margin:0;color:#64748b}
.yt-detail-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.yt-detail-cards>div{background:#f8fafc;border:1px solid #eef2f7;border-radius:14px;padding:13px}
.yt-detail-cards b{display:block;color:#64748b;font-size:12px;margin-bottom:5px}.yt-detail-cards span{font-weight:900}
.yt-token-box{margin-top:16px;background:#fff7ed;border:1px solid #fed7aa;border-radius:14px;padding:12px;display:flex;align-items:end;gap:10px;flex-wrap:wrap}
.yt-token-box label{margin:0}.yt-token-box input{max-width:120px}.yt-token-box small{color:#9a3412}
.yt-detail-grid-clean{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.yt-file-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}
.yt-file-card{border:1px solid #dfe8f5;border-radius:14px;padding:14px;background:#fff;display:grid;gap:8px}
.yt-file-card strong{word-break:break-word}.yt-file-type{font-size:12px;font-weight:900;color:#475569;text-transform:uppercase}
.yt-mini-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.yt-mini-card{background:#f8fafc;border:1px solid #e2e8f0;border-radius:14px;padding:13px;display:grid;gap:6px}
.yt-complete-card{margin-bottom:16px}.yt-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}

.yt-chat-card{margin-top:16px}.yt-chat-thread{display:grid;gap:10px;margin-bottom:14px;max-height:520px;overflow:auto;padding:6px}
.yt-chat-msg{display:flex;flex-direction:column;max-width:78%}.yt-chat-msg.admin{margin-left:auto;align-items:flex-end}.yt-chat-msg.customer{margin-right:auto;align-items:flex-start}
.yt-chat-name{font-size:12px;color:#64748b;font-weight:900;margin:0 8px 4px}
.yt-chat-bubble{border-radius:16px;padding:12px 14px;background:#f1f5f9;line-height:1.45;box-shadow:0 2px 8px rgba(15,23,42,.04)}
.yt-chat-msg.admin .yt-chat-bubble{background:#dbeafe;color:#0f172a}.yt-chat-msg.customer .yt-chat-bubble{background:#f8fafc;border:1px solid #e2e8f0}
.yt-chat-form{display:grid;gap:10px}.yt-chat-form textarea{min-height:88px}
.yt-customer-request-row{display:grid;grid-template-columns:1fr 420px;gap:16px;align-items:start;margin-top:16px}.yt-master-request-form{text-align:right}.yt-master-request-form textarea{text-align:left}
.btn.danger{background:#991b1b}

@media(max-width:1200px){.yt-stat-row{grid-template-columns:repeat(2,1fr)}.yt-job-main,.yt-job-side,.yt-detail-grid-clean,.yt-customer-request-row{grid-template-columns:1fr}}
@media(max-width:650px){.yt-stat-row{grid-template-columns:1fr}.yt-job-card-head,.yt-hero-top{display:block}.yt-card-tags{justify-content:flex-start;margin-top:10px}.yt-job-actions{display:grid}.yt-chat-msg{max-width:100%}.yt-token-box{display:block}.yt-token-box input,.yt-token-box button{margin-top:8px;max-width:100%}}
.brand-dynamic img{max-width:160px;max-height:72px;object-fit:contain;display:block;margin:0 auto 8px}.dealer-note{background:#f8fafc;border:1px solid #d9e2ef;border-radius:12px;padding:12px;margin:10px 0;color:#475569}.check-line{display:flex;gap:8px;align-items:center;font-weight:700;margin:8px 0}.check-line input{width:auto}.sidebar .brand{word-break:break-word;text-align:center}.hint{font-size:12px;color:#64748b}
.yt-decision-box{margin-top:14px;padding:14px;border:1px solid #dbeafe;background:#f8fbff;border-radius:14px;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center}.yt-decision-box b{display:block;margin-bottom:4px}.yt-decision-box span{display:block;color:#475569}.yt-decision-box form{display:flex;gap:8px;align-items:center;margin:0}.yt-decision-box input{min-width:150px}.yt-request-status-box{border:1px solid #dfe8f5;background:#f8fafc;border-radius:14px;padding:14px;display:grid;gap:8px}.yt-request-status-box b{font-size:15px}.yt-request-status-box span{color:#475569}.yt-inline-request{display:grid;gap:8px;margin-top:8px}.yt-inline-request input{min-width:0}.btn.green{background:#16a34a}.btn.danger{background:#dc2626}
@media(max-width:900px){.yt-decision-box{grid-template-columns:1fr}.yt-decision-box form{display:grid}.yt-decision-box input{min-width:0;width:100%}}
.yt-log-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.yt-filter-row{display:grid;grid-template-columns:minmax(220px,1fr) auto;gap:10px;align-items:center}.yt-status.sent{background:#dcfce7;color:#166534}.yt-status.failed{background:#fee2e2;color:#991b1b}.yt-status.pending{background:#fff7ed;color:#c2410c}.table-wrap{overflow:auto}
.yt-customer-filter{display:grid;grid-template-columns:minmax(220px,1fr) 170px 170px auto;gap:10px;align-items:center}.yt-stat-card .yt-stat-icon{font-size:20px}
@media(max-width:900px){.yt-customer-filter{grid-template-columns:1fr 1fr}.yt-customer-filter .btn{grid-column:1/-1}}
@media(max-width:700px){.yt-filter-row{grid-template-columns:1fr}.yt-log-tabs .btn{width:100%}.yt-customer-filter{grid-template-columns:1fr}}
.yt-delivery-warning{border:1px solid #fecaca;background:#fff7f7;border-left:4px solid #dc2626;border-radius:14px;padding:14px;margin:0 0 14px;color:#1f2937}.yt-delivery-warning b{display:block;margin-bottom:6px;color:#991b1b}.yt-delivery-warning p{margin:0;line-height:1.5}.yt-delivery-warning.customer{margin-bottom:16px}.yt-delivery-note{margin-top:12px;padding-top:12px;border-top:1px solid #fecaca}.yt-delivery-note b{color:#111827}
.yt-file-note{border-top:1px solid #eef2f7;padding-top:8px;color:#475569;line-height:1.45}.yt-file-note b{display:block;color:#111827;margin-bottom:3px}.yt-file-note span{white-space:normal;word-break:break-word}.yt-panel-note-box{display:grid;gap:10px;border:1px solid #bfdbfe;background:#eff6ff;border-radius:14px;padding:14px;margin-bottom:14px}.yt-panel-note-box b{display:block;color:#1d4ed8;margin-bottom:4px}.yt-panel-note-box p{margin:0;line-height:1.5;word-break:break-word}
.yt-mini-box small{display:block;color:#64748b;line-height:1.45;word-break:break-word}

.token-buy-link{display:flex;align-items:center;justify-content:center;margin-top:10px;border-radius:9px;background:var(--brand-red);color:#fff;text-decoration:none;font-weight:900;padding:9px 10px;line-height:1.2}
.token-buy-link:hover{filter:brightness(.96)}
.token-low-note{margin-top:8px;border:1px solid rgba(232,18,46,.35);background:rgba(232,18,46,.12);color:#fff;border-radius:10px;padding:9px;line-height:1.35;font-weight:800}
.login-card .brand img{display:block;margin:0 auto 6px}
.yt-token-alert{display:flex;align-items:center;justify-content:space-between;gap:14px;border-color:#fecaca;background:#fff7f8;margin-bottom:16px}
.yt-token-alert b{display:block;font-size:16px;margin-bottom:4px}.yt-token-alert span{color:#64748b}
@media(max-width:700px){.yt-token-alert{display:grid}.yt-token-alert .btn{width:100%}}

/* Dealer/customer management ease pass */
.yt-summary-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 16px}
.yt-summary-strip>div{background:#fff;border:1px solid #dfe8f5;border-radius:14px;padding:15px;box-shadow:0 6px 18px rgba(15,23,42,.05)}
.yt-summary-strip span{display:block;color:#64748b;font-weight:800;font-size:12px;text-transform:uppercase}
.yt-summary-strip b{display:block;font-size:26px;margin-top:4px}
.yt-form-card{margin-bottom:16px}
.yt-form-card h3{font-size:17px;margin:18px 0 10px;padding-top:12px;border-top:1px solid #eef2f7}
.yt-role-chip{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;background:#e0f2fe;color:#075985;font-weight:900;font-size:12px;margin:0 0 5px}
.yt-role-chip.dealer{background:#fef3c7;color:#92400e}
.yt-ok-text{color:#15803d;font-weight:900}.yt-muted-text{color:#64748b}
.yt-customer-table small{color:#64748b}.yt-customer-table td{vertical-align:top}
.yt-token-mini{display:grid;grid-template-columns:92px 80px minmax(120px,1fr) auto;gap:6px;align-items:center;min-width:420px}
.yt-token-mini select,.yt-token-mini input{padding:8px 9px;font-size:13px}.yt-token-mini .hint{white-space:nowrap}
@media(max-width:900px){.yt-token-mini{grid-template-columns:1fr;min-width:0}.yt-token-mini .btn{width:100%}.yt-form-card .row3{grid-template-columns:1fr}}

/* Layout stability pass 20260608 */
.main,
.card,
.form,
.table-wrap,
.yt-dashboard-section,
.yt-job-grid,
.yt-job-card,
.yt-job-card-head,
.yt-job-main,
.yt-job-left,
.yt-job-side,
.yt-mini-box,
.yt-detail-grid-clean,
.yt-detail-cards,
.yt-file-grid,
.yt-mini-grid,
.yt-chat-card,
.yt-customer-request-row,
.yt-request-status-box,
.yt-decision-box,
.yt-section-head,
.topbar,
.yt-summary-strip,
.yt-customer-filter,
.yt-filter-row,
.yt-token-box,
.yt-token-mini,
.file-cards,
.file-card{
  min-width:0;
  max-width:100%;
}

.yt-job-main{
  grid-template-columns:minmax(0,1fr) minmax(300px,420px);
  align-items:start;
}

.yt-job-side{
  grid-template-columns:1fr;
}

.yt-card-tags{
  min-width:0;
  max-width:min(58%,760px);
}

.yt-card-tags span,
.yt-badges span,
.yt-job-no,
.yt-job-left p,
.yt-mini-box b,
.yt-mini-box span,
.yt-detail-cards span,
.yt-file-card strong,
.yt-mini-card b,
.yt-mini-card span,
.yt-chat-bubble,
.yt-request-status-box span,
.yt-decision-box span,
.yt-customer-table td,
.table th,
.table td,
.file-card h3,
.file-card p{
  overflow-wrap:anywhere;
  word-break:break-word;
}

.yt-status-pill{
  flex:0 0 auto;
  white-space:nowrap;
}

.yt-job-actions,
.yt-decision-box form,
.yt-section-head,
.topbar{
  flex-wrap:wrap;
}

.yt-job-actions .btn,
.yt-actions .btn,
.topbar .btn,
.yt-section-head .btn{
  max-width:100%;
  white-space:normal;
  text-align:center;
}

.yt-decision-box{
  grid-template-columns:minmax(0,1fr) max-content max-content;
}

.yt-decision-box>div{
  min-width:0;
}

.yt-decision-box form{
  min-width:0;
  justify-content:flex-end;
}

.yt-decision-box input{
  width:170px;
  min-width:0;
  max-width:100%;
}

.yt-stat-row,
.cards{
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
}

.yt-customer-filter{
  grid-template-columns:minmax(180px,1fr) minmax(130px,170px) minmax(130px,170px) auto;
}

.yt-token-mini{
  width:min(540px,100%);
  min-width:0;
  grid-template-columns:minmax(82px,96px) minmax(72px,88px) minmax(110px,1fr) auto;
}

.yt-token-mini input,
.yt-token-mini select{
  min-width:0;
}

.file-card{
  overflow:hidden;
}

.file-card .badge{
  max-width:calc(100% - 24px);
  white-space:normal;
  text-align:right;
}

@media(max-width:1350px){
  .yt-decision-box{
    grid-template-columns:1fr;
  }
  .yt-decision-box form{
    justify-content:flex-start;
  }
}

@media(max-width:1100px){
  .yt-job-main,
  .yt-customer-filter,
  .yt-token-mini{
    grid-template-columns:1fr;
  }
  .yt-card-tags{
    max-width:100%;
    justify-content:flex-start;
  }
}

@media(max-width:700px){
  .yt-job-card-head,
  .yt-section-head,
  .topbar{
    display:block;
  }
  .yt-status-pill,
  .yt-card-tags,
  .yt-job-actions .btn,
  .yt-decision-box .btn,
  .yt-decision-box input{
    width:100%;
  }
  .yt-card-tags{
    margin-top:10px;
  }
  .yt-decision-box form{
    display:grid;
    width:100%;
  }
}
