/* Stylistyka Henkel Consumer Brands - uzupełnienie Tailwind */
:root { --red: #E1000F; --red-dark: #B8000C; --ink: #1A1A1A; --line: #E6E6E6; --bg: #F5F5F5; }

.henkel-badge { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px;
  background: var(--red); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -.01em; }

.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .22rem .6rem; border-radius: 4px;
  font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.pill-blue { background: #EAF0F7; color: #1F4E8C; }
.pill-amber { background: #FEF4E2; color: #8A5300; }
.pill-green { background: #E7F4EC; color: #146C3E; }
.pill-red { background: #FDECEC; color: #B42318; }
.pill-gray { background: #F0F0F0; color: #4A4A4A; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 6px;
  font-weight: 500; font-size: 14px; padding: .6rem 1.1rem; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-primary:disabled { background: #F3A9AE; cursor: not-allowed; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid #D6D6D6; }
.btn-secondary:hover { border-color: var(--ink); }
.btn-ghost { color: #4A4A4A; padding: .45rem .7rem; font-size: 13px; }
.btn-ghost:hover { color: var(--ink); background: #F0F0F0; }
.btn-sm { font-size: 13px; padding: .4rem .75rem; }
.btn-lg { font-size: 15px; padding: .8rem 1.4rem; border-radius: 6px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; }

.field { width: 100%; border: 1px solid #D6D6D6; border-radius: 6px; padding: .65rem .85rem; font-size: 15px;
  background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 3px #EDEDED; }

.progress { height: 6px; border-radius: 999px; background: #EBEBEB; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--red); border-radius: 999px; transition: width .6s ease; }

/* Edycja tekstów */
.tx { width: 100%; resize: none; overflow: hidden; border: 1px solid transparent; border-radius: 6px;
  padding: .45rem .55rem; font-size: 14px; line-height: 1.45; background: #F5F5F5; outline: none;
  transition: border-color .15s, background .15s, box-shadow .15s; min-height: 2.4rem; display: block; }
.tx:hover { border-color: #E0E0E0; }
.tx:focus { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 3px #EDEDED; }
.tx.tx-en { background: #F7F9FC; }
.tx.tx-note { font-size: 12.5px; line-height: 1.4; background: #FFFBF0; color: #5C4400; min-height: 2rem; }
.tx.tx-note::placeholder { color: #B8A77A; }
.tx[readonly] { background: transparent; cursor: default; }
.counter { font-size: 11.5px; font-variant-numeric: tabular-nums; font-weight: 500; }
.c-ok { color: #146C3E; }
.c-warn { color: #8A5300; }
.c-over { color: #D9480F; }
.c-over::before { content: "⚠ "; }
.c-none { color: #8C8C8C; }
.tx.over { border-color: #F5B48F; background: #FFF6F1; }
.row-seg { cursor: pointer; transition: background .15s; }
.row-seg:hover { background: #FAFAFA; }
.row-seg.playing { background: #FFF5F5; box-shadow: inset 3px 0 0 var(--red); }

.drop { border: 1.5px dashed #C8C8C8; border-radius: 8px; background: #FAFAFA; transition: border-color .15s, background .15s; }
.drop.dragover { border-color: var(--red); background: #FFF5F5; }

.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice > span { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid #D6D6D6; border-radius: 6px;
  padding: .55rem 1rem; font-size: 14px; font-weight: 500; cursor: pointer; background: #fff; transition: all .15s; user-select: none; }
.choice input:checked + span { border-color: var(--red); background: #FFF5F5; color: var(--red-dark); }
.choice input:focus-visible + span { box-shadow: 0 0 0 3px #FAD5D7; }

dialog::backdrop { background: rgba(26, 26, 26, .4); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }

/* Tabela tekstów v2: tryb „wszystkie języki” / „jeden język” */
.grid-rows > .gr { display: grid; column-gap: 16px; }
#review[data-view="all"] .gr { grid-template-columns: var(--tcol) minmax(0, 1.35fr) repeat(var(--nl), minmax(0, 1fr)); }
#review[data-view="one"] .gr { grid-template-columns: var(--tcol) minmax(0, .9fr) minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.15fr); }
#review[data-view="all"] .src { display: flex; flex-direction: column; gap: 6px; }
#review[data-view="one"] .src { display: contents; }
#review[data-view="all"] .h-one { display: none; }
#review[data-view="one"] .h-all { display: none; }
#review[data-view="one"] .lc:not(.lc-on) { display: none; }
#review[data-view="all"] .pl-one { display: none; }
#review[data-view="one"] .pl-all { display: none; }
#review[data-view="one"] .src > .pl-one { padding-top: .5rem; }
.src-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: #8C8C8C; font-weight: 600; }

.seg-toggle { display: inline-flex; border: 1px solid #D6D6D6; border-radius: 6px; overflow: hidden; background: #fff; }
.seg-toggle button { padding: .42rem .85rem; font-size: 13px; font-weight: 500; color: #4A4A4A; border-left: 1px solid #D6D6D6; }
.seg-toggle button:first-child { border-left: 0; }
.seg-toggle button.on { background: var(--ink); color: #fff; }

.bubble { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 4px;
  padding: 2px 7px; color: #8C8C8C; }
.bubble:hover { background: #F0F0F0; color: var(--ink); }
.bubble.has { background: #FEF4E2; color: #8A5300; }
.bubble.has:hover { background: #FCE7C2; }
.bubble.closed { color: #6B6B6B; }
.lc .bubble:not(.has):not(.closed) { opacity: 0; }
.gr:hover .lc .bubble, .lc .bubble:focus { opacity: 1; }

.tin { width: 50px; border: 1px solid #D6D6D6; border-radius: 4px; padding: 2px 5px; font-size: 12.5px;
  font-variant-numeric: tabular-nums; text-align: right; background: #fff; outline: none; }
.tin:focus { border-color: var(--ink); box-shadow: 0 0 0 2px #EDEDED; }
.tin.bad { border-color: #D9480F; background: #FFF6F1; }
.src-tag { display: inline-block; font-size: 10.5px; line-height: 1.3; padding: 1px 5px; border-radius: 3px; background: #F0F0F0; color: #4A4A4A; }
.src-tag.diff { background: #E7F4EC; color: #146C3E; }
.src-tag.llm { background: #FEF4E2; color: #8A5300; }
.src-tag.agency { background: #EAF0F7; color: #1F4E8C; }
.src-tag.manual { background: #F0F0F0; color: #1A1A1A; }

.market-card { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 14px 16px; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; background: #fff; border-left: 1px solid var(--line);
  box-shadow: -12px 0 32px rgba(0,0,0,.08); transform: translateX(100%); z-index: 40;
  display: flex; flex-direction: column; visibility: hidden; transition: transform .2s ease, visibility 0s .2s; }
.drawer.open { transform: none; visibility: visible; transition: transform .2s ease; }
.cmt { border-radius: 6px; padding: 10px 12px; background: #F7F7F7; }
.cmt.mine { background: #FFF5F5; }
.cmt.resolved { opacity: .6; }
.okbox { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: #4A4A4A;
  border: 1px solid #D6D6D6; border-radius: 4px; padding: 3px 9px; cursor: pointer; user-select: none; background: #fff; }
.okbox.on { background: #E7F4EC; border-color: #A9D8BC; color: #146C3E; }
.vtabs { display: inline-flex; gap: 2px; background: #EBEBEB; border-radius: 6px; padding: 2px; }
.vtabs button { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 4px; color: #4A4A4A; }
.vtabs button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tabs a { padding: 10px 2px; font-size: 14px; font-weight: 500; color: #6B6B6B; border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--ink); border-color: var(--red); }
.tabs a:hover { color: var(--ink); }
.mk { font-weight: 500; }
.mk-green { color: #146C3E; }
.mk-amber { color: #8A5300; }
.mk-blue { color: #1F4E8C; }
.mk-gray { color: #8C8C8C; }

/* v4: akceptacja filmu - komentarze z czasem, etapy rynku */
.vc { border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; background: #fff; }
.vc + .vc { margin-top: 8px; }
.vc.mine { background: #FFFAFA; }
.vc.resolved { opacity: .62; }
.vc-head { display: flex; align-items: center; gap: 6px; }
.vc-time { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums;
  background: #1A1A1A; color: #fff; border-radius: 4px; padding: 2px 7px 2px 6px; }
.vc-time svg { width: 9px; height: 9px; }
.vc-time:hover { background: var(--red); }
.vc-cat { font-size: 11px; font-weight: 600; border-radius: 3px; padding: 1px 6px; }
.cat-voice { background: #EAF0F7; color: #1F4E8C; }
.cat-subtitles { background: #FDEDEE; color: #B8000C; }
.cat-other { background: #F0F0F0; color: #4A4A4A; }
.vc-ver { font-size: 11px; font-weight: 600; color: #146C3E; background: #E7F4EC; border-radius: 3px; padding: 1px 5px; }
.vc-ver.old { color: #8A5300; background: #FEF4E2; }
.vc-date { font-size: 11px; color: #8C8C8C; font-weight: 400; font-variant-numeric: tabular-nums; }
.vc-auth { font-size: 12.5px; font-weight: 600; margin-top: 6px; }
.vc-text { font-size: 13.5px; line-height: 1.45; margin-top: 2px; white-space: pre-wrap; }
.vc-reply { margin: 8px 0 0 10px; padding-left: 10px; border-left: 2px solid #E6E6E6; }
.vc-reply.mine { border-color: #F3A9AE; }
.vc-reply .vc-auth { margin-top: 0; }
.vc-foot { display: flex; gap: 4px; margin-top: 6px; margin-left: -6px; align-items: center; }
.vc-btn { font-size: 12.5px; font-weight: 500; color: #4A4A4A; padding: 3px 6px; border-radius: 4px; }
.vc-btn:hover { background: #F0F0F0; color: var(--ink); }
.vc-done { font-size: 12px; color: #146C3E; padding-left: 6px; }
.vc-form { margin-top: 8px; }
.vc-err { font-size: 12.5px; color: #B42318; margin-top: 4px; }
.vc-empty { font-size: 13px; color: #8C8C8C; }

.steps { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: #8C8C8C; }
.steps .st { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; }
.steps .st b { width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; border: 1.5px solid #C8C8C8; color: #8C8C8C; }
.steps .st.on { color: var(--ink); }
.steps .st.on b { background: var(--red); border-color: var(--red); color: #fff; }
.steps .st.done { color: #146C3E; }
.steps .st.done b { background: #E7F4EC; border-color: #A9D8BC; color: #146C3E; }
.steps .sep { width: 28px; height: 1.5px; background: #D6D6D6; }

.catseg { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.catseg button { font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid #D6D6D6; color: #4A4A4A; background: #fff; }
.catseg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.stage-line { font-size: 12.5px; color: #4A4A4A; }
.lang-stage { display: flex; align-items: center; gap: 8px; line-height: 1.9; }
.lang-stage .lc { font-size: 11px; font-weight: 700; letter-spacing: .03em; color: #4A4A4A; width: 20px; }
