/* ==========================================================================
   Pixel Memori — Design system untuk panel Admin & Dashboard Pelanggan
   Dimuat SETELAH style.css; menyempurnakan komponen yang sudah ada dan
   menambah komponen baru (tombol, notifikasi, toast, dialog, breadcrumb, dll).
   ========================================================================== */

:root {
  --info-bg: #e8f0fb;
  --info-text: #2a5aa6;
  --danger-solid: #c23b3b;
  --danger-solid-hover: #a82f2f;
  --ring: 0 0 0 3px rgba(184, 118, 63, 0.28);
  --shadow-lg: 0 24px 60px -24px rgba(30, 20, 15, 0.35);
  --topbar-h: 68px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body { background: var(--shell-bg); line-height: 1.5; }
body.auth-page { background: var(--bg); }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent-1); outline-offset: 2px; }
::selection { background: rgba(184, 118, 63, 0.25); }

.skip-link {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 13px; text-decoration: none; transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; }

/* ---------------------------------------------------------------- Sidebar */

.sidebar { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.sidebar-brand { margin-bottom: 6px; }
.sidebar-link { position: relative; }
.sidebar-link-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-link.active { font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06); }
.sidebar-link .pill-mini { margin-left: auto; min-width: 20px; text-align: center; line-height: 1.5; }
.sidebar-link .pill-mini.tone-warn { background: #f3c26b; color: #3a1622; }
.sidebar-link .pill-mini.tone-info { background: rgba(255,255,255,0.88); color: #3a1622; }

.sidebar-help {
  margin: 8px 14px 4px; padding: 16px 16px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px; color: rgba(255,255,255,0.75);
  font-size: 12.5px; line-height: 1.5;
}
.sidebar-help strong { display: block; color: #fff; font-size: 13.5px; margin-top: 8px; }
.sidebar-help p { margin: 3px 0 12px; }
.sidebar-help-ico {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(240, 200, 150, 0.18); color: #f0c896;
}
.sidebar-help-ico svg { width: 16px; height: 16px; }
.sidebar-help a {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #fff; color: var(--sidebar-bg-1); text-decoration: none;
  font-weight: 600; font-size: 12.5px; padding: 9px 12px; border-radius: 10px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.sidebar-help a:hover { transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgba(0,0,0,0.5); }
.sidebar-help a svg { width: 15px; height: 15px; color: #1f9d55; }

/* ----------------------------------------------------------------- Topbar */

.topbar { min-height: var(--topbar-h); padding: 12px 32px; backdrop-filter: saturate(1.4) blur(8px); background: rgba(255,255,255,0.92); }
.topbar-title h1 { font-size: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.topbar-icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; list-style: none; text-decoration: none; padding: 0;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.topbar-icon-btn::-webkit-details-marker { display: none; }
.topbar-icon-btn svg { width: 18px; height: 18px; }
.topbar-icon-btn:hover, details[open] > .topbar-icon-btn { border-color: var(--accent-1); color: var(--accent-1); background: #fffaf5; }

.notif-count {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--danger-solid); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 19px; text-align: center;
  border: 2px solid #fff;
}

.notif-menu { position: relative; }
.notif-menu > summary { list-style: none; }
.notif-panel {
  position: absolute; right: -6px; top: calc(100% + 10px); width: 360px; max-width: calc(100vw - 24px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  z-index: 60; overflow: hidden; animation: pmPop 0.14s ease-out;
}
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.notif-head strong { font-size: 14px; }
.notif-list { list-style: none; margin: 0; padding: 6px; max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex; gap: 12px; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: background 0.12s ease;
}
.notif-item:hover { background: var(--panel); }
.notif-ico { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.notif-ico svg { width: 16px; height: 16px; }
.notif-item.tone-warn .notif-ico   { background: var(--warn-bg); color: var(--warn-text); }
.notif-item.tone-info .notif-ico   { background: var(--info-bg); color: var(--info-text); }
.notif-item.tone-danger .notif-ico { background: var(--off-bg); color: var(--off-text); }
.notif-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-body strong { font-size: 13px; line-height: 1.35; }
.notif-body span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.notif-empty { text-align: center; padding: 30px 20px 34px; color: var(--muted); }
.notif-empty svg { width: 34px; height: 34px; color: var(--ok-text); opacity: 0.8; }
.notif-empty p { margin: 8px 0 0; font-size: 13px; }

@keyframes pmPop { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }

.user-menu > summary { padding: 4px 10px 4px 4px; background: #fff; transition: border-color 0.15s ease; }
.user-menu[open] > summary { border-color: var(--accent-1); }
.topbar-user-info { text-align: left; }
.topbar-user-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.topbar-caret svg { width: 14px; height: 14px; color: var(--muted); transition: transform 0.15s ease; }
.user-menu[open] .topbar-caret svg { transform: rotate(180deg); }
.user-menu-panel { animation: pmPop 0.14s ease-out; min-width: 220px; border-radius: 14px; box-shadow: var(--shadow-lg); }
.user-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-menu-head strong { display: block; font-size: 13.5px; }
.user-menu-head span { font-size: 11.5px; color: var(--muted); }

/* ------------------------------------------------------------ Breadcrumbs */

.breadcrumbs { max-width: 1180px; margin: 0 auto 14px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; font-size: 12.5px; color: var(--muted); }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumbs li + li::before { content: '/'; color: #cdbcae; }
.breadcrumbs a { color: var(--muted); text-decoration: none; font-weight: 500; }
.breadcrumbs a:hover { color: var(--accent-2); text-decoration: underline; }
.breadcrumbs li[aria-current] { color: var(--ink); font-weight: 600; }

/* ----------------------------------------------------------------- Footer */

.app-footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 32px 24px; font-size: 12px; color: var(--muted);
  border-top: 1px solid var(--line); background: transparent;
}
.app-footer a { color: var(--muted); text-decoration: none; }
.app-footer a:hover { color: var(--accent-2); }
.app-footer-links { display: inline-flex; gap: 8px; }

/* ------------------------------------------------------------- Page header */

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head h2 { font-size: 22px; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; max-width: 640px; }
.page-head-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Alerts */

.alert { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; font-weight: 400; line-height: 1.5; transition: opacity 0.2s ease, transform 0.2s ease; }
.alert.is-leaving { opacity: 0; transform: translateY(-6px); }
.alert-icon { width: 22px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.alert-icon svg { width: 100%; height: 100%; }
.alert-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.alert-body strong { font-weight: 700; font-size: 13.5px; }
.alert-body span { font-size: 13.5px; }
.alert-close { background: transparent; border: none; box-shadow: none; color: inherit; opacity: 0.55; padding: 4px; border-radius: 8px; width: 28px; height: 28px; justify-content: center; }
.alert-close:hover { opacity: 1; background: rgba(0,0,0,0.06); transform: none; box-shadow: none; }
.alert-close svg { width: 16px; height: 16px; }
.alert-info { background: var(--info-bg); color: var(--info-text); border-color: rgba(42,90,166,0.18); }
.alert-warn { background: var(--warn-bg); color: var(--warn-text); border-color: rgba(154,106,21,0.2); }

/* ------------------------------------------------------------ Toast / Modal */

.toast-wrap { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; width: 360px; max-width: calc(100vw - 28px); }
.toast {
  display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; background: #fff;
  border: 1px solid var(--line); border-left-width: 4px; border-radius: 12px; box-shadow: var(--shadow-lg);
  font-size: 13.5px; opacity: 0; transform: translateX(16px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.in { opacity: 1; transform: none; }
.toast-ico { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.toast-ico svg { width: 100%; height: 100%; }
.toast-msg { flex: 1; line-height: 1.45; }
.toast-x { background: transparent; border: none; box-shadow: none; padding: 2px; color: var(--muted); width: 22px; height: 22px; justify-content: center; }
.toast-x:hover { color: var(--ink); transform: none; box-shadow: none; }
.toast-x svg { width: 15px; height: 15px; }
.toast-success { border-left-color: var(--ok-text); } .toast-success .toast-ico { color: var(--ok-text); }
.toast-error   { border-left-color: var(--off-text); } .toast-error .toast-ico   { color: var(--off-text); }
.toast-info    { border-left-color: var(--info-text); } .toast-info .toast-ico    { color: var(--info-text); }

.modal-overlay { position: fixed; inset: 0; z-index: 300; background: rgba(28, 14, 18, 0.55); backdrop-filter: blur(2px); display: flex; align-items: center; justify-content: center; padding: 20px; animation: pmFade 0.15s ease-out; }
.modal-overlay[hidden] { display: none; }
.modal { background: #fff; border-radius: 20px; padding: 28px 26px 22px; width: 100%; max-width: 410px; text-align: center; box-shadow: var(--shadow-lg); animation: pmPop 0.18s ease-out; }
.modal-ico { width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.modal-ico svg { width: 26px; height: 26px; }
.modal.tone-danger .modal-ico { background: var(--off-bg); color: var(--off-text); }
.modal.tone-primary .modal-ico { background: var(--panel); color: var(--accent-2); }
.modal h3 { font-size: 18px; margin-bottom: 8px; }
.modal p { margin: 0 0 22px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; justify-content: center; }
html.modal-open { overflow: hidden; }
@keyframes pmFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------------------------------------------------------- Buttons */

button, .btn, .btn-primary {
  min-height: 40px; border-radius: 11px; line-height: 1.2; gap: 7px; justify-content: center;
}
button:disabled, .btn:disabled, .btn[aria-disabled=true] { opacity: 0.6; cursor: not-allowed; transform: none !important; }
button svg, .btn svg, .btn-small svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn {
  font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer;
  display: inline-flex; align-items: center; padding: 9px 18px; border: 1px solid transparent;
  background: linear-gradient(120deg, var(--accent-1), var(--accent-2)); color: #fff;
  box-shadow: 0 6px 18px -8px rgba(140, 63, 82, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(140, 63, 82, 0.55); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn-outline:hover { border-color: var(--accent-1); color: var(--accent-1); background: #fffaf5; box-shadow: none; transform: none; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; box-shadow: none; }
.btn-ghost:hover { background: var(--panel); color: var(--ink); box-shadow: none; transform: none; }
.btn-success { background: linear-gradient(120deg, #2fa35a, #1f7d43); box-shadow: 0 6px 16px -8px rgba(31,125,67,0.55); }
.btn-success:hover { box-shadow: 0 10px 20px -8px rgba(31,125,67,0.6); }
.btn-danger-solid { background: var(--danger-solid); box-shadow: 0 6px 16px -8px rgba(194,59,59,0.55); }
.btn-danger-solid:hover { background: var(--danger-solid-hover); box-shadow: 0 10px 20px -8px rgba(194,59,59,0.6); }
.btn-sm { min-height: 34px; padding: 6px 13px; font-size: 13px; border-radius: 9px; }
.btn-lg { min-height: 46px; padding: 12px 26px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 36px; min-height: 36px; padding: 0; }

/* Kelas lama dirapikan agar seragam */
.btn-small { min-height: 34px; padding: 6px 13px; border-radius: 9px; background: #fff; transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease; }
.btn-small:hover { background: #fffaf5; }
.btn-small.btn-danger, .btn-danger { color: var(--off-text); border-color: #efcaca; background: #fff; }
.btn-small.btn-danger:hover, .btn-danger:hover { background: var(--off-bg); border-color: #e5b0b0; color: var(--off-text); }
.btn-secondary { min-height: 40px; }

/* Loading */
.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.is-loading > * { visibility: hidden; }
.is-loading::after {
  content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff; animation: pmSpin 0.7s linear infinite;
}
.btn-outline.is-loading::after, .btn-small.is-loading::after, .btn-ghost.is-loading::after { border-color: rgba(0,0,0,0.15); border-top-color: var(--accent-2); }
@keyframes pmSpin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- Badges / chips */

.badge { padding: 3px 11px; font-size: 11.5px; white-space: nowrap; }
.badge-info { background: var(--info-bg); color: var(--info-text); }
.badge-muted { background: #efe9e3; color: #6f6258; }
.badge-plain::before { display: none; }

/* ------------------------------------------------------------------- Cards */

.card { transition: box-shadow 0.2s ease; }
.card-header { padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.card-header-text p { font-size: 13px; line-height: 1.55; }
.card-footer-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 12.5px; color: var(--muted); }

.stat-card { transition: transform 0.15s ease, box-shadow 0.15s ease; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Detail <details> yang dipakai sebagai kartu lipat */
.collapse { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.collapse > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 24px; user-select: none;
}
.collapse > summary::-webkit-details-marker { display: none; }
.collapse > summary .collapse-caret { margin-left: auto; color: var(--muted); transition: transform 0.18s ease; }
.collapse > summary .collapse-caret svg { width: 18px; height: 18px; }
.collapse[open] > summary .collapse-caret { transform: rotate(180deg); }
.collapse[open] > summary { border-bottom: 1px solid var(--line); }
.collapse-body { padding: 24px; }
.collapse > summary:hover { background: #fffaf5; border-radius: var(--radius-lg); }

/* -------------------------------------------------------------- Empty state */

.empty-state { text-align: center; padding: 38px 20px; color: var(--muted); }
.empty-ico { width: 54px; height: 54px; border-radius: 50%; background: var(--panel); color: var(--accent-2); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.empty-ico svg { width: 24px; height: 24px; }
.empty-state h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); font-family: 'Inter', sans-serif; font-weight: 600; }
.empty-state p { margin: 0 auto 14px; font-size: 13px; max-width: 360px; line-height: 1.55; }
.table td.empty-cell { padding: 0; }

/* ------------------------------------------------------------------ Tables */

.table th { position: sticky; top: 0; }
.table tbody tr { transition: background 0.12s ease; }
.table td { vertical-align: middle; }
.table-responsive { border-radius: 12px; }
.table-search input { height: 40px; }

/* ------------------------------------------------------------------- Forms */

.field-hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); line-height: 1.5; }
label .req { color: var(--off-text); margin-left: 2px; }
.check-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.check-row label { margin: 0; color: var(--ink); font-size: 13.5px; font-weight: 500; cursor: pointer; flex: 1; }
.check-row input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--accent-2); flex-shrink: 0; cursor: pointer; }
.check-row:hover { border-color: var(--accent-1); }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
input:disabled, select:disabled, textarea:disabled { background: #f4f1ee; color: #9a8e84; cursor: not-allowed; }
input[type=checkbox] { accent-color: var(--accent-2); }

.input-group { position: relative; }
.input-group input { padding-right: 46px; }
.input-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; min-height: 34px; padding: 0; background: transparent; box-shadow: none; color: var(--muted); border-radius: 8px; }
.input-eye:hover { background: var(--panel); color: var(--ink); transform: translateY(-50%); box-shadow: none; }
.input-eye.is-on { color: var(--accent-2); }

/* Utilitas kecil (pengganti inline style) */
.text-sm { font-size: 12.5px; } .text-xs { font-size: 12px; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; }
.row-flex { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.w-auto { width: auto !important; }
.card-narrow { max-width: 460px; }
.inline-form { display: inline; }

/* ----------------------------------------------------- Kartu undangan klien */

.invitation-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 18px; }
.invitation-card.inv-rich { padding: 0; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.inv-head { padding: 18px 20px 14px; background: linear-gradient(180deg, var(--panel), #fff 140%); border-bottom: 1px solid var(--line); }
.inv-head h3 { font-size: 18px; margin: 0 0 8px; }
.inv-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.inv-body { padding: 14px 20px 4px; flex: 1; }
.inv-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.inv-meta li { display: flex; gap: 11px; align-items: flex-start; font-size: 13px; color: var(--ink); line-height: 1.45; }
.inv-meta li svg { width: 16px; height: 16px; margin-top: 2px; color: var(--accent-1); flex-shrink: 0; }
.inv-meta .lbl { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); }
.inv-meta a { word-break: break-all; }
.inv-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--info-bg); color: var(--info-text); font-size: 12.5px; line-height: 1.5; }
.inv-note a { color: inherit; font-weight: 600; }
.inv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px 20px 18px; }
.inv-actions .btn-small { justify-content: center; }
.inv-actions .btn-primary-sm { background: linear-gradient(120deg, var(--accent-1), var(--accent-2)); color: #fff; border-color: transparent; }
.inv-actions .btn-primary-sm:hover { color: #fff; filter: brightness(1.05); background: linear-gradient(120deg, var(--accent-1), var(--accent-2)); }

/* ------------------------------------------------------------- Auth (login) */

body.auth-page { padding: 0; display: block; background: var(--bg); }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-aside {
  position: relative; overflow: hidden; color: #fff; padding: 56px 56px 48px; display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(620px circle at 12% -8%, rgba(227,167,101,0.35), transparent 55%),
    radial-gradient(520px circle at 100% 100%, rgba(255,255,255,0.08), transparent 60%),
    linear-gradient(190deg, var(--sidebar-bg-2), var(--sidebar-bg-1) 80%);
}
.auth-aside-brand { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; }
.auth-aside-brand img { width: 40px; height: 40px; background: #fff; border-radius: 11px; padding: 5px; object-fit: contain; }
.auth-aside-brand em { font-family: 'Playfair Display', serif; font-style: italic; color: #f0c896; }
.auth-aside h2 { font-size: 34px; line-height: 1.2; margin-bottom: 14px; max-width: 420px; }
.auth-aside p { color: rgba(255,255,255,0.75); line-height: 1.7; max-width: 420px; margin: 0 0 26px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: rgba(255,255,255,0.88); }
.auth-points svg { width: 20px; height: 20px; color: #f0c896; flex-shrink: 0; margin-top: 1px; }
.auth-aside small { color: rgba(255,255,255,0.45); font-size: 12px; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 22px; }
.auth-box { max-width: 400px; padding: 38px 36px; }
.auth-box .auth-logo { display: none; justify-content: center; margin-bottom: 16px; }
.auth-box h2 { margin-bottom: 6px; text-align: left; font-size: 24px; }
.auth-box .auth-sub { margin: 0 0 22px; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.auth-eyebrow { text-align: left; }
.auth-box label { color: var(--ink); font-weight: 600; }
.auth-box button[type=submit] { min-height: 46px; margin-top: 22px; }
.auth-box .alert { margin-bottom: 16px; }
.auth-foot { text-align: center; font-size: 12.5px; color: var(--muted); }
.auth-foot a { color: var(--accent-2); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Responsive */

@media (max-width: 960px) {
  .topbar { padding: 10px 16px; gap: 12px; }
  .topbar-hide-sm { display: none; }
  .app-footer { padding: 16px 18px 22px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-box .auth-logo { display: flex; }
  .auth-box { box-shadow: 0 24px 60px -24px rgba(20,18,31,0.18); }
}
@media (max-width: 640px) {
  .topbar-user-info, .topbar-caret { display: none; }
  .user-menu > summary { padding: 3px; }
  .notif-panel { position: fixed; left: 12px; right: 12px; top: calc(var(--topbar-h) - 4px); width: auto; max-width: none; }
  .toast-wrap { left: 14px; right: 14px; width: auto; }
  .inv-actions { grid-template-columns: 1fr; }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .collapse > summary { padding: 16px; }
  .collapse-body { padding: 18px 16px; }
  .auth-box { padding: 30px 22px; }
  .modal-actions { flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* Form satu kolom */
.stack-form { display: flex; flex-direction: column; gap: 18px; }
.stack-form .form-actions { margin-top: 6px; }

.uppercase { text-transform: uppercase; }
.grid-form-even > div:last-child { grid-column: auto; }
.grid-form-even .form-actions-full { grid-column: 1 / -1; }
.field-hint svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 3px; }
.cust-btn svg { width: 14px; height: 14px; }
[hidden] { display: none !important; }

.col-full { grid-column: 1 / -1; }
.check-group { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.check-group input[type=checkbox] { width: 18px; height: 18px; flex-shrink: 0; cursor: pointer; }
.check-group label { margin: 0 10px 0 0; color: var(--ink); font-size: 13.5px; cursor: pointer; }
.check-row input[type=checkbox] { width: 18px; }
.grid-form .check-row { margin: 0; }

.inv-meta li > span { min-width: 0; flex: 1; }
.inv-link-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.inv-link-row a { font-size: 12.5px; }

/* Tombol mata di dalam input (menimpa aturan .auth-box button) */
.input-group .input-eye,
.auth-box .input-group button.input-eye {
  position: absolute; right: 6px; top: 50%; margin: 0; width: 34px; min-height: 34px; height: 34px; padding: 0;
  transform: translateY(-50%); background: transparent; box-shadow: none; color: var(--muted);
}
.input-group .input-eye:hover, .auth-box .input-group button.input-eye:hover { background: var(--panel); color: var(--ink); transform: translateY(-50%); box-shadow: none; }
.auth-box .input-group { margin-top: 0; }

@media (max-width: 640px) {
  .topbar-title p { display: none; }
  .topbar-title h1 { font-size: 18px; }
  .page-head h2 { font-size: 20px; }
  .page-head p { font-size: 13px; }
  .stat-card { padding: 14px 15px; }
  .stat-label { font-size: 10.5px; letter-spacing: 0.03em; }
  .card-header { gap: 12px; }
  .card-header .count-pill { display: none; }
  .card-icon { width: 38px; height: 38px; }
  .card-header-text h3 { font-size: 15.5px; }
  .card-header-text p { font-size: 12.5px; }
  .breadcrumbs { margin-bottom: 10px; }
}

/* ======================================================================
   Halaman detail (customer / edit / settings / partners / registry)
   ====================================================================== */

/* Profil pelanggan */
.profile-card { padding: 24px 26px; }
.profile-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-avatar { width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 22px; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); }
.profile-id { flex: 1; min-width: 0; }
.profile-id h2 { font-size: 22px; word-break: break-word; }
.profile-id p { margin: 3px 0 0; word-break: break-all; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 22px; margin: 22px 0 6px; padding: 18px 0 0; border-top: 1px solid var(--line); }
.info-grid dt { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.info-grid dd { margin: 0; font-size: 14px; word-break: break-word; }
.info-grid .info-wide { grid-column: 1 / -1; }
.info-highlight { background: var(--warn-bg); border: 1px solid rgba(154,106,21,0.18); border-radius: 12px; padding: 12px 16px; }
.info-highlight dt { color: var(--warn-text); }
.info-highlight small { display: block; margin-top: 3px; font-size: 12px; color: var(--warn-text); opacity: 0.85; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line); }
.inline-edit { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin-top: 16px; }
.inline-edit-field { flex: 1; min-width: 240px; }
.inline-edit-field label { margin-bottom: 6px; }

/* Kartu password baru */
.pw-notice { background: #fffaf0; border: 1.5px solid #ecc98a; border-radius: var(--radius-lg); padding: 18px 20px; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.pw-notice-head { display: flex; gap: 14px; align-items: flex-start; }
.pw-notice-ico { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; background: var(--warn-bg); color: var(--warn-text); display: flex; align-items: center; justify-content: center; }
.pw-notice-ico svg { width: 19px; height: 19px; }
.pw-notice-head strong { display: block; font-size: 15px; }
.pw-notice-head p { margin: 3px 0 0; font-size: 13px; color: var(--muted); line-height: 1.55; }
.pw-notice-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.pw-notice-box code { flex: 1; min-width: 180px; font-size: 17px; font-weight: 600; letter-spacing: 0.04em; padding: 10px 14px; border-radius: 10px; background: #fff; border: 1px dashed #d9b36a; user-select: all; }

/* Section header di luar kartu */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 2px 14px; }
.section-head h3 { font-size: 18px; }

/* Collapse: ringkasan undangan */
.collapse > summary .card-header-text { flex: 1; min-width: 0; }
.collapse > summary .card-header-text h3 { font-size: 16.5px; word-break: break-all; }
.collapse > summary .card-header-text p { margin: 3px 0 0; font-size: 12.5px; }
.inv-sum-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 7px; }
.inv-collapse > summary .card-header-text { display: block; }

/* Form berseksi */
.form-section { border: none; margin: 0 0 6px; padding: 0 0 22px; min-width: 0; }
.form-section + .form-section { padding-top: 22px; border-top: 1px dashed var(--line); }
.form-section legend { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 15.5px; padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.form-section legend + * { clear: both; }
.form-section-title { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.btn-clear { margin-top: 8px; min-height: 30px; padding: 4px 11px; font-size: 12px; color: var(--muted); }
.btn-clear svg { width: 13px; height: 13px; }

/* Opsi centang dengan judul + penjelasan */
.option-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color 0.15s ease, background 0.15s ease; }
.option-row:hover { border-color: var(--accent-1); }
.option-row:has(input:checked) { border-color: rgba(47,122,68,0.45); background: #f6fbf6; }
.option-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; cursor: pointer; accent-color: var(--ok-text); }
.option-row label { margin: 0; flex: 1; cursor: pointer; color: var(--ink); }
.option-row label strong { display: block; font-size: 13.5px; font-weight: 600; }
.option-row label small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); line-height: 1.5; font-weight: 400; }

/* Bar simpan lengket */
.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: 6px -24px -4px; padding: 14px 24px; background: linear-gradient(180deg, rgba(255,255,255,0), #fff 28%); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Zona aksi */
.danger-zone { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbf8f5; }
.danger-zone-text { flex: 1; min-width: 240px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.danger-zone-text strong { display: block; color: var(--ink); font-size: 13.5px; margin-bottom: 2px; }
.danger-zone-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 640px) {
  .profile-card { padding: 20px 18px; }
  .profile-actions .btn, .profile-actions form { flex: 1 1 100%; }
  .profile-actions form .btn { width: 100%; }
  .sticky-actions { margin: 6px -16px -4px; padding: 12px 16px; }
  .sticky-actions .btn { flex: 1; }
  .danger-zone-actions, .danger-zone-actions form, .danger-zone-actions .btn { width: 100%; }
}

/* ---- Edit undangan (pelanggan) ---- */
.edit-hero { padding: 24px 26px; }
.edit-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.edit-hero-title { flex: 1; min-width: 240px; }
.edit-hero-title h2 { font-size: 24px; }
.edit-hero-title .inv-link-row { margin-top: 8px; }
.edit-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.progress-wrap { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.progress-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-bottom: 8px; }
.progress-head span { color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: var(--panel); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent-1), var(--accent-2)); transition: width 0.4s ease; }
.checklist { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.checklist a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 500; text-decoration: none; background: #fff; border: 1px solid var(--line); color: var(--muted); transition: border-color 0.15s ease, color 0.15s ease; }
.checklist a svg { width: 15px; height: 15px; }
.checklist a:hover { border-color: var(--accent-1); color: var(--accent-1); }
.checklist .is-done a { background: var(--ok-bg); border-color: rgba(47,122,68,0.2); color: var(--ok-text); }

.note-lock { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--info-bg); color: var(--info-text); font-size: 12.5px; line-height: 1.55; }
.note-lock svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; }
.note-lock a { color: inherit; font-weight: 600; }

.audio-player { width: 100%; max-width: 340px; }
.video-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 8px; }

.gallery-empty { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.gallery-empty svg { width: 28px; height: 28px; color: var(--accent-1); margin-bottom: 4px; }
.gallery-empty strong { color: var(--ink); font-size: 14px; }
.gallery-item .btn-small svg { width: 14px; height: 14px; }
.story-item { transition: box-shadow 0.15s ease; }
.story-item:hover { box-shadow: var(--shadow-sm); }
.card form.grid-form button[type=submit].btn { align-self: start; }
@media (max-width: 640px) {
  .edit-hero { padding: 20px 18px; }
  .edit-hero-title h2 { font-size: 21px; }
  .edit-hero-actions, .edit-hero-actions .btn { width: 100%; }
  .story-item { flex-wrap: wrap; }
}

/* ---- Pengaturan harga ---- */
.settings-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; }
.settings-field { width: 200px; }
.settings-field label { margin-bottom: 6px; }
.input-suffix, .input-prefix { position: relative; }
.input-suffix span, .input-prefix span { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13.5px; font-weight: 600; color: var(--muted); pointer-events: none; }
.input-suffix span { right: 14px; }
.input-suffix input { padding-right: 36px; }
.input-prefix span { left: 14px; }
.input-prefix input { padding-left: 40px; }
.settings-preview { flex: 1; min-width: 220px; padding: 10px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; line-height: 1.4; }
.settings-preview .lbl { font-size: 12px; color: var(--muted); }
.settings-preview strong { font-family: 'Playfair Display', serif; font-size: 19px; color: var(--accent-2); }
.note-list { list-style: none; margin: 20px 0 0; padding: 16px 0 0; border-top: 1px dashed var(--line); display: flex; flex-direction: column; gap: 10px; }
.note-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.note-list svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; color: var(--info-text); }
.section-head p { margin: 3px 0 0; }

.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tier-card { --tier: var(--accent-1); background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--tier); border-radius: var(--radius-lg); padding: 22px 22px 24px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 18px; }
.tier-silver { --tier: #9aa3ad; } .tier-gold { --tier: #d9a233; } .tier-platinum { --tier: #5b4a8a; }
.tier-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tier-head h4 { font-family: 'Playfair Display', serif; font-size: 20px; margin: 0; }
.tier-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-bottom: 16px; border-bottom: 1px dashed var(--line); }
.tier-price-now { font-family: 'Playfair Display', serif; font-size: 30px; font-weight: 700; line-height: 1.1; }
.tier-price-old { color: var(--muted); text-decoration: line-through; font-size: 14px; }
.tier-disc { background: var(--off-bg); color: var(--off-text); font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.tier-price small { flex-basis: 100%; font-size: 12px; color: var(--muted); }
.tier-form { display: flex; flex-direction: column; gap: 14px; }

/* Switch */
.switch { display: flex; align-items: center; gap: 12px; margin: 2px 0; cursor: pointer; color: var(--ink); font-size: 13.5px; font-weight: 500; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #d9cfc6; flex-shrink: 0; transition: background 0.18s ease; }
.switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); transition: transform 0.18s ease; }
.switch input:checked + .switch-track { background: var(--ok-text); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent-1); outline-offset: 2px; }
.card-footer-note svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
@media (max-width: 640px) { .settings-field { width: 100%; } .settings-row .btn { width: 100%; } }

/* ---- Partner ---- */
.stat-value-sm { font-size: 22px; }
.code-chip { display: inline-block; font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); margin-right: 6px; }
.btn-icon-sm { min-height: 28px; width: 28px; padding: 0; justify-content: center; }
.btn-icon-sm svg { width: 14px; height: 14px; }
.amount-due { color: var(--warn-text); }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.table .col-num { text-align: center; }
.table .col-aksi { width: 1%; white-space: nowrap; }
.btn-small svg { width: 14px; height: 14px; }

/* ---- Wedding Registry ---- */
.hero-desc { margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.stat-value small { font-size: 0.55em; font-weight: 500; color: var(--muted); margin-left: 2px; }
.sub-title { font-size: 16px; margin: 0 0 14px; }
.rg-wide { grid-column: 1 / -1; }

.rg-item { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 12px; background: #fff; transition: box-shadow 0.15s ease, border-color 0.15s ease; }
.rg-item:hover { box-shadow: var(--shadow-sm); border-color: #e3cdb6; }
.rg-head { display: flex; gap: 14px; align-items: flex-start; }
.rg-thumb { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 12px; object-fit: cover; background: var(--panel); border: 1px solid var(--line); }
.rg-thumb-empty { display: flex; align-items: center; justify-content: center; color: #c7b4a2; }
.rg-thumb-empty svg { width: 28px; height: 28px; }
.rg-info { flex: 1 1 auto; min-width: 0; }
.rg-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 3px; }
.rg-info h4 { margin: 0; font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600; word-break: break-word; }
.rg-meta { font-size: 12.5px; color: var(--muted); word-break: break-word; line-height: 1.55; }
.progress-sm { height: 6px; margin-top: 10px; max-width: 280px; }
.rg-claims { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: #faf7f2; border: 1px solid var(--line); font-size: 13px; }
.rg-claims ul { list-style: none; margin: 6px 0 0; padding: 0; }
.rg-claims li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px dashed var(--line); }
.rg-claims li:first-child { border-top: 0; }
.rg-claims form { margin: 0; }
.rg-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.rg-actions form { margin: 0; }
.rg-edit { margin-top: 12px; }
.rg-edit > summary { cursor: pointer; display: inline-flex; list-style: none; }
.rg-edit > summary::-webkit-details-marker { display: none; }
.rg-edit .grid-form { margin-top: 14px; padding-top: 16px; border-top: 1px dashed var(--line); }
.rg-check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--ink); }
.rg-check input { width: 16px; height: 16px; margin: 0; }
.card .grid-form .switch { margin: 0; }

/* Upsell add-on */
.upsell { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 28px; background: radial-gradient(520px circle at 0% 0%, rgba(227,167,101,0.16), transparent 60%), #fff; }
.upsell-main { display: flex; gap: 18px; align-items: flex-start; flex: 1 1 420px; min-width: 0; }
.upsell-ico { width: 52px; height: 52px; border-radius: 16px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--accent-1), var(--accent-2)); box-shadow: 0 10px 22px -10px rgba(140,63,82,0.6); }
.upsell-ico svg { width: 24px; height: 24px; }
.upsell h3 { font-size: 22px; margin: 6px 0 6px; }
.upsell p { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 560px; }
.upsell-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.upsell-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; }
.upsell-list svg { width: 17px; height: 17px; color: var(--ok-text); flex-shrink: 0; margin-top: 2px; }
.upsell-cta { display: flex; flex-direction: column; align-items: stretch; gap: 14px; min-width: 240px; text-align: center; }
.upsell-price s { color: var(--muted); font-size: 14px; margin-right: 8px; }
.upsell-price strong { font-family: 'Playfair Display', serif; font-size: 30px; }
.upsell-price small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 640px) {
  .rg-head { flex-direction: column; }
  .rg-actions .btn-small, .rg-actions form { flex: 1; }
  .upsell { padding: 22px 18px; }
  .upsell-main { flex-direction: column; }
  .upsell-cta { width: 100%; }
}

/* Registry: tombol aksi sebaris */
.rg-actions { display: inline-flex; margin-top: 14px; margin-right: 8px; }
.rg-edit { display: inline-block; margin-top: 14px; vertical-align: top; }
.rg-edit[open] { display: block; }
.rg-edit[open] > summary { margin-bottom: 0; }
