/* SHINEMAGE shared visual system. Existing modules own routes, permissions and data. */
:root {
  --atelier-ink:#18171c;
  --atelier-muted:#5f5c66;
  --atelier-line:#dedce3;
  --atelier-paper:#f8f7fa;
  --atelier-soft:#f0eef3;
  --atelier-white:#fff;
  --atelier-nav-surface:#fff;
  --atelier-nav-ink:#2c2931;
  --atelier-nav-muted:#5f5c66;
  --atelier-nav-active:#f9e8ed;
  --atelier-accent:#ad1237;
  --atelier-accent-hover:#8d0d2d;
  --atelier-accent-soft:#f9e8ed;
  --atelier-shadow:0 7px 24px #18171c08;
  --portal-bg:var(--atelier-paper); --portal-ink:var(--atelier-ink);
  --portal-muted:var(--atelier-muted); --portal-line:var(--atelier-line);
  --portal-nav:var(--atelier-soft); --portal-soft:var(--atelier-soft); --portal-accent:var(--atelier-accent); --portal-accent-on:#fff;
  --ink:var(--atelier-ink); --muted:var(--atelier-muted); --line:var(--atelier-line);
  --paper:#fff; --wash:var(--atelier-soft); --accent:var(--atelier-accent);
  --bg:var(--atelier-paper); --card:#fff; --text:var(--atelier-ink); --sub:var(--atelier-muted);
  --blue:var(--atelier-accent); --blue-d:var(--atelier-accent-hover); --blue-light:var(--atelier-accent-soft);
  font-family:"DM Sans","Noto Sans SC","Microsoft YaHei",sans-serif;
  font-synthesis:none; text-rendering:optimizeLegibility; color-scheme:light;
}
body {background:var(--atelier-paper);color:var(--atelier-ink);font-size:16px;line-height:1.65;-webkit-font-smoothing:antialiased}
::selection {background:var(--atelier-accent-soft);color:var(--atelier-ink)}
button,input,select,textarea {font-family:inherit}
:where(button,a,input,select,textarea,summary):focus-visible {outline:3px solid var(--atelier-accent);outline-offset:4px}
:where(button,a,input,select,textarea) {transition:background-color .18s,border-color .18s,box-shadow .18s,color .18s,transform .18s}
:where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea) {border-color:var(--atelier-line);border-radius:10px;background-color:#fff;color:var(--atelier-ink);font-size:14px;min-height:40px}
:where(input,select,textarea):focus {border-color:var(--atelier-accent);box-shadow:0 0 0 3px #ad12371a}
select {appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%235f5c66' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:32px}
select[multiple] {background-image:none}
:where(dialog) {border:1px solid var(--atelier-line);border-radius:20px;box-shadow:0 24px 100px #18171c33;background:#fff}
:where(dialog)::backdrop {background:#18171c72;backdrop-filter:blur(7px)}
:where(table) {font-size:14px}
:where(th) {font-size:13px;font-weight:500;background:var(--atelier-soft);color:var(--atelier-muted)}
:where(td,th) {border-color:var(--atelier-line)}
:where(tbody tr):hover {background:var(--atelier-paper)}

/* One recognizable frame across the launchpad and the personal workspace. */
body:has(.portal-sidebar) {
  --portal-bg:var(--atelier-paper);
  --portal-ink:var(--atelier-ink);
  --portal-muted:var(--atelier-muted);
  --portal-line:var(--atelier-line);
  --portal-nav:var(--atelier-soft);
  --portal-soft:var(--atelier-soft);
  --portal-accent:var(--atelier-accent);
  background:var(--portal-bg);
}
body[data-portal-interface] .portal-sidebar,.portal-sidebar {
  width:224px;padding:27px 16px 20px;background:var(--atelier-nav-surface);
  border-right:1px solid var(--atelier-line);color:var(--atelier-nav-ink);z-index:30;
}
.portal-sidebar {scrollbar-width:thin;scrollbar-color:#bbb7c6 transparent}
.portal-nav {margin-top:0}
body[data-portal-interface] .portal-frame,.portal-frame {margin-left:224px}
body[data-portal-interface] .portal-brand,.portal-brand {color:var(--atelier-nav-ink);font-size:15px;font-weight:650;letter-spacing:1.7px;gap:12px;padding:0 10px}
.shinemage-brand-mark {
  display:inline-block;
  width:38px;
  height:27px;
  object-fit:contain;
  flex:none;
  vertical-align:middle;
}
:is(.auth-aside,.admin-sidebar,.products-shell) .brand > .shinemage-brand-mark {
  margin-inline-end:10px;
}
@media(max-width:1050px) {
  .shinemage-brand-mark {width:34px;height:24px}
}
body[data-portal-interface] .portal-org,.portal-org {font-size:12px;letter-spacing:1px;color:var(--atelier-nav-muted);padding:14px 10px 0;margin-bottom:25px}
.fh-nav-label,.portal-navlabel {font-size:11px!important;letter-spacing:1.5px;color:var(--atelier-nav-muted)!important}
.fh-nav-label {margin:0 12px 16px}
#feature-categories {gap:7px}
#feature-categories a,.portal-nav a {color:var(--atelier-nav-ink);font-size:14px;min-height:47px;padding:12px;border-radius:10px;gap:12px;position:relative}
#feature-categories a[aria-current=page],.portal-nav a[aria-current=page] {background:var(--atelier-nav-active);color:var(--atelier-accent);box-shadow:inset 3px 0 #ad1237;font-weight:600}
#feature-categories a:hover:not([aria-current=page]),.portal-nav a:hover:not([aria-current=page]) {background:var(--atelier-soft);color:var(--atelier-ink);transform:none}
#feature-categories small {color:inherit;font-size:12px;opacity:.7;font-weight:400}
#feature-categories svg {width:19px;height:19px;stroke-width:1.6}
.portal-nav a>span {color:inherit}
.fh-sidebar-foot {border-color:var(--atelier-line);margin:30px 12px 0;padding-top:23px;color:var(--atelier-nav-muted);font-size:12px;line-height:1.9}
.fh-sidebar-foot a {display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--atelier-nav-ink)}
.portal-sidebarfoot {padding-top:32px}
.portal-preference-link,.portal-design-link {color:var(--atelier-nav-ink);border-color:var(--atelier-line);font-size:13px;padding:15px 10px}
.portal-preference-link span,.portal-design-link span {color:var(--atelier-nav-muted);font-size:12px}
.portal-user {border-top:1px solid var(--atelier-line);padding:20px 10px 0;margin-top:15px;color:var(--atelier-nav-ink);gap:12px;font-size:13px}
.portal-user small {font-size:12px;color:var(--atelier-nav-muted)}
.portal-user button {color:inherit;background:transparent;border:0;padding:0}
.portal-avatar {width:35px;height:35px;background:var(--atelier-soft);color:var(--atelier-accent);border:1px solid var(--atelier-line)}
body[data-portal-interface] .portal-top,.portal-top {min-height:72px;padding:13px 36px;background:#fff;border-bottom:1px solid var(--atelier-line);gap:24px;flex-wrap:nowrap}
.portal-search-trigger {background:var(--atelier-soft);border:1px solid var(--atelier-line);border-radius:12px;padding:11px 14px;font-size:13px;flex:1;max-width:420px;min-height:44px}
.portal-search-trigger>span:first-child {font-size:24px;color:var(--atelier-muted)}
.portal-search-trigger kbd {margin-left:auto;border-color:var(--atelier-line);font-size:11px;background:#fff;padding:2px 6px}
.portal-interface-switch {background:var(--atelier-soft);border:1px solid var(--atelier-line);border-radius:10px;padding:4px}
.portal-interface-switch a {font-size:12px;color:var(--atelier-muted);border-radius:7px;padding:8px 13px}
.portal-interface-switch a[aria-current=page] {color:var(--atelier-accent);box-shadow:0 2px 5px #18171c0a;background:#fff}
.portal-topmeta {font-size:12px;gap:16px;color:var(--atelier-muted)}
.portal-topmeta button {border:1px solid var(--atelier-line);border-radius:9px;padding:7px 12px;background:#fff;font-size:12px}
body[data-portal-interface] .portal-main,.portal-main {padding:24px 36px 44px;max-width:1660px;margin:auto}
.people-sync {font-size:12px;color:var(--atelier-muted)}
body[data-portal-interface] .people-sync:not(:has(button:not([hidden]))) {
  position:absolute;
  width:1px;
  height:1px;
  margin:0;
  padding:0;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
}
.portal-heading {padding:5px 0 25px;margin-bottom:23px;border-bottom:1px solid var(--atelier-line)}
.portal-heading h1 {font-size:34px;font-weight:600;letter-spacing:-1px}
.portal-heading p:not(.portal-eyebrow) {font-size:14px;line-height:1.8}
.portal-eyebrow {font-size:12px;letter-spacing:1px;color:var(--atelier-accent)}
.portal-headingmeta {font-size:12px}

/* Brand expression and functional shortcuts share the home row. */
.atelier-home {
  display:grid;
  grid-template-columns:minmax(0, 1.35fr) minmax(0, 1fr);
  margin:0 0 30px;
  container-type:inline-size;
  border:1px solid var(--atelier-line);
  background:#fff;
}
.atelier-masthead {
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:0;
  min-height:226px;
  padding:28px clamp(20px, 3cqi, 46px);
  background:var(--atelier-accent);
  color:#fff;
}
.atelier-masthead h1 {
  margin:0;
  font:800 clamp(29px,7cqi,100px)/.98 Arial,"Microsoft YaHei",sans-serif;
  letter-spacing:-.065em;
  overflow-wrap:anywhere;
}
.atelier-masthead p {
  align-self:flex-start;
  border-top:1px solid #ffffff78;
  margin:17px 0 0;
  padding-top:11px;
  font-size:clamp(14px,1.6cqi,21px);
  font-weight:550;
}
.atelier-start {display:flex;flex-direction:column;justify-content:center;gap:16px;min-width:0;padding:21px clamp(16px,2.5cqi,32px)}
.atelier-resume {display:flex;justify-content:space-between;align-items:center;gap:12px;padding-bottom:14px;border-bottom:1px solid var(--atelier-line)}
.atelier-resume>div {min-width:0}
.atelier-resume-label {color:var(--atelier-muted);font-size:12px;margin:0 0 2px}
.atelier-resume h2 {margin:0;font-size:17px;color:var(--atelier-ink);font-weight:650;overflow-wrap:anywhere}
.atelier-resume-link {flex:none;display:inline-flex;align-items:center;gap:7px;background:var(--atelier-accent);color:#fff;padding:8px 11px;min-height:38px;font-size:12px;font-weight:650;border-radius:5px}
.atelier-resume-link:hover {background:var(--atelier-accent-hover)}
.atelier-start-tools {min-width:0}
.atelier-start-tools h2 {font-weight:650;font-size:13px;margin:0 0 9px}
.atelier-spotlight {display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.atelier-spotlight:empty {display:none}
.atelier-launch {display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:36px;border:1px solid var(--atelier-line);background:#fff;color:var(--atelier-ink);border-radius:5px;padding:6px 9px;font-size:12px}
.atelier-launch svg {width:15px;height:15px;flex-shrink:0}
.atelier-launch:hover {background:var(--atelier-accent-soft);color:var(--atelier-accent)}
.atelier-start:has(.atelier-resume[hidden]) .atelier-launch-primary {background:var(--atelier-accent);border-color:var(--atelier-accent);color:#fff;font-weight:650}
.atelier-start:has(.atelier-resume[hidden]) .atelier-launch-primary:hover {background:var(--atelier-accent-hover);border-color:var(--atelier-accent-hover)}
.atelier-work-link {color:var(--atelier-accent);font-size:13px;font-weight:550}
.atelier-work-link:hover {text-decoration:underline}
.fh-tools {padding-bottom:12px;margin-bottom:18px;border-color:var(--atelier-line)}
.fh-result-title {gap:10px}
.fh-result-title h2 {font-size:26px;letter-spacing:-.04em;font-weight:650;color:var(--atelier-ink)}
.fh-result-title span {font-size:12px;color:var(--atelier-muted)}
.fh-search {width:40%;max-width:360px;gap:10px}
.fh-search label {font-size:12px;color:var(--atelier-muted)}
.fh-search input {min-height:40px;border-radius:6px;background:#fff;font-size:13px;border-color:var(--atelier-line);padding:9px 33px 9px 12px}
.fh-search button {top:5px;right:6px;color:var(--atelier-muted)}
.fh-search input:focus-visible,.fh-card-link:focus-visible,#feature-categories a:focus-visible {outline:2px solid var(--atelier-accent);outline-offset:2px}
.fh-grid {gap:24px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start}
.fh-grid[data-scope=filtered] {grid-template-columns:minmax(0,1fr)}
.fh-department {min-width:0;border-top:2px solid var(--atelier-ink)}
.fh-department-title {display:flex;align-items:center;gap:9px;margin:0;padding:12px 10px;border-bottom:1px solid var(--atelier-line);font-size:17px;font-weight:650}
.fh-department-title svg {width:19px;height:19px;color:var(--atelier-accent);flex:none}
.fh-department-entries {margin:0;padding:0;list-style:none}
.fh-card {min-width:0;border:0;border-bottom:1px solid var(--atelier-line);border-radius:0;background:transparent}
.fh-card:hover,.fh-card:focus-within {border-color:var(--atelier-line);background:var(--atelier-accent-soft)}
.fh-card-link {display:flex;align-items:center;justify-content:space-between;gap:12px;flex-direction:row;min-height:62px;padding:10px;color:var(--atelier-ink)}
.fh-entry-copy {display:grid;gap:2px;min-width:0}
.fh-entry-copy strong {color:var(--atelier-ink);font-size:14px;font-weight:650;overflow-wrap:anywhere}
.fh-entry-copy>span:not(.sr-only) {color:var(--atelier-muted);font-size:13px;line-height:1.55;overflow-wrap:anywhere}
.fh-entry-arrow {flex:none;font-size:16px;color:var(--atelier-accent)}
.fh-footer {border-color:var(--atelier-line);font-size:12px;color:var(--atelier-muted);margin-top:26px;padding-top:16px}
.fh-footer a {color:var(--atelier-accent)}
.fh-result-status {font-size:13px;color:var(--atelier-muted)}
.fh-empty {padding:36px 20px;border:1px dashed var(--atelier-line);border-radius:6px;background:#fff}
.fh-empty h3 {font-size:18px;color:var(--atelier-ink)}
.fh-empty p {font-size:14px}

/* Personal desk, task board, business overview and shared actions. */
:is(.hub-panel,.people-card,.portal-feature,.portal-inbox,.portal-shortcuts,.saved-card,.hub-metric) {background:#fff;border:1px solid var(--atelier-line);border-radius:16px;box-shadow:var(--atelier-shadow)}
.hub-panel {padding:24px}.people-card {padding:24px}
.hub-intro {padding:24px 28px;background:var(--atelier-soft);border:1px solid var(--atelier-line);border-radius:18px;margin-bottom:20px}
.hub-intro h2 {font-size:25px;font-weight:550;color:var(--atelier-ink)}
.hub-intro p {font-size:14px;color:var(--atelier-muted)}
.hub-metrics {gap:16px;margin:20px 0;background:transparent;border:0;border-radius:0;overflow:visible}
.hub-metric {padding:20px!important;background:#fff}
.hub-metric strong,.hub-metric b {font-size:30px;letter-spacing:-1px;font-weight:550;color:var(--atelier-ink)}
.hub-metric span,.hub-metric small {font-size:13px}
.hub-grid {gap:20px}
.hub-support {margin-top:28px}
.hub-panel-head h3,.people-head h2,.portal-sectionhead h2 {font-size:18px;font-weight:550;color:var(--atelier-ink)}
.hub-panel-head a,.hub-panel-head button,.portal-textlink,.portal-quiet-button {font-size:12px}
.hub-empty,.hub-source,.hub-pin,.hub-focus-row {font-size:14px;line-height:1.9}
.hub-empty {padding:24px 0;color:var(--atelier-muted)}
.portal-button {font-size:13px;min-height:39px;border-radius:10px;padding:9px 15px;border:1px solid var(--atelier-line);background:#fff;box-shadow:0 2px 5px #18171c04}
.portal-button:hover {background:var(--atelier-accent-soft);border-color:#d2a1af}
.portal-button.primary {background:var(--atelier-accent);border-color:var(--atelier-accent);color:#fff;box-shadow:0 4px 12px #ad12371a}
.portal-button.primary:hover {background:var(--atelier-accent-hover)}
.portal-sectionnote,.portal-status {font-size:13px;color:var(--atelier-muted)}
.portal-home-columns {gap:24px;margin-top:28px}
.portal-home-columns>section {padding:24px;background:#fff;border:1px solid var(--atelier-line);border-radius:16px;align-self:start}
.portal-inbox,.portal-shortcuts {padding:24px}
.portal-home-side {display:flex;flex-direction:column;gap:20px}
.portal-spaces {margin-top:28px}
.portal-spacegrid {gap:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-space {padding:22px;border:1px solid var(--atelier-line);border-radius:14px;background:#fff;box-shadow:var(--atelier-shadow);gap:16px}
.portal-space:hover {transform:translateY(-3px);border-color:#d2a1af}
.portal-space strong {font-size:16px;font-weight:550}.portal-space small {font-size:12px;line-height:1.9;color:var(--atelier-muted)}
.portal-spaceicon {width:41px;height:41px;border-radius:11px;background:var(--atelier-accent-soft);color:var(--atelier-accent)}
.portal-recent-row,.portal-attention-row {padding:18px 0;font-size:13px}
.portal-recent-row strong,.portal-attention-row strong {font-size:14px;font-weight:500}
.portal-recent-row small,.portal-attention-row small {font-size:12px}
.portal-workbench-nav,.hub-nav {gap:8px;border-bottom:1px solid var(--atelier-line);padding-bottom:14px}
.portal-workbench-nav a,.hub-nav a {font-size:13px;padding:9px 14px;border-radius:9px}
.portal-workbench-nav [aria-current=page],.hub-nav [aria-current=page] {background:var(--atelier-accent-soft);color:var(--atelier-accent);border-color:transparent}
.people-table th,.portal-table th {font-size:12px;background:var(--atelier-soft)}
.people-table td,.portal-table td {font-size:14px;padding-top:17px;padding-bottom:17px}
.people-filters,.people-toolbar {gap:12px}
.people-toolbar input,.people-toolbar select,.people-filters select {font-size:13px;padding:9px 12px}
.work-layout-switch {padding:4px;border-radius:11px;background:var(--atelier-soft);border:1px solid var(--atelier-line)}
.work-layout-switch button {font-size:13px;border-radius:8px;padding:7px 15px}
.work-layout-switch button[aria-pressed=true] {background:#fff;color:var(--atelier-accent);box-shadow:0 2px 5px #18171c10}
.work-column {background:var(--atelier-soft);border-radius:14px;border-color:var(--atelier-line)}
.work-visual-card {border-radius:12px;background:#fff;box-shadow:var(--atelier-shadow)}
.portal-action-dialog,.portal-search-dialog,.portal-favourites-dialog {background:#fff;padding:28px;border-radius:20px}
.portal-search-result {padding:14px;border-radius:10px}
.portal-search-result strong {font-size:14px}.portal-search-result small {font-size:12px}
.portal-setting-row label {font-size:15px}.portal-setting-row p,.portal-settings-help {font-size:13px}
.portal-error,.people-error {border-radius:10px;font-size:14px}

/* Account pages place the studio photograph between the brand and heading. */
.auth-layout {grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);min-height:100dvh;background:var(--atelier-paper)}
.auth-aside {padding:42px 48px;background:var(--atelier-accent);color:#fff;justify-content:space-between;gap:30px}
.auth-aside .brand {align-self:flex-start;display:inline-flex;align-items:center;background:#fff;color:var(--atelier-ink);padding:9px 12px;border-radius:4px;font-size:15px;letter-spacing:1.3px}
.auth-aside h1 {font-size:clamp(34px,3.5vw,52px);font-weight:500;line-height:1.35;letter-spacing:-1.2px;max-width:520px;margin-bottom:20px}
.auth-aside .eyebrow {font-size:11px;letter-spacing:2px;color:#fff2f5;margin-bottom:15px}
.auth-aside .muted {font-size:14px;color:#fff2f5}
.auth-aside>small {font-size:12px!important;margin-top:40px;letter-spacing:.5px}
.auth-main {padding:56px;background:var(--atelier-paper)}
.auth-card {width:400px;max-width:100%}
.auth-card h1 {font-size:32px;font-weight:600;color:var(--atelier-ink);letter-spacing:-1px;margin-bottom:13px}
.auth-card .eyebrow {color:var(--atelier-accent);font-size:11px;letter-spacing:2.5px;margin-bottom:17px}
.auth-card .muted {font-size:14px;color:var(--atelier-muted);line-height:1.9}
.auth-card form {margin-top:35px}
.auth-card label {font-size:13px;color:var(--atelier-ink);margin:20px 0 9px}
.auth-card input:not([type=checkbox]),.auth-card select,.auth-card textarea {min-height:49px;border-radius:11px;border:1px solid var(--atelier-line);background:#fff;font-size:15px;padding:12px 15px;box-shadow:0 2px 4px #18171c03}
.auth-card .primary {min-height:49px;border-radius:11px;font-size:15px;font-weight:500;background:var(--atelier-accent);border-color:var(--atelier-accent);box-shadow:none;margin-top:28px}
.auth-card .primary:hover {background:var(--atelier-accent-hover)}
.auth-card #register-entry {font-size:13px;border-top:1px solid var(--atelier-line);padding-top:24px;margin-top:28px!important;color:var(--atelier-accent)}
.auth-card #auth-help {font-size:12px!important;color:var(--atelier-muted)}

/* Existing business modules share the same surfaces without changing layout
   owners, sticky table cells, editors, modals or visibility contracts. */
.shell>.sidebar,.shell>aside,.admin-sidebar {background:var(--atelier-nav-surface);color:var(--atelier-nav-ink);border-color:var(--atelier-line);padding-top:30px}
.shell>.sidebar .brand,.shell>aside .brand,.admin-sidebar .brand {color:var(--atelier-nav-ink);font-size:15px;letter-spacing:1.5px;font-weight:600}
.shell>.sidebar .back,.shell>aside .back {color:var(--atelier-nav-muted);font-size:12px;border-color:var(--atelier-line);border-radius:9px;background:var(--atelier-soft);padding:10px 12px;margin-top:22px}
.shell>.sidebar .eyebrow,.shell>aside .eyebrow {color:var(--atelier-nav-muted);font-size:11px;letter-spacing:1.2px}
.shell>.sidebar nav :is(a,button),.shell>aside nav :is(a,button),.admin-sidebar nav button {font-size:13px;color:var(--atelier-nav-ink);border-radius:9px;min-height:42px}
.shell>.sidebar nav :is(a,button):hover,.shell>aside nav :is(a,button):hover,.admin-sidebar nav button:hover {background:var(--atelier-soft);color:var(--atelier-ink)}
.shell>.sidebar nav [aria-current=page],.shell>aside nav [aria-current=page],.admin-sidebar nav button[aria-current=page] {background:var(--atelier-nav-active);color:var(--atelier-accent);box-shadow:inset 3px 0 #ad1237;font-weight:550}
.shell>aside footer,.admin-sidebar footer {border-color:var(--atelier-line);color:var(--atelier-nav-muted);font-size:12px}
.shell>aside footer button,.admin-sidebar footer button {color:var(--atelier-nav-ink);background:transparent;border-color:var(--atelier-line)}
.shell>main,.admin-main {background:var(--atelier-paper);padding:34px 36px;min-width:0}
.shell>main>header,.admin-top {padding:2px 0 26px;border-bottom:1px solid var(--atelier-line);margin-bottom:26px}
.shell>main>header h1,.admin-top h1 {font-size:30px;font-weight:550;letter-spacing:-.8px;color:var(--atelier-ink)}
.shell>main>header .eyebrow {font-size:11px;letter-spacing:1.2px;color:var(--atelier-accent)}
.shell .muted,.admin-main .muted {font-size:13px;color:var(--atelier-muted)}
.shell :is(.panel,.kpi,.metric,.stat-card),.admin-panel {border:1px solid var(--atelier-line);border-radius:15px;background:#fff;box-shadow:var(--atelier-shadow)}
.shell :is(.panel-head,.panel>header) {border-color:var(--atelier-line)}
.shell :is(.panel-head,.panel>header) h2 {font-size:18px;font-weight:550;color:var(--atelier-ink)}
.shell :is(.kpi,.metric) {padding:23px}
.shell :is(.kpi,.metric) :is(.value,strong) {font-size:29px;font-weight:550;letter-spacing:-1px;color:var(--atelier-ink)}
.shell :is(button,.button),.admin-main button {border-radius:9px;font-size:13px;min-height:36px;border-color:var(--atelier-line)}
.shell :is(button.primary,.button.primary),.admin-main .primary {background:var(--atelier-accent);border-color:var(--atelier-accent);color:#fff;box-shadow:0 4px 12px #ad12371a}
.shell :is(.filters,#filters,.table-filters) {background:#fff;border:1px solid var(--atelier-line);border-radius:13px;padding:18px 20px;gap:14px}
.shell :is(.filters,#filters,.table-filters) label {font-size:12px;color:var(--atelier-muted)}
.shell :is(.filters,#filters,.table-filters) :is(input,select) {font-size:13px;min-height:38px;border-radius:8px}
.shell :is(.status,.notice) {font-size:13px;border-radius:10px}
.shell table {font-size:13px}.shell th {font-size:12px;background:var(--atelier-soft);color:var(--atelier-muted)}
.shell td,.shell th {padding-top:15px;padding-bottom:15px;border-color:var(--atelier-line)}
.shell .table-wrap {max-width:100%;border-radius:0 0 13px 13px}
.admin-shell {grid-template-columns:230px minmax(0,1fr)}
.admin-sidebar {padding:30px 20px}
.admin-sidebar nav>a {font-size:13px;line-height:1.7;color:var(--atelier-nav-ink)}
.admin-panel th {background:var(--atelier-soft);font-size:12px}.admin-panel td {font-size:14px}

/* Content, promotion, source data, daily reports and permission modules. */
:is(.cp-sidebar,.meta-sidebar,.push-sidebar,.dp-sidebar,.dcb-sidebar,.pc-sidebar) {background:var(--atelier-nav-surface);color:var(--atelier-nav-ink);border-color:var(--atelier-line);padding-top:30px}
:is(.cp-brand,.meta-brand,.push-brand,.dp-brand,.dcb-brand,.pc-brand) {color:var(--atelier-nav-ink);font-size:15px;font-weight:600;letter-spacing:1.3px}
:is(.cp-back,.meta-back,.dp-back,.dcb-back) {font-size:12px;color:var(--atelier-nav-muted);border-color:var(--atelier-line);background:var(--atelier-soft);border-radius:8px;padding:9px 11px}
:is(.cp-caption,.meta-section-label,.dp-eyebrow,.pc-sidebar-title) {color:var(--atelier-nav-muted);font-size:11px;letter-spacing:1px}
:is(.cp-sidebar,.meta-sidebar,.push-sidebar,.dp-sidebar,.dcb-sidebar,.pc-sidebar) nav :is(a,button) {color:var(--atelier-nav-ink);font-size:13px;min-height:43px;border-radius:9px}
:is(.cp-sidebar,.meta-sidebar,.push-sidebar,.dp-sidebar,.dcb-sidebar,.pc-sidebar) nav :is(a,button):hover {background:var(--atelier-soft);color:var(--atelier-ink)}
:is(.cp-sidebar,.meta-sidebar,.push-sidebar,.dp-sidebar,.dcb-sidebar,.pc-sidebar) nav :is([aria-current=page],.active,.on) {background:var(--atelier-nav-active);color:var(--atelier-accent);box-shadow:inset 3px 0 #ad1237;font-weight:550}
:is(.cp-sidebar,.meta-sidebar,.push-sidebar,.dp-sidebar,.dcb-sidebar,.pc-sidebar) nav a[aria-current=page] {background:var(--atelier-nav-active);color:var(--atelier-accent);box-shadow:inset 3px 0 #ad1237;font-weight:550}
:is(.cp-sidebar,.meta-sidebar,.push-sidebar,.dp-sidebar,.dcb-sidebar,.pc-sidebar) footer {border-color:var(--atelier-line);font-size:12px;color:var(--atelier-nav-muted)}
:is(.cp-sidebar,.meta-sidebar,.push-sidebar,.dp-sidebar,.dcb-sidebar,.pc-sidebar) footer button {border-color:var(--atelier-line);color:var(--atelier-nav-ink);background:transparent}
:is(.cp-shell,.meta-shell,.push-shell,.dp-shell,.dcb-shell,.pc-shell)>main {background:var(--atelier-paper);padding:34px 36px;min-width:0}
:is(.cp-heading,.meta-heading,.dp-heading,.dcb-heading,.pc-heading) {padding-bottom:24px;border-bottom:1px solid var(--atelier-line);margin-bottom:24px}
:is(.cp-heading,.meta-heading,.dp-heading,.dcb-heading,.pc-heading) h1 {font-size:30px;font-weight:550;color:var(--atelier-ink);letter-spacing:-.8px}
:is(.cp-heading,.meta-heading,.dp-heading,.dcb-heading,.pc-heading) p {font-size:13px;color:var(--atelier-muted)}
:is(.cp-panel,.cp-stat,.meta-panel,.meta-stat,.push-panel,.dp-panel,.dp-metric,.dcb-panel,.dcb-card,.pc-panel,.pc-card) {background:#fff;border:1px solid var(--atelier-line);border-radius:15px;box-shadow:var(--atelier-shadow)}
:is(.cp-panel-heading,.meta-panel-heading,.dp-panel-head,.dcb-panel-head,.pc-panel-head) h2 {font-size:18px;font-weight:550;color:var(--atelier-ink)}
.cp-stat span,.cp-stat small,.meta-stat span,.meta-stat small {font-size:12px;color:var(--atelier-muted)}
.cp-stat strong,.meta-stat strong {font-family:inherit;font-size:30px;font-weight:550;letter-spacing:-1px;color:var(--atelier-ink)}
.cp-filters,.meta-filters {padding:18px 20px;border:1px solid var(--atelier-line);border-radius:13px;background:#fff;gap:14px}
.cp-filters label,.meta-filters label {font-size:12px;color:var(--atelier-muted)}
:is(.cp-shell,.meta-shell,.push-shell,.dp-shell,.dcb-shell,.pc-shell) button {font-size:13px;min-height:36px;border-radius:9px;border-color:var(--atelier-line)}
:is(.cp-shell,.meta-shell,.push-shell,.dp-shell,.dcb-shell,.pc-shell) button.primary {background:var(--atelier-accent);color:#fff;border-color:var(--atelier-accent)}
:is(.cp-shell,.meta-shell,.push-shell,.dp-shell,.dcb-shell,.pc-shell) :is(input,select,textarea) {font-size:13px;border-radius:8px}
:is(.cp-shell,.meta-shell,.push-shell,.dp-shell,.dcb-shell,.pc-shell) table {font-size:13px}
:is(.cp-shell,.meta-shell,.push-shell,.dp-shell,.dcb-shell,.pc-shell) th {background:var(--atelier-soft);color:var(--atelier-muted);font-size:12px}
:is(.cp-empty,.meta-empty,.pc-empty) p {font-size:14px;color:var(--atelier-muted);line-height:1.9}
:is(.cp-notice,.cp-error,.meta-notice,.meta-error,.pc-notice) {font-size:13px;border-radius:10px}
body:has(>.topbar)>header.topbar,body:has(>header+main) > header {background:#fff;border-bottom:1px solid var(--atelier-line);min-height:76px;color:var(--atelier-muted)}
body:has(>.topbar)>header.topbar .brand,body:has(>header+main)>header>a:first-child {color:var(--atelier-ink);letter-spacing:1.3px;font-size:15px;font-weight:650}
body:has(>.topbar)>header.topbar .brand>span {color:var(--atelier-accent)}
body:has(>.topbar) :is(.panel,.stat-card,.source-card,.summary-card),body:has(>header+main)>main :is(.panel,.card,.metric,.summary-card) {background:#fff;border-color:var(--atelier-line);border-radius:15px;box-shadow:var(--atelier-shadow)}
body:has(>header+main)>main {color:var(--atelier-ink)}
body:has(>header+main)>main h1 {font-weight:550;letter-spacing:-.7px}

/* Production studio keeps its editing geometry and all original handlers. */
.app-sidebar {--atelier-nav-ink:#eeecef;--atelier-nav-muted:#c5becd;--atelier-nav-active:#403039;background:#19181d;color:var(--atelier-nav-ink);border-color:#2e2b34;overflow-x:hidden}
.app-brand,.app-brand small {color:var(--atelier-nav-ink)}
.studio-feature-label {color:#fff;font-size:15px;font-weight:500;padding-bottom:22px}
.app-sidebar .sidebar-label,.app-sidebar .sidebar-bottom {color:var(--atelier-nav-muted);border-color:#322e38}
.app-sidebar .nav-item,.app-sidebar .video-section-nav button {font-size:13px;border-radius:9px;color:var(--atelier-nav-ink)}
.app-sidebar .nav-item.on,.app-sidebar .video-section-nav button.on {background:var(--atelier-nav-active);color:#fff;box-shadow:inset 3px 0 #ea7692}
.app-sidebar .nav-symbol {color:inherit}
.app-header {background:#fff;border-color:var(--atelier-line);min-height:74px}
.app-header .studio-workspace-return {border-radius:9px;font-size:12px}
.environment-note {background:var(--atelier-soft);border-color:var(--atelier-line);font-size:12px}
#app-main {background:var(--atelier-paper)}
.workspace-heading h1 {font-size:30px;font-weight:550}
.workspace-heading p:last-child {font-size:14px;line-height:1.9}
.project-welcome {padding:26px 28px;border:1px solid var(--atelier-line);border-radius:16px;background:var(--atelier-soft)}
.project-welcome h2 {font-weight:500;font-size:25px}.project-welcome p {font-size:14px;line-height:1.9}
.project-metrics {gap:16px}.metric-card {border:1px solid var(--atelier-line);border-radius:13px;background:#fff;padding:20px}
.metric-card b {font-weight:550;font-size:27px}.metric-card span {font-size:12px}
.project-card,.pw-columns .card,.card {border-radius:14px;border-color:var(--atelier-line);box-shadow:var(--atelier-shadow)}
.project-card:hover {transform:translateY(-3px);box-shadow:0 13px 30px #18171c0a;border-color:#d2a1af}
.project-cover {background:var(--atelier-soft)!important}
.project-monogram {font-size:36px;font-weight:500;color:var(--atelier-accent)}
.project-card-actions .primary-open {background:var(--atelier-accent-soft);color:var(--atelier-accent);border-radius:9px}
button.btn {font-size:13px;border-radius:9px}
.pw-top {padding:22px 24px;border:1px solid var(--atelier-line);background:#fff;border-radius:15px}
.pw-top h2 {font-size:24px;font-weight:550}.pw-top p {font-size:13px}
.pw-step {background:#fff;border-radius:12px;padding:18px;border-color:var(--atelier-line)}
.pw-step>b {font-size:15px;font-weight:500}.pw-step small {font-size:12px}
.pw-columns h3 {font-size:18px;font-weight:550}.pw-columns .muted {font-size:13px}

@media(max-width:1250px) {
  body[data-portal-interface] .portal-sidebar,.portal-sidebar{width:216px;padding-inline:15px}
  body[data-portal-interface] .portal-frame,.portal-frame{margin-left:216px}
  body[data-portal-interface] .portal-main,.portal-main{padding:26px}
  body[data-portal-interface] .portal-top,.portal-top{padding:19px 26px;gap:16px}
  .portal-topmeta>span{max-width:96px;white-space:normal}
  .fh-grid{gap:14px}.portal-interface-switch a{padding:8px 10px}.portal-search-trigger{font-size:12px}
  .portal-search-trigger kbd{display:none}
  .shell>main,.admin-main{padding:30px 26px}
}
@media(max-width:1050px) {
  .fh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-topmeta>span{display:none}
  .portal-search-trigger>span:nth-child(2){font-size:12px}
  .auth-aside{padding:36px}.auth-main{padding:40px}
  .auth-aside h1{font-size:37px}
}
@media(max-width:940px) {
  .atelier-home{grid-template-columns:1fr}
  .atelier-masthead{min-height:172px;padding:25px}
  .atelier-masthead h1{font-size:clamp(29px,9cqi,72px)}
  .atelier-start{padding:17px 22px}
}
@media(max-width:760px) {
  body[data-portal-interface] .portal-sidebar,.portal-sidebar{width:184px;padding:26px 12px}
  body[data-portal-interface] .portal-frame,.portal-frame{margin-left:184px}
  body[data-portal-interface] .portal-brand,.portal-brand{font-size:12px;letter-spacing:1px;padding-inline:4px;gap:8px}
  body[data-portal-interface] .portal-org,.portal-org{font-size:11px;padding-inline:4px;letter-spacing:0}
  #feature-categories a{font-size:12px;padding:10px;gap:9px}
  body[data-portal-interface] .portal-main,.portal-main{padding:22px}
  .portal-search-trigger>span:nth-child(2){display:none}.portal-search-trigger{flex:0 0 44px;justify-content:center;padding:5px}
  .portal-interface-switch{margin-left:auto}.portal-topmeta{display:none}
  .fh-search label{display:none}.fh-search{min-width:160px;width:45%}.fh-result-title h2{font-size:18px}
  .auth-layout{grid-template-columns:1fr}.auth-aside{min-height:300px;padding:28px}
  .auth-aside h1{font-size:32px}.auth-aside>small{display:none}.auth-main{padding:40px 24px}
}
@media(max-width:640px) {
  body[data-portal-interface] .portal-sidebar,.portal-sidebar{position:relative;inset:auto;width:100%;padding:22px}
  body[data-portal-interface] .portal-frame,.portal-frame{margin-left:0}
  body[data-portal-interface] .portal-brand,.portal-brand{font-size:14px}
  body[data-portal-interface] .portal-org,.portal-org{margin-bottom:20px}
  .portal-sidebarfoot,.fh-sidebar-foot,.fh-nav-label{display:none}
  #feature-categories{flex-direction:row;gap:6px;overflow-x:auto;padding-bottom:4px}
  #feature-categories a{min-height:38px;padding:8px 12px;flex-shrink:0;white-space:nowrap}
  #feature-categories small{display:none}.portal-menu{background:#ffffff0b;color:var(--atelier-nav-ink);top:25px;right:22px}
  body[data-portal-interface] .portal-top,.portal-top{padding:14px 20px;min-height:70px}
  body[data-portal-interface] .portal-main,.portal-main{padding:20px}
  .fh-grid{grid-template-columns:1fr}.fh-card-link{min-height:58px;padding:9px 6px}
  .fh-tools{flex-direction:row;align-items:center}.fh-search{min-width:130px}.fh-result-title h2{font-size:17px}
  .fh-result-title{gap:7px}.fh-result-title span{font-size:11px}.fh-search input{font-size:12px}
  .portal-spacegrid{grid-template-columns:1fr}.portal-heading h1{font-size:28px}
  .portal-home-columns>section,.portal-inbox,.portal-shortcuts,.hub-panel,.people-card{padding:20px}
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
  .portal-space:hover,.project-card:hover{transform:none}
}
