:root {
  --bg: #eef3fb;
  --surface: #ffffff;
  --surface-2: #f6f9fe;
  --sunken: #e7eef9;
  --text: #15213b;
  --muted: #64718a;
  --border: #dfe7f3;
  --primary: #2563eb;
  --danger: #d23c3c;
  --shadow: 0 1px 2px rgba(30, 64, 175, .06), 0 1px 3px rgba(30, 64, 175, .06);
  --shadow-lift: 0 6px 16px rgba(30, 64, 175, .12);
  --hero: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%);
  --c0: #2563eb;
  --c1: #0d9488;
  --c2: #4f46e5;
  --c3: #0284c7;
  /* Κάρτες σαν κουμπιά: ανάγλυφη κάτω άκρη και σκιά */
  --btn-bg: linear-gradient(180deg, #ffffff 0%, #f3f7fe 100%);
  --btn-edge: #bfcde6;
  --btn-shine: rgba(255, 255, 255, .9);
  --btn-glow: rgba(30, 64, 175, .08);
  --btn-glow-hover: rgba(30, 64, 175, .18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220;
    --surface: #152036;
    --surface-2: #101a2c;
    --sunken: #0d1626;
    --text: #e6ecf7;
    --muted: #93a1ba;
    --border: #22304a;
    --primary: #4f8cff;
    --danger: #f07373;
    --shadow: none;
    --shadow-lift: 0 6px 18px rgba(0, 0, 0, .35);
    --hero: linear-gradient(135deg, #0f1f4d 0%, #1a3a9c 60%, #2557d6 100%);
    --c0: #4f8cff;
    --c1: #2dd4bf;
    --c2: #8b8cf8;
    --c3: #38bdf8;
    --btn-bg: linear-gradient(180deg, #1c2a45 0%, #152036 100%);
    --btn-edge: #0a1222;
    --btn-shine: rgba(255, 255, 255, .06);
    --btn-glow: rgba(0, 0, 0, .25);
    --btn-glow-hover: rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

/* Χριστουγεννιάτικο θέμα: κόκκινο, πράσινο, χρυσό, κρεμ φόντο, χιόνι */
:root[data-skin="xmas"] {
  --bg: #f6efe4;
  --surface: #fffdf8;
  --surface-2: #fbf5ec;
  --sunken: #f1e6d5;
  --text: #2b1d14;
  --muted: #7a6858;
  --border: #e8dbc6;
  --primary: #b3261e;
  --hero: linear-gradient(135deg, #6d1414 0%, #a8231c 50%, #c9382c 100%);
  --hero-glow: rgba(140, 25, 20, .25);
  --toast: #6d1414;
  --c0: #c62828;
  --c1: #1b7f3b;
  --c2: #b8860b;
  --c3: #0f5c3a;
  --btn-bg: linear-gradient(180deg, #fffdf8 0%, #fbf2e4 100%);
  --btn-edge: #dccbaf;
  --btn-shine: rgba(255, 255, 255, .9);
  --btn-glow: rgba(109, 20, 20, .08);
  --btn-glow-hover: rgba(109, 20, 20, .18);
  --flake: #b8c7d6;
}
@media (prefers-color-scheme: dark) {
  :root[data-skin="xmas"]:not([data-theme="light"]) {
    --bg: #0c1912;
    --surface: #15261c;
    --surface-2: #112018;
    --sunken: #0b1710;
    --text: #f2ede4;
    --muted: #a7b4aa;
    --border: #23382b;
    --primary: #e05a4f;
    --hero: linear-gradient(135deg, #3f0b0b 0%, #7e1717 55%, #a8231c 100%);
    --hero-glow: rgba(0, 0, 0, .4);
    --toast: #7e1717;
    --c0: #ef5350;
    --c1: #4caf6a;
    --c2: #e0b13a;
    --c3: #2e9e6a;
    --btn-bg: linear-gradient(180deg, #1b2f23 0%, #15261c 100%);
    --btn-edge: #07110b;
    --btn-shine: rgba(255, 255, 255, .06);
    --btn-glow: rgba(0, 0, 0, .3);
    --btn-glow-hover: rgba(0, 0, 0, .5);
    --flake: #e8eef5;
  }
}

/* Xmas Extra: νυχτερινός ουρανός με αστέρια, βελούδινο κόκκινο, χρυσό. Ίδιο σε φωτεινή και σκοτεινή λειτουργία. */
:root[data-skin="xmasx"] {
  --bg: #08122a;
  --page: radial-gradient(ellipse at 50% -10%, #23408a 0%, #0d1b3d 40%, #060c1d 100%);
  --surface: #fffaf0;
  --surface-2: #fdf3e1;
  --sunken: #f3e5cb;
  --text: #2b1d14;
  --muted: #7a6858;
  --border: #ecdcbf;
  --primary: #c62828;
  --hero: linear-gradient(135deg, #4d0909 0%, #8f1717 40%, #c62828 70%, #7a1010 100%);
  --hero-glow: rgba(255, 193, 7, .25);
  --toast: #8f1717;
  --c0: #e53935;
  --c1: #2e9e5b;
  --c2: #e6a700;
  --c3: #29b6f6;
  --btn-bg: linear-gradient(180deg, #fffcf5 0%, #fbeed6 100%);
  --btn-edge: #d4a72c;
  --btn-shine: rgba(255, 255, 255, .95);
  --btn-glow: rgba(0, 0, 0, .3);
  --btn-glow-hover: rgba(255, 193, 7, .35);
  --flake: #ffffff;
  color-scheme: light;
}

/* CFMOTO: σκούρο carbon, τυρκουάζ αγωνιστικό, λευκές λεπτομέρειες. Ίδιο σε φωτεινή και σκοτεινή λειτουργία. */
:root[data-skin="cfmoto"] {
  --bg: #0b0d10;
  --page:
    radial-gradient(ellipse at 85% -10%, rgba(0, 194, 199, .22) 0%, transparent 45%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .025) 0 4px, transparent 4px 8px),
    repeating-linear-gradient(-45deg, rgba(0, 0, 0, .35) 0 4px, transparent 4px 8px),
    #0b0d10;
  --surface: #181c22;
  --surface-2: rgba(22, 26, 32, .92);
  --sunken: #0f1216;
  --text: #eef2f6;
  --muted: #8d99a6;
  --border: #2a313b;
  --primary: #00b8bd;
  --danger: #ff5a52;
  --shadow: none;
  --shadow-lift: 0 8px 20px rgba(0, 0, 0, .5);
  --hero:
    linear-gradient(115deg, transparent 62%, rgba(0, 194, 199, .9) 62% 66%, transparent 66% 68%, rgba(0, 194, 199, .55) 68% 70%, transparent 70%),
    linear-gradient(135deg, #050607 0%, #14181d 55%, #1f252c 100%);
  --hero-glow: rgba(0, 194, 199, .3);
  --toast: #0a8f93;
  --c0: #00c2c7;
  --c1: #ff7a1a;
  --c2: #c9d3dd;
  --c3: #3da5ff;
  --btn-bg: linear-gradient(180deg, #232931 0%, #191d23 100%);
  --btn-edge: #050607;
  --btn-shine: rgba(255, 255, 255, .07);
  --btn-glow: rgba(0, 0, 0, .45);
  --btn-glow-hover: rgba(0, 194, 199, .3);
  --alert-bg: linear-gradient(180deg, #00d4d9 0%, #00979b 100%);
  --alert-border: #9ff6f8;
  --alert-edge: #00474a;
  --alert-glow: rgba(0, 220, 225, .35);
  --alert-glow-strong: rgba(0, 230, 235, .85);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page, var(--bg)); background-attachment: fixed;
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
button { font: inherit; color: inherit; }

.c0 { --accent: var(--c0); }
.c1 { --accent: var(--c1); }
.c2 { --accent: var(--c2); }
.c3 { --accent: var(--c3); }

#app { display: flex; flex-direction: column; height: 100vh; height: 100dvh; position: relative; z-index: 1; }

* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent; }

/* Μπλε κεφαλίδα με το πεδίο νέας εργασίας */
.hero {
  flex: none; background: var(--hero); color: #fff;
  padding: 0 0 16px; margin-bottom: 14px; position: relative;
  box-shadow: 0 4px 20px var(--hero-glow, rgba(29, 78, 216, .18));
}
.top { display: flex; align-items: center; gap: 10px; padding: 12px 18px 10px; }
/* Λογότυπο Αραμπατζής σε λευκό πλακίδιο, για να ξεχωρίζει πάνω στο μπλε */
.logo {
  height: 36px; width: auto; padding: 4px 6px; border-radius: 10px;
  background: #fff; box-shadow: 0 2px 8px rgba(15, 30, 80, .25);
}
.auth-logo { height: 72px; width: auto; align-self: center; margin-bottom: 4px; }
.auth-box h1 { text-align: center; }
.auth-box p { text-align: center; }
.top h1 { font-size: 19px; margin: 0; flex: 1; font-weight: 700; letter-spacing: .01em; }
.icon-btn {
  border: 0; background: none; color: rgba(255, 255, 255, .85);
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; cursor: pointer; transition: background .15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.banner {
  margin: 0 18px 12px; padding: 7px 12px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 10px; font-size: 13px;
}

.quick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 0 18px; }
.q-wrap { flex: 1 1 280px; min-width: 0; position: relative; display: block; }
.q-plus {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-size: 18px; font-weight: 600; line-height: 1;
  pointer-events: none; transition: background .2s;
}
.q-input {
  width: 100%; padding: 13px 120px 13px 46px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--surface); border: 0; border-radius: 12px;
  box-shadow: 0 2px 10px rgba(15, 30, 80, .18);
}
.q-input::placeholder { color: var(--muted); }
.q-input:focus { outline: 3px solid rgba(255, 255, 255, .45); outline-offset: 0; }
.q-add {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  border: 0; border-radius: 9px; padding: 8px 16px; cursor: pointer;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  transition: filter .15s, background .2s;
}
.q-add:hover { filter: brightness(1.1); }
.q-add:active { transform: translateY(-50%) scale(.97); }
.targets {
  display: flex; gap: 4px; padding: 4px; flex: none;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px;
}
.target {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  border: 0; background: none; color: rgba(255, 255, 255, .85); cursor: pointer;
  padding: 8px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: background .15s, color .15s;
}
.target::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
  background: var(--accent); box-shadow: 0 0 0 2px rgba(255, 255, 255, .75);
}
.target:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.target.on { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(15, 30, 80, .2); }
.target.on::before { box-shadow: none; }

/* Πίνακας με στήλες */
.tabs { display: none; }
.board {
  flex: 1; min-height: 0;
  display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr));
  gap: 14px; padding: 0 14px 14px;
}
.col {
  display: flex; flex-direction: column; min-height: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 16px;
}
.col-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px 10px; }
.bar { width: 4px; height: 18px; border-radius: 4px; background: var(--accent); flex: none; }
.col-head h2 { font-size: 15px; margin: 0; flex: 1; font-weight: 700; }
.mail-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
  color: #fff; background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  border: 1px solid #1e40af; border-radius: 9px; padding: 5px 11px;
  box-shadow: 0 2px 0 #1e3a8a, 0 3px 8px rgba(29, 78, 216, .25);
  transition: transform .08s, box-shadow .08s, filter .15s;
}
.mail-btn:hover { filter: brightness(1.08); }
.mail-btn:active { transform: translateY(2px); box-shadow: 0 0 0 #1e3a8a; }
.count {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--surface)); border-radius: 999px;
  padding: 1px 9px; min-width: 26px; text-align: center;
}
.field {
  width: 100%; padding: 9px 12px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 9px;
}
.field:focus { outline: 2px solid var(--accent, var(--primary)); outline-offset: -1px; border-color: transparent; }
.col-body { flex: 1; min-height: 0; overflow-y: auto; padding: 2px 12px 14px; display: flex; flex-direction: column; }
.list {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 64px; flex: 1 0 auto;
}
.list:empty::before {
  content: "Καμία εργασία εδώ"; color: var(--muted); font-size: 13px; text-align: center;
  padding: 22px 0; border: 1.5px dashed color-mix(in srgb, var(--accent) 25%, var(--border)); border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 3%, transparent);
}

/* Κάρτα εργασίας */
.card {
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  background: var(--btn-bg); border: 1px solid var(--border); border-radius: 12px;
  padding: 11px 6px 11px 12px; margin-bottom: 3px;
  box-shadow: inset 0 1px 0 var(--btn-shine), 0 3px 0 var(--btn-edge), 0 5px 14px var(--btn-glow);
  cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  transition: box-shadow .15s, border-color .15s, transform .12s;
}
.card:not(.is-done):not(.editing):hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  box-shadow: inset 0 1px 0 var(--btn-shine), 0 4px 0 color-mix(in srgb, var(--accent) 40%, var(--btn-edge)), 0 12px 24px var(--btn-glow-hover);
  transform: translateY(-2px);
}
.card:not(.is-done):not(.editing):active {
  box-shadow: inset 0 2px 5px var(--btn-glow), 0 0 0 var(--btn-edge);
  transform: translateY(3px);
}
.card .body { flex: 1; min-width: 0; padding-top: 1px; cursor: pointer; }
.title { white-space: pre-wrap; overflow-wrap: anywhere; }
.notes {
  margin-top: 4px; font-size: 13px; color: var(--muted);
  white-space: pre-wrap; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  padding-left: 8px; border-left: 2px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.check {
  flex: none; position: relative; width: 20px; height: 20px; margin-top: 1px; padding: 0;
  border: 2px solid color-mix(in srgb, var(--accent) 45%, var(--border)); border-radius: 50%;
  background: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.check:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.more, .del {
  flex: none; border: 0; background: none; color: var(--muted); cursor: pointer;
  font-size: 18px; line-height: 1; padding: 1px 8px 4px; border-radius: 8px;
  opacity: .7; transition: opacity .15s, background .15s;
}
.card:hover .more, .card:hover .del { opacity: 1; }
.more:hover, .del:hover { background: var(--sunken); color: var(--text); }
.del { font-size: 14px; padding: 3px 8px; }

/* Προσοχή: τρίγωνο ΚΟΚ, σβηστό ή αναμμένο */
.flag {
  flex: none; border: 0; background: none; padding: 2px; margin: -2px 0 0 -2px;
  border-radius: 6px; cursor: pointer; line-height: 0;
}
.flag .tri { fill: none; stroke: var(--muted); opacity: .45; transition: all .15s; }
.flag .mark { stroke: var(--muted); opacity: .45; }
.flag .dotm { fill: var(--muted); opacity: .45; }
.flag:hover .tri, .flag:hover .mark, .flag:hover .dotm { opacity: .9; }
/* Προσοχή ενεργή: γεμάτη κάρτα με λευκά γράμματα και λάμψη που πάλλεται.
   Στο Βασικό είναι έντονο μπλε, στα Χριστουγεννιάτικα κόκκινο. */
:root {
  --alert-bg: linear-gradient(180deg, #6aa8ff 0%, #3b7cf0 100%);
  --alert-border: #bfdbfe;
  --alert-edge: #2559c9;
  --alert-glow: rgba(96, 165, 250, .3);
  --alert-glow-strong: rgba(96, 165, 250, .7);
}
:root[data-skin="xmas"], :root[data-skin="xmasx"] {
  --alert-bg: linear-gradient(180deg, #e53935 0%, #b71c1c 100%);
  --alert-border: #ffd54f;
  --alert-edge: #6d0b0b;
  --alert-glow: rgba(255, 82, 82, .4);
  --alert-glow-strong: rgba(255, 82, 82, .9);
}
.alert .flag .tri { fill: #fff; stroke: var(--alert-border); opacity: 1; }
.alert .flag .mark { stroke: #111; opacity: 1; }
.alert .flag .dotm { fill: #111; opacity: 1; }
.card.alert {
  color: #fff; border-color: var(--alert-border);
  background: var(--alert-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--alert-edge), 0 0 16px var(--alert-glow);
  animation: alert-glow 1.8s ease-in-out infinite alternate;
}
.card.alert:not(.editing):hover {
  border-color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 4px 0 var(--alert-edge), 0 0 24px var(--alert-glow-strong);
}
.card.alert .title { font-weight: 600; }
.card.alert .notes { color: rgba(255, 255, 255, .85); border-left-color: rgba(255, 255, 255, .5); }
.card.alert .more, .card.alert .trash { color: rgba(255, 255, 255, .9); opacity: 1; }
.card.alert .more:hover, .card.alert .trash:hover { background: rgba(255, 255, 255, .18); color: #fff; }
/* Στην επεξεργασία η κάρτα γυρίζει σε κανονική, για να διαβάζεται το κείμενο */
.card.alert.editing { color: var(--text); background: var(--btn-bg); animation: none; }
@keyframes alert-glow {
  from { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--alert-edge), 0 0 8px var(--alert-glow); }
  to { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 3px 0 var(--alert-edge), 0 0 22px var(--alert-glow-strong); }
}

.trash {
  flex: none; border: 0; background: none; color: var(--muted); cursor: pointer;
  padding: 3px 6px; border-radius: 8px; line-height: 0; opacity: .7;
  transition: opacity .15s, background .15s, color .15s;
}
.card:hover .trash { opacity: 1; }
.trash:hover { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); }

.ghost { opacity: .35; }
.dragging { box-shadow: 0 14px 32px rgba(30, 64, 175, .25) !important; }

/* Ολοκληρωμένα */
.done { margin-top: 14px; }
.done summary { cursor: pointer; color: var(--muted); font-size: 13px; font-weight: 600; padding: 4px 2px; user-select: none; }
.done summary:hover { color: var(--accent); }
.done ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.card.is-done { cursor: default; box-shadow: none; background: transparent; border-style: dashed; }
.is-done .title { text-decoration: line-through; color: var(--muted); }
.is-done .check { background: var(--accent); border-color: var(--accent); }
.is-done .check::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* Επεξεργασία */
.card.editing {
  cursor: default; padding: 10px; user-select: auto; -webkit-user-select: auto;
  border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}
.edit { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.edit textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 8px; padding: 7px 9px; resize: none; overflow: hidden;
}
.edit textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.e-title { font-weight: 600; }
.e-notes { font-size: 14px; }
.edit-actions { display: flex; gap: 6px; align-items: center; }
.hint { font-size: 12px; color: var(--muted); margin-left: auto; }

.btn {
  border: 1px solid var(--border); background: var(--surface); color: var(--text);
  font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 9px; cursor: pointer;
}
.btn:hover { background: var(--sunken); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); background: var(--primary); }
.btn:disabled { opacity: .5; cursor: default; }

/* Μενού κάρτας */
.menu {
  position: fixed; z-index: 50; padding: 5px; min-width: 220px; max-width: calc(100vw - 16px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 36px rgba(15, 30, 80, .22);
}
.menu button {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 9px 12px; border-radius: 8px; cursor: pointer;
}
.menu button:hover { background: color-mix(in srgb, var(--primary) 9%, var(--surface)); }
.menu .danger { color: var(--danger); }
.menu .danger:hover { background: color-mix(in srgb, var(--danger) 9%, var(--surface)); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }

/* Ρυθμίσεις */
dialog {
  border: 0; border-radius: 18px; padding: 22px; width: min(440px, calc(100vw - 32px));
  background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(15, 30, 80, .3);
}
dialog::backdrop { background: rgba(15, 25, 60, .45); backdrop-filter: blur(2px); }
dialog h2 { margin: 0 0 14px; font-size: 18px; }
dialog h3 { margin: 18px 0 8px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.set-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: none; }
.set-row .field { flex: 1; }
.set-row .del { opacity: 1; }
.set-row .del:disabled { opacity: .3; cursor: default; }
.dlg-actions { display: flex; gap: 8px; margin-top: 22px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.linkish { border: 0; background: none; color: var(--primary); cursor: pointer; padding: 6px 0; font-size: 14px; font-weight: 600; }

/* Σύνδεση */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 16px; background: var(--hero); }
.auth-box {
  width: min(340px, 100%); background: var(--surface); padding: 26px; border-radius: 18px;
  display: flex; flex-direction: column; gap: 10px; box-shadow: 0 24px 60px rgba(15, 30, 80, .35);
}
.auth-box h1 { margin: 0; font-size: 21px; color: var(--primary); }
.auth-box p { margin: 0 0 4px; color: var(--muted); font-size: 14px; }
.err { color: var(--danger); font-size: 13px; min-height: 18px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  background: var(--toast, #1e3a8a); color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 14px; max-width: calc(100vw - 32px); box-shadow: 0 10px 28px rgba(15, 30, 80, .35);
}

/* Επιλογή θέματος στις ρυθμίσεις */
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-opt {
  display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer;
  border: 2px solid var(--border); background: var(--surface); border-radius: 12px;
  padding: 8px; font-size: 13.5px; font-weight: 600;
}
.theme-opt:hover { border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.theme-opt.on { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 20%, transparent); }
.swatch { display: block; height: 46px; border-radius: 8px; }
.theme-opt[data-skin="basic"] .swatch { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 55%, #3b82f6 100%); }
.theme-opt[data-skin="xmas"] .swatch {
  background:
    radial-gradient(circle at 18% 70%, #fff 2px, transparent 3px),
    radial-gradient(circle at 42% 28%, #fff 1.5px, transparent 2.5px),
    radial-gradient(circle at 66% 62%, #fff 2px, transparent 3px),
    radial-gradient(circle at 88% 30%, #fff 1.5px, transparent 2.5px),
    linear-gradient(135deg, #6d1414 0%, #a8231c 50%, #1b7f3b 100%);
}

/* Χριστουγεννιάτικα: λαμπάκια κάτω από την κεφαλίδα, δέντρο στον τίτλο, χιόνι */
:root[data-skin="xmas"] .top h1::after { content: " 🎄"; }
:root[data-skin="xmas"] .hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 14px; pointer-events: none;
  background:
    radial-gradient(circle at 10px 8px, #ffd54f 0 4px, transparent 5px),
    radial-gradient(circle at 34px 8px, #43a047 0 4px, transparent 5px),
    radial-gradient(circle at 58px 8px, #e53935 0 4px, transparent 5px),
    radial-gradient(circle at 82px 8px, #29b6f6 0 4px, transparent 5px),
    linear-gradient(transparent 3px, rgba(30, 40, 30, .55) 3px 4px, transparent 4px);
  background-size: 96px 14px;
  filter: drop-shadow(0 0 4px rgba(255, 220, 120, .7));
  animation: twinkle 1.6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .75; } to { opacity: 1; } }

.snow { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.snow span {
  position: absolute; top: -20px; color: var(--flake, #fff);
  text-shadow: 0 0 3px rgba(255, 255, 255, .8);
  animation: snowfall linear infinite;
}
@keyframes snowfall {
  0% { transform: translate(0, -5vh) rotate(0deg); }
  50% { transform: translate(18px, 50vh) rotate(180deg); }
  100% { transform: translate(-12px, 105vh) rotate(360deg); }
}
.theme-opt[data-skin="xmasx"] .swatch {
  background:
    radial-gradient(circle at 15% 25%, #fff 1px, transparent 2px),
    radial-gradient(circle at 35% 15%, #ffe082 1.5px, transparent 2.5px),
    radial-gradient(circle at 55% 30%, #fff 1px, transparent 2px),
    radial-gradient(circle at 80% 20%, #fff 1.5px, transparent 2.5px),
    linear-gradient(180deg, transparent 58%, #c62828 58% 78%, #e6a700 78% 84%, transparent 84%),
    linear-gradient(180deg, #23408a 0%, #060c1d 100%);
}

/* Xmas Extra */
:root[data-skin="xmasx"] body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, #fff, transparent), radial-gradient(1px 1px at 18% 38%, #fff, transparent),
    radial-gradient(2px 2px at 27% 8%, #ffe082, transparent), radial-gradient(1px 1px at 36% 55%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 47% 22%, #fff, transparent), radial-gradient(1px 1px at 58% 70%, #fff, transparent),
    radial-gradient(2px 2px at 66% 14%, #fff, transparent), radial-gradient(1px 1px at 74% 46%, #ffe082, transparent),
    radial-gradient(1.5px 1.5px at 83% 30%, #fff, transparent), radial-gradient(1px 1px at 92% 62%, #fff, transparent),
    radial-gradient(1px 1px at 12% 80%, #fff, transparent), radial-gradient(1.5px 1.5px at 42% 88%, #fff, transparent),
    radial-gradient(1px 1px at 88% 85%, #fff, transparent), radial-gradient(2px 2px at 96% 6%, #ffe082, transparent);
  animation: stars 3s ease-in-out infinite alternate;
}
:root[data-skin="xmasx"] body::after {
  content: ""; position: fixed; inset: -20%; pointer-events: none; z-index: 0; opacity: .35; filter: blur(60px);
  background:
    radial-gradient(40% 25% at 25% 30%, #1de9b6, transparent 70%),
    radial-gradient(35% 22% at 70% 22%, #7c4dff, transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate;
}
@keyframes stars { from { opacity: .55; } to { opacity: 1; } }
@keyframes aurora { from { transform: translate(-4%, 0) rotate(-3deg); } to { transform: translate(4%, 3%) rotate(3deg); } }

:root[data-skin="xmasx"] .hero { border-bottom: 2px solid #e6a700; }
:root[data-skin="xmasx"] .top h1 {
  background: linear-gradient(90deg, #fff3c4, #ffd54f, #ffffff, #ffd54f, #fff3c4);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.countdown {
  font-size: 13px; font-weight: 700; white-space: nowrap; color: #4d0909;
  background: linear-gradient(180deg, #ffe082, #e6a700); padding: 5px 12px; border-radius: 999px;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .35), 0 0 16px rgba(255, 213, 79, .6);
}
.cd-short { display: none; }
.top h1 { white-space: nowrap; }

/* Μεγάλα λαμπάκια που αναβοσβήνουν εναλλάξ */
:root[data-skin="xmasx"] .hero::after,
:root[data-skin="xmasx"] .hero::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 18px; pointer-events: none; z-index: 2;
  background-size: 112px 18px;
  animation: blink 1.4s steps(1) infinite;
}
:root[data-skin="xmasx"] .hero::after {
  background-image:
    radial-gradient(circle at 14px 10px, #ffd54f 0 5px, transparent 6px),
    radial-gradient(circle at 70px 10px, #e53935 0 5px, transparent 6px),
    linear-gradient(transparent 4px, rgba(20, 30, 20, .7) 4px 5px, transparent 5px);
  filter: drop-shadow(0 0 6px rgba(255, 213, 79, .9));
}
:root[data-skin="xmasx"] .hero::before {
  background-image:
    radial-gradient(circle at 42px 10px, #43a047 0 5px, transparent 6px),
    radial-gradient(circle at 98px 10px, #29b6f6 0 5px, transparent 6px);
  filter: drop-shadow(0 0 6px rgba(120, 220, 255, .9));
  animation-delay: -.7s;
}
@keyframes blink { 0% { opacity: 1; } 50% { opacity: .3; } }

/* Στήλες σαν παγωμένο τζάμι με χιόνι στην κορυφή */
:root[data-skin="xmasx"] .col {
  position: relative; color: #fdf6e3;
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
:root[data-skin="xmasx"] .col::before {
  content: ""; position: absolute; left: -2px; right: -2px; top: -8px; height: 16px; pointer-events: none;
  background:
    radial-gradient(circle at 10px 12px, #fff 9px, transparent 10px),
    radial-gradient(circle at 30px 9px, #fff 11px, transparent 12px),
    radial-gradient(circle at 52px 12px, #fff 9px, transparent 10px);
  background-size: 60px 16px; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
  border-radius: 16px 16px 0 0;
}
:root[data-skin="xmasx"] .col-head { padding-top: 18px; }
:root[data-skin="xmasx"] .card:not(.alert), :root[data-skin="xmasx"] .card.editing { color: var(--text); }
:root[data-skin="xmasx"] .list:empty::before { color: rgba(255, 255, 255, .65); border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); }
:root[data-skin="xmasx"] .done summary { color: rgba(255, 255, 255, .7); }
:root[data-skin="xmasx"] .col-body { padding-bottom: 40px; }

/* Έλκηθρο που διασχίζει τον ουρανό κάθε λίγο */
.sleigh {
  position: fixed; top: 6px; left: 0; z-index: 29; pointer-events: none; white-space: nowrap;
  font-size: 30px; filter: drop-shadow(0 0 8px rgba(255, 213, 79, .8));
  animation: sleigh 45s linear infinite;
}
@keyframes sleigh {
  0% { transform: translate(105vw, 6px); }
  15% { transform: translate(40vw, 0); }
  30% { transform: translate(-30vw, 8px); }
  100% { transform: translate(-30vw, 8px); }
}
.snowbank {
  position: fixed; left: 0; right: 0; bottom: 0; height: 26px; z-index: 25; pointer-events: none;
  background:
    radial-gradient(ellipse 60px 22px at 30px 26px, #fff 98%, transparent),
    radial-gradient(ellipse 80px 26px at 100px 28px, #f4f8fc 98%, transparent);
  background-size: 140px 26px;
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, .25));
}

@media (prefers-reduced-motion: reduce) {
  .snow, .sleigh { display: none; }
  :root[data-skin="xmas"] .hero::after,
  :root[data-skin="xmasx"] .hero::after, :root[data-skin="xmasx"] .hero::before,
  :root[data-skin="xmasx"] body::before, :root[data-skin="xmasx"] body::after,
  :root[data-skin="xmasx"] .top h1, .card.alert { animation: none; }
}

@keyframes slide-r { from { opacity: 0; transform: translateX(24px); } }
@keyframes slide-l { from { opacity: 0; transform: translateX(-24px); } }

/* Υπολογιστής σε στενό παράθυρο: οι στήλες μένουν όλες, με οριζόντια κύλιση */
@media (min-width: 761px) and (max-width: 900px) {
  .board { grid-template-columns: repeat(var(--n), minmax(240px, 1fr)); overflow-x: auto; }
}

/* Κινητό ή στενό παράθυρο: μία στήλη τη φορά, με καρτέλες */
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  #app { height: auto; min-height: 100vh; min-height: 100dvh; }
  .hero { margin-bottom: 0; padding-bottom: 14px; border-radius: 0 0 20px 20px; }
  .top { padding: 10px 14px 8px; }
  .banner { margin: 0 14px 10px; }
  .quick { padding: 0 14px; }
  .targets { display: none; } /* στο κινητό οι καρτέλες κάνουν και επιλογή στήλης */
  .snowbank { display: none; }
  .sleigh { font-size: 22px; }
  .countdown { font-size: 12px; padding: 4px 10px; }
  .cd-long { display: none; }
  .cd-short { display: inline; }
  :root[data-skin="xmasx"] .col { background: none; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root[data-skin="xmasx"] .col::before { display: none; }
  :root[data-skin="xmasx"] .col-head { padding-top: 16px; }
  /* Μπάρα καρτελών κάτω, όπως στις εφαρμογές κινητού */
  .tabs {
    display: flex; gap: 4px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--border); box-shadow: 0 -6px 24px rgba(15, 30, 80, .08);
  }
  .tab {
    flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px;
    border: 0; background: none; color: var(--muted); cursor: pointer;
    padding: 5px 2px 3px; font-size: 12px; font-weight: 600; line-height: 1.2;
  }
  .tab .ico {
    position: relative; width: 56px; height: 32px; border-radius: 999px;
    display: grid; place-items: center; transition: background .2s, color .2s;
  }
  .tab .count {
    position: absolute; top: -3px; right: 4px; min-width: 19px; padding: 0 5px;
    font-size: 10.5px; line-height: 15px; color: #fff; background: var(--accent);
    border: 2px solid var(--surface); border-radius: 999px;
  }
  .tab-name { text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
  .tab.on { color: var(--accent); }
  .tab.on .ico { background: color-mix(in srgb, var(--accent) 15%, transparent); }

  .board { display: block; padding: 0 12px calc(96px + env(safe-area-inset-bottom)); }
  .col { display: none; background: none; border: 0; }
  .col.active { display: flex; }
  .col.from-right { animation: slide-r .22s ease-out; }
  .col.from-left { animation: slide-l .22s ease-out; }
  .col-head { padding: 16px 4px 10px; }
  .col-head h2 { font-size: 20px; }
  .bar { height: 22px; }
  .col-body { padding: 0; overflow: visible; }
  .card { padding: 13px 6px 13px 13px; gap: 11px; }
  .check { width: 24px; height: 24px; }
  .is-done .check::after { left: 7px; top: 2px; width: 6px; height: 12px; }
  .more { padding: 2px 8px 6px; opacity: 1; }
  .trash { padding: 3px 8px; opacity: 1; }
  .flag svg { width: 25px; height: 23px; }
  .field, .edit textarea { font-size: 16px; }
  .hint { display: none; }
}

/* Κινητό οριζόντια (π.χ. iPhone Pro Max): ίδιες καρτέλες με το κάθετο, αλλά λεπτή
   κεφαλίδα σε μία γραμμή, χαμηλή μπάρα καρτελών και περιθώρια για το Dynamic Island. */
@media (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .hero {
    display: flex; align-items: center; gap: 10px; border-radius: 0 0 16px 16px;
    padding: 6px max(14px, env(safe-area-inset-right)) 8px max(14px, env(safe-area-inset-left));
  }
  .top { display: contents; }
  .top h1, .banner, .countdown, .snowbank { display: none; }
  .logo { height: 30px; padding: 3px 5px; border-radius: 8px; }
  .icon-btn { order: 3; flex: none; }
  .quick { flex: 1; min-width: 0; padding: 0; }
  .board { padding: 0 max(16px, env(safe-area-inset-right)) calc(64px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
  .col-head { padding: 12px 4px 8px; }
  .col-head h2 { font-size: 18px; }
  .tabs {
    padding: 4px max(16px, env(safe-area-inset-right)) calc(4px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  }
  .tab { flex-direction: row; justify-content: center; gap: 6px; padding: 3px 2px; font-size: 13px; }
  .tab .ico { width: 40px; height: 28px; }
  .tab-name { width: auto; }
}

/* ---- CFMOTO ---- */
.theme-opt[data-skin="cfmoto"] .swatch {
  background:
    linear-gradient(115deg, transparent 55%, #00c2c7 55% 63%, transparent 63% 67%, #00c2c7 67% 71%, transparent 71%),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 3px, transparent 3px 6px),
    linear-gradient(135deg, #050607 0%, #1f252c 100%);
}
:root[data-skin="cfmoto"] .hero { border-bottom: 2px solid #00c2c7; box-shadow: 0 2px 22px rgba(0, 194, 199, .35); overflow: hidden; }
:root[data-skin="cfmoto"] .top h1 {
  font-style: italic; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  text-shadow: 0 0 14px rgba(0, 194, 199, .55);
}
:root[data-skin="cfmoto"] .top h1::after { content: ""; display: inline-block; width: 26px; height: 4px; margin-left: 10px; vertical-align: middle; transform: skewX(-25deg); background: #00c2c7; box-shadow: 8px 0 0 #00c2c7; }
:root[data-skin="cfmoto"] .col { background: rgba(20, 24, 30, .88); border-color: #262d36; }
:root[data-skin="cfmoto"] .col-head h2 { font-style: italic; letter-spacing: .02em; }
:root[data-skin="cfmoto"] .bar { transform: skewX(-18deg); width: 6px; box-shadow: 0 0 10px var(--accent); }
:root[data-skin="cfmoto"] .card:not(.alert):not(.editing):hover { border-color: #00c2c7; }
:root[data-skin="cfmoto"] .card.alert { color: #001e20; }
:root[data-skin="cfmoto"] .card.alert .more, :root[data-skin="cfmoto"] .card.alert .trash { color: #003336; }
:root[data-skin="cfmoto"] .card.alert .notes { color: rgba(0, 30, 32, .8); border-left-color: rgba(0, 30, 32, .4); }
:root[data-skin="cfmoto"] .card.alert .flag .tri { fill: #001e20; stroke: #001e20; }
:root[data-skin="cfmoto"] .card.alert .flag .mark { stroke: #00e0e5; }
:root[data-skin="cfmoto"] .card.alert .flag .dotm { fill: #00e0e5; }
:root[data-skin="cfmoto"] .target.on { color: #007f83; }
:root[data-skin="cfmoto"] .mail-btn { background: linear-gradient(180deg, #00c9ce, #008f93); border-color: #00676a; box-shadow: 0 2px 0 #004a4d, 0 3px 10px rgba(0, 194, 199, .35); }

/* Μηχανή που περνάει με ταχύτητα στο κάτω μέρος της οθόνης κάθε λίγο */
.moto {
  position: fixed; bottom: 10px; left: 0; z-index: 29; pointer-events: none; white-space: nowrap;
  font-size: 34px; animation: moto 22s cubic-bezier(.55, 0, .45, 1) infinite;
}
.moto::after {
  content: ""; position: absolute; left: 100%; top: 52%; width: 160px; height: 3px; margin-left: -6px;
  background: linear-gradient(90deg, rgba(0, 194, 199, .9), transparent);
  box-shadow: 0 -8px 0 -1px rgba(0, 194, 199, .35), 0 8px 0 -1px rgba(0, 194, 199, .35);
}
@keyframes moto {
  0%, 70% { transform: translateX(110vw); }
  86% { transform: translateX(-30vw); }
  100% { transform: translateX(-30vw); }
}
@media (prefers-reduced-motion: reduce) { .moto { display: none; } }
@media (max-width: 760px), (orientation: landscape) and (max-height: 500px) and (pointer: coarse) {
  .moto { bottom: calc(80px + env(safe-area-inset-bottom)); font-size: 26px; }
  :root[data-skin="cfmoto"] .col { background: none; border: 0; }
}