/* Workspace hierarchy: editor, operations, store and account share one frame. */
.workspace-nav-frame{max-width:var(--frame-width);margin:0 auto;padding:0 var(--frame-gutter);border-bottom:1px solid var(--ui-border)}.workspace-primary-nav{display:flex;gap:28px;min-height:52px;align-items:center}.workspace-primary-nav a{font-size:13px;color:var(--ui-muted);padding:14px 2px;border-bottom:2px solid transparent}.workspace-primary-nav a[aria-current]{color:var(--ui-text);border-bottom-color:var(--ui-accent);font-weight:700}.workspace-bottom-nav{display:none}.workspace.workspace-wide{display:block;max-width:var(--frame-width);padding-bottom:60px}.workspace-wide #editor{max-width:960px;margin:0 auto}.workspace-editing{padding-bottom:60px}.workspace .editor-head{display:block;margin-bottom:24px}.workspace .editor-head h1{font-size:25px;line-height:1.4;margin-top:6px}.workspace .editor-head p{font-size:13px;color:var(--ui-muted);margin-top:8px}.workspace-editor-tabs,.workspace-subtabs{display:flex;gap:4px;overflow-x:auto;scrollbar-width:none;margin:0 0 20px;white-space:nowrap}.workspace-editor-tabs a{flex:1;text-align:center;padding:10px 12px;border-bottom:2px solid var(--ui-border);font-size:12px;color:var(--ui-muted)}.workspace-editor-tabs a[aria-current]{border-color:var(--ui-accent);color:var(--ui-text);font-weight:700}.workspace-subtabs a{font-size:12px;padding:6px 12px;border-radius:20px}.workspace-subtabs a[aria-current]{background:var(--ui-soft);color:var(--ui-text)}.workspace-destinations{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.workspace-destination{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px;background:#fff;border:1px solid var(--ui-border);border-radius:14px;min-width:0}.workspace-destination strong{display:block;font-size:14px;color:var(--ui-text)}.workspace-destination small{display:block;font-size:12px;margin-top:6px;line-height:1.6}.workspace-destination:hover{border-color:var(--ui-muted);background:var(--ui-canvas)}.workspace-page-summary{display:flex;align-items:center;justify-content:space-between;gap:20px}.workspace-page-summary h2{margin-top:12px;font-size:21px}.workspace-page-summary p{font-size:12px;color:var(--ui-muted);margin-top:6px}.workspace-preview-note{font-size:11px;text-align:center;margin-top:12px}.workspace-public-link{font-size:12px;color:var(--ui-muted)}.workspace #workspace-external .an-main,.workspace #workspace-external .account-main{max-width:none;padding:0;margin:0}.workspace-wide .skin-options{grid-template-columns:repeat(auto-fit,minmax(210px,1fr))}.workspace-wide .skin-intro{max-width:550px}.workspace .editor-navigation{margin-bottom:18px}.workspace .editor-navigation button{font-size:12px}#drawer .workspace-destination{background:transparent;border:0;padding:12px 4px;border-radius:8px}#drawer nav>small{display:block;border-top:1px solid var(--ui-border);padding-top:16px;margin-top:12px;font-size:11px}#drawer .workspace-destination small{font-size:11px;margin-top:2px}#drawer .workspace-destination strong{font-size:13px}#drawer{padding-bottom:32px}.workspace-bottom-nav a:focus-visible{outline-offset:-4px}
@media(max-width:760px){.workspace-nav-frame{display:none}.workspace.workspace-wide,.workspace.workspace-editing{padding-top:20px;padding-bottom:160px}.workspace-bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:7;background:#f7f9fcf5;backdrop-filter:blur(14px);border-top:1px solid var(--ui-border);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}.workspace-bottom-nav a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:51px;color:var(--ui-muted);font-size:10px;border-radius:12px}.workspace-bottom-nav a>span:first-child{font-size:19px;line-height:24px}.workspace-bottom-nav a[aria-current]{color:var(--ui-text);background:var(--ui-soft);font-weight:700}.floating-mobile{bottom:calc(82px + env(safe-area-inset-bottom));font-size:12px;padding:10px 16px}.workspace-destinations{grid-template-columns:1fr;gap:10px}.workspace-destination{padding:16px}.workspace .editor-head h1{font-size:23px}.workspace-page-summary{align-items:flex-start;flex-direction:column;gap:16px}.workspace-page-summary .button{width:100%}.workspace-editor-tabs{margin-bottom:14px}.workspace-editor-tabs a{padding:10px 8px;font-size:11px}.workspace-public-link{font-size:11px}.workspace .editor-navigation{margin-bottom:12px}.workspace-wide .skin-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.workspace *{scroll-behavior:auto}}

@media(max-width:760px){.workspace .floating-mobile{position:static;transform:none;display:block;width:auto;margin:0 0 16px auto;box-shadow:none;border:1px solid var(--ui-border);background:#fff;color:var(--ui-accent);padding:9px 13px;font-size:12px}}

.workspace-page-identity{width:100%;min-width:0}.workspace-url-row{display:flex;align-items:center;gap:12px;margin-top:12px;padding:12px;background:var(--ui-soft);border:1px solid var(--ui-border);border-radius:10px}.workspace-page-url{min-width:0;flex:1;font-size:13px;overflow-wrap:anywhere;line-height:1.6;color:var(--ui-accent)}.workspace-url-row .workspace-open-page{flex:none;width:auto;white-space:nowrap}.workspace-page-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px}.workspace-page-footer .button{flex:none;width:auto;background:white;border:1px solid var(--ui-border);color:var(--ui-accent)}.workspace #editor .item-row .row{flex-wrap:wrap;gap:6px}@media(max-width:760px){.workspace-url-row{gap:8px;padding:10px}.workspace-page-url{font-size:11px}.workspace-page-footer{align-items:flex-start;flex-direction:column}.workspace-page-footer .button{width:100%}.workspace #editor .item-row .item-text{flex-basis:100%}}

/* Drawer uses navigation rows, isolated from dashboard cards and global small rules. */
#drawer{width:340px;max-width:calc(100vw - 20px);padding:20px 20px max(20px,env(safe-area-inset-bottom));background:#fff;color:#26344e;overflow-y:auto}
#drawer .drawer-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 0 18px;border-bottom:1px solid #e5eaf3}
#drawer .logo{font-size:22px;line-height:30px;gap:8px;color:#202d48;letter-spacing:-1px;white-space:nowrap}
#drawer .logo i{display:grid;place-items:center;background:#496bea;width:30px;height:30px;line-height:1;font-size:19px;flex:none}
#drawer .logo>span{display:none}
#drawer .drawer-header button{display:grid;place-items:center;width:36px;height:36px;padding:0;flex:none;font-size:18px;color:#61718d}
#drawer nav.drawer-navigation{display:grid;gap:16px;margin:20px 0}
#drawer .drawer-group{display:grid;gap:4px;margin:0;padding:0}
#drawer .drawer-group h2{padding:0 12px;margin:0 0 4px;font-size:11px;font-weight:600;line-height:20px;letter-spacing:0;color:#8490a4}
#drawer .drawer-link{display:flex;align-items:center;gap:12px;justify-content:space-between;min-height:62px;padding:10px 12px;border:1px solid transparent;border-radius:10px;background:transparent;box-shadow:none;text-align:left}
#drawer .drawer-link-copy{display:grid;gap:3px;min-width:0;flex:1}
#drawer .drawer-link strong{font-size:13px;font-weight:600;line-height:20px;color:#273b61}
#drawer .drawer-link-description{font-size:11px;font-weight:400;line-height:18px;letter-spacing:0;color:#7887a0;overflow-wrap:anywhere}
#drawer .drawer-link-arrow{flex:none;font-size:17px;color:#8b98ad;line-height:22px}
#drawer .drawer-link:hover{background:#f5f7fc}
#drawer .drawer-link[aria-current]{background:#eef2ff;border-color:#e0e7ff}
#drawer .drawer-link[aria-current] strong,#drawer .drawer-link[aria-current] .drawer-link-arrow{color:#405ee6}
#drawer .drawer-unread{display:inline-block;min-width:18px;text-align:center;margin-left:3px;padding:0 5px;border-radius:10px;color:#fff;background:#4563ed;font-size:10px}
#drawer .drawer-footer{display:grid;grid-template-columns:1fr auto;align-items:center;gap:8px;border-top:1px solid #e5eaf3;padding-top:16px}
#drawer .drawer-footer .button{display:flex;justify-content:center;gap:8px;padding:10px 12px;font-size:12px;white-space:nowrap}
#drawer .drawer-footer button{font-size:12px;padding:10px 8px;color:#6d7b93}

.workspace-helper{margin:12px 0 0;font-size:12px;font-weight:400;line-height:1.65;color:var(--ui-muted);word-break:keep-all;overflow-wrap:anywhere}

/* Shared second-level editor navigation: layout, skins and content. */
.workspace-subtabs{display:flex;gap:4px;padding:4px;margin:0 0 24px;background:#eaf0fa;border:1px solid #dce5f4;border-radius:12px;overflow:visible;white-space:normal}
.workspace-subtabs a{display:flex;flex:1 1 0;align-items:center;justify-content:center;min-width:0;min-height:44px;box-sizing:border-box;padding:10px 8px;border:1px solid transparent;border-radius:9px;color:#52627d;font-size:14px;font-weight:600;line-height:1.4;text-align:center;text-decoration:none;word-break:keep-all}
.workspace-subtabs a[aria-current="page"]{background:#fff;color:#3554db;border-color:#d4def6;font-weight:700;box-shadow:0 1px 3px #233b6010}
.workspace-subtabs a:hover{background:#f7f9ff;color:#2948c7}.workspace-subtabs a:focus-visible{outline:2px solid #4165e8;outline-offset:2px}
@media(max-width:600px){.workspace-subtabs{margin-bottom:20px}.workspace-subtabs a{font-size:13px;padding:9px 5px;min-height:44px}}

/* Scoped layout settings pilot. Shared page-wide policy awaits design review. */
.layout-settings .layout-settings-help{margin:0 0 8px;color:var(--ui-muted);font-size:12px;line-height:1.7}.layout-setting{padding:20px 0;border-bottom:1px solid var(--ui-border)}.layout-setting:last-child{border-bottom:0;padding-bottom:0}.layout-setting-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.layout-setting .layout-setting-header h2{font-size:14px;margin:0;line-height:1.5}.layout-setting-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.layout-visibility{display:flex;align-items:center;gap:7px;font-size:12px;min-height:44px;margin:0 8px 0 0}.layout-visibility input{margin:0}.layout-visibility span{min-width:24px}.layout-setting-actions button{min-width:44px;min-height:44px}.layout-setting-title{display:grid;gap:8px;margin-top:16px;font-size:12px;color:var(--ui-muted)}.layout-setting-title input{width:100%;color:var(--ui-text)}.layout-setting-description{font-size:12px;line-height:1.7;color:var(--ui-muted);margin:8px 0 0}.layout-settings-footer{display:flex;align-items:center;gap:16px;margin-top:16px}.layout-settings-footer p{font-size:12px;line-height:1.7;color:var(--ui-muted);margin:0}@media(max-width:600px){.layout-settings{padding:18px}.layout-setting-header{gap:6px}.layout-setting-actions{gap:4px}.layout-visibility{margin-right:4px}.layout-settings-footer{align-items:flex-start;flex-direction:column;gap:10px}}

.publish-changes-intro,.publish-change-empty{font-size:12px;color:var(--ui-muted);line-height:1.8;margin:18px 0}.publish-change{padding:16px 0;border-top:1px solid var(--ui-border)}.publish-change-category{font-size:11px;color:#4165e8;font-weight:600}.publish-change h3{font-size:14px;line-height:1.7;margin:5px 0 9px;overflow-wrap:anywhere}.publish-change h3 span{font-size:12px;font-weight:400;color:var(--ui-muted)}.publish-change summary{font-size:12px;color:#526681;cursor:pointer;padding:6px 0}.publish-change-field{margin:14px 0}.publish-change-field h4{font-size:12px;margin:0 0 8px}.publish-change-values{display:grid;grid-template-columns:1fr 1fr;gap:12px}.publish-change-values>div{min-width:0;border-radius:8px;background:#f5f8fe;padding:12px;font-size:12px;line-height:1.7;overflow-wrap:anywhere;white-space:pre-wrap}.publish-change-values small{display:block;margin-bottom:6px;color:var(--ui-muted);font-size:11px}.publish-change-values img{display:block;max-width:100%;max-height:140px;object-fit:contain;border-radius:6px}@media(max-width:600px){.publish-change-values{grid-template-columns:1fr;gap:8px}.publish-change h3 span{display:block}}

/* Creator drawer: separate navigation groups from their destinations. */
#drawer nav.drawer-navigation{gap:10px;margin:18px 0}
#drawer .drawer-group{display:block;border:1px solid #e1e7f1;border-radius:12px;overflow:hidden;background:#fff}
#drawer .drawer-group summary{display:flex;align-items:center;gap:10px;min-height:48px;padding:12px;cursor:pointer;list-style:none;background:#f5f7fb}
#drawer .drawer-group summary::-webkit-details-marker{display:none}
#drawer .drawer-group summary strong{font-size:14px;color:#273b61}
#drawer .drawer-group-icon{display:inline-block;width:20px;flex:0 0 20px;margin-right:4px;color:#61718d;text-align:center}
#drawer .drawer-chevron{margin-left:auto;color:#7887a0}#drawer .drawer-group[open] .drawer-chevron{transform:rotate(180deg)}
#drawer .drawer-group-current{font-size:10px;color:#4563ed;white-space:nowrap}
#drawer .drawer-children{padding:6px 8px 8px 18px;display:grid;gap:2px;border-top:1px solid #e8edf5}
#drawer .drawer-link{min-height:44px;padding:10px;gap:8px;font-size:13px;line-height:1.6}
#drawer .drawer-link>span:first-child{min-width:0;flex:1;word-break:keep-all}
#drawer .drawer-link[aria-current=page]{color:#405ee6;font-weight:700;background:#eef2ff;border-color:#dce4ff}
#drawer .drawer-current{flex:none;font-size:10px;color:#405ee6;white-space:nowrap}
#drawer .drawer-single .drawer-link{font-size:14px;font-weight:650;background:#fff;border-color:#e1e7f1;min-height:48px}
#drawer .drawer-single .drawer-link[aria-current=page]{background:#eef2ff;border-color:#dce4ff}
#drawer .drawer-help{min-height:44px;display:flex;align-items:center;padding:10px 12px;color:#61718d;font-size:12px}
#drawer summary:focus-visible{outline:2px solid #4563ed;outline-offset:-3px}

#drawer .drawer-header{position:sticky;top:0;z-index:2;margin-top:-20px;padding:20px 0 12px;background:#fff}#drawer .drawer-header button{width:44px;height:44px}
