/* Identidade visual Amarelo: laranja #ff560b, lima #e1ff31, azul #1f93ff, tinta #141414, Helvetica */
:root {
  --bg: #f5f5f2;        /* fundo da página (creme do site) */
  --bg2: #fafaf8;       /* áreas internas e campos */
  --panel: #ffffff;
  --panel2: #efefea;
  --line: #e5e5e0;
  --line2: #d4d4cd;
  --text: #141414;
  --mute: #606060;
  --dim: #8a8a83;
  --orange: #ff560b;
  --orange-dark: #d63c00;
  --orange-soft: rgba(255, 86, 11, .08);
  --lime: #e1ff31;
  --blue: #1f93ff;
  --blue-text: #0a6fd0;
  --ok: #17824e;
  --ok-bar: #23a866;
  --warn: #a96500;
  --bad: #c62828;
  --radius: 10px;
  --font: Helvetica, Arial, sans-serif;
  --brand: Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, .tab:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; }
h1 { font-family: var(--brand); font-size: 30px; font-weight: 600; letter-spacing: -.045em; line-height: 1.1; }
h2 { font-size: 15px; letter-spacing: -.01em; }
h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .13em; color: var(--mute); font-weight: 700; }
code, .mono { font-family: var(--mono); font-size: 12px; word-break: break-all; color: var(--mute); }
small, .muted { color: var(--mute); }
hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }

/* layout */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px;
  padding: 0 28px; height: 72px; background: rgba(255,255,255,.98); backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 14px; color: var(--text); }
