:root {
  --violet: #7d27f4;
  --violet-dark: #5d14c7;
  --violet-soft: #efe6ff;
  --ink: #1e1e1f;
  --ink-2: #4a4a55;
  --muted: #6b6b78;
  --line: #e4e0ee;
  --bg: #f6f4fb;
  --card: #ffffff;
  --ok: #157f4f;
  --ok-soft: #e3f5ec;
  --warn: #9a5b00;
  --warn-soft: #fff1d6;
  --bad: #b3261e;
  --bad-soft: #fde7e5;
  --info: #1f5fa8;
  --info-soft: #e5effb;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(30, 20, 60, .06), 0 6px 20px rgba(30, 20, 60, .06);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }
.wrap.wide { max-width: 1180px; }
.topbar {
  position: sticky; top: 0; z-index: 10; background: rgba(246, 244, 251, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar .in { max-width: 1180px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .2px; text-decoration: none; color: var(--ink); }
.brand .mark { height: 30px; padding: 0 7px; border-radius: 9px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; font-weight: 900; font-size: 13px; letter-spacing: -.5px; white-space: nowrap; }
.brand .mark b { color: #b98bff; }
.spacer { flex: 1; }
.brand span:last-child { white-space: nowrap; }
#who { max-width: 40vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h1 { font-size: 26px; line-height: 1.15; margin: 18px 0 6px; }
h2 { font-size: 20px; margin: 26px 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
p { margin: 6px 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 12px; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px; padding: 12px 18px; font-weight: 700;
  cursor: pointer; text-decoration: none; min-height: 46px; transition: transform .05s, background .15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--violet); color: #fff; }
.btn.primary:hover { background: var(--violet-dark); }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: #cdbff0; }
.btn.danger { background: #fff; border-color: #f2c3bf; color: var(--bad); }
.btn.ok { background: var(--ok); color: #fff; }
.btn.small { padding: 7px 12px; min-height: 36px; font-size: 14px; border-radius: 10px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--violet-soft); color: var(--violet-dark); white-space: nowrap; }
.chip.draft { background: #eeeef2; color: #4a4a55; }
.chip.uploaded, .chip.editing { background: var(--info-soft); color: var(--info); }
.chip.review { background: var(--warn-soft); color: var(--warn); }
.chip.ready { background: var(--ok-soft); color: var(--ok); }
.chip.downloaded { background: #eef0ee; color: #3d5c47; }
.chip.correction { background: var(--bad-soft); color: var(--bad); }
.chip.expired, .chip.cancelled { background: #eeeef2; color: #8a8a96; }
.pill { display: inline-block; background: var(--ink); color: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 14px; }
.notice { border-radius: 12px; padding: 12px 14px; background: var(--info-soft); color: #173b66; font-size: 15px; }
.notice.warn { background: var(--warn-soft); color: #5f3a00; }
.notice.bad { background: var(--bad-soft); color: #7a1a14; }
.notice.ok { background: var(--ok-soft); color: #0e5233; }
label.field { display: block; font-weight: 700; font-size: 14px; margin: 14px 0 6px; }
.help { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; min-height: 46px;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus, .btn:focus-visible { outline: 3px solid #cbb2ff; outline-offset: 1px; border-color: var(--violet); }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--violet); flex: none; }
.check + .check { margin-top: 8px; }
.list { list-style: none; margin: 0; padding: 0; }
.item { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.item + .item { margin-top: 8px; }
.item.wrapnote { flex-wrap: wrap; }
.item .pnote { flex-basis: 100%; min-height: 42px; }
.item .num { width: 34px; height: 34px; border-radius: 10px; background: var(--violet-soft); color: var(--violet-dark); display: grid; place-items: center; font-weight: 800; flex: none; }
.item .body { flex: 1; min-width: 0; }
.item .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .meta { font-size: 13px; color: var(--muted); }
.iconbtn { border: 1px solid var(--line); background: #fff; border-radius: 10px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; flex: none; font-size: 16px; }
.iconbtn:hover { border-color: #cdbff0; }
.bar { height: 6px; background: #eee9f8; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--violet); width: 0; transition: width .2s; }
.vcard { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.vcard .big { width: 52px; height: 52px; border-radius: 14px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.vcard .body { flex: 1; min-width: 0; }
.dropzone { border: 2px dashed #d4c6f3; border-radius: 14px; padding: 18px; text-align: center; background: #fbf9ff; cursor: pointer; }
.dropzone:hover { border-color: var(--violet); }
.sticky-actions { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); z-index: 20; }
.sticky-actions .in { max-width: 720px; margin: 0 auto; display: flex; gap: 10px; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 700; font-size: 14px; }
.tabs a.on { background: var(--ink); color: #fff; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; color: var(--muted); font-weight: 700; padding: 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t tr:hover td { background: #faf8ff; }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; }
.kanban .col { background: #efecf7; border-radius: 14px; padding: 10px; min-height: 120px; }
.kanban .col h3 { font-size: 14px; display: flex; justify-content: space-between; margin: 4px 4px 10px; }
.kanban .k { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-decoration: none; color: inherit; }
.kanban .k + .k { margin-top: 8px; }
.kanban .k:hover { border-color: #cdbff0; }
@media (max-width: 900px) { .kanban { grid-template-columns: repeat(5, 240px); } }
.timeline { display: flex; gap: 6px; flex-wrap: wrap; margin: 12px 0; }
.timeline span { font-size: 12px; padding: 4px 8px; border-radius: 8px; background: #eeeef2; color: #8a8a96; font-weight: 700; }
.timeline span.done { background: var(--ok-soft); color: var(--ok); }
.timeline span.now { background: var(--violet); color: #fff; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 50; max-width: 90vw; box-shadow: var(--shadow); }
.toast.bad { background: var(--bad); }
.center { text-align: center; }
.hide { display: none !important; }
.kv { display: grid; grid-template-columns: 160px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }
.preview { width: 100%; aspect-ratio: 9 / 16; max-height: 70vh; border: 0; border-radius: 14px; background: #000; }
.mockbar { background: #fff1d6; color: #5f3a00; text-align: center; font-size: 13px; padding: 6px; font-weight: 700; }
.linkbox { display: flex; gap: 8px; }
.linkbox input { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }

/* ---- «κουτιά» βίντεο του πακέτου (Βίντεο 1…N) ---- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.slot { display: flex; flex-direction: column; gap: 8px; min-height: 108px; padding: 14px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.slot .n { font-weight: 800; font-size: 17px; }
.slot .s { font-size: 13px; color: var(--muted); line-height: 1.35; }
.slot .chip { align-self: flex-start; }
.slot.empty { background: transparent; border: 2px dashed #cfc3ea; box-shadow: none; justify-content: center; align-items: center; text-align: center; }
.slot.empty .go { color: var(--violet-dark); font-weight: 700; font-size: 14px; }
.slot.empty:hover { background: var(--violet-soft); }
.slot.locked { opacity: .5; cursor: default; }
.slot:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
