  /* ── EVENTS MODULE ── */

  /* Upcoming / Past toggle */
  .events-header-bar {
    display: flex; align-items: center; justify-content: flex-end;
    margin-bottom: 20px;
  }
  .upcoming-toggle {
    display: flex;
    background: #ede8e1;
    border-radius: 8px;
    padding: 3px;
  }
  .upcoming-toggle button {
    padding: 5px 18px;
    border: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    color: var(--ink-muted);
    transition: all 0.15s;
  }
  .upcoming-toggle button.active {
    background: #ffffff;
    color: var(--ink);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  }

  /* Templates icon button */
  .tpl-icon-btn { width:32px; height:32px; background:var(--card-bg); border:none; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,0.07); color:#9e948a; transition:background 0.15s,color 0.15s; margin-left:8px; position:relative; }
  .tpl-icon-btn:hover { background:var(--accent-bg); color:var(--accent); }
  .tpl-icon-btn.active { background:var(--accent); color:#fff; box-shadow:0 2px 10px var(--accent-shadow); }
  .tpl-icon-btn svg { width:15px; height:15px; }
  .tpl-icon-btn .tpl-tooltip { position:absolute; top:calc(100% + 8px); right:0; background:var(--ink); color:#fff; font-size:11px; font-weight:500; padding:4px 10px; border-radius:6px; white-space:nowrap; pointer-events:none; opacity:0; transform:translateY(-3px); transition:opacity 0.15s,transform 0.15s; }
  .tpl-icon-btn:hover .tpl-tooltip { opacity:1; transform:translateY(0); }

  /* Templates view */
  .tpl-view { display:none; }
  .tpl-view.active { display:block; margin-top:-17px; }
  .tpl-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
  .tpl-header-left h2 { font-family:'Cormorant Garamond',serif; font-size:28px; font-weight:400; color:var(--ink); }
  .tpl-header-left p { font-size:13px; color:#9e948a; margin-top:4px; }
  .tpl-add-btn { display:flex; align-items:center; gap:7px; background:var(--accent); color:#fff; border:none; border-radius:999px; padding:9px 18px; font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; cursor:pointer; transition:background 0.15s; }
  .tpl-add-btn:hover { background:#2d8a8a; }
  .tpl-add-btn svg { width:13px; height:13px; }

  .tpl-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:12px; }
  .tpl-card { background:var(--card-bg); border-radius:14px; overflow:hidden; box-shadow:0 1px 6px rgba(28,24,20,0.07); transition:box-shadow 0.15s,transform 0.1s; cursor:pointer; animation:fadeIn 0.2s ease backwards; }
  .tpl-card:hover { box-shadow:0 4px 20px rgba(28,24,20,0.10); transform:translateY(-2px); }
  .tpl-card-color { display:none; }
  .tpl-card-cover {
    height: 128px;
    border-bottom: 1px solid var(--border);
    background: var(--canvas-sidebar);
    position: relative;
    overflow: hidden;
  }
  .tpl-card-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  .tpl-card-cover-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink-faint);
    font-size: 11px;
  }
  .tpl-card-cover-fallback svg { width: 24px; height: 24px; opacity: 0.7; }
  .tpl-card-cover:not(.is-empty) .tpl-card-cover-fallback { display: none; }
  .tpl-card-body { padding:16px 18px 14px; }
  .tpl-card-name { display:flex; align-items:center; gap:8px; font-family:'Cormorant Garamond',serif; font-size:18px; font-weight:500; color:var(--ink); margin-bottom:3px; }
  .tpl-card-dot { width:7px; height:7px; border-radius:999px; flex-shrink:0; }
  .tpl-card-desc { font-size:12px; color:#9e948a; line-height:1.5; margin-bottom:12px; }
  .tpl-card-meta { display:flex; align-items:center; gap:3px; flex-wrap:wrap; }
  .tpl-meta-tag { font-size:10px; font-weight:500; color:#9e948a; background:#f5f2ee; padding:2px 7px; border-radius:999px; border:1px solid var(--border); line-height:1.35; }
  .tpl-meta-tag.price { color:var(--accent); border-color:var(--accent-shadow); background:var(--accent-bg); }
  .tpl-meta-sep { width:3px; height:3px; border-radius:999px; background:var(--ink-faint); opacity:0.55; margin:0 2px; }
  .tpl-card-actions { display:flex; align-items:center; justify-content:flex-end; gap:8px; padding:10px 14px 12px; border-top:1px solid var(--border); }
  .tpl-card-actions-right { display:flex; align-items:center; gap:8px; }
  .tpl-card-actions .btn-icon { width:34px; height:34px; padding:0; border-radius:8px; }
  .tpl-card-actions .btn-icon svg { width:16px; height:16px; }
  .tpl-card-actions .btn-icon.danger { color:#b04444; }
  .tpl-card-actions .btn-icon.danger:hover { background:#fdf0f0; border-color:#b04444; }
  .tpl-card-thumb { width:36px; height:36px; border-radius:8px; object-fit:cover; flex-shrink:0; }
  .tpl-add-card { background:transparent; border:2px dashed var(--border); border-radius:14px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px; padding:36px 20px; cursor:pointer; transition:border-color 0.15s,background 0.15s; color:#9e948a; min-height:140px; }
  .tpl-add-card:hover { border-color:var(--accent); background:var(--accent-bg); color:var(--accent); }
  .tpl-add-card svg { width:22px; height:22px; opacity:0.6; }
  .tpl-add-card span { font-size:13px; font-weight:500; }

  .tpl-color-row { display:flex; align-items:center; gap:12px; }
  .tpl-color-picker-wrap { position:relative; width:40px; height:40px; border-radius:10px; overflow:hidden; border:1.5px solid var(--border); cursor:pointer; flex-shrink:0; }
  .tpl-color-picker-wrap input[type="color"] { position:absolute; inset:-6px; width:calc(100% + 12px); height:calc(100% + 12px); border:none; padding:0; cursor:pointer; }
  .tpl-color-hex { width:100px; padding:8px 12px; border:1.5px solid var(--border); border-radius:8px; font-family:'DM Sans',sans-serif; font-size:14px; color:var(--ink); background:#ffffff; outline:none; transition:border-color 0.15s; text-transform:uppercase; }
  .tpl-color-hex:focus { border-color:var(--accent); }
  .tpl-defaults { display:flex; flex-direction:column; gap:10px; }
  .tpl-default-row { display:flex; align-items:center; gap:10px; }
  .tpl-default-input-sm { flex:1; padding:8px 12px; border:1.5px solid var(--border); border-radius:8px; font-family:'DM Sans',sans-serif; font-size:13px; color:var(--ink); background:var(--card-bg); outline:none; transition:border-color 0.15s; }
  .tpl-default-input-sm:focus { border-color:var(--accent); }
  .tpl-default-select { flex:1; padding:8px 12px; border:1.5px solid var(--border); border-radius:8px; font-family:'DM Sans',sans-serif; font-size:13px; color:var(--ink); background:var(--card-bg); outline:none; cursor:pointer; transition:border-color 0.15s; }
  .tpl-default-select:focus { border-color:var(--accent); }
  .tpl-delete-confirm { display:none; flex-direction:column; gap:14px; }
  .tpl-delete-confirm.show { display:flex; }
  .tpl-delete-text { font-size:14px; color:#6b6259; line-height:1.6; }
  .tpl-delete-text strong { color:var(--ink); }
  .tpl-btn-delete { background:#dc2626; border:none; border-radius:999px; padding:10px 26px; font-family:'DM Sans',sans-serif; font-size:14px; font-weight:500; color:#fff; cursor:pointer; transition:background 0.15s; }
  .tpl-btn-delete:hover { background:#b91c1c; }
  .tpl-dur-btn { padding:6px 12px; border:1.5px solid var(--border); border-radius:999px; background:var(--card-bg); font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; color:#6b6259; cursor:pointer; transition:all 0.15s; }
  .tpl-dur-btn:hover { border-color:var(--accent); color:var(--accent); }
  .tpl-dur-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); }

  /* Templates page tabs */
  #eventsTemplatesView .tpl-tabs {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--rule-soft);
    border-radius: 9999px;
    background: transparent;
    margin-bottom: 24px;
  }
  #eventsTemplatesView .tpl-tab {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    box-sizing:border-box;
    min-width:82px;
    min-height: 26px;
    padding: 5px 10px;
    font-family:'Inter',sans-serif;
    font-size:10px;
    font-weight:500;
    color:var(--ink-faint);
    background:transparent;
    border:1px solid transparent;
    border-radius:9999px;
    cursor:pointer;
    transition:background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  }
  #eventsTemplatesView .tpl-tab i { font-size:14px; line-height:1; color:currentColor; }
  #eventsTemplatesView .tpl-tab:hover { color:var(--ink); }
  #eventsTemplatesView .tpl-tab.active {
    border-color:var(--rule);
    background:var(--canvas);
    color:var(--ink);
    box-shadow:0 1px 1px rgba(28,28,26,0.03), 0 4px 10px rgba(28,28,26,0.06);
    transform:translateY(-1px);
  }
  .tpl-tab-panel { display:none; }
  .tpl-tab-panel.active { display:block; }

  /* Image upload in template editor */
  .tpl-image-upload { display:flex; align-items:center; gap:14px; }
  .tpl-image-preview { width:80px; height:56px; border-radius:8px; border:1.5px dashed var(--border); display:flex; align-items:center; justify-content:center; overflow:hidden; background:#f9f6f2; flex-shrink:0; cursor:pointer; position:relative; }
  .tpl-image-preview img { width:100%; height:100%; object-fit:cover; }
  .tpl-image-preview svg { width:20px; height:20px; color:#c8c3bc; }
  .tpl-image-preview.has-image { border-style:solid; }
  .tpl-image-actions { display:flex; flex-direction:column; gap:4px; }
  .tpl-image-btn { padding:5px 12px; border:1px solid var(--border); border-radius:6px; font-family:'DM Sans',sans-serif; font-size:11px; font-weight:500; color:#6b6259; background:var(--card-bg); cursor:pointer; transition:all 0.15s; }
  .tpl-image-btn:hover { border-color:var(--accent); color:var(--accent); }

  /* Email templates list */
  .etpl-list { display:flex; flex-direction:column; gap:10px; margin-bottom:20px; }
  .etpl-card { background:var(--card-bg); border:1px solid var(--border); border-radius:12px; padding:16px 18px; display:flex; align-items:center; justify-content:space-between; gap:12px; transition:border-color 0.15s; }
  .etpl-card:hover { border-color:var(--ink-muted); }
  .etpl-card-info { flex:1; min-width:0; }
  .etpl-card-name { font-size:14px; font-weight:500; color:var(--ink); }
  .etpl-card-meta { font-size:12px; color:#9e948a; margin-top:2px; }
  .etpl-card-meta code { background:#f5f2ee; padding:1px 5px; border-radius:3px; font-size:11px; }
  .etpl-card-actions { display:flex; gap:6px; }

  /* Tag management */
  .tpl-tags-section { }
  .tpl-tags-header h3 { font-family:'Cormorant Garamond',serif; font-size:22px; font-weight:400; color:var(--ink); }
  .tpl-tags-header p { font-size:13px; color:#9e948a; margin-top:3px; margin-bottom:16px; }
  .tpl-tags-list { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; min-height:32px; isolation:isolate; }
  .tpl-tag-pill { display:inline-flex; align-items:center; gap:7px; padding:7px 14px 7px 10px; border-radius:999px; border:1.5px solid var(--border); background:var(--card-bg); font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:var(--ink); cursor:pointer; user-select:none; transition:border-color .15s,box-shadow .15s,transform .1s; position:relative; z-index:1; }
  .tpl-tag-pill.has-open-tooltip { z-index:250; }
  .tpl-tag-pill:hover { border-color:#d0c9c0; transform:translateY(-1px); box-shadow:0 2px 8px rgba(26,22,18,.07); }
  .tpl-tag-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; box-shadow:0 0 0 1.5px rgba(0,0,0,.08); }
  .tpl-tag-remove { margin-left:2px; color:#9e948a; font-size:14px; line-height:1; cursor:pointer; transition:color .15s; padding:0 2px; background:none; border:none; }
  .tpl-tag-remove:hover { color:#c0392b; }
  .tpl-tag-tooltip { display:none; position:absolute; top:calc(100% + 8px); left:50%; transform:translateX(-50%); background:var(--card-bg); border:1px solid var(--border); border-radius:14px; box-shadow:0 4px 20px rgba(26,22,18,.13); padding:14px; z-index:300; width:270px; flex-direction:column; gap:10px; }
  .tpl-tag-tooltip.open { display:flex; }
  .tpl-tag-tooltip::before { content:''; position:absolute; top:-5px; left:50%; transform:translateX(-50%) rotate(45deg); width:9px; height:9px; background:var(--card-bg); border-top:1px solid var(--border); border-left:1px solid var(--border); }
  .tpl-tooltip-label { font-size:10px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:#9e948a; }
  .tpl-swatch-grid { display:flex; flex-wrap:wrap; gap:6px; }
  .tpl-swatch { width:22px; height:22px; border-radius:50%; cursor:pointer; border:2px solid transparent; transition:transform .12s,border-color .12s; flex-shrink:0; }
  .tpl-swatch:hover { transform:scale(1.18); }
  .tpl-swatch.active { border-color:var(--ink); }
  .tpl-hex-row { display:grid; grid-template-columns:28px minmax(0, 1fr) auto; align-items:center; gap:8px; }
  .tpl-hex-preview { width:28px; height:28px; border-radius:7px; flex-shrink:0; border:1.5px solid var(--border); }
  .tpl-hex-input { min-width:0; width:100%; border:1.5px solid var(--border); border-radius:8px; padding:6px 10px; font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; color:var(--ink); outline:none; transition:border-color .15s; text-transform:uppercase; }
  .tpl-hex-input:focus { border-color:#6b6259; }
  .tpl-hex-apply { background:var(--ink); color:#fff; border:none; border-radius:8px; padding:6px 10px; font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; cursor:pointer; transition:background .15s; white-space:nowrap; }
  .tpl-hex-apply:hover { background:#2d2520; }
  .tpl-tags-add { display:flex; gap:10px; align-items:center; margin-top:8px; }
  .tpl-tags-input { padding:9px 16px; border:1.5px solid var(--border); border-radius:999px; font-family:'DM Sans',sans-serif; font-size:13px; color:var(--ink); background:var(--card-bg); outline:none; transition:border-color .15s; width:220px; }
  .tpl-tags-input:focus { border-color:#d0c9c0; }
  .tpl-tags-input::placeholder { color:#b0a898; }
  .tpl-color-picker-btn { width:36px; height:36px; border-radius:10px; border:1.5px solid var(--border); cursor:pointer; flex-shrink:0; transition:transform .12s; position:relative; overflow:hidden; }
  .tpl-color-picker-btn:hover { transform:scale(1.08); }
  .tpl-color-picker-btn input[type="color"] { position:absolute; inset:-4px; width:calc(100% + 8px); height:calc(100% + 8px); opacity:0; cursor:pointer; }
  .tpl-tags-add-btn { display:inline-flex; align-items:center; gap:5px; padding:9px 16px; border-radius:999px; border:1.5px solid var(--border); background:var(--card-bg); font-family:'DM Sans',sans-serif; font-size:13px; font-weight:500; color:#6b6259; cursor:pointer; transition:background .15s,border-color .15s; }
  .tpl-tags-add-btn:hover { background:#ede9e4; border-color:#d0c9c0; }
  .tpl-tags-add-btn svg { width:13px; height:13px; }

  /* Timeline vertical line layout */
  .events-timeline { max-width: 780px; }

  .date-group {
    display: grid;
    grid-template-columns: 132px 1fr;
    margin-bottom: 0;
    position: relative;
  }
  .date-group::before {
    content: '';
    position: absolute;
    left: 132px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    z-index: 0;
  }

  .date-cell {
    padding-top: 20px;
    position: relative;
    z-index: 1;
  }
  .date-cell::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c8c3bc;
    border: 3px solid var(--bg);
    z-index: 2;
    box-sizing: border-box;
  }
  .date-number {
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
  }
  .date-name {
    font-size: 11px;
    font-weight: 400;
    color: var(--ink-muted);
    margin-top: 1px;
  }

  .cards-cell {
    padding: 12px 0 12px 42px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
  }

  /* Event card */
  .event-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
    cursor: pointer;
    transition: box-shadow 0.18s;
    text-decoration: none;
    color: inherit;
    display: block;
  }
  .event-card:hover {
    box-shadow: 0 4px 18px rgba(26,23,18,0.09);
  }

  .card-inner {
    display: flex;
    align-items: flex-start;
    gap: 14px;
  }
  .card-content { flex: 1; min-width: 0; }

  .card-time {
    font-size: 11px;
    color: var(--ink-muted);
    margin-bottom: 5px;
    letter-spacing: 0.01em;
  }
  .card-time .tz {
    color: #c17f5a;
    font-weight: 500;
  }

  .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 10px;
  }

  .card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 12px;
  }
  .meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--ink-muted);
  }
  .meta-row svg {
    width: 13px; height: 13px;
    flex-shrink: 0;
    opacity: 0.6;
  }

  .card-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
  }

  .price-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid transparent;
  }
  .price-free { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
  .price-paid { background: #e8f5e9; color: #2e7d32; border-color: #c8e6c9; }
  .price-pwyc { background: #fff3e0; color: #e65100; border-color: #ffe0b2; }

  .btn-manage {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 13px;
    border: 1px solid var(--border);
    border-radius: 7px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--ink);
    background: var(--bg-subtle);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
  }
  .btn-manage:hover {
    background: var(--ink);
    color: var(--bg);
    border-color: var(--ink);
  }

  /* Cover tile (right side of card) */
  .card-cover {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .card-cover.image-cover {
    border: 1px solid var(--border);
    background: var(--canvas-sidebar);
  }
  .card-cover.image-cover img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
  }
  .card-cover.image-cover .missing-cover-icon { display: none; }
  .card-cover.image-cover.is-missing-image .missing-cover-icon { display: block; }
  .card-cover.is-missing-image {
    border: 1px solid var(--border);
    background: var(--canvas-sidebar);
    color: var(--ink-faint);
  }
  .missing-cover-icon {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .cover-icon-wrap {
    position: relative;
    z-index: 1;
  }
  .cover-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 11px;
    font-style: italic;
    text-align: center;
    line-height: 1.25;
    padding: 0 6px;
    position: relative;
    z-index: 1;
  }
  .cover-sub {
    position: absolute;
    bottom: 0;
    left: 0; right: 0;
    text-align: center;
    font-size: 7.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 4px 5px;
    background: rgba(0,0,0,0.22);
  }

  /* Event status pills */
  .pill-draft     { background: var(--bg-subtle); color: var(--ink-muted); }
  .pill-live      { background: var(--accent-bg); color: var(--accent); }
  .pill-full      { background: #f5ece0; color: #8a6040; }
  .pill-completed { background: var(--bg-subtle); color: var(--ink-muted); }
  .pill-cancelled { background: #f0e0e0; color: #8a4040; }

  /* ── Single Event Management View ── */
  .evt-mgmt {
    max-width: 1120px;
    margin: 0 auto;
  }

  /* Breadcrumb */
  .evt-breadcrumb {
    font-size: 12px;
    color: var(--ink-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
  }
  .evt-breadcrumb a {
    color: var(--ink-muted);
    text-decoration: none;
    cursor: pointer;
    transition: color 0.15s;
  }
  .evt-breadcrumb a:hover { color: var(--ink); }
  .evt-breadcrumb svg { width: 12px; height: 12px; opacity: 0.5; }

  /* Header row */
  .evt-mgmt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 26px;
  }
  .evt-mgmt-title-row,
  .evt-mgmt-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
  }
  .evt-mgmt-actions { flex-shrink: 0; }
  .evt-mgmt-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 44px;
    font-weight: 500;
    color: var(--ink);
    letter-spacing: 0;
    line-height: 1;
    min-width: 0;
  }
  .evt-status-select {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 18px;
    border-radius: 999px;
    border: 1px solid var(--rule, var(--border));
    background: var(--canvas, var(--bg));
    color: var(--ink);
    cursor: pointer;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    text-align: center;
    min-width: 104px;
    height: 34px;
  }
  .evt-status-select:focus { border-color: var(--ink); }
  .btn-event-page {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid var(--rule, var(--border));
    border-radius: 999px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink-soft, var(--ink-muted));
    background: var(--canvas, var(--bg));
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    flex-shrink: 0;
    cursor: pointer;
  }
  .btn-event-page:hover {
    color: var(--ink);
    background: var(--canvas-elevated, var(--bg-subtle));
    box-shadow: 0 1px 1px rgba(28, 28, 26, 0.03), 0 6px 16px rgba(28, 28, 26, 0.06);
    transform: translateY(-1px);
  }
  .btn-event-page svg { width: 14px; height: 14px; }



  /* Tab content area */
  .evt-mgmt-body {
    padding-top: 24px;
  }

  /* ── Overview tab ── */
  .ov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px; }
  @media(max-width:700px) { .ov-grid { grid-template-columns: 1fr; } }
  .ov-card {
    background: var(--canvas-elevated, #fff);
    border: 1px solid var(--rule, var(--border));
    border-radius: 12px;
    padding: 24px;
  }
  .ov-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ink-faint, #9e948a);
    margin-bottom: 16px;
  }
  .ov-field { margin-bottom: 14px; }
  .ov-field:last-child { margin-bottom: 0; }
  .ov-label { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--ink-soft, #6b6259); margin-bottom: 6px; }
  .ov-input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--rule, var(--border));
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--ink);
    background: var(--canvas, var(--bg));
    outline: none;
    transition: border-color .15s, background .15s, box-shadow .15s;
  }
  .ov-input:focus { border-color: var(--ink); }
  .ov-row { display: flex; gap: 14px; align-items: flex-end; }
  .ov-row .ov-field { flex: 1; }
  .ov-tags-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
  .ov-tag-chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--bg); font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 500; color: #6b6259; cursor: pointer; transition: all .15s; user-select: none; }
  .ov-tag-chip:hover { border-color: #c0b8ae; }
  .ov-tag-chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
  .ov-tag-chip.on .ov-tag-dot { box-shadow: 0 0 0 1.5px rgba(255,255,255,.4); }
  .ov-tag-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
  .ov-save-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
  .ov-desc-input { min-height: 80px; resize: vertical; }
  .ov-full { grid-column: 1 / -1; }
  .ov-img-preview { width: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; cursor: pointer; display: block; }
  .ov-img-placeholder {
    width: 100%;
    height: 168px;
    border: 1px dashed var(--rule, var(--border));
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    color: var(--ink-faint, #b0a898);
    background: color-mix(in srgb, var(--canvas, var(--bg)) 78%, transparent);
    transition: border-color .15s, color .15s, background .15s;
  }
  .ov-img-placeholder:hover { border-color: #9e948a; color: #6b6259; }
  .ov-img-placeholder svg { width: 28px; height: 28px; opacity: .5; }
  .ov-img-placeholder span { font-size: 12px; font-weight: 500; }
  .ov-img-remove { font-size: 12px; color: #c17f5a; cursor: pointer; margin-top: 8px; background: none; border: none; font-family: 'Poppins', sans-serif; }
  .ov-img-remove:hover { color: #a0604a; text-decoration: underline; }
  .ov-img-url-row { display: flex; gap: 8px; margin-top: 10px; }
  .ov-img-url-row .ov-input { flex: 1; }

  /* When & Where strip (shown on every tab) */
  .when-where-strip {
    background: var(--canvas-elevated, #ffffff);
    border: 1px solid var(--rule, var(--border));
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
  }
  .ww-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: var(--ink-soft, var(--ink-muted));
  }
  .ww-item svg { width: 14px; height: 14px; flex-shrink: 0; }
  .ww-item strong { color: var(--ink); font-weight: 500; }
  .ww-divider {
    width: 1px;
    height: 18px;
    background: var(--rule-soft, var(--border));
  }
  .zoom-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: #fdf0f0;
    border: 1px solid rgba(149,3,1,0.15);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #950301;
    text-decoration: none;
    transition: background 0.15s;
    margin-left: auto;
    cursor: pointer;
  }
  .zoom-link-btn:hover { background: #f9e0e0; }
  .zoom-link-btn svg { width: 12px; height: 12px; }

  /* Stats row (Guests tab) */
  .mgmt-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  .mgmt-stat-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
  }
  .mgmt-stat-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--ink);
    line-height: 1;
    margin-bottom: 3px;
  }
  .mgmt-stat-label {
    font-size: 11px;
    color: var(--ink-muted);
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  /* Capacity bar */
  .capacity-bar-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 24px;
  }
  .capacity-bar-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
  }
  .capacity-bar-label { font-size: 12px; font-weight: 500; color: var(--ink-muted); }
  .capacity-bar-count { font-size: 12px; color: var(--ink-muted); }
  .capacity-track {
    height: 6px;
    background: #ede8e1;
    border-radius: 3px;
    overflow: hidden;
  }
  .capacity-fill {
    height: 100%;
    background: #950301;
    border-radius: 3px;
    transition: width 0.6s ease;
  }

  /* Guests table */
  .mgmt-table-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }
  .mgmt-table-title { font-size: 14px; font-weight: 600; }
  .mgmt-search-box {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #ffffff;
    width: 200px;
  }
  .mgmt-search-box svg { width: 13px; height: 13px; color: #c8c3bc; flex-shrink: 0; }
  .mgmt-search-box input {
    border: none; outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px; color: var(--ink);
    background: transparent; width: 100%;
  }
  .mgmt-search-box input::placeholder { color: #c8c3bc; }

  .guests-table {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .gt-row {
    display: grid;
    grid-template-columns: 2fr 2fr 1fr 1fr 80px;
    gap: 12px;
    padding: 11px 16px;
    align-items: center;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
  }
  .gt-row:last-child { border-bottom: none; }
  .gt-row.gt-header {
    background: var(--bg-subtle);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #c8c3bc;
    padding: 9px 16px;
  }
  .guest-name-cell {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .guest-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8a020, #c17f5a);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    flex-shrink: 0;
  }
  .guest-name { font-weight: 500; }
  .guest-email-cell { color: var(--ink-muted); font-size: 12px; }

  .status-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
  }
  .status-paid { background: #e8f5e9; color: #2e7d32; }
  .status-free { background: #e3f2fd; color: #1565c0; }
  .status-pending { background: #fff3e0; color: #e65100; }

  .zoom-sent-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 5px;
  }
  .zoom-sent-dot.sent { background: #4caf50; }
  .zoom-sent-dot.not-sent { background: #c8c3bc; }

  .action-dots {
    width: 28px; height: 28px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--ink-muted);
    transition: all 0.15s;
  }
  .action-dots:hover { background: var(--bg-subtle); border-color: var(--ink); color: var(--ink); }

  /* Registration tab */
  .reg-section { margin-bottom: 28px; }
  .reg-section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .capacity-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
  }
  .cap-tile {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s;
  }
  .cap-tile:hover { border-color: var(--ink); }
  .cap-tile-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #c8c3bc; margin-bottom: 4px; }
  .cap-tile-value { font-size: 15px; font-weight: 500; color: var(--ink); }
  .cap-tile-sub { font-size: 11px; color: var(--ink-muted); margin-top: 1px; }

  .tickets-list {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 8px;
  }
  .ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
  }
  .ticket-row:last-child { border-bottom: none; }
  .ticket-row-left { display: flex; flex-direction: column; gap: 1px; }
  .ticket-row-name { font-size: 14px; font-weight: 500; }
  .ticket-row-price { font-size: 13px; color: var(--ink-muted); }
  .ticket-row-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
  .ticket-count { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-muted); }
  .ticket-count svg { width: 12px; height: 12px; }
  .stripe-note { font-size: 11px; color: #c8c3bc; margin-top: 6px; }

  /* Coupons */
  .coupon-list {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .coupon-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
  }
  .coupon-search svg { width: 13px; height: 13px; color: #c8c3bc; }
  .coupon-search input {
    border: none; outline: none;
    font-family: 'Poppins', sans-serif;
    font-size: 12px; color: var(--ink);
    background: transparent; width: 100%;
  }
  .coupon-search input::placeholder { color: #c8c3bc; }
  .coupon-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    font-size: 13px;
  }
  .coupon-row:last-child { border-bottom: none; }
  .coupon-code {
    font-weight: 600;
    font-size: 12px;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.03em;
  }
  .coupon-code.active { color: #950301; }
  .coupon-code.expired { color: #c8c3bc; text-decoration: line-through; }
  .coupon-desc { font-size: 12px; color: var(--ink-muted); margin-left: 8px; }
  .coupon-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: var(--ink-muted);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px 8px;
  }

  .section-divider {
    height: 1px;
    background: var(--border);
    margin: 24px 0;
  }

  /* Registration email block */
  .reg-email-block {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 24px;
  }
  .reg-email-title { font-size: 15px; font-weight: 600; margin-bottom: 5px; }
  .reg-email-sub { font-size: 13px; color: var(--ink-muted); margin-bottom: 14px; line-height: 1.5; }
  .btn-customize {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: var(--ink);
    color: var(--bg);
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
  }
  .btn-customize:hover { opacity: 0.85; }
  .btn-customize svg { width: 14px; height: 14px; }

  /* Blasts tab */
  .kit-note {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 12px;
    color: var(--ink-muted);
  }
  .kit-note svg { width: 14px; height: 14px; flex-shrink: 0; }
  .kit-note a { color: #950301; text-decoration: none; }
  .kit-note a:hover { text-decoration: underline; }

  .sys-messages-title {
    font-size: 15px;
    font-weight: 600;
    margin: 24px 0 12px;
  }
  .sys-msg-list {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
  }
  .sys-msg-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }
  .sys-msg-row:last-child { border-bottom: none; }
  .sys-msg-icon {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .sys-msg-icon svg { width: 16px; height: 16px; color: var(--ink-muted); }
  .sys-msg-info { flex: 1; }
  .sys-msg-name { font-size: 14px; font-weight: 500; }
  .sys-msg-sub { font-size: 12px; color: var(--ink-muted); margin-top: 1px; }

  /* Video Delivery tab */
  .vd-config { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; }
  .vd-config-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: #9e948a; margin-bottom: 14px; }
  .vd-row { display: flex; gap: 12px; margin-bottom: 14px; }
  .vd-row:last-child { margin-bottom: 0; }
  .vd-field { flex: 1; }
  .vd-label { font-size: 12px; font-weight: 500; color: #6b6259; margin-bottom: 5px; }
  .vd-input { width: 100%; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: 13px; color: var(--ink); background: var(--bg); outline: none; transition: border-color .15s; }
  .vd-input:focus { border-color: var(--ink); }
  .vd-save-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; }
  .vd-status-badge { font-size: 12px; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
  .vd-status-badge.configured { background: #d8ede3; color: #2d5a3d; }
  .vd-status-badge.not-configured { background: #f5efe5; color: #9e948a; }
  .vd-recipients { background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
  .vd-recipients-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .vd-recipients-title { font-size: 14px; font-weight: 600; }
  .vd-recipients-count { font-size: 12px; color: var(--ink-muted); }
  .vd-recipient-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
  .vd-recipient-row:last-child { border-bottom: none; }
  .vd-recipient-name { font-size: 13px; font-weight: 500; flex: 1; }
  .vd-recipient-tz { font-size: 11px; color: var(--ink-muted); }
  .vd-recipient-status { font-size: 11px; font-weight: 500; padding: 3px 10px; border-radius: 999px; }
  .vd-recipient-status.sent { background: #d8ede3; color: #2d5a3d; }
  .vd-recipient-status.pending { background: #fff8e8; color: #b8860b; }
  .vd-recipient-status.cancelled { background: #f5efe5; color: #9e948a; }
  .vd-resend-btn { font-size: 11px; color: #c17f5a; background: none; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; }
  .vd-resend-btn:hover { text-decoration: underline; }
  .vd-test-btn { padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 500; color: var(--ink); cursor: pointer; transition: all .15s; }
  .vd-test-btn:hover { border-color: var(--ink); }

  /* Create Event — free-floating two-column layout */
  .cevt-wrap { max-width: 860px; font-family: 'DM Sans', sans-serif; }
  .cevt-back { display: inline-flex; align-items: center; gap: 6px; font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--ink-muted); background: none; border: none; cursor: pointer; margin-bottom: 20px; padding: 0; }
  .cevt-back:hover { color: var(--ink); }
  .cevt-back svg { width: 16px; height: 16px; }
  .cevt-header { display: flex; align-items: center; gap: 10px; margin-bottom: 28px; }
  .cevt-header h2 { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: #6b6259; letter-spacing: 0.02em; }

  .cevt-layout { display: grid; grid-template-columns: 290px 1fr; gap: 18px; align-items: start; }
  .cevt-left { display: flex; flex-direction: column; gap: 8px; }
  .cevt-right { display: flex; flex-direction: column; gap: 8px; }

  /* Cover tile */
  .cevt-cover { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; cursor: pointer; border-radius: 18px; background: #1e1a16; box-shadow: 0 2px 16px rgba(28,24,20,0.18); }
  .cevt-cover-empty { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
  .cevt-cover-empty-inner { text-align: center; color: rgba(255,255,255,0.18); font-size: 13px; }
  .cevt-cover-empty-icon { display: block; margin-bottom: 8px; opacity: 0.7; }
  .cevt-cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .cevt-cover-gradient { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(28,24,20,0.04) 0%, rgba(28,24,20,0.48) 100%); border-radius: 18px; }
  .cevt-cover-hint { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,0.55); font-size: 13px; opacity: 0; transition: opacity 0.2s; background: rgba(28,24,20,0.36); border-radius: 18px; }
  .cevt-cover:hover .cevt-cover-hint { opacity: 1; }
  .cevt-cover-hint svg { width: 24px; height: 24px; }

  /* Template selector tile */
  .cevt-template-tile { background: #fff; border-radius: 14px; padding: 11px 14px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 4px rgba(28,24,20,0.06), 0 0 0 1px rgba(28,24,20,0.055); }
  .cevt-template-label { font-size: 10px; font-weight: 600; color: #9e948a; text-transform: uppercase; letter-spacing: 0.09em; white-space: nowrap; }
  .cevt-template-selector { flex: 1; position: relative; }
  .cevt-template-btn { width: 100%; background: #f5f2ee; border: 1px solid #e8e2db; border-radius: 7px; padding: 6px 26px 6px 10px; color: var(--ink); font-family: 'DM Sans', sans-serif; font-size: 13px; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 8px; transition: background 0.15s; position: relative; }
  .cevt-template-btn:hover { background: #e8e2db; }
  .cevt-template-btn::after { content: '\25BE'; position: absolute; right: 9px; color: #9e948a; font-size: 10px; }
  .cevt-template-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
  .cevt-template-dropdown { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid #e8e2db; border-radius: 12px; overflow: hidden; z-index: 200; box-shadow: 0 8px 40px rgba(28,24,20,0.14); display: none; min-width: 260px; }
  .cevt-template-dropdown.open { display: grid; grid-template-columns: 1fr 1fr; animation: cevtFadeDown 0.14s ease; }
  .cevt-template-option { padding: 9px 11px; display: flex; align-items: flex-start; gap: 8px; cursor: pointer; font-size: 12px; color: #6b6259; transition: background 0.1s; border-bottom: 1px solid #e8e2db; border-right: 1px solid #e8e2db; }
  .cevt-template-option:nth-child(even) { border-right: none; }
  .cevt-template-option:nth-last-child(-n+2) { border-bottom: none; }
  .cevt-template-option:hover { background: #f5f2ee; color: var(--ink); }
  .cevt-template-option.active { background: var(--accent-bg); color: var(--accent); }
  .cevt-template-option-name { font-weight: 600; font-size: 12px; line-height: 1.3; }
  .cevt-template-option-desc { font-size: 10px; color: #9e948a; margin-top: 2px; line-height: 1.4; }

  /* Event name input — bare on bg */
  .cevt-name-input { width: 100%; border: none; outline: none; font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 400; color: var(--ink); background: transparent; line-height: 1.15; letter-spacing: -0.01em; margin-bottom: 4px; resize: none; overflow: hidden; padding: 0; }
  .cevt-name-input::placeholder { color: #ccc5bb; }

  /* Field tiles */
  .cevt-field-tile { background: #fff; border-radius: 14px; padding: 14px 18px; display: flex; align-items: flex-start; gap: 13px; cursor: pointer; box-shadow: 0 1px 4px rgba(28,24,20,0.06), 0 0 0 1px rgba(28,24,20,0.055); transition: box-shadow 0.15s; }
  .cevt-field-tile:hover { box-shadow: 0 3px 14px rgba(28,24,20,0.1), 0 0 0 1px rgba(28,24,20,0.08); }
  .cevt-field-icon { width: 17px; height: 17px; color: #9e948a; flex-shrink: 0; margin-top: 3px; }
  .cevt-field-body { flex: 1; min-width: 0; }
  .cevt-field-placeholder { font-size: 14px; color: #9e948a; line-height: 1.5; }
  .cevt-field-value { font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.5; }
  .cevt-field-value small { display: block; font-size: 12px; color: #9e948a; font-weight: 400; margin-top: 1px; }
  .cevt-field-teal { font-size: 14px; color: var(--accent); font-weight: 500; }
  .cevt-desc-preview { font-size: 13px; color: #6b6259; line-height: 1.6; }
  .cevt-desc-preview h2 { font-family: 'Cormorant Garamond', serif; font-size: 17px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }

  /* DateTime rows inside field tile */
  .cevt-dt-rows { display: flex; flex-direction: column; gap: 6px; }
  .cevt-dt-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
  .cevt-dt-label { font-size: 12px; color: #9e948a; width: 34px; font-weight: 500; flex-shrink: 0; }
  .cevt-dt-btn { background: #f5f2ee; border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; padding: 4px 10px; border-radius: 6px; transition: background 0.15s; }
  .cevt-dt-btn:hover { background: #e8e2db; }
  .cevt-dt-btn.filled { background: var(--accent-bg); color: var(--accent); }
  .cevt-dt-sep { color: #d4cdc4; font-size: 11px; }
  .cevt-tz-badge { margin-left: auto; font-size: 11px; color: #9e948a; background: #f5f2ee; padding: 3px 9px; border-radius: 20px; display: flex; align-items: center; gap: 4px; white-space: nowrap; flex-shrink: 0; }
  .cevt-tz-badge svg { width: 10px; height: 10px; }

  /* Inline time list */
  .cevt-inline-tw { position: relative; display: inline-block; }
  .cevt-inline-tl { position: absolute; top: calc(100% + 4px); left: 0; background: #fff; border: 1px solid #e8e2db; border-radius: 10px; box-shadow: 0 8px 40px rgba(28,24,20,0.14); z-index: 300; min-width: 140px; max-height: 240px; overflow-y: auto; display: none; }
  .cevt-inline-tl.open { display: block; animation: cevtFadeDown 0.14s ease; }
  .cevt-inline-tl::-webkit-scrollbar { width: 4px; }
  .cevt-inline-tl::-webkit-scrollbar-thumb { background: #e8e2db; border-radius: 4px; }
  .cevt-inline-ti { padding: 9px 16px; font-size: 13px; cursor: pointer; transition: background 0.1s; color: var(--ink); }
  .cevt-inline-ti:hover { background: #f5f2ee; }
  .cevt-inline-ti.selected { background: var(--accent); color: #fff; font-weight: 500; }

  /* Create button */
  .cevt-tag-chip { padding:5px 12px; border:1.5px solid #e8e2db; border-radius:999px; background:#fff; font-family:'DM Sans',sans-serif; font-size:12px; font-weight:500; color:#6b6259; cursor:pointer; transition:all 0.15s; }
  .cevt-tag-chip:hover { background:#f5f2ee; border-color:#d0c9c0; }
  .cevt-tag-chip.on { background:#1c1814; color:#fff; border-color:#1c1814; }
  .cevt-create-btn { width: 100%; padding: 17px; background: var(--accent); color: #fff; border: none; border-radius: 14px; font-family: 'DM Sans', sans-serif; font-size: 15px; font-weight: 500; cursor: pointer; letter-spacing: 0.02em; transition: background 0.2s, transform 0.1s; box-shadow: 0 4px 18px rgba(26,107,107,0.28); margin-top: 6px; }
  .cevt-create-btn:hover { background: #2d8a8a; }
  .cevt-create-btn:active { transform: scale(0.99); }
  .cevt-create-btn:disabled { opacity: 0.5; cursor: default; transform: none; }

  @keyframes cevtFadeDown { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }

  /* Overlays */
  .cevt-overlay { position: fixed; inset: 0; background: rgba(28,24,20,0.42); z-index: 400; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.2s; backdrop-filter: blur(2px); }
  .cevt-overlay.open { opacity: 1; pointer-events: auto; }
  .cevt-popup { background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(28,24,20,0.14); width: 440px; max-width: 96vw; max-height: 90vh; overflow: hidden; display: flex; flex-direction: column; transform: scale(0.96) translateY(8px); transition: transform 0.2s; }
  .cevt-overlay.open .cevt-popup { transform: scale(1) translateY(0); }
  .cevt-popup-header { padding: 20px 24px 16px; border-bottom: 1px solid #e8e2db; display: flex; align-items: center; justify-content: space-between; }
  .cevt-popup-title { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 500; color: var(--ink); }
  .cevt-popup-close { width: 28px; height: 28px; background: #f5f2ee; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #6b6259; font-size: 16px; transition: background 0.15s; }
  .cevt-popup-close:hover { background: #e8e2db; }
  .cevt-popup-body { padding: 20px 24px 24px; overflow-y: auto; }

  /* Calendar popup */
  .cevt-cal-popup { width: 320px; }
  .cevt-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .cevt-cal-nav h3 { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 500; }
  .cevt-cal-nav-btn { width: 28px; height: 28px; background: #f5f2ee; border: none; border-radius: 6px; cursor: pointer; color: #6b6259; font-size: 14px; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
  .cevt-cal-nav-btn:hover { background: #e8e2db; }
  .cevt-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .cevt-cal-day-header { text-align: center; font-size: 11px; font-weight: 500; color: #9e948a; padding: 6px 0; text-transform: uppercase; letter-spacing: 0.05em; }
  .cevt-cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 13px; border-radius: 50%; cursor: pointer; color: var(--ink); transition: background 0.1s, color 0.1s; }
  .cevt-cal-day:hover { background: #f5f2ee; }
  .cevt-cal-day.today { font-weight: 600; color: var(--accent); }
  .cevt-cal-day.selected { background: var(--accent); color: #fff; }
  .cevt-cal-day.other-month { color: #9e948a; opacity: 0.5; }
  .cevt-cal-done { margin-top: 16px; width: 100%; padding: 10px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; font-weight: 500; transition: background 0.15s; }
  .cevt-cal-done:hover { background: #2d8a8a; }

  /* Location popup */
  .cevt-loc-popup { width: 440px; }
  .cevt-loc-search { width: 100%; padding: 10px 14px; border: 1.5px solid #e8e2db; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--ink); background: #fff; outline: none; transition: border-color 0.15s; margin-bottom: 16px; }
  .cevt-loc-search:focus { border-color: var(--accent); }
  .cevt-loc-section-label { font-size: 11px; font-weight: 600; color: #9e948a; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
  .cevt-loc-options { display: flex; flex-direction: column; gap: 2px; margin-bottom: 20px; }
  .cevt-loc-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background 0.1s; }
  .cevt-loc-item:hover { background: #f5f2ee; }
  .cevt-loc-item.selected { background: var(--accent-bg); }
  .cevt-loc-item-icon { width: 32px; height: 32px; background: #f5f2ee; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #6b6259; font-size: 15px; flex-shrink: 0; }
  .cevt-loc-item.selected .cevt-loc-item-icon { background: var(--accent); color: #fff; }
  .cevt-loc-item-name { font-size: 14px; font-weight: 500; color: var(--ink); }
  .cevt-loc-item-sub { font-size: 12px; color: #9e948a; margin-top: 1px; }
  .cevt-virtual-section { border-top: 1px solid #e8e2db; padding-top: 16px; }
  .cevt-virtual-options { display: flex; gap: 8px; flex-wrap: wrap; }
  .cevt-virtual-btn { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid #e8e2db; border-radius: 8px; background: #fff; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #6b6259; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
  .cevt-virtual-btn:hover { border-color: var(--accent); background: var(--accent-bg); color: var(--accent); }
  .cevt-virtual-btn svg { width: 16px; height: 16px; }
  .cevt-loc-confirm { margin-top: 20px; width: 100%; padding: 11px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; font-weight: 500; transition: background 0.15s; }
  .cevt-loc-confirm:hover { background: #2d8a8a; }

  /* Description popup */
  .cevt-desc-popup { width: 560px; }
  .cevt-desc-editor { min-height: 120px; outline: none; font-size: 14px; color: var(--ink); line-height: 1.7; caret-color: var(--accent); padding: 4px 0; }
  .cevt-desc-editor:empty::before { content: attr(data-placeholder); color: #9e948a; pointer-events: none; }
  .cevt-desc-toolbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #e8e2db; }
  .cevt-toolbar-btn { display: flex; align-items: center; gap: 7px; padding: 7px 13px; background: #fff; border: 1.5px solid #e8e2db; border-radius: 999px; cursor: pointer; font-family: 'DM Sans', sans-serif; font-size: 13px; color: #6b6259; font-weight: 500; transition: background 0.1s, border-color 0.1s, color 0.1s; white-space: nowrap; }
  .cevt-toolbar-btn:hover { background: #f5f2ee; border-color: #d4cdc4; color: var(--ink); }
  .cevt-toolbar-btn svg { width: 13px; height: 13px; flex-shrink: 0; }
  .cevt-toolbar-icon { font-size: 12px; font-weight: 700; font-family: 'Cormorant Garamond', serif; min-width: 14px; text-align: center; line-height: 1; }
  .cevt-desc-done { margin-top: 20px; padding: 10px 28px; background: #1c1814; color: #fff; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; font-weight: 500; float: right; transition: background 0.15s; }
  .cevt-desc-done:hover { background: #2d2520; }
  .cevt-desc-editor ol { padding-left: 20px; margin: 6px 0; }
  .cevt-desc-editor ol li { margin-bottom: 2px; }
  .cevt-desc-editor .cevt-cta-btn { display: inline-block; padding: 10px 24px; background: var(--accent); color: #fff; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; text-decoration: none; cursor: text; }
  .cevt-desc-editor img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

  /* Floating selection toolbar */
  .cevt-sel-toolbar { position: absolute; display: none; background: #1c1814; border-radius: 8px; padding: 4px 6px; gap: 2px; box-shadow: 0 4px 16px rgba(0,0,0,0.25); z-index: 10010; }
  .cevt-sel-toolbar.visible { display: flex; }
  .cevt-sel-toolbar button { background: none; border: none; color: #fff; width: 30px; height: 28px; border-radius: 5px; cursor: pointer; font-size: 13px; font-family: 'DM Sans', sans-serif; display: flex; align-items: center; justify-content: center; transition: background 0.1s; }
  .cevt-sel-toolbar button:hover { background: rgba(255,255,255,0.15); }
  .cevt-sel-toolbar button svg { width: 14px; height: 14px; }

  /* Ticket popup */
  .cevt-ticket-popup { width: 380px; }
  .cevt-tab-row { display: flex; background: #f5f2ee; border-radius: 10px; padding: 3px; margin-bottom: 20px; }
  .cevt-tab-btn { flex: 1; padding: 8px; background: transparent; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; color: #9e948a; transition: background 0.15s, color 0.15s; }
  .cevt-tab-btn.active { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(28,24,20,0.1); }
  .cevt-ticket-body { display: flex; flex-direction: column; gap: 14px; }
  .cevt-toggle-row { display: flex; align-items: center; justify-content: space-between; }
  .cevt-toggle-label { font-size: 14px; color: var(--ink); }
  .cevt-toggle-sublabel { font-size: 12px; color: #9e948a; margin-top: 2px; }
  .cevt-toggle { width: 42px; height: 24px; background: #e8e2db; border-radius: 12px; cursor: pointer; position: relative; transition: background 0.2s; flex-shrink: 0; }
  .cevt-toggle.on { background: var(--accent); }
  .cevt-toggle-thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: left 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
  .cevt-toggle.on .cevt-toggle-thumb { left: 21px; }
  .cevt-price-row { display: flex; align-items: center; border: 1.5px solid #e8e2db; border-radius: 8px; overflow: hidden; transition: border-color 0.15s; }
  .cevt-price-row:focus-within { border-color: var(--accent); }
  .cevt-price-input { flex: 1; padding: 10px 14px; border: none; outline: none; font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 500; color: var(--ink); background: transparent; }
  .cevt-currency-badge { padding: 10px 14px; background: #f5f2ee; font-size: 13px; color: #6b6259; font-weight: 500; border-left: 1.5px solid #e8e2db; }
  .cevt-ticket-confirm { width: 100%; padding: 12px; background: #1c1814; color: #fff; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; font-weight: 500; margin-top: 8px; transition: background 0.15s; }
  .cevt-ticket-confirm:hover { background: #2d2520; }

  /* Capacity popup */
  .cevt-cap-popup { width: 340px; }
  .cevt-cap-toggle-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
  .cevt-cap-label { font-size: 14px; font-weight: 500; color: var(--ink); }
  .cevt-cap-sublabel { font-size: 12px; color: #9e948a; margin-top: 2px; }
  .cevt-cap-input-row { display: flex; align-items: center; gap: 10px; opacity: 0.4; pointer-events: none; transition: opacity 0.2s; }
  .cevt-cap-input-row.active { opacity: 1; pointer-events: auto; }
  .cevt-cap-input { flex: 1; padding: 10px 14px; border: 1.5px solid #e8e2db; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--ink); outline: none; transition: border-color 0.15s; }
  .cevt-cap-input:focus { border-color: var(--accent); }
  .cevt-cap-stepper { display: flex; flex-direction: column; gap: 2px; }
  .cevt-cap-step-btn { width: 28px; height: 20px; background: #f5f2ee; border: none; border-radius: 4px; cursor: pointer; font-size: 11px; color: #6b6259; display: flex; align-items: center; justify-content: center; transition: background 0.1s; }
  .cevt-cap-step-btn:hover { background: #e8e2db; }
  .cevt-cap-confirm { width: 100%; padding: 11px; background: var(--accent); color: #fff; border: none; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; cursor: pointer; font-weight: 500; margin-top: 20px; transition: background 0.15s; }
  .cevt-cap-confirm:hover { background: #2d8a8a; }

  @media (max-width: 640px) { .cevt-layout { grid-template-columns: 1fr; } .cevt-name-input { font-size: 30px; } }

  .events-workspace-surface { padding: 18px 20px; }
  .events-service-panel { margin-top: 18px; }

  .studio-header { display:flex; align-items:center; gap:12px; margin-bottom:16px; padding:12px 14px; background:var(--card-bg); border:1px solid var(--border); border-radius:12px; }
  .studio-header-label { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:#9e948a; font-weight:600; }
  .studio-event-select { flex:1; padding:8px 12px; border:1.5px solid var(--border); border-radius:8px; font-family:'DM Sans',sans-serif; font-size:14px; color:var(--ink); background:var(--card-bg); outline:none; cursor:pointer; }
  .studio-event-select:focus { border-color:var(--accent); }

  .studio-empty { text-align:center; padding:48px 24px; background:var(--card-bg); border:1px dashed var(--border); border-radius:14px; color:#9e948a; }
  .studio-empty i { font-size:32px; opacity:0.5; display:block; margin-bottom:10px; }
  .studio-empty-title { font-family:'Cormorant Garamond',serif; font-size:20px; color:var(--ink); margin-bottom:6px; }
  .studio-empty-body { font-size:13px; line-height:1.5; max-width:480px; margin:0 auto; }

  .studio-label { display:block; font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:#9e948a; font-weight:600; margin:14px 0 6px; }
  .studio-label code { background:#f5f2ee; padding:1px 5px; border-radius:4px; font-size:10.5px; }
  .studio-input { width:100%; padding:8px 12px; border:1.5px solid var(--border); border-radius:8px; font-family:'DM Sans',sans-serif; font-size:13px; color:var(--ink); background:var(--card-bg); outline:none; transition:border-color 0.15s; box-sizing:border-box; }
  .studio-input:focus { border-color:var(--accent); }
  .studio-textarea { width:100%; padding:10px 12px; border:1.5px solid var(--border); border-radius:8px; font-family:'DM Sans',sans-serif; font-size:13px; line-height:1.5; color:var(--ink); background:var(--card-bg); outline:none; resize:vertical; box-sizing:border-box; }
  .studio-textarea:focus { border-color:var(--accent); }
  .studio-checkbox { display:inline-flex; align-items:center; gap:6px; font-size:13px; color:var(--ink); cursor:pointer; }

  .studio-flow { background:var(--card-bg); border:1px solid var(--border); border-radius:14px; padding:20px 22px; }
  .studio-flow-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding-bottom:16px; border-bottom:1px solid var(--border); margin-bottom:18px; flex-wrap:wrap; }
  .studio-flow-title { font-family:'Cormorant Garamond',serif; font-size:24px; color:var(--ink); }
  .studio-flow-sub { font-size:12px; color:#9e948a; margin-top:2px; }
  .studio-flow-progress { min-width:200px; }
  .studio-flow-progress-bar { width:100%; height:6px; background:#f5f2ee; border-radius:999px; overflow:hidden; }
  .studio-flow-progress-fill { height:100%; background:var(--accent); transition:width 0.3s ease; }
  .studio-flow-progress-text { font-size:11px; color:#9e948a; margin-top:6px; text-align:right; font-weight:500; }
  .studio-flow-steps { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:10px; }
  .studio-flow-step { display:flex; gap:14px; padding:12px 14px; border-radius:10px; background:#fafaf7; border:1px solid var(--border); }
  .studio-flow-step.is-done { background:var(--accent-bg); border-color:var(--accent-shadow); }
  .studio-flow-step-indicator { width:28px; height:28px; border-radius:999px; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:600; color:#9e948a; background:#fff; border:1.5px solid var(--border); flex-shrink:0; }
  .studio-flow-step.is-done .studio-flow-step-indicator { color:var(--accent); border-color:var(--accent); background:#fff; font-size:18px; }
  .studio-flow-step-label { font-size:14px; font-weight:500; color:var(--ink); }
  .studio-flow-step-hint { font-size:12px; color:#9e948a; margin-top:2px; line-height:1.45; }
  .studio-flow-actions { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; align-items:center; }
  .studio-flow-pub-badge { display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border-radius:999px; background:var(--accent-bg); color:var(--accent); font-size:12px; font-weight:500; }

  .studio-tg-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
  @media (max-width: 900px) { .studio-tg-grid { grid-template-columns:1fr; } }
  .studio-tg-compose, .studio-tg-preview-col { background:var(--card-bg); border:1px solid var(--border); border-radius:14px; padding:18px 20px; }
  .studio-tg-row { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:6px; }
  .studio-tg-row .studio-input { flex:1; min-width:140px; }
  .studio-tg-actions { margin-top:18px; display:flex; gap:10px; }
  .studio-tg-preview { background:#e8f2ee; border-radius:14px; padding:16px; min-height:240px; }
  .studio-tg-bubble { background:#fff; border-radius:12px; padding:14px 16px; box-shadow:0 1px 3px rgba(0,0,0,0.06); max-width:480px; }
  .studio-tg-bubble-text { font-size:14px; line-height:1.55; color:var(--ink); white-space:pre-wrap; }
  .studio-tg-bubble-text b { font-weight:600; }
  .studio-tg-bubble-text a { color:var(--accent); text-decoration:underline; }
  .studio-tg-bubble-btn { display:block; margin-top:12px; text-align:center; background:var(--accent); color:#fff; padding:10px 14px; border-radius:8px; font-size:13px; font-weight:500; text-decoration:none; }
  .studio-tg-bubble-btn:hover { background:#155757; }

  .studio-rem-head { margin-bottom:16px; }
  .studio-rem-title { font-family:'Cormorant Garamond',serif; font-size:22px; color:var(--ink); }
  .studio-rem-sub { font-size:13px; color:#9e948a; margin-top:2px; line-height:1.5; }
  .studio-rem-list { display:flex; flex-direction:column; gap:14px; }
  .studio-rem-tpl { background:var(--card-bg); border:1px solid var(--border); border-radius:14px; padding:16px 18px; }
  .studio-rem-tpl-head { display:flex; align-items:center; justify-content:space-between; padding-bottom:12px; border-bottom:1px solid var(--border); margin-bottom:12px; }
  .studio-rem-tpl-name { display:flex; align-items:center; gap:10px; font-family:'Cormorant Garamond',serif; font-size:20px; color:var(--ink); }
  .studio-rem-tpl-dot { width:10px; height:10px; border-radius:999px; }
  .studio-rem-tpl-count { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:#9e948a; font-weight:600; }
  .studio-rem-tpl-rules { display:flex; flex-direction:column; gap:10px; }
  .studio-rem-empty { font-size:13px; color:#9e948a; padding:10px 4px; display:flex; flex-direction:column; align-items:flex-start; gap:10px; }
  .studio-rem-kit-btn { display:inline-flex; align-items:center; gap:6px; background:#fff; color:var(--accent); border:1.5px solid rgba(26,107,107,0.3); border-radius:8px; padding:7px 14px; font-size:13px; font-family:inherit; cursor:pointer; transition:background 0.12s,border-color 0.12s; }
  .studio-rem-kit-btn:hover { background:var(--accent-bg); border-color:var(--accent); }
  .studio-rem-kit-btn i { font-size:14px; }
  .studio-rem-rule { background:#fafaf7; border:1px solid var(--border); border-radius:10px; padding:12px; display:flex; flex-direction:column; gap:8px; }
  .studio-rem-rule-row { display:flex; gap:10px; align-items:center; flex-wrap:wrap; }
  .studio-rem-rule-row .studio-input { flex:1; min-width:140px; }
  .studio-rem-rule-row .studio-rem-subject { flex:1 1 100%; }
  .studio-rem-rule-row .studio-textarea { flex:1 1 100%; }
  .studio-rem-toggle { display:inline-flex; align-items:center; }
  .studio-rem-toggle input { width:16px; height:16px; cursor:pointer; }
  .studio-rem-tpl-actions { margin-top:14px; padding-top:12px; border-top:1px solid var(--border); display:flex; gap:8px; justify-content:flex-end; }
  .studio-rem-rule[data-channel="telegram"] .studio-rem-subject-row,
  .studio-rem-rule[data-channel="channel_post"] .studio-rem-subject-row { display:none; }
  .studio-rem-rule[data-channel="channel_post"] .studio-rem-var[data-personal="1"] { opacity:0.35; }
  .studio-rem-rule[data-channel="channel_post"] .studio-rem-var[data-personal="1"]:hover { opacity:0.6; }
  .studio-rem-channel-hint { font-size:11px; color:#9e948a; margin-top:-2px; padding:0 2px; line-height:1.4; }
  .studio-rem-rule:not([data-channel="channel_post"]) .studio-rem-channel-hint.is-channel { display:none; }
  .studio-rem-rule[data-channel="channel_post"] .studio-rem-channel-hint.is-attendee { display:none; }
  .studio-rem-vars-row { display:flex; flex-direction:column; gap:6px; }
  .studio-rem-vars-label { font-size:10px; text-transform:uppercase; letter-spacing:0.08em; color:#9e948a; font-weight:600; }
  .studio-rem-vars-list { display:flex; flex-wrap:wrap; gap:6px; }
  .studio-rem-var { font-family:'Geist Mono','JetBrains Mono',monospace; font-size:11px; color:var(--accent); background:var(--accent-bg); border:1px solid rgba(26,107,107,0.2); border-radius:6px; padding:3px 7px; cursor:pointer; transition:background 0.12s,border-color 0.12s; }
  .studio-rem-var:hover { background:#d4e8e8; border-color:var(--accent); }

  .events-metrics-loading, .events-metrics-error { padding:32px; text-align:center; color:#9e948a; font-size:14px; }
  .events-metrics-loading i { display:inline-block; animation:spin 1s linear infinite; margin-right:6px; }
  .events-metrics-error { color:#b04444; }

  .metrics-tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(180px, 1fr)); gap:14px; margin-bottom:22px; }
  .metrics-tile { background:var(--card-bg); border:1px solid var(--border); border-radius:12px; padding:16px 18px; }
  .metrics-tile-value { font-family:'Cormorant Garamond',serif; font-size:32px; color:var(--ink); line-height:1; }
  .metrics-tile-label { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:#9e948a; font-weight:600; margin-top:6px; }

  .metrics-section { background:var(--card-bg); border:1px solid var(--border); border-radius:14px; padding:18px 20px; margin-bottom:18px; }
  .metrics-section-header { display:flex; align-items:baseline; justify-content:space-between; margin-bottom:14px; gap:12px; }
  .metrics-section-header h4 { font-family:'Cormorant Garamond',serif; font-size:20px; color:var(--ink); margin:0; }
  .metrics-section-hint { font-size:11px; color:#9e948a; }

  .metrics-table-wrap { overflow-x:auto; }
  .metrics-table { width:100%; border-collapse:collapse; font-size:13px; }
  .metrics-table th, .metrics-table td { padding:9px 10px; text-align:left; border-bottom:1px solid var(--border); }
  .metrics-table th { font-size:10px; text-transform:uppercase; letter-spacing:0.08em; color:#9e948a; font-weight:600; }
  .metrics-table td { color:var(--ink); }
  .metrics-table .num { text-align:right; font-variant-numeric:tabular-nums; }
  .metrics-table tbody tr:last-child td { border-bottom:none; }
  .metrics-tpl-dot { display:inline-block; width:9px; height:9px; border-radius:999px; margin-right:8px; vertical-align:middle; }
  .metrics-empty { text-align:center; color:#9e948a; padding:18px; font-size:13px; }

  .metrics-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
  @media (max-width: 900px) { .metrics-grid { grid-template-columns:1fr; } }
  .metrics-event-list { display:flex; flex-direction:column; }
  .metrics-event-row { display:flex; align-items:center; gap:14px; padding:10px 0; border-bottom:1px solid var(--border); cursor:pointer; transition:background 0.12s; }
  .metrics-event-row:hover { background:#fafaf7; }
  .metrics-event-row:last-child { border-bottom:none; }
  .metrics-event-meta { flex:1; min-width:0; }
  .metrics-event-title { font-size:14px; color:var(--ink); font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
  .metrics-event-sub { font-size:11px; color:#9e948a; margin-top:2px; }
  .metrics-event-stat { display:flex; flex-direction:column; align-items:flex-end; min-width:64px; }
  .metrics-event-stat b { font-size:14px; font-weight:600; color:var(--ink); font-variant-numeric:tabular-nums; }
  .metrics-event-stat span { font-size:10px; color:#9e948a; text-transform:uppercase; letter-spacing:0.05em; }

  @keyframes spin { to { transform:rotate(360deg); } }

  .studio-story-modes { display:flex; gap:8px; margin-bottom:16px; flex-wrap:wrap; }
  .studio-story-mode { display:inline-flex; align-items:center; gap:8px; padding:9px 16px; border:1.5px solid var(--border); border-radius:999px; background:var(--card-bg); color:#7a7570; font-size:13px; cursor:pointer; transition:all 0.12s; font-family:inherit; }
  .studio-story-mode:hover { border-color:var(--accent); color:var(--accent); }
  .studio-story-mode.is-active { background:var(--accent); border-color:var(--accent); color:#fff; }
  .studio-story-body { display:flex; flex-direction:column; gap:16px; }
  .studio-story-context { background:var(--card-bg); border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
  .studio-story-week-list { display:flex; flex-direction:column; gap:6px; margin-top:8px; }
  .studio-story-week-row { display:flex; gap:12px; align-items:baseline; padding:6px 0; border-bottom:1px solid var(--border); font-size:13px; }
  .studio-story-week-row:last-child { border-bottom:none; }
  .studio-story-week-day { color:#9e948a; font-size:11px; text-transform:uppercase; letter-spacing:0.06em; min-width:36px; }
  .studio-story-week-title { flex:1; color:var(--ink); }
  .studio-story-week-time { color:#9e948a; font-variant-numeric:tabular-nums; font-size:12px; }
  .studio-story-output { background:var(--card-bg); border:1px solid var(--border); border-radius:12px; padding:14px 16px; }
  .studio-story-output-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
  .studio-story-actions { display:flex; gap:8px; margin-top:12px; flex-wrap:wrap; }
  .studio-story-schedule { display:flex; gap:8px; margin-top:10px; align-items:center; }
  .studio-story-schedule .studio-input { flex:1; }

  /* ── New coupon list rows (D1-backed system) ───────────────────── */
  .coupon-row { display:flex; align-items:center; gap:14px; padding:12px 14px; background:var(--card-bg); border:1px solid var(--border); border-radius:12px; margin-bottom:8px; }
  .coupon-row.is-inactive { opacity:0.55; }
  .coupon-row-main { flex:1; min-width:0; }
  .coupon-row-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .coupon-row-code { font-family:'Geist Mono','JetBrains Mono',monospace; font-size:14px; color:var(--ink); font-weight:600; letter-spacing:0.04em; }
  .coupon-row-rules { font-size:12px; color:#6b6259; margin-top:4px; }
  .coupon-row-owner { font-size:11px; color:#9e948a; margin-top:2px; }
  .coupon-row-expiry { font-size:10px; color:#9e948a; text-transform:uppercase; letter-spacing:0.05em; padding:2px 8px; background:#f5f2ee; border-radius:999px; }
  .coupon-row-uses { display:flex; flex-direction:column; align-items:center; min-width:60px; }
  .coupon-row-uses b { font-size:14px; color:var(--ink); font-variant-numeric:tabular-nums; }
  .coupon-row-uses span { font-size:10px; color:#9e948a; text-transform:uppercase; letter-spacing:0.05em; }
  .coupon-row-actions { display:flex; gap:6px; }
  .coupon-row-actions .btn-icon { width:32px; height:32px; padding:0; border-radius:8px; }
  .coupon-row-actions .btn-icon svg, .coupon-row-actions .btn-icon i { font-size:14px; }
  .coupon-row-actions .btn-icon.danger { color:#b04444; }
  .coupon-row-actions .btn-icon.danger:hover { background:#fdf0f0; border-color:#b04444; }

  .coupon-type-badge { font-size:10px; font-weight:600; text-transform:uppercase; letter-spacing:0.05em; padding:2px 8px; border-radius:999px; }
  .coupon-type-badge.type-global { background:var(--accent-bg); color:var(--accent); }
  .coupon-type-badge.type-personal { background:#f5e8d6; color:#8a5a1a; }
  .coupon-type-badge.type-subscriber_monthly { background:#ede4f5; color:#5a3a8a; }

  /* Editor modal additions */
  .coupon-rules-card { background:#fafaf7; border:1px solid var(--border); border-radius:10px; padding:14px; margin-top:14px; }
  .coupon-rules-title { font-size:11px; text-transform:uppercase; letter-spacing:0.08em; color:#9e948a; font-weight:600; margin-bottom:10px; }
  .coupon-rule-row { display:grid; grid-template-columns:80px 1fr 100px; gap:8px; align-items:center; margin-bottom:8px; }
  .coupon-rule-row:last-child { margin-bottom:0; }
  .coupon-rule-row label { font-size:13px; color:var(--ink); }
  .coupon-checkbox { display:inline-flex; align-items:center; gap:8px; font-size:13px; color:var(--ink); cursor:pointer; margin-bottom:10px; }
  .coupon-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:10px; }

  .coupon-sub-card { background:#ede4f5; border:1px solid rgba(90, 58, 138, 0.2); border-radius:12px; padding:16px 18px; margin-bottom:16px; }
  .coupon-sub-card.error { background:#fdf0f0; border-color:#b04444; color:#b04444; }
  .coupon-sub-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; flex-wrap:wrap; }
  .coupon-sub-title { font-family:'Cormorant Garamond',serif; font-size:18px; color:var(--ink); }
  .coupon-sub-sub { font-size:12px; color:#6b6259; margin-top:2px; line-height:1.4; max-width:520px; }
  .coupon-sub-toggle { display:inline-flex; align-items:center; gap:6px; font-size:12px; color:var(--ink); cursor:pointer; }
  .coupon-sub-rules { display:flex; flex-direction:column; gap:8px; }
  .coupon-sub-actions { margin-top:12px; display:flex; gap:8px; justify-content:flex-end; }

  /* ── Promo links (Dṛṣṭi /start gift_X) ─────────────────────────── */
  .promo-card { background:var(--card-bg); border:1px solid var(--border); border-radius:12px; padding:16px 18px; margin-bottom:16px; }
  .promo-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:12px; flex-wrap:wrap; }
  .promo-card-title { font-family:'Cormorant Garamond',serif; font-size:18px; color:var(--ink); }
  .promo-card-sub { font-size:12px; color:#6b6259; margin-top:2px; line-height:1.4; max-width:560px; }
  .promo-card-sub code { background:#f5f2ee; padding:1px 5px; border-radius:4px; font-size:11px; }
  .promo-list { display:flex; flex-direction:column; gap:8px; }
  .promo-row { display:flex; align-items:center; gap:14px; padding:12px 14px; background:#fafaf7; border:1px solid var(--border); border-radius:10px; }
  .promo-row.is-inactive { opacity:0.55; }
  .promo-row-main { flex:1; min-width:0; }
  .promo-row-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
  .promo-row-name { font-size:14px; color:var(--ink); font-weight:500; }
  .promo-row-slug { font-family:'Geist Mono','JetBrains Mono',monospace; font-size:11px; color:#6b6259; background:#ede4f5; padding:2px 8px; border-radius:999px; }
  .promo-row-rules { font-size:12px; color:#6b6259; margin-top:4px; }
  .promo-row-link { display:flex; gap:6px; margin-top:6px; align-items:center; }
  .promo-row-link input { flex:1; min-width:0; padding:5px 8px; border:1px solid var(--border); border-radius:6px; font-family:'Geist Mono','JetBrains Mono',monospace; font-size:11px; color:var(--ink); background:#fff; }
  .promo-row-uses { display:flex; flex-direction:column; align-items:center; min-width:60px; }
  .promo-row-uses b { font-size:14px; color:var(--ink); font-variant-numeric:tabular-nums; }
  .promo-row-uses span { font-size:10px; color:#9e948a; text-transform:uppercase; letter-spacing:0.05em; }
  .promo-row-actions { display:flex; gap:6px; }
  .promo-row-actions .btn-icon { width:32px; height:32px; padding:0; }
  .promo-row-actions .btn-icon i { font-size:14px; }
  .promo-row-actions .btn-icon.danger { color:#b04444; }
  .promo-row-actions .btn-icon.danger:hover { background:#fdf0f0; border-color:#b04444; }
