/* WP Sudoku Game v4.0.4 */
#ezsdk-app, #ezsdk-portal {
  --ez-bg: #ffffff;
  --ez-soft: #f8fafc;
  --ez-ink: #0f172a;
  --ez-text: #1e293b;
  --ez-muted: #64748b;
  --ez-line: #d5dde8;
  --ez-strong: #334155;
  --ez-accent: #4f46e5;
  --ez-accent-2: #6366f1;
  --ez-accent-soft: #eef2ff;
  --ez-peer: #f1f5fb;
  --ez-same: #dfe3ff;
  --ez-sel: #c7cdff;
  --ez-user: #4338ca;
  --ez-hint: #0f766e;
  --ez-err: #dc2626;
  --ez-err-bg: #fde8e8;
  --ez-ok: #16a34a;
  --ez-radius: 16px;
  --ez-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ez-text);
  line-height: 1.45;
  max-width: 1040px;
  margin: 0 auto;
  padding: 8px 0 24px;
  -webkit-tap-highlight-color: transparent;
}
#ezsdk-portal { max-width: none; margin: 0; padding: 0; height: 0; }
:is(#ezsdk-app, #ezsdk-portal) *, :is(#ezsdk-app, #ezsdk-portal) *::before, :is(#ezsdk-app, #ezsdk-portal) *::after { box-sizing: border-box; }
:is(#ezsdk-app, #ezsdk-portal) [hidden] { display: none !important; }

/* Neutralise theme button/heading styles */
:is(#ezsdk-app, #ezsdk-portal) button, :is(#ezsdk-app, #ezsdk-portal) select, :is(#ezsdk-app, #ezsdk-portal) a.ezsdk-btn {
  font: inherit; margin: 0; letter-spacing: normal; text-transform: none;
  box-shadow: none; text-shadow: none; min-height: 0; min-width: 0; line-height: 1.2;
  text-decoration: none; -webkit-appearance: none; appearance: none;
}
:is(#ezsdk-app, #ezsdk-portal) button { cursor: pointer; }
:is(#ezsdk-app, #ezsdk-portal) h2, :is(#ezsdk-app, #ezsdk-portal) h3, :is(#ezsdk-app, #ezsdk-portal) p { margin: 0; padding: 0; border: 0; }
:is(#ezsdk-app, #ezsdk-portal) h2::before, :is(#ezsdk-app, #ezsdk-portal) h2::after, :is(#ezsdk-app, #ezsdk-portal) h3::before, :is(#ezsdk-app, #ezsdk-portal) h3::after { display: none; }
:is(#ezsdk-app, #ezsdk-portal) ol, :is(#ezsdk-app, #ezsdk-portal) table { margin: 0; padding: 0; }

/* Layout */
.ezsdk-layout {
  display: grid;
  grid-template-columns: minmax(0, 540px) minmax(280px, 360px);
  gap: 28px;
  justify-content: center;
  align-items: start;
}
.ezsdk-main { min-width: 0; }
.ezsdk-side { display: grid; gap: 16px; position: sticky; top: 24px; }

/* Header */
.ezsdk-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.ezsdk-brand { display: flex; align-items: center; gap: 12px; }
.ezsdk-logo {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ez-accent), #8b5cf6); color: #fff; font-weight: 800; font-size: 22px;
  box-shadow: 0 6px 16px rgba(79, 70, 229, .3);
}
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-title { font-size: 24px; font-weight: 800; color: var(--ez-ink); line-height: 1.1; }
.ezsdk-sub { font-size: 13px; color: var(--ez-muted); }
.ezsdk-top-actions { display: flex; gap: 8px; align-items: center; }

/* Buttons */
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--ez-line);
  background: #fff; color: var(--ez-text); font-weight: 600; font-size: 14px; transition: .15s;
}
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-btn:hover { background: var(--ez-soft); border-color: #c3cddb; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-btn-primary { background: var(--ez-accent); border-color: var(--ez-accent); color: #fff; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-btn-primary:hover { background: #4338ca; border-color: #4338ca; color: #fff; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-btn-block { display: flex; width: 100%; margin-top: 12px; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-icon-btn {
  width: 40px; height: 40px; padding: 0; border-radius: 12px; border: 1px solid var(--ez-line);
  background: #fff; color: var(--ez-strong); display: inline-grid; place-items: center; transition: .15s;
}
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-icon-btn:hover { background: var(--ez-accent-soft); color: var(--ez-accent); border-color: #c7d2fe; }

/* Difficulty tabs */
.ezsdk-diff {
  display: flex; gap: 4px; padding: 4px; background: var(--ez-soft); border: 1px solid var(--ez-line);
  border-radius: 14px; margin-bottom: 12px; overflow-x: auto; scrollbar-width: none;
}
.ezsdk-diff::-webkit-scrollbar { display: none; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-diff button {
  flex: 1 0 auto; padding: 9px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--ez-muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: .15s;
}
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-diff button:hover { color: var(--ez-ink); }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-diff button.is-active { background: #fff; color: var(--ez-accent); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }

/* Status bar */
.ezsdk-status { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.ezsdk-stat {
  flex: 1; display: flex; flex-direction: column; padding: 6px 12px; border-radius: 12px;
  background: var(--ez-soft); border: 1px solid var(--ez-line);
}
.ezsdk-stat span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ez-muted); font-weight: 600; }
.ezsdk-stat strong { font-size: 17px; color: var(--ez-ink); font-variant-numeric: tabular-nums; }
.ezsdk-stat-time strong { color: var(--ez-accent); }

.ezsdk-badge {
  font-size: 13px; padding: 8px 12px; border-radius: 10px; margin-bottom: 10px;
  background: #fff7ed; color: #9a3412; border: 1px solid #fed7aa;
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
}
.ezsdk-badge.is-wait { background: var(--ez-accent-soft); color: #3730a3; border-color: #c7d2fe; justify-content: flex-start; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-btn-sm { padding: 6px 10px; font-size: 12px; border-radius: 9px; white-space: nowrap; flex: none; }
@media (max-width: 520px) { .ezsdk-badge { flex-direction: column; align-items: stretch; } }

/* Board */
.ezsdk-board-wrap { position: relative; }
.ezsdk-board {
  display: grid; grid-template-columns: repeat(9, 1fr); grid-template-rows: repeat(9, 1fr);
  width: 100%; aspect-ratio: 1 / 1; border: 2.5px solid var(--ez-strong); border-radius: 14px;
  overflow: hidden; background: #fff; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  box-shadow: var(--ez-shadow); transition: filter .2s;
}
.ezsdk-board.is-hidden { filter: blur(10px); }
.ezsdk-cell {
  position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0;
  border-right: 1px solid var(--ez-line); border-bottom: 1px solid var(--ez-line);
  cursor: pointer; font-size: clamp(18px, 5.4vw, 30px); font-weight: 600; color: var(--ez-user);
  background: #fff; transition: background-color .12s;
}
.ezsdk-cell:nth-child(9n) { border-right: 0; }
.ezsdk-cell:nth-child(n+73) { border-bottom: 0; }
.ezsdk-cell.br { border-right: 2.5px solid var(--ez-strong); }
.ezsdk-cell.bb { border-bottom: 2.5px solid var(--ez-strong); }
.ezsdk-cell.given { color: var(--ez-ink); font-weight: 700; }
.ezsdk-cell.hinted { color: var(--ez-hint); }
.ezsdk-cell.peer { background: var(--ez-peer); }
.ezsdk-cell.same { background: var(--ez-same); }
.ezsdk-cell.sel { background: var(--ez-sel); }
.ezsdk-cell.err { color: var(--ez-err); background: var(--ez-err-bg); }
.ezsdk-cell.sel.err { background: #fbcaca; }
.ezsdk-cell.flash { animation: ezsdk-flash .65s ease; }
.ezsdk-cell.shake .v { animation: ezsdk-shake .4s ease; }
.ezsdk-cell .v { pointer-events: none; }
.ezsdk-cell .n {
  position: absolute; inset: 2px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr);
  font-size: clamp(8px, 1.9vw, 12px); font-weight: 600; color: var(--ez-muted); pointer-events: none;
}
.ezsdk-cell .n i { font-style: normal; display: flex; align-items: center; justify-content: center; line-height: 1; }
.ezsdk-cell .n i.hl { color: var(--ez-accent); font-weight: 800; }

@keyframes ezsdk-flash { 0% { background: #fff; } 40% { background: #d1fae5; } 100% { background: inherit; } }
@keyframes ezsdk-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Overlays */
.ezsdk-overlay { position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; }
.ezsdk-overlay-card {
  background: #fff; border-radius: 16px; padding: 22px 26px; text-align: center; box-shadow: 0 12px 40px rgba(15, 23, 42, .18);
  display: grid; gap: 14px; justify-items: center; max-width: 80%;
}
.ezsdk-overlay-title { font-weight: 700; font-size: 18px; color: var(--ez-ink); }
.ezsdk-spinner {
  width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--ez-accent-soft);
  border-top-color: var(--ez-accent); animation: ezsdk-spin .8s linear infinite; display: inline-block;
}
.ezsdk-spinner.sm { width: 14px; height: 14px; border-width: 2px; vertical-align: -2px; }
@keyframes ezsdk-spin { to { transform: rotate(360deg); } }

/* Tools */
.ezsdk-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 10px; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-tool {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px;
  border: 1px solid var(--ez-line); border-radius: 12px; background: #fff; color: var(--ez-strong);
  font-size: 12px; font-weight: 600; transition: .15s;
}
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-tool:hover { background: var(--ez-accent-soft); color: var(--ez-accent); border-color: #c7d2fe; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-tool.is-on { background: var(--ez-accent); border-color: var(--ez-accent); color: #fff; }
.ezsdk-pill {
  position: absolute; top: 5px; right: 6px; font-style: normal; font-size: 10px; font-weight: 700;
  padding: 1px 6px; border-radius: 99px; background: var(--ez-accent-soft); color: var(--ez-accent);
}
.ezsdk-tool.is-on .ezsdk-pill { background: rgba(255, 255, 255, .25); color: #fff; }

/* Number pad */
.ezsdk-pad { display: grid; grid-template-columns: repeat(9, 1fr); gap: 6px; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-num {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  padding: 10px 0 7px; border: 1px solid var(--ez-line); border-radius: 12px; background: #fff;
  color: var(--ez-user); transition: .12s;
}
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-num b { font-size: clamp(20px, 5vw, 26px); font-weight: 700; line-height: 1; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-num small { font-size: 11px; color: var(--ez-muted); font-weight: 600; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-num:hover:not(:disabled) { background: var(--ez-accent-soft); border-color: #c7d2fe; transform: translateY(-1px); }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-num.is-active { border-color: var(--ez-accent); box-shadow: inset 0 0 0 1px var(--ez-accent); }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-num:disabled { opacity: .35; cursor: default; }

.ezsdk-kbd { margin-top: 12px !important; font-size: 12px; color: var(--ez-muted); text-align: center; }
.ezsdk-kbd b { color: var(--ez-strong); font-weight: 600; }

/* Cards */
.ezsdk-card { background: #fff; border: 1px solid var(--ez-line); border-radius: var(--ez-radius); padding: 16px; box-shadow: var(--ez-shadow); }
.ezsdk-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-card h3 { font-size: 16px; font-weight: 700; color: var(--ez-ink); }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-card select {
  padding: 6px 28px 6px 10px; border: 1px solid var(--ez-line); border-radius: 10px; background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%2364748b'/%3E%3C/svg%3E") no-repeat right 10px center;
  font-size: 13px; color: var(--ez-text); width: auto; height: auto;
}
.ezsdk-muted { color: var(--ez-muted); font-size: 13px; }

.ezsdk-acc-guest, .ezsdk-acc-head { display: flex; gap: 12px; align-items: center; }
.ezsdk-acc-head > div:nth-child(2) { flex: 1; min-width: 0; }
.ezsdk-acc-head b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ezsdk-avatar {
  width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--ez-accent-soft); color: var(--ez-accent); font-weight: 800; font-size: 18px;
}
.ezsdk-streak {
  display: flex; flex-direction: column; align-items: center; padding: 6px 10px; border-radius: 12px;
  background: #fff7ed; color: #c2410c; font-weight: 800; font-size: 16px; line-height: 1.1;
}
.ezsdk-streak small { font-size: 10px; font-weight: 600; color: #9a3412; }
.ezsdk-pending { margin-top: 10px !important; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: #fefce8; color: #854d0e; }

.ezsdk-stats { width: 100%; border-collapse: collapse; margin-top: 12px !important; font-size: 13px; border: 0; }
.ezsdk-stats th, .ezsdk-stats td { padding: 6px 4px; text-align: left; border: 0; border-bottom: 1px solid #eef2f7; background: none; }
.ezsdk-stats th { font-size: 11px; color: var(--ez-muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ezsdk-stats td:last-child, .ezsdk-stats th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ezsdk-stats tr:last-child td { border-bottom: 0; }

/* Segmented + leaderboard */
.ezsdk-seg { display: flex; gap: 4px; padding: 3px; background: var(--ez-soft); border-radius: 10px; margin-bottom: 10px; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-seg button { flex: 1; padding: 6px 4px; border: 0; border-radius: 8px; background: transparent; color: var(--ez-muted); font-size: 12px; font-weight: 600; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-seg button.is-active { background: #fff; color: var(--ez-accent); box-shadow: 0 1px 2px rgba(15, 23, 42, .1); }
.ezsdk-lb-me { font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--ez-accent-soft); color: #3730a3; margin-bottom: 8px; }
.ezsdk-lb { list-style: none !important; max-height: 420px; overflow-y: auto; }
.ezsdk-lb li {
  display: grid; grid-template-columns: 28px 30px minmax(0, 1fr) auto; align-items: center; gap: 8px;
  padding: 7px 6px; border-radius: 10px; font-size: 14px; margin: 0 !important; list-style: none !important;
}
.ezsdk-lb li:nth-child(even) { background: #fafbfd; }
.ezsdk-lb li.is-me { background: var(--ez-accent-soft); box-shadow: inset 0 0 0 1px #c7d2fe; }
.ezsdk-lb .rk { text-align: center; font-weight: 700; color: var(--ez-muted); font-size: 13px; }
.ezsdk-lb li.top .rk { font-size: 18px; }
.ezsdk-lb .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #eef2f7; color: var(--ez-strong); font-weight: 700; font-size: 12px; }
.ezsdk-lb li.top-1 .av { background: #fef3c7; color: #92400e; }
.ezsdk-lb li.top-2 .av { background: #e5e7eb; color: #374151; }
.ezsdk-lb li.top-3 .av { background: #fde7d6; color: #9a3412; }
.ezsdk-lb .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--ez-ink); }
.ezsdk-lb .nm em { font-style: normal; font-size: 10px; padding: 1px 6px; border-radius: 99px; background: var(--ez-accent); color: #fff; vertical-align: 1px; }
.ezsdk-lb .nm small { display: block; font-size: 11px; color: var(--ez-muted); font-weight: 500; }
.ezsdk-lb .tm { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ez-strong); }
.ezsdk-lb .ezsdk-lb-empty { display: block; text-align: center; color: var(--ez-muted); padding: 18px 8px; background: none !important; }
.ezsdk-lb-foot { font-size: 12px; color: var(--ez-muted); text-align: center; margin-top: 8px !important; }

/* Modal */
.ezsdk-modal {
  position: fixed; inset: 0; z-index: 2147483000; background: rgba(15, 23, 42, .5);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  animation: ezsdk-fade .2s ease;
}
.ezsdk-modal-card {
  width: 100%; max-width: 420px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 24px 60px rgba(15, 23, 42, .3);
  animation: ezsdk-pop .25s ease; margin: auto;
}
html.ezsdk-lock, html.ezsdk-lock body { overflow: hidden !important; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-modal-title { font-size: 20px; font-weight: 800; color: var(--ez-ink); margin-bottom: 12px; }
.ezsdk-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.ezsdk-modal-actions .ezsdk-btn { flex: 1; }
@keyframes ezsdk-fade { from { opacity: 0; } }
@keyframes ezsdk-pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

.ezsdk-win { text-align: center; }
.ezsdk-win-emoji { font-size: 44px; line-height: 1; margin-bottom: 6px; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-win h3 { font-size: 22px; font-weight: 800; color: var(--ez-ink); }
.ezsdk-final { font-size: 44px; font-weight: 800; color: var(--ez-accent); font-variant-numeric: tabular-nums; margin: 8px 0 4px; letter-spacing: -.02em; }
.ezsdk-win-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0 14px; }
.ezsdk-win-stats div { background: var(--ez-soft); border-radius: 12px; padding: 8px; }
.ezsdk-win-stats span { display: block; font-size: 11px; color: var(--ez-muted); text-transform: uppercase; letter-spacing: .05em; }
.ezsdk-win-stats b { font-size: 16px; color: var(--ez-ink); }
.ezsdk-win-stats small { font-size: 11px; color: var(--ez-muted); font-weight: 500; }
.ezsdk-save { font-size: 14px; padding: 12px; border-radius: 12px; background: var(--ez-soft); text-align: left; }
.ezsdk-save.is-ok { background: #ecfdf5; color: #065f46; }
.ezsdk-save.is-info { background: var(--ez-accent-soft); color: #312e81; }
.ezsdk-save.is-warn { background: #fff7ed; color: #9a3412; }
.ezsdk-rank { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 99px; background: #fff; font-weight: 700; font-size: 12px; }

/* Settings toggles */
.ezsdk-toggle { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid #eef2f7; cursor: pointer; }
.ezsdk-toggle span b { display: block; font-size: 14px; color: var(--ez-ink); }
.ezsdk-toggle span small { display: block; font-size: 12px; color: var(--ez-muted); }
.ezsdk-toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.ezsdk-toggle i { flex: none; width: 42px; height: 24px; border-radius: 99px; background: #cbd5e1; position: relative; transition: .2s; }
.ezsdk-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.ezsdk-toggle input:checked + i { background: var(--ez-accent); }
.ezsdk-toggle input:checked + i::after { transform: translateX(18px); }
.ezsdk-toggle input:focus-visible + i { outline: 2px solid var(--ez-accent); outline-offset: 2px; }

/* Leaderboard name form */
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-link {
  border: 0; background: none; padding: 0; color: var(--ez-accent); font-weight: 600; font-size: inherit;
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-input {
  display: block; width: 100%; margin: 14px 0 6px; padding: 12px 14px; border: 1.5px solid var(--ez-line);
  border-radius: 12px; background: #fff; color: var(--ez-ink); font: inherit; font-size: 16px; font-weight: 600;
  box-shadow: none; height: auto; line-height: 1.3;
}
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-input:focus { outline: none; border-color: var(--ez-accent); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }
.ezsdk-hint { font-size: 12px; color: var(--ez-muted); margin-bottom: 10px !important; }
.ezsdk-form-err { font-size: 13px; color: var(--ez-err); background: var(--ez-err-bg); padding: 8px 10px; border-radius: 10px; margin-bottom: 10px !important; }
.ezsdk-save-sub { margin-top: 8px !important; font-size: 13px; }
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-btn:disabled { opacity: .6; cursor: default; }

/* Saved-after-login popup */
:is(#ezsdk-app, #ezsdk-portal) .ezsdk-saved-list { list-style: none; margin: 14px 0 12px; padding: 0; text-align: left; }
.ezsdk-saved-list li {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; align-items: center;
  padding: 10px 12px; border-radius: 12px; background: #ecfdf5; margin: 0 0 6px !important; list-style: none;
}
.ezsdk-saved-list .d { font-weight: 700; color: var(--ez-ink); }
.ezsdk-saved-list .t { font-weight: 800; color: var(--ez-accent); font-variant-numeric: tabular-nums; font-size: 18px; grid-row: span 2; align-self: center; }
.ezsdk-saved-list .r { font-size: 12px; color: #065f46; }
.ezsdk-name-box {
  display: grid; gap: 2px; justify-items: center; padding: 12px; border-radius: 12px;
  background: var(--ez-accent-soft); color: #3730a3; font-size: 13px;
}
.ezsdk-name-box b { font-size: 18px; color: var(--ez-ink); word-break: break-word; }
.ezsdk-name-box small { color: var(--ez-muted); font-size: 12px; }

/* Toast + confetti */
.ezsdk-toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 2147483001;
  background: var(--ez-ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-size: 14px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .3); max-width: calc(100vw - 32px); text-align: center;
}
.ezsdk-toast.is-in { animation: ezsdk-toast .25s ease; }
@keyframes ezsdk-toast { from { opacity: 0; transform: translate(-50%, 10px); } }
.ezsdk-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 2147483002; display: none; }

:is(#ezsdk-app, #ezsdk-portal) button:focus-visible, :is(#ezsdk-app, #ezsdk-portal) a:focus-visible, :is(#ezsdk-app, #ezsdk-portal) select:focus-visible { outline: 2px solid var(--ez-accent); outline-offset: 2px; }

/* Responsive */
@media (max-width: 920px) {
  .ezsdk-layout { grid-template-columns: minmax(0, 560px); }
  .ezsdk-side { position: static; }
}
@media (max-width: 520px) {
  #ezsdk-app { padding: 4px 0 16px; }
  .ezsdk-layout { gap: 18px; }
  .ezsdk-sub, .ezsdk-kbd { display: none; }
  :is(#ezsdk-app, #ezsdk-portal) .ezsdk-title { font-size: 20px; }
  .ezsdk-logo { width: 38px; height: 38px; font-size: 19px; }
  .ezsdk-status { gap: 6px; }
  .ezsdk-stat { padding: 5px 8px; }
  .ezsdk-stat strong { font-size: 15px; }
  .ezsdk-board { border-radius: 10px; }
  .ezsdk-pad { gap: 4px; }
  :is(#ezsdk-app, #ezsdk-portal) .ezsdk-num { padding: 9px 0 6px; border-radius: 10px; }
  .ezsdk-tools { gap: 6px; }
}
@media (max-width: 600px) {
  .ezsdk-modal { align-items: flex-end; padding: 0; }
  .ezsdk-modal-card {
    max-width: none; margin: 0; border-radius: 22px 22px 0 0;
    max-height: 90vh; max-height: 90dvh;
    padding: 12px 18px calc(20px + env(safe-area-inset-bottom, 0px));
    animation: ezsdk-sheet .28s cubic-bezier(.2, .8, .2, 1);
  }
  .ezsdk-modal-card::before {
    content: ""; display: block; width: 40px; height: 5px; border-radius: 99px; background: #d5dde8; margin: 0 auto 14px;
  }
  .ezsdk-modal-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); background: #fff; padding: 12px 0 4px; margin-top: 12px; }
  .ezsdk-modal-actions .ezsdk-btn { padding: 13px 16px; font-size: 15px; }
  .ezsdk-toggle { padding: 14px 0; }
  .ezsdk-final { font-size: 40px; }
}
@keyframes ezsdk-sheet { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) {
  :is(#ezsdk-app, #ezsdk-portal) *, .ezsdk-modal, .ezsdk-modal-card { animation: none !important; transition: none !important; }
}
