/* Smugsite Studio dashboard + auth screens. Always black. */
.smg-dash-body [hidden] { display: none !important; }
.smg-dash-body { background: #000; color: #f2f0eb; min-height: 100vh; }
.smg-dash-body input, .smg-dash-body select, .smg-dash-body textarea {
	width: 100%; padding: .65rem .8rem; border-radius: 9px; border: 1px solid #26272b; background: #0a0a0b; color: #f2f0eb; font: inherit; font-size: .93rem;
}
.smg-dash-body input:focus, .smg-dash-body select:focus, .smg-dash-body textarea:focus { outline: none; border-color: #f2f0eb; box-shadow: 0 0 0 3px rgba(255,255,255,.12); }
.smg-dash-body input[type="checkbox"], .smg-dash-body input[type="radio"] { width: auto; accent-color: #f2f0eb; }
.smg-dash-body input[type="color"] { padding: .2rem; height: 42px; cursor: pointer; }
.smg-dash-body input[type="file"] { padding: .5rem; }
.smg-dash-body h1 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.3rem); letter-spacing: -.02em; margin: 0; }
.smg-dash-body h2 { font-size: .95rem; font-weight: 600; margin: 0 0 1rem; letter-spacing: .01em; display: flex; align-items: center; gap: .5rem; }
.smg-muted { color: #8b8d92; font-size: .9rem; margin: .25rem 0 .75rem; }
.smg-warn { color: #f0c36b; font-size: .85rem; }
.smg-count { font: 500 .72rem var(--smg-font); padding: .15rem .5rem; border-radius: 999px; background: #1a1a1d; color: #b9bbc0; }

/* Shell */
.smg-dash { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.smg-dash__side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 1.5rem; padding: 1.4rem 1rem; border-right: 1px solid #17181a; background: #050505; }
.smg-dash__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; padding: 0 .5rem; }
.smg-dash__mark { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #f2f0eb; color: #000; font: 600 1rem var(--smg-display); }
.smg-dash__logo { max-height: 36px; width: auto; }
.smg-dash__name { display: flex; flex-direction: column; font-weight: 600; font-size: .92rem; line-height: 1.2; overflow: hidden; }
.smg-dash__name small { color: #6f7176; font-weight: 500; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; margin-top: .15rem; }
.smg-dash__nav { display: flex; flex-direction: column; gap: 2px; }
.smg-dash__nav a { display: flex; align-items: center; gap: .7rem; padding: .62rem .75rem; border-radius: 9px; color: #9a9ca1; text-decoration: none; font-size: .93rem; }
.smg-dash__nav a:hover { background: #111113; color: #f2f0eb; }
.smg-dash__nav a.is-active { background: #17181b; color: #fff; }
.smg-dash__foot { margin-top: auto; display: flex; flex-direction: column; gap: .2rem; padding: 0 .5rem; }
.smg-dash__foot a { color: #6f7176; font-size: .85rem; text-decoration: none; padding: .3rem 0; }
.smg-dash__foot a:hover { color: #f2f0eb; }
.smg-dash__main { padding: 2rem clamp(1.25rem, 3vw, 2.75rem) 4rem; min-width: 0; max-width: 1400px; }
.smg-dash__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.25rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.smg-dash__head .smg-eyebrow { margin-bottom: .4rem; }
@media (max-width: 860px) {
	.smg-dash { grid-template-columns: 1fr; }
	.smg-dash__side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .9rem; gap: .75rem; }
	.smg-dash__nav { flex-direction: row; overflow-x: auto; width: 100%; order: 3; }
	.smg-dash__nav a { white-space: nowrap; padding: .5rem .7rem; }
	.smg-dash__foot { margin: 0 0 0 auto; flex-direction: row; gap: .8rem; }
}

/* Flash */
.smg-flash { padding: .8rem 1rem; border-radius: 10px; margin-bottom: 1.25rem; font-size: .92rem; border: 1px solid; }
.smg-flash--ok { background: #0d1a12; border-color: #1f3a28; color: #9fe0b4; }
.smg-flash--warn { background: #1f1708; border-color: #4a3712; color: #f0c36b; }

/* Panels */
.smg-panel { background: #0a0a0b; border: 1px solid #1a1b1e; border-radius: 14px; padding: 1.35rem; margin-bottom: 1.25rem; }
.smg-panel--accent { border-color: #3a3b40; background: #111113; }
.smg-panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; }
.smg-panel__head a { color: #9a9ca1; font-size: .88rem; text-decoration: none; }
.smg-panel--split { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.smg-panel--split h2 { margin-bottom: .25rem; }

/* Stats */
.smg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.smg-stat { background: #0a0a0b; border: 1px solid #1a1b1e; border-radius: 14px; padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .35rem; }
.smg-stat span { color: #8b8d92; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; }
.smg-stat strong { font: 500 2rem/1 var(--smg-display); letter-spacing: -.02em; }

/* Tiles */
.smg-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.4rem 1rem; }
.smg-tile { text-decoration: none; display: flex; flex-direction: column; gap: .25rem; }
.smg-tile__media { position: relative; aspect-ratio: 4/3; border-radius: 11px; overflow: hidden; background: #111113; margin-bottom: .45rem; }
.smg-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.smg-tile:hover .smg-tile__media img { transform: scale(1.04); }
.smg-tile__empty { display: grid; place-items: center; height: 100%; color: #4a4b50; }
.smg-tile__title { font-weight: 600; font-size: .95rem; color: #f2f0eb; }
.smg-tile__meta { font-size: .8rem; color: #7c7e83; }
.smg-chip-vis, .smg-chip-draft { position: absolute; top: .55rem; left: .55rem; font: 600 .68rem var(--smg-font); padding: .22rem .55rem; border-radius: 999px; background: rgba(0,0,0,.7); color: #f2f0eb; backdrop-filter: blur(6px); letter-spacing: .03em; }
.smg-chip-draft { left: auto; right: .55rem; background: #f0c36b; color: #000; }
.smg-chip-vis--private { background: #f2f0eb; color: #000; }
.smg-chip-vis--password { background: #4a3712; color: #f0d48a; }
.smg-chip-vis--unlisted { background: #1d2440; color: #aab8ff; }

.smg-emptystate { text-align: center; padding: 3rem 1rem; border: 1px dashed #26272b; border-radius: 14px; color: #8b8d92; }
.smg-emptystate h3 { color: #f2f0eb; font-family: var(--smg-display); font-weight: 500; font-size: 1.4rem; margin: 0 0 .4rem; }

/* Toolbar */
.smg-toolbar { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.smg-tabs { display: flex; gap: .3rem; flex-wrap: wrap; }
.smg-tabs a { padding: .42rem .85rem; border-radius: 999px; border: 1px solid #1f2023; color: #9a9ca1; text-decoration: none; font-size: .86rem; }
.smg-tabs a.is-active, .smg-tabs a:hover { background: #f2f0eb; color: #000; border-color: #f2f0eb; }
.smg-search { width: min(280px, 100%); }
.smg-inline-form { display: flex; gap: .5rem; }
.smg-inline-form input { width: 230px; }
.smg-formrow { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.smg-formrow input, .smg-formrow select { width: auto; flex: 1 1 200px; }
.smg-check { display: inline-flex; align-items: center; gap: .45rem; font-size: .88rem; color: #b9bbc0; }
.smg-copyrow { display: flex; gap: .5rem; }
.smg-copyrow input { font-family: ui-monospace, Menlo, monospace; font-size: .8rem; color: #b9bbc0; }

/* Editor */
.smg-editor__head { align-items: center; position: sticky; top: 0; z-index: 5; background: rgba(0,0,0,.88); backdrop-filter: blur(10px); padding: .75rem 0; margin-top: -.75rem; }
.smg-editor__titlewrap { flex: 1 1 320px; min-width: 0; }
.smg-back { color: #8b8d92; font-size: .85rem; text-decoration: none; }
.smg-dash-body .smg-editor__title { font: 500 clamp(1.5rem, 3vw, 2.1rem) var(--smg-display); letter-spacing: -.02em; background: transparent; border-color: transparent; padding: .2rem 0; }
.smg-dash-body .smg-editor__title:hover { border-color: #1f2023; }
.smg-dash-body .smg-editor__title:focus { padding-inline: .6rem; }
.smg-editor__actions { display: flex; gap: .5rem; align-items: center; }
.smg-editor__actions select { width: auto; }
.smg-editor__grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.25rem; align-items: start; }
@media (max-width: 1100px) { .smg-editor__grid { grid-template-columns: 1fr; } }

.smg-drop { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: 2rem 1rem; border: 1.5px dashed #2c2d31; border-radius: 12px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; margin-bottom: 1rem; }
.smg-drop span { color: #7c7e83; font-size: .85rem; }
.smg-drop:hover, .smg-drop.is-over { border-color: #f2f0eb; background: #0f0f11; }
.smg-uploads { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .75rem; }
.smg-upload { display: grid; grid-template-columns: 1fr 120px; gap: .75rem; align-items: center; font-size: .82rem; color: #b9bbc0; }
.smg-upload span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.smg-upload progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 9px; background: #1a1a1d; overflow: hidden; }
.smg-upload progress::-webkit-progress-bar { background: #1a1a1d; }
.smg-upload progress::-webkit-progress-value { background: #f2f0eb; }
.smg-upload progress::-moz-progress-bar { background: #f2f0eb; }
.smg-upload.is-error { color: #f0a08b; }

.smg-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .6rem; }
.smg-photo { position: relative; aspect-ratio: 1; border-radius: 9px; overflow: hidden; background: #111113; cursor: grab; outline: 2px solid transparent; transition: outline-color .15s, opacity .15s; }
.smg-photo img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.smg-photo.is-dragging { opacity: .35; }
.smg-photo:has(input:checked) { outline-color: #f2f0eb; }
.smg-photo__remove, .smg-photo__cover span { position: absolute; top: .35rem; width: 26px; height: 26px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(0,0,0,.72); color: #fff; cursor: pointer; font-size: 15px; opacity: 0; transition: opacity .15s; }
.smg-photo__remove { right: .35rem; }
.smg-photo__cover span { left: .35rem; font-size: 13px; }
.smg-photo__cover input { position: absolute; opacity: 0; pointer-events: none; }
.smg-photo:hover .smg-photo__remove, .smg-photo:hover .smg-photo__cover span, .smg-photo__cover input:checked + span, .smg-photo__remove:focus { opacity: 1; }
.smg-photo__cover input:checked + span { background: #f2f0eb; color: #000; }

.smg-vis { display: flex; flex-direction: column; gap: .45rem; margin-bottom: 1rem; }
.smg-vis__opt { display: flex; gap: .7rem; padding: .7rem .8rem; border-radius: 10px; border: 1px solid #1f2023; cursor: pointer; align-items: flex-start; }
.smg-vis__opt:has(input:checked) { border-color: #f2f0eb; background: #111113; }
.smg-vis__opt input { margin-top: .25rem; }
.smg-vis__opt span { display: flex; flex-direction: column; }
.smg-vis__opt strong { font-size: .92rem; }
.smg-vis__opt small { color: #8b8d92; font-size: .8rem; }
.smg-field { display: flex; flex-direction: column; gap: .4rem; margin-bottom: .9rem; }
.smg-field > span, .smg-field > label, .smg-sublabel { font-size: .8rem; color: #9a9ca1; font-weight: 500; }
.smg-field small { color: #6f7176; font-size: .78rem; }
.smg-sublabel { display: block; margin: .9rem 0 .4rem; }
.smg-checklist { display: flex; flex-direction: column; gap: .45rem; max-height: 240px; overflow: auto; margin-bottom: .8rem; padding-right: .3rem; }
.smg-checklist label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.smg-checklist small { color: #6f7176; margin-left: auto; font-size: .75rem; }
.smg-checklist--cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); max-height: none; }
.smg-switch { position: relative; display: flex; align-items: center; gap: .75rem; font-size: .9rem; padding: .45rem 0; cursor: pointer; }
.smg-switch input { position: absolute; opacity: 0; }
.smg-switch span { position: relative; width: 38px; height: 22px; border-radius: 99px; background: #26272b; flex: none; transition: background .2s; }
.smg-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #8b8d92; transition: transform .2s, background .2s; }
.smg-switch input:checked + span { background: #f2f0eb; }
.smg-switch input:checked + span::after { transform: translateX(16px); background: #000; }
.smg-switch input:focus-visible + span { outline: 2px solid #f2f0eb; outline-offset: 2px; }
.smg-linkbtn { background: none; border: 0; padding: .4rem 0; color: #9a9ca1; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: .85rem; }
.smg-linkbtn:hover { color: #f2f0eb; }
.smg-danger { background: none; border: 1px solid #3a1a16; color: #f0a08b; padding: .55rem 1rem; border-radius: 999px; cursor: pointer; font: inherit; font-size: .85rem; }
.smg-danger:hover { background: #2a120e; }
.smg-editor__side .smg-danger { width: 100%; }

/* Clients / rows */
.smg-clients { display: flex; flex-direction: column; gap: .5rem; }
.smg-client { border: 1px solid #1a1b1e; border-radius: 12px; }
.smg-client[open] { background: #0d0d0f; }
.smg-client summary { display: flex; align-items: center; gap: .85rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.smg-client summary::-webkit-details-marker { display: none; }
.smg-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #1f2023; font-weight: 600; flex: none; }
.smg-client__who { display: flex; flex-direction: column; min-width: 0; }
.smg-client__who small { color: #7c7e83; }
.smg-client__count { margin-left: auto; color: #8b8d92; font-size: .85rem; }
.smg-client__body { padding: 0 1rem 1rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; }
.smg-client__body form:first-child { flex: 1 1 400px; }
.smg-rows { display: flex; flex-direction: column; }
.smg-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid #17181a; }
.smg-row:last-child { border-bottom: 0; }
.smg-row__form { display: flex; align-items: center; gap: .6rem; flex: 1; flex-wrap: wrap; }
.smg-row__form input[name="name"] { flex: 0 1 220px; }
.smg-row__form input[name="description"] { flex: 1 1 220px; }
.smg-row__form .smg-muted { margin: 0; white-space: nowrap; }

/* Settings */
.smg-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
.smg-field--wide { grid-column: 1 / -1; }
.smg-logo { display: flex; gap: 1.25rem; align-items: center; margin-top: .5rem; }
.smg-logo__img { max-height: 64px; width: auto; background: #111; padding: .5rem; border-radius: 8px; }
.smg-logo__none { width: 96px; height: 64px; display: grid; place-items: center; border: 1px dashed #2c2d31; border-radius: 8px; color: #6f7176; font-size: .8rem; }
.smg-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.smg-layout { position: relative; border: 1px solid #1f2023; border-radius: 12px; padding: .75rem; cursor: pointer; display: flex; flex-direction: column; gap: .55rem; font-size: .85rem; }
.smg-layout:has(input:checked) { border-color: #f2f0eb; }
.smg-layout input { position: absolute; opacity: 0; }
.smg-layout__pic { display: grid; gap: 3px; height: 70px; }
.smg-layout__pic i { background: #26272b; border-radius: 2px; }
.smg-layout--justified .smg-layout__pic { grid-template-columns: 2fr 1fr 1.5fr; }
.smg-layout--masonry .smg-layout__pic { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 10px; }
.smg-layout--masonry .smg-layout__pic i:nth-child(odd) { grid-row: span 3; } .smg-layout--masonry .smg-layout__pic i:nth-child(even) { grid-row: span 2; }
.smg-layout--square .smg-layout__pic { grid-template-columns: repeat(3, 1fr); }
.smg-savebar { position: sticky; bottom: 0; padding: 1rem 0; background: linear-gradient(transparent, #000 40%); display: flex; justify-content: flex-end; }

/* Auth / signup */
.smg-auth { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem; }
.smg-auth__card { width: min(100%, 420px); background: #0a0a0b; border: 1px solid #1a1b1e; border-radius: 18px; padding: 2rem; }
.smg-auth__card h1, .smg-auth__card h2 { font-family: var(--smg-display); font-weight: 500; font-size: 1.75rem; margin: 0 0 1.25rem; display: block; }
.smg-auth__brand { display: inline-block; font: 600 1.05rem var(--smg-display); text-decoration: none; margin-bottom: 1.5rem; }
.smg-auth__note, .smg-auth__links { color: #8b8d92; font-size: .88rem; }
.smg-auth__links a { color: #f2f0eb; }
.smg-auth #loginform p { margin: 0 0 1rem; }
.smg-auth #loginform label { display: block; font-size: .82rem; color: #9a9ca1; margin-bottom: .35rem; }
.smg-auth #loginform .login-remember label { display: flex; gap: .5rem; align-items: center; }
.smg-auth #loginform input[type="submit"] { width: 100%; padding: .75rem; border-radius: 999px; border: 0; background: #f2f0eb; color: #000; font-weight: 600; cursor: pointer; }
.smg-auth--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; max-width: 1200px; margin: 0 auto; }
.smg-auth__pitch h1 { font-family: var(--smg-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.8rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 1.75rem; }
.smg-ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .75rem; color: #b9bbc0; }
.smg-ticks li::before { content: "—"; margin-right: .7rem; color: #5a5c61; }
@media (max-width: 860px) { .smg-auth--split { grid-template-columns: 1fr; } .smg-auth__pitch { display: none; } }
.smg-addr-preview { color: #8b8d92 !important; font-size: .82rem !important; word-break: break-all; }
.smg-addr-preview b { color: #f2f0eb; font-weight: 600; }
.smg-addr { display: flex; align-items: stretch; border: 1px solid #26272b; border-radius: 9px; overflow: hidden; background: #0a0a0b; }
.smg-addr em { font-style: normal; padding: .65rem 0 .65rem .8rem; color: #6f7176; font-size: .85rem; white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; direction: rtl; text-align: left; }
.smg-dash-body .smg-addr input { border: 0; padding-left: .15rem; background: transparent; box-shadow: none; }
.smg-hp { position: absolute; left: -9999px; }
.smg-btn--block { width: 100%; justify-content: center; padding: .8rem; margin-top: .5rem; }
.smg-dash-body .smg-btn { background: #f2f0eb; color: #000; border-color: #f2f0eb; }
.smg-dash-body .smg-btn--ghost { background: transparent; color: #f2f0eb; border-color: #2c2d31; }
.smg-dash-body .smg-btn--ghost:hover { border-color: #f2f0eb; background: transparent; color: #f2f0eb; }

/* Network owner sees the WP admin bar on top. */
.admin-bar .smg-dash__side { top: 32px; height: calc(100vh - 32px); }
.admin-bar .smg-editor__head { top: 32px; }
@media (max-width: 782px) { .admin-bar .smg-dash__side { top: 0; height: auto; } .admin-bar .smg-editor__head { top: 46px; } }

.smg-heropick { display: flex; gap: 1.25rem; align-items: center; margin-bottom: 1rem; flex-wrap: wrap; }
.smg-heropick__img { width: 240px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.smg-heropick__none { width: 240px; aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; padding: 1rem; border: 1px dashed #2c2d31; border-radius: 10px; color: #6f7176; font-size: .8rem; }

.smg-scgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.smg-scgrid__item { display: flex; flex-direction: column; gap: .4rem; }
.smg-scgrid__item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 9px; }

.smg-editor__main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.smg-editor__main .smg-panel { margin-bottom: 0; }
.smg-tracks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.smg-tracks:empty { display: none; }
.smg-track { display: flex; align-items: center; gap: .75rem; padding: .6rem .75rem; border: 1px solid #1f2023; border-radius: 10px; background: #0d0d0f; cursor: grab; }
.smg-track.is-dragging { opacity: .4; }
.smg-track__grip { color: #4a4b50; letter-spacing: -2px; font-size: .85rem; }
.smg-track__name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: .9rem; }
.smg-track__len { color: #7c7e83; font-size: .8rem; font-variant-numeric: tabular-nums; }
.smg-track__remove { width: 26px; height: 26px; border-radius: 50%; border: 0; background: #1a1a1d; color: #b9bbc0; cursor: pointer; font-size: 15px; }
.smg-track__remove:hover { background: #3a1a16; color: #f0a08b; }
.smg-drop--audio { padding: 1.25rem 1rem; }

/* Plan box + meters */
.smg-planbox { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem 2.5rem; align-items: end; }
@media (max-width: 900px) { .smg-planbox { grid-template-columns: 1fr; } }
.smg-planbox .smg-eyebrow { margin-bottom: .3rem; }
.smg-dash-body .smg-planbox__name { font: 500 1.7rem var(--smg-display); margin: 0 0 1rem; display: flex; align-items: baseline; gap: .6rem; }
.smg-planbox__name span { font: 500 .9rem var(--smg-font); color: #8b8d92; }
.smg-meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
@media (max-width: 600px) { .smg-meters { grid-template-columns: 1fr; } }
.smg-meter__top { display: flex; justify-content: space-between; font-size: .8rem; color: #9a9ca1; margin-bottom: .4rem; gap: .5rem; }
.smg-meter__top span:last-child { color: #f2f0eb; font-variant-numeric: tabular-nums; }
.smg-meter__bar { height: 6px; border-radius: 6px; background: #1a1a1d; overflow: hidden; }
.smg-meter__bar span { display: block; height: 100%; border-radius: 6px; background: #f2f0eb; }
.smg-meter.is-full .smg-meter__bar span { background: #f0c36b; }
.smg-planbox__up .smg-inline-form select { width: auto; flex: 1; }
.smg-planbox__up .smg-muted { margin-top: 0; }

/* Locks + upsells */
.smg-lock { font-style: normal; font-size: .68rem; font-weight: 600; padding: .12rem .45rem; border-radius: 999px; background: #1f2023; color: #b9bbc0; margin-left: .35rem; letter-spacing: .02em; vertical-align: middle; }
.smg-vis__opt.is-locked { opacity: .55; cursor: not-allowed; }
.smg-locked-row { display: flex; align-items: center; justify-content: space-between; font-size: .9rem; color: #8b8d92; margin: .45rem 0; }
.smg-upsell { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: 1.1rem 1.2rem; border: 1px dashed #2c2d31; border-radius: 12px; }
.smg-upsell span { color: #8b8d92; font-size: .9rem; margin-bottom: .4rem; }
.smg-upsell--big { padding: 2rem; margin-bottom: 1.25rem; }
.smg-upsell--big strong { font: 500 1.4rem var(--smg-display); }

/* Sign-up plan picker */
.smg-planpick { border: 0; padding: 0; margin: 0 0 1rem; }
.smg-planpick legend { font-size: .8rem; color: #9a9ca1; font-weight: 500; margin-bottom: .4rem; }
.smg-planpick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.smg-planpick legend, .smg-planpick__note { grid-column: 1 / -1; }
.smg-planpick__opt { position: relative; cursor: pointer; }
.smg-planpick__opt input { position: absolute; opacity: 0; }
.smg-planpick__opt span { display: flex; flex-direction: column; gap: .15rem; padding: .7rem .75rem; border: 1px solid #26272b; border-radius: 10px; }
.smg-planpick__opt strong { font-size: .88rem; }
.smg-planpick__opt em { font-style: normal; font-size: .78rem; color: #8b8d92; }
.smg-planpick__opt input:checked + span { border-color: #f2f0eb; background: #111113; }
.smg-planpick__opt input:focus-visible + span { outline: 2px solid #f2f0eb; outline-offset: 2px; }
.smg-planpick__note { color: #6f7176; font-size: .76rem; margin-top: .25rem; }

/* Canceled account */
.smg-canceled { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; flex-wrap: wrap; padding: 1.1rem 1.25rem; margin-bottom: 1.25rem; border: 1px solid #4a3712; background: #1f1708; border-radius: 14px; }
.smg-canceled strong { display: block; color: #f0c36b; margin-bottom: .2rem; }
.smg-canceled span { color: #d9c9a3; font-size: .9rem; max-width: 70ch; display: block; }
.smg-is-canceled .smg-inline-form, .smg-is-canceled .smg-drop, .smg-is-canceled .smg-editor__actions button[type=submit], .smg-is-canceled .smg-savebar, .smg-is-canceled .smg-planbox__up, .smg-is-canceled .smg-photo__remove, .smg-is-canceled .smg-track__remove { display: none !important; }
.smg-is-canceled .smg-editor input, .smg-is-canceled .smg-editor select, .smg-is-canceled .smg-editor textarea { pointer-events: none; opacity: .6; }
.smg-danger-zone { border-color: #3a1a16; }
.smg-danger-zone h2 { color: #f0a08b; }

/* Themes */
.smg-themes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; margin: .5rem 0 1.25rem; }
.smg-theme { background: #0a0a0b; border: 1px solid #1a1b1e; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.smg-theme.is-active { border-color: #f2f0eb; }
.smg-theme__shot { position: relative; aspect-ratio: 4 / 3; background: #141416; }
.smg-theme__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.smg-theme__flag { position: absolute; top: .7rem; left: .7rem; font: 600 .72rem var(--smg-font); padding: .25rem .6rem; border-radius: 999px; background: #f2f0eb; color: #000; }
.smg-theme__body { padding: 1rem 1.1rem 1.15rem; display: flex; flex-direction: column; gap: .9rem; flex: 1; justify-content: space-between; }
.smg-theme__body h3 { margin: 0; font-size: 1rem; font-weight: 600; }
.smg-theme__body .smg-muted { margin: .3rem 0 0; font-size: .84rem; }
.smg-theme__body form { margin: 0; }
.smg-theme__body .smg-btn { align-self: flex-start; }
.smg-btn[disabled] { opacity: .4; cursor: not-allowed; }
