/* ============================================================
   styles.css — Būtent! Diskusijų festivalis
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Barlow+Condensed:wght@700;800;900&display=swap');

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:            #f0f2f5;
  --white:         #ffffff;
  --border:        #d4d9e2;
  --border-light:  #e8ebf0;
  --text:          #0f172a;
  --text-2:        #475569;
  --text-3:        #94a3b8;
  --primary:       #1d4ed8;
  --primary-h:     #1e40af;
  --primary-bg:    #eff6ff;
  --success:       #059669;
  --success-bg:    #ecfdf5;
  --warning:       #b45309;
  --warning-bg:    #fef3c7;
  --danger:        #dc2626;
  --danger-bg:     #fef2f2;
  --accent:        #fff244;
  --nav-h:         58px;
  --sidebar-w:     228px;
  --log-w:         300px;
  --r:             7px;
  --r-lg:          11px;
  --r-xl:          16px;
  --sh-sm:         0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --sh-md:         0 4px 10px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.05);
  --sh-lg:         0 16px 32px rgba(0,0,0,.1), 0 4px 8px rgba(0,0,0,.05);
}

html, body { height: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: 17px; font-weight: 700; }
h3 { font-size: 15px; font-weight: 600; }

/* ============================================================
   LOGO
   ============================================================ */
.brand-logo { display: flex; flex-direction: column; align-items: center; text-align: center; }
.brand-logo-main {
  font-family: 'Barlow Condensed', 'Arial Black', 'Arial', sans-serif;
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -.01em;
  color: #000;
  line-height: 1;
  text-transform: uppercase;
}
.brand-logo-sub {
  font-family: 'Barlow Condensed', 'Arial Black', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .35em;
  color: #000;
  text-transform: uppercase;
  margin-top: 3px;
}
.brand-logo-sm .brand-logo-main { font-size: 28px; }
.brand-logo-sm .brand-logo-sub  { font-size: 8px; letter-spacing: .2em; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 18px;
  border: 1px solid transparent; border-radius: var(--r);
  font-size: 14px; font-weight: 600; font-family: inherit;
  cursor: pointer; white-space: nowrap; user-select: none;
  transition: background .12s, border-color .12s, box-shadow .12s, opacity .12s;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(29,78,216,.3); }
.btn:disabled { opacity: .45; cursor: default; pointer-events: none; }

