:root{
  --vn-bg:#090607;
  --vn-panel:#15090d;
  --vn-panel-2:#1d0b11;
  --vn-line:rgba(255,231,218,.13);
  --vn-cream:#fff0cf;
  --vn-text:#f8eee8;
  --vn-muted:#a9918b;
  --vn-red:#ff234b;
  --vn-red-dark:#8d001e;
  --vn-green:#4be0a1;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--vn-text);
  background:
    radial-gradient(circle at 68% -10%,rgba(183,0,53,.21),transparent 36%),
    linear-gradient(180deg,#0b0708 0%,#060405 100%);
  font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
button,input{font:inherit}
.shell{min-height:100vh;display:grid;grid-template-columns:286px minmax(0,1fr)}
.sidebar{
  position:sticky;top:0;height:100vh;overflow:hidden;
  display:flex;flex-direction:column;
  background:linear-gradient(180deg,rgba(29,8,13,.99),rgba(6,4,5,.99));
  border-right:1px solid var(--vn-line);
}
.brand{
  min-height:140px;padding:24px 22px 20px;
  display:flex;align-items:center;gap:16px;
  border-bottom:1px solid var(--vn-line);
}
.brand img{
  width:86px;height:86px;object-fit:contain;
  filter:drop-shadow(0 0 18px rgba(255,34,74,.34));
}
.brand-copy strong{
  display:block;color:var(--vn-cream);
  font-family:Georgia,"Times New Roman",serif;
  font-size:23px;font-weight:500;line-height:1.02;
}
.brand-copy span{
  display:block;margin-top:7px;color:#d9bab0;
  font-size:10px;letter-spacing:.24em;text-transform:uppercase;
}
.nav{padding:16px 14px 8px;display:grid;gap:6px;position:relative;z-index:2}
.nav a{
  display:flex;align-items:center;gap:12px;padding:13px 14px;
  color:#d7c4be;text-decoration:none;border-radius:8px;
  border:1px solid transparent;transition:.18s ease;
}
.nav a:hover,.nav a.active{
  color:#fff;
  background:linear-gradient(90deg,rgba(183,0,42,.68),rgba(83,0,25,.28));
  border-color:rgba(255,52,86,.47);
  box-shadow:inset 3px 0 0 var(--vn-red),0 0 24px rgba(255,30,66,.08);
}
.nav .icon{width:22px;color:#ff7a90;text-align:center}
.sidebar-foot{
  margin-top:auto;padding:18px 20px 22px;
  border-top:1px solid var(--vn-line);
  color:#765f5b;font-size:11px;line-height:1.45;
}
.content{min-width:0}
.topbar{
  min-height:132px;padding:28px 38px 24px;
  display:flex;align-items:center;justify-content:space-between;
  border-bottom:1px solid var(--vn-line);
  background:
    radial-gradient(circle at 82% 30%,rgba(197,0,54,.15),transparent 26%),
    linear-gradient(135deg,rgba(78,0,25,.35),rgba(10,6,7,.08));
}
.topbar .eyebrow{
  color:#ff7086;font-size:11px;letter-spacing:.34em;
  text-transform:uppercase;margin-bottom:7px;
}
.topbar h1{
  margin:0;color:var(--vn-cream);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(38px,4vw,58px);font-weight:500;letter-spacing:.01em;
}
.header-rule{width:142px;height:2px;margin-top:14px;background:linear-gradient(90deg,var(--vn-red),transparent)}
.main{width:min(1420px,calc(100% - 52px));margin:18px auto 54px}
.selection-bar{
  display:flex;align-items:start;justify-content:space-between;gap:20px;
  padding:0 2px 12px;border-bottom:1px solid var(--vn-line);
}
.selection-title .small{
  color:#ff7086;font-size:10px;letter-spacing:.24em;text-transform:uppercase;
  margin-bottom:6px;
}
.selection-title h2{
  margin:0;color:var(--vn-cream);
  font-family:Georgia,"Times New Roman",serif;
  font-size:clamp(28px,2.6vw,40px);font-weight:500;
}
.date-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.date-side{
  display:grid;
  gap:9px;
  justify-items:end;
}
.guestlist-card{
  width:100%;
  min-width:330px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 13px;
  color:var(--vn-cream);
  text-decoration:none;
  border:1px solid rgba(255,82,111,.42);
  border-radius:10px;
  background:linear-gradient(135deg,rgba(96,8,30,.66),rgba(36,10,17,.92));
  box-shadow:0 10px 24px rgba(0,0,0,.16),inset 3px 0 0 var(--vn-red);
  transition:.16s ease;
}
.guestlist-card:hover{
  border-color:rgba(255,104,129,.72);
  filter:brightness(1.08);
  box-shadow:0 12px 28px rgba(0,0,0,.22),0 0 18px rgba(255,28,67,.12),inset 3px 0 0 var(--vn-red);
}
.guestlist-card-icon{
  flex:0 0 auto;
  width:31px;
  height:31px;
  display:grid;
  place-items:center;
  border-radius:8px;
  color:#ff8aa0;
  background:rgba(255,52,86,.11);
  border:1px solid rgba(255,86,113,.24);
  font-size:16px;
}
.guestlist-card-copy{
  display:grid;
  gap:2px;
}
.guestlist-card-copy strong{
  color:#fff4e3;
  font-size:13px;
  letter-spacing:.02em;
}
.guestlist-card-copy small{
  color:#bda6a0;
  font-size:11px;
}
.date-field{
  display:flex;align-items:center;gap:10px;
  background:#10080a;border:1px solid #56313a;border-radius:9px;
  padding:0 10px 0 12px;min-height:46px;
}
.date-field span{color:#ff7890}
input[type="date"]{
  min-height:44px;color:var(--vn-cream);background:transparent;border:0;outline:none;
  padding:0;min-width:168px;
}
button{
  min-height:44px;color:#fff7ef;border:1px solid rgba(255,65,94,.72);
  border-radius:9px;padding:10px 16px;cursor:pointer;
  background:linear-gradient(180deg,#be0b35,#6e001d);
  box-shadow:0 0 18px rgba(255,28,67,.12);
  transition:.16s ease;
}
button:hover{filter:brightness(1.12);box-shadow:0 0 22px rgba(255,28,67,.27)}
button:disabled{opacity:.45;cursor:default;box-shadow:none}
.ghost-button{background:#160b0e;border-color:#56313a;color:#e6d2cc;box-shadow:none}
.auto-note{
  display:inline-flex;align-items:center;gap:8px;margin:10px 0 14px;padding:7px 11px;
  border:1px solid rgba(75,224,161,.28);color:#8ff0c7;
  background:rgba(18,70,49,.12);border-radius:999px;font-size:12px;
}
.auto-note::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--vn-green);box-shadow:0 0 12px var(--vn-green)}
.event-panel-wide{margin-bottom:18px}
.summary-grid{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(260px,.82fr) minmax(300px,.95fr);
  gap:18px;
  align-items:stretch;
  margin-bottom:18px;
}
.summary-grid>.panel{height:100%}
.history-wide{margin-top:0}
.stack{display:grid;gap:18px;align-content:start}
.panel{
  background:linear-gradient(180deg,rgba(27,12,17,.97),rgba(13,7,9,.98));
  border:1px solid var(--vn-line);border-radius:14px;padding:18px;
  box-shadow:0 16px 48px rgba(0,0,0,.20);
}
.panel-title{
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  margin:0 0 14px;color:var(--vn-cream);
  font-family:Georgia,"Times New Roman",serif;font-size:22px;
}
.panel-title small{font-family:Inter,sans-serif;font-size:11px;color:var(--vn-muted);font-weight:400}
.events{display:grid;gap:10px}
.events-row{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.events-row .event{
  grid-template-columns:1fr;
  align-content:space-between;
  min-height:168px;
}
.events-row .event-actions{
  width:100%;
  justify-content:stretch;
}
.events-row .run-button{
  flex:1 1 0;
  min-width:0;
}
.events-loading{
  grid-column:1/-1;
  min-height:112px;
  display:flex;align-items:center;justify-content:center;gap:12px;
  color:#cdb9b3;font-size:13px;
  border:1px dashed rgba(255,225,211,.13);border-radius:11px;
  background:rgba(255,255,255,.015);
}
.loading-spinner{
  width:18px;height:18px;border-radius:50%;
  border:2px solid rgba(255,255,255,.14);
  border-top-color:var(--vn-red);
  animation:vnspin .8s linear infinite;
}
@keyframes vnspin{to{transform:rotate(360deg)}}
.event{
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:18px;
  padding:17px 18px;border-radius:11px;
  border:1px solid rgba(255,225,211,.12);
  border-left:3px solid rgba(255,35,75,.86);
  background:linear-gradient(90deg,rgba(35,13,19,.94),rgba(16,8,10,.80));
}
.event-title{
  color:#fff7ed;font-family:Georgia,"Times New Roman",serif;
  font-size:22px;line-height:1.15;margin-bottom:8px;
}
.event-meta{color:#9e8781;font-size:11px;letter-spacing:.05em}
.event-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.run-button{min-width:154px}
.run-button.secondary{background:#160b0e;border-color:#65404a;color:#f0dcd6;box-shadow:none}
.status{
  background:transparent;border:0;padding:0;min-height:0;
  color:var(--vn-text);font-family:Inter,sans-serif;font-size:13px;line-height:1.45;
}
.status-visual{display:grid;gap:14px}
.status-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.status-badge{display:flex;align-items:center;gap:9px;font-weight:700;color:#f7ede8}
.status-dot{width:10px;height:10px;border-radius:50%;background:#8f7f7c;box-shadow:0 0 12px currentColor}
.status-dot.running{background:var(--vn-red)}
.status-dot.ready,.status-dot.finished{background:var(--vn-green)}
.status-dot.failed{background:#ff7f95}
.status-percent{color:var(--vn-cream);font-family:Georgia,"Times New Roman",serif;font-size:18px}
.progress-track{height:9px;border-radius:999px;background:#33151c;border:1px solid rgba(255,255,255,.07);overflow:hidden}
.progress-fill{
  height:100%;border-radius:999px;
  background:linear-gradient(90deg,#ff234b,#ff486b);
  box-shadow:0 0 18px rgba(255,35,75,.35);transition:width .22s ease;
}
.status-current{
  padding:12px;border:1px solid rgba(255,255,255,.07);border-radius:9px;
  background:rgba(255,255,255,.025);
}
.status-current strong{display:block;color:var(--vn-cream);margin-bottom:4px}
.status-current span{color:var(--vn-muted);font-size:12px}
.status-steps{display:grid;gap:8px;padding-top:2px}
.status-step{display:grid;grid-template-columns:16px minmax(0,1fr) auto;gap:8px;align-items:center;color:#846f6c;font-size:11px}
.status-step .node{width:8px;height:8px;border-radius:50%;border:1px solid #70565b;background:#12090b}
.status-step.done{color:#d5c4be}.status-step.done .node{background:var(--vn-green);border-color:var(--vn-green);box-shadow:0 0 10px rgba(75,224,161,.35)}
.status-step.current{color:#fff}.status-step.current .node{background:var(--vn-red);border-color:var(--vn-red);box-shadow:0 0 10px rgba(255,35,75,.35)}
.status-step em{font-style:normal;color:#8e7773}
#manualPanel{border-color:rgba(255,35,75,.48);box-shadow:0 0 34px rgba(255,35,75,.05)}
#manualWarning{
  white-space:pre-wrap;color:#ffadb9;background:rgba(130,0,29,.12);
  border:1px solid rgba(255,41,75,.30);border-radius:9px;padding:12px;
  font-size:12px;line-height:1.5;margin:0;
}
#sheetLink{
  display:inline-block;margin-top:12px;color:var(--vn-cream);text-decoration:none;
  border-bottom:1px solid rgba(255,240,207,.55);padding-bottom:2px;
}
.source-grid{display:grid;gap:8px}
.source-row{display:flex;justify-content:space-between;gap:20px;color:#d8c9c4;font-size:13px}
.source-row strong{color:#fff1e8}
.source-row.total{margin-top:5px;padding-top:10px;border-top:1px solid var(--vn-line);color:var(--vn-cream);font-weight:700}
.history-list{display:grid;gap:0}
.history-item{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 18px;align-items:center;
  border-bottom:1px solid rgba(255,255,255,.07);padding:11px 4px;
}
.history-item:last-child{border-bottom:0}
.history-title{color:#f7ede8;font-size:14px;font-weight:600;margin:0}
.history-meta{color:#96817d;font-size:12px;line-height:1.4}
.history-link{color:var(--vn-cream);font-size:12px;text-decoration:none;border:1px solid #56313a;border-radius:7px;padding:7px 10px}
.history-warning{color:#ff8e9f}.history-ok{color:#63e5aa}
.hidden{display:none!important}.error,.warning{color:#ff8e9f}.ok{color:#8df0c5}
@media(max-width:1050px){
  .shell{display:block}
  .sidebar{position:sticky;top:0;z-index:50;height:auto;display:block;border-right:0;border-bottom:1px solid var(--vn-line)}
  .brand{min-height:0;padding:10px 14px}.brand img{width:48px;height:48px}.brand-copy strong{font-size:16px}.brand-copy span{font-size:8px}
  .nav{display:flex;overflow-x:auto;padding:7px 10px 9px;gap:6px;scrollbar-width:none}.nav::-webkit-scrollbar{display:none}
  .nav a{flex:0 0 auto;padding:9px 11px;font-size:11px}.sidebar-foot{display:none}
  .topbar{min-height:auto;padding:18px 18px 16px}.topbar h1{font-size:36px}.header-rule{width:90px;margin-top:10px}
  .main{width:min(100% - 28px,1420px);margin:16px auto 40px}
  .events-row{grid-template-columns:1fr}
  .summary-grid{grid-template-columns:1fr}
}
@media(max-width:680px){
  .topbar h1{font-size:29px}
  .selection-bar{display:block}.selection-title h2{font-size:34px}.date-side{width:100%;margin-top:12px;justify-items:stretch}.date-controls{margin-top:0;justify-content:flex-start}
  .guestlist-card{min-width:0;width:100%}
  .date-field{width:100%}.date-field input{width:100%}
  .panel{padding:14px}.event{grid-template-columns:1fr;gap:12px;padding:14px}
  .event-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.run-button{min-width:0;width:100%}
  .history-item{grid-template-columns:1fr}
}
