:root { color-scheme: dark; --bg: #0e0e10; --panel: #1f1f23; --line: #37343d; --purple: #9146ff; --yellow: #ffd166; --muted: #b7b2bd; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0%, #38224d 0, transparent 38%), var(--bg); color: #f2eff5; font: 16px/1.5 Inter, "Segoe UI", sans-serif; }
body[data-page="overlay"] { min-height: 0; background: transparent; }
.shell { width: min(1000px, calc(100% - 40px)); margin: auto; padding: 24px 0 64px; }
.hero, .panel { margin-top: 28px; padding: 30px; border: 1px solid var(--line); border-radius: 14px; background: rgba(31,31,35,.94); }
.hero { min-height: 320px; display: grid; align-content: center; }
.eyebrow { color: var(--yellow); font-size: 13px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
h1 { font-size: clamp(38px, 7vw, 72px); line-height: 1; margin: 10px 0 20px; }
h2 { margin-top: 28px; } .muted { color: var(--muted); }
.button { border: 0; border-radius: 8px; padding: 11px 16px; background: var(--purple); color: white; font-weight: 700; text-decoration: none; cursor: pointer; }
.button.secondary { background: #3a3442; } .panel-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.panel-heading h1 { font-size: 42px; } .field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 24px 0; }
label { display: grid; gap: 6px; color: var(--muted); } input, select { width: 100%; padding: 9px; color: inherit; background: #121214; border: 1px solid var(--line); border-radius: 6px; }
.checkbox { display: flex; display: flex; grid-template-columns: auto 1fr; align-items: center; } .checkbox input { width: auto; }
code { word-break: break-all; color: var(--yellow); } .counter-list { display: grid; gap: 10px; }
.counter-list { display: grid; gap: 14px; }
.counter-card { display: grid; gap: 14px; padding: 18px 56px 18px 20px; background: #17171a; border: 1px solid var(--line); border-radius: 10px; }
.counter-card header { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.counter-card .counter-heading { display: flex; justify-content: flex-start !important; align-items: center; gap: 10px; margin-top: -5px; }
.counter-card h2 { margin: 0 0 4px; font-size: 22px; }
.counter-card header small { color: var(--muted); }
.share-actions { display: flex; justify-content: flex-start; gap: 0; align-items: center; }
main.shell.shell article.counter-card.counter-card .style-actions button.btn.btn-secondary, main.shell.shell article.counter-card.counter-card .share-actions button.btn.btn-secondary { border: 0 !important; background: transparent !important; box-shadow: none !important; color: #f2eff5 !important; }
main.shell.shell article.counter-card.counter-card .style-actions button.btn.btn-secondary:hover, main.shell.shell article.counter-card.counter-card .share-actions button.btn.btn-secondary:hover { border: 0 !important; background: rgba(255,255,255,.08) !important; box-shadow: none !important; color: #fff !important; }
main.shell.shell article.counter-card.counter-card .style-actions button.btn.btn-secondary.dimensions-toggle { background: #d4d4d4 !important; border-radius: 6px; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 8px; }
.icon-button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.text-button { font: 700 21px Georgia, serif; padding: 8px 12px; }
.title-font-edit { font: 700 21px Georgia, serif; }
.copy-link.copied { color: #20b26c; }
.copy-link.copied::before { display: none; }
.copy-link.copied { width: auto; min-width: 70px; font-size: 12px; padding: 5px 8px; }
.copy-link { width: 30px; height: 30px; padding: 5px; font-size: 0; color: #f2eff5; }
.copy-link::before { content: ''; display: block; width: 20px; height: 20px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l2-2a5 5 0 0 0-7.07-7.07l-1.15 1.15m3.15 5.92a5 5 0 0 0-7.07 0l-2 2A5 5 0 0 0 12 20.07l1.15-1.15' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 13a5 5 0 0 0 7.07 0l2-2a5 5 0 0 0-7.07-7.07l-1.15 1.15m3.15 5.92a5 5 0 0 0-7.07 0l-2 2A5 5 0 0 0 12 20.07l1.15-1.15' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.global-title-editor { display: grid; gap: 4px; }
.global-title-editor .eyebrow { margin: 0; }
.global-title-editor small { color: var(--muted); font-size: 13px; }
.editable-title { min-width: 0; }
.editable-title h2 { cursor: text; }
.editable-title h2:focus-visible { outline: 2px solid var(--yellow); outline-offset: 4px; border-radius: 3px; }
.title-input { width: min(320px, 100%); padding: 5px 8px; color: inherit; background: #121214; border: 1px solid var(--line); border-radius: 5px; font: inherit; }
.title-layout-controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.title-layout-controls label { min-width: 170px; }
.title-layout-controls [hidden] { display: none; }
.title-layout-row { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; }
.title-layout-row .title-layout-controls { flex-wrap: nowrap; }
.title-layout-row .title-layout-controls label { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.category-card-layout { justify-content: space-between; }
.category-card-layout > label { min-width: 170px; }
.counter-display { display: grid; grid-template-columns: minmax(0, auto) 84px; grid-template-rows: auto auto auto; align-items: start; column-gap: 10px; row-gap: 6px; width: max-content; max-width: 100%; overflow: auto; }
.counter-preview-label { grid-column: 1; color: var(--muted); font-size: 13px; }
.counter-preview { grid-column: 1; grid-row: 2; display: flex; align-items: flex-start; justify-content: center; min-width: 220px; min-height: 0; outline: 1px dashed #6b6574; background: transparent; overflow: hidden; }
.counter-preview .preview-title { opacity: 1; line-height: 1; }
.counter-preview .preview-count { line-height: 1; }
.counter-display > .style-actions { grid-column: 2; grid-row: 2; display: grid; grid-template-columns: repeat(2, 38px); gap: 8px; align-items: center; }
.dimensions-toggle { padding: 4px; }
.dimensions-toggle img { width: 28px; height: 28px; object-fit: contain; display: block; margin: auto; }
.background-color-button { appearance: none; width: 38px; height: 38px; padding: 3px; border: 1px solid #514b58; border-radius: 6px; background: #fff; cursor: pointer; }
.background-color-button[data-transparent="true"] { opacity: .55; }
.background-color-button::-webkit-color-swatch-wrapper { padding: 0; }
.background-color-button::-webkit-color-swatch { border: 0; border-radius: 3px; }
.counter-manipulation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; border-top: 1px solid var(--line); }
.counter-manipulation label { display: inline-flex; align-items: center; gap: 6px; }
.counter-manipulation input { width: 90px; }
.counter { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; background: #17171a; border: 1px solid var(--line); border-radius: 8px; }
.counter details { flex-basis: 100%; } .override-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; padding-top: 12px; }
.font-picker { display: grid; gap: 8px; min-width: 0; }
.font-search { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 6px; background: #141416; color: #f2eff5; }
.font-options { min-height: 110px; max-height: 180px; overflow-y: auto; display: grid; align-content: start; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 6px; background: #141416; }
.font-option { border: 0; border-radius: 4px; padding: 8px 10px; text-align: left; background: transparent; color: #f2eff5; cursor: pointer; }
.font-option:hover, .font-option.selected { background: rgba(145, 70, 255, .42); }
.font-option.selected { outline: 2px solid var(--yellow); outline-offset: -2px; font-weight: 800; }
.font-preview { min-height: 32px; display: flex; align-items: center; overflow: hidden; color: #ffd166; font-size: 24px; line-height: 1; white-space: nowrap; }
#overlay { display: grid; place-content: center; text-align: center; overflow: hidden; } #overlay #category { display: block; opacity: .8; font-size: 22px; } #overlay #title { display: block; opacity: 1; font-size: 22px; } #overlay #category[hidden], #overlay #title[hidden] { display: none; } #overlay #count { display: block; line-height: 1; }