.btn-primary   { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-h); border-color: var(--primary-h); }
.btn-secondary { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: var(--bg); }
.btn-ghost     { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--border-light); color: var(--text); }
.btn-danger    { background: var(--danger); color: #fff; border-color: var(--danger); }

.btn-sm  { padding: 5px 12px; font-size: 13px; }
.btn-lg  { padding: 12px 28px; font-size: 15px; }
.btn-xl  { padding: 14px 36px; font-size: 16px; font-weight: 700; }

/* ============================================================
   FORM ELEMENTS
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 5px; }

.form-label {
  font-size: 12px; font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: .05em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 9px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 14px; font-family: inherit; color: var(--text);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.5;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.14);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-textarea { resize: vertical; min-height: 88px; line-height: 1.65; }

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled,
.form-input[readonly],
.form-textarea[readonly] {
  background: var(--bg);
  color: var(--text-2);
  border-color: var(--border-light);
  cursor: default;
}

.form-row   { display: grid; gap: 14px; }
.form-row-2 { grid-template-columns: 1fr 1fr; }
.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-row-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.form-row-auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* Photo slot */
.photo-slot {
  width: 88px; height: 88px; border-radius: var(--r);
  border: 2px dashed var(--border);
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; cursor: pointer; position: relative; overflow: hidden; flex-shrink: 0;
  transition: border-color .15s, background .15s;
  font-size: 10px; color: var(--text-3); font-weight: 600; text-align: center;
}
.photo-slot:hover { border-color: var(--primary); background: var(--primary-bg); color: var(--primary); }
.photo-slot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-slot img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.photo-slot.disabled { pointer-events: none; }

/* Logo slot */
.logo-slot {
  width: 52px; height: 52px; border-radius: var(--r);
  border: 2px dashed var(--border);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; position: relative; overflow: hidden; flex-shrink: 0;
  font-size: 9px; color: var(--text-2); font-weight: 800; letter-spacing: .03em; text-align: center;
  transition: border-color .15s;
}
.logo-slot:hover { border-color: var(--primary); }
.logo-slot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.logo-slot img { width: 100%; height: 100%; object-fit: cover; }
.logo-slot.disabled { pointer-events: none; }

/* ============================================================
   TOP NAV
   ============================================================ */
.topnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center; padding: 0 22px; gap: 16px;
}
.topnav-logo { display: flex; align-items: center; gap: 10px; }
.topnav-logo-text {
  font-family: 'Barlow Condensed', 'Arial Black', sans-serif;
  font-weight: 900;
  font-size: 22px;
  letter-spacing: -.01em;
  color: #000;
  line-height: 1;
  text-transform: uppercase;
}
.topnav-divider { width: 1px; height: 22px; background: var(--border); }
.topnav-section { font-size: 13px; font-weight: 500; color: var(--text-2); }
.topnav-spacer { flex: 1; }
.topnav-info { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.topnav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; letter-spacing: -.01em;
}
.topnav-back { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.topnav-back:hover { color: var(--primary); text-decoration: none; }

/* ============================================================
   LEFT SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed; top: var(--nav-h); left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--white);
  border-right: 1.5px solid var(--border);
  overflow-y: auto; padding: 12px 0; z-index: 50;
}
.sidebar-label {
  padding: 10px 18px 4px;
  font-size: 10px; font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: .08em;
}
.sidebar-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 18px;
  font-size: 14px; color: var(--text-2); font-weight: 500;
  cursor: pointer;
  transition: background .1s, color .1s;
  border-left: 3px solid transparent;
}
.sidebar-item:hover { background: var(--bg); color: var(--text); }
.sidebar-item.active { background: var(--primary-bg); color: var(--primary); font-weight: 700; border-left-color: var(--primary); }
.sidebar-badge {
  margin-left: auto;
  background: var(--bg); color: var(--text-2);
  padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 700;
}
.sidebar-item.active .sidebar-badge { background: rgba(29,78,216,.12); color: var(--primary); }

/* ============================================================
   RIGHT LOG SIDEBAR
   ============================================================ */
.log-sidebar {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0;
  width: var(--log-w);
  background: var(--white);
  border-left: 1.5px solid var(--border);
  display: flex; flex-direction: column; z-index: 50; overflow: hidden;
}
.log-sidebar-head {
  padding: 14px 16px;
  border-bottom: 1.5px solid var(--border);
  font-size: 11px; font-weight: 800;
  color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  text-transform: uppercase; letter-spacing: .07em;
}
.log-sidebar-body {
  flex: 1; overflow-y: auto; padding: 10px;
  display: flex; flex-direction: column; gap: 5px;
}

/* Log entries */
.log-entry {
  padding: 9px 11px;
  border-radius: var(--r);
  background: var(--bg);
  border-left: 3px solid var(--border-light);
}
.log-entry-meta { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; flex-wrap: wrap; }
.log-time  { font-size: 11px; color: var(--text-3); font-family: monospace; }
.log-user  { font-size: 11px; color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 145px; }
.log-msg   { font-size: 12px; color: var(--text); line-height: 1.4; }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 7px; border-radius: 8px;
  font-size: 9px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; flex-shrink: 0;
}
.tag-create { background: var(--primary-bg); color: var(--primary); }
.tag-edit   { background: var(--warning-bg);  color: var(--warning); }
.tag-info   { background: var(--success-bg);  color: var(--success); }

.log-entry.tag-create-entry { border-left-color: var(--primary); }
.log-entry.tag-edit-entry   { border-left-color: var(--warning); }
.log-entry.tag-info-entry   { border-left-color: var(--success); }

