.dashboard-view, .guest-view { width: min(1260px, calc(100% - 64px)); margin: 0 auto; padding: 43px 0 70px; }
.event-row:hover { background: rgba(244, 233, 226, .72); }
.status-mark--active { color: #783b2b; background: #f1e1d8; }
.status-mark--suspended, .status-mark--cancelled { color: #783b2b; background: #f4e6df; }
.invitation-state--opened { color: #8c4a34; }
.invitation-state--opened::before { background: #a45436; }
.rsvp-state--yes { color: #8c4a34; }
.icon-button:hover { border-color: #d6c4b6; color: #a45436; }
.created-link { border-left-color: #a45436; background: #f7eee8; }
.created-link > div:first-child > a { color: #8c4a34; }
.dashboard-intro { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding-bottom: 31px; border-bottom: 1px solid var(--line-strong); }
.dashboard-intro h1, .guest-heading h1 { margin: 8px 0 6px; font: 500 36px/1.18 var(--font-display); }
.dashboard-intro p, .guest-heading p { margin: 0; color: var(--ink-soft); font-size: 13px; }
.dashboard-intro .button { min-width: 160px; text-decoration: none; }
.dashboard-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-bottom: 1px solid var(--line-strong); }
.metric { min-width: 0; padding: 22px 20px 20px 0; display: grid; gap: 9px; }
.metric + .metric { padding-left: 20px; border-left: 1px solid var(--line); }
.metric-label { color: var(--ink-soft); font-size: 10px; font-weight: 600; }
.metric-value { font: 500 29px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.metric-detail { color: #879088; font-size: 10px; }
.events-section { padding-top: 35px; }
.section-heading { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: end; }
.section-heading h2 { margin: 7px 0 0; font: 500 23px/1.2 var(--font-display); }
.event-count { color: var(--ink-soft); font-size: 11px; }
.event-list { border-top: 1px solid var(--line-strong); }
.event-row { min-height: 87px; padding: 15px 12px 15px 0; display: grid; grid-template-columns: minmax(190px, 1.8fr) minmax(110px, 1fr) minmax(100px, .85fr) minmax(100px, .8fr) minmax(100px, .8fr) minmax(170px, auto); gap: 15px; align-items: center; border-bottom: 1px solid var(--line); transition: background-color .15s; cursor: pointer; }
.event-row:hover { background: rgba(233,239,232,.55); }
.event-primary { min-width: 0; display: grid; gap: 5px; }
.event-primary a { overflow: hidden; color: var(--ink); font: 500 17px/1.2 var(--font-display); text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.event-primary a:hover { color: var(--forest); }
.event-type-label { color: var(--ink-soft); font-size: 10px; }
.event-column { display: grid; gap: 5px; }
.event-column-label { color: #91988f; font-size: 9px; text-transform: uppercase; }
.event-column-value { font-size: 11px; font-variant-numeric: tabular-nums; }
.status-mark { width: fit-content; padding: 5px 8px; color: #656e66; background: #edf0e9; font-size: 9px; font-weight: 700; }
.status-mark--active { color: #245a42; background: #e3eee5; }
.status-mark--suspended, .status-mark--cancelled { color: #8d4439; background: #f5e7e1; }
.event-manage { flex: 0 0 auto; }
.event-empty { padding: 64px 22px; display: grid; justify-items: center; text-align: center; }
.event-empty h3 { margin: 12px 0 5px; font: 500 23px var(--font-display); }
.event-empty p { max-width: 340px; margin: 0 0 20px; color: var(--ink-soft); font-size: 12px; line-height: 1.6; }
.empty-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; color: var(--forest); font: 19px var(--font-display); }
.dashboard-error { padding: 12px 14px; border-left: 3px solid var(--error); color: var(--error); background: #fbefec; font-size: 12px; }

.guest-view { padding-top: 24px; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; color: #929890; font-size: 10px; }
.breadcrumbs a { color: var(--forest); text-decoration: none; }
.guest-heading { margin: 24px 0 23px; display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.guest-heading h1 { font-size: 34px; }
.guest-heading .button { flex: 0 0 auto; }
.guest-metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line-strong); }
.guest-metrics .metric { padding-block: 16px; }
.guest-metrics .metric-value { font-size: 24px; }
.guest-section { padding-top: 25px; }
.guest-toolbar { margin-bottom: 13px; display: flex; justify-content: space-between; align-items: end; gap: 18px; }
.guest-toolbar h2 { margin: 0 0 5px; font: 500 22px var(--font-display); }
.guest-search { display: flex; gap: 8px; align-items: center; }
.guest-invitation-filter { min-height: 39px; min-width: 165px; padding: 8px 30px 8px 11px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fffefa; font: inherit; font-size: 11px; }
.guest-sent-indicator { width: 12px; height: 12px; margin: 0; accent-color: #a45436; vertical-align: middle; }
.guest-sent-indicator:disabled { opacity: 1; cursor: default; }
.guest-toolbar-actions { display: flex; justify-content: end; align-items: center; flex-wrap: wrap; gap: 7px; }
.guest-search input { width: min(290px, 34vw); min-height: 39px; }
.guest-search .button { min-height: 39px; }
.guest-table-wrap { border-top: 1px solid var(--line-strong); }
.guest-table { width: 100%; border-collapse: collapse; text-align: left; }
.guest-table th { padding: 12px 10px 12px 0; color: #828b82; font-size: 9px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.guest-table td { padding: 14px 10px 14px 0; border-top: 1px solid var(--line); color: #424a44; font-size: 11px; vertical-align: middle; }
  .guest-table tr:hover td { background: rgba(244,233,226,.45); }
.guest-name { min-width: 135px; display: grid; gap: 4px; }
.guest-name strong { color: var(--ink); font: 500 15px var(--font-display); }
.guest-name span { color: var(--ink-soft); font-size: 9px; }
.invitation-state { display: inline-flex; align-items: center; gap: 6px; color: #667168; font-size: 10px; }
.invitation-state::before { width: 6px; height: 6px; border-radius: 50%; background: #b7bdb6; content: ""; }
.invitation-state--opened { color: #27634d; }
.invitation-state--opened::before { background: #4b8a69; }
.rsvp-state { color: var(--ink-soft); font-size: 10px; }
.rsvp-state--yes { color: #236247; font-weight: 700; }
.rsvp-state--maybe { color: #987323; font-weight: 700; }
.rsvp-state--no { color: #a04438; font-weight: 700; }
.row-actions { display: flex; gap: 5px; }
.guest-table .row-actions .icon-button { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 7px; border-radius: 8px; }
.guest-table .row-actions { flex-wrap: wrap; }
.guest-nav-button { min-height: 38px; padding: 9px 15px; font-size: 12px; font-weight: 700; }
.guest-manage { color: #fff !important; background: #a45436 !important; border-color: #a45436 !important; }
.guest-manage:hover { background: #843f2b !important; }
.guest-invitation-actions { margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.guest-link-open { max-width: 175px; color: #8c4a34; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest-whatsapp-link { color: #218c62; text-decoration: none; }
.guest-table .icon-button svg, .guest-whatsapp-link svg { width: 18px; height: 18px; display: block; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.guest-whatsapp-link:hover { color: #176b49; border-color: #b8d9c9; background: #f1faf5; }
.guest-table .icon-button:focus-visible, .guest-whatsapp-link:focus-visible { outline: 2px solid #a45436; outline-offset: 2px; }
.guest-table-wrap { overflow-x: auto; }
.guest-table { min-width: 860px; }
.icon-button { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 3px; color: var(--ink-soft); background: transparent; cursor: pointer; font-size: 15px; }
.icon-button:hover { border-color: var(--line-strong); color: var(--forest); background: white; }
.icon-button--danger:hover { border-color: #e3c5bc; color: var(--error); background: #fff9f7; }
.guest-form-panel { margin: 0 0 18px; padding: 20px; border: 1px solid var(--line); background: #fffefa; }
.import-preview-panel { margin: 0 0 18px; padding: 20px; border: 1px solid var(--line); background: #fffefa; }
.import-summary { margin: 0 0 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.import-stat { padding: 11px 12px 11px 0; display: flex; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: 10px; }
.import-stat + .import-stat { padding-left: 12px; border-left: 1px solid var(--line); }
.import-stat strong { color: var(--ink); font-size: 13px; }
.import-errors { max-height: 160px; overflow: auto; color: #9d493c; font-size: 10px; }
.import-errors ul { margin: 8px 0; padding-left: 20px; }
.import-errors li { margin: 5px 0; }
.form-panel-heading { margin-bottom: 17px; display: flex; justify-content: space-between; align-items: start; }
.form-panel-heading h3 { margin: 5px 0 0; font: 500 21px var(--font-display); }
.guest-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.guest-form-grid input, .guest-form-grid select { min-height: 40px; }
.form-actions { margin-top: 17px; display: flex; justify-content: end; gap: 9px; }
.created-link { margin: 0 0 17px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; border-left: 3px solid var(--forest); background: #edf3ed; }
.created-link p { margin: 5px 0; font: 500 15px var(--font-display); }
.created-link > div:first-child > a { max-width: 580px; display: block; overflow-wrap: anywhere; color: var(--forest); font-size: 10px; }
.link-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.link-actions .button { min-height: 38px; text-decoration: none; }
.empty-state { padding: 47px 18px; display: grid; justify-items: center; text-align: center; }
.empty-state h3 { margin: 11px 0 5px; font: 500 21px var(--font-display); }
.empty-state p { max-width: 330px; margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); border: 0; }

@media (max-width: 900px) {
  .dashboard-view, .guest-view { width: calc(100% - 38px); }
  .dashboard-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dashboard-metrics .metric:nth-child(4) { padding-left: 0; border-left: 0; }
  .dashboard-metrics .metric:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .event-row { grid-template-columns: minmax(150px, 1.5fr) minmax(100px, 1fr) minmax(90px, .8fr) minmax(80px, .7fr) minmax(110px, auto); }
  .event-row .event-rsvp { display: none; }
  .event-row .event-total { display: none; }
  .guest-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .topbar { padding-inline: 15px; }
  .topbar-right { gap: 8px; }
  .dashboard-view, .guest-view { width: calc(100% - 30px); padding-top: 27px; }
  .dashboard-intro { align-items: start; flex-direction: column; gap: 16px; padding-bottom: 20px; }
  .dashboard-intro h1 { max-width: 360px; font-size: 30px; }
  .dashboard-intro p { font-size: 11px; }
  .dashboard-intro .button { min-width: 0; }
  .dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-metrics .metric { padding: 14px 7px 13px 0; }
  .dashboard-metrics .metric + .metric { padding-left: 12px; }
  .dashboard-metrics .metric:nth-child(3) { border-left: 0; padding-left: 0; }
  .dashboard-metrics .metric:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .metric-value { font-size: 25px; }
  .events-section { padding-top: 25px; }
  .section-heading h2 { font-size: 21px; }
  .event-row { position: relative; min-height: auto; padding: 15px 24px 15px 2px; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); gap: 12px 10px; }
  .event-primary { grid-column: 1 / -1; padding-right: 10px; }
  .event-primary a { font-size: 17px; }
  .event-row .event-date, .event-row .event-status, .event-row .event-guests, .event-row .event-rsvp { display: grid; }
  .event-row .event-total { display: grid; }
  .event-row-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .guest-view { padding-top: 18px; }
  .guest-heading { margin: 17px 0; align-items: start; flex-direction: column; gap: 13px; }
  .guest-heading h1 { max-width: calc(100vw - 36px); font-size: 29px; overflow-wrap: anywhere; }
  .guest-heading p { font-size: 11px; }
  .guest-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guest-metrics .metric { padding: 12px 5px 11px 0; }
  .guest-metrics .metric + .metric { padding-left: 8px; }
  .guest-metrics .metric:nth-child(4) { border-left: 0; padding-left: 0; }
  .guest-metrics .metric:nth-child(n + 4) { border-top: 1px solid var(--line); }
  .guest-metrics .metric-value { font-size: 21px; }
  .guest-toolbar { align-items: stretch; flex-direction: column; }
  .guest-toolbar-actions { justify-content: start; }
  .guest-search { width: 100%; }
  .guest-search input { width: auto; flex: 1; }
  .guest-table-wrap { border-top: 0; overflow: visible; }
  .guest-table, .guest-table tbody, .guest-table tr, .guest-table td { display: block; width: 100%; min-width: 0; }
  .guest-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .guest-table tr { position: relative; margin: 0 0 7px; padding: 10px 10px 9px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 9px; border: 1px solid var(--line); border-radius: 10px; background: #fffefa; box-shadow: 0 3px 11px rgba(48, 36, 28, .035); }
  .guest-table td { width: auto; padding: 0; border: 0; }
  .guest-table td:first-child { position: absolute; top: 11px; left: 10px; width: 12px; }
  .guest-table td:nth-child(2) { grid-column: 1 / -1; padding: 0 0 4px 18px; border-bottom: 1px solid var(--line); }
  .guest-table td:not(:first-child):not(:nth-child(2))::before { content: attr(data-label) " \00B7 "; color: #735f54; font-size: 9px; font-weight: 700; }
  .guest-table td:last-child { grid-column: 1 / -1; padding-top: 5px; border-top: 1px solid var(--line); }
  .guest-table td:nth-child(8)::before { content: none; }
  .guest-invitation-actions { gap: 5px; }
  .guest-link-open { max-width: min(130px, 42vw); }
  .guest-nav-button { min-height: 34px; padding: 7px 10px; font-size: 10px; }
  .topbar-right a[data-i18n="backToEvents"] { display: none; }
  .guest-form-panel { padding: 15px 13px; }
  .import-preview-panel { padding: 15px 13px; }
  .import-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .import-stat:nth-child(3) { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .import-stat:nth-child(4) { border-top: 1px solid var(--line); }
  .guest-form-grid { grid-template-columns: 1fr 1fr; gap: 11px; }
  .guest-form-grid input, .guest-form-grid select { min-height: 39px; padding-inline: 8px; font-size: 11px; }
  .created-link { align-items: start; flex-direction: column; gap: 10px; }
  .link-actions { width: 100%; }
  .link-actions .button { flex: 1; padding-inline: 8px; gap: 6px; font-size: 10px; }
  .guest-table .row-actions { justify-content: flex-start; }
}
@media (max-width: 360px) {
  .dashboard-view, .guest-view { width: calc(100% - 24px); }
  .topbar .brand { font-size: 19px; }
  .topbar-right { gap: 8px; }
  .topbar .text-button { font-size: 10px; }
  .topbar .guest-nav-button { padding-inline: 8px; font-size: 9px; }
  .guest-form-grid { grid-template-columns: 1fr; }
  .guest-metrics .metric-label { font-size: 8px; }
}
.event-row-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.event-row-actions .button{white-space:nowrap}.template-card-wrap{display:flex;flex-direction:column;gap:8px}.template-preview-button{align-self:flex-start}

/* Elyvia logo palette */
.dashboard-view .event-row:hover{background:rgba(244,233,226,.72)}.guest-table tr:hover td{background:rgba(244,233,226,.45)}.status-mark--active{color:#783b2b;background:#f1e1d8}.invitation-state--opened{color:#8c4a34}.invitation-state--opened::before{background:#a45436}.rsvp-state--yes{color:#8c4a34}.created-link{border-left-color:#a45436;background:#f7eee8}.created-link>div:first-child>a{color:#8c4a34}

/* Warm, logo-aligned dashboard typography */
.metric-detail,
.event-column-label,
.breadcrumbs,
.guest-table th,
.guest-table td:not(:first-child)::before,
.guest-name span,
.guest-heading p,
.dashboard-intro p { color: #746052; }
.guest-table td { color: #453a32; }
.status-mark { color: #6d5143; background: #f3e8e0; }
.invitation-state--opened,
.rsvp-state--yes { color: #8c4a34; }
.rsvp-state--maybe { color: #80632f; }
