:root {
  --gold: #C9A84C;
  --gold-light: #E8C96A;
  --gold-strong: #B8962F;
  --dark: #0D1B2A;
  --dark2: #1A2A3A;
  --surface: #1A2A3A;
  --surface-2: #15243a;
  --border: rgba(201,168,76,.18);
  --border-strong: rgba(201,168,76,.4);
  --text: #F0EAD6;
  --text-strong: #FFFFFF;
  --text-muted: #A09880;
  --text-subtle: #7d745f;
  --dot-new: #00E5A0;
  --danger: #E05A5A;
  --danger-strong: #E05A5A;
  --on-accent: #0D1B2A;
  --header-grad-end: #0a1520;
  --header-shadow: 0 1px 0 rgba(201,168,76,.2), 0 6px 18px rgba(0,0,0,.35);
  --card-shadow: 0 1px 2px rgba(0,0,0,.25), 0 8px 24px rgba(0,0,0,.18);
  --card-shadow-hover: 0 2px 4px rgba(0,0,0,.3), 0 14px 36px rgba(0,0,0,.32);
  --shadow-focus: rgba(201,168,76,.25);
  --success-text: #00E5A0;
  --page-bg: var(--dark);
}

[data-theme="light"] {
  --gold: #B8862B;
  --gold-light: #C9963A;
  --gold-strong: #8B6422;
  --dark: #F7F4EC;
  --dark2: #FFFFFF;
  --surface: #FFFFFF;
  --surface-2: #FBF8F0;
  --border: rgba(43,36,24,.10);
  --border-strong: rgba(43,36,24,.22);
  --text: #1F1A12;
  --text-strong: #14110B;
  --text-muted: #6B6353;
  --text-subtle: #8E8674;
  --on-accent: #FFFFFF;
  --header-grad-end: #FFFFFF;
  --header-shadow: 0 1px 0 rgba(43,36,24,.06), 0 6px 16px rgba(43,36,24,.05);
  --card-shadow: 0 1px 2px rgba(43,36,24,.04), 0 6px 18px rgba(43,36,24,.06);
  --card-shadow-hover: 0 2px 4px rgba(43,36,24,.06), 0 12px 28px rgba(43,36,24,.10);
  --shadow-focus: rgba(184,134,43,.22);
  --success-text: #0A8F6A;
  --danger: #C24545;
  --danger-strong: #A93A3A;
  --page-bg: #F7F4EC;
}

.theme-toggle {
  width: 36px; height: 36px; padding: 0; background: transparent;
  border: 1px solid var(--border-strong); border-radius: 8px; color: var(--gold);
  cursor: pointer; font-size: 1rem; line-height: 1; display: inline-flex;
  align-items: center; justify-content: center; transition: all .15s; margin-right: 10px;
}
.theme-toggle:hover { border-color: var(--gold); background: rgba(201,168,76,.08); }
.header-right { display: flex; align-items: center; gap: 4px; }

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--page-bg); color: var(--text); font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; min-height: 100vh; -webkit-font-smoothing: antialiased; }

.login-screen { display: flex; align-items: center; justify-content: center; height: 100vh; }
.login-card { width: 380px; padding: 48px 36px; text-align: center; }
.logo { color: var(--gold); font-size: 2rem; letter-spacing: .15em; font-weight: 700; }
.logo-sm { color: var(--gold); font-size: 1.2rem; letter-spacing: .12em; font-weight: 700; }
.logo-img { display: block; max-width: 240px; max-height: 90px; width: auto; height: auto; margin: 0 auto 10px; object-fit: contain; }
.logo-sm-img { display: block; height: 30px; width: auto; max-width: 180px; object-fit: contain; }
.logo-header-img { display: block; height: 56px; width: auto; max-width: 260px; object-fit: contain; }
.login-subtitle { color: var(--text-muted); font-size: .95rem; margin-top: 6px; margin-bottom: 20px; }
.divider { width: 60px; height: 1px; background: var(--gold); margin: 0 auto 28px; }
label { display: block; color: var(--text-muted); font-size: .8rem; text-align: left; margin-bottom: 6px; letter-spacing: .05em; text-transform: uppercase; }
input, select, textarea {
  width: 100%; padding: 10px 14px; background: var(--dark2); border: 1px solid rgba(201,168,76,.3);
  color: var(--text); font-size: .95rem; border-radius: 5px; outline: none; transition: border-color .2s; margin-bottom: 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 2px var(--shadow-focus); }
textarea { resize: vertical; min-height: 60px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
  font-size: .88rem; font-weight: 600; transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .05s;
  letter-spacing: .01em; line-height: 1; white-space: nowrap;
  font-family: inherit;
}
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--shadow-focus); }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold); color: var(--on-accent); border-color: var(--gold); box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 4px 12px rgba(184,134,43,.18); }
.btn-gold:hover { background: var(--gold-strong); border-color: var(--gold-strong); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(201,168,76,.06); }
.btn-primary { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-strong); border-color: var(--gold-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(43,36,24,.04); border-color: var(--border-strong); color: var(--text-strong); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.04); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(224,90,90,.4); }
.btn-danger:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-danger-ghost { background: transparent; color: var(--danger-strong); border-color: var(--border); }
.btn-danger-ghost:hover { background: rgba(194,69,69,.08); border-color: var(--danger); color: var(--danger-strong); }
[data-theme="dark"] .btn-danger-ghost:hover { background: rgba(224,90,90,.10); }
.btn-sm { padding: 6px 12px; font-size: .8rem; border-radius: 6px; }
.btn-lg { padding: 12px 22px; font-size: .95rem; border-radius: 10px; }
/* Touch-only tap-target bump (iPad, phones). Desktop unaffected. */
@media (pointer: coarse) {
  .btn { min-height: 44px; }
  .btn-sm { min-height: 40px; }
  .brand-preset { min-height: 40px; }
}
.btn-plus { font-size: 1.05em; line-height: 1; font-weight: 500; margin-right: 2px; }
.btn-green { background: var(--dot-new); color: var(--on-accent); }
.btn-green:hover { background: #33ebb5; }
.error { color: var(--danger); font-size: .85rem; margin-top: 8px; min-height: 18px; }

.header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 56px;
  background: linear-gradient(135deg, var(--dark2), var(--header-grad-end));
  border-bottom: 1px solid var(--border);
}
.header-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.header-sep { width: 1px; height: 24px; background: var(--border-strong); display: inline-block; }
.header-title { color: var(--text); font-size: 1rem; font-weight: 500; letter-spacing: .01em; }

.header-dashboard {
  height: 84px; padding: 0 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--header-shadow);
  position: sticky; top: 0; z-index: 20;
}
.header-dashboard .header-title { color: var(--text-strong); font-size: 1.05rem; font-weight: 600; letter-spacing: .005em; }
.header-dashboard .header-sep { height: 32px; background: var(--border-strong); }

.main { max-width: 1080px; margin: 0 auto; padding: 40px 40px 80px; }
.dashboard-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.dashboard-toolbar-text { min-width: 0; }
.section-title {
  color: var(--text-strong); font-size: 1.6rem; font-weight: 600;
  letter-spacing: -.01em; line-height: 1.2; margin: 0;
}
.section-subtitle { color: var(--text-muted); font-size: .95rem; margin-top: 6px; }

.industry-tabs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 0 0 22px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: fit-content;
}
.industry-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  border: none; background: transparent;
  color: var(--text-muted);
  font-size: .9rem; font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
  font-family: inherit;
}
.industry-tab:hover { color: var(--text-strong); background: var(--border); }
.industry-tab.is-active {
  background: var(--text-strong);
  color: var(--surface);
}
.industry-tab.is-active:hover { background: var(--text-strong); color: var(--surface); }
.industry-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 20px; padding: 0 7px;
  font-size: .72rem; font-weight: 600;
  background: var(--border); color: var(--text-muted);
  border-radius: 10px;
}
.industry-tab.is-active .industry-tab-count {
  background: rgba(255,255,255,.18); color: var(--surface);
}

.ship-list { display: flex; flex-direction: column; gap: 18px; }
.ship-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--card-shadow);
  transition: border-color .15s, box-shadow .2s, transform .15s;
}
.ship-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-1px);
}
.ship-card-header {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 14px;
}
.ship-name {
  color: var(--text-strong); font-size: 1.2rem; font-weight: 600;
  letter-spacing: -.005em; line-height: 1.3; margin: 0;
}
.ship-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Feedback button on a ship card — gets a small counter pill. */
.ship-feedback-btn { display: inline-flex; align-items: center; gap: 6px; }
.ship-feedback-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 16px; padding: 0 5px;
  border-radius: 8px; background: rgba(201,168,76,.18);
  color: var(--gold); font-size: .7rem; font-weight: 700;
}

/* "Shared by X" badge shown on cards a member can see but doesn't own. */
.ship-shared-badge {
  display: inline-flex; align-items: center;
  margin-left: 10px; padding: 2px 9px;
  border-radius: 999px;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.3);
  color: #6366f1;
  font-size: .68rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; vertical-align: middle;
}

/* Share modal: teammate checklist. */
.share-list {
  display: flex; flex-direction: column; gap: 6px;
  max-height: 320px; overflow-y: auto;
  margin: 14px 0 4px;
}
.share-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.share-row:hover { border-color: var(--gold); background: rgba(201,168,76,.04); }
.share-row input { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; flex: 0 0 auto; }
.share-row-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.share-row-name { color: var(--text); font-weight: 600; font-size: .9rem; }
.share-row-email { color: var(--text-subtle); font-size: .78rem; }

/* Customer Feedback modal (admin). */
.pf-modal-backdrop {
  position: fixed; inset: 0; background: rgba(8,8,10,.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000; padding: 24px;
}
.pf-modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  width: min(640px, 100%);
  max-height: 80vh;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.pf-modal-header {
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.pf-modal-header h3 { margin: 0; font-size: 1.05rem; color: var(--text); }
.pf-modal-close {
  background: transparent; border: none; color: var(--text-subtle);
  font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px;
}
.pf-modal-close:hover { color: var(--text); }
.pf-modal-body {
  overflow-y: auto;
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
}
.pf-modal-empty {
  text-align: center; color: var(--text-subtle); padding: 24px 0;
}
.pf-modal-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(0,0,0,.02);
  /* Author-colour accent bar (set inline via --fb-author). */
  border-left: 3px solid var(--fb-author, var(--gold));
  border-radius: 4px;
  padding: 12px 14px;
}
.pf-modal-item-avatar {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .02em;
  margin-top: 1px; user-select: none;
}
.pf-modal-item-body { flex: 1 1 auto; min-width: 0; }
.pf-modal-item-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 8px; margin-bottom: 6px;
}
.pf-modal-item-name { font-weight: 700; color: var(--gold); font-size: .92rem; }
.pf-modal-item-time { color: var(--text-subtle); font-size: .76rem; }
.pf-modal-item-edited { font-style: italic; }
.pf-modal-item-text {
  color: var(--text); font-size: .92rem; line-height: 1.5;
  white-space: pre-wrap; word-break: break-word;
}
/* Sniffing feedback modal — per-scent rating + comments */
.sf-scent { margin-bottom: 18px; }
.sf-scent + .sf-scent { border-top: 1px solid var(--border); padding-top: 16px; }
.sf-scent-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.sf-scent-name { font-weight: 700; color: var(--text-strong, var(--text)); font-size: 1rem; }
.sf-rating {
  flex: 0 0 auto;
  background: rgba(201,168,76,.14); color: var(--gold);
  border: 1px solid rgba(201,168,76,.4);
  font-weight: 700; font-size: .82rem;
  padding: 3px 10px; border-radius: 999px; letter-spacing: .02em;
}
.sf-rating-none { background: transparent; color: var(--text-subtle); border-color: var(--border); font-weight: 600; }
.sf-scent-comments { display: flex; flex-direction: column; gap: 10px; }
.sf-no-comments { color: var(--text-subtle); font-size: .82rem; font-style: italic; }
.pf-modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
}

/* ----- Header user menu ----- */
.user-menu { position: relative; }
.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  font-size: .85rem;
  font-weight: 600;
}
.user-menu-toggle:hover { background: rgba(201,168,76,.06); border-color: var(--gold); }
.user-menu-name { line-height: 1; }
.user-menu-role {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 2px 7px;
  background: rgba(201,168,76,.12);
  border-radius: 10px;
}
.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 200px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  z-index: 100;
  display: flex; flex-direction: column;
}
/* The explicit `display:flex` above overrides the browser's built-in
   `[hidden] { display:none }`, so the hidden attribute alone wouldn't
   collapse the menu. Re-assert it: the dropdown is only shown when the
   toggle clears `hidden`. */
.user-menu-dropdown[hidden] { display: none; }
.user-menu-item {
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 12px;
  font-size: .9rem;
  color: var(--text);
  cursor: pointer;
  border-radius: 6px;
}
.user-menu-item:hover { background: rgba(201,168,76,.08); color: var(--gold); }
.user-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 8px;
}

/* ----- Manage users modal ----- */
.manage-users-modal { max-width: 760px; max-height: 80vh; display: flex; flex-direction: column; }
.manage-users-toolbar {
  display: flex; gap: 8px; align-items: center;
  margin: 10px 0 14px;
}
.manage-users-list {
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}
.mu-row {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  background: var(--surface);
}
.mu-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mu-row-name { font-weight: 700; color: var(--text); font-size: 1rem; display: flex; align-items: center; gap: 8px; }
.mu-row-tags { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.mu-tag {
  display: inline-flex; align-items: center; padding: 2px 8px;
  border-radius: 999px; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
}
.mu-tag-admin { background: rgba(201,168,76,.18); color: var(--gold); }
.mu-tag-member { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--border); }
.mu-tag-you { background: rgba(60,140,255,.16); color: #6daaff; }
.mu-tag-inactive { background: rgba(194,93,93,.14); color: #c25d5d; }
.mu-tag-invited { background: rgba(255,177,73,.15); color: #d99240; }
.mu-row-meta {
  display: flex; gap: 6px; align-items: center;
  margin-top: 4px;
  color: var(--text-muted); font-size: .8rem;
}
.mu-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* ----- Invite link row (copy-to-clipboard) ----- */
.invite-link-row {
  display: flex; gap: 8px; margin: 12px 0 16px;
  align-items: center;
}
.invite-link-row input {
  flex: 1; padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2, var(--surface));
  color: var(--text);
  font-size: .82rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  min-width: 0;
}

/* ----- Invite / "User added" dialog (WhatsApp-style message) ----- */
.invite-msg-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.invite-msg-head .duplicate-modal-title { display: flex; align-items: center; gap: 8px; }
.invite-msg-key { font-size: 1.1rem; line-height: 1; }
.invite-msg-x {
  background: transparent; border: none; color: var(--text-subtle);
  font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 0 2px; flex: 0 0 auto;
}
.invite-msg-x:hover { color: var(--text); }
.invite-msg-card {
  margin: 14px 0 14px;
  padding: 16px 18px;
  background: var(--surface-2, #faf8f2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: .9rem;
  line-height: 1.55;
  max-height: 230px;
  overflow-y: auto;
}
.invite-copy-msg-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: #1fab6b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: background .15s, transform .05s;
}
.invite-copy-msg-btn:hover { background: #1a9760; }
.invite-copy-msg-btn:active { transform: translateY(1px); }
.invite-code-box {
  display: flex; align-items: center; gap: 12px;
  margin: 14px 0 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}
.invite-code-label {
  flex: 0 0 auto;
  font-size: .68rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-subtle); font-weight: 700;
}
.invite-code-value {
  flex: 1 1 auto; min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.05rem; font-weight: 700; letter-spacing: .04em;
  color: var(--text-strong, var(--text));
}
.invite-code-copy { flex: 0 0 auto; }
.invite-security-note {
  color: var(--text-subtle);
  font-size: .76rem;
  line-height: 1.45;
  margin-bottom: 4px;
}

.ship-url-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; margin-bottom: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 0;
}
.ship-url-row .ship-meta-label {
  flex: 0 0 auto; padding: 0; text-transform: uppercase;
  font-size: .68rem; letter-spacing: .08em; color: var(--text-subtle);
  font-weight: 600;
}
.ship-url-link {
  flex: 1 1 auto; min-width: 0;
  color: var(--text); text-decoration: none;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: .82rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  direction: ltr;
}
.ship-url-link:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.ship-copy-btn {
  flex: 0 0 auto; position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; padding: 0;
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; color: var(--text-muted); cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.ship-copy-btn:hover { color: var(--gold); border-color: var(--gold); background: rgba(201,168,76,.08); }
.ship-copy-icon { font-size: 1rem; line-height: 1; }
.ship-copy-feedback {
  position: absolute; bottom: calc(100% + 6px); right: 0;
  background: var(--text-strong); color: var(--surface);
  padding: 3px 8px; border-radius: 4px;
  font-size: .72rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .15s;
}
.ship-copy-btn.copied .ship-copy-feedback { opacity: 1; }
.ship-copy-btn.copied { color: var(--success-text); border-color: var(--success-text); }

.ship-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px 24px; margin: 0;
}
.ship-meta-cell { min-width: 0; }
.ship-meta-label {
  display: block; padding: 0; margin: 0 0 4px;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-subtle); font-size: .68rem; font-weight: 600;
  text-align: left;
}
.ship-meta-value {
  margin: 0; color: var(--text-strong); font-size: .92rem; font-weight: 500;
}
.ship-meta-sub { color: var(--text-muted); font-weight: 400; font-size: .88rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .01em;
  border: 1px solid transparent;
}
.badge-success {
  color: var(--success-text);
  background: rgba(10,143,106,.08);
  border-color: rgba(10,143,106,.22);
}
[data-theme="dark"] .badge-success {
  background: rgba(0,229,160,.10); border-color: rgba(0,229,160,.28);
}
.badge-muted {
  color: var(--text-muted);
  background: var(--surface-2);
  border-color: var(--border);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; display: inline-block;
}
.copy-feedback { color: var(--success-text); font-size: .75rem; margin-left: 8px; opacity: 0; transition: opacity .3s; }
.copy-feedback.show { opacity: 1; }
.password-toggle { background: none; border: none; color: var(--gold); cursor: pointer; font-size: .8rem; margin-left: 8px; }
.no-ships {
  text-align: center; color: var(--text-muted);
  padding: 80px 24px; font-size: 1rem;
  background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 14px;
}

@media (max-width: 720px) {
  .header-dashboard { height: 72px; padding: 0 20px; }
  .logo-header-img { height: 44px; }
  .main { padding: 28px 20px 60px; }
  .dashboard-toolbar { align-items: stretch; }
  .dashboard-toolbar .btn-lg { width: 100%; }
  .ship-card { padding: 20px; }
  .ship-card-header { flex-direction: column; align-items: flex-start; }
  .ship-card-actions { width: 100%; }
}

.wizard-screen { min-height: 100vh; display: flex; flex-direction: column; }

/* ===== Draft auto-save UI ===== */
.draft-saved-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(201,168,76,.10);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: .75rem; font-weight: 500; letter-spacing: .02em;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  white-space: nowrap;
}
.draft-saved-pill.is-visible { opacity: 1; }
.draft-saved-pill.is-saving { opacity: .7; }
.draft-saved-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--success-text, #00E5A0);
  flex-shrink: 0;
}
.draft-saved-pill.is-saving::before { background: var(--text-muted); }
.draft-saved-pill.is-error {
  opacity: 1;
  color: var(--danger, #ff5c5c);
  border-color: var(--danger, #ff5c5c);
  background: rgba(255,92,92,.10);
}
.draft-saved-pill.is-error::before { background: var(--danger, #ff5c5c); }
@media (prefers-reduced-motion: reduce) {
  .draft-saved-pill { transition: none; }
}

.draft-restore-banner {
  display: flex; align-items: center; gap: 18px;
  padding: 22px 26px;
  margin: 16px 0 4px;
  border: 1px solid var(--gold);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(201,168,76,.12), rgba(201,168,76,.02));
  box-shadow: var(--card-shadow);
}
.draft-restore-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(201,168,76,.18);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 700;
  flex-shrink: 0;
}
.draft-restore-body { flex: 1; min-width: 0; }
.draft-restore-title { color: var(--text); font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.draft-restore-sub { color: var(--text-muted); font-size: .9rem; line-height: 1.5; }
.draft-restore-sub strong { color: var(--text); font-weight: 600; }
.draft-restore-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 760px) {
  .draft-restore-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .draft-restore-actions { justify-content: flex-end; }
}

.wizard-progress { padding: 20px 24px 0; max-width: 900px; margin: 0 auto; width: 100%; }
.progress-bar { height: 4px; background: rgba(201,168,76,.15); border-radius: 2px; overflow: hidden; margin-bottom: 16px; }
.progress-fill { height: 100%; background: var(--gold); transition: width .3s; }
.steps-indicator { display: flex; justify-content: center; gap: 20px; margin-bottom: 10px; }
.step-dot {
  position: relative;
  width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600; cursor: pointer; transition: all .2s;
  background: var(--dark2); border: 2px solid rgba(201,168,76,.3); color: var(--text-muted);
}
.step-dot:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-1px); }
.step-dot.active { background: var(--gold); color: var(--on-accent); border-color: var(--gold); }
.step-dot.completed { background: transparent; border-color: var(--gold); color: var(--gold); }
.step-dot-num { display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.step-dot-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--dark2); color: var(--text); border: 1px solid rgba(201,168,76,.4);
  padding: 4px 8px; border-radius: 4px; font-size: .75rem; font-weight: 500;
  white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s;
  z-index: 10; box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.step-dot-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: rgba(201,168,76,.4);
}
.step-dot:hover .step-dot-tip, .step-dot:focus .step-dot-tip { opacity: 1; }

.wizard-main { flex: 1; max-width: 900px; margin: 0 auto; width: 100%; padding: 24px; overflow-y: auto; }
.wizard-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px;
  border-top: 1px solid rgba(201,168,76,.15); max-width: 900px; margin: 0 auto; width: 100%;
  gap: 12px;
}
.wizard-footer-left { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ===== Brand colour preset buttons (Branding step) ===== */
.brand-presets { display: flex; gap: 6px; flex-wrap: wrap; }
.brand-preset {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: .8rem; font-weight: 500;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.brand-preset:hover { border-color: var(--gold); background: rgba(201,168,76,.06); }
.brand-preset.is-active { border-color: var(--gold); background: rgba(201,168,76,.14); color: var(--text-strong); }
.brand-preset-swatch {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,.18);
  flex-shrink: 0;
}
.brand-preset-label { white-space: nowrap; }

/* ===== Step 5 sub-tabs (Pricing · Currency · Co-branded · In-store · Accessories) ===== */
.pricing-tabs {
  display: flex; gap: 4px;
  margin: 12px 0 20px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.pricing-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: 10px 14px;
  min-height: 44px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.pricing-tab:hover { color: var(--text); }
.pricing-tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.pricing-section-hidden { display: none !important; }

/* ===== Duplicate-proposal modal ===== */
.duplicate-modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.duplicate-modal {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--card-shadow-hover);
  padding: 28px 30px;
  width: 100%;
  max-width: 480px;
}
.duplicate-modal-title {
  color: var(--text-strong);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.duplicate-modal-sub {
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.5;
  margin-bottom: 22px;
}
.duplicate-modal-sub strong { color: var(--text); font-weight: 600; }
.duplicate-modal-form { display: flex; flex-direction: column; gap: 6px; }
.duplicate-modal-label {
  color: var(--text);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  margin: 10px 0 4px;
}
.duplicate-modal-form input {
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 6px;
  font-size: .95rem;
  min-height: 44px;
}
.duplicate-modal-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--shadow-focus);
}
.duplicate-modal-hint {
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: 2px;
}
.duplicate-modal-error {
  color: var(--danger);
  font-size: .85rem;
  min-height: 1.2em;
  margin: 8px 0 0;
}
.duplicate-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}
@media (max-width: 560px) {
  .duplicate-modal { padding: 22px 20px; border-radius: 12px; }
  .duplicate-modal-actions { flex-direction: column-reverse; }
  .duplicate-modal-actions .btn { width: 100%; }
}

/* ----- New Proposal: type picker (Cruise Ship / Hotel / Sniffing) ----- */
.proposal-type-modal { max-width: 720px; }
.proposal-type-grid {
  display: grid;
  /* Three cards side-by-side on desktop, auto-stack on narrow viewports. */
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 8px;
}
.proposal-type-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--surface-2, var(--surface));
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: border-color .15s, background .15s, transform .05s, box-shadow .15s;
  font-family: inherit;
}
.proposal-type-card:hover {
  border-color: var(--gold);
  background: rgba(201,168,76,.06);
}
.proposal-type-card:focus,
.proposal-type-card:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,168,76,.22);
}
.proposal-type-card:active { transform: translateY(1px); }
.proposal-type-card.is-default {
  border-color: rgba(201,168,76,.55);
  background: rgba(201,168,76,.05);
}
.proposal-type-card-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: rgba(201,168,76,.1);
  border-radius: 10px;
}
.proposal-type-card-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.proposal-type-card-title {
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
}
.proposal-type-card-sub {
  color: var(--text-muted);
  font-size: .78rem;
  letter-spacing: .02em;
}
@media (max-width: 560px) {
  .proposal-type-grid { grid-template-columns: 1fr; gap: 10px; }
  .proposal-type-card { padding: 14px; }
  .proposal-type-card-icon { width: 38px; height: 38px; }
}

/* ===== Dashboard filter row (industry tabs + search) ===== */
.dashboard-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.dashboard-filter-row .industry-tabs { margin-bottom: 0; flex: 1 1 auto; min-width: 0; }
.dashboard-search {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 240px;
  max-width: 320px;
}
.dashboard-search input[type="search"] {
  width: 100%;
  padding: 10px 36px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: .9rem;
  min-height: 44px;
  -webkit-appearance: none;
  appearance: none;
}
.dashboard-search input[type="search"]:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--shadow-focus);
}
.dashboard-search input[type="search"]::-webkit-search-decoration,
.dashboard-search input[type="search"]::-webkit-search-cancel-button,
.dashboard-search input[type="search"]::-webkit-search-results-button { -webkit-appearance: none; appearance: none; }
.dashboard-search-clear {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
}
.dashboard-search-clear:hover {
  background: rgba(43,36,24,.06);
  color: var(--text);
}
@media (max-width: 760px) {
  .dashboard-filter-row { flex-direction: column; align-items: stretch; }
  .dashboard-search { min-width: 0; max-width: none; width: 100%; }
}

.wizard-section-title { color: var(--gold); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.wizard-section-desc { color: var(--text-muted); font-size: .85rem; margin-bottom: 20px; line-height: 1.5; }

/* Read-only "Type" badge shown at the top of Step 1, replacing the old
   cruise/hotel toggle. Industry is committed at creation via the picker. */
.wizard-type-badge {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 8px;
  background: rgba(201,168,76,.05);
}
.wizard-type-badge-label {
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wizard-type-badge-value {
  color: var(--gold);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
}
.wizard-type-badge-hint {
  flex-basis: 100%;
  color: var(--text-muted);
  font-size: .76rem;
  line-height: 1.4;
}
.field-group { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.slug-preview { color: var(--text-muted); font-size: .8rem; margin-top: -10px; margin-bottom: 14px; }

.deck-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.deck-group { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 14px; border: 1px dashed rgba(201,168,76,.28); border-radius: 8px; background: rgba(201,168,76,.03); }
.deck-group + .deck-group { margin-top: 4px; }
.deck-group-header {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 2px 4px 8px; border-bottom: 1px solid rgba(201,168,76,.18); margin-bottom: 4px;
}
.deck-group-title { color: var(--gold); font-weight: 700; font-size: .98rem; letter-spacing: .03em; text-transform: uppercase; }
.deck-group-count { color: var(--text-muted); font-size: .76rem; letter-spacing: .04em; text-transform: uppercase; }
.deck-item {
  background: rgba(201,168,76,.05); border: 1px solid rgba(201,168,76,.15); border-radius: 6px;
  padding: 14px 16px; display: flex; justify-content: space-between; align-items: center;
}
.deck-item-info { flex: 1; min-width: 0; }
.deck-item-headline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.deck-item-label { color: var(--text); font-weight: 600; font-size: .95rem; }
.deck-item-desc { color: var(--text-muted); font-size: .82rem; margin-top: 2px; }
.deck-item-badge {
  display: inline-block; padding: 2px 8px; background: rgba(201,168,76,.15); color: var(--gold);
  border-radius: 10px; font-size: .75rem;
}
.deck-item-imgstatus {
  display: inline-block; padding: 2px 8px; border-radius: 10px;
  font-size: .72rem; font-weight: 600;
}
.deck-item-imgstatus.ok { background: rgba(0,229,160,.12); color: var(--success-text); }
.deck-item-imgstatus.warn { background: rgba(224,90,90,.12); color: var(--danger); }
.deck-item-actions { display: flex; gap: 6px; }

.upload-zone {
  border: 2px dashed rgba(201,168,76,.3); border-radius: 8px; padding: 24px; text-align: center;
  cursor: pointer; transition: all .2s; margin-bottom: 10px; background: rgba(201,168,76,.02);
}
.upload-zone:hover { border-color: var(--gold); background: rgba(201,168,76,.05); }
.upload-zone.has-image { border-style: solid; }
.upload-zone-text { color: var(--text-muted); font-size: .85rem; }
.upload-thumbnail { max-height: 120px; border-radius: 4px; margin-top: 8px; }
.upload-info { color: var(--text-muted); font-size: .8rem; margin-top: 6px; }
.upload-row { margin-bottom: 18px; }
.upload-row-label { color: var(--text); font-weight: 600; font-size: .9rem; margin-bottom: 8px; }

.placement-toolbar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-bottom: 14px; flex-wrap: wrap;
}
.placement-tabs {
  display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0;
}
.placement-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: var(--dark2); border: 1px solid rgba(201,168,76,.2);
  border-radius: 18px; color: var(--text-muted); font-size: .82rem; cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.placement-tab:hover { border-color: rgba(201,168,76,.5); color: var(--text); }
.placement-tab.active {
  background: rgba(201,168,76,.12); border-color: var(--gold); color: var(--gold);
}
.placement-tab.disabled { opacity: .5; cursor: not-allowed; }
.placement-tab-deck { font-weight: 600; color: inherit; }
.placement-tab-sec { color: var(--text-muted); }
.placement-tab.active .placement-tab-sec { color: var(--gold); }
.placement-tab-badge {
  background: var(--gold); color: var(--on-accent); font-size: .68rem; font-weight: 700;
  padding: 1px 7px; border-radius: 10px; min-width: 18px; text-align: center;
}
.placement-tab-warn {
  background: var(--danger); color: #fff; font-size: .7rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%; display: inline-flex;
  align-items: center; justify-content: center;
}
.placement-actions { display: flex; align-items: center; gap: 10px; }
.placement-hint { color: var(--text-muted); font-size: .8rem; }

.placement-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px;
  align-items: start;
}
@media (max-width: 880px) { .placement-grid { grid-template-columns: 1fr; } }

.placement-stage {
  background: var(--dark2); border: 1px solid rgba(201,168,76,.15); border-radius: 8px;
  overflow: hidden;
}
.placement-stage-header {
  padding: 10px 14px; border-bottom: 1px solid rgba(201,168,76,.1);
  font-size: .85rem; color: var(--text);
}
.placement-canvas-wrap {
  background: var(--dark); display: flex; align-items: center; justify-content: center;
  min-height: 320px; max-height: 70vh; overflow: auto; padding: 0;
}
.placement-canvas {
  position: relative; cursor: crosshair; display: inline-block; line-height: 0;
  max-width: 100%;
}
.placement-canvas img {
  display: block; max-width: 100%; max-height: 70vh; width: auto; height: auto;
  user-select: none; -webkit-user-drag: none;
}
.placement-empty {
  padding: 60px 24px; text-align: center; color: var(--text-muted); font-size: .9rem;
  background: var(--dark2); border: 1px dashed rgba(201,168,76,.2); border-radius: 8px;
}

.place-dot {
  position: absolute; transform: translate(-50%, -50%); cursor: grab;
  display: flex; align-items: center; gap: 6px; z-index: 5;
}
.place-dot:active { cursor: grabbing; }
.place-dot-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--gold);
  border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: var(--on-accent);
  transition: transform .12s, box-shadow .12s;
}
.place-dot:hover .place-dot-num { transform: scale(1.15); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.place-dot.selected .place-dot-num {
  background: var(--dot-new); color: var(--on-accent);
  box-shadow: 0 0 0 4px rgba(0,229,160,.25), 0 4px 12px rgba(0,0,0,.5);
}
.place-dot-label {
  background: rgba(13,27,42,.92); color: #F0EAD6; padding: 3px 8px; border-radius: 4px;
  font-size: .72rem; white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity .15s;
  border: 1px solid rgba(201,168,76,.3);
}
.place-dot:hover .place-dot-label, .place-dot.selected .place-dot-label { opacity: 1; }

.placement-side {
  background: var(--dark2); border: 1px solid rgba(201,168,76,.15); border-radius: 8px;
  padding: 14px; max-height: 70vh; overflow-y: auto;
}
.dot-editor {
  background: rgba(201,168,76,.06); border: 1px solid rgba(201,168,76,.25);
  border-radius: 6px; padding: 12px; margin-bottom: 14px;
}
.dot-editor-title { color: var(--gold); font-weight: 600; font-size: .85rem; margin-bottom: 10px; }
.dot-editor label { font-size: .72rem; margin-bottom: 4px; }
.dot-editor input { margin-bottom: 8px; padding: 8px 10px; font-size: .85rem; }
.dot-editor-meta { color: var(--text-muted); font-size: .75rem; margin-bottom: 10px; }
.dot-editor-actions { display: flex; gap: 6px; justify-content: flex-end; }

.dot-list-title { color: var(--text-muted); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.dot-list { display: flex; flex-direction: column; gap: 4px; }
.dot-list-empty { color: var(--text-muted); font-size: .82rem; padding: 14px 8px; text-align: center; }
.dot-list-item {
  display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center;
  background: transparent; border: 1px solid transparent; border-radius: 5px;
  padding: 6px 8px; cursor: pointer; text-align: left; color: var(--text);
  font-family: inherit; font-size: .82rem; transition: all .12s;
}
.dot-list-item:hover { background: rgba(201,168,76,.06); border-color: rgba(201,168,76,.15); }
.dot-list-item.active { background: rgba(0,229,160,.08); border-color: rgba(0,229,160,.4); }
.dot-list-num {
  background: var(--gold); color: var(--on-accent); width: 22px; height: 22px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
}
.dot-list-item.active .dot-list-num { background: var(--dot-new); }
.dot-list-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot-list-pos { color: var(--text-muted); font-size: .7rem; font-variant-numeric: tabular-nums; }

.price-currency-row {
  display: flex; align-items: stretch; gap: 4px; width: 100%; min-width: 0;
}
.price-currency-row input {
  flex: 1 1 auto; min-width: 0; margin-bottom: 0;
}
.price-currency-select {
  flex: 0 0 auto; width: auto; min-width: 62px; padding: 6px 6px;
  background: var(--dark2); color: var(--text); margin: 0;
  border: 1px solid var(--border-strong); border-radius: 4px;
  font-size: .78rem; line-height: 1;
}
.price-currency-select:focus { border-color: var(--gold); box-shadow: 0 0 0 2px var(--shadow-focus); outline: none; }

.pricing-field { margin-bottom: 10px; }
.pricing-field label { font-size: .78rem; margin-bottom: 4px; }
.pricing-field input { margin-bottom: 0; }
.pricing-section { margin-bottom: 20px; }
.pricing-section-title { color: var(--gold); font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.cobrand-list { display: flex; flex-direction: column; gap: 12px; }
.cobrand-card {
  background: var(--dark2, rgba(0,0,0,.03));
  border: 1px solid var(--border, rgba(201,168,76,.15));
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  column-gap: 14px;
  row-gap: 10px;
  align-items: start;
}
.cobrand-card-image { grid-column: 1; grid-row: 1 / span 2; }
.cobrand-card-product { grid-column: 2; grid-row: 1; min-width: 0; }
.cobrand-card-remove { grid-column: 3; grid-row: 1; }
.cobrand-card-fields {
  grid-column: 2 / span 2;
  grid-row: 2;
  display: grid;
  grid-template-columns:
    minmax(0, 0.7fr)
    minmax(0, 1.1fr)
    minmax(0, 1.1fr)
    minmax(0, 0.7fr)
    minmax(0, 1fr)
    minmax(0, 1.1fr);
  column-gap: 10px;
  row-gap: 8px;
}
.cobrand-field { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cobrand-field-label {
  color: var(--gold);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cobrand-card input[type="number"],
.cobrand-card select {
  font-size: .88rem;
  padding: 7px 9px;
  width: 100%;
  box-sizing: border-box;
}
.cobrand-net-display {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 0;
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 720px) {
  .cobrand-card { grid-template-columns: 64px 1fr auto; column-gap: 10px; }
  .cobrand-card-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cobrand-field-label { white-space: normal; }
}
.breakeven-box {
  background: rgba(201,168,76,.08); border: 1px solid rgba(201,168,76,.2); border-radius: 6px;
  padding: 14px 18px; margin-top: 14px;
}
.breakeven-box strong { color: var(--gold); }

.success-screen { text-align: center; padding: 60px 24px; }
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.success-title { color: var(--gold); font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.success-url { color: var(--text); font-size: 1rem; margin-bottom: 6px; word-break: break-all; }
.success-actions { display: flex; gap: 10px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

.saving-screen { text-align: center; padding: 60px 24px; max-width: 520px; margin: 0 auto; }
.saving-spinner {
  width: 48px; height: 48px; margin: 0 auto 22px;
  border: 3px solid rgba(201,168,76,.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: saving-spin 0.9s linear infinite;
}
@keyframes saving-spin { to { transform: rotate(360deg); } }
.saving-title { color: var(--gold); font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.saving-subtitle { color: var(--text); font-size: .95rem; margin-bottom: 22px; min-height: 1.3em; }
.saving-progress {
  width: 100%; height: 8px; background: rgba(201,168,76,.12);
  border-radius: 999px; overflow: hidden; margin-bottom: 16px;
}
.saving-progress-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold), #e0c878);
  border-radius: 999px;
  transition: width 1s ease;
}
.saving-hint { color: var(--text-muted); font-size: .8rem; }

.help-callout {
  background: rgba(201,168,76,.06); border-left: 3px solid var(--gold); padding: 12px 16px;
  font-size: .83rem; color: var(--text-muted); margin-bottom: 18px; line-height: 1.5; border-radius: 0 6px 6px 0;
}

.deck-form-panel {
  background: var(--dark2); border: 1px solid rgba(201,168,76,.2); border-radius: 8px;
  padding: 20px; margin-bottom: 14px;
}
.sections-list { margin-top: 10px; }
.section-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 0;
  border-bottom: 1px solid rgba(201,168,76,.05); flex-wrap: wrap;
}
.section-item input.section-label-input { margin-bottom: 0; flex: 1 1 180px; min-width: 0; }
.section-upload-slot { flex: 0 0 auto; }
.section-upload { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.section-upload-thumb {
  width: 56px; height: 40px; border: 1px solid rgba(201,168,76,.25); border-radius: 4px;
  background: var(--dark); display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.section-upload-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 600px) {
  .section-item { flex-direction: column; align-items: stretch; }
  .section-upload { justify-content: flex-start; }
}

.toggle-group {
  display: flex; border: 1px solid rgba(201,168,76,.3); border-radius: 5px; overflow: hidden; margin-bottom: 14px;
}
.toggle-option {
  flex: 1; padding: 8px 12px; text-align: center; cursor: pointer; font-size: .85rem;
  background: transparent; color: var(--text-muted); transition: all .2s; border: none;
}
.toggle-option.active { background: var(--gold); color: var(--on-accent); font-weight: 600; }

.strength-indicator { height: 3px; border-radius: 2px; margin-top: -10px; margin-bottom: 14px; transition: all .3s; }
.strength-weak { background: var(--danger); width: 33%; }
.strength-medium { background: #E8C96A; width: 66%; }
.strength-strong { background: var(--dot-new); width: 100%; }

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

/* --- Notification bell (dashboard header) --------------------------------- */
.notif-bell-wrap { position: relative; display: inline-flex; }
.notif-bell {
  position: relative; width: 36px; height: 36px; padding: 0; background: transparent;
  border: 1px solid var(--border-strong); border-radius: 8px; color: var(--gold);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all .15s;
}
.notif-bell:hover { border-color: var(--gold); background: rgba(201,168,76,.08); }
.notif-bell-badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: .62rem; font-weight: 700;
  line-height: 1; display: inline-flex; align-items: center; justify-content: center;
}
.notif-bell-badge[hidden] { display: none; }
.notif-panel {
  position: absolute; top: calc(100% + 6px); right: 0; width: 360px; max-width: 92vw;
  max-height: 460px; overflow-y: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--card-shadow); z-index: 100;
}
.notif-panel[hidden] { display: none; }
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  font-size: .82rem; font-weight: 700; color: var(--text);
  position: sticky; top: 0; background: var(--surface);
}
.notif-mark-all { background: none; border: none; color: var(--gold); font-size: .74rem; font-weight: 600; cursor: pointer; padding: 2px 4px; }
.notif-mark-all:hover { text-decoration: underline; }
.notif-panel-list { display: flex; flex-direction: column; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; text-align: left;
  padding: 11px 14px; border: 0; border-bottom: 1px solid var(--border);
  background: transparent; color: var(--text); font: inherit; cursor: pointer;
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.is-unread { background: rgba(201,168,76,.07); }
.notif-item-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .7rem; font-weight: 700;
}
.notif-item-body { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.notif-item-text { font-size: .82rem; line-height: 1.45; color: var(--text); }
.notif-item-text strong { color: var(--text-strong); font-weight: 700; }
.notif-item-meta { font-size: .7rem; color: var(--text-muted); margin-top: 3px; }
.notif-panel-empty { padding: 26px 14px; text-align: center; color: var(--text-muted); font-size: .82rem; }
