/* CardMog workspace. Black, titanium, deliberate hierarchy. */
.app-surface {
 --paper:#080808; --ink:#f3f3f3; --muted:#a3a3a8; --line:#ffffff18;
 --dashboard-panel:#131314; --dashboard-raised:#1b1b1d; --dashboard-accent:#dce7df;
 background:var(--paper);color:var(--ink);color-scheme:dark;padding-bottom:calc(110px + env(safe-area-inset-bottom,0px));
}
.app-surface #main {min-height:60vh;}
.app-surface #app-header {position:relative;max-width:1160px;min-height:92px;margin:auto;padding:24px 40px;border:0;}
.app-surface #app-header .brand {color:var(--ink);font-size:24px;letter-spacing:-1.15px;}
.app-surface #app-header .header-right {gap:0;}
.app-surface .account-entry {display:flex;align-items:center;gap:9px;min-height:44px;padding:8px 0 8px 16px;color:#b9b9be;font-size:14px;font-weight:500;}
.app-surface .account-entry .icon {width:15px;height:15px;opacity:.65;}
.app-surface .account-entry[aria-current=page],.app-surface .account-entry:hover {color:#fff;}
.app-surface .app-page,.app-surface .create-page,.app-surface .guide-page {max-width:1160px;margin:auto;padding:34px 40px 30px;}
.app-surface .account-page {max-width:760px;margin:auto;padding:34px 40px 30px;}
.app-surface h1,.app-surface h2,.app-surface h3 {color:var(--ink);background:none;-webkit-text-fill-color:currentColor;}
.app-surface .page-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 36px;}
.app-surface .page-heading h1 {font-size:46px;font-weight:580;letter-spacing:-2px;line-height:1.08;margin:0;}
.app-surface .page-heading p {font-size:16px;color:var(--muted);margin:12px 0 0;}
.app-surface .icon {filter:invert(1);opacity:.85;}
.app-surface .button {display:inline-flex;align-items:center;justify-content:center;gap:12px;min-height:52px;padding:14px 23px;font-size:15px;font-weight:550;letter-spacing:-.2px;border-radius:999px;transition:background .2s,border-color .2s,transform .2s;}
.app-surface .button.primary {background:linear-gradient(165deg,#fafafa,#d9d9dc);color:#151516;border:1px solid #ffffff9c;box-shadow:inset 0 1px #fff,0 3px 10px #0003;border-radius:999px;}
.app-surface .button.primary:hover {background:#fff;box-shadow:inset 0 1px #fff,0 6px 20px #0005;transform:translateY(-1px);}
.app-surface .button.secondary {background:#ffffff05;border:1px solid #ffffff24;color:#ededee;border-radius:999px;box-shadow:none;}
.app-surface .button.secondary:hover {background:#ffffff0e;border-color:#ffffff45;transform:none;}
.app-surface .button.quiet {color:var(--muted);background:none;box-shadow:none;}
.app-surface .button:active {transform:scale(.98);}
.app-surface .button .icon {width:19px;height:19px;flex:none;}
.app-surface .button.primary .icon {filter:none;opacity:.9;}
.app-surface .button.full {justify-content:space-between;}
.app-surface .button.small {min-height:44px;font-size:14px;padding:11px 17px;}
.app-surface .text-button,.app-surface .back-text {display:inline-flex;align-items:center;gap:9px;min-height:44px;font-size:14px;color:var(--muted);}
.app-surface .text-button:hover,.app-surface .back-text:hover {color:#fff;}
.app-surface .text-button .icon,.app-surface .back-text .icon {width:17px;height:17px;}
.app-surface :is(button,a,input,select,summary):focus-visible {outline:2px solid #e1e6e3;outline-offset:5px;}
.app-surface .sr-only {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}
.app-surface .member-badge {background:#ffffff08;color:#d8dad9;border:1px solid #ffffff20;font-size:12px;font-weight:500;padding:7px 11px;}
.app-surface #app-footer {padding:34px 24px 28px;border:0;}
.app-surface .resume-banner {background:#161617;color:#c4c4c8;border:1px solid var(--line);border-radius:16px;font-size:14px;line-height:1.5;padding:18px 20px;}
.app-surface .resume-banner a {color:#eee;white-space:nowrap;}
/* Three destinations. Account lives in the header, once. */
.app-surface #app-nav {position:fixed;inset:auto auto calc(16px + env(safe-area-inset-bottom,0px)) 50%;transform:translateX(-50%);display:flex;align-items:center;width:380px;max-width:calc(100% - 32px);padding:6px;gap:4px;border:1px solid #ffffff29;border-radius:24px;background:linear-gradient(165deg,#29292bf5,#171719fa);box-shadow:inset 0 1px #ffffff0c,0 10px 35px #0008;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);z-index:25;}
.app-surface #app-nav[hidden] {display:none;}
.app-surface #app-nav a {display:flex;flex:1;align-items:center;justify-content:center;flex-direction:row;gap:8px;min-width:0;min-height:48px;padding:12px 7px;border-radius:18px;font-size:13px;font-weight:500;letter-spacing:-.2px;color:#a9a9af;transition:background .2s,color .2s;}
.app-surface #app-nav a .icon {width:20px;height:20px;opacity:.6;}
.app-surface #app-nav a.selected {background:linear-gradient(150deg,#f0f0f2,#c8c8cd);color:#161617;box-shadow:inset 0 1px #fff;}
.app-surface #app-nav a.selected .icon {filter:none;opacity:.85;}
.app-surface #app-nav a:not(.selected):hover {color:white;background:#ffffff08;}
.app-surface #toast {bottom:calc(96px + env(safe-area-inset-bottom,0px));}
/* The card is the hero; no panel, badges, or repeated instructions. */
.library-hero {display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:80px;min-height:360px;margin:0 0 56px;padding:30px 32px 48px;border:0;background:none;box-shadow:none;}
.library-hero-art {display:block;width:100%;padding:14px 0;}
.library-hero-art img {display:block;width:100%;max-width:480px;margin:auto;aspect-ratio:1536/969;object-fit:cover;border-radius:20px;transform:rotate(-3deg);box-shadow:0 24px 35px -14px #000c;}
.library-hero-info h2 {font-size:40px;font-weight:550;line-height:1.1;letter-spacing:-1.6px;margin:0;max-width:420px;}
.library-hero-actions {margin-top:28px;}
.app-surface .library-hero-actions .button.primary {width:100%;max-width:320px;min-height:60px;justify-content:space-between;padding:8px 10px 8px 22px;color:#141415;background:linear-gradient(160deg,#fafafa,#d9d9de);border:1px solid #ffffff70;box-shadow:inset 0 1px #fff,0 5px 18px #0004;font-size:16px;}
.app-surface .library-hero-actions .button.primary:hover {color:#101011;background:linear-gradient(160deg,#fff,#e8e8ec);border-color:#fff;}
.app-surface .library-hero-actions .button.primary .icon {width:40px;height:40px;padding:10px;background:linear-gradient(150deg,#fff,#cdCDD2);border-radius:50%;filter:invert(1);opacity:1;box-shadow:inset 0 1px #fff;}
.section-heading {display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 22px;}
.section-heading h2 {font-size:24px;line-height:1.2;font-weight:550;letter-spacing:-.7px;margin:0;}
.section-heading>span {font-size:14px;color:var(--muted);}
.saved-collection {margin:0 0 60px;}
.current-collection {margin:0 0 48px;padding-top:36px;border-top:1px solid var(--line);}
.collection-shelf {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;}
.collection-pick {display:block;min-width:0;text-align:left;padding:0;background:none;border:0;color:var(--ink);cursor:pointer;}
.collection-pick canvas {display:block;width:100%;aspect-ratio:1536/969;border-radius:14px;border:1px solid var(--line);transition:transform .25s;}
.collection-pick:hover canvas {transform:translateY(-4px);}
.collection-pick>span {display:block;font-size:15px;line-height:1.35;font-weight:500;letter-spacing:-.2px;margin-top:14px;}
.dashboard-tools {border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin:40px 0 0;}
.dashboard-tools>summary {display:flex;align-items:center;justify-content:space-between;min-height:80px;padding:20px 0;list-style:none;cursor:pointer;font-size:21px;letter-spacing:-.5px;font-weight:500;}
.dashboard-tools>summary::-webkit-details-marker {display:none;}
.dashboard-tools>summary>.icon {width:20px;height:20px;transition:transform .2s;}
.dashboard-tools[open]>summary>.icon {transform:rotate(45deg);}
.dashboard-tools-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;padding:0 0 30px;}
.dashboard-tool {display:flex;align-items:center;gap:14px;padding:14px 0;min-width:0;}
.dashboard-tool-icon {flex:none;display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:#ffffff04;}
.dashboard-tool-icon .icon {width:21px;height:21px;}
.dashboard-tool-copy {min-width:0;flex:1;}
.dashboard-tool h3 {margin:0 0 5px;font-size:16px;font-weight:500;letter-spacing:-.3px;}
.dashboard-tool p {margin:0;font-size:14px;line-height:1.5;color:var(--muted);}
.tool-state {flex:none;text-align:right;font-size:15px;color:#e6e6e8;}
.tool-state>span {display:block;font-size:12px;color:var(--muted);margin-top:4px;}
.tool-state .icon {width:19px;height:19px;}
.member-help {display:flex;align-items:center;justify-content:space-between;min-height:72px;gap:14px;color:var(--muted);font-size:15px;}
.member-help .icon {width:17px;height:17px;}
.library-welcome {max-width:620px;margin:20px auto;text-align:center;padding:58px 24px;}
.welcome-symbol {display:grid;place-items:center;width:56px;height:56px;margin:0 auto 24px;border:1px solid var(--line);border-radius:18px;background:#ffffff04;}
.welcome-symbol .icon {width:26px;height:26px;}
.library-welcome h1,.library-welcome h2 {font-size:34px;font-weight:550;letter-spacing:-1.3px;line-height:1.15;margin:0 0 18px;}
.library-welcome p {font-size:16px;line-height:1.6;max-width:340px;margin:0 auto 28px;color:var(--muted);}
.library-welcome>.button {margin:5px;}
.library-welcome>a.text-button {display:flex;justify-content:center;margin-top:12px;}
.download-icon {transform:rotate(90deg);}.back-arrow {transform:rotate(180deg);}
.app-surface .catalog-toolbar {display:flex; flex-direction:column-reverse; align-items:stretch; gap:18px; margin:0 0 28px;}
.app-surface .search-box {max-width:none; width:100%; background:var(--dashboard-panel); border:1px solid var(--line); border-radius:14px; padding:0 16px;}
.app-surface .search-box input {min-width:0; min-height:48px; font-size:15px; background:none; border:0;}
.app-surface .filter-tabs {display:flex; width:100%; justify-content:flex-start; flex-wrap:nowrap; overflow-x:auto; padding:0 0 4px; gap:7px; border:0; background:none; border-radius:0; scrollbar-width:thin; scrollbar-color:#ffffff26 transparent;}
.app-surface .filter-tabs button {flex:none; min-height:44px; padding:10px 15px; font-size:12px; border:1px solid var(--line); border-radius:12px; color:var(--muted); background:#ffffff03; white-space:nowrap;}
.app-surface .filter-tabs [aria-pressed=true] {background:#d1e4d91a; color:#e1efe6; border-color:#c6e5d640; box-shadow:none;}
.app-surface .catalog-grid {grid-template-columns:repeat(3,minmax(0,1fr)); gap:30px 22px;}
.app-surface .art-button {border-radius:16px;}
.app-surface .art-button canvas,.app-surface .art-button>img {border-radius:16px; border:1px solid #ffffff12; box-shadow:0 8px 20px #0002;}
.app-surface .card-caption {margin-top:13px; gap:10px; align-items:center;}
.app-surface .card-caption h3 {color:#e5e7e2; font-size:15px; font-weight:550; letter-spacing:-.25px; margin:0; line-height:1.35;}
.app-surface .card-caption span {font-size:11px; color:var(--muted);}
.app-surface .round-button {width:44px; height:44px; min-width:44px; border:1px solid var(--line); background:#ffffff04; color:#d3ddd6;}
.app-surface .card-badge {background:#151918e8; color:#d2e3d8; border:1px solid #ffffff25; font-size:9px;}
.app-surface .empty {color:var(--muted);}

.app-surface :is(.account-card,.editor-panel,.style-controls,.setup-content) {background:var(--dashboard-panel); border:1px solid var(--line); border-radius:22px; box-shadow:none;}
.app-surface .account-card {padding:28px;}
.app-surface .account-card h2 {font-size:24px; font-weight:550; letter-spacing:-.7px; line-height:1.2; margin-top:20px;}
.app-surface .account-card h2:first-child {margin-top:0;}
.app-surface .account-card p {font-size:14px; line-height:1.6; color:var(--muted);}
.app-surface .account-row,.app-surface .receipt-row {border-color:var(--line);}
.app-surface .account-row,.app-surface .receipt-row b {font-size:13px;}
.app-surface .account-row b {color:var(--ink);}
.app-surface .receipt-row b {color:#d4dbd6;}
.app-surface .receipt-row small {font-size:11px; color:var(--muted);}
.app-surface .upgrade-row {padding:22px 24px;}
.app-surface .upgrade-row b {font-size:15px; color:var(--ink);}
.app-surface .upgrade-row p {font-size:12px; margin-bottom:0;}
.app-surface .upgrade-row>span {color:var(--dashboard-accent);}
.app-surface .section-title {font-size:20px; font-weight:550; letter-spacing:-.5px;}
.app-surface .account-page>#sign-out {margin-top:22px;}
.app-surface .delivery-art,.app-surface .editor-preview,.app-surface .style-empty {background:linear-gradient(145deg,#1a1f1e,#121515); border:1px solid var(--line); box-shadow:none; border-radius:24px;}
.app-surface .delivery-confirmed {color:var(--dashboard-accent);}
.app-surface .delivery-info h1 {font-size:38px; font-weight:550; line-height:1.15;}
.app-surface .delivery-info .delivery-subtitle {color:var(--muted); font-size:14px;}
.app-surface .receipt-details {border-color:var(--line); border-radius:16px; background:#ffffff02;}
.app-surface .receipt-details summary {color:#c1cac5; font-size:13px;}
.app-surface .receipt-details p {font-size:12px; overflow-wrap:anywhere;}
.app-surface .unlocked-tools h2 {font-size:18px; font-weight:550;}
.app-surface .unlocked-tool {background:var(--dashboard-panel); border-color:var(--line);}
.app-surface .unlocked-tool b {color:#dbe3dd;}
.app-surface .unlocked-tool small {color:var(--muted);}

.app-surface .editor-layout {grid-template-columns:1.08fr 1fr; gap:28px;}
.app-surface .editor-preview {padding:30px; top:20px;}
.app-surface .editor-preview-footer {color:var(--muted); font-size:12px; gap:12px;}
.app-surface .editor-preview-footer #save-status {color:var(--dashboard-accent); white-space:nowrap;}
.app-surface .editor-tabs {padding:7px; border-bottom:1px solid var(--line); background:#ffffff02; gap:3px;}
.app-surface .editor-tabs button {min-height:44px; font-size:12px; border-radius:11px; color:var(--muted);}
.app-surface .editor-tabs button.active {background:#c6e5d613; color:#d9eadd; box-shadow:none;}
.app-surface .editor-panel .controls {padding:24px;}
.app-surface .editor-footer {padding:0 24px 24px;}
.app-surface .control-label,.app-surface .field label {color:#c8ceca; font-size:13px; line-height:1.4;}
.app-surface .control-label span {color:var(--muted); font-size:11px;}
.app-surface .field-row {gap:18px;}
.app-surface .field-row>* {min-width:0;}
.app-surface input[type=range] {width:100%; min-height:38px; accent-color:var(--dashboard-accent);}
.app-surface .font-options {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px;}
.app-surface .font-options button {padding:10px 5px; min-height:44px; font-size:12px; border-radius:10px;}
.app-surface :is(.font-options button.active,.finish-options button.active,.sticker-options button.active,.mini-template.active) {border-color:#c6e5d670; background:#c6e5d60d; color:#deebe2;}
.app-surface .mini-grid {grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px;}
.app-surface .mini-template {min-width:0; border-radius:12px;}
.app-surface .mini-template span {font-size:10px; color:#b9c2bc;}
.app-surface .upload-box {background:#ffffff02; border-color:#ffffff28; border-radius:15px; padding:22px 16px;}
.app-surface .upload-box p {font-size:13px; color:var(--muted);}
.app-surface .quiet-btn,.app-surface .text-link {color:#bccdc2; font-size:13px; min-height:44px;}
.app-surface .finish-options,.app-surface .sticker-options {gap:8px;}
.app-surface .finish-options button,.app-surface .sticker-options button {min-height:44px; color:#b8c2bc; border-color:var(--line); background:#ffffff03;}
.app-surface .style-workspace {grid-template-columns:320px minmax(0,1fr); gap:28px;}
.app-surface .style-controls {padding:26px;}
.app-surface .choice-group>label {font-size:13px; color:#d1d7d3;}
.app-surface .choice-pills button {font-size:12px; min-height:44px; border-color:var(--line); color:var(--muted);}
.app-surface .choice-pills button.active,.app-surface .tone-options button.active {border-color:#c6e5d640; background:#c6e5d610; color:#dce9df; box-shadow:none;}
.app-surface .look-result>span {color:#bdc7c0; font-size:12px;}
.app-surface .look-result b {color:var(--dashboard-accent);}
.app-surface .micro {font-size:12px; color:var(--muted); line-height:1.6;}

@media(max-width:900px) {
  .library-hero {gap:28px; padding:30px;}
  .library-hero-info h2 {font-size:27px;}
  .library-hero-actions {display:grid; grid-template-columns:1fr;}
  .dashboard-tools-grid {grid-template-columns:1fr;}
  .dashboard-tool {padding:20px;}
  .app-surface .catalog-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .app-surface .style-workspace {grid-template-columns:280px minmax(0,1fr); gap:22px;}
}
@media(max-width:700px) {
  .app-surface #app-header {padding:23px 22px 15px;}
  .app-surface .app-page,.app-surface .create-page,.app-surface .guide-page,.app-surface .account-page {padding:26px 22px 18px;}
  .app-surface .page-heading {margin-bottom:25px; gap:12px;}
  .app-surface .page-heading h1 {font-size:34px; letter-spacing:-1.35px;}
  .app-surface .page-heading p {font-size:12px; margin-top:8px;}
  .app-surface .page-heading .button {font-size:12px; padding:11px 13px; min-height:44px;}
  .app-surface .page-heading .button .icon {width:14px; height:14px;}
  .library-hero {grid-template-columns:1fr; gap:29px; padding:28px 24px 23px; border-radius:22px; margin-bottom:29px;}
  .library-hero-art {padding:6px 6px 0;}
  .library-hero-art img {max-width:380px; border-radius:17px;}
  .library-hero-info h2 {font-size:28px;}
  .library-hero-info>p {margin:10px 0 21px; font-size:13px;}
  .library-hero-actions {display:flex; flex-wrap:nowrap; gap:9px;}
  .app-surface .library-hero-actions .button.primary {flex:1; font-size:12px; padding:13px 12px; white-space:nowrap;}
  .library-hero-actions .button:first-child {flex:1.4;}
  .library-hero-info>.text-button {font-size:12px;}
  .dashboard-label {margin-bottom:10px; font-size:10px;}
  .dashboard-tools {margin:30px 0;}
  .section-heading {margin-bottom:15px;}
  .section-heading h2 {font-size:20px;}
  .section-heading>span {font-size:13px;}
  .dashboard-tools-grid {grid-template-columns:1fr; gap:10px;}
  .dashboard-tool {padding:18px; gap:14px; border-radius:18px;}
  .dashboard-tool h3 {font-size:16px;}
  .dashboard-tool p {font-size:13px;}
  .current-collection {margin:30px 0;}
  .current-collection .section-heading h2 {font-size:19px;}
  .current-collection .text-button {white-space:nowrap;}
  .collection-shelf {display:flex; overflow-x:auto; gap:14px; scroll-snap-type:x mandatory; padding:4px 22px 10px; margin:0 -22px; scrollbar-width:none;}
  .collection-shelf::-webkit-scrollbar {display:none;}
  .collection-pick {flex:0 0 238px; flex-basis:238px; scroll-snap-align:start; scroll-margin-left:22px;}
  .library-welcome {padding:43px 23px; margin:12px auto;}
  .library-welcome h1,.library-welcome h2 {font-size:28px;}
  .app-surface .catalog-grid {gap:25px 15px;}
  .app-surface .catalog-toolbar {gap:14px; margin-bottom:22px;}
  .app-surface .filter-tabs button {font-size:11px; padding:10px 13px;}
  .app-surface .art-button canvas,.app-surface .art-button>img {border-radius:12px;}
  .app-surface .card-caption h3 {font-size:14px;}
  .app-surface .card-caption span {font-size:12px; margin-top:4px; display:block;}
  .app-surface .round-button {height:44px; width:44px; min-width:44px;}
  .app-surface .card-badge {font-size:8px;}
  .app-surface .account-card {padding:24px;}
  .app-surface .account-card h2 {font-size:23px;}
  .app-surface .account-card p {font-size:13px;}
  .app-surface .editor-layout,.app-surface .style-workspace {grid-template-columns:1fr; gap:20px;}
  .app-surface .editor-preview {position:sticky; top:8px; z-index:3; padding:18px 22px 12px; background:#151919f5; backdrop-filter:blur(16px); border-radius:20px;}
  .app-surface .editor-preview>canvas {width:min(100%,290px); margin:0 auto; border-radius:13px;}
  .app-surface .editor-preview-footer {margin-top:12px; font-size:12px;}
  .app-surface .editor-preview .text-button {margin-top:2px; min-height:32px; font-size:12px;}
  .app-surface .editor-panel .controls {padding:21px;}
  .app-surface .editor-footer {padding:0 21px 21px;}
  .app-surface .customizer-page .page-heading {margin-bottom:20px;}
  .app-surface .customizer-page .back-text {font-size:12px; margin-bottom:10px;}
  .app-surface .style-controls {padding:23px;}
  .app-surface .style-empty {padding:40px 28px;}
  .app-surface .style-empty canvas {margin-bottom:0;}
  .app-surface .resume-banner {font-size:12px; flex-wrap:wrap; gap:10px;}
}
@media(max-width:380px) {
  .app-surface #app-header {padding-left:18px; padding-right:18px;}
  .app-surface .app-page,.app-surface .create-page,.app-surface .guide-page,.app-surface .account-page {padding-left:18px; padding-right:18px;}
  .app-surface .page-heading h1 {font-size:31px;}
  .library-hero {padding:24px 19px 19px;}
  .library-hero-actions {flex-direction:column;}
  .app-surface .library-hero-actions .button.primary {width:100%; flex:none;}
  .dashboard-tool {padding:18px; column-gap:10px;}
  .dashboard-tool-action {font-size:0; gap:0;}
  .app-surface .editor-panel .controls {padding:18px;}
  .app-surface .controls .field-row {grid-template-columns:1fr;}
  .app-surface .editor-tabs button {font-size:11px;}
  .app-surface .font-options {grid-template-columns:repeat(2,minmax(0,1fr));}
  .app-surface .catalog-grid {gap:23px 12px;}
  .app-surface .card-caption {gap:4px;}
}
@media(max-width:700px) and (max-height:550px) {
  .app-surface .editor-preview {padding:10px 18px;}
  .app-surface .editor-preview>canvas {width:min(100%,180px);}
  .app-surface .editor-preview-footer {margin-top:7px;}
  .app-surface .editor-preview .text-button {min-height:26px;}
}
@media(prefers-reduced-motion:reduce) {.dashboard-tool {transition:none;}}

.app-surface .mini-template{background:#ffffff03;border-color:var(--line)}
.app-surface .page-heading p{overflow-wrap:anywhere}

/* Cookie controls remain available in the footer, clear of the bottom tabs. */
body.app-surface > .cookie-settings{display:none}

/* Clear, consistent controls across the workspace. */
.app-surface .card-preview-button {display:grid; place-items:center; flex:none; width:44px; height:44px; border:1px solid var(--line); border-radius:50%; background:#ffffff03;}
.app-surface .card-preview-button .icon {width:16px; height:16px;}
.app-surface .modal-close {width:44px; height:44px;}
.app-surface .swatches {display:flex; flex-wrap:wrap; gap:8px;}
.app-surface .swatches .swatch,.app-surface .swatches input[type=color] {width:44px; height:44px; flex:none; border:5px solid var(--dashboard-panel); box-shadow:0 0 0 1px var(--line); border-radius:50%;}
.app-surface .swatches .swatch.active {box-shadow:0 0 0 2px var(--dashboard-accent);}
.app-surface .fine-controls {margin-top:22px; padding-top:6px; border-top:1px solid var(--line);}
.app-surface .fine-controls summary {min-height:48px; display:flex; align-items:center; justify-content:space-between; cursor:pointer; color:#c9d3cc; font-size:14px; list-style:none;}
.app-surface .fine-controls summary::after {content:'+'; font-size:19px; font-weight:300;}
.app-surface .fine-controls[open] summary::after {content:'−';}
.app-surface .fine-controls[open] summary {margin-bottom:18px;}
.app-surface .fine-controls summary::-webkit-details-marker {display:none;}
.app-surface .editor-panel input:not([type=range]):not([type=color]):not([type=file]) {font-size:16px; min-height:50px;}
.app-surface .copy-note {font-size:14px; color:var(--muted); line-height:1.5; margin:10px 0 24px;}
.app-surface .delivery-info h1 {margin:16px 0 28px; letter-spacing:-1.3px;}
.app-surface .delivery-links {align-items:center; gap:24px;}
.app-surface .delivery-links a {min-height:44px; display:inline-flex; align-items:center;}
.app-surface .account-support {display:flex; align-items:center; justify-content:space-between; gap:18px; border-top:1px solid var(--line); padding:24px 0; margin-top:26px; font-size:15px;}
.app-surface .account-support>span:last-child {color:var(--muted); font-size:14px;}
.app-surface .account-purchases summary {font-size:16px; min-height:44px; cursor:pointer;}
.app-surface .style-unlock-note {font-size:14px; line-height:1.5; color:var(--muted);}
.app-surface .looks-grid {gap:22px;}
.app-surface .look-result>span {font-size:14px; margin-top:12px;}
@media(max-width:700px) {
 .app-surface .style-workspace {display:flex; flex-direction:column;}
 .app-surface .style-results {width:100%; min-width:0; order:-1; position:sticky; top:0; z-index:4; padding:12px 0; background:#0b0d0ef5; backdrop-filter:blur(16px); margin-top:-12px;}
 .app-surface .style-results .looks-grid {display:flex; overflow-x:auto; gap:14px; scroll-snap-type:x mandatory; scrollbar-width:none; padding:4px 22px 6px; margin:0 -22px;}
 .app-surface .style-results .looks-grid::-webkit-scrollbar {display:none;}
 .app-surface .style-results .look-result {flex:0 0 220px; min-width:0; scroll-snap-align:start; scroll-margin-left:22px;}
 .app-surface .style-results .look-result canvas {border-radius:13px;}
 .app-surface .style-results .look-result>span {margin-top:10px;}
 .app-surface .style-controls {padding:22px;}
 .app-surface .choice-group {margin-bottom:22px;}
 .app-surface .choice-group:last-child {margin-bottom:0;}
 .app-surface .account-support {align-items:flex-start; flex-direction:column; gap:8px;}
 .app-surface .editor-layout.is-editing .editor-preview {padding:12px 18px;}
 .app-surface .editor-layout.is-editing .editor-preview>canvas {width:min(100%,190px);}
 .app-surface .editor-layout.is-editing .editor-preview-footer {display:none;}
 .app-surface .editor-layout.is-editing .editor-preview {display:flex; align-items:center; gap:12px;}
 .app-surface .editor-layout.is-editing #undo {min-height:44px; flex:none; margin:0;}
 .app-surface:has(.customizer-page input[type=text]:focus,.customizer-page input:not([type]):focus) #app-nav {visibility:hidden; pointer-events:none;}
 .app-surface .editor-panel input {scroll-margin-top:165px;}
}
@media(max-width:480px) {
 .app-surface .collection-page .catalog-grid {grid-template-columns:1fr; gap:28px;}
 .app-surface .collection-page .card-caption {margin-top:8px;}
 .app-surface .collection-page .card-caption h3 {font-size:16px;}
 .app-surface .saved-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
 .app-surface .saved-grid .round-button {display:none;}
 .app-surface .saved-grid .card-caption {margin-top:12px;}
 .app-surface .looks-grid {gap:18px 12px;}
}
@media(prefers-reduced-motion:reduce) {.collection-pick canvas {transition:none;}}
@media(max-width:380px) {
 .collection-shelf,.app-surface .style-results .looks-grid {margin-left:-18px; margin-right:-18px; padding-left:18px; padding-right:18px;}
 .collection-pick,.app-surface .style-results .look-result {scroll-margin-left:18px;}
}


/* Shared finish: neutral materials, larger labels and fewer containers. */
.app-surface :is(.account-card,.editor-panel,.style-controls,.setup-content) {background:#131314;border-color:var(--line);}
.app-surface .button,.app-surface .button.primary,.app-surface .button.secondary {border-radius:999px;}
.app-surface .editor-tabs button,.app-surface .font-options button,.app-surface .filter-tabs button {font-size:14px;}
.app-surface .editor-tabs button.active,.app-surface .filter-tabs [aria-pressed=true] {color:#f2f2f3;background:#ffffff0e;border-color:#ffffff36;}
.app-surface .card-caption h3 {font-size:16px;}
.app-surface .card-caption span {font-size:13px;}
.app-surface .catalog-grid.saved-grid {grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;}
.app-surface .saved-grid .round-button {display:none;}
.app-surface .saved-grid .card-caption {margin-top:16px;}
.app-surface .account-page .upgrade-row {background:none;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:22px 0;}
.app-surface .upgrade-row p,.app-surface .account-row,.app-surface .receipt-row b,.app-surface .account-card p {font-size:15px;}
.app-surface .upgrade-row b {font-size:17px;}
.app-surface .receipt-row small {font-size:13px;}
.app-surface .account-card h2 {font-size:28px;}
.app-surface .delivery-art {background:none;border:0;box-shadow:none;padding:24px 10px;}
.app-surface .delivery-art img {border-radius:18px;transform:rotate(-3deg);}
.app-surface .delivery-confirmed {display:none;}
.app-surface .delivery-info h1 {font-size:40px;font-weight:550;}
.app-surface .delivery-links {gap:24px;}
.app-surface .delivery-links>* {font-size:15px;}
.app-surface .receipt-details {border:0;border-top:1px solid var(--line);border-radius:0;background:none;padding:20px 0;}
.app-surface .receipt-details summary {font-size:15px;}
@media(min-width:900px) {
 .app-surface {padding-bottom:24px;}
 .app-surface #app-nav {position:absolute;top:23px;bottom:auto;left:50%;width:auto;max-width:none;padding:0;gap:26px;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;}
 .app-surface #app-nav a {position:relative;min-height:44px;flex:none;font-size:14px;padding:8px 0;border-radius:0;background:none;box-shadow:none;gap:9px;}
 .app-surface #app-nav a.selected {color:#fafafa;background:none;box-shadow:none;}
 .app-surface #app-nav a.selected::after {content:'';position:absolute;bottom:0;left:29px;right:0;height:1px;background:#dadade;}
 .app-surface #app-nav a.selected .icon {filter:invert(1);}
 .app-surface #app-nav a:not(.selected):hover {background:none;}
 .app-surface #app-nav a .icon {width:18px;height:18px;}
 .app-surface #toast {bottom:28px;}
}
@media(max-width:900px) {
 .dashboard-tools-grid {grid-template-columns:1fr;gap:0;}
 .dashboard-tool {border-bottom:1px solid var(--line);padding:22px 0;}
 .dashboard-tool:last-child {border-bottom:0;}
 .library-hero {gap:40px;padding:26px 10px 38px;}
 .library-hero-info h2 {font-size:32px;}
}
@media(max-width:700px) {
 .app-surface #app-header {padding:18px 24px 12px;min-height:76px;}
 .app-surface #app-header .brand {font-size:24px;}
 .app-surface .app-page,.app-surface .create-page,.app-surface .guide-page,.app-surface .account-page {padding:26px 24px 24px;}
 .app-surface .page-heading {margin:0 0 28px;gap:16px;}
 .app-surface .page-heading h1 {font-size:36px;letter-spacing:-1.5px;}
 .app-surface .page-heading .button {font-size:14px;min-height:44px;padding:10px 14px;gap:7px;}
 .app-surface .page-heading .button .icon {width:16px;height:16px;}
 .library-hero {display:flex;flex-direction:column;gap:28px;min-height:0;margin:0 0 46px;padding:20px 0 0;}
 .library-hero-art {width:calc(100% - 14px);max-width:380px;margin:0 auto;padding:10px 0;}
 .library-hero-art img {border-radius:17px;max-width:none;}
 .library-hero-info {width:100%;text-align:center;}
 .library-hero-info h2 {font-size:25px;letter-spacing:-.8px;max-width:none;line-height:1.18;}
 .library-hero-actions {margin-top:22px;}
 .app-surface .library-hero-actions .button.primary {width:100%;max-width:none;min-height:58px;font-size:16px;padding:8px 9px 8px 21px;}
 .section-heading {margin-bottom:20px;gap:12px;}
 .section-heading h2,.current-collection .section-heading h2 {font-size:23px;letter-spacing:-.6px;}
 .section-heading .text-button {font-size:14px;white-space:nowrap;}
 .saved-collection {margin:0 0 40px;}
 .app-surface .catalog-grid.saved-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 16px;}
 .app-surface .saved-grid .card-caption {margin-top:12px;}
 .app-surface .saved-grid .card-caption h3 {font-size:15px;}
 .current-collection {margin:0 0 34px;padding-top:26px;}
 .collection-shelf {display:flex;gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:4px 24px 12px;margin:0 -24px;}
 .collection-shelf::-webkit-scrollbar {display:none;}
 .collection-pick {flex:0 0 260px;scroll-snap-align:start;scroll-margin-left:24px;}
 .collection-pick>span {font-size:15px;margin-top:14px;}
 .dashboard-tools {margin-top:26px;}
 .dashboard-tools>summary {min-height:72px;font-size:21px;}
 .dashboard-tools-grid {padding-bottom:10px;}
 .member-help {min-height:72px;font-size:15px;}
 .app-surface .delivery-info h1 {font-size:32px;}
 .app-surface .delivery-art {padding:22px 8px;}
 .app-surface .account-card {padding:24px;}
 .app-surface .account-card p,.app-surface .account-row {font-size:14px;}
 .app-surface .editor-tabs button {font-size:13px;}
 .app-surface .editor-preview {background:#171719f5;border-color:var(--line);}
 .app-surface .style-results {background:#080808f5;}
 .app-surface .control-label,.app-surface .field label,.app-surface .choice-group>label {font-size:14px;}
}
@media(max-width:360px) {
 .app-surface #app-header {padding-left:20px;padding-right:20px;}
 .app-surface .app-page,.app-surface .create-page,.app-surface .guide-page,.app-surface .account-page {padding-left:20px;padding-right:20px;}
 .app-surface .page-heading h1 {font-size:32px;}
 .app-surface .page-heading .button {font-size:13px;padding:10px 12px;}
 .app-surface #app-nav {max-width:calc(100% - 24px);}
 .app-surface #app-nav a {font-size:12px;gap:6px;padding-inline:5px;}
 .app-surface #app-nav a .icon {width:18px;height:18px;}
 .collection-shelf {margin-left:-20px;margin-right:-20px;padding-left:20px;padding-right:20px;}
 .collection-pick {flex-basis:236px;scroll-margin-left:20px;}
 .section-heading h2,.current-collection .section-heading h2 {font-size:21px;}
 .library-hero {gap:25px;}
 .library-hero-info h2 {font-size:23px;}
}
@media(prefers-reduced-motion:reduce) {.app-surface *, .app-surface *::before,.app-surface *::after {scroll-behavior:auto!important;transition:none!important;animation:none!important;}}
