:root {
  color-scheme: light;
  --ink: #17241d;
  --muted: #748078;
  --line: #e7ebe6;
  --green: #276749;
  --green-dark: #1e543b;
  --green-soft: #eaf4ed;
  --paper: #fff;
  --canvas: #f5f7f4;
  font-family: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--canvas); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; background: #fff; border-right: 1px solid var(--line); padding: 27px 17px 18px; display: flex; flex-direction: column; z-index: 2; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-family: Manrope, "Segoe UI", sans-serif; font-size: 15px; font-weight: 800; letter-spacing: -.4px; padding: 0 8px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg, #317b53, #1d5439); color: #fff; font-size: 19px; box-shadow: 0 5px 12px #27674930; }
.brand-sub { display: block; color: #94a097; font: 700 8px "DM Sans", sans-serif; letter-spacing: 1.5px; margin-top: 2px; }
.side-label, .eyebrow { color: #8c9990; font-size: 9px; font-weight: 700; letter-spacing: 1.45px; }
.side-label { margin: 47px 9px 13px; }
.navigation { display: grid; gap: 6px; }
.nav-link { min-height: 42px; display: flex; align-items: center; gap: 11px; padding: 0 12px; color: #717e75; border-radius: 10px; text-decoration: none; font-size: 12px; font-weight: 600; transition: background .18s, color .18s, transform .18s; }
.nav-link > span:first-child { width: 15px; font-size: 16px; text-align: center; }
.nav-link:hover { background: #f5f8f5; color: var(--green-dark); }
.nav-link.active { background: var(--green-soft); color: var(--green-dark); box-shadow: inset 3px 0 #347951; }
.nav-count { margin-left: auto; font-size: 10px; }
.sidebar-note { margin: auto 3px 20px; padding: 17px 14px; border: 1px solid #e8eee8; border-radius: 14px; background: linear-gradient(145deg, #f8fbf7, #f1f6f0); }
.note-icon { color: #9baa70; font-size: 17px; }
.sidebar-note strong { display: block; font-family: Manrope, sans-serif; font-size: 12px; line-height: 1.55; margin: 9px 0 5px; }
.sidebar-note p { color: var(--muted); font-size: 10px; line-height: 1.7; margin: 0; }
.sidebar-foot { border-top: 1px solid #eff1ee; padding: 17px 5px 0; color: #909a92; font-size: 10px; display: flex; align-items: center; gap: 8px; }
.status-dot { flex: 0 0 7px; height: 7px; display: inline-block; border-radius: 50%; background: #72a77b; }
.main-content { max-width: 1650px; min-height: 100vh; margin-left: 252px; padding: 0 56px; }
.topbar { height: 72px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.breadcrumb { color: #818a83; font-size: 11px; }
.breadcrumb span { color: #c1c8c0; padding: 0 8px; }
.button { min-height: 38px; border: 1px solid transparent; border-radius: 9px; padding: 0 14px; font-size: 11px; font-weight: 700; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.button:active { transform: translateY(1px); }
.button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #78a783; outline-offset: 2px; }
.button-quiet { background: #fff; border-color: #e2e8e2; color: #526057; box-shadow: 0 1px 2px #17241d08; }
.button-quiet:hover, .button-secondary:hover { background: #f4f7f3; }
.page-section { padding-top: 46px; }
.page-heading h1 { margin: 9px 0 7px; font: 700 32px Manrope, "Segoe UI", sans-serif; letter-spacing: -1.25px; }
.page-description, .section-title-row p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.studio-layout { display: grid; grid-template-columns: minmax(360px, .92fr) minmax(420px, 1.08fr); gap: 20px; margin-top: 27px; align-items: stretch; }
.panel { background: var(--paper); border: 1px solid #e7ebe6; border-radius: 16px; box-shadow: 0 8px 28px #20342608, 0 1px 2px #20342606; }
.composer-panel { padding: 25px; }
.panel-heading { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; margin-bottom: 23px; }
.panel h2, .section-title-row h2 { margin: 0; font: 700 17px Manrope, "Segoe UI", sans-serif; letter-spacing: -.35px; }
.panel-heading p { max-width: 310px; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.sparkle { flex-shrink: 0; padding: 7px 10px; border: 1px solid #f1ead3; border-radius: 20px; background: #fbf7e9; color: #92783c; font-size: 10px; font-weight: 700; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.field { display: grid; gap: 7px; margin-bottom: 15px; color: #39483e; font-size: 11px; font-weight: 700; }
.field small { color: #a2aaa3; font-size: 9px; font-weight: 400; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; border: 1px solid #e1e7e1; border-radius: 9px; background: #fff; color: #293a30; padding: 10px 12px; font-size: 12px; font-weight: 400; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #77a486; box-shadow: 0 0 0 3px #27674912; outline: 0; }
.field input, .field select { height: 40px; }
.field select { appearance: auto; }
.field textarea { resize: vertical; min-height: 76px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #a9b3ab; }
.form-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 3px; }
.button-primary { background: linear-gradient(135deg, #317650, #245d40); color: #fff; box-shadow: 0 3px 8px #27674920; }
.button-primary:hover { background: var(--green-dark); }
.button-primary:hover { background: var(--green-dark); box-shadow: 0 5px 12px #2767492b; }
.button-secondary { border-color: #e0e6e0; color: #4b5a50; background: #fff; }
.form-message { min-height: 16px; margin: 9px 0 0; font-size: 11px; color: #a65242; line-height: 1.5; }
.form-message.success { color: var(--green); }
.preview-panel { display: flex; flex-direction: column; min-height: 600px; padding: 25px 25px 0; overflow: hidden; }
.preview-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.preview-top h2 { margin-top: 7px; }
.platform-pill { max-width: 160px; border: 1px solid #e6ebe6; border-radius: 20px; padding: 7px 10px; background: #fafcf9; color: #657369; font-size: 10px; text-align: center; }
.empty-preview { display: flex; flex: 1; min-height: 360px; align-items: center; justify-content: center; flex-direction: column; text-align: center; }
.empty-preview > strong { margin-top: 20px; font: 700 14px Manrope, sans-serif; }
.empty-preview > p { max-width: 250px; margin: 8px 0 0; color: #89968d; font-size: 11px; line-height: 1.7; }
.empty-art { position: relative; width: 110px; height: 96px; border: 1px solid #dfe9e0; border-radius: 20px; background: linear-gradient(145deg, #f7fbf6, #eef5ee); transform: rotate(-5deg); box-shadow: 0 12px 24px #315d3810; }
.empty-art span { position: absolute; top: 17px; left: 22px; color: #72a17b; font-size: 28px; }
.empty-art i, .empty-art b { position: absolute; display: block; height: 5px; border-radius: 5px; background: #e2e9e1; }
.empty-art i { width: 48px; left: 27px; top: 55px; }
.empty-art b { width: 31px; left: 27px; top: 66px; }
.content-preview { display: grid; gap: 15px; padding: 23px 0; }
.content-block { display: grid; gap: 6px; }
.content-label { color: #859188; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.content-block textarea { width: 100%; resize: vertical; min-height: 44px; padding: 10px 11px; border: 1px solid #e5eae5; border-radius: 9px; color: #415047; font-size: 12px; line-height: 1.55; }
.content-block textarea:focus { border-color: #77a486; box-shadow: 0 0 0 3px #27674912; outline: 0; }
.preview-actions { display: flex; justify-content: space-between; gap: 9px; flex-wrap: wrap; margin-top: 2px; }
.preview-foot { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-top: auto; border-top: 1px solid #edf0ed; color: #7d8a81; font-size: 10px; }
.preview-foot .status-dot { width: 6px; height: 6px; }
.queue-section { padding-top: 52px; }
.section-title-row { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 17px; }
.section-title-row h2 { margin: 7px 0 5px; font-size: 21px; }
.heading-count { display: inline-grid; min-width: 23px; height: 23px; margin-left: 5px; place-items: center; border-radius: 12px; background: #eaf0e9; color: #637168; font: 600 11px "DM Sans", sans-serif; vertical-align: 2px; }
.queue-message { min-height: 0; margin: -4px 0 12px; color: var(--green-dark); font-size: 11px; line-height: 1.5; }
.queue-message:empty { display: none; }
.queue-message.warning { padding: 10px 12px; border: 1px solid #ecd7ad; border-radius: 9px; background: #fff9eb; color: #8a6324; }
.queue-list { display: grid; gap: 11px; }
.queue-card { display: grid; grid-template-columns: 1fr auto; gap: 15px; padding: 18px 19px; background: #fff; border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 3px 12px #20342605; transition: box-shadow .18s, transform .18s; }
.queue-card:hover { box-shadow: 0 8px 24px #2034260c; transform: translateY(-1px); }
.queue-card h3 { margin: 0 0 7px; font: 700 14px Manrope, sans-serif; }
.queue-meta { display: flex; flex-wrap: wrap; gap: 9px; color: #7d8a80; font-size: 10px; }
.queue-copy { margin: 11px 0 0; color: #5f6d63; font-size: 11px; line-height: 1.65; white-space: pre-wrap; }
.reminder-editor { max-width: 380px; display: grid; gap: 9px; margin-top: 13px; padding: 14px; border: 1px solid #e6ebe6; border-radius: 10px; background: #fafcf9; }
.reminder-editor[hidden] { display: none; }
.reminder-field { display: grid; gap: 7px; color: #526057; font-size: 11px; font-weight: 700; }
.reminder-field input { min-height: 38px; border: 1px solid #e1e6e0; border-radius: 8px; padding: 7px 9px; background: #fff; color: #334138; font-size: 12px; }
.reminder-error { color: #a65242; font-size: 11px; }
.reminder-editor-actions { display: flex; gap: 7px; }
.reminder-editor-actions .button { min-height: 34px; font-size: 10px; }
.queue-actions { display: flex; align-items: flex-start; gap: 7px; }
.queue-actions .button { min-height: 34px; padding: 0 10px; font-size: 10px; }
.queue-actions .delete-button { color: #a26156; }
.queue-empty { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: 19px; background: #fff; border: 1px dashed #d5dfd5; border-radius: 13px; }
.queue-empty[hidden] { display: none; }
.queue-empty-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #edf4ed; color: #6f9572; font-size: 20px; }
.queue-empty strong { font: 700 13px Manrope, sans-serif; }
.queue-empty p { margin: 5px 0 0; color: #879188; font-size: 11px; }
.footer { padding: 32px 0 24px; color: #8f9991; font-size: 10px; }
.footer span { padding: 0 5px; color: #c2c8c1; }
@media (max-width: 1120px) {
  .main-content { padding: 0 32px; }
  .studio-layout { grid-template-columns: 1fr; }
  .preview-panel { min-height: 500px; }
}
@media (max-width: 700px) {
  body { padding-bottom: 72px; }
  .sidebar {
    position: fixed;
    inset: 0 0 auto;
    height: 62px;
    width: 100%;
    padding: 12px 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 4px 18px #24382708;
  }
  .brand { padding: 0; font-size: 14px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 10px; }
  .side-label, .sidebar-note, .sidebar-foot { display: none; }
  .navigation {
    position: fixed;
    z-index: 20;
    inset: auto 10px 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    min-height: 58px;
    padding: 6px;
    border: 1px solid #dfe5de;
    border-radius: 16px;
    background: #fffffff2;
    box-shadow: 0 10px 30px #1d28221a;
    backdrop-filter: blur(12px);
  }
  .nav-link {
    min-height: 44px;
    justify-content: center;
    gap: 7px;
    border-radius: 11px;
    font-size: 11px;
  }
  .nav-link > span:first-child { width: auto; }
  .nav-count { margin-left: 2px; }
  .main-content { margin: 62px 0 0; padding: 0 14px; }
  .topbar {
    height: 52px;
    justify-content: flex-end;
  }
  .breadcrumb { display: none; }
  .button-quiet { min-height: 38px; }
  .page-section { padding-top: 18px; }
  .page-heading h1 { margin: 7px 0 5px; font-size: 27px; }
  .page-description, .section-title-row p { font-size: 12px; line-height: 1.55; }
  .studio-layout { grid-template-columns: 1fr; gap: 12px; margin-top: 18px; }
  .panel { border-radius: 16px; }
  .composer-panel { padding: 19px 15px 16px; }
  .panel-heading { margin-bottom: 17px; }
  .panel-heading h2 { font-size: 16px; }
  .panel-heading p { max-width: 220px; font-size: 11px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .field { gap: 7px; margin-bottom: 14px; font-size: 12px; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .field input, .field select { height: 44px; }
  .field textarea { min-height: 82px; line-height: 1.5; }
  .form-actions { display: grid; grid-template-columns: 1fr; }
  .form-actions .button { width: 100%; min-height: 48px; font-size: 13px; }
  .form-message { min-height: 18px; font-size: 11px; }
  .preview-panel { min-height: 480px; padding: 17px 14px 0; }
  .preview-top h2 { font-size: 15px; }
  .platform-pill { max-width: 135px; font-size: 10px; }
  .empty-preview { min-height: 360px; }
  .empty-preview > strong { font-size: 14px; }
  .empty-preview > p { max-width: 250px; font-size: 11px; }
  .content-preview { gap: 12px; padding: 18px 0; }
  .content-label { font-size: 9px; }
  .content-block textarea { min-height: 48px; padding: 10px; font-size: 16px; line-height: 1.45; }
  .preview-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .preview-actions .button { min-height: 44px; padding: 0 8px; font-size: 11px; }
  .preview-foot { min-height: 44px; font-size: 10px; }
  .queue-section { padding-top: 34px; }
  .section-title-row { margin-bottom: 13px; }
  .section-title-row h2 { font-size: 19px; }
  .queue-message { font-size: 11px; }
  .queue-card { grid-template-columns: 1fr; gap: 11px; padding: 15px 13px; }
  .queue-card h3 { font-size: 14px; }
  .queue-meta, .queue-copy { font-size: 11px; }
  .queue-actions { display: grid; grid-template-columns: repeat(3, 1fr); }
  .queue-actions .button { min-height: 42px; padding: 0 6px; font-size: 10px; }
  .reminder-editor { max-width: none; }
  .reminder-field, .reminder-field input, .reminder-error { font-size: 12px; }
  .reminder-field input { min-height: 44px; }
  .reminder-editor-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .reminder-editor-actions .button { min-height: 42px; font-size: 12px; }
  .queue-empty { min-height: 104px; }
  .queue-empty strong { font-size: 12px; }
  .queue-empty p { font-size: 11px; }
  .footer { padding: 24px 2px 12px; line-height: 1.5; }
}
@media (max-width: 380px) {
  .main-content { padding: 0 10px; }
  .nav-link { font-size: 10px; }
  .preview-actions { grid-template-columns: 1fr; }
  .queue-actions { grid-template-columns: 1fr; }
}
