:root {
  color-scheme: light;
  --navy: #172152;
  --ink: #1d294e;
  --muted: #65718d;
  --line: #dce3f3;
  --line-strong: #c4cfe7;
  --white: #fff;
  --blue: #173edb;
  --blue-dark: #122fb8;
  --blue-soft: #edf2ff;
  --yellow: #f6df57;
  --yellow-dark: #e8ce3a;
  --green: #287557;
  --green-soft: #eaf5ef;
  --red: #a1423d;
  --red-soft: #fff0ef;
  font-family: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { min-width: 320px; min-height: 100vh; margin: 0; background: #f7f8fc; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
:focus-visible { outline: 3px solid #5877f0; outline-offset: 3px; }

.cms-shell { display: grid; grid-template-columns: 238px minmax(0, 1fr); min-height: 100vh; }
.cms-sidebar { position: sticky; top: 0; display: flex; flex-direction: column; height: 100vh; min-height: 560px; padding: 22px 15px 16px; background: var(--navy); color: #fff; }
.cms-brand, .login-brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--yellow); color: var(--navy); font-size: 21px; font-weight: 850; letter-spacing: -.08em; }
.brand-name { color: #fff; font-size: 15px; font-weight: 780; letter-spacing: -.045em; }
.brand-name > span { color: var(--yellow); }
.brand-name small { display: block; margin-top: 3px; color: #bec8ec; font-size: 10px; font-weight: 540; letter-spacing: .01em; }
.sidebar-caption { margin: 47px 12px 10px; color: #aeb9e1; font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link { display: flex; align-items: center; gap: 11px; min-height: 43px; padding: 0 12px; border-radius: 8px; color: #e8ecfc; font-size: 13px; font-weight: 650; text-decoration: none; }
.sidebar-link:hover { background: #ffffff12; }
.sidebar-link.is-current { background: #ffffff0f; color: #fff; }
.nav-glyph { display: grid; width: 20px; place-items: center; color: var(--yellow); font-size: 17px; }
.sidebar-spacer { flex: 1; }
.sidebar-note { display: flex; gap: 10px; padding: 13px 11px; border-top: 1px solid #ffffff26; color: #c5cdec; font-size: 11px; line-height: 1.55; }
.sidebar-note-mark { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--yellow); }
.signout-form { margin-top: 9px; }
.sidebar-signout { width: 100%; padding: 10px 12px; border: 0; border-radius: 7px; background: transparent; color: #e8ecfc; cursor: pointer; text-align: left; font-size: 12px; }
.sidebar-signout:hover { background: #ffffff12; }
.cms-main { min-width: 0; padding: 0 34px 48px; }
.cms-page { width: min(100%, 1500px); margin: 0 auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 32px 0 25px; border-bottom: 1px solid var(--line); }
.eyebrow { margin: 0 0 8px; color: #647195; font-size: 10px; font-weight: 740; letter-spacing: .075em; }
h1, h2, h3, p { margin-top: 0; }
.page-heading h1 { margin: 0; color: var(--navy); font-size: clamp(26px, 3vw, 33px); font-weight: 690; letter-spacing: -.055em; line-height: 1.1; }
.page-intro { max-width: 670px; margin: 9px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.button { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 15px; border: 1px solid transparent; border-radius: 7px; cursor: pointer; font-size: 12px; font-weight: 720; text-decoration: none; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, transform .15s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { border-color: var(--yellow); background: var(--yellow); color: var(--navy); }
.button-primary:hover { border-color: var(--yellow-dark); background: var(--yellow-dark); }
.button-secondary { border-color: var(--line-strong); background: #fff; color: #33416c; }
.button-secondary:hover { border-color: #9faed0; background: #f7f9ff; }
.button-danger { border-color: #eed1cf; background: #fff; color: var(--red); }
.button-danger:hover { background: var(--red-soft); }
.feedback { margin: 16px 0 0; padding: 11px 14px; border: 1px solid; border-radius: 7px; font-size: 12px; line-height: 1.5; }
.feedback-error { border-color: #e9c7c4; background: var(--red-soft); color: var(--red); }
.feedback-success { border-color: #c8e2d3; background: var(--green-soft); color: var(--green); }
.feedback-info { border-color: #d7e0f5; background: #f4f7ff; color: #425582; }
.feedback-warning { border-color: #e8dfb1; background: #fffdf4; color: #6f6029; }
.integrations-page { max-width: 1100px; }
.integration-section { padding-top: 24px; }
.integration-section-heading, .integration-panel-heading { display: flex; align-items: center; gap: 13px; }
.integration-section-heading { justify-content: space-between; margin-bottom: 13px; }
.integration-section-heading h2, .integration-panel-heading h2 { margin: 0; color: var(--navy); font-size: 16px; font-weight: 720; letter-spacing: -.025em; }
.integration-section-heading p, .integration-panel-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.integration-count { display: grid; min-width: 26px; height: 26px; place-items: center; padding: 0 7px; border-radius: 14px; background: #eef1f7; color: #53617e; font-size: 11px; font-weight: 700; }
.integration-panel { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 3px 14px #1b2a5610; }
.integration-setup { margin-top: 20px; border-color: #e8dfb1; background: #fffdf4; }
.integration-mark { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border: 1px solid #e1e7f3; border-radius: 10px; background: #f7f8fc; color: var(--navy); font-size: 16px; font-weight: 760; }
.integration-panel-heading > div { min-width: 0; flex: 1; }
.integration-panel-heading h3 { margin: 0; color: var(--navy); font-size: 14px; font-weight: 720; }
.integration-setup > p { margin: 15px 0 9px; color: #495675; font-size: 12px; line-height: 1.6; }
.integration-setup > code, .integration-api-note > code { display: inline-block; padding: 8px 10px; border: 1px solid #e3e8f2; border-radius: 6px; background: #f7f8fc; color: #344263; font-size: 10px; overflow-wrap: anywhere; }
.integration-setup .integration-note { margin-bottom: 0; color: var(--muted); font-size: 10px; }
.integration-empty { display: grid; gap: 5px; padding: 22px; border: 1px dashed var(--line-strong); border-radius: 9px; background: #fff; text-align: center; }
.integration-empty strong { color: var(--navy); font-size: 12px; }
.integration-empty span { color: var(--muted); font-size: 11px; }
.integration-list { display: grid; gap: 12px; }
.integration-card { box-shadow: none; }
.integration-status { padding: 6px 9px; border-radius: 15px; background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 720; white-space: nowrap; }
.integration-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 22px; margin: 18px 0; padding: 14px 0; border-top: 1px solid #edf0f6; border-bottom: 1px solid #edf0f6; }
.integration-details div { min-width: 0; }
.integration-details dt { margin-bottom: 5px; color: #78839d; font-size: 9px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.integration-details dd { margin: 0; color: #354260; font-size: 11px; overflow-wrap: anywhere; }
.integration-details code { font-size: 10px; }
.integration-card-action { display: flex; justify-content: flex-end; }
.integration-api-note { display: grid; gap: 12px; margin-top: 22px; }
.integration-api-note h2 { margin: 0 0 5px; color: var(--navy); font-size: 14px; }
.integration-api-note p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 520px) {
  .integration-details { grid-template-columns: 1fr; }
  .integration-panel { padding: 14px; }
  .integration-panel-heading { align-items: flex-start; flex-wrap: wrap; }
}
.manager-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; padding-top: 20px; align-items: start; }
.page-rail { min-width: 0; padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.rail-heading { display: flex; align-items: center; justify-content: space-between; padding: 1px 2px 12px; border-bottom: 1px solid #e9edf6; }
.rail-heading h2 { margin: 0; color: var(--navy); font-size: 14px; font-weight: 720; letter-spacing: -.02em; }
.rail-heading > span { display: grid; min-width: 23px; height: 23px; place-items: center; padding: 0 6px; border-radius: 12px; background: var(--blue-soft); color: var(--blue); font-size: 10px; font-weight: 740; }
.rail-empty { margin: 15px 2px 12px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.page-list { display: grid; gap: 4px; padding: 8px 0 4px; }
.page-list-item { display: grid; gap: 4px; padding: 11px 9px; border: 1px solid transparent; border-radius: 7px; text-decoration: none; }
.page-list-item:hover { background: #f8f9fd; }
.page-list-item.is-selected { border-color: #d6def5; background: #f3f6ff; }
.page-list-title { overflow: hidden; color: var(--navy); font-size: 12px; font-weight: 690; text-overflow: ellipsis; white-space: nowrap; }
.page-list-slug { color: #727f9c; font-size: 10px; }
.page-list-meta { display: flex; align-items: center; gap: 5px; margin-top: 3px; color: #586681; font-size: 9px; }
.page-list-meta time { margin-left: auto; color: #8892a8; }
.state-dot { width: 6px; height: 6px; border-radius: 50%; background: #aeb7c8; }
.state-dot.is-live { background: #35a274; }
.rail-new-link { display: inline-flex; margin: 10px 2px 0; color: var(--blue); font-size: 11px; font-weight: 700; text-decoration: none; }
.rail-new-link:hover { text-decoration: underline; }
.rail-note { display: grid; gap: 4px; margin-top: 20px; padding: 12px 11px; border-left: 2px solid var(--yellow); background: #fbf9ed; color: #62604e; font-size: 10px; line-height: 1.5; }
.rail-note strong { color: #383b4b; font-size: 10px; }
.editor-workspace { min-width: 0; }
.editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 8px 2px 17px; }
.editor-heading .eyebrow { margin-bottom: 6px; color: #78839f; }
.editor-heading h2 { margin: 0; color: var(--navy); font-size: 21px; font-weight: 690; letter-spacing: -.045em; }
.revision-line { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.revision-separator { padding: 0 5px; color: #aab2c3; }
.publish-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.publish-actions form { margin: 0; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr); gap: 15px; align-items: start; }
.editor-panel, .preview-panel, .history-panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.editor-panel { padding: 18px; }
.field-grid { display: grid; grid-template-columns: minmax(120px, .45fr) minmax(200px, 1fr); gap: 15px; }
.field-wide { grid-column: 1 / -1; }
.field-group { display: grid; min-width: 0; gap: 7px; align-content: start; }
.field-group label { color: #354064; font-size: 11px; font-weight: 700; }
.field-group label span { margin-left: 5px; color: #8a94a9; font-size: 10px; font-weight: 500; }
.field-group input, .field-group textarea { width: 100%; border: 1px solid #d7deeb; border-radius: 6px; outline: none; background: #fff; color: var(--ink); font-size: 12px; }
.field-group input { min-height: 38px; padding: 0 11px; }
.field-group textarea { min-height: 300px; padding: 12px; resize: vertical; font-family: Consolas, "Cascadia Code", monospace; font-size: 11px; line-height: 1.6; tab-size: 2; }
.field-group input:focus, .field-group textarea:focus { border-color: #7890e6; box-shadow: 0 0 0 3px #173edb16; }
.field-group input[readonly], .field-group textarea[readonly] { background: #f8f9fc; color: #586681; }
.field-group small { color: #77829b; font-size: 10px; line-height: 1.45; }
.slug-input-wrap { display: flex; min-width: 0; align-items: center; border: 1px solid #d7deeb; border-radius: 6px; background: #fff; }
.slug-input-wrap:focus-within { border-color: #7890e6; box-shadow: 0 0 0 3px #173edb16; }
.slug-input-wrap > span { padding-left: 10px; color: #7b87a2; font-size: 12px; }
.slug-input-wrap input { min-width: 0; border: 0; box-shadow: none !important; }
.html-field { margin-top: 17px; }
.html-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.html-label-row > span { color: #8791a8; font-size: 10px; }
.form-footer { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #e9edf5; }
.form-footer > span { color: #72809a; font-size: 10px; }
.preview-column { display: grid; gap: 14px; min-width: 0; }
.preview-panel, .history-panel { overflow: hidden; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 15px; border-bottom: 1px solid #e9edf5; }
.panel-heading h3 { margin: 0; color: var(--navy); font-size: 12px; font-weight: 720; }
.panel-heading p { margin: 4px 0 0; color: #7b879e; font-size: 10px; }
.preview-mark { display: grid; width: 25px; height: 25px; place-items: center; border: 1px solid var(--line); border-radius: 6px; color: var(--blue); font-size: 13px; }
.page-preview { display: block; width: 100%; height: 390px; border: 0; background: #f6f7fb; }
.revision-list { display: grid; max-height: 325px; overflow: auto; }
.revision-item { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #edf0f6; text-decoration: none; }
.revision-item:last-child { border-bottom: 0; }
.revision-item:hover, .revision-item.is-current { background: #f5f7ff; }
.revision-number { display: grid; min-width: 28px; height: 23px; place-items: center; border-radius: 5px; background: var(--blue-soft); color: #2947be; font-size: 9px; font-weight: 740; }
.revision-details { display: grid; gap: 4px; min-width: 0; }
.revision-details strong { color: #354064; font-size: 10px; font-weight: 700; }
.revision-details small { overflow: hidden; color: #7d879e; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.history-callout { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #d5def5; border-radius: 6px; background: var(--blue-soft); color: #425582; font-size: 11px; line-height: 1.5; }

.login-page { display: grid; min-height: 100vh; place-items: center; padding: 36px; background: #f5f7fc; }
.login-frame { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); width: min(100%, 1080px); min-height: min(700px, calc(100vh - 72px)); overflow: hidden; border: 1px solid #e0e5ef; border-radius: 16px; background: #fff; box-shadow: 0 28px 80px #17215212; }
.login-story { display: flex; min-width: 0; flex-direction: column; padding: clamp(32px, 4.8vw, 56px); background: var(--navy); color: #fff; }
.login-brand { color: #fff; }
.login-brand .brand-name { color: #fff; }
.login-brand .brand-name small { color: #bec8ec; }
.login-story-content { margin: auto 0 27px; padding-top: 54px; }
.login-story-label { margin: 0 0 14px; padding-left: 11px; border-left: 3px solid var(--yellow); color: #d2dcff; font-size: 12px; font-weight: 700; }
.login-story-content h1 { max-width: 440px; margin: 0; color: #fff; font-size: clamp(34px, 4vw, 45px); font-weight: 690; letter-spacing: -.055em; line-height: 1.06; }
.login-story-content > p:last-child { max-width: 410px; margin: 14px 0 0; color: #d1d9f2; font-size: 14px; line-height: 1.65; }
.login-preview { overflow: hidden; padding: 11px; border: 1px solid #ffffff30; border-radius: 11px; background: #ffffff0a; }
.login-preview-top { display: flex; align-items: center; justify-content: space-between; color: #d8def1; font-size: 10px; font-weight: 650; }
.login-preview-tab { padding: 5px 8px; border-radius: 5px; background: #ffffff18; color: #fff; }
.login-preview-content { display: grid; grid-template-columns: 1.15fr .85fr; gap: 9px; margin-top: 9px; }
.login-preview-page, .login-preview-result { min-width: 0; min-height: 128px; overflow: hidden; border-radius: 7px; background: #fff; color: var(--navy); }
.login-preview-browser { display: flex; height: 24px; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid #e8ebf2; color: #8791a5; font-size: 7px; }
.login-preview-browser > span:nth-child(-n+3) { width: 5px; height: 5px; border-radius: 50%; background: #d9deea; }
.login-preview-browser > span:last-child { margin-left: 3px; }
.login-preview-page-body { display: grid; gap: 7px; padding: 12px; }
.login-preview-page-body > span:first-child { color: #77829b; font-size: 7px; }
.login-preview-page-body > strong { max-width: 180px; font-size: 12px; font-weight: 700; letter-spacing: -.03em; line-height: 1.25; }
.login-preview-line { display: block; width: 88%; height: 4px; border-radius: 3px; background: #e6eaf2; }
.login-preview-line.short { width: 57%; }
.login-preview-rule { display: block; width: 25px; height: 3px; margin-top: 2px; border-radius: 3px; background: var(--yellow); }
.login-preview-result { display: flex; min-height: 128px; flex-direction: column; justify-content: center; gap: 8px; padding: 13px; background: #f7f8fc; }
.login-preview-result > span:first-child { color: #73809a; font-size: 8px; }
.login-preview-result > strong { color: var(--blue); font-size: 10px; font-weight: 500; line-height: 1.35; }
.login-panel { display: flex; min-width: 0; flex-direction: column; justify-content: center; padding: clamp(38px, 6vw, 72px); }
.login-panel .page-heading { display: block; padding: 0; border: 0; }
.login-panel .page-heading .eyebrow { margin-bottom: 10px; color: var(--blue); font-size: 12px; letter-spacing: 0; }
.login-panel .page-heading h1 { color: var(--navy); font-size: 34px; letter-spacing: -.05em; }
.login-panel .page-intro { margin-top: 10px; font-size: 13px; }
.login-panel .feedback { margin-top: 22px; }
.login-form { display: grid; gap: 10px; margin-top: 30px; }
.login-form label { color: #354064; font-size: 12px; font-weight: 700; }
.login-form input { width: 100%; min-height: 48px; padding: 0 12px; border: 1px solid #d7deeb; border-radius: 7px; background: #fff; color: var(--ink); font-size: 14px; }
.login-form input:focus { border-color: #7890e6; outline: 3px solid #173edb16; }
.login-form .button { width: 100%; min-height: 48px; margin-top: 5px; font-size: 13px; }
.login-security { display: flex; align-items: flex-start; gap: 9px; margin: 18px 0 0; color: #737f98; font-size: 11px; line-height: 1.55; }
.login-security > span { width: 7px; height: 7px; flex: 0 0 auto; margin-top: 5px; border-radius: 50%; background: var(--yellow-dark); }

@media (max-width: 1180px) {
  .cms-main { padding-right: 22px; padding-left: 22px; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-column { grid-template-columns: minmax(0, 1fr) minmax(240px, .9fr); }
  .page-preview { height: 320px; }
}
@media (max-width: 800px) {
  .login-page { padding: 18px; }
  .login-frame { grid-template-columns: 1fr; width: min(100%, 560px); min-height: 0; }
  .login-story { padding: 27px 30px 24px; }
  .login-story-content { margin: 46px 0 20px; padding-top: 0; }
  .login-story-content h1 { max-width: 480px; font-size: 34px; }
  .login-story-content > p:last-child { font-size: 13px; }
  .login-preview-content { grid-template-columns: 1.15fr .85fr; }
  .login-panel { padding: 38px 30px 42px; }
  .cms-shell { grid-template-columns: 1fr; }
  .cms-sidebar { position: static; height: auto; min-height: 0; padding: 13px 17px; }
  .cms-brand { width: fit-content; }
  .sidebar-caption, .sidebar-spacer, .sidebar-note { display: none; }
  .sidebar-nav { margin-top: 12px; }
  .sidebar-link { min-height: 37px; }
  .signout-form { position: absolute; top: 17px; right: 14px; margin: 0; }
  .sidebar-signout { width: auto; padding: 8px 10px; font-size: 11px; }
  .cms-main { padding: 0 16px 28px; }
  .manager-grid { grid-template-columns: 1fr; gap: 14px; }
  .page-rail { padding: 12px; }
  .page-list { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
  .rail-note { display: none; }
  .preview-column { grid-template-columns: 1fr; }
  .page-preview { height: 300px; }
}
@media (max-width: 520px) {
  .page-heading { align-items: flex-start; padding-top: 24px; }
  .page-heading > .button { align-self: center; padding: 0 10px; }
  .page-intro { font-size: 12px; }
  .manager-grid { padding-top: 13px; }
  .editor-heading { display: grid; }
  .publish-actions { justify-content: flex-start; }
  .field-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .html-label-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
  .editor-panel { padding: 13px; }
  .login-page { padding: 10px; }
  .login-frame { border-radius: 11px; }
  .login-story { padding: 23px 21px 20px; }
  .login-story-content { margin-top: 38px; }
  .login-story-content h1 { font-size: 30px; }
  .login-preview { padding: 8px; }
  .login-preview-content { gap: 6px; }
  .login-preview-page, .login-preview-result { min-height: 112px; }
  .login-preview-result { padding: 9px; }
  .login-panel { padding: 33px 22px 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

.cms-page { width: min(100%, 1580px); }
.page-heading { padding: 34px 0 22px; }
.page-heading h1 { font-size: clamp(28px, 3vw, 36px); }
.page-intro { max-width: 710px; font-size: 13px; }
.delivery-banner { display: flex; align-items: center; gap: 13px; margin-top: 15px; padding: 13px 15px; border: 1px solid #d7e0f5; border-radius: 9px; background: #f4f7ff; }
.delivery-mark { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e3ebff; color: #173edb; font-size: 14px; font-weight: 800; }
.delivery-banner > div { min-width: 0; flex: 1; }
.delivery-banner strong { display: block; color: var(--navy); font-size: 11px; font-weight: 730; }
.delivery-banner p { margin: 3px 0 0; color: #64718f; font-size: 10px; line-height: 1.45; }
.delivery-banner code { max-width: 42%; padding: 7px 9px; border: 1px solid #dce4f5; border-radius: 6px; background: #fff; color: #4c5b7d; font-size: 9px; overflow-wrap: anywhere; }
.manager-grid { grid-template-columns: 252px minmax(0, 1fr); gap: 24px; padding-top: 20px; }
.page-rail { position: sticky; top: 18px; max-height: calc(100vh - 36px); overflow-y: auto; padding: 17px 14px; border-color: #e2e7f1; border-radius: 10px; box-shadow: 0 2px 8px #1b2a5606; }
.rail-heading { padding-bottom: 13px; }
.rail-heading h2 { font-size: 13px; }
.page-library-tools { display: grid; gap: 9px; padding: 11px 0 3px; }
.page-library-tools label { display: grid; min-width: 0; gap: 4px; }
.page-library-tools label > span { color: #687591; font-size: 9px; font-weight: 700; }
.page-library-tools input, .page-library-tools select { width: 100%; min-width: 0; min-height: 31px; padding: 0 7px; border: 1px solid #dfe4ee; border-radius: 6px; background: #fff; color: #33405e; font-size: 10px; }
.page-library-tools input:focus, .page-library-tools select:focus { border-color: #7a91e7; outline: 0; box-shadow: 0 0 0 2px #173edb16; }
.page-library-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 7px; }
.page-library-group { padding-top: 2px; }
.page-library-count { margin: -2px 0 0; color: #8490a6; font-size: 9px; }
.rail-empty { display: grid; gap: 5px; margin: 12px 2px 10px; padding: 13px 11px; border-radius: 7px; background: #f7f8fc; }
.rail-empty strong { color: var(--navy); font-size: 11px; }
.rail-empty span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.page-list-item { padding: 12px 10px; }
.page-list-item.is-selected { border-left: 3px solid var(--blue); background: #f4f6ff; }
.page-list-meta { font-size: 9px; }
.page-list-group-heading { display: flex; align-items: center; min-height: 26px; margin-top: 9px; padding: 3px 9px 2px; border-bottom: 1px solid #edf0f5; color: #7c879d; font-size: 9px; font-weight: 750; letter-spacing: .055em; text-transform: uppercase; }
.page-workflow-state { margin-left: 2px; padding: 2px 5px; border: 1px solid #e5e9f0; border-radius: 10px; color: #76819a; font-size: 8px; line-height: 1.1; }
.page-library-empty { margin: 10px 0 0; padding: 11px 9px; border-radius: 7px; background: #f7f8fc; color: #75819a; font-size: 10px; line-height: 1.45; }
.page-library-empty[hidden] { display: none; }
.rail-note { margin-top: 18px; border-radius: 0 7px 7px 0; }
.editor-heading { align-items: center; padding: 3px 2px 17px; }
.editor-heading h2 { font-size: 24px; }
.editor-grid { grid-template-columns: minmax(0, 1.55fr) minmax(300px, .78fr); gap: 18px; }
.editor-main-column, .preview-column { min-width: 0; }
.editor-panel, .preview-panel, .history-panel { border-color: #e0e5ef; border-radius: 10px; box-shadow: 0 2px 8px #1b2a5606; }
.editor-panel { padding: 20px; }
.page-fields { grid-template-columns: minmax(0, .85fr) minmax(200px, 1.15fr); gap: 14px; }
.page-organization-heading { margin-top: 19px; }
.page-organization-fields { padding-top: 1px; }
.slug-input-wrap > span { max-width: 52%; overflow: hidden; color: #78849c; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.field-group label { color: #29375e; font-size: 11px; }
.field-group input, .field-group textarea, .field-group select { border-color: #d6ddeb; border-radius: 7px; font-size: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
.field-group input { min-height: 40px; }
.field-group textarea { min-height: 82px; resize: vertical; font-family: inherit; font-size: 12px; }
.field-group input:focus, .field-group textarea:focus, .field-group select:focus { border-color: #7a91e7; outline: 0; box-shadow: 0 0 0 3px #173edb16; }
.editor-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin: 24px 0 10px; padding-top: 19px; border-top: 1px solid #e8ecf3; }
.editor-section-heading h3, .seo-panel-heading h3 { margin: 0; color: var(--navy); font-size: 14px; font-weight: 740; letter-spacing: -.025em; }
.editor-section-heading p, .seo-panel-heading p { margin: 5px 0 0; color: #75819a; font-size: 10px; line-height: 1.5; }
.editor-mode-switch, .preview-devices { display: inline-flex; flex: 0 0 auto; padding: 3px; border: 1px solid #e0e5ef; border-radius: 7px; background: #f6f7fb; }
.editor-mode-switch button, .preview-devices button { min-height: 27px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #65718a; cursor: pointer; font-size: 10px; font-weight: 680; }
.editor-mode-switch button.is-active, .preview-devices button.is-active { background: #fff; color: var(--navy); box-shadow: 0 1px 4px #1b2a5618; }
.visual-editor-shell, .source-editor-shell { overflow: hidden; border: 1px solid #d9dfec; border-radius: 8px; background: #fff; }
.visual-toolbar { display: flex; min-height: 43px; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid #e7ebf2; background: #fbfcfe; }
.visual-toolbar button { min-width: 28px; min-height: 28px; padding: 0 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #354365; cursor: pointer; font-size: 10px; font-weight: 650; }
.visual-toolbar button:hover { border-color: #dbe2f1; background: #fff; }
.visual-toolbar button:disabled { color: #a1a9b8; cursor: not-allowed; }
.toolbar-divider { width: 1px; height: 20px; margin: 0 3px; background: #e0e5ee; }
.visual-page-frame { display: block; width: 100%; height: 570px; border: 0; background: #fff; }
.visual-page-frame[aria-readonly="true"] { pointer-events: none; }
.editor-canvas-foot { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-top: 1px solid #e9edf4; background: #fbfcfe; color: #818ba0; font-size: 9px; line-height: 1.45; }
.source-editor-shell[hidden], .visual-editor-shell[hidden] { display: none !important; }
.source-editor-heading { display: flex; justify-content: space-between; padding: 11px 12px; border-bottom: 1px solid #e7ebf2; color: #56617b; font-size: 10px; }
.source-editor-heading > span { color: #8993a8; }
.source-editor-shell textarea { display: block; width: 100%; min-height: 460px; padding: 13px; border: 0; outline: 0; resize: vertical; background: #fbfcfe; color: #34415f; font: 11px/1.65 Consolas, "Cascadia Code", monospace; tab-size: 2; }
.source-editor-shell textarea:focus { box-shadow: inset 0 0 0 2px #7890e6; }
.source-editor-shell small { display: block; padding: 8px 12px; border-top: 1px solid #e7ebf2; color: #77829b; font-size: 9px; line-height: 1.45; }
.seo-panel { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e7ebf2; }
.seo-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.seo-icon { display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid #e2e7f0; border-radius: 7px; color: var(--blue); font-size: 17px; }
.seo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.seo-grid .field-wide { grid-column: 1 / -1; }
.noindex-control { display: flex; align-items: flex-start; gap: 9px; margin-top: 15px; padding: 12px; border: 1px solid #e5e9f1; border-radius: 7px; background: #fafbfe; cursor: pointer; }
.noindex-control input { width: 15px; height: 15px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--blue); }
.noindex-control span { display: grid; gap: 4px; }
.noindex-control strong { color: #3d4967; font-size: 10px; font-weight: 690; }
.noindex-control small { color: #77829a; font-size: 9px; line-height: 1.45; }
.search-preview { display: grid; gap: 4px; margin-top: 15px; padding: 13px 14px; border: 1px solid #e6eaf1; border-radius: 7px; background: #fff; font-family: Arial, sans-serif; }
.search-preview-label { margin: 0 0 3px; color: #71809d; font-family: "Segoe UI", Arial, sans-serif; font-size: 9px; font-weight: 700; }
.search-preview-url { overflow: hidden; color: #3b455a; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.search-preview strong { overflow: hidden; color: #173edb; font-size: 16px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.search-preview > span:last-child { display: -webkit-box; overflow: hidden; color: #555d6d; font-size: 11px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.structured-data-field textarea { min-height: 150px; background: #fafbfe; color: #35415e; font: 11px/1.55 Consolas, "Cascadia Code", monospace; tab-size: 2; }
.structured-data-field small { display: block; margin-top: 5px; color: #78849a; font-size: 9px; line-height: 1.5; }
.seo-audit-panel { overflow: hidden; border: 1px solid #e0e5ef; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px #1b2a5606; }
.seo-audit-panel .panel-heading { align-items: center; padding: 13px 14px; border-bottom: 1px solid #edf0f5; }
.seo-audit-panel .panel-heading h3 { margin: 0; color: var(--navy); font-size: 12px; font-weight: 740; }
.seo-audit-panel .panel-heading p { margin: 4px 0 0; color: #7b869b; font-size: 9px; }
.seo-audit-count { flex: 0 0 auto; padding: 5px 7px; border-radius: 5px; background: #edf7f2; color: #276247; font-size: 9px; font-weight: 700; }
.seo-check-list { display: grid; gap: 0; margin: 0; padding: 0 13px; list-style: none; }
.seo-check { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; padding: 10px 0; border-bottom: 1px solid #f0f2f6; }
.seo-check:last-child { border-bottom: 0; }
.seo-check-icon { display: grid; width: 17px; height: 17px; place-items: center; border: 1px solid #d9e9e0; border-radius: 50%; background: #f2f8f4; color: #2e7655; font-size: 10px; font-weight: 800; }
.seo-check.is-review .seo-check-icon { border-color: #f0e1be; background: #fff9eb; color: #9a6a0d; }
.seo-check.is-optional .seo-check-icon { border-color: #e2e6ee; background: #f7f8fa; color: #7d8799; }
.seo-check > span:last-child { display: grid; gap: 3px; }
.seo-check strong { color: #3b4764; font-size: 10px; font-weight: 720; }
.seo-check small { color: #77839a; font-size: 9px; line-height: 1.5; }
.form-footer { justify-content: flex-start; padding-top: 16px; }
.form-footer > span { color: #69758f; font-size: 10px; }
.preview-panel .panel-heading { align-items: center; padding: 13px 14px; }
.page-preview-wrap { display: flex; justify-content: center; overflow: auto; padding: 12px; background: #f1f3f8; }
.page-preview { width: 100%; height: 480px; flex: 0 0 auto; border: 1px solid #e0e4ec; border-radius: 4px; background: #fff; transition: width .18s ease; }
.page-preview-wrap.is-mobile .page-preview { width: 390px; max-width: 100%; }
.preview-footnote { margin: 0; padding: 10px 13px 12px; color: #7b869c; font-size: 9px; line-height: 1.5; }
.revision-list { max-height: 290px; }
.revision-item { padding: 12px 13px; }
.history-callout { padding: 11px 12px; border-radius: 7px; }

@media (max-width: 1260px) {
  .manager-grid { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .preview-column { grid-template-columns: minmax(0, 1fr) minmax(250px, .85fr); }
  .page-preview { height: 360px; }
  .page-rail { top: 12px; max-height: calc(100vh - 24px); }
}
@media (max-width: 800px) {
  .manager-grid { grid-template-columns: 1fr; }
  .page-rail { position: static; max-height: none; }
  .editor-grid { grid-template-columns: 1fr; }
  .preview-column { grid-template-columns: 1fr; }
  .page-preview { height: 390px; }
}
@media (max-width: 600px) {
  .delivery-banner { align-items: flex-start; flex-wrap: wrap; }
  .delivery-banner > div { min-width: calc(100% - 44px); }
  .delivery-banner code { max-width: 100%; margin-left: 42px; }
  .page-fields, .seo-grid { grid-template-columns: 1fr; }
  .seo-grid .field-wide { grid-column: auto; }
  .editor-panel { padding: 14px; }
  .editor-section-heading { align-items: flex-start; flex-direction: column; }
  .visual-toolbar { flex-wrap: wrap; }
  .visual-page-frame { height: 450px; }
  .editor-canvas-foot { flex-direction: column; gap: 4px; }
  .preview-devices button { min-height: 25px; padding: 0 6px; font-size: 9px; }
}
.assets-page { max-width: 1320px; }
.asset-upload-panel { display: grid; gap: 16px; margin-top: 22px; padding: 19px 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 3px 14px #1b2a5608; }
.asset-upload-copy { display: flex; align-items: center; gap: 12px; }
.asset-upload-icon { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border: 1px solid #dfe6f6; border-radius: 9px; background: #f5f7fd; color: var(--blue); font-size: 19px; }
.asset-upload-copy h2, .asset-library-heading h2 { margin: 0; color: var(--navy); font-size: 15px; font-weight: 720; letter-spacing: -.025em; }
.asset-upload-copy p, .asset-library-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.asset-upload-fields { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(180px, .9fr) auto; align-items: end; gap: 13px; }
.asset-upload-fields input[type="file"] { min-width: 0; min-height: 38px; padding: 7px 8px; border: 1px solid #d7deeb; border-radius: 6px; background: #fff; color: #52607d; font-size: 10px; }
.asset-upload-fields input[type="file"]::file-selector-button { margin-right: 8px; padding: 5px 8px; border: 0; border-radius: 4px; background: #eef2fb; color: #35436a; font: inherit; font-weight: 700; cursor: pointer; }
.asset-upload-fields .button { min-height: 38px; }
.asset-upload-help, .asset-public-note { margin: 0; color: #75819a; font-size: 10px; line-height: 1.55; }
.asset-public-note { padding-top: 11px; border-top: 1px solid #edf0f6; color: #5f6b84; }
.asset-library { margin-top: 27px; }
.asset-library-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 13px; }
.asset-count { display: grid; min-width: 27px; height: 27px; place-items: center; padding: 0 8px; border-radius: 14px; background: var(--blue-soft); color: #354db3; font-size: 10px; font-weight: 740; }
.asset-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 20px; border: 1px dashed var(--line-strong); border-radius: 9px; background: #fff; text-align: center; }
.asset-empty strong { color: var(--navy); font-size: 12px; }
.asset-empty span { max-width: 400px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 15px; }
.asset-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.asset-preview { display: grid; aspect-ratio: 16 / 9; place-items: center; overflow: hidden; border-bottom: 1px solid #edf0f6; background: #f4f6fb; }
.asset-preview img, .asset-preview video { display: block; width: 100%; height: 100%; object-fit: contain; }
.asset-code-preview { display: grid; width: 74px; height: 74px; place-items: center; border: 1px solid #dce3f3; border-radius: 18px; background: #fff; color: var(--blue); font-size: 20px; font-weight: 760; letter-spacing: -.04em; box-shadow: 0 6px 20px #1721520c; }
.asset-card-content { padding: 13px; }
.asset-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; }
.asset-card-title > div { min-width: 0; }
.asset-card-title h3 { overflow: hidden; margin: 0; color: var(--navy); font-size: 12px; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.asset-card-title p { overflow: hidden; margin: 4px 0 0; color: #7a859d; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.asset-type { flex: 0 0 auto; max-width: 112px; overflow: hidden; padding: 4px 6px; border: 1px solid #e6eaf2; border-radius: 5px; background: #fafbfe; color: #64718c; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.asset-meta { display: flex; justify-content: space-between; gap: 10px; margin: 11px 0; color: #7b869e; font-size: 9px; }
.asset-url-label { display: block; margin: 0 0 5px; color: #53617e; font-size: 9px; font-weight: 700; }
.asset-url-input, .asset-markup { width: 100%; min-width: 0; border: 1px solid #e0e5ef; border-radius: 5px; background: #fbfcff; color: #596681; font-family: Consolas, "Cascadia Code", monospace; font-size: 9px; }
.asset-url-input { height: 31px; padding: 0 8px; }
.asset-markup { min-height: 43px; margin-top: 7px; padding: 6px 8px; resize: vertical; line-height: 1.4; }
.asset-actions { display: flex; gap: 7px; margin-top: 9px; }
.asset-actions .button { min-height: 31px; padding: 0 10px; font-size: 10px; }
.asset-copy-status { min-height: 17px; margin: 10px 0 0; color: #53617e; font-size: 10px; }
@media (max-width: 720px) {
  .asset-upload-fields { grid-template-columns: 1fr; }
  .asset-upload-fields .button { justify-self: start; }
  .asset-card-title { align-items: flex-start; }
}
