
/* SC DYNOVIQ TUNER v32 — NACHBESSERUNG */
.t32-rework-badge{
  border-color:#d99543!important;
  background:rgba(217,149,67,.12)!important;
  color:#efb867!important;
}
.t32-rework-btn{
  border-color:#d99543!important;
  color:#efb867!important;
}
.t32-action-rework{border-color:#5b4329!important}
.t32-action-rework i{color:#e5a651!important}

.t32-page{padding-bottom:110px}
.t32-hero{
  display:flex;align-items:center;justify-content:space-between;gap:28px;
  padding:28px;border:1px solid #4a3725;border-radius:20px;
  background:linear-gradient(135deg,#11100d,#090b0c 62%);
  margin-bottom:18px;
}
.t32-hero h1{margin:8px 0 8px;font-size:38px;line-height:1.05;color:#fff}
.t32-hero h1 em{color:#e4a65b;font-style:normal}
.t32-hero p{max-width:780px;color:#aeb2b5;line-height:1.5}
.t32-hero-badge{
  min-width:170px;text-align:center;padding:20px;border:1px solid #7f5932;border-radius:16px;
  background:#17110b;
}
.t32-hero-badge b{display:block;font-size:34px;color:#e6aa61}
.t32-hero-badge span{display:block;font-size:11px;color:#bbb2a7;margin-top:4px}

.t32-rules{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 18px;
}
.t32-rules article{
  min-height:112px;padding:16px;border:1px solid #2b3034;border-radius:15px;
  background:linear-gradient(180deg,#0d1012,#090b0d);
}
.t32-rules article>b{
  display:grid;place-items:center;width:30px;height:30px;border-radius:50%;
  background:#d99a4e;color:#090909;margin-bottom:10px;
}
.t32-rules span{display:block;color:#fff;font-weight:800}
.t32-rules small{display:block;color:#8e959a;margin-top:5px;line-height:1.35}

.t32-rework-list{display:grid;gap:12px}
.t32-rework-card{
  padding:18px;border:1px solid #2c3135;border-radius:16px;background:#090b0d;
}
.t32-rework-card.active{border-color:#62482e;background:linear-gradient(180deg,#0f0e0b,#090b0d)}
.t32-rework-top{display:flex;align-items:flex-start;justify-content:space-between;gap:18px}
.t32-rework-top h3{margin:4px 0;color:#fff;font-size:20px}
.t32-rework-top p{margin:0;color:#9ba1a5}
.t32-rework-state{
  flex:0 0 auto;padding:7px 10px;border-radius:999px;border:1px solid #343a3f;color:#9ea5aa;font-size:11px;font-weight:800;
}
.t32-rework-state.requested,.t32-rework-state.in_progress{border-color:#805b31;color:#e3a75f;background:#17110c}
.t32-rework-state.ready{border-color:#2f7e5c;color:#72d2a1;background:#0b1712}
.t32-rework-state.resolved{border-color:#425d72;color:#8dc3e8;background:#0b1217}
.t32-rework-state.rejected{border-color:#773d3d;color:#e79696;background:#170c0c}
.t32-rework-info{
  display:grid;grid-template-columns:130px 1fr;gap:14px;margin-top:12px;padding:12px 14px;border-radius:12px;background:#0d1012;
}
.t32-rework-info b{color:#b6bbc0}.t32-rework-info span{color:#e4e6e7}
.t32-rework-info.admin{border:1px solid #554129;background:#12100c}
.t32-rework-card>small{display:block;margin-top:10px;color:#777f85}
.t32-rework-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.t32-free{color:#8dd6af;font-size:12px;font-weight:800}

.t32-modal{
  position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.78);backdrop-filter:blur(8px);
  display:grid;place-items:center;padding:18px;
}
.t32-modal-card{
  width:min(720px,100%);max-height:92vh;overflow:auto;position:relative;
  padding:24px;border-radius:20px;border:1px solid #5b432b;background:#080a0b;box-shadow:0 24px 70px rgba(0,0,0,.65);
}
.t32-close{
  position:absolute;right:14px;top:12px;width:38px;height:38px;border-radius:50%;
  border:1px solid #333;background:#111;color:#fff;font-size:24px;
}
.t32-modal-card h2{color:#fff;margin:6px 0}
.t32-modal-card label{display:block;color:#b8bdc1;font-size:12px;margin-top:15px}
.t32-modal-card select,.t32-modal-card textarea,.t32-modal-card input[type=file]{
  width:100%;box-sizing:border-box;margin-top:7px;padding:12px;border:1px solid #343a3f;border-radius:12px;background:#050708;color:#fff;
}
.t32-file-label small{display:block;color:#777;margin-top:2px}
.t32-modal-info{margin-top:16px;padding:13px;border:1px solid #4d3823;border-radius:12px;background:#120f0b}
.t32-modal-info b{display:block;color:#e3a75f}.t32-modal-info span{display:block;color:#bcb7b0;margin-top:4px;font-size:12px;line-height:1.45}
.t32-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}

@media(max-width:760px){
  .t32-hero{display:block;padding:18px}
  .t32-hero h1{font-size:28px}
  .t32-hero-badge{margin-top:16px;min-width:0}
  .t32-rules{grid-template-columns:1fr 1fr}
  .t32-rework-top{display:block}
  .t32-rework-state{display:inline-block;margin-top:10px}
  .t32-rework-info{grid-template-columns:1fr;gap:4px}
  .t32-modal-card{padding:18px}
  .t32-modal-actions{display:grid;grid-template-columns:1fr 1fr}
}

/* Prominent order/rework status, readable on phones without horizontal scrolling. */
.t32-order-progress{padding:16px;margin:14px 0;border:1px solid #936332;border-radius:14px;background:#17120e}
.t32-order-progress>small{display:block;color:#c5b8aa;font-size:12px}
.t32-order-progress>strong{display:block;margin:5px 0 12px;font-size:20px;color:#efb56d}
.t32-order-progress ol{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 12px;padding:0}
.t32-order-progress li{display:flex;flex-direction:column;gap:6px;padding:10px 6px;border-radius:8px;background:#211d19;color:#bcb5ad;font-size:12px;overflow-wrap:anywhere}
.t32-order-progress li span{font-weight:bold;font-size:16px}
.t32-order-progress li.current{background:#dca054;color:#17100a;font-weight:700}
.t32-order-progress li.done{color:#e5be8b;border-bottom:2px solid #b57c3d}
.t32-status-sync{color:#c9bcae;font-size:12px;margin:0 0 14px;line-height:1.5}
@media(max-width:600px){.t32-order-progress ol{grid-template-columns:repeat(2,minmax(0,1fr))}.t32-order-progress>strong{font-size:19px}}
