:root{
  --bg:#f7f3ee;
  --panel:#ffffff;
  --surface:#fbf8f4;
  --text:#24170f;
  --muted:#745f50;
  --line:rgba(84,55,35,.16);
  --line-strong:rgba(84,55,35,.24);
  --primary:#7a4e2d;
  --primary-hover:#5f3a21;
  --primary-soft:rgba(122,78,45,.12);
  --danger:#e11d48;
  --success:#059669;
  --shadow:0 10px 28px rgba(84,55,35,.10);
}

*{box-sizing:border-box}
html,body{margin:0}
body{
  min-height:100vh;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background:var(--bg);
  color:var(--text);
}

.topbar{
  position:sticky;
  top:0;
  z-index:50;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 16px;
  border-bottom:1px solid var(--line);
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(10px);
}

.brand{display:flex; gap:11px; align-items:center; min-width:190px}
.monogram{
  width:auto;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:transparent;
  color:var(--primary);
  box-shadow:none;
  font-family:Georgia, "Times New Roman", serif;
  font-size:21px;
  font-weight:800;
  letter-spacing:0;
}
.monogram span{opacity:.72; margin:0 5px}
.brand-title{font-weight:750; letter-spacing:0}
.brand-subtitle{font-size:12px; color:var(--muted); margin-top:1px}