/* ============================================================
   PAGE LAYOUT
   ============================================================ */
.page-body  { padding-top: var(--nav-h); min-height: 100vh; }
.with-sidebars { margin-left: var(--sidebar-w); margin-right: var(--log-w); }
.with-left-sidebar { margin-left: var(--sidebar-w); }
.content { padding: 26px; }

.page-hd { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 22px; gap: 12px; }
.page-hd-left h1 { margin-bottom: 3px; }
.page-hd-left p  { font-size: 14px; color: var(--text-2); }
.page-hd-right   { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* ============================================================
   TABLE
   ============================================================ */
/* Top scrollbar for table */
.table-scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 8px;
  height: 20px;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
}

.table-scroll-dummy {
  height: 1px;
}

.table-wrap {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow-x: auto;
  overflow-y: hidden;
  box-shadow: var(--sh-sm);
}
.table-wrap table { width: 100%; border-collapse: collapse; }
thead { background: #f8fafc; }
th {
  padding: 10px 15px;
  text-align: left;
  font-size: 11px; font-weight: 800;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px; color: var(--text);
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr { cursor: pointer; transition: background .1s; }
tbody tr:hover { background: #f8faff; }

.td-id { font-size: 12px; font-weight: 800; color: var(--text-2); font-family: monospace; white-space: nowrap; }
.td-name { font-weight: 600; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-name-sub { font-size: 12px; color: var(--text-3); font-weight: 400; display: block; margin-top: 1px; }
.td-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; }

/* Stage chip in table */
.stage-chip {
  display: flex; align-items: center; gap: 7px;
}
.stage-badge-mini {
  width: 28px; height: 28px; border-radius: 5px;
  background: var(--primary-bg); color: var(--primary);
  font-size: 8px; font-weight: 900; letter-spacing: .03em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-align: center; line-height: 1.1;
}
.stage-name { font-size: 13px; font-weight: 500; white-space: nowrap; }

/* Progress bar */
.prog-wrap { display: flex; align-items: center; gap: 8px; min-width: 115px; }
.prog-bar  { flex: 1; height: 6px; background: var(--border); border-radius: 3px; overflow: hidden; }
.prog-fill { height: 100%; border-radius: 3px; transition: width .4s; }
.prog-fill.p-low  { background: var(--danger); }
.prog-fill.p-mid  { background: #f59e0b; }
.prog-fill.p-high { background: #3b82f6; }
.prog-fill.p-full { background: var(--success); }
.prog-pct  { font-size: 12px; font-weight: 700; color: var(--text-2); min-width: 30px; text-align: right; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; }
.badge-blue  { background: var(--primary-bg); color: var(--primary); }
.badge-green { background: var(--success-bg); color: var(--success); }
.badge-amber { background: var(--warning-bg); color: var(--warning); }
.badge-gray  { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }
.badge-red   { background: var(--danger-bg); color: var(--danger); }

/* ============================================================
   FILTER BAR
   ============================================================ */
.filter-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  margin-bottom: 16px;
  box-shadow: var(--sh-sm);
}
.filter-group { display: flex; align-items: center; gap: 6px; }
.filter-label { font-size: 11px; font-weight: 800; color: var(--text-2); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.filter-bar select,
.filter-bar input[type="text"] {
  padding: 6px 11px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  font-size: 13px; font-family: inherit; color: var(--text);
  background: var(--white);
  min-width: 120px;
}
.filter-bar select:focus, .filter-bar input:focus { outline: none; border-color: var(--primary); }
.filter-bar select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}
.filter-bar input[type="text"] { min-width: 160px; }
.filter-sep { width: 1px; height: 22px; background: var(--border); flex-shrink: 0; }
.filter-count { font-size: 13px; color: var(--text-2); font-weight: 600; margin-left: auto; white-space: nowrap; }

/* ============================================================
   CARD
   ============================================================ */
.card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.card-hd {
  padding: 16px 22px;
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.card-title { font-size: 15px; font-weight: 700; }
.card-body { padding: 22px; }

/* ============================================================
   SECTION SEPARATOR
   ============================================================ */
.sec-sep { border: none; border-top: 1.5px solid var(--border); margin: 22px 0; }
.sec-title {
  font-size: 10px; font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: .09em;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.sec-title::after { content: ''; flex: 1; height: 1px; background: var(--border-light); }

/* ============================================================
   PERSON BLOCK
   ============================================================ */
.person-block {
  display: grid; grid-template-columns: 88px 1fr; gap: 16px;
  padding: 16px 20px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
}
.person-label {
  font-size: 10px; font-weight: 800;
  color: var(--text-2);
  text-transform: uppercase; letter-spacing: .07em;
  margin-bottom: 10px;
}
.person-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--primary); text-decoration: none; }
.breadcrumb-sep { color: var(--text-3); font-size: 10px; }
.breadcrumb .here { color: var(--text); font-weight: 700; }

/* ============================================================
   TOAST
   ============================================================ */
#toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  background: #1e293b; color: #fff;
  border-radius: var(--r-lg);
  font-size: 14px; font-weight: 500;
  box-shadow: var(--sh-lg);
  max-width: 340px;
  pointer-events: all;
  animation: toastIn .2s ease;
}
.toast.t-success { background: #065f46; }
.toast.t-warning { background: #92400e; }
.toast.t-error   { background: #991b1b; }
.toast-icon { font-size: 15px; flex-shrink: 0; }
@keyframes toastIn  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to   { opacity: 0; transform: translateY(8px); } }

/* ============================================================
   LANDING PAGE
   ============================================================ */
.landing-root {
  min-height: 100vh;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px;
}
.landing-logo-wrap {
  margin-bottom: 28px; text-align: center;
}
.landing-portal-label {
  font-size: 13px; font-weight: 600; color: var(--text-2);
  margin-top: 10px; letter-spacing: .02em;
}

.landing-card {
  width: 100%; max-width: 780px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  display: grid; grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.landing-panel { padding: 36px 34px; }
.landing-panel + .landing-panel { border-left: 1.5px solid var(--border); }

.landing-panel-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 16px;
}
.icon-admin { background: var(--primary-bg); }
.icon-user  { background: var(--warning-bg); }

.landing-panel h2 { font-size: 19px; font-weight: 800; margin-bottom: 5px; }
.landing-panel .subtitle { font-size: 13px; color: var(--text-2); margin-bottom: 22px; line-height: 1.5; }
.landing-form { display: flex; flex-direction: column; gap: 14px; }

.landing-creds {
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid var(--border-light);
  font-size: 11px; color: var(--text-3);
}
.landing-creds-label { font-size: 10px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.landing-cred-row { display: flex; align-items: baseline; gap: 7px; margin-top: 6px; font-size: 12px; color: var(--text-2); }
.landing-cred-row strong { color: var(--text); font-weight: 700; }
.cred-code { font-weight: 800; color: var(--text); white-space: nowrap; min-width: 86px; flex-shrink: 0; letter-spacing: .02em; }
.cred-desc { color: var(--text-2); line-height: 1.4; }
.landing-error {
  font-size: 13px; color: var(--danger);
  padding: 8px 12px; background: var(--danger-bg);
  border-radius: var(--r); border-left: 3px solid var(--danger);
  display: none;
}

/* ============================================================
   DISCUSSION FORM PAGE
   ============================================================ */
.df-root { background: var(--accent); min-height: 100vh; padding: 20px; }
.df-inner {
  max-width: 1360px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 288px;
  gap: 16px; align-items: start;
}

.df-card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-lg); overflow: hidden; }
.df-card-hd {
  padding: 14px 22px;
  border-bottom: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.df-card-hd-left { display: flex; align-items: center; gap: 10px; }
.df-card-title { font-size: 16px; font-weight: 800; }
.df-card-body { padding: 24px; display: flex; flex-direction: column; gap: 22px; }

.df-log-card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--sh-md); overflow: hidden; position: sticky; top: 20px; }
.df-log-head {
  padding: 13px 15px;
  border-bottom: 1.5px solid var(--border);
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}
.df-log-body { padding: 10px; max-height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 5px; }

/* Compact slot info (user view) */
.slot-compact {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
}
.slot-compact-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 8px;
  flex-wrap: wrap;
}
.slot-compact-badge {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--primary-bg); color: var(--primary);
  font-size: 9px; font-weight: 900; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.slot-compact-name { font-size: 15px; font-weight: 700; color: var(--text); }
.slot-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.slot-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 20px;
  background: var(--white); border: 1.5px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text-2);
}
.slot-chip svg { flex-shrink: 0; }
.slot-compact-contact {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--border-light);
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-2);
}
.slot-compact-contact strong { color: var(--text); }
.readonly-label {
  font-size: 10px; color: var(--text-3); font-style: italic;
  margin-bottom: 6px; display: flex; align-items: center; gap: 4px; font-weight: 500;
}

