.cl-scrim { display: none; }
.cl-panel {
  --s-page: #0d0c10;
  --s-card: #1d1914;
  --s-ink: var(--cw-text, #f8f3eb);
  --s-body: #c9beae;
  --s-muted: var(--cw-text-muted, #a89a88);
  --s-gold: var(--cw-gold, #e4b85b);
  --s-gold-ink: var(--s-gold);
  --s-line: rgba(228, 184, 91, .16);
  --s-field: #15120e;
  --s-btn: var(--cw-gold, #e4b85b);
  --s-btn-ink: #16110a;
  --s-err: #e08a78;
  --s-ring: rgba(228, 184, 91, .18);
  --s-ok: var(--cw-green, #5cc98a);

  position: fixed; inset: 0; z-index: 9300;
  display: flex; flex-direction: column;
  overflow-y: auto; overscroll-behavior: contain;
  box-sizing: border-box;
  padding: max(10px, env(safe-area-inset-top)) 0 max(24px, env(safe-area-inset-bottom));
  background: var(--s-page);
  color: var(--s-ink);
  font: 400 15px/1.5 'Outfit', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-align: left;
  animation: cl-in .24s cubic-bezier(.2, .8, .2, 1) both;
}
body.light-theme .cl-panel,
:root[data-theme="light"] .cl-panel {
  --s-page: #f7f2ea;
  --s-card: #fffaf2;
  --s-ink: #2a2118;
  --s-body: #5b4f43;
  --s-muted: #7a6b5b;
  --s-gold: #a86f1e;
  --s-gold-ink: #94601a;
  --s-line: rgba(90, 60, 30, .14);
  --s-field: #fff;
  --s-btn: #2a2118;
  --s-btn-ink: #f7f2ea;
  --s-err: #9c3b2e;
  --s-ring: rgba(168, 111, 30, .16);
  --s-ok: #2f8a55;
}
@keyframes cl-in { from { opacity: 0; transform: translateX(24px); } }

.cl-panel *, .cl-panel *::before, .cl-panel *::after { box-sizing: border-box; }
:where(.cl-panel) :is(p, h2, ul) { margin: 0; }
.cl-panel button:focus-visible, .cl-panel a:focus-visible {
  outline: 2px solid var(--s-gold);
  outline-offset: 3px;
}
.cl-panel [tabindex="-1"]:focus { outline: none; }

.cl-sr {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.cl-back {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; max-width: calc(100% - 24px);
  margin: 0 12px; padding: 0 10px 0 4px;
  background: none; border: 0; border-radius: 10px; cursor: pointer;
  color: var(--s-muted); font: 400 14px 'Outfit', -apple-system, sans-serif;
}
.cl-back svg { flex: none; color: var(--s-gold); }
.cl-back-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-back:hover { color: var(--s-ink); }

.cl-body {
  flex: 1 0 auto;
  display: flex; flex-direction: column;
  width: 100%; max-width: 440px;
  margin: 0 auto; padding: 8px 22px 0;
}
.cl-h {
  font: 400 28px/1.15 'Cardo', Georgia, serif;
  text-wrap: balance; overflow-wrap: anywhere;
}
.cl-sub { margin-top: 8px; color: var(--s-body); font-size: 14.5px; line-height: 1.5; }
.cl-sub b { color: var(--s-ink); font-weight: 500; overflow-wrap: anywhere; }
.cl-wait { margin-top: 22px; color: var(--s-muted); font-size: 14px; }

.cl-list {
  list-style: none; padding: 0; margin-top: 20px;
  background: var(--s-card);
  border: 1px solid var(--s-line); border-radius: 16px;
  overflow: hidden;
}
.cl-li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 10px 8px 10px 16px;
  border-bottom: 1px solid var(--s-line);
}
.cl-li:last-child, .cl-confirm:last-child { border-bottom: 0; }
.cl-k { display: flex; flex-direction: column; min-width: 0; }
.cl-name { font-size: 15px; font-weight: 500; overflow-wrap: break-word; }
.cl-k small { color: var(--s-muted); font-size: 12.5px; line-height: 1.4; overflow-wrap: break-word; }
.cl-as { display: block; margin-top: 6px; font-size: .6em; line-height: 1.35; overflow-wrap: break-word; }
.cl-tag { flex: none; padding-right: 8px; color: var(--s-muted); font-size: 13.5px; }
.cl-act {
  flex: none; min-height: 44px; padding: 0 8px; border: 0; border-radius: 10px;
  background: none; cursor: pointer;
  color: var(--s-gold-ink); font: 500 14px 'Outfit', -apple-system, sans-serif;
}
.cl-act:hover:not(:disabled) { text-decoration: underline; text-underline-offset: 3px; }
.cl-act:disabled { color: var(--s-muted); cursor: default; }
.cl-done {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px;
  color: var(--s-ok); font-size: 14px; font-weight: 500;
}

.cl-confirm {
  padding: 14px 16px; border-bottom: 1px solid var(--s-line);
  background: color-mix(in srgb, var(--s-gold) 7%, transparent);
}
.cl-q { font-size: 14.5px; line-height: 1.45; }
.cl-confirm-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.cl-confirm-row .cl-btn { margin-top: 0; height: 44px; font-size: 15px; }

.cl-form { display: flex; flex-direction: column; margin-top: 22px; }
.cl-label { font: 500 13px 'Outfit', -apple-system, sans-serif; color: var(--s-body); margin-bottom: 6px; }
.cl-input {
  display: block; width: 100%; height: 50px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--s-line); background: var(--s-field); color: var(--s-ink);
  font: 400 17px 'Outfit', -apple-system, sans-serif;
  caret-color: var(--s-gold);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cl-input:focus { outline: none; border-color: var(--s-gold); box-shadow: 0 0 0 3px var(--s-ring); }
.cl-input[aria-invalid="true"] { border-color: var(--s-err); }

.cl-btn {
  display: block; width: 100%; height: 52px; margin-top: 12px; border-radius: 14px; border: 0; cursor: pointer;
  font: 600 16px 'Outfit', -apple-system, sans-serif;
  transition: filter .15s ease, opacity .15s ease;
}
.cl-btn:disabled { opacity: .5; cursor: default; }
.cl-primary { background: var(--s-btn); color: var(--s-btn-ink); }
.cl-primary:hover:not(:disabled) { filter: brightness(1.08); }
.cl-ghost { background: none; color: var(--s-ink); border: 1px solid var(--s-line); }
.cl-danger { background: none; color: var(--s-err); border: 1px solid color-mix(in srgb, var(--s-err) 55%, transparent); }

.cl-err { margin-top: 10px; color: var(--s-err); font-size: 13.5px; line-height: 1.4; }
.cl-note {
  margin-top: 18px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--s-line); color: var(--s-body);
  font-size: 14px; line-height: 1.5;
}
.cl-stack { display: flex; flex-direction: column; margin-top: 14px; }
.cl-signin { display: flex; flex-direction: column; }
.cl-signin .si-h { padding-right: 0; font-size: 28px; }
.cl-signin .si-p { margin-top: 8px; }

.cl-toast {
  position: fixed; z-index: 9400;
  top: max(16px, env(safe-area-inset-top)); left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: min(400px, calc(100vw - 32px));
  padding: 12px 16px; border-radius: 14px;
  background: #242430; color: #f8f3eb;
  border: 1px solid rgba(228, 184, 91, .5);
  box-shadow: 0 14px 36px -16px rgba(0, 0, 0, .6);
  font: 500 14.5px/1.4 'Outfit', -apple-system, sans-serif;
  animation: cl-toast .3s cubic-bezier(.2, .8, .2, 1) both;
}
.cl-toast svg { flex: none; color: #5cc98a; }
body.light-theme .cl-toast,
:root[data-theme="light"] .cl-toast {
  background: #fffaf2; color: #2a2118;
  border-color: rgba(168, 111, 30, .45);
  box-shadow: 0 14px 36px -18px rgba(90, 55, 20, .45);
}
body.light-theme .cl-toast svg,
:root[data-theme="light"] .cl-toast svg { color: #2f8a55; }
@keyframes cl-toast { from { opacity: 0; transform: translate(-50%, -8px); } }

@media (min-width: 769px) {
  .cl-scrim {
    display: block; position: fixed; inset: 0; z-index: 9299;
    background: rgba(0, 0, 0, .55);
  }
  body.light-theme .cl-scrim,
  :root[data-theme="light"] .cl-scrim { background: rgba(30, 20, 10, .28); }
  .cl-panel {
    inset: auto; top: 50%; left: 50%;
    width: min(400px, calc(100vw - 48px));
    max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px);
    transform: translate(-50%, -50%);
    padding: 12px 0 26px;
    border-radius: 22px;
    background: var(--s-card);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
    animation: cl-pop .22s cubic-bezier(.2, .8, .2, 1) both;
  }
  .cl-body { padding: 4px 26px 0; }
  .cl-list { background: var(--s-page); }
  .cl-toast { top: 24px; }
}
@keyframes cl-pop { from { opacity: 0; transform: translate(-50%, calc(-50% + 12px)); } }

@media (prefers-reduced-motion: reduce) {
  .cl-panel, .cl-toast { animation: none; }
  .cl-input, .cl-btn { transition: none; }
}
