/* ARCH 360 ERP — Post to TikTok (Drafting Table) */
.a360-tt-btn{
  display:inline-flex;align-items:center;gap:6px;
  background:#111;color:#fff;border:1px solid #111;
  font-family:Barlow,system-ui,sans-serif;font-weight:600;font-size:12.5px;
  padding:7px 12px;border-radius:8px;cursor:pointer;letter-spacing:.01em;
}
.a360-tt-btn:hover{background:#222}
.a360-tt-btn--ghost{background:#fff;color:#111;border-color:#d0d0d0}
.a360-tt-btn--ghost:hover{border-color:#111}
.a360-tt-btn--primary{background:var(--red,#c62828);border-color:var(--red,#c62828)}
.a360-tt-btn--primary:hover{filter:brightness(1.05)}
.a360-tt-btn:disabled{opacity:.45;cursor:not-allowed;filter:none}
.a360-tt-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 10px;border-radius:999px;font-size:11.5px;font-weight:600;
  background:#f3f3f3;color:#333;border:1px solid #e5e5e5;
}
.a360-tt-chip img{width:18px;height:18px;border-radius:50%;object-fit:cover}
.a360-tt-chip.on{background:#e8f5e9;border-color:#a5d6a7;color:#1b5e20}
.a360-tt-chip.off{background:#fafafa;color:#777}

.a360-tt-overlay{
  position:fixed;inset:0;z-index:12000;background:rgba(17,17,17,.55);
  display:flex;align-items:center;justify-content:center;padding:16px;
}
.a360-tt-modal{
  width:min(720px,100%);max-height:min(92vh,900px);overflow:auto;
  background:#fff;border-radius:14px;box-shadow:0 24px 80px rgba(0,0,0,.28);
  font-family:Barlow,system-ui,sans-serif;color:#111;
}
.a360-tt-head{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:16px 18px;border-bottom:1px solid #eee;position:sticky;top:0;background:#fff;z-index:1;
}
.a360-tt-head h3{margin:0;font-family:"Barlow Condensed",Barlow,sans-serif;font-size:22px;font-weight:700;letter-spacing:.02em}
.a360-tt-head .sub{font-size:12px;color:#666;margin-top:2px}
.a360-tt-body{padding:16px 18px 8px}
.a360-tt-foot{
  display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;align-items:center;
  padding:14px 18px;border-top:1px solid #eee;position:sticky;bottom:0;background:#fff;
}
.a360-tt-creator{
  display:flex;align-items:center;gap:12px;padding:12px;border:1px solid #eee;border-radius:12px;background:#fafafa;margin-bottom:14px;
}
.a360-tt-creator img{width:48px;height:48px;border-radius:50%;object-fit:cover;background:#ddd}
.a360-tt-creator .name{font-weight:700;font-size:15px}
.a360-tt-creator .user{font-size:12px;color:#666}
.a360-tt-grid{display:grid;gap:12px}
.a360-tt-row label{
  display:block;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#555;margin-bottom:5px;
}
.a360-tt-row input[type=text],.a360-tt-row textarea,.a360-tt-row select{
  width:100%;box-sizing:border-box;border:1px solid #d8d8d8;border-radius:8px;
  padding:9px 11px;font:inherit;font-size:14px;background:#fff;
}
.a360-tt-row textarea{min-height:88px;resize:vertical}
.a360-tt-row input:focus,.a360-tt-row textarea:focus,.a360-tt-row select:focus{
  outline:2px solid rgba(198,40,40,.25);border-color:#c62828;
}
.a360-tt-toggles{display:flex;flex-wrap:wrap;gap:10px 16px}
.a360-tt-check{
  display:inline-flex;align-items:center;gap:7px;font-size:13.5px;font-weight:500;cursor:pointer;user-select:none;
}
.a360-tt-check input{width:16px;height:16px;accent-color:#c62828}
.a360-tt-check.is-disabled{opacity:.45;cursor:not-allowed}
.a360-tt-preview{
  border:1px solid #eee;border-radius:12px;overflow:hidden;background:#111;aspect-ratio:9/16;max-height:280px;
  display:flex;align-items:center;justify-content:center;color:#aaa;font-size:13px;
}
.a360-tt-preview video,.a360-tt-preview img{width:100%;height:100%;object-fit:contain;background:#000}
.a360-tt-split{display:grid;grid-template-columns:1fr 180px;gap:14px}
@media(max-width:640px){.a360-tt-split{grid-template-columns:1fr}}
.a360-tt-box{border:1px solid #eee;border-radius:12px;padding:12px;background:#fff}
.a360-tt-box h4{margin:0 0 8px;font-size:13px;font-weight:700}
.a360-tt-hint{font-size:12px;color:#666;line-height:1.45;margin:6px 0 0}
.a360-tt-warn{font-size:12px;color:#b71c1c;margin-top:6px}
.a360-tt-consent{font-size:12.5px;line-height:1.5;color:#333;margin:10px 0 0}
.a360-tt-consent a{color:#c62828;font-weight:600}
.a360-tt-status{
  margin-top:10px;padding:10px 12px;border-radius:10px;background:#f5f5f5;font-size:13px;font-weight:600;
}
.a360-tt-status.ok{background:#e8f5e9;color:#1b5e20}
.a360-tt-status.err{background:#ffebee;color:#b71c1c}
.a360-tt-status.wait{background:#fff8e1;color:#6d4c00}
.a360-tt-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 12px}
