:root {
  --bg: #f4f6f9; --surface: #fff; --text: #1b2430; --muted: #667085; --line: #e3e7ee;
  --brand: #1f3a5f; --brand-2: #2d5a8e; --accent: #f2b544; --danger: #c0392b; --ok: #1e8a4c;
  --new: #2d6cdf; --radius: 12px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; background: var(--bg); color: var(--text); }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.25; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1.05rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
code { background: #eef1f6; padding: 1px 5px; border-radius: 4px; font-size: .85em; }

/* Κουμπιά & φόρμες */
button { font: inherit; cursor: pointer; border-radius: 8px; border: 1px solid transparent; padding: .55em 1em; }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--brand); color: #fff; }
.primary:hover:not(:disabled) { background: var(--brand-2); }
.secondary { background: #fff; color: var(--brand); border-color: #c9d3e1; }
.secondary:hover { background: #f2f5fa; }
.danger { background: #fff; color: var(--danger); border-color: #efc2bd; }
.danger:hover { background: #fdf1f0; }
.ghost { background: transparent; color: inherit; border-color: transparent; }
.ghost:hover { background: rgba(127,127,127,.12); }
.link { background: none; border: 0; padding: .2em .4em; color: var(--brand-2); }
.link:hover { text-decoration: underline; }
input, select, textarea { font: inherit; width: 100%; padding: .55em .7em; border: 1px solid #cfd6e0; border-radius: 8px; background: #fff; color: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(45,90,142,.35); border-color: var(--brand-2); }
textarea { resize: vertical; }
label { display: block; font-size: .9rem; font-weight: 500; }
label > input, label > select, label > textarea { margin-top: .3em; font-weight: 400; }
label.check { display: inline-flex; align-items: center; gap: .45em; font-weight: 400; }
label.check input, .seg input { width: auto; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: .9rem; font-weight: 500; margin-bottom: .35em; padding: 0; }
.error { color: var(--danger); min-height: 1em; margin: .3em 0 0; font-size: .9rem; }
.row { display: flex; align-items: center; gap: .6em; }
.wrap-row { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: .9em; }

/* Επιλογή τμήματος */
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid #cfd6e0; border-radius: 9px; overflow: hidden; background: #fff; }
.seg label { display: flex; align-items: center; gap: .35em; padding: .45em .85em; font-weight: 400; cursor: pointer; border-right: 1px solid #e3e7ee; }
.seg label:last-child { border-right: 0; }
.seg label:has(input:checked) { background: #e8eef7; color: var(--brand); font-weight: 600; }
.seg.small label { padding: .3em .7em; font-size: .85rem; }


/* Σελίδες */
.wrap { max-width: 1120px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.wrap > section + section { margin-top: 1.75rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: .75rem; }
.page-head h2 { margin: 0; }
.pill { display: inline-block; font-size: .8rem; padding: .15em .65em; border-radius: 999px; background: #e8eef7; color: var(--brand); font-weight: 600; }
.pill:empty { display: none; }

/* Σύνδεση */
.login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; overflow: hidden; background: linear-gradient(165deg, #56b0e6 0%, #3f9fdd 55%, #59b8e4 100%); }

/* Διακοσμητικές φούσκες */
.bubbles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.bubbles i { position: absolute; display: block; border-radius: 50%; opacity: .82;
  background: linear-gradient(150deg, rgba(255,255,255,.34), rgba(110,225,205,.5) 45%, rgba(70,180,225,.28));
  box-shadow: inset 0 1px 30px rgba(255,255,255,.35), 0 10px 40px rgba(20,80,130,.12); }
.bubbles i::after { content: ''; position: absolute; inset: 6%; border-radius: 50%; border-top: 2px solid rgba(255,255,255,.5); border-left: 1px solid rgba(255,255,255,.25); }
.bubbles .b1 { width: 340px; height: 340px; top: -150px; left: -110px; background: linear-gradient(150deg, rgba(120,238,190,.95), rgba(90,210,225,.6)); }
.bubbles .b2 { width: 320px; height: 300px; top: -120px; left: 24%; background: linear-gradient(160deg, rgba(160,240,245,.75), rgba(90,190,235,.45)); }
.bubbles .b3 { width: 460px; height: 420px; top: -120px; right: 5%; background: linear-gradient(200deg, rgba(150,225,250,.6), rgba(90,185,235,.35)); }
.bubbles .b4 { width: 260px; height: 320px; top: 34%; left: 16%; background: linear-gradient(170deg, rgba(190,240,250,.55), rgba(110,200,240,.3)); }
.bubbles .b5 { width: 330px; height: 250px; top: 52%; right: -60px; background: linear-gradient(200deg, rgba(120,235,205,.85), rgba(90,205,220,.5)); }
.bubbles .b6 { width: 420px; height: 400px; bottom: -160px; left: 8%; background: linear-gradient(190deg, rgba(110,232,180,.95), rgba(80,200,215,.55)); }
.bubbles .b7 { width: 300px; height: 280px; bottom: -120px; left: -120px; background: linear-gradient(160deg, rgba(150,225,250,.6), rgba(95,190,235,.35)); }
.bubbles .b8 { width: 360px; height: 330px; bottom: -150px; right: 12%; background: linear-gradient(180deg, rgba(120,235,200,.8), rgba(85,195,230,.45)); }

.login-card { position: relative; z-index: 1; width: 100%; max-width: 620px; background: #fff; padding: 3.2rem 3rem; text-align: center; box-shadow: 0 25px 60px rgba(16,60,100,.18); }
.login-card h1 { font-size: 1.9rem; letter-spacing: -.01em; color: var(--brand); margin: 0 0 2.2rem; }
.login-card .card-sub { margin: -1.7rem 0 2rem; }
.field { display: flex; align-items: center; border: 1px solid #e6e9ee; border-radius: 8px; margin-bottom: .9rem; box-shadow: 0 1px 2px rgba(16,24,40,.04); overflow: hidden; }
.field:focus-within { border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(45,90,142,.15); }
.field svg { flex: none; width: 22px; height: 22px; margin: 0 .5rem 0 1.1rem; fill: #8b93a1; }
.field input { border: 0; box-shadow: none; padding: 1.05em .9em; font-size: 1.05rem; background: transparent; }
.field input:focus { outline: none; }
.field input::placeholder { color: #98a2b3; }
.login-card .help { text-align: left; margin: .2rem 0 0; display: flex; gap: 1.2rem; }
.login-card .help button { padding: .2em 0; color: #475467; }
.login-card .help button:hover { text-decoration: underline; }
.login-card .primary { min-width: 200px; padding: .85em 2em; font-size: 1.05rem; border-radius: 6px; margin-top: 1.8rem; }
.login-card .error { text-align: center; margin-top: .8rem; }

/* Ροή ανακοινώσεων χρήστη */
.feed { display: grid; gap: .75rem; }
.ann { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid transparent; }
.ann.unread { border-left-color: var(--new); }
.ann.important { border-left-color: var(--danger); }
.ann-head { width: 100%; text-align: left; background: none; border: 0; padding: .95rem 1.1rem; display: flex; gap: .75rem; align-items: flex-start; border-radius: var(--radius); color: inherit; }
.ann-head:hover { background: #fafbfd; }
.ann-title { font-weight: 600; font-size: 1.02rem; }
.ann.unread .ann-title { font-weight: 700; }
.ann-date { color: var(--muted); font-size: .82rem; white-space: nowrap; margin-left: auto; }
.badges { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .25rem; }
.badge { font-size: .7rem; font-weight: 700; letter-spacing: .04em; padding: .12em .55em; border-radius: 5px; text-transform: uppercase; }
.b-new { background: #e3ecfc; color: var(--new); }
.b-imp { background: #fbe7e5; color: var(--danger); }
.b-ok { background: #e2f3e9; color: var(--ok); }
.b-wait { background: #fff4dc; color: #8a5a00; }
.ann-body { padding: 0 1.1rem 1.1rem; }
.body-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: .5rem 0 1rem; }
.confirmed-note { color: var(--ok); font-weight: 600; font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 2.5rem 1rem; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Λίστα διαχειριστή */
.list { display: grid; gap: .6rem; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1.1rem; display: grid; grid-template-columns: 1fr auto; gap: .35rem 1rem; cursor: pointer; box-shadow: var(--shadow); text-align: left; color: inherit; width: 100%; }
.item:hover { border-color: #c9d3e1; }
.item .t { font-weight: 600; }
.item .meta { color: var(--muted); font-size: .83rem; grid-column: 1; }
.progress { grid-column: 2; grid-row: 1 / span 2; align-self: center; min-width: 150px; text-align: right; font-size: .85rem; }
.bar { height: 7px; background: #e9edf3; border-radius: 99px; overflow: hidden; margin-top: .3rem; }
.bar > i { display: block; height: 100%; background: var(--ok); width: 0; }

/* Φόρμα χρηστών */
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; align-items: end; }
.import { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.import summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.import textarea { margin: .4rem 0 .6rem; font-family: ui-monospace, monospace; font-size: .85rem; }
.filters { display: flex; gap: .5rem; }
.filters input { width: 200px; }
.filters select { width: auto; }

/* Πίνακες */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { padding: .6rem .75rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { background: #f7f9fc; font-weight: 600; color: #475467; font-size: .8rem; }
.table tr:last-child td { border-bottom: 0; }
.table tr.inactive td { color: #98a2b3; }
.table .actions { text-align: right; }
.table .actions .link { font-size: .85rem; padding: .2em .3em; }
.table .badge { text-transform: none; letter-spacing: 0; font-size: .78rem; }
select { padding: .6em .6em; }

/* Επιλογή παραληπτών */
.pick { margin-top: .6rem; border: 1px solid var(--line); border-radius: 9px; padding: .6rem; background: #fafbfd; }
.pick-actions { margin: .4rem 0; font-size: .85rem; }
.pick-list { max-height: 220px; overflow: auto; display: grid; gap: .1rem; }
.pick-list label { display: flex; gap: .5em; align-items: center; font-weight: 400; padding: .25rem .35rem; border-radius: 6px; cursor: pointer; }
.pick-list label:hover { background: #eef2f8; }
.pick-list input { width: auto; margin: 0; }

/* Διάλογοι */
.dlg { border: 0; border-radius: 14px; padding: 1.3rem; width: min(440px, calc(100vw - 2rem)); box-shadow: 0 25px 60px rgba(0,0,0,.3); color: var(--text); }
.dlg.wide { width: min(860px, calc(100vw - 2rem)); }
.dlg::backdrop { background: rgba(15,23,42,.45); }
.dlg-head { display: flex; align-items: flex-start; gap: .5rem; }
.dlg-head h3 { flex: 1; }
.dlg .table-wrap { margin-top: .8rem; max-height: 50vh; overflow: auto; }
.code-big { font: 700 1.8rem/1 ui-monospace, monospace; letter-spacing: .15em; text-align: center; padding: .8rem; background: #f2f5fa; border-radius: 10px; margin: .6rem 0; user-select: all; }
.code-list { max-height: 50vh; overflow: auto; font-size: .9rem; }
.code-list td:last-child { font-family: ui-monospace, monospace; font-weight: 700; letter-spacing: .08em; }

.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%) translateY(20px); opacity: 0; visibility: hidden; transition: all .25s; background: #1b2430; color: #fff; padding: .7rem 1.1rem; border-radius: 10px; z-index: 50; max-width: calc(100vw - 2rem); }
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; visibility: visible; }

@media (max-width: 640px) {
  .who span { display: none; }
  .item { grid-template-columns: 1fr; }
  .progress { grid-column: 1; grid-row: auto; text-align: left; }
  .filters { width: 100%; }
  .filters input { flex: 1; width: auto; }
  .ann-head { flex-wrap: wrap; }
  .ann-date { margin-left: 0; }
}

@media (max-width: 560px) {
  .login { padding: 1rem; }
  .login-card { padding: 2.2rem 1.4rem; }
  .login-card h1 { font-size: 1.5rem; margin-bottom: 1.8rem; }
  .login-card .card-sub { margin: -1.4rem 0 1.6rem; }
  .login-card .primary { width: 100%; }
}

/* Στοιχεία εισόδου χρήστη */
.cred { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #f2f5fa; border-radius: 10px; padding: .7rem 1rem; margin-top: .5rem; }
.cred span { color: var(--muted); font-size: .85rem; }
.cred b { font: 700 1.25rem/1 ui-monospace, monospace; letter-spacing: .08em; user-select: all; }
.wrap.narrow { max-width: 480px; }
.wrap.narrow .card { margin-top: 1.5rem; }

/* ===== Λευκή μπάρα ===== */
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.5rem; background: #fff; border-bottom: 1px solid var(--line); }
.masthead .brand { display: flex; align-items: center; gap: .6rem; font: 700 1.3rem/1 system-ui, sans-serif; color: var(--brand); text-decoration: none; }
.masthead .brand img { max-height: 40px; width: auto; border-radius: 8px; }
.account { position: relative; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent2); display: grid; place-items: center; padding: 0; }
.avatar:hover { filter: brightness(.95); }
.avatar svg { width: 24px; height: 24px; fill: var(--brand); }
.account-menu { position: absolute; right: 0; top: calc(100% + .5rem); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 12px 30px rgba(16,24,40,.15); padding: .4rem; z-index: 20; }
.am-head { padding: .6rem .7rem; border-bottom: 1px solid var(--line); display: grid; margin-bottom: .3rem; }
.am-item { display: block; width: 100%; text-align: left; background: none; padding: .55em .7em; border-radius: 7px; color: inherit; }
.am-item:hover { background: #f2f5fa; }

/* ===== Σκούρο μενού ===== */
.mainnav { background: var(--brand); position: sticky; top: 0; z-index: 15; padding: 0 1.5rem; }
.nav-toggle { display: none; background: none; color: #fff; padding: .8em 0; font-weight: 600; }
.nav-list { list-style: none; display: flex; flex-wrap: wrap; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a, .nav-list > li > button { display: flex; align-items: center; gap: .35rem; padding: 1em 1.1em; color: #ffffffd0; text-decoration: none; background: none; border: 0; border-radius: 0; font: inherit; white-space: nowrap; }
.nav-list > li > a:hover, .nav-list > li > button:hover { background: #ffffff1a; color: #fff; }
.nav-list > li.active > a, .nav-list > li.active > button { background: #ffffff26; color: #fff; font-weight: 600; }
.caret { font-size: .7em; opacity: .8; }
.sub { list-style: none; margin: 0; padding: .35rem; position: absolute; left: 0; top: 100%; min-width: 230px; background: #fff; border-radius: 0 0 10px 10px; box-shadow: 0 14px 30px rgba(16,24,40,.18); display: none; z-index: 20; }
.nav-list > li:hover > .sub, .nav-list > li.open > .sub { display: block; }
.sub a { display: block; padding: .6em .8em; color: var(--text); text-decoration: none; border-radius: 7px; }
.sub a:hover { background: #f2f5fa; color: var(--brand); }

/* ===== Πράσινη λωρίδα ===== */
.strip { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.3rem auto 0; max-width: 1240px; width: calc(100% - 3rem); padding: 1.1rem 1.6rem; border-radius: 4px; text-decoration: none;
  color: var(--brand); font-weight: 800; letter-spacing: .02em; background: linear-gradient(110deg, var(--strip-from, var(--accent2)), var(--strip-to, #9fe86f)); box-shadow: 0 2px 10px rgba(16,60,100,.1); }
.strip .arrow { font-size: 1.4rem; line-height: 1; }
.strip:hover { filter: brightness(1.03); }

/* ===== Banner ===== */
.hero { position: relative; overflow: hidden; margin: 1.3rem auto 0; max-width: 1240px; width: calc(100% - 3rem); min-height: 300px; display: grid; place-items: center; text-align: center;
  background: linear-gradient(160deg, #56b0e6, #2f8fd0); color: #fff; padding: 3.5rem 1.5rem; }
.hero-text { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin: 0 0 .5rem; text-shadow: 0 2px 12px rgba(0,0,0,.12); }
.hero p { margin: 0; font-size: clamp(1rem, 1.6vw, 1.3rem); opacity: .95; }
.hero-bubbles { position: absolute; inset: 0; }
.hero-bubbles i { position: absolute; border-radius: 50%; opacity: .5; background: linear-gradient(150deg, rgba(255,255,255,.4), rgba(120,235,205,.5)); }
.hero-bubbles .h1 { width: 260px; height: 260px; top: -90px; left: -60px; }
.hero-bubbles .h2 { width: 200px; height: 200px; bottom: -80px; left: 22%; }
.hero-bubbles .h3 { width: 320px; height: 300px; top: -110px; right: 8%; }
.hero-bubbles .h4 { width: 240px; height: 230px; bottom: -110px; right: -70px; }
.hero-note { position: absolute; left: 0; right: 0; bottom: 0; background: #16386b; color: #dbe7f5; font-size: .85rem; padding: .7rem 1.2rem; text-align: center; }

/* ===== Πλακίδια ===== */
.tiles { max-width: 1240px; width: calc(100% - 3rem); margin: 0 auto; background: var(--brand); display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; padding: 2rem 1.5rem; }
.tile { display: grid; justify-items: center; gap: .8rem; color: #fff; text-decoration: none; padding: .6rem; border-radius: 10px; text-align: center; }
.tile:hover { background: #ffffff14; }
.tile-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--accent2); display: grid; place-items: center; }
.tile-icon svg { width: 32px; height: 32px; fill: var(--brand); }

#homeView .wrap { padding-top: 2rem; }
.b-cat { background: #e8eef7; color: var(--brand); text-transform: none; letter-spacing: 0; }
.danger-link { color: var(--danger); }
.span2 { grid-column: 1 / -1; }
.grid-form .row.span2 { display: flex; }

@media (max-width: 900px) {
  .mainnav { padding: 0 1rem; }
  .nav-toggle { display: block; }
  .nav-list { display: none; flex-direction: column; padding-bottom: .6rem; }
  .mainnav.open .nav-list { display: flex; }
  .nav-list > li > a, .nav-list > li > button { width: 100%; padding: .75em .4em; }
  .sub { position: static; display: none; box-shadow: none; background: #ffffff14; border-radius: 8px; }
  .nav-list > li.open > .sub { display: block; }
  .sub a { color: #fff; }
  .sub a:hover { background: #ffffff1f; color: #fff; }
  .masthead { padding: .6rem 1rem; }
  .strip, .hero, .tiles { width: calc(100% - 2rem); }
  .hero { min-height: 220px; padding: 2.5rem 1rem; }
}

/* 2FA */
#otpForm .code-big, #securityView .code-big { font-size: 1.1rem; letter-spacing: .12em; word-break: break-all; }
#otpQr, #secQr { width: 200px; height: 200px; border-radius: 8px; border: 1px solid var(--line); }
#securityView img { display: block; margin: .6rem auto; }
#otpForm img { margin: 0 auto .6rem; display: block; }
#otpForm .field input, #securityView #secCode { text-align: center; letter-spacing: .5em; font-size: 1.2rem; }
#secConfirmForm { margin-top: .8rem; gap: .6rem; }
#securityView .row { margin-top: 1rem; }

/* Συνημμένα */
.attach { border: 1px dashed #c9d3e1; border-radius: 10px; padding: .8rem; background: #fafbfd; display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.file-btn { position: relative; overflow: hidden; display: inline-block; font-weight: 500; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn span { display: inline-block; background: #fff; color: var(--brand); border: 1px solid #c9d3e1; border-radius: 8px; padding: .5em 1em; cursor: pointer; }
.file-btn:hover span { background: #f2f5fa; }
.attach-list { display: flex; flex-wrap: wrap; gap: .4rem; width: 100%; }
.attach-list:empty { display: none; }
.files { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.file-chip { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: .45em .7em; text-decoration: none; color: inherit; font-size: .9rem; }
a.file-chip:hover { border-color: var(--brand-2); background: #f7faff; }
.file-chip.pending { opacity: .7; }
.file-chip .fi { font-size: .68rem; font-weight: 700; background: var(--brand); color: #fff; border-radius: 4px; padding: .2em .4em; letter-spacing: .03em; }
.file-chip .x { background: none; border: 0; color: var(--muted); padding: 0 .2em; font-size: 1rem; line-height: 1; }
.file-chip .x:hover { color: var(--danger); }

/* Ιστορικό */
#auditTable .wrapcell { white-space: normal; max-width: 420px; }
#auditTable tr.warn td { background: #fff8f7; }
#auditPager { margin-top: .8rem; justify-content: space-between; }

/* Κείμενο SMS */
.smsbox { background: #f7faff; border: 1px solid var(--line); border-radius: 10px; padding: .9rem; }
.smsbox textarea { font-family: ui-monospace, monospace; font-size: .9rem; }
.smsbox p { margin: .5rem 0 0; }
#smsCount { display: block; margin-top: .3rem; font-weight: 600; color: var(--brand); }
.sms-preview { background: #f2f5fa; border-left: 3px solid var(--accent2); border-radius: 6px; padding: .6rem .8rem; margin-bottom: 1rem; font-size: .9rem; }

/* Δοκιμή SMS */
.test-ok { background: #e9f7ef; border-left: 3px solid var(--ok); border-radius: 6px; padding: .7rem .9rem; margin-top: .8rem; }
.test-fail { background: #fdf1f0; border-left: 3px solid var(--danger); border-radius: 6px; padding: .7rem .9rem; margin-top: .8rem; }
.test-fail .body-text { font-family: ui-monospace, monospace; font-size: .82rem; margin: .4rem 0 0; }


/* Κουμπί κλεισίματος παραθύρων */
.dlg { position: relative; }
.close-x { position: absolute; top: .55rem; right: .55rem; background: none; border: 0; color: var(--muted); font-size: 1.05rem; line-height: 1; padding: .35em .5em; border-radius: 6px; }
.close-x:hover { background: #f2f5fa; color: var(--text); }
.dlg h3 { padding-right: 2.2rem; }

.b-owner { background: #fff4dc; color: #8a5a00; text-transform: none; letter-spacing: 0; }


/* Εικόνες εμφάνισης */
.hero.has-image .hero-bubbles, .login.has-image .bubbles { display: none; }
.brand-box { border: 1px solid var(--line); border-radius: 10px; padding: 1rem; background: #fafbfd; }
.brand-box legend { padding: 0 .4rem; font-weight: 600; }
.brand-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem; }
.brand-item { display: grid; gap: .5rem; justify-items: start; }
.brand-prev { position: relative; width: 100%; height: 96px; border: 1px solid var(--line); border-radius: 8px; background: #fff center/cover no-repeat; display: grid; place-items: center; overflow: hidden; }
.brand-prev img { max-width: 80%; max-height: 60%; object-fit: contain; }
.brand-prev .state { position: absolute; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.55); color: #fff; font-size: .68rem; text-align: center; padding: .15em 0; }
.mock-title { color: #fff; font-weight: 700; font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.3); }
.mock-card { width: 52%; height: 48%; background: #fff; border-radius: 3px; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.brand-item > .muted.small { margin-top: -.2rem; }
.brand-item .file-btn span { padding: .4em .8em; font-size: .9rem; }
input[type=range] { width: 100%; padding: 0; }

.wrap.settings-wrap { max-width: 760px; }
.settings-wrap .row.wrap-row label { min-width: 120px; }

.mock-tiles .dots { display: flex; gap: .9rem; }
.mock-tiles .dots i { width: 18px; height: 18px; border-radius: 50%; background: var(--accent2); display: block; }

.perm-cell { text-align: center; }
.perm-cell input { width: 18px; height: 18px; }
#permsTable th:not(:first-child) { text-align: center; }

/* Καταστάσεις */
.stmt-progress { display: grid; gap: .3rem; width: 100%; max-height: 320px; overflow: auto; }
.stmt-progress:empty { display: none; }
.stmt-row { display: flex; align-items: center; gap: .6rem; font-size: .88rem; padding: .3rem .5rem; border-radius: 6px; background: #fff; border: 1px solid var(--line); }
.stmt-row .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stmt-row.ok { border-color: #bfe3cd; background: #f3fbf6; }
.stmt-row.bad { border-color: #efc2bd; background: #fdf3f2; }
.stmt-row .who { color: var(--muted); }
#stmtPager { margin-top: .8rem; justify-content: space-between; }

a.stmt-item { text-decoration: none; }
a.stmt-item .t { text-decoration: none; }
a.stmt-item:hover .t { text-decoration: underline; }
a.stmt-item .meta { text-decoration: none; }

/* ---------- Γλώσσα ---------- */
.am-lang { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.lang-pick { display: inline-flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; background: #fff; }
.lang-pick button { background: none; border: 0; padding: .35em .7em; font: inherit; font-size: .82rem; font-weight: 600; color: #475467; cursor: pointer; }
.lang-pick button + button { border-left: 1px solid var(--line); }
.lang-pick button:hover { background: #f2f5fa; }
.lang-pick button.on { background: var(--brand); color: #fff; }
.login-lang { position: absolute; top: 1.2rem; right: 1.2rem; z-index: 2; box-shadow: 0 6px 18px rgba(16,60,100,.18); }
@media (max-width: 640px) { .login-lang { top: .7rem; right: .7rem; } }

/* ---------- Αγγλική έκδοση περιεχομένου ---------- */
.en-box { border: 1px dashed var(--line); border-radius: 10px; padding: .6rem .9rem; background: #fbfcfe; }
.en-box > summary { cursor: pointer; font-weight: 600; }
.en-box > label { display: grid; gap: .3rem; margin-top: .8rem; }
.en-block { border-left: 3px solid var(--accent2, #5fd3b8); padding: .3rem 0 .3rem .8rem; margin: .8rem 0; display: grid; gap: .25rem; }

/* ---------- Υποστήριξη (αιτήματα) ---------- */
.thread { display: grid; gap: .7rem; max-height: 46vh; overflow: auto; padding: .4rem .2rem; margin: .6rem 0; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem; background: #fff; }
.msg.staff { background: #f2f7fd; border-color: #d6e4f5; }
.msg.internal { background: #fff8e8; border-color: #f0dca8; }
.msg-head { display: flex; gap: .6rem; align-items: baseline; font-weight: 600; font-size: .88rem; margin-bottom: .25rem; }
.msg-head .muted { margin-left: auto; font-weight: 400; }
.ticket-item .t { font-weight: 600; }
#tkActions label { display: grid; gap: .3rem; }
#tkActions .check { display: flex; align-items: center; gap: .4rem; }
.perm-chips { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: .4rem; }
.perm-chips .check { display: flex; align-items: center; gap: .4rem; }
.grow { flex: 1 1 260px; }
.perm-cell input.from-group { accent-color: #9aa5b1; }
tr.warn td { background: #fff6f6; }

.table select { min-width: 9.5rem; padding: .3em .4em; font-size: .9rem; }
.perm-cell { text-align: center; }
.tech-phone { width: 10rem; padding: .35em .5em; }

.disabled-field { opacity: .6; }
.grp-hint { display: block; margin-top: .2rem; }

.problem { border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 10px; padding: .7rem .9rem; margin: .7rem 0; background: #fbfcfe; }
.prob-head { display: flex; align-items: baseline; gap: .7rem; margin-bottom: .35rem; flex-wrap: wrap; }
.prob-head .muted { margin-right: auto; }
.problem label { display: grid; gap: .3rem; margin-top: .5rem; }
.excerpt { margin-top: .15rem; max-width: 46ch; }

.shots { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; align-items: flex-start; }
.shot { display: block; width: 108px; height: 108px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #f2f5fa; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot:hover { border-color: var(--brand); }
#tkActions .attach, .problem .attach { margin: .5rem 0; }