.actions{display:flex; align-items:center; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.sep{width:1px; height:28px; background:var(--line); margin:0 3px}

.btn{
  appearance:none;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  border-radius:8px;
  padding:9px 11px;
  font-weight:650;
  font-size:13px;
  line-height:1.15;
  cursor:pointer;
  transition:background .16s ease, border-color .16s ease, opacity .16s ease, transform .06s ease;
}
a.btn{text-decoration:none; display:inline-flex; align-items:center}
.btn:hover{background:var(--surface); border-color:var(--line-strong)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.42; cursor:not-allowed}
.btn.primary{background:var(--primary); border-color:var(--primary); color:#ffffff}
.btn.primary:hover{background:var(--primary-hover)}
.btn.danger{background:#fff1f2; border-color:rgba(225,29,72,.28); color:#be123c}
.btn.danger:hover{background:#ffe4e6; border-color:rgba(225,29,72,.42)}
.btn.ghost{background:transparent}
.btn.full{width:100%}
.btn.compact{padding:8px 10px; white-space:nowrap}

.nav-toggle{
  display:none;
  appearance:none;
  border:1px solid var(--line);
  border-radius:9px;
  width:42px;
  height:38px;
  background:#ffffff;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex-direction:column;
  gap:5px;
}
.nav-toggle span{
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--primary);
}

.layout{
  display:grid;
  grid-template-columns:minmax(680px, 1fr) 410px;
  gap:14px;
  padding:14px;
  height:calc(100vh - 62px);
}

.canvas-panel,
.side-panel{
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  overflow:hidden;
  box-shadow:var(--shadow);
  min-height:520px;
}

.canvas-panel{display:flex; flex-direction:column}
.canvas-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:#ffffff;
}
.canvas-stats{display:flex; align-items:center; gap:8px; flex-wrap:wrap}
.canvas-stats>div{
  display:flex;
  align-items:baseline;
  gap:7px;
  padding:7px 9px;
  border:1px solid var(--line);
  border-radius:8px;
  background:var(--surface);
}
.stat-label{font-size:12px; color:var(--muted); font-weight:650}
.canvas-stats strong{font-size:14px}
.toolbar-right{display:flex; align-items:center; gap:14px; min-width:0}
.toggle{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13px; white-space:nowrap}
.toggle input{width:16px; height:16px; margin:0}
.hint{font-size:13px; color:var(--muted); min-width:72px; text-align:right}

.canvas-wrap{
  position:relative;
  flex:1;
  min-height:760px;
  overflow:hidden;
  background:
    linear-gradient(rgba(122,78,45,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122,78,45,.08) 1px, transparent 1px),
    var(--surface);
  background-size:40px 40px;
}

.bg-image{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  opacity:.30;
  pointer-events:none;
  display:none;
  filter:grayscale(1) contrast(1.05);
}
.scene{position:absolute; inset:0; width:100%; height:100%}
.table-node{cursor:grab}
.table-node:active{cursor:grabbing}

.side-panel{display:flex; flex-direction:column}
.panel-head{
  padding:12px;
  border-bottom:1px solid var(--line);
  background:#ffffff;
}
.panel-title-row{display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px}
.panel-title{font-weight:750}
.panel-subtitle{font-size:12px; color:var(--muted); margin-top:2px}

.search,
.select,
.add-guest input{
  width:100%;
  border-radius:8px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  padding:9px 10px;
  outline:none;
  font:inherit;
  font-size:13px;
}
.search:focus,
.select:focus,
.add-guest input:focus{border-color:rgba(122,78,45,.55); box-shadow:0 0 0 3px rgba(122,78,45,.12)}

.bulk-bar{
  display:grid;
  grid-template-columns:minmax(120px, 1fr) auto auto auto;
  gap:8px;
  align-items:center;
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}

.table-editor{
  padding:12px;
  border-bottom:1px solid var(--line);
  background:#ffffff;
}
.table-editor.is-disabled{
  background:#fbfcfd;
}
.editor-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.editor-title{
  font-size:14px;
  font-weight:750;
}
.editor-subtitle{
  color:var(--muted);
  font-size:12px;
  margin-top:2px;
}
.editor-grid{
  display:grid;
  grid-template-columns:1fr 96px;
  gap:8px;
}
.editor-grid label{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.editor-grid span{
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}
.editor-grid input{
  width:100%;
  border-radius:8px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  padding:9px 10px;
  outline:none;
  font:inherit;
  font-size:13px;
}
.editor-grid input:focus{
  border-color:rgba(122,78,45,.55);
  box-shadow:0 0 0 3px rgba(122,78,45,.12);
}
.editor-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}

.add-guest{
  padding:12px;
  border-bottom:1px solid var(--line);
  background:#ffffff;
}
.add-guest .row{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-bottom:8px}

.lists{padding:12px; overflow:auto}
.list-title{
  margin:8px 0;
  font-weight:750;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.pill{
  font-size:12px;
  padding:3px 7px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background:#ffffff;
  font-weight:650;
}

.guest-list{display:flex; flex-direction:column; gap:10px; padding-bottom:12px}
.guest-group{
  border:1px solid var(--line);
  border-radius:10px;
  background:#ffffff;
  overflow:hidden;
}
.guest-group-head{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.guest-group-head input,
.guest-check{width:16px; height:16px; margin:0}
.guest-group-title{font-size:13px; font-weight:750; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}

.guest-item{
  display:grid;
  grid-template-columns:auto minmax(0,1fr) auto;
  align-items:start;
  gap:9px;
  padding:10px;
  border-bottom:1px solid rgba(16,24,40,.08);
  background:#ffffff;
  cursor:grab;
}
.guest-item:last-child{border-bottom:0}
.guest-item:hover{background:var(--surface)}
.guest-item.selected{background:rgba(122,78,45,.10)}
.guest-item:active{cursor:grabbing}
.guest-content{min-width:0}
.guest-name{font-weight:750; font-size:13px; line-height:1.25; overflow:hidden; text-overflow:ellipsis}
.guest-meta{font-size:12px; color:var(--muted); line-height:1.3; margin-top:4px; overflow:hidden; text-overflow:ellipsis}
.guest-actions{display:flex; align-items:flex-start; gap:6px}
.tag{
  font-size:12px;
  padding:5px 8px;
  border-radius:999px;
  border:1px solid var(--line);
  color:var(--muted);
  background:#ffffff;
  white-space:nowrap;
}
.tag.success{color:#047857; background:#ecfdf5; border-color:rgba(5,150,105,.22)}

.empty-state{
  padding:12px;
  color:var(--muted);
  font-size:13px;
  border:1px dashed var(--line);
  border-radius:10px;
  background:#ffffff;
}

.icon-btn{
  appearance:none;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--muted);
  border-radius:8px;
  width:30px;
  height:30px;
  cursor:pointer;
  font-weight:900;
  line-height:1;
  display:flex;
  align-items:center;
  justify-content:center;
}
.icon-btn:hover{background:#fff1f2; border-color:rgba(225,29,72,.30); color:var(--danger)}

.drag-ghost{
  position:fixed;
  z-index:9999;
  pointer-events:none;
  background:rgba(255,255,255,.98);
  border:1px solid rgba(16,24,40,.16);
  color:var(--text);
  border-radius:9px;
  padding:9px 11px;
  box-shadow:0 18px 55px rgba(16,24,40,.18);
  max-width:320px;
  font-size:13px;
  font-weight:750;
}

.dashboard-shell,
.guest-module{
  padding:18px;
}
.dashboard-hero{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  box-shadow:var(--shadow);
}
.dashboard-hero h1{
  margin:0;
  font-size:30px;
  line-height:1.1;
}
.dashboard-hero p{
  margin:8px 0 0;
  color:var(--muted);
}
.dashboard-stats,
.guest-summary{
  display:grid;
  grid-template-columns:repeat(5, minmax(140px, 1fr));
  gap:12px;
  margin-top:14px;
}
.dashboard-stats{
  grid-template-columns:repeat(6, minmax(150px, 1fr));
}
.stat-card{
  padding:16px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  box-shadow:var(--shadow);
}
.stat-card span{
  display:block;
  color:var(--muted);
  font-size:13px;
  font-weight:650;
}
.stat-card strong{
  display:block;
  margin-top:8px;
  font-size:30px;
  line-height:1;
}
.module-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}
.module-card{
  min-height:190px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:18px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  color:var(--text);
  text-decoration:none;
  box-shadow:var(--shadow);
}
.module-card:hover{
  border-color:rgba(122,78,45,.45);
}
.module-kicker{
  display:inline-flex;
  color:var(--primary);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
}
.module-card h2{
  margin:8px 0 8px;
  font-size:24px;
}
.module-card p{
  margin:0;
  color:var(--muted);
  max-width:520px;
}
.module-action{
  color:var(--primary);
  font-weight:800;
}

.guest-workspace{
  display:grid;
  grid-template-columns:390px minmax(0, 1fr);
  gap:14px;
  margin-top:14px;
}
.guest-form-panel,
.guest-table-panel{
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  box-shadow:var(--shadow);
}
.guest-form-panel{
  padding:14px;
  height:max-content;
  position:sticky;
  top:92px;
}
.rsvp-form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}
.rsvp-form label,
.attendee-field{
  display:flex;
  flex-direction:column;
  gap:5px;
}
.rsvp-form span,
.attendee-field span{
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}
.rsvp-form input,
.attendee-field input{
  width:100%;
  border-radius:8px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  padding:10px 11px;
  outline:none;
  font:inherit;
  font-size:14px;
}
.rsvp-form input:focus,
.attendee-field input:focus{
  border-color:rgba(122,78,45,.55);
  box-shadow:0 0 0 3px rgba(122,78,45,.12);
}
.segmented{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:6px;
  padding:4px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
}
.segmented button{
  border:0;
  border-radius:8px;
  padding:9px 8px;
  background:transparent;
  color:var(--muted);
  font-weight:750;
  cursor:pointer;
}
.segmented button.active{
  background:#ffffff;
  color:var(--primary);
  box-shadow:0 1px 4px rgba(16,24,40,.10);
}
.attendee-section{
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
}
.attendee-fields{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:8px;
}
.guest-table-panel{
  min-width:0;
  overflow:hidden;
}
.guest-table-toolbar{
  display:grid;
  grid-template-columns:minmax(180px, 1fr) 190px;
  gap:10px;
  padding:14px;
  border-bottom:1px solid var(--line);
}
.rsvp-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
}
.rsvp-card{
  border:1px solid var(--line);
  border-radius:10px;
  padding:13px;
  background:#ffffff;
  cursor:pointer;
}
.rsvp-card:hover,
.rsvp-card.selected{
  border-color:rgba(122,78,45,.42);
  background:#fffaf5;
}
.rsvp-card-main{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.rsvp-card h3{
  margin:0;
  font-size:16px;
}
.rsvp-card p{
  margin:5px 0 0;
  color:var(--muted);
  font-size:13px;
}
.rsvp-card-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
}
.status-pill{
  border-radius:999px;
  padding:5px 8px;
  font-size:12px;
  font-weight:800;
  white-space:nowrap;
}
.status-pill.pending{background:rgba(122,78,45,.12); color:var(--primary)}
.status-pill.accepted{background:#ecfdf5; color:#047857}
.status-pill.rejected{background:#fff1f2; color:#be123c}
.expense-two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.check-row{
  flex-direction:row !important;
  align-items:center;
  gap:9px !important;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
}
.check-row input{
  width:17px;
  height:17px;
  padding:0;
  margin:0;
  box-shadow:none !important;
}
.expense-card-totals{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(16,24,40,.08);
  color:var(--muted);
  font-size:13px;
}
.expense-card-totals strong{
  color:var(--text);
  font-size:16px;
}
.expense-card-balance{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:8px;
  color:var(--muted);
  font-size:13px;
}
.expense-group{
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  overflow:hidden;
}
.expense-group .rsvp-card{
  border:0;
  border-top:1px solid rgba(16,24,40,.08);
  border-radius:0;
  box-shadow:none;
}
.expense-group .rsvp-card:first-of-type{
  border-top:1px solid var(--line);
}
.expense-group-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:12px 13px;
  background:var(--surface);
}
.expense-group-head h3{
  margin:0;
  font-size:15px;
}
.expense-group-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:12px;
}
.expense-group-totals{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  justify-content:flex-end;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}
.expense-balance{
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  color:var(--text);
  font-size:13px;
  font-weight:750;
}
.menu-items-list{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
}
.menu-item-card{
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  padding:12px;
}
.menu-item-card label{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:9px;
}
.menu-item-card span{
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}
.menu-item-card input,
.menu-item-card textarea{
  width:100%;
  border-radius:8px;
  border:1px solid var(--line);
  background:#ffffff;
  color:var(--text);
  padding:10px 11px;
  outline:none;
  font:inherit;
  font-size:14px;
}
.menu-item-card textarea{
  min-height:96px;
  resize:vertical;
}
.menu-item-card input:focus,
.menu-item-card textarea:focus{
  border-color:rgba(122,78,45,.55);
  box-shadow:0 0 0 3px rgba(122,78,45,.12);
}
.schedule-items-editor{
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:14px;
}
.schedule-item-editor{
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  padding:12px;
}
.schedule-item-editor label{
  display:flex;
  flex-direction:column;
  gap:5px;
  margin-top:9px;
}
.schedule-item-editor span{
  color:var(--muted);
  font-size:12px;
  font-weight:650;
}
.schedule-day-items{
  display:flex;
  flex-direction:column;
  gap:7px;
  margin-top:10px;
}
.schedule-day-items div{
  display:grid;
  grid-template-columns:92px minmax(0, 1fr);
  gap:8px;
  padding:8px;
  border-radius:8px;
  background:var(--surface);
}
.schedule-day-items strong{
  color:var(--primary);
  font-size:12px;
}
.schedule-day-items span{
  font-weight:750;
}
.schedule-day-items em{
  grid-column:2;
  color:var(--muted);
  font-size:12px;
  font-style:normal;
}

.stats-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}
.charts-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  margin-top:14px;
}
.stats-panel{
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  box-shadow:var(--shadow);
  padding:16px;
}
.stats-panel h2{
  margin:0 0 14px;
  font-size:18px;
}
.progress-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  color:var(--muted);
  font-weight:750;
  font-size:13px;
}
.progress-track{
  height:10px;
  border-radius:999px;
  background:var(--surface);
  overflow:hidden;
  margin:9px 0 14px;
}
.progress-track div{
  width:0;
  height:100%;
  background:var(--primary);
}
.stats-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.stats-list>div{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
}
.stats-list span,
.stats-list em{
  color:var(--muted);
  font-size:12px;
  font-style:normal;
}
.stats-list strong{
  white-space:nowrap;
}
.donut-wrap{
  display:grid;
  grid-template-columns:170px minmax(0, 1fr);
  gap:16px;
  align-items:center;
}
.donut-chart{
  width:170px;
  aspect-ratio:1;
  border-radius:50%;
  display:grid;
  place-items:center;
  position:relative;
  background:var(--surface);
}
.donut-chart::after{
  content:"";
  position:absolute;
  inset:24px;
  border-radius:50%;
  background:#ffffff;
  box-shadow:inset 0 0 0 1px var(--line);
}
.donut-chart span{
  position:relative;
  z-index:1;
  font-weight:850;
  color:var(--text);
  text-align:center;
  max-width:100px;
}
.chart-legend{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.chart-legend div{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:8px;
  align-items:center;
  color:var(--muted);
  font-size:13px;
}
.chart-legend i{
  width:10px;
  height:10px;
  border-radius:999px;
}
.chart-legend strong{
  color:var(--text);
}
.bar-chart{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:12px;
}
.bar-row-head{
  display:flex;
  justify-content:space-between;
  gap:10px;
  color:var(--muted);
  font-size:12px;
  font-weight:750;
  margin-bottom:5px;
}
.bar-row-head strong{
  color:var(--text);
}
.bar-track{
  height:10px;
  border-radius:999px;
  background:var(--surface);
  overflow:hidden;
}
.bar-track div{
  height:100%;
  border-radius:999px;
  background:var(--primary);
}

.calendar-toolbar{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
  padding:14px;
  border-bottom:1px solid var(--line);
}
.calendar-toolbar h2{
  text-align:center;
  margin:0;
  font-size:18px;
}
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7, minmax(0, 1fr));
  gap:1px;
  background:var(--line);
  border-bottom:1px solid var(--line);
}
.calendar-head-cell,
.calendar-cell{
  background:#ffffff;
  min-height:92px;
  padding:8px;
  border:0;
  text-align:left;
  color:var(--text);
}
.calendar-head-cell{
  min-height:auto;
  text-align:center;
  color:var(--muted);
  font-size:12px;
  font-weight:800;
}
.calendar-cell{
  cursor:pointer;
}
.calendar-cell.blank{
  background:var(--surface);
  cursor:default;
}
.calendar-cell span{
  display:block;
  font-weight:800;
  margin-bottom:5px;
}
.calendar-cell .calendar-chip{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  margin-top:3px;
  padding:3px 5px;
  border-radius:6px;
  background:rgba(122,78,45,.14);
  color:var(--primary);
  font-size:11px;
  font-style:normal;
  font-weight:750;
  touch-action:none;
  user-select:none;
}
.calendar-cell .calendar-chip.done{
  background:#ecfdf5;
  color:#047857;
}
.calendar-cell .calendar-chip.meeting.pending{
  background:rgba(122,78,45,.18);
}
.calendar-cell .calendar-chip.schedule{
  background:#fef3c7;
  color:#92400e;
}
.calendar-cell .calendar-chip.more{
  background:var(--surface);
  color:var(--muted);
}
.calendar-cell.drop-target{
  outline:2px solid var(--primary);
  outline-offset:-3px;
  background:#fffaf5;
}
.task-drag-ghost{
  position:fixed;
  z-index:10000;
  pointer-events:none;
  max-width:240px;
  padding:8px 10px;
  border-radius:8px;
  background:var(--primary);
  color:#fff;
  box-shadow:0 14px 35px rgba(84,55,35,.22);
  font-size:12px;
  font-weight:800;
}
.modal-backdrop{
  position:fixed;
  inset:0;
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(36,23,15,.35);
}
.modal-backdrop[hidden]{
  display:none;
}
.modal-panel{
  width:min(460px, 100%);
  border:1px solid var(--line);
  border-radius:12px;
  background:#ffffff;
  box-shadow:0 24px 70px rgba(36,23,15,.25);
  padding:14px;
}

