:root {
  --a-bg: #f4f6fa;
  --a-card: #ffffff;
  --a-text: #161923;
  --a-muted: #6b7280;
  --a-line: #e4e8f0;
  --a-accent: #5865f2;
  --a-accent-2: #3979f6;
  --a-dark: #10131b;
  --a-dark-2: #151a25;
  --a-dark-3: #1b2130;
  --a-panel: #121722;
  --a-panel-line: #2a3141;
  --a-success: #27c281;
  --a-danger: #ef5f67;
  --a-radius: 14px;
  --a-shadow: 0 18px 55px rgba(18, 25, 38, .12);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--a-text);
  background: var(--a-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.brand-mark,
.studio-symbol {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 13px;
  background: linear-gradient(135deg, #645cff, #2f89ff);
  color: #fff;
  font-weight: 850;
  letter-spacing: -.04em;
  box-shadow: 0 10px 28px rgba(81, 89, 245, .3);
}
.studio-symbol.tiny { width: 27px; height: 27px; border-radius: 8px; font-size: 10px; }

/* Login and installation */
.login-page {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(103, 91, 255, .42), transparent 32%), linear-gradient(135deg, #0c1020, #171b33);
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 520px;
  max-width: 1280px;
  margin: auto;
  align-items: center;
  padding: 50px;
  gap: 70px;
}
.login-story { color: #fff; }
.login-story h1 { font-size: clamp(54px, 7vw, 90px); line-height: .96; letter-spacing: -.06em; max-width: 720px; margin: 28px 0; }
.login-story p { font-size: 20px; color: #c9d0e2; max-width: 580px; }
.login-points { display: flex; gap: 12px; flex-wrap: wrap; }
.login-points span { font-size: 12px; border: 1px solid rgba(255,255,255,.2); padding: 9px 12px; border-radius: 999px; color: #dbe0ed; }
.login-card,
.install-card { background: #fff; border-radius: 28px; padding: 42px; box-shadow: 0 40px 120px rgba(0,0,0,.3); }
.login-card h2,
.install-card h1 { font-size: 36px; letter-spacing: -.04em; margin: 10px 0; }
.login-card p,
.install-card p { color: var(--a-muted); }
label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 700; margin: 16px 0; }
input, textarea, select { width: 100%; border: 1px solid var(--a-line); border-radius: 12px; padding: 13px 14px; background: #fff; color: var(--a-text); outline: none; }
input:focus, textarea:focus, select:focus { border-color: var(--a-accent); box-shadow: 0 0 0 4px rgba(91,92,240,.1); }
textarea { min-height: 110px; resize: vertical; }
.checkbox { flex-direction: row; align-items: center; font-weight: 500; }
.checkbox input { width: auto; }
.admin-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--a-line); border-radius: 12px; background: #fff; padding: 11px 16px; font-weight: 750; font-size: 13px; cursor: pointer; }
.admin-button.primary { background: var(--a-dark); color: #fff; border-color: var(--a-dark); }
.login-card .admin-button { width: 100%; padding: 14px; }
.login-back { display: block; text-align: center; margin-top: 20px; font-size: 13px; color: var(--a-muted); }
.admin-kicker { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 850; color: var(--a-accent); }
.notice { padding: 12px 14px; border-radius: 10px; margin: 15px 0; font-size: 13px; }
.notice.error { background: #fff0f0; color: #a82d2d; }
.notice.success { background: #eafaf1; color: #18794e; }
.install-page { min-height: 100vh; background: #10131f; padding: 50px; }
.install-shell { max-width: 850px; margin: auto; }
.install-brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 25px; }
.install-brand > div { display: flex; flex-direction: column; }
.install-brand small { color: #9fa7bd; }
.install-card { box-shadow: none; }

/* Backend shell */
.admin-body { display: grid; grid-template-columns: 258px 1fr; min-height: 100vh; }
.admin-sidebar { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #11151e, #0e1118); color: #fff; padding: 22px 16px; display: flex; flex-direction: column; border-right: 1px solid #202635; }
.admin-logo { display: flex; gap: 11px; align-items: center; padding: 4px 7px 24px; }
.admin-logo span:last-child { display: flex; flex-direction: column; }
.admin-logo small { color: #80879a; }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 4px; }
.admin-sidebar nav a { padding: 11px 12px; border-radius: 10px; color: #c6cada; font-size: 14px; display: flex; align-items: center; gap: 10px; }
.admin-sidebar nav a:hover,
.admin-sidebar nav a.active { background: #20283a; color: #fff; }
.admin-sidebar nav a small { margin-left: auto; padding: 3px 7px; border-radius: 999px; background: #2a3040; color: #aeb7cb; font-size: 9px; }
.sidebar-user { margin-top: auto; border-top: 1px solid #2c303d; padding: 18px 8px 0; display: flex; justify-content: space-between; font-size: 12px; color: #aeb4c3; }
.admin-main { padding: 42px; max-width: 1400px; width: 100%; margin: auto; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 30px; }
.admin-top h1 { font-size: 42px; letter-spacing: -.045em; margin: 8px 0; }
.admin-top p { color: var(--a-muted); }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 28px; }
.choice-card { background: #fff; border: 1px solid var(--a-line); border-radius: 24px; padding: 34px; transition: .2s transform, .2s box-shadow; }
.choice-card:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(30,34,50,.08); }
.choice-card.featured { background: linear-gradient(135deg, #5b5cf0, #3484e7); color: #fff; border: 0; }
.choice-card > span { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 850; }
.choice-card h2 { font-size: 30px; letter-spacing: -.04em; }
.choice-card p { color: var(--a-muted); }
.choice-card.featured p { color: #e7e9ff; }
.admin-panel { background: #fff; border: 1px solid var(--a-line); border-radius: 22px; padding: 26px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; }
.content-table { display: flex; flex-direction: column; }
.content-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 17px 4px; border-top: 1px solid var(--a-line); }
.content-row:first-child { border-top: 0; }
.content-row > div:first-child { display: flex; flex-direction: column; }
.content-row small { color: var(--a-muted); }
.content-row > div:last-child { display: flex; gap: 14px; align-items: center; font-size: 13px; color: var(--a-accent); }
.content-row form { margin: 0; }
.link-button { border: 0; background: none; color: var(--a-accent); padding: 0; cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.span-2 { grid-column: 1/-1; }
.form-actions { display: flex; gap: 10px; margin-top: 12px; }

/* 1ProPress Studio */
.builder-body { height: 100vh; overflow: hidden; background: #0e121a; }
.studio-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 340px;
  grid-template-rows: 62px minmax(0, 1fr);
  height: 100vh;
  color: #edf1f8;
  background: #0f141d;
}
.studio-topbar {
  grid-column: 2 / 4;
  grid-row: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
  padding: 0 16px 0 20px;
  border-bottom: 1px solid #252c3a;
  background: rgba(15, 19, 28, .98);
  box-shadow: 0 8px 28px rgba(0,0,0,.15);
  z-index: 30;
}
.studio-page-meta { display: flex; align-items: center; gap: 12px; min-width: 300px; }
.studio-page-meta > div { min-width: 0; }
.studio-overline { display: block; color: #737e94; text-transform: uppercase; letter-spacing: .12em; font-size: 8px; font-weight: 850; margin-bottom: 1px; }
.studio-title-row { display: flex; align-items: center; gap: 5px; }
.studio-title-input { width: 170px; border: 0; padding: 0; background: transparent; color: #f5f7fb; font-size: 15px; font-weight: 700; border-radius: 0; box-shadow: none !important; }
.status-select { width: 116px; padding: 8px 28px 8px 10px; color: #47d495; background: #18231f; border: 1px solid #24332e; border-radius: 10px; font-size: 12px; font-weight: 750; }
.studio-history-controls { display: flex; gap: 5px; }
.icon-button { width: 34px; height: 34px; border: 1px solid #2c3444; border-radius: 9px; color: #c8d0df; background: #171d28; display: grid; place-items: center; }
.icon-button:hover:not(:disabled) { border-color: #5365ef; color: #fff; }
.icon-button:disabled { opacity: .35; cursor: default; }
.icon-button.subtle { width: 25px; height: 25px; padding: 0; background: transparent; border: 0; color: #727c91; }
.device-switcher { margin-left: auto; display: inline-flex; align-items: center; padding: 3px; border: 1px solid #293142; border-radius: 10px; background: #131925; }
.device-switcher button { width: 38px; height: 31px; border: 0; border-radius: 7px; background: transparent; color: #828da2; }
.device-switcher button.active { color: #8ea0ff; background: #202841; box-shadow: inset 0 0 0 1px #5366ed; }
.studio-actions { display: flex; align-items: center; gap: 8px; }
.save-status { color: #8f99ac; font-size: 10px; min-width: 82px; text-align: right; }
.top-action { display: inline-flex; align-items: center; gap: 6px; color: #d2d8e5; border: 1px solid #293141; background: #171d28; border-radius: 9px; padding: 9px 11px; font-size: 11px; }
.top-action:hover { color: #fff; border-color: #3a465b; }
.save-button { min-width: 94px; height: 38px; display: flex; align-items: center; justify-content: space-between; border: 0; border-radius: 9px; background: linear-gradient(135deg, #5b64f4, #4f78f7); color: #fff; font-size: 12px; font-weight: 800; padding: 0 12px 0 17px; box-shadow: 0 8px 24px rgba(76, 91, 237, .28); }
.save-button b { padding-left: 10px; border-left: 1px solid rgba(255,255,255,.2); }
.save-button.saved { background: linear-gradient(135deg, #24b77a, #25c78a); }
.save-button:disabled { opacity: .65; cursor: wait; }
.studio-mobile-brand { display: none; }

.studio-sidebar {
  grid-column: 1;
  grid-row: 1 / 3;
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: 16px 11px 12px;
  background: linear-gradient(180deg, #111722, #0c1017);
  border-right: 1px solid #222a38;
  overflow: hidden;
}
.studio-brand { display: flex; align-items: center; gap: 9px; padding: 0 7px 18px; font-size: 17px; }
.studio-brand .studio-symbol { width: 30px; height: 30px; border-radius: 9px; font-size: 10px; }
.studio-nav { display: flex; flex-direction: column; gap: 2px; }
.studio-nav a,
.sidebar-footer a { display: grid; grid-template-columns: 25px 1fr auto; align-items: center; min-height: 37px; gap: 6px; padding: 7px 9px; border-radius: 8px; color: #aeb7c8; font-size: 12px; }
.studio-nav a:hover,
.sidebar-footer a:hover { color: #fff; background: #171e2b; }
.studio-nav a.active { color: #fff; background: linear-gradient(90deg, #252e50, #1c2436); box-shadow: inset 2px 0 #6574ff; }
.studio-nav .nav-icon { color: #8792aa; font-size: 14px; text-align: center; }
.studio-nav a.active .nav-icon { color: #8190ff; }
.studio-nav small,
.sidebar-footer small { padding: 3px 6px; border-radius: 999px; background: #252d3b; color: #8f99ac; font-size: 8px; white-space: nowrap; }
.disabled-menu { cursor: default; }
.sidebar-divider { height: 1px; margin: 12px 8px; background: #222b39; }
.block-library-panel { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.sidebar-section-title { display: flex; align-items: center; justify-content: space-between; padding: 0 9px 8px; color: #e9edf5; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; font-weight: 850; }
.sidebar-section-title button { border: 0; background: transparent; color: #747f94; }
.block-search { margin: 0 6px 8px; width: calc(100% - 12px); border: 1px solid #293141; background: #151b26; color: #e9edf5; border-radius: 8px; padding: 9px 10px; font-size: 10px; box-shadow: none; }
.block-search::placeholder { color: #69758a; }
.block-library { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; overflow: auto; padding: 0 6px 10px; scrollbar-width: thin; }
.block-library button { min-height: 66px; display: grid; grid-template-columns: 22px 1fr; grid-template-rows: auto auto; align-items: center; gap: 1px 5px; padding: 9px; text-align: left; border: 1px solid #252e3d; background: #141a24; color: #d8deea; border-radius: 9px; }
.block-library button:hover { border-color: #5364e9; background: #192137; transform: translateY(-1px); }
.block-library button > span { grid-row: 1 / 3; color: #8191ff; font-size: 15px; }
.block-library button b { font-size: 9px; font-weight: 750; }
.block-library button small { color: #68748a; font-size: 7px; text-transform: uppercase; letter-spacing: .06em; }
.block-library-panel.collapsed .block-search,
.block-library-panel.collapsed .block-library { display: none; }
.empty-state { grid-column: 1/-1; color: #738096; font-size: 10px; text-align: center; }
.sidebar-footer { margin-top: auto; padding-top: 8px; border-top: 1px solid #222b39; }

.studio-workspace { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 34px; background: #dfe4ec; color: #151925; }
.canvas-stage { min-height: 0; overflow: auto; padding: 28px; background: radial-gradient(circle at 50% 0, rgba(255,255,255,.7), transparent 50%), #dfe4ec; scrollbar-color: #aab3c2 transparent; }
.builder-device { width: min(100%, 1220px); min-height: calc(100vh - 154px); margin: 0 auto; background: #fff; border: 1px solid #cfd5df; border-radius: 8px; box-shadow: 0 20px 60px rgba(25, 35, 50, .18); overflow: visible; transition: width .24s ease; }
.builder-device.tablet { width: 768px; }
.builder-device.mobile { width: 390px; }
.preview-browser-bar { height: 28px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: #f3f5f8; border-bottom: 1px solid #dfe4eb; border-radius: 8px 8px 0 0; }
.preview-browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: #c5cad3; }
.preview-browser-bar span { margin-left: 7px; max-width: 70%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #8d95a3; font-size: 8px; }
.preview-site-header { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(20px, 4vw, 48px); border-bottom: 1px solid #edf0f4; background: rgba(255,255,255,.96); }
.preview-brand { display: flex; align-items: center; gap: 7px; color: #151a25; }
.preview-site-header nav { display: flex; align-items: center; gap: 24px; color: #282e39; font-size: 10px; }
.preview-site-header nav span.active { border-bottom: 1px solid #171b24; padding-bottom: 6px; }
.preview-site-header nav b { color: #fff; background: #3977ed; border-radius: 7px; padding: 9px 12px; font-weight: 700; }
.builder-device.tablet .preview-site-header nav span:nth-child(-n+3),
.builder-device.mobile .preview-site-header nav { display: none; }
.builder-canvas { min-height: 660px; background: #fff; }
.builder-canvas .pp-block { position: relative; cursor: pointer; transition: outline-color .15s ease; }
.builder-canvas .pp-block:hover { outline: 1px solid rgba(82, 101, 237, .65); outline-offset: -1px; }
.builder-canvas .pp-block.selected { outline: 2px solid #5868f4; outline-offset: -2px; z-index: 3; }
.canvas-block-toolbar { position: absolute; left: 0; top: -28px; z-index: 20; height: 28px; display: inline-flex; align-items: center; background: #5868f4; color: #fff; border-radius: 6px 6px 0 0; box-shadow: 0 8px 20px rgba(50,63,180,.25); overflow: hidden; }
.canvas-block-toolbar span { padding: 0 9px; font-size: 9px; font-weight: 800; }
.canvas-block-toolbar i { width: 1px; align-self: stretch; background: rgba(255,255,255,.2); }
.canvas-block-toolbar button { width: 27px; height: 28px; border: 0; border-left: 1px solid rgba(255,255,255,.14); background: transparent; color: #fff; font-size: 10px; }
.canvas-block-toolbar button:hover { background: rgba(0,0,0,.16); }
.studio-breadcrumb { display: flex; align-items: center; gap: 10px; padding: 0 18px; background: #121722; border-top: 1px solid #242c3a; color: #7f899d; font-size: 10px; }
.studio-breadcrumb b { font-weight: 400; color: #4f596d; }
.studio-breadcrumb span:last-child { color: #8392ff; }

.studio-inspector { grid-column: 3; grid-row: 2; min-width: 0; min-height: 0; display: grid; grid-template-rows: 47px auto minmax(0, 1fr); color: #dfe5ef; background: #121722; border-left: 1px solid #282f3e; }
.inspector-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid #293141; }
.inspector-tabs button { position: relative; border: 0; background: transparent; color: #aab3c3; font-size: 11px; font-weight: 700; }
.inspector-tabs button.active { color: #8191ff; }
.inspector-tabs button.active::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; background: #6977ff; border-radius: 2px; }
.inspector-selection { min-height: 62px; padding: 11px 13px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-bottom: 1px solid #252d3c; background: #151b26; }
.inspector-selection > div:first-child { display: flex; align-items: center; min-width: 0; gap: 9px; }
.inspector-selection > div:first-child > div { min-width: 0; display: flex; flex-direction: column; }
.inspector-selection strong { font-size: 11px; color: #f1f4f8; }
.inspector-selection small { color: #737e92; font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 115px; }
.selection-icon { width: 30px; height: 30px; border: 1px solid #34405a; background: #202942; color: #8494ff; border-radius: 8px; display: grid; place-items: center; }
.selection-actions { display: flex; gap: 3px; }
.selection-actions button { width: 27px; height: 27px; border: 1px solid #2e3748; border-radius: 7px; background: #191f2b; color: #aab4c6; font-size: 9px; }
.selection-actions button:hover { color: #fff; border-color: #5262e5; }
.inspector-scroll { min-height: 0; overflow: auto; scrollbar-width: thin; scrollbar-color: #3b4558 transparent; }
.inspector-section { border-bottom: 1px solid #252d3c; }
.inspector-section summary { height: 42px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; list-style: none; cursor: pointer; color: #dce2ec; font-size: 11px; font-weight: 750; }
.inspector-section summary::-webkit-details-marker { display: none; }
.inspector-section summary span { color: #6e798d; transition: transform .15s ease; }
.inspector-section[open] summary span { transform: rotate(180deg); }
.inspector-section-body { padding: 3px 14px 15px; }
.control { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; color: #cfd6e1; font-size: 9px; font-weight: 750; text-transform: none; }
.control > span { color: #aab4c4; }
.studio-inspector input,
.studio-inspector textarea,
.studio-inspector select { width: 100%; padding: 10px; border: 1px solid #2d3647; border-radius: 8px; color: #e8edf5; background: #171d29; font-size: 10px; box-shadow: none; }
.studio-inspector input:focus,
.studio-inspector textarea:focus,
.studio-inspector select:focus { border-color: #5d6cf0; box-shadow: 0 0 0 2px rgba(88,104,244,.15); }
.studio-inspector textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.source-switch { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; color: #9da8b9; font-size: 9px; }
.source-switch > div { display: inline-flex; padding: 2px; border: 1px solid #2b3445; border-radius: 7px; background: #151b26; }
.source-switch button { border: 0; border-radius: 5px; padding: 5px 9px; background: transparent; color: #7f899c; font-size: 9px; }
.source-switch button.active { color: #a8b2ff; background: #242d48; }
.rte-toolbar { display: grid; grid-template-columns: minmax(85px, 1fr) repeat(9, 27px); align-items: center; border: 1px solid #30394a; border-bottom: 0; border-radius: 8px 8px 0 0; background: #171d29; overflow: hidden; }
.rte-toolbar select { height: 31px; border: 0; border-radius: 0; border-right: 1px solid #30394a; padding: 0 7px; font-size: 8px; }
.rte-toolbar button { width: 27px; height: 31px; border: 0; border-right: 1px solid #293242; background: transparent; color: #b9c1d0; font-size: 9px; }
.rte-toolbar button:hover { background: #222a39; color: #fff; }
.rte-toolbar input[type="color"] { width: 27px; height: 31px; border: 0; border-radius: 0; padding: 5px; background: transparent; }
.rte-editor { min-height: 185px; padding: 12px; border: 1px solid #30394a; color: #dfe5ed; background: #151b26; font-size: 10px; line-height: 1.65; outline: none; overflow: auto; }
.rte-editor:focus { border-color: #5d6cf0; }
.rte-editor h2 { font-size: 18px; margin: 5px 0 10px; }
.rte-editor h3 { font-size: 14px; margin: 5px 0 8px; }
.rte-footer { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px; border: 1px solid #30394a; border-top: 0; border-radius: 0 0 8px 8px; color: #6f7a8d; background: #121722; font-size: 7px; text-transform: uppercase; letter-spacing: .06em; }
.code-editor { min-height: 245px !important; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important; font-size: 9px !important; line-height: 1.55 !important; color: #cbd5e1 !important; background: #0d1118 !important; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid #252d3b; }
.setting-row:last-child { border-bottom: 0; }
.setting-row > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setting-row strong { color: #cfd6e2; font-size: 9px; }
.setting-row small { color: #747f91; font-size: 8px; line-height: 1.35; }
.switch { margin: 0; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch span { position: relative; display: block; width: 31px; height: 17px; border-radius: 999px; background: #343d4c; transition: .15s ease; }
.switch span::after { content: ""; position: absolute; width: 13px; height: 13px; top: 2px; left: 2px; border-radius: 50%; background: #a7afbd; transition: .15s ease; }
.switch input:checked + span { background: #5c6bf0; }
.switch input:checked + span::after { left: 16px; background: #fff; }
.range-control { display: block; margin: 15px 0; }
.range-control > span { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.range-control b { color: #aeb7c7; font-size: 9px; }
.range-control output { color: #7f8cff; font-size: 8px; }
.range-control input[type="range"] { appearance: none; height: 3px; padding: 0; border: 0; border-radius: 99px; background: #343e50; }
.range-control input[type="range"]::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #6977ff; box-shadow: 0 0 0 3px rgba(105,119,255,.15); }
.color-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.color-control { margin: 8px 0; color: #9fa9b9; font-size: 8px; }
.color-control > div { display: grid; grid-template-columns: 30px 1fr; margin-top: 6px; border: 1px solid #2d3647; border-radius: 8px; overflow: hidden; }
.color-control input[type="color"] { width: 30px; height: 31px; border: 0; border-radius: 0; padding: 4px; }
.color-control input[type="text"],
.color-control input:not([type]) { min-width: 0; border: 0; border-left: 1px solid #2d3647; border-radius: 0; padding: 6px; font-size: 7px; }
.repeater { display: flex; flex-direction: column; gap: 9px; }
.repeater-item { padding: 10px; border: 1px solid #2a3343; border-radius: 9px; background: #151b26; }
.repeater-head { display: flex; align-items: center; justify-content: space-between; }
.repeater-head strong { font-size: 9px; }
.repeater-head button { width: 24px; height: 24px; border: 0; border-radius: 6px; color: #b2bbca; background: #222a37; }
.repeater-item label { margin: 8px 0 0; font-size: 8px; color: #8f9bad; }
.repeater-item input,
.repeater-item textarea { margin-top: 4px; }
.secondary-wide { width: 100%; padding: 9px; border: 1px dashed #46516a; border-radius: 8px; background: transparent; color: #9ca8bc; font-size: 9px; }
.secondary-wide:hover { border-color: #6473f3; color: #dfe5ef; }
.panel-note { margin: 8px 0 0; color: #7b8799; font-size: 8px; line-height: 1.55; }
.developer-card { padding: 13px; border: 1px solid #2b3547; border-radius: 9px; background: linear-gradient(135deg, #171e2c, #131923); }
.developer-card strong { font-size: 10px; }
.developer-card p { color: #7f8b9e; font-size: 8px; line-height: 1.5; }
.developer-card span { display: inline-flex; padding: 4px 7px; border-radius: 999px; color: #9ca8ff; background: #242c49; font-size: 7px; text-transform: uppercase; letter-spacing: .08em; }
.empty-inspector { padding: 44px 24px; text-align: center; color: #778397; }
.empty-inspector > span { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: #8391ff; background: #202841; font-size: 22px; }
.empty-inspector h3 { color: #e1e6ef; font-size: 14px; margin: 15px 0 6px; }
.empty-inspector p { font-size: 9px; line-height: 1.55; }

@media (max-width: 1250px) {
  .studio-shell { grid-template-columns: 190px minmax(0,1fr) 310px; }
  .studio-actions .top-action span { display: none; }
  .studio-page-meta { min-width: 250px; }
  .studio-title-input { width: 130px; }
  .rte-toolbar { grid-template-columns: minmax(75px,1fr) repeat(6,27px); }
  .rte-toolbar button:nth-of-type(n+7) { display: none; }
}

@media (max-width: 1000px) {
  .login-shell { grid-template-columns: 1fr; max-width: 620px; }
  .login-story { display: none; }
  .admin-body { grid-template-columns: 1fr; }
  .admin-sidebar { position: static; height: auto; }
  .admin-sidebar nav { flex-direction: row; flex-wrap: wrap; }
  .admin-main { padding: 24px; }
  .choice-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .studio-shell { grid-template-columns: 70px minmax(0,1fr) 300px; }
  .studio-brand strong,
  .studio-nav a > span:nth-child(2),
  .studio-nav small,
  .sidebar-footer a > span:nth-child(2),
  .sidebar-footer small,
  .block-library-panel { display: none; }
  .studio-nav a,
  .sidebar-footer a { grid-template-columns: 1fr; justify-items: center; }
  .studio-page-meta { min-width: 210px; }
  .status-select { width: 95px; }
  .studio-history-controls { display: none; }
  .save-status { display: none; }
}

@media (max-width: 760px) {
  .login-page, .install-page { padding: 18px; }
  .login-shell { padding: 0; }
  .login-card, .install-card { padding: 26px; }
  .admin-top, .content-row { flex-direction: column; align-items: flex-start; }
  .studio-shell { grid-template-columns: 1fr; grid-template-rows: 58px minmax(0,1fr); }
  .studio-sidebar { display: none; }
  .studio-topbar { grid-column: 1; padding: 0 10px; gap: 8px; }
  .studio-mobile-brand { display: inline-flex; }
  .studio-mobile-brand .studio-symbol { width: 28px; height: 28px; border-radius: 8px; font-size: 9px; }
  .studio-page-meta { min-width: 0; flex: 1; }
  .studio-page-meta > div { display: none; }
  .device-switcher { margin-left: 0; }
  .top-action { display: none; }
  .studio-workspace { grid-column: 1; }
  .studio-inspector { position: fixed; top: 58px; right: 0; bottom: 0; width: min(330px, 92vw); z-index: 40; box-shadow: -18px 0 40px rgba(0,0,0,.25); transform: translateX(100%); }
  .canvas-stage { padding: 12px; }
  .preview-site-header { padding: 0 18px; }
}
