/* ═══════════════════════════════════════════════════════════
   STOJILJKOVIĆ STUDIO — DRIVE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold:      #C5A059;
  --gold-l:    #D4B47A;
  --gold-d:    #9A7A3A;
  --deep:      #0D0D0D;
  --panel:     #141414;
  --panel-2:   #191919;
  --line:      rgba(197,160,89,.14);
  --line-soft: rgba(255,255,255,.07);
  --txt:       #F2F2F2;
  --dim:       rgba(255,255,255,.52);
  --dimmer:    rgba(255,255,255,.32);
  --danger:    #C25B5B;
  --ok:        #6FA88C;
  --side-w:    248px;
  --r:         14px;
}

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--deep);
  color: var(--txt);
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-weight: 400; letter-spacing: .01em; }
.dim { color: var(--dim); font-style: normal; }
.nowrap { white-space: nowrap; }
.linkish { background: none; border: 0; color: var(--gold); cursor: pointer; text-decoration: underline; padding: 0; }

/* ── IKONE ─────────────────────────────────────────────── */
.ic {
  width: 18px; height: 18px; flex: 0 0 18px;
  background: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}
.ic-home      { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 9.5V21h14V9.5'/%3E%3C/svg%3E"); }
.ic-kalendar  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.ic-eventi    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3.5 6h.01M3.5 12h.01M3.5 18h.01'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 6h13M8 12h13M8 18h13M3.5 6h.01M3.5 12h.01M3.5 18h.01'/%3E%3C/svg%3E"); }
.ic-fajlovi,
.ic-folder    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2.5h8a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Cpath d='M3 7a2 2 0 0 1 2-2h4l2 2.5h8a2 2 0 0 1 2 2V18a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }
.ic-aktivnost { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-7 4 14 3-7h4'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12h4l3-7 4 14 3-7h4'/%3E%3C/svg%3E"); }
.ic-korisnici { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-5.5 6-5.5s6 2.2 6 5.5'/%3E%3Cpath d='M16 5.5a3 3 0 0 1 0 6M17 14.8c2.4.5 4 2.4 4 5.2'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Ccircle cx='9' cy='8' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-5.5 6-5.5s6 2.2 6 5.5'/%3E%3Cpath d='M16 5.5a3 3 0 0 1 0 6M17 14.8c2.4.5 4 2.4 4 5.2'/%3E%3C/svg%3E"); }
.ic-out       { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8'/%3E%3Cpath d='m17 15 4-3-4-3M21 12H10'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4H6a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8'/%3E%3Cpath d='m17 15 4-3-4-3M21 12H10'/%3E%3C/svg%3E"); }

.ic-pen   { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20h9'/%3E%3Cpath d='M16.5 3.5a2.1 2.1 0 0 1 3 3L7 19l-4 1 1-4z'/%3E%3C/svg%3E"); }
.ic-trash { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M4 7h16M10 11v6M14 11v6M6 7l1 13h10l1-13M9 7V4h6v3'/%3E%3C/svg%3E"); }
.ic-dl    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 11 5 5 5-5'/%3E%3Cpath d='M4 20h16'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12'/%3E%3Cpath d='m7 11 5 5 5-5'/%3E%3Cpath d='M4 20h16'/%3E%3C/svg%3E"); }
.ic-up    { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V7'/%3E%3Cpath d='m7 12 5-5 5 5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V7'/%3E%3Cpath d='m7 12 5-5 5 5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E"); }

/* ── IKONICA-DUGME ─────────────────────────────────────── */
.ibtn {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-soft); border-radius: 9px;
  background: rgba(255,255,255,.02); color: var(--dim);
  cursor: pointer; transition: all .2s;
}
.ibtn:hover { border-color: var(--gold); color: var(--gold); background: rgba(197,160,89,.1); }
.ibtn.danger:hover { border-color: rgba(194,91,91,.6); color: #E08585; background: rgba(194,91,91,.12); }
.ibtn .ic { width: 15px; height: 15px; flex-basis: 15px; }

.trunc { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.ta-r { text-align: right; }

/* ── SIDEBAR ───────────────────────────────────────────── */
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--side-w);
  background: #0A0A0A;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 22px 14px 16px;
  z-index: 60;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 22px; }
.brand img { width: 30px; height: 30px; object-fit: contain; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.brand em { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 15px; color: var(--gold); }

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  font-size: 13px; letter-spacing: .06em; color: var(--dim);
  transition: background .2s, color .2s;
}
.side-nav a:hover { background: rgba(255,255,255,.04); color: var(--txt); }
.side-nav a.active { background: rgba(197,160,89,.12); color: var(--gold); position: relative; }
.side-nav a.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 18px; border-radius: 0 2px 2px 0; background: var(--gold);
}

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 4px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.me { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 10px; min-width: 0; }
.me:hover { background: rgba(255,255,255,.04); }
.me-txt { display: flex; flex-direction: column; min-width: 0; }
.me-txt strong { font-size: 13px; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-txt em { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dimmer); font-style: normal; }
.logout {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 10px;
  font-size: 13px; letter-spacing: .06em; color: var(--dim);
  border: 1px solid transparent; transition: all .2s;
}
.logout:hover { background: rgba(194,91,91,.12); border-color: rgba(194,91,91,.35); color: #E08585; }

.avatar {
  --c: var(--gold);
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  color: var(--c);
  font-size: 11px; font-weight: 600; letter-spacing: .06em; font-style: normal;
}
.avatar.sm { width: 26px; height: 26px; flex-basis: 26px; font-size: 9px; }
.avatar.xl { width: 68px; height: 68px; flex-basis: 68px; font-size: 20px; }

/* ── LAYOUT ────────────────────────────────────────────── */
.main { margin-left: var(--side-w); min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 32px;
  background: rgba(13,13,13,.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar h1 { font-size: 20px; font-weight: 300; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-right { display: flex; align-items: center; gap: 10px; }
.top-new {
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  padding: 10px 18px; border: 1px solid var(--gold); color: var(--gold); border-radius: 9px;
  transition: background .25s, color .25s; white-space: nowrap;
}
.top-new:hover { background: var(--gold); color: #0D0D0D; }
.top-user { display: none; }
.top-out {
  display: none; width: 38px; height: 38px; place-items: center;
  border: 1px solid var(--line-soft); border-radius: 9px; color: var(--dim);
}
.top-out:hover { border-color: rgba(194,91,91,.5); color: #E08585; }
.page { padding: 26px 32px 60px; display: flex; flex-direction: column; gap: 22px; max-width: 1440px; }

.burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.burger span { width: 20px; height: 1.5px; background: var(--txt); display: block; }
.nav-scrim { display: none; }
#navToggle { display: none; }

/* ── FLASH ─────────────────────────────────────────────── */
.flashes { display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 16px; border-radius: 10px; font-size: 14px;
  border: 1px solid var(--line-soft); background: var(--panel);
}
.flash-ok    { border-color: rgba(111,168,140,.4); background: rgba(111,168,140,.1); }
.flash-error { border-color: rgba(194,91,91,.4);  background: rgba(194,91,91,.1); }

/* ── KARTICE ───────────────────────────────────────────── */
.card {
  background: linear-gradient(180deg, #161616 0%, #121212 100%);
  border: 1px solid var(--line-soft);
  border-radius: var(--r);
  padding: 20px 22px 22px;
  box-shadow: 0 1px 0 rgba(255,255,255,.03) inset;
  min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h3 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.link { font-size: 12px; letter-spacing: .1em; color: var(--dim); }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }

/* ── DUGMAD ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 9px; border: 1px solid transparent;
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; background: none; transition: all .25s; white-space: nowrap;
}
.btn-gold  { background: var(--gold); color: #0D0D0D; font-weight: 600; }
.btn-gold:hover { background: var(--gold-l); color: #0D0D0D; }
.btn-ghost { border-color: var(--line); color: var(--dim); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-danger { border-color: rgba(194,91,91,.45); color: var(--danger); }
.btn-danger:hover { background: rgba(194,91,91,.15); color: #E08585; }
.btn-block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 11px; }
.btn.xs { padding: 6px 11px; font-size: 10px; letter-spacing: .1em; }
.btn-icon { padding: 6px 14px; font-size: 20px; line-height: 1; border: 1px solid var(--line); color: var(--dim); }

/* ── FORME ─────────────────────────────────────────────── */
label > span, .f-label {
  display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dimmer); margin-bottom: 7px;
}
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 11px 13px;
  background: #0E0E0E; border: 1px solid var(--line-soft); border-radius: 9px;
  outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); }
input:disabled { color: var(--dimmer); }
input[type=color] { width: 56px; height: 42px; padding: 3px; background: #0E0E0E; border: 1px solid var(--line-soft); border-radius: 9px; }
textarea { resize: vertical; font-family: inherit; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; }
.stack { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.stack label, .stack input, .stack select { width: 100%; }
.f-check { display: flex; align-items: center; gap: 10px; }
.f-check input { width: 17px; height: 17px; accent-color: var(--gold); }
.f-check span { margin: 0; text-transform: none; letter-spacing: .02em; font-size: 14px; color: var(--txt); }

.form-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.f-span2 { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 10px; margin-top: 22px; }

.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filters input[type=search] { flex: 1; min-width: 220px; }
.filters select { width: auto; min-width: 150px; }

.crew-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.crew-chip {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 8px; border: 1px solid var(--line-soft); border-radius: 999px;
  cursor: pointer; font-size: 13px; transition: border-color .2s, background .2s;
}
.crew-chip input { display: none; }
.crew-chip:hover { border-color: var(--line); }
.crew-chip:has(input:checked) { border-color: var(--gold); background: rgba(197,160,89,.1); }

/* ── HERO / STATISTIKA ─────────────────────────────────── */
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.kicker { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold); }
.hero-name { font-family: 'Cormorant Garamond', serif; font-size: 40px; font-weight: 300; line-height: 1.1; }
.hero-date { text-align: right; }
.hero-date strong { display: block; font-weight: 400; font-size: 15px; }
.hero-date span { font-size: 12px; color: var(--dim); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.stat {
  background: linear-gradient(180deg, #161616 0%, #121212 100%);
  border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 20px;
  transition: border-color .25s, transform .25s;
}
.stat:hover { border-color: var(--line); transform: translateY(-2px); }
.stat-n { display: block; font-family: 'Cormorant Garamond', serif; font-size: 30px; color: var(--gold); line-height: 1.1; }
.stat-l { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dimmer); }

/* ── LISTA EVENATA ─────────────────────────────────────── */
.ev-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ev-item {
  --c: var(--gold);
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: 11px;
  background: var(--panel-2); border: 1px solid transparent;
  border-left: 2px solid var(--c);
  transition: border-color .2s, background .2s;
}
.ev-item:hover { background: #1E1E1E; border-color: var(--line); border-left-color: var(--c); color: inherit; }
.ev-date { text-align: center; min-width: 42px; }
.ev-date strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 24px; color: var(--gold); line-height: 1; }
.ev-date em { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dimmer); font-style: normal; }
.ev-body { flex: 1; min-width: 0; }
.ev-body strong { display: block; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-meta { font-size: 12px; color: var(--dim); }
.ev-right { display: flex; align-items: center; gap: 10px; }
.ev-list.tight .ev-item { padding: 10px 12px; }
.crew { display: flex; }
.crew .avatar { margin-left: -8px; box-shadow: 0 0 0 2px var(--panel-2); }
.crew .avatar:first-child { margin-left: 0; }
.crew.big { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.crew-tag { display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border: 1px solid var(--line-soft); border-radius: 999px; font-size: 13px; }

.pill {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--dim);
  white-space: nowrap;
}
.pill-potvrdjeno, .pill-kreiranje { border-color: rgba(111,168,140,.4); color: #8FC0A9; background: rgba(111,168,140,.1); }
.pill-zavrseno, .pill-upload      { border-color: rgba(124,143,168,.4); color: #9FB2C9; background: rgba(124,143,168,.1); }
.pill-otkazano, .pill-brisanje    { border-color: rgba(194,91,91,.4);  color: #DA9090; background: rgba(194,91,91,.1); }
.pill-upit, .pill-izmena          { border-color: rgba(197,160,89,.4); color: var(--gold-l); background: rgba(197,160,89,.1); }

.tag {
  --c: var(--gold);
  font-size: 11px; letter-spacing: .08em; padding: 4px 10px; border-radius: 6px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
  color: var(--c); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  white-space: nowrap;
}

/* ── TABELE ────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th {
  text-align: left; font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--dimmer); font-weight: 600; padding: 0 14px 10px 0; border-bottom: 1px solid var(--line-soft);
}
.tbl td { padding: 12px 14px 12px 0; border-bottom: 1px solid rgba(255,255,255,.04); vertical-align: middle; }
.tbl tbody tr[onclick] { cursor: pointer; }
.tbl tbody tr:hover { background: rgba(255,255,255,.02); }
.tbl tr.off { opacity: .45; }
.tbl td em.dim { display: block; font-size: 12px; }
.f-name-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.u-cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.u-cell .pill { align-self: flex-start; }
.row-actions { display: flex; gap: 6px; align-items: center; justify-content: flex-end; position: relative; }
.row-actions form { display: inline-flex; }
.pager { display: flex; gap: 6px; margin-top: 16px; flex-wrap: wrap; }
.pager a { padding: 7px 12px; border: 1px solid var(--line-soft); border-radius: 8px; font-size: 13px; color: var(--dim); }
.pager a.on, .pager a:hover { border-color: var(--gold); color: var(--gold); }

/* ── KALENDAR ──────────────────────────────────────────── */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 300; min-width: 210px; text-align: center; }
.cal-nav h2 span { color: var(--gold); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--dim); }
.cal-legend span { display: flex; align-items: center; gap: 7px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 2px; display: block; }

.cal-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden;
}
.cal-dow { background: #0A0A0A; padding: 10px 12px; font-size: 10px; letter-spacing: .16em; color: var(--dimmer); }
.cal-cell { background: var(--panel); min-height: 116px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.cal-cell.out { background: #101010; }
.cal-cell.out .cal-num { color: var(--dimmer); }
.cal-cell.today { background: rgba(197,160,89,.07); }
.cal-cell.today .cal-num { color: var(--gold); font-weight: 600; }
.cal-cell-head { display: flex; align-items: center; justify-content: space-between; }
.cal-num { font-size: 13px; color: var(--dim); }
.cal-add { opacity: 0; font-size: 16px; line-height: 1; color: var(--gold); padding: 0 4px; transition: opacity .2s; }
.cal-cell:hover .cal-add { opacity: 1; }
.cal-evs { display: flex; flex-direction: column; gap: 4px; }
.cal-ev {
  --c: var(--gold);
  font-size: 12px; padding: 4px 7px; border-radius: 5px;
  background: color-mix(in srgb, var(--c) 15%, transparent);
  border-left: 2px solid var(--c);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-ev b { font-weight: 600; color: var(--c); margin-right: 4px; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 28%, transparent); color: inherit; }
.cal-ev.cancelled { text-decoration: line-through; opacity: .5; }
.cal-more { font-size: 11px; color: var(--dimmer); padding-left: 4px; }

/* ── EVENT DETALJ ──────────────────────────────────────── */
.ev-head {
  --c: var(--gold);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--panel); border: 1px solid var(--line-soft); border-left: 3px solid var(--c);
  border-radius: var(--r); padding: 22px 24px;
}
.ev-head-tags { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.ev-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 34px; font-weight: 300; line-height: 1.15; }
.ev-when { color: var(--dim); font-size: 14px; margin-top: 6px; }
.ev-head-actions { display: flex; gap: 8px; }
.deflist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.deflist dt { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 3px; }
.deflist dd { font-size: 14px; }
.crew-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.notes { font-size: 14px; line-height: 1.75; color: rgba(255,255,255,.8); white-space: pre-wrap; }

/* ── FAJLOVI ───────────────────────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--dim); flex-wrap: wrap; }
.crumbs .ic { width: 15px; height: 15px; flex-basis: 15px; }
.crumbs strong { color: var(--txt); font-weight: 400; }
.files-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.files-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 300; }
.files-head form { display: inline; }

.drop {
  border: 1px dashed var(--line); border-radius: 12px;
  padding: 22px; text-align: center; margin-bottom: 18px;
  background: rgba(197,160,89,.03); transition: background .2s, border-color .2s;
}
.drop:hover { border-color: rgba(197,160,89,.45); background: rgba(197,160,89,.05); }
.drop.over { background: rgba(197,160,89,.12); border-color: var(--gold); }
.drop-inner { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.drop-inner .ic { width: 26px; height: 26px; flex-basis: 26px; color: var(--gold); margin-bottom: 4px; }
.drop-inner strong { display: block; font-weight: 400; font-size: 15px; }
.drop-inner span { font-size: 13px; color: var(--dim); }
.up-list { margin-top: 14px; display: flex; flex-direction: column; gap: 7px; text-align: left; }
.up-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.up-item .bar { flex: 1; height: 3px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
.up-item .bar i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.up-item.err { color: var(--danger); }

.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 20px; }
.folder-card {
  display: flex; align-items: center; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px;
  padding-right: 8px; transition: border-color .2s, background .2s;
}
.folder-card:hover { border-color: var(--line); background: #1E1E1E; }
.fc-main { display: flex; align-items: center; gap: 12px; padding: 14px 6px 14px 15px; flex: 1; min-width: 0; }
.folder-card .ic-folder { color: var(--gold); width: 21px; height: 21px; flex-basis: 21px; }
.fc-txt { display: flex; flex-direction: column; min-width: 0; }
.fc-txt strong { font-weight: 400; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-txt em { font-size: 11px; color: var(--dimmer); font-style: normal; }
.fc-actions { display: flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.folder-card:hover .fc-actions, .folder-card:focus-within .fc-actions { opacity: 1; }
@media (hover: none) { .fc-actions { opacity: 1; } }

.ft {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center; border-radius: 8px;
  font-size: 9px; font-weight: 600; letter-spacing: .04em; font-style: normal;
  background: rgba(255,255,255,.05); border: 1px solid var(--line-soft); color: var(--dim);
}
.ft-slika    { background: rgba(197,160,89,.14); color: var(--gold-l); border-color: rgba(197,160,89,.3); }
.ft-video    { background: rgba(124,143,168,.14); color: #9FB2C9; border-color: rgba(124,143,168,.3); }
.ft-zvuk     { background: rgba(127,168,160,.14); color: #8FC0B8; border-color: rgba(127,168,160,.3); }
.ft-arhiva   { background: rgba(168,140,124,.14); color: #C9A99F; border-color: rgba(168,140,124,.3); }
.ft-pdf      { background: rgba(194,91,91,.14);  color: #DA9090; border-color: rgba(194,91,91,.3); }
.thumb { width: 38px; height: 38px; flex: 0 0 38px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line-soft); }
.file-mini { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.file-mini li { display: grid; grid-template-columns: 38px 1fr; grid-template-rows: auto auto; gap: 2px 12px; align-items: center; }
.file-mini .ft { grid-row: 1 / 3; }
.fm-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fm-meta { font-size: 11px; color: var(--dimmer); }

/* ── MENI (⋯) ──────────────────────────────────────────── */
.dots {
  background: none; border: 0; color: var(--dimmer); cursor: pointer;
  padding: 4px 8px; border-radius: 6px; font-size: 16px; line-height: 1;
}
.dots:hover { background: rgba(255,255,255,.06); color: var(--txt); }
.menu {
  position: absolute; top: 100%; right: 0; z-index: 30;
  min-width: 160px; background: #1C1C1C; border: 1px solid var(--line);
  border-radius: 10px; padding: 6px; display: none;
  box-shadow: 0 14px 40px rgba(0,0,0,.5);
}
.menu.open { display: block; }
.menu-item {
  display: block; width: 100%; text-align: left; background: none; border: 0;
  padding: 9px 12px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--txt);
}
.menu-item:hover { background: rgba(255,255,255,.06); }
.menu-item.danger { color: var(--danger); }
.menu-item.danger:hover { background: rgba(194,91,91,.14); }

/* ── MODALI ────────────────────────────────────────────── */
.modal-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,.7); backdrop-filter: blur(3px);
  z-index: 90; display: none;
}
.modal-scrim.open { display: block; }
.modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.97);
  z-index: 100; width: min(460px, calc(100vw - 32px));
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px; display: none; opacity: 0; transition: opacity .18s, transform .18s;
  max-height: calc(100vh - 40px); overflow-y: auto;
}
.modal.open { display: block; opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal h3 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 18px; }
.modal label { display: block; margin-bottom: 14px; }
.modal-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; }

/* ── PRAZNA STANJA ─────────────────────────────────────── */
.empty { text-align: center; padding: 34px 20px; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty.small { padding: 20px; font-size: 14px; }
.empty.big { padding: 90px 20px; }
.empty-code { font-family: 'Cormorant Garamond', serif; font-size: 64px; color: var(--gold); line-height: 1; }
.act-mini { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 13px; }
.act-mini li { display: flex; align-items: center; gap: 10px; color: var(--dim); }
.act-mini strong { color: var(--txt); font-weight: 400; }
.act-mini .act-time { margin-left: auto; font-size: 11px; color: var(--dimmer); white-space: nowrap; }
.act-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--dimmer); flex: 0 0 6px; }
.act-dot.act-kreiranje { background: var(--ok); }
.act-dot.act-brisanje  { background: var(--danger); }
.act-dot.act-upload    { background: var(--gold); }

.prof-head { display: flex; align-items: center; gap: 20px; }
.prof-head h2 { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 300; }

/* ── PRIJAVA / SETUP ───────────────────────────────────── */
body.bare { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 30px 20px; overflow-x: hidden; }
.bare-glow { position: fixed; width: 70vmax; height: 70vmax; left: 50%; top: 45%; transform: translate(-50%,-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(197,160,89,.12) 0%, rgba(197,160,89,.03) 40%, transparent 70%); }
.bare-box { position: relative; width: min(400px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 38px 32px; }
.bare-logo { width: 190px; max-width: 100%; display: block; margin: 0 auto 28px; }
.bare-title { font-family: 'Cormorant Garamond', serif; font-size: 26px; font-weight: 300; text-align: center; }
.bare-sub { font-size: 13px; color: var(--dim); text-align: center; margin: 8px 0 22px; line-height: 1.6; }
.bare-form { display: flex; flex-direction: column; gap: 14px; }
.bare-form .btn { margin-top: 6px; }
.bare-note { font-size: 12px; color: var(--dimmer); text-align: center; margin-top: 18px; }
.bare-note code { font-family: ui-monospace, monospace; color: var(--gold); font-size: 11px; }
.bare-foot { position: relative; margin-top: 26px; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--dimmer); }

/* ── RESPONZIVNO ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .cols { grid-template-columns: 1fr; }
  .deflist { grid-template-columns: 1fr; }
}

/* Tabele na užem ekranu postaju kartice — ništa ne ispada iz okvira */
@media (max-width: 1000px) {
  .tbl-wrap { overflow: visible; margin: 0; padding: 0; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tbody tr {
    background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 12px;
    padding: 6px 14px; margin-bottom: 10px;
  }
  .tbl tbody tr:hover { background: var(--panel-2); }
  .tbl td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.05); text-align: right;
  }
  .tbl td:last-child { border-bottom: 0; }
  .tbl td::before {
    content: attr(data-l);
    font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--dimmer); flex: 0 0 auto; text-align: left;
  }
  .tbl td:not([data-l])::before { content: none; }
  .tbl td > * { min-width: 0; }
  .tbl td .trunc { text-align: right; }
  .tbl td.row-actions { justify-content: flex-end; }
  .tbl .f-name-cell { justify-content: flex-end; }
  .tbl .u-cell { align-items: flex-end; }
  .tbl .crew { justify-content: flex-end; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .3s cubic-bezier(.22,1,.36,1); }
  #navToggle:checked ~ .sidebar { transform: none; }
  #navToggle:checked ~ .nav-scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 50; }
  .main { margin-left: 0; }
  .burger { display: flex; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .topbar h1 { font-size: 17px; }
  .top-new { padding: 9px 13px; font-size: 10px; }
  .top-new span { display: none; }
  .top-new::after { content: '+ EVENT'; }
  .top-user { display: grid; }
  .top-out { display: grid; }
  .page { padding: 18px 18px 60px; gap: 18px; }
  .card { padding: 16px 16px 18px; }
  .tbl-wrap { margin: 0 -16px; padding: 0 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .hero-name { font-size: 30px; }
  .cal-nav h2 { font-size: 22px; min-width: 150px; }
  .cal-cell { min-height: 84px; padding: 5px; }
  .cal-ev { font-size: 10px; padding: 3px 5px; }
  .cal-dow { padding: 7px 6px; font-size: 9px; letter-spacing: .08em; }
  .ev-head h2 { font-size: 26px; }
  .ev-head-actions { width: 100%; }
  .files-head h2 { font-size: 24px; }
}

/* ── ZAVRŠNI SLOJ POLIRANJA ────────────────────────────── */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #0A0A0A; }
::-webkit-scrollbar-thumb { background: rgba(197,160,89,.3); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: rgba(197,160,89,.55); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(197,160,89,.3); }

.card, .stat, .ev-item, .folder-card, .btn, .ibtn { -webkit-tap-highlight-color: transparent; }
.tbl tbody tr { transition: background .18s; }
.empty p { max-width: 44ch; }

@media (max-width: 860px) {
  .filters { flex-direction: column; align-items: stretch; }
  .filters select, .filters input[type=search], .filters .btn { width: 100%; min-width: 0; }
  .ev-head-actions { display: flex; gap: 8px; }
  .ev-head-actions .btn, .ev-head-actions form { flex: 1; }
  .ev-head-actions form .btn { width: 100%; }
  .files-head, .head-actions { width: 100%; }
  .head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  .head-actions .btn { flex: 1; min-width: 130px; }
  .form-actions { flex-direction: column; }
  .form-actions .btn { width: 100%; }
  .prof-head { gap: 14px; }
  .avatar.xl { width: 54px; height: 54px; flex-basis: 54px; font-size: 16px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat { padding: 14px 16px; }
  .stat-n { font-size: 24px; }
  .modal { padding: 20px; }
}

/* ── POŠTA / SPOLJNI LINK ──────────────────────────────── */
.ic-mail { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 7 8.5 6 8.5-6'/%3E%3C/svg%3E"); }
.ic-ext  { -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 11 13'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4h6v6'/%3E%3Cpath d='M20 4 11 13'/%3E%3Cpath d='M18 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h5'/%3E%3C/svg%3E"); }
.side-nav a.ext .ic-ext { width: 11px; height: 11px; flex-basis: 11px; margin-left: auto; opacity: .45; }
.side-nav a.ext:hover .ic-ext { opacity: 1; }

.mail-set { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mail-set div {
  background: var(--panel-2); border: 1px solid var(--line-soft);
  border-radius: 10px; padding: 12px 14px;
}
.mail-set dt { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dimmer); margin-bottom: 4px; }
.mail-set dd { font-size: 14px; font-family: ui-monospace, monospace; color: var(--gold-l); word-break: break-all; }

/* ── OTPREMANJE: PANEL SA PROGRESOM I OTKAZIVANJEM ─────── */
.drop-max { display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dimmer); font-style: normal; margin-top: 6px; }

.up-panel { margin-top: 16px; text-align: left; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.up-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.up-head #upStatus { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.up-list { display: flex; flex-direction: column; gap: 8px; }
.up-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(90px, 200px) 74px 28px;
  align-items: center; gap: 12px;
  font-size: 13px; padding: 8px 10px;
  background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 9px;
}
.up-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-size { font-size: 11px; color: var(--dimmer); white-space: nowrap; }
.up-item .bar { height: 4px; background: rgba(255,255,255,.09); border-radius: 3px; overflow: hidden; }
.up-item .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-d), var(--gold-l)); transition: width .2s; }
.up-pct { font-size: 11px; color: var(--dim); text-align: right; white-space: nowrap; }
.up-item.ok { border-color: rgba(111,168,140,.35); }
.up-item.ok .up-pct { color: #8FC0A9; }
.up-item.err { border-color: rgba(194,91,91,.4); }
.up-item.err .up-pct { color: #DA9090; }
.up-item.cancelled { opacity: .5; }
.up-item.cancelled .up-name { text-decoration: line-through; }
.ibtn.xs { width: 26px; height: 26px; flex-basis: 26px; border-radius: 7px; font-size: 12px; line-height: 1; }

.file-filters { margin-bottom: 2px; }
.file-filters input[type=search] { min-width: 200px; }

@media (max-width: 860px) {
  .up-item { grid-template-columns: minmax(0, 1fr) 60px 28px; gap: 8px; }
  .up-item .bar { grid-column: 1 / 3; height: 3px; }
  .up-size { display: none; }
  .up-item .up-pct { grid-column: 2; }
}