.login-body{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:18px;
  background:var(--bg);
}
.login-shell{
  width:min(430px, 100%);
}
.login-card{
  border:1px solid var(--line);
  border-radius:14px;
  background:#ffffff;
  box-shadow:var(--shadow);
  padding:22px;
}
.login-brand{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
}
.login-brand h1{
  margin:0;
  font-size:24px;
}
.login-brand p{
  margin:3px 0 0;
  color:var(--muted);
}
.login-error{
  margin-bottom:12px;
  border:1px solid rgba(225,29,72,.22);
  border-radius:10px;
  background:#fff1f2;
  color:#be123c;
  padding:10px;
  font-size:13px;
  font-weight:750;
}

@media (max-width:1100px){
  .layout{grid-template-columns:1fr; height:auto}
  .canvas-wrap{height:min(92vh,960px)}
  .side-panel{min-height:480px}
  .guest-workspace{grid-template-columns:1fr}
  .guest-form-panel{position:static}
  .guest-summary{grid-template-columns:repeat(3, minmax(140px, 1fr))}
}

@media (max-width:760px){
  .topbar{
    align-items:center;
    display:grid;
    grid-template-columns:1fr auto;
  }
  .nav-toggle{display:flex}
  .actions{
    display:none;
    grid-column:1 / -1;
    width:100%;
    overflow:visible;
    justify-content:flex-start;
    align-items:stretch;
    flex-direction:column;
    flex-wrap:nowrap;
    padding:8px 0 2px;
  }
  .topbar.nav-open .actions{display:flex}
  .actions .btn{
    width:100%;
    justify-content:center;
  }
  .actions .sep{display:none}
  .canvas-toolbar{align-items:flex-start; flex-direction:column}
  .toolbar-right{width:100%; justify-content:space-between}
  .bulk-bar{grid-template-columns:1fr 1fr; align-items:stretch}
  .bulk-bar .select{grid-column:1 / -1}
  .editor-grid{grid-template-columns:1fr}
  .dashboard-shell,
  .guest-module{padding:10px}
  .dashboard-hero{align-items:flex-start; flex-direction:column; padding:16px}
  .dashboard-hero h1{font-size:24px}
  .dashboard-stats,
  .guest-summary,
  .module-grid{grid-template-columns:1fr}
  .guest-table-toolbar{grid-template-columns:1fr}
  .segmented{grid-template-columns:1fr}
  .rsvp-card-main{flex-direction:column}
  .expense-group-head{flex-direction:column}
  .expense-group-totals{justify-content:flex-start}
  .expense-two-cols{grid-template-columns:1fr}
  .expense-card-totals{align-items:flex-start; flex-direction:column}
  .stats-grid,
  .charts-grid{grid-template-columns:1fr}
  .donut-wrap{grid-template-columns:1fr}
  .donut-chart{width:min(220px, 100%); justify-self:center}
  .schedule-day-items div{grid-template-columns:1fr}
  .schedule-day-items em{grid-column:auto}
  .calendar-grid{font-size:12px}
  .calendar-cell{min-height:76px; padding:6px}
  .modal-backdrop{align-items:flex-end; padding:10px}
}

@media (max-width:520px){
  .layout{padding:10px}
  .add-guest .row{grid-template-columns:1fr}
  .guest-actions{flex-direction:column}
  .tag{display:none}
  .btn{padding:9px 10px}
}