.logo:hover { text-decoration: none; }
.logo img { height: 34px; width: auto; display: block; }
.logo span.sub { font-weight: 700; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; color: var(--mute); padding-left: 14px; border-left: 1px solid var(--line2); line-height: 22px; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a { white-space: nowrap; color: var(--text); padding: 10px 12px; border-radius: 7px; font-weight: 500; position: relative; }
.nav a:hover { color: var(--orange-dark); text-decoration: none; }
.nav a.on { color: var(--orange-dark); }
.nav a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--orange); border-radius: 2px; }
.who { display: flex; align-items: center; gap: 10px; color: var(--mute); font-size: 13px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--text); font-weight: 700; font-size: 12px; }
.avatar:hover { text-decoration: none; }
main { max-width: 1180px; margin: 0 auto; padding: 36px 24px 80px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.head p { margin: 8px 0 0; color: var(--mute); font-size: 15px; }

/* cards & panels */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.panel + .panel { margin-top: 16px; }
.panel h3 { margin-bottom: 12px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: border-color .15s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--line2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,20,20,.06); text-decoration: none; }
.card.mine { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.thumb { aspect-ratio: 16/10; background: var(--panel2); display: grid; place-items: center; color: var(--dim); font-size: 12px; overflow: hidden; border-bottom: 1px solid var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .ico { font-weight: 700; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .title { font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -.01em; }
.card .meta { display: flex; gap: 8px; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; color: var(--mute); font-size: 12px; }
.code { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .02em; }

/* badges */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--panel2); color: var(--mute); border: 1px solid var(--line2); }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.s-aprovado, .d-aprovado { color: var(--ok); border-color: rgba(23,130,78,.3); background: rgba(23,130,78,.08); }
.s-em_aprovacao { color: var(--blue-text); border-color: rgba(31,147,255,.35); background: rgba(31,147,255,.08); }
.s-ajustes_solicitados, .d-ajustes { color: var(--warn); border-color: rgba(214,140,0,.35); background: rgba(255,184,40,.12); }
.s-reprovado, .d-reprovado { color: var(--bad); border-color: rgba(198,40,40,.3); background: rgba(198,40,40,.07); }
.s-rascunho, .s-arquivado, .d-pendente { color: var(--mute); }
.s-excluido { color: #fff; background: var(--bad); border-color: var(--bad); }
.card.deleted { opacity: .75; }
.notice.bad { border-color: rgba(198,40,40,.35); background: rgba(198,40,40,.06); }
.pill { font-size: 11px; padding: 2px 9px; border-radius: 99px; background: var(--lime); color: var(--text); font-weight: 700; }

/* forms */
label { display: block; font-size: 12px; color: var(--mute); margin: 0 0 6px; font-weight: 600; }
.field { margin-bottom: 16px; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: #fff; border: 1px solid var(--line2);
  border-radius: 7px; padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,147,255,.18); }
textarea { min-height: 96px; resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--orange); }
.check { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 7px; cursor: pointer; color: var(--text); font-size: 14px; margin: 0; background: #fff; font-weight: 500; }
.check:hover { border-color: var(--text); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hint { font-size: 12px; color: var(--dim); margin-top: 6px; }

/* buttons (como no site: laranja → lima no hover, contorno → tinta no hover) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; padding: 11px 18px; border-radius: 7px; cursor: pointer; border: 1px solid var(--text); background: transparent; color: var(--text); white-space: nowrap; transition: background .2s, color .2s, transform .2s, border-color .2s; }
.btn:hover { background: var(--text); color: #fff; text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--orange); border-color: var(--orange); color: #131313; }
.btn.primary:hover:not(:disabled) { background: var(--lime); border-color: var(--lime); color: var(--text); transform: translateY(-1px); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ok:hover:not(:disabled) { background: #0f6b3e; border-color: #0f6b3e; }
.btn.warn { background: #fff; border-color: rgba(169,101,0,.5); color: var(--warn); }
.btn.warn:hover:not(:disabled) { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.bad { background: #fff; border-color: rgba(198,40,40,.45); color: var(--bad); }
.btn.bad:hover:not(:disabled) { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--text); }
.btn.ghost:hover { color: var(--orange-dark); background: transparent; }
.btn.sm { padding: 6px 11px; font-size: 12px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* tabs / filters */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line2); color: var(--text); font-size: 13px; font-weight: 500; cursor: pointer; background: #fff; font-family: inherit; }
.tab:hover { border-color: var(--text); text-decoration: none; }
.tab.on { color: #fff; background: var(--text); border-color: var(--text); }
.tab .n { opacity: .6; margin-left: 4px; }
.toolbar { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar input, .toolbar select { max-width: 320px; }

/* material detail */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.vtabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--mute); }
.kv dd { margin: 0; }
.approver { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.approver:last-child { border-bottom: 0; }
.approver .n { font-weight: 500; }
.decision { padding: 12px 0; border-bottom: 1px solid var(--line); }
.decision:last-child { border-bottom: 0; }
.decision .c { margin-top: 6px; white-space: pre-wrap; color: var(--text); }
.decision .m { font-size: 12px; color: var(--dim); margin-top: 4px; }
.notice { padding: 12px 14px; border-radius: 8px; border: 1px solid rgba(31,147,255,.3); background: rgba(31,147,255,.06); color: var(--text); font-size: 13px; }
.notice.warn { border-color: rgba(214,140,0,.35); background: rgba(255,184,40,.1); }
.notice.ok { border-color: rgba(23,130,78,.3); background: rgba(23,130,78,.07); }

/* preview */
.preview { display: flex; flex-direction: column; gap: 14px; }
.media img, .media video { display: block; width: 100%; max-height: 78vh; object-fit: contain; background: #141414; border-radius: 8px; border: 1px solid var(--line); }
.media img { cursor: zoom-in; }
.media iframe { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.media audio { width: 100%; }
.fileline { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); }
.fileline .nm { font-weight: 500; word-break: break-all; }
.linkbox { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line2); border-radius: 8px; background: var(--bg2); }
.linkbox .u { font-family: var(--mono); font-size: 13px; word-break: break-all; }
.textbox { white-space: pre-wrap; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); line-height: 1.6; }
.cap { font-size: 12px; color: var(--dim); margin-top: 6px; }

/* instagram mock (mantém o visual do Instagram) */
.ig { max-width: 420px; margin: 0 auto; width: 100%; background: #000; border: 1px solid #262626; border-radius: 14px; overflow: hidden; color: #f5f5f5; font-family: -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif; }
.ig-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 600; font-size: 13px; }
.ig-av { width: 32px; height: 32px; border-radius: 50%; padding: 2px; background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); }
.ig-av div { width: 100%; height: 100%; border-radius: 50%; background: #0b1220; border: 2px solid #000; display: grid; place-items: center; font-family: var(--brand); font-weight: 700; font-size: 8px; color: #4fc3e8; }
.ig-stage { position: relative; background: #111; aspect-ratio: 4/5; overflow: hidden; }
.ig.tall .ig-stage { aspect-ratio: 9/16; }
.ig-track { display: flex; height: 100%; transition: transform .3s ease; }
.ig-track > * { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #000; cursor: pointer; font-size: 16px; line-height: 1; }
.ig-arrow.l { left: 8px; } .ig-arrow.r { right: 8px; }
.ig-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 99px; font-size: 12px; }
.ig-dots { display: flex; justify-content: center; gap: 4px; padding: 10px 0 4px; }
.ig-dots i { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.ig-dots i.on { background: #0095f6; }
.ig-acts { display: flex; gap: 14px; padding: 6px 12px; font-size: 20px; }
.ig-cap { padding: 4px 12px 14px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; }
.ig-empty { display: grid; place-items: center; height: 100%; color: #777; font-size: 13px; }

/* uploader */
.drop { border: 1.5px dashed var(--line2); border-radius: var(--radius); padding: 26px; text-align: center; color: var(--mute); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--orange); background: var(--orange-soft); color: var(--text); }
.drop b { color: var(--orange-dark); }
.uplist { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.up { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg2); }
.up .tn { width: 52px; height: 52px; border-radius: 6px; background: var(--panel2); display: grid; place-items: center; overflow: hidden; font-size: 10px; color: var(--mute); text-transform: uppercase; font-weight: 700; }
.up .tn img { width: 100%; height: 100%; object-fit: cover; }
.up .nm { font-size: 13px; word-break: break-all; }
.bar { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: var(--orange); width: 0; transition: width .15s; }

/* comments / history */
.comment { padding: 10px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment .a { font-weight: 600; font-size: 13px; }
.comment .t { white-space: pre-wrap; margin-top: 4px; }
.hist { font-size: 12px; }
.hist div { padding: 6px 0; border-bottom: 1px dashed var(--line); color: var(--mute); }
.hist b { color: var(--text); font-weight: 600; }

/* tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; color: var(--mute); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--line2); }
.tbl td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: var(--bg2); }
.scroll { overflow-x: auto; }

/* modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(20,20,20,.45); backdrop-filter: blur(4px); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px; box-shadow: 0 30px 80px rgba(20,20,20,.25); }
.modal h2 { font-size: 20px; letter-spacing: -.03em; margin-bottom: 6px; }
.modal p { color: var(--mute); margin: 0 0 18px; font-size: 13px; }
.lightbox { position: fixed; inset: 0; background: rgba(10,10,10,.94); z-index: 60; display: grid; place-items: center; cursor: zoom-out; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--text); color: #fff; border: 1px solid var(--text); border-left: 4px solid var(--lime); padding: 12px 18px; border-radius: 8px; z-index: 70; box-shadow: 0 10px 30px rgba(20,20,20,.25); max-width: calc(100vw - 32px); }
.toast.err { border-left-color: #ff6b6b; color: #ffe1e1; }
.toast.ok { border-left-color: var(--lime); }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .box { width: 100%; max-width: 400px; }
.login .brand { text-align: center; margin-bottom: 28px; }
.login .brand img { width: 220px; max-width: 70%; height: auto; display: block; margin: 0 auto; }
.login .brand .s { color: var(--mute); margin-top: 14px; font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.login .panel { padding: 28px; }
.login .btn.primary { padding: 14px 18px; }
.empty { text-align: center; padding: 60px 20px; color: var(--mute); border: 1px dashed var(--line2); border-radius: var(--radius); background: #fff; }

/* quadro (kanban) */
main.wide { max-width: 1680px; }
.toolbar .check { padding: 9px 12px; font-size: 13px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; scroll-snap-type: x proximity; }
.col { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-width: 0; scroll-snap-align: start; --c: var(--dim); }
.col header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line2); }
.col header h2 { font-size: 13px; flex: 1; }
.col header .n { font-size: 12px; font-weight: 600; color: var(--text); background: #fff; border: 1px solid var(--line2); border-radius: 99px; padding: 1px 8px; }
.cdot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.c-em_aprovacao { --c: var(--blue); } .c-ajustes_solicitados { --c: #e09a00; } .c-aprovado { --c: var(--ok-bar); } .c-reprovado { --c: var(--bad); } .c-arquivado, .c-rascunho { --c: var(--dim); }
.col-body { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.col-empty { color: var(--dim); font-size: 12px; text-align: center; padding: 18px 8px; border: 1px dashed var(--line2); border-radius: 8px; }
.kcard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--c); border-radius: 8px; padding: 12px; color: var(--text); transition: border-color .15s, transform .2s, box-shadow .2s; }
.kcard:hover { border-color: var(--line2); border-left-color: var(--c); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20,20,20,.06); text-decoration: none; }
.kcard.mine { border-color: var(--orange); border-left-color: var(--orange); box-shadow: 0 0 0 1px var(--orange); }
.kthumb { margin: -12px -12px 4px; aspect-ratio: 16/8; overflow: hidden; border-radius: 7px 7px 0 0; background: var(--panel2); }
.kthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ktop { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.ktop .pill { flex-shrink: 0; white-space: nowrap; }
.ktitle { font-weight: 600; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.kmeta, .kfoot { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 12px; color: var(--mute); }
.kfoot { color: var(--dim); font-size: 11px; }
.kmeta .late { color: var(--bad); font-weight: 600; }
.kprog { height: 4px; border-radius: 99px; background: var(--panel2); overflow: hidden; margin-top: 2px; }
.kprog i { display: block; height: 100%; background: var(--ok-bar); border-radius: 99px; }
@media (max-width: 720px) {
  .board { grid-auto-columns: 82vw; margin: 0 -16px; padding: 0 16px 12px; scroll-padding: 0 16px; }
}

/* responsive */
@media (max-width: 960px) {
  .detail { grid-template-columns: 1fr; }
  .side { position: static; order: 2; }
  .maincol { display: contents; }
  .maincol > .panel + .panel { margin-top: 0; }
  .detail { display: flex; flex-direction: column; gap: 16px; }
  .cpanel { order: 3; }
}
@media (max-width: 720px) {
  .top { padding: 0 14px; gap: 10px; height: auto; min-height: 60px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 4px; }
  .logo img { height: 28px; }
  .logo span.sub { display: none; }
  .nav { order: 3; flex-basis: 100%; overflow-x: auto; margin: 0 -6px; }
  .who { margin-left: auto; }
  .who .nm { display: none; }
  main { padding: 24px 16px 80px; }
  h1 { font-size: 26px; }
  .row { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 100px 1fr; }
  .media iframe { height: 60vh; }
}