/* Bottom action bar */
.df-actions {
  display: flex; gap: 10px;
  padding: 18px 24px;
  border-top: 1.5px solid var(--border);
  background: #fafbfc;
}
.df-actions .btn-lg { flex: 1; }

/* Demo toggle - REMOVED (no longer needed) */

/* Email preview */
.email-preview {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  font-size: 14px; line-height: 1.75; color: var(--text);
  white-space: pre-wrap;
  font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); }

/* ============================================================
   UTILITIES
   ============================================================ */
/* Day rows (admin-days.php) - matches stage-row */
.day-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  cursor: move;
  transition: background 0.15s;
}
.day-row:hover {
  background: var(--accent);
}
.day-row:last-child {
  border-bottom: none;
}
.day-row.dragging {
  opacity: 0.5;
}
.day-row-handle {
  color: var(--text-3);
  cursor: grab;
  display: flex;
  align-items: center;
}
.day-row-handle:active {
  cursor: grabbing;
}
.day-row-order {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-3);
  font-family: 'Courier New', monospace;
  min-width: 36px;
}
.day-row-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
}
.day-row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Modal styles (used by admin-days.php, admin-stages.php, etc.) */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  animation: modalFadeIn 0.2s ease;
}
.modal-content {
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  width: 90%;
  max-width: 480px;
  animation: modalSlideUp 0.25s ease;
}
.modal-hd {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
  padding: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover {
  background: var(--accent);
  color: var(--text);
}
.modal-body {
  padding: 24px;
}
.modal-actions {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modalSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.mt-4  { margin-top: 4px; }  .mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; }
.mb-4  { margin-bottom: 4px; } .mb-8  { margin-bottom: 8px; }
.flex  { display: flex; } .flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.text-muted { color: var(--text-2); } .text-sm { font-size: 13px; } .text-xs { font-size: 11px; }
.font-mono { font-family: 'Courier New', monospace; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .df-log-card { display: none; }
  .df-inner { grid-template-columns: 1fr; }
}
@media (max-width: 1120px) {
  .log-sidebar { display: none; }
  .with-sidebars { margin-right: 0; }
}

@media (max-width: 820px) {
  .df-card-body .form-row-pirmas{
    grid-template-columns: 1fr !important;
  }
  .df-card-hd {
    padding: 10px 15px;
    gap: 12px;
    flex-wrap: wrap;
  }
  #hd-progress-badge{
    display: none;
  }
  .df-card-hd #stage-badge{
    display: none !important;
  }
  .sidebar { display: none; }
  .with-sidebars, .with-left-sidebar { margin-left: 0; }
  .landing-card { grid-template-columns: 1fr; }
  .landing-panel + .landing-panel { border-left: none; border-top: 1.5px solid var(--border); }
  .form-row-2, .form-row-3, .form-row-4 { grid-template-columns: 1fr; }

  .person-fields { grid-template-columns: 1fr; }
}

#organizers-list .person-fields .form-group:nth-child(1),
#organizers-list .person-fields .form-group:nth-child(2){
  display: none;
}