@charset "UTF-8";

:root {
  --navy: #072f42;
  --navy-deep: #042433;
  --blue: #08617f;
  --teal: #20a485;
  --ink: #183743;
  --muted: #6d818a;
  --line: #dde6e9;
  --surface: #f3f6f7;
  --white: #fff;
  --sidebar: 248px;
  --font: "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; background: var(--surface); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 100; width: var(--sidebar); display: flex; flex-direction: column; background: var(--navy-deep); color: var(--white); }
.cms-brand { height: 76px; display: flex; align-items: center; gap: 11px; padding: 0 23px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cms-brand > svg { width: 36px; height: 36px; color: #fff; }
.cms-brand > img { width: 38px; height: 38px; object-fit: contain; filter: brightness(0) invert(1); }
.cms-brand > svg circle, .cms-brand > svg path { fill: none; stroke: currentColor; stroke-width: 2.5; }
.cms-brand > svg .brand-accent { stroke: #60cfb3; }
.cms-brand > div { display: flex; flex-direction: column; line-height: 1; }
.cms-brand strong { font-size: 18px; letter-spacing: .11em; }
.cms-brand span { margin-top: 7px; color: rgba(255,255,255,.42); font-size: 7px; letter-spacing: .16em; }
.workspace-switcher { margin: 20px 15px 18px; padding: 12px; display: grid; grid-template-columns: 34px 1fr 14px; align-items: center; gap: 10px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.08); }
.workspace-icon { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; background: #0e4c62; color: #a9e7d5; font-size: 10px; font-weight: 650; }
.workspace-switcher div { display: flex; flex-direction: column; }
.workspace-switcher strong { font-size: 11px; font-weight: 550; }
.workspace-switcher small { margin-top: 3px; color: rgba(255,255,255,.38); font-size: 8px; }
.workspace-switcher svg { width: 13px; height: 13px; color: rgba(255,255,255,.35); }
.cms-nav { flex: 1; padding: 0 12px 20px; overflow-y: auto; }
.nav-group-label { display: block; padding: 14px 12px 8px; color: rgba(255,255,255,.28); font-size: 8px; font-weight: 600; letter-spacing: .14em; }
.cms-nav button { position: relative; width: 100%; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; color: rgba(255,255,255,.56); font-size: 11px; text-align: left; cursor: pointer; transition: .2s; }
.cms-nav button svg { width: 17px; height: 17px; }
.cms-nav button:hover { color: #fff; background: rgba(255,255,255,.04); }
.cms-nav button.active { color: #b3efdd; background: rgba(53,183,150,.13); }
.cms-nav button.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 2px; background: #51c8aa; }
.sidebar-bottom { padding: 15px; }
.demo-note { display: flex; align-items: flex-start; gap: 9px; padding: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); }
.demo-note > svg { width: 15px; height: 15px; flex-shrink: 0; color: #71cdb5; margin-top: 1px; }
.demo-note p { display: flex; flex-direction: column; }
.demo-note strong { color: rgba(255,255,255,.65); font-size: 9px; font-weight: 550; }
.demo-note span { margin-top: 4px; color: rgba(255,255,255,.3); font-size: 8px; line-height: 1.6; }
.admin-profile { margin-top: 15px; padding: 13px 5px 0; display: grid; grid-template-columns: 32px 1fr 30px; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.07); }
.admin-profile > span { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #d9eee8; color: #176a57; font-size: 9px; font-weight: 650; }
.admin-profile div { display: flex; flex-direction: column; }
.admin-profile strong { font-size: 9px; font-weight: 500; }
.admin-profile small { margin-top: 3px; color: rgba(255,255,255,.32); font-size: 8px; }
.admin-profile i { width: 6px; height: 6px; border-radius: 50%; background: #4ac69a; }
.logout-button { width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: rgba(255,255,255,.35); cursor: pointer; transition: color .2s, background .2s; }
.logout-button:hover { color: #ffc0b6; background: rgba(255,255,255,.06); }
.logout-button:disabled { opacity: .4; cursor: wait; }
.logout-button svg { width: 15px; height: 15px; }

.admin-main { margin-left: var(--sidebar); min-height: 100vh; }
.admin-topbar { position: sticky; top: 0; z-index: 50; height: 62px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.admin-breadcrumb { display: flex; align-items: center; gap: 10px; color: #8a9ba3; font-size: 10px; }
.admin-breadcrumb i { color: #bec9cd; font-style: normal; }
.admin-breadcrumb strong { color: #4a646f; font-weight: 550; }
.sidebar-toggle { display: none; width: 34px; height: 34px; border: 0; background: var(--surface); align-items: center; justify-content: center; }
.topbar-actions { display: flex; align-items: center; gap: 24px; }
.interface-language { position: relative; height: 34px; padding: 0 9px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: #607983; }
.interface-language > svg { width: 14px; height: 14px; flex-shrink: 0; pointer-events: none; }
.interface-language select { max-width: 94px; padding: 0 15px 0 0; border: 0; outline: 0; appearance: none; background: transparent; color: #45636f; font-size: 10px; cursor: pointer; }
.interface-language .interface-chevron { position: absolute; right: 7px; width: 11px; height: 11px; }
.interface-language:focus-within { border-color: var(--teal); }
.save-status { display: flex; align-items: center; gap: 7px; color: #789089; font-size: 9px; }
.save-status i { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.save-status.unsaved { color: #997332; }
.save-status.unsaved i { background: #d49a3d; }
.view-site-button { height: 34px; padding: 0 13px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); color: #45636f; font-size: 10px; transition: border-color .2s, color .2s; }
.view-site-button:hover { border-color: var(--blue); color: var(--blue); }
.view-site-button svg { width: 14px; height: 14px; }
.admin-content { padding: 30px; max-width: 1640px; margin: auto; }
.content-titlebar { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 26px; }
.content-titlebar > div:first-child > p { color: #8b9da5; font-size: 8px; letter-spacing: .14em; }
.content-titlebar h1 { margin-top: 7px; color: var(--navy); font-size: 25px; font-weight: 600; letter-spacing: -.02em; }
.content-titlebar > div:first-child > span { display: block; margin-top: 8px; color: var(--muted); font-size: 11px; }
.publish-actions { display: flex; gap: 10px; flex-shrink: 0; }
.secondary-button, .publish-button { height: 38px; padding: 0 15px; border: 1px solid var(--line); background: #fff; font-size: 10px; cursor: pointer; transition: .2s; }
.secondary-button:hover { border-color: #bb7a70; color: #a65348; }
.publish-button { display: flex; align-items: center; gap: 8px; border-color: var(--teal); background: var(--teal); color: #fff; font-weight: 600; }
.publish-button:hover { background: #188b71; border-color: #188b71; }
.publish-button svg { width: 15px; height: 15px; }
.publish-button:disabled { opacity: .6; cursor: wait; }
.language-toolbar { min-height: 56px; padding: 0 15px; display: flex; align-items: center; background: #fff; border: 1px solid var(--line); }
.language-tabs { align-self: stretch; display: flex; gap: 3px; }
.language-tabs button { position: relative; min-width: 100px; padding: 0 15px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: transparent; color: #748992; font-size: 10px; cursor: pointer; }
.language-tabs button small { font-size: 7px; padding: 2px 4px; background: #edf2f3; color: #8a9ba3; }
.language-tabs button::after { content: ""; position: absolute; left: 15px; right: 15px; bottom: -1px; height: 2px; background: var(--teal); transform: scaleX(0); }
.language-tabs button.active { color: var(--blue); font-weight: 600; }
.language-tabs button.active small { color: #18866c; background: #e5f5f0; }
.language-tabs button.active::after { transform: scaleX(1); }
.language-hint { display: flex; align-items: center; gap: 7px; margin-left: auto; color: #93a3aa; font-size: 8px; }
.language-hint svg { width: 13px; height: 13px; }
.export-button { height: 30px; margin-left: 20px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: #71868f; font-size: 9px; cursor: pointer; }
.export-button:hover { color: var(--blue); border-color: var(--blue); }
.export-button svg { width: 13px; height: 13px; }
.editor-layout { display: grid; grid-template-columns: minmax(480px, 1fr) minmax(360px, .8fr); align-items: start; gap: 22px; margin-top: 22px; }
.editor-panel { min-width: 0; }
.editor-section { background: #fff; border: 1px solid var(--line); }
.editor-section + .editor-section { margin-top: 15px; }
.editor-section-header { min-height: 65px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #e6edef; }
.editor-section-header > div { display: flex; align-items: center; gap: 12px; }
.section-number { width: 29px; height: 29px; display: flex; align-items: center; justify-content: center; background: #eaf3f4; color: var(--blue); font-size: 9px; font-weight: 650; }
.editor-section-header h2 { color: var(--navy); font-size: 12px; font-weight: 600; }
.editor-section-header p { margin-top: 4px; color: #8a9ba3; font-size: 8px; }
.editor-section-header > span { padding: 3px 7px; background: #eff6f3; color: #47816f; font-size: 7px; letter-spacing: .06em; }
.editor-fields { padding: 20px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-grid + .field-grid, .field + .field-grid, .field-grid + .field, .field + .field { margin-top: 16px; }
.field.full { grid-column: 1 / -1; }
.field label, .field-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; color: #526d78; font-size: 9px; font-weight: 550; }
.field label small, .field-label small { color: #9aaab1; font-size: 7px; font-weight: 400; }
.field input, .field textarea { width: 100%; border: 1px solid #dbe5e8; border-radius: 0; outline: 0; background: #fff; color: #254651; font-size: 11px; line-height: 1.65; transition: border-color .2s, box-shadow .2s; }
.field input { height: 39px; padding: 0 11px; }
.field textarea { min-height: 88px; padding: 10px 11px; resize: vertical; }
.field textarea.tall { min-height: 126px; }
.field input:focus, .field textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(32,164,133,.08); }
.field-help { display: block; margin-top: 6px; color: #98a8ae; font-size: 8px; line-height: 1.5; }
.repeater-group + .repeater-group { margin-top: 18px; }
.repeater-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; color: #6b828c; font-size: 9px; font-weight: 600; }
.repeater-title span { color: #9aaab1; font-size: 8px; font-weight: 400; }
.repeater-item { border: 1px solid #dfe8ea; background: #fbfdfd; }
.repeater-item + .repeater-item { margin-top: 8px; }
.repeater-item summary { min-height: 44px; padding: 0 13px; display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; color: #34535f; font-size: 10px; font-weight: 550; }
.repeater-item summary::-webkit-details-marker { display: none; }
.repeater-item summary > span:first-child { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; background: #eaf2f3; color: #68838e; font-size: 8px; }
.repeater-item summary::after { content: "+"; margin-left: auto; color: #8da0a8; font-size: 15px; font-weight: 400; }
.repeater-item[open] summary::after { content: "−"; }
.repeater-item[open] summary { border-bottom: 1px solid #e3ebed; }
.repeater-fields { padding: 15px; background: #fff; }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.media-card { border: 1px solid var(--line); background: #fff; }
.media-preview { height: 140px; position: relative; overflow: hidden; background: #e9eff1; }
.media-preview img { width: 100%; height: 100%; object-fit: cover; }
.media-preview span { position: absolute; left: 9px; top: 9px; padding: 3px 6px; background: rgba(4,36,51,.75); color: #fff; font-size: 7px; letter-spacing: .08em; }
.media-card-content { padding: 13px; }
.media-card-content strong { display: block; color: #34535f; font-size: 10px; font-weight: 550; }
.media-card-content small { display: block; margin-top: 4px; color: #91a2a9; font-size: 8px; }
.media-upload { width: 100%; height: 32px; margin-top: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; border: 1px dashed #b9cbD1; background: #f8fbfb; color: #557581; font-size: 9px; cursor: pointer; }
.media-upload:hover { border-color: var(--teal); color: var(--teal); }
.media-upload svg { width: 13px; height: 13px; }

.editor-layout.inquiries-view { grid-template-columns: 1fr; }
.editor-layout.inquiries-view .preview-panel { display: none; }
.inquiries-empty { min-height: 240px; padding: 70px 25px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; color: #8a9ba3; font-size: 11px; text-align: center; }
.inquiries-empty.error { color: #a65348; }
.inquiries-section { border: 1px solid var(--line); background: #fff; }
.inquiries-header { min-height: 62px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.inquiries-header h2 { color: var(--navy); font-size: 13px; font-weight: 600; }
.inquiries-header span { color: #8a9ba3; font-size: 9px; }
.inquiry-list { padding: 16px; display: grid; gap: 12px; background: #f6f9fa; }
.inquiry-card { padding: 20px; border: 1px solid #e0e8eb; background: #fff; }
.inquiry-card.unread { border-left: 3px solid var(--teal); }
.inquiry-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.inquiry-card-header > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inquiry-status { padding: 3px 7px; background: #edf3f4; color: #78909a; font-size: 8px; }
.inquiry-card.unread .inquiry-status { background: #e4f5ef; color: #18866c; }
.inquiry-card-header strong { color: var(--navy); font-size: 14px; font-weight: 600; }
.inquiry-card-header > div > span:last-child { color: #647d88; font-size: 11px; }
.inquiry-card-header time { flex-shrink: 0; color: #93a3aa; font-size: 9px; }
.inquiry-contact-lines { margin-top: 12px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.inquiry-contact-lines a { color: var(--blue); font-size: 10px; }
.inquiry-contact-lines a:hover { text-decoration: underline; }
.inquiry-contact-lines span { padding: 2px 6px; background: #edf3f4; color: #6c838d; font-size: 8px; }
.inquiry-interest { margin-top: 17px; padding-top: 14px; display: flex; align-items: center; gap: 12px; border-top: 1px solid #edf2f3; color: #8a9ba3; font-size: 9px; }
.inquiry-interest strong { color: #486570; font-size: 10px; font-weight: 550; }
.inquiry-message { margin-top: 12px; color: #34535f; font-size: 12px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; }
.inquiry-card-actions { margin-top: 17px; padding-top: 13px; display: flex; align-items: center; justify-content: flex-end; gap: 10px; border-top: 1px solid #edf2f3; }
.inquiry-card-actions button { height: 30px; padding: 0 10px; display: flex; align-items: center; gap: 6px; border: 1px solid #d7e3e6; background: #fff; color: #5b7580; font-size: 9px; cursor: pointer; }
.inquiry-card-actions button:hover { border-color: var(--teal); color: var(--teal); }
.inquiry-card-actions button.inquiry-delete:hover { border-color: #b95e52; color: #b95e52; }
.inquiry-card-actions svg { width: 13px; height: 13px; }

.preview-panel { position: sticky; top: 84px; min-width: 0; background: #fff; border: 1px solid var(--line); }
.preview-toolbar { height: 49px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.preview-toolbar > div:first-child { display: flex; align-items: center; gap: 7px; }
.preview-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px #e7f4f0; }
.preview-toolbar strong { color: #526d78; font-size: 9px; font-weight: 550; }
.device-switcher { display: flex; padding: 2px; background: #eef3f4; }
.device-switcher button { width: 29px; height: 25px; display: flex; align-items: center; justify-content: center; border: 0; background: transparent; color: #8a9ba3; cursor: pointer; }
.device-switcher button.active { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(18,52,65,.09); }
.device-switcher svg { width: 14px; height: 14px; }
.preview-canvas { min-height: 505px; padding: 18px; display: flex; justify-content: center; align-items: flex-start; background: #eaf0f2; overflow: hidden; }
.preview-browser { width: 100%; background: #fff; box-shadow: 0 7px 22px rgba(16,48,60,.12); transition: width .3s; }
.preview-canvas.mobile .preview-browser { width: 240px; }
.browser-bar { height: 24px; padding: 0 8px; display: flex; align-items: center; gap: 4px; background: #f6f8f9; border-bottom: 1px solid #e3e9eb; }
.browser-bar i { width: 4px; height: 4px; border-radius: 50%; background: #c5d0d4; }
.browser-bar span { max-width: 130px; margin: auto; padding: 2px 25px; border-radius: 2px; background: #fff; color: #9dabb1; font-size: 5px; }
.mini-header { height: 37px; padding: 0 13px; display: flex; align-items: center; gap: 15px; }
.mini-logo { display: flex; align-items: center; gap: 4px; color: var(--blue); }
.mini-logo i { width: 15px; height: 15px; border: 1px solid currentColor; border-radius: 50%; }
.mini-logo strong { font-size: 7px; letter-spacing: .08em; }
.mini-nav { flex: 1; display: flex; justify-content: center; gap: 9px; }
.mini-nav span { width: 22px; height: 2px; background: #d7e0e3; }
.mini-header > b { width: 28px; height: 9px; background: var(--navy); }
.mini-hero { height: 260px; position: relative; overflow: hidden; color: #fff; background: var(--navy); }
.mini-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mini-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,34,48,.9), rgba(3,34,48,.25)); }
.mini-hero-copy { position: relative; z-index: 1; width: 77%; padding: 40px 0 20px 26px; }
.mini-hero-copy > small { display: block; max-width: 230px; color: #9cddca; font-size: 5px; letter-spacing: .08em; line-height: 1.5; }
.mini-hero-copy h2 { margin-top: 7px; font-size: 22px; line-height: 1.16; font-weight: 500; letter-spacing: -.04em; }
.mini-hero-copy h2 + h2 { margin-top: 0; color: #b8ebd9; }
.mini-hero-copy p { max-width: 270px; max-height: 36px; margin-top: 11px; overflow: hidden; color: rgba(255,255,255,.65); font-size: 6px; line-height: 1.8; }
.mini-hero-copy > div { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.mini-hero-copy > div span { min-height: 20px; padding: 5px 9px; background: var(--teal); color: #fff; font-size: 6px; }
.mini-hero-copy > div i { width: 35px; height: 1px; background: rgba(255,255,255,.5); }
.mini-stats { min-height: 44px; padding: 8px 13px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--navy); color: #fff; }
.mini-stats > div { display: flex; align-items: center; gap: 4px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.12); }
.mini-stats > div:first-child { padding-left: 0; border: 0; }
.mini-stats strong { font-size: 10px; font-weight: 500; }
.mini-stats span { max-width: 34px; color: rgba(255,255,255,.5); font-size: 4px; line-height: 1.4; }
.mini-content { padding: 25px 20px; }
.mini-content > span { display: block; width: 28px; height: 2px; background: var(--teal); }
.mini-content h3 { max-width: 250px; margin-top: 8px; color: var(--navy); font-size: 12px; line-height: 1.3; }
.mini-content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 15px; }
.mini-content-grid i { height: 40px; background: #edf3f4; }
.preview-canvas.mobile .browser-bar { padding: 0 5px; }
.preview-canvas.mobile .browser-bar span { font-size: 4px; padding: 2px 15px; }
.preview-canvas.mobile .mini-header { height: 31px; padding: 0 9px; }
.preview-canvas.mobile .mini-nav { display: none; }
.preview-canvas.mobile .mini-header > b { margin-left: auto; width: 15px; background: transparent; border-top: 2px solid #67808b; border-bottom: 2px solid #67808b; height: 8px; }
.preview-canvas.mobile .mini-hero { height: 310px; }
.preview-canvas.mobile .mini-hero-copy { width: 100%; padding: 55px 18px 20px; }
.preview-canvas.mobile .mini-hero-copy h2 { font-size: 19px; }
.preview-canvas.mobile .mini-hero-copy p { font-size: 6px; max-height: 48px; }
.preview-canvas.mobile .mini-stats { grid-template-columns: 1fr 1fr; gap: 7px 0; }
.preview-canvas.mobile .mini-stats > div:nth-child(3) { border: 0; padding-left: 0; }
.preview-note { padding: 11px 14px; display: flex; align-items: flex-start; gap: 7px; color: #8a9ba3; font-size: 8px; line-height: 1.5; }
.preview-note svg { width: 12px; height: 12px; flex-shrink: 0; margin-top: 1px; }
.toast { position: fixed; right: 25px; bottom: 25px; z-index: 300; max-width: 380px; padding: 13px 18px; display: flex; align-items: center; gap: 10px; background: var(--navy); color: #fff; box-shadow: 0 15px 45px rgba(4,36,51,.25); font-size: 11px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: .25s; }
.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.toast.error { background: #8a463f; }
.toast svg { width: 16px; height: 16px; color: #89dfc7; }

@media (min-width: 1500px) {
  .editor-layout { grid-template-columns: minmax(570px, 1fr) minmax(480px, .85fr); }
  .mini-hero { height: 310px; }
  .mini-hero-copy { padding-top: 50px; }
  .mini-hero-copy h2 { font-size: 27px; }
}

@media (max-width: 1180px) {
  :root { --sidebar: 220px; }
  .admin-content { padding: 24px; }
  .editor-layout { grid-template-columns: minmax(400px, 1fr) minmax(320px, .8fr); gap: 16px; }
  .language-hint { display: none; }
  .export-button { margin-left: auto; }
  .field-grid { grid-template-columns: 1fr; }
  .mini-hero-copy { padding-left: 18px; }
  .mini-hero-copy h2 { font-size: 19px; }
  .media-grid { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  :root { --sidebar: 240px; }
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s; box-shadow: 10px 0 40px rgba(4,36,51,.15); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .sidebar-toggle { display: flex; }
  .editor-layout { grid-template-columns: 1fr; }
  .preview-panel { position: static; }
  .preview-canvas { min-height: auto; }
  .preview-browser { max-width: 600px; }
  .preview-canvas.mobile .preview-browser { width: 260px; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .media-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .admin-topbar { height: 56px; padding: 0 16px; }
  .admin-breadcrumb > span, .admin-breadcrumb > i { display: none; }
  .save-status { display: none; }
  .topbar-actions { gap: 9px; }
  .interface-language { padding: 0 6px; }
  .interface-language > svg:first-child { display: none; }
  .interface-language select { max-width: 82px; font-size: 9px; }
  .admin-content { padding: 20px 14px; }
  .content-titlebar { align-items: flex-start; flex-direction: column; gap: 18px; }
  .content-titlebar h1 { font-size: 22px; }
  .content-titlebar > div:first-child > span { line-height: 1.6; }
  .publish-actions { width: 100%; }
  .publish-actions button { flex: 1; justify-content: center; }
  .language-toolbar { padding: 0 6px; flex-wrap: wrap; }
  .language-tabs { width: 100%; height: 52px; }
  .language-tabs button { min-width: 0; flex: 1; padding: 0 5px; }
  .export-button { width: 100%; height: 34px; margin: 0 0 8px; justify-content: center; }
  .editor-layout { margin-top: 14px; }
  .field-grid { grid-template-columns: 1fr; }
  .editor-section-header, .editor-fields { padding-left: 14px; padding-right: 14px; }
  .media-grid { grid-template-columns: 1fr; }
  .preview-canvas { padding: 12px; }
  .inquiry-list { padding: 9px; }
  .inquiry-card { padding: 15px; }
  .inquiry-card-header { flex-direction: column; gap: 7px; }
  .inquiry-contact-lines { gap: 9px 15px; }
  .inquiry-card-actions { justify-content: flex-start; }
  .mini-hero-copy h2 { font-size: 18px; }
  .view-site-button span { display: none; }
  .view-site-button { padding: 0 9px; }
  .toast { left: 15px; right: 15px; bottom: 15px; }
}
