@font-face {
  font-family: Inter;
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "DM Serif Display";
  src: url("/assets/dm-serif-display.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
:root {
  color-scheme: light;
  --navy: #181c3d;
  --navy-deep: #11152d;
  --indigo: #364780;
  --ink: #232641;
  --soft-ink: #545a74;
  --muted: #666d86;
  --line: #e4e6ef;
  --surface: #fcfcff;
  --background: #f5f6fb;
  --white: #ffffff;
  --yellow: #fbc70c;
  --yellow-hover: #f2bb00;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--background); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 14px/1.55 var(--sans); }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .58; }
a { color: inherit; text-decoration: none; }
a.link { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #6776c7; outline-offset: 3px; }
img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.icon { width: 18px; height: 18px; flex: none; display: block; }
.icon-sm .icon { width: 15px; height: 15px; }
.skip-link { position: fixed; z-index: 30; top: 9px; left: 9px; transform: translateY(-160%); background: var(--white); color: var(--navy); border-radius: 8px; padding: 8px 12px; }
.skip-link:focus { transform: none; }
.loading-screen { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 10px; color: var(--muted); }
.loading-screen img { border-radius: 16px; object-fit: cover; }
.loading-screen strong { color: var(--navy); font: 22px var(--serif); }
.layout { min-height: 100vh; display: grid; grid-template-columns: 230px minmax(0, 1fr); }
.sidebar { min-width: 0; position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; padding: 30px 17px 17px; color: #d8dcef; background: linear-gradient(160deg, #22284e 0%, var(--navy) 47%, var(--navy-deep) 100%); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; margin: 0 6px 40px; }
.brand-image { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 12px; object-fit: cover; object-position: center 53%; border: 1px solid #ffffff34; }
.brand-title { display: grid; gap: 4px; min-width: 0; }
.brand-title strong { color: white; font: 600 16px/1.13 var(--serif); }
.brand-title small { color: #aeb6da; font: 11px/1.2 var(--sans); }
.nav { display: grid; gap: 5px; }
.nav + .nav { margin-top: 24px; }
.nav-link { min-height: 45px; display: flex; align-items: center; gap: 12px; position: relative; border-radius: 10px; padding: 8px 11px; color: #c6cbe2; font-weight: 550; white-space: nowrap; transition: background-color .15s, color .15s; }
.nav-link:hover { color: #fff; background: #ffffff0e; }
.nav-link[aria-current=page] { color: #fff; background: #ffffff15; }
.nav-link[aria-current=page]::before { content: ""; position: absolute; left: 0; height: 20px; width: 3px; border-radius: 0 3px 3px 0; background: var(--yellow); }
.nav-link[aria-current=page] .icon { color: var(--yellow); }
.nav-link .nav-text { flex: 1; }
.nav-count { min-width: 22px; padding: 0 5px; text-align: center; color: #fff; background: #ffffff17; border-radius: 7px; font-size: 11px; font-weight: 700; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #ffffff18; padding: 14px 6px 2px; color: #adb6d7; display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.sidebar-foot .icon { width: 15px; height: 15px; color: #a7afce; }
.workspace { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 0 30px; background: #ffffff; border-bottom: 1px solid var(--line); gap: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; } 
.breadcrumb span:first-child { color: var(--muted); }
.breadcrumb .icon { width: 13px; height: 13px; color: #8b90a8; }
.mobile-brand { display: none; }
.profile { position: relative; }
.profile summary { display: flex; align-items: center; justify-content: flex-end; min-height: 42px; list-style: none; cursor: pointer; gap: 8px; padding: 4px 7px; border-radius: 9px; }
.profile summary:hover { background: var(--background); }
.profile summary::-webkit-details-marker { display: none; }
.profile summary strong { font-size: 12px; font-weight: 650; }
.profile summary > .icon { width: 14px; height: 14px; color: var(--muted); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #e8ebfb; color: var(--indigo); font-size: 11px; font-weight: 750; flex: none; }
.profile-menu { position: absolute; z-index: 5; right: 0; top: calc(100% + 4px); min-width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 25px #252e4a15; padding: 6px; }
.profile-menu button { width: 100%; text-align: left; background: transparent; border: 0; padding: 9px 8px; color: var(--ink); border-radius: 6px; display: flex; gap: 8px; align-items: center; }
.profile-menu button:hover { background: var(--background); }
.main { max-width: 1620px; margin: 0 auto; padding: 27px 30px 46px; }
.page-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 27px; }
.page-heading h1, .simple-page h1 { font: 500 clamp(32px, 3.3vw, 45px)/1.1 var(--serif); letter-spacing: -.037em; color: var(--navy); }
.page-heading p, .simple-page > p { color: var(--muted); margin-top: 7px; }
.page-heading .button { flex: none; }
.button, .icon-button { border: 1px solid var(--line); background: #fff; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 13px; min-height: 40px; border-radius: 9px; font-weight: 670; font-size: 13px; line-height: 1.35; transition: background-color .15s, border-color .15s; }
.button:hover, .icon-button:hover { background: #f0f2fa; border-color: #cdd2e6; }
.button-primary { background: var(--yellow); border-color: var(--yellow); color: #2b2308; }
.button-primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.button-dark { color: white; background: var(--navy); border-color: var(--navy); }
.button-dark:hover { color: white; background: #2b345f; border-color: #2b345f; }
.button-quiet { background: transparent; border-color: transparent; color: var(--soft-ink); }
.button-quiet:hover { background: #edefF8; border-color: transparent; }
.button-danger { color: #983b4c; }
.icon-button { width: 36px; height: 36px; min-height: 36px; padding: 0; flex: none; }
.icon-button .icon { width: 16px; height: 16px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 288px); align-items: start; gap: 23px; }
.cards-column { min-width: 0; }
.toolbar { min-height: 44px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 20px; }
.toolbar .spacer { flex: 1; }
.filter { display: flex; align-items: center; color: var(--soft-ink); gap: 6px; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding-left: 10px; }
.filter > .icon { width: 14px; height: 14px; color: var(--indigo); pointer-events: none; }
.filter select { min-width: 105px; appearance: auto; border: 0; color: var(--soft-ink); border-radius: 9px; background: transparent; font-size: 12px; font-weight: 620; padding: 8px 6px 8px 1px; min-height: 38px; cursor: pointer; }
.scope-control { display: inline-flex; align-items: center; gap: 2px; background: #ebedf6; padding: 3px; border-radius: 9px; }
.scope-control button { border: 0; background: transparent; color: var(--soft-ink); min-height: 32px; border-radius: 7px; padding: 5px 10px; font-size: 12px; font-weight: 630; white-space: nowrap; }
.scope-control button[aria-pressed=true] { color: var(--indigo); background: #fff; box-shadow: 0 1px 4px #12163313; }
.scope-control button:hover { color: var(--navy); }
.filter-reset { min-height: 32px; font-size: 12px; padding: 5px 8px; }
.day-section + .day-section { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--line); }
.day-head { display: flex; align-items: baseline; gap: 9px; margin: 0 0 10px; }
.day-head h2 { font: 500 24px/1.2 var(--serif); letter-spacing: -.025em; color: var(--navy); }
.day-head time { color: var(--muted); font-size: 12px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 13px; min-width: 0; overflow: hidden; position: relative; transition: box-shadow .15s, border-color .15s, transform .15s; }
.post-card:hover { box-shadow: 0 5px 17px #252d5d13; border-color: #c9cee0; transform: translateY(-1px); }
.card-target { display: flex; height: 100%; flex-direction: column; }
.card-media { position: relative; background: #e9edfa; width: 100%; aspect-ratio: 2.05; overflow: hidden; }
.card-media > img, .card-media > video { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.card-media > img[src$="marche.webp"] { object-position: center 54%; }
.card-media > video { pointer-events: none; }
.card-media .media-symbol { position: absolute; right: 7px; top: 7px; background: #171c3bdc; color: #fff; border-radius: 6px; padding: 4px; }
.media-symbol .icon { width: 13px; height: 13px; }
.card-placeholder { color: #46558a; background: #edf0fa; display: grid; place-items: center; }
.card-placeholder .icon { width: 26px; height: 26px; opacity: .67; }
.card-body { display: grid; gap: 6px; padding: 11px 11px 9px; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 5px; min-height: 21px; color: var(--muted); font-size: 11px; }
.network { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; font-weight: 650; color: var(--soft-ink); min-width: 0; }
.network .icon { width: 14px; height: 14px; }
.network-instagram .icon { color: #ad366d; }
.network-facebook .icon { color: #254dca; }
.network-youtube .icon { color: #b53640; }
.network-tiktok .icon { color: #323957; }
.network-x .icon { color: #212334; }
.card-title { font-size: 15px; font-weight: 720; line-height: 1.29; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-caption { font-size: 12px; color: var(--muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 4px; border-top: 1px solid #edeff6; padding: 7px 10px; margin-top: auto; }
.card-foot > .icon { width: 13px; height: 13px; color: #8990aa; }
.status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border-radius: 5px; font-size: 11px; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.status-dot, .date-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.status-draft { color: #536078; background: #edf0f5; }
.status-review { color: #805a02; background: #fdf0cb; }
.status-changes { color: #a34635; background: #ffebe4; }
.status-approved { color: #22634b; background: #e4f4ec; }
.status-published { color: #3c4b94; background: #e9edfc; }
.status-cancelled { color: #66647b; background: #f0edf4; }
.aside { display: grid; gap: 15px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.calendar-panel { padding: 14px; }
.panel-title { font: 500 21px/1.25 var(--serif); color: var(--navy); letter-spacing: -.022em; }
.calendar-panel header { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-bottom: 12px; min-height: 34px; }
.month-controls { display: flex; align-items: center; gap: 4px; }
.month-controls button { min-height: 29px; height: 29px; width: 29px; border-radius: 7px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; align-items: center; }
.weekday { color: var(--muted); padding: 4px 0; text-align: center; font-size: 10px; font-weight: 680; }
.month-day { min-width: 0; display: grid; grid-template-rows: 17px 5px; align-content: center; justify-items: center; gap: 0; height: 33px; color: var(--ink); border: 1px solid transparent; background: #fff; border-radius: 7px; padding: 2px 0; font-size: 12px; }
.month-day:hover { background: #eef0f9; }
.month-day.off-month { color: #8e94a9; }
.month-day.is-today { border-color: #d4d9ef; font-weight: 780; }
.month-day[aria-pressed=true] { background: var(--yellow); border-color: var(--yellow); color: #2e2508; font-weight: 750; }
.day-dots { display: flex; gap: 2px; }
.date-dot { height: 4px; width: 4px; }
.date-dot.status-review { background: #bf8509; }
.date-dot.status-changes { background: #c65e48; }
.date-dot.status-approved { background: #358667; }
.date-dot.status-published { background: #5869b3; }
.date-dot.status-draft { background: #909ab2; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 7px 10px; align-items: center; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10px; color: var(--muted); font-weight: 610; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 4px; }
.next-panel { padding: 14px; }
.next-panel h2 { margin-bottom: 8px; }
.next-entry { display: grid; grid-template-columns: 32px minmax(0, 1fr) 13px; gap: 8px; align-items: center; padding: 8px 3px; color: var(--ink); border-radius: 7px; }
.next-entry:hover { background: var(--background); }
.next-entry + .next-entry { border-top: 1px solid #eff0f7; }
.next-date { display: grid; justify-items: center; color: var(--indigo); background: #eef0fa; border-radius: 7px; padding: 3px; line-height: 1.1; }
.next-date b { font-size: 14px; }
.next-date small { font-size: 9px; }
.next-text { min-width: 0; }
.next-text strong { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.next-text small { color: var(--muted); font-size: 10px; }
.next-entry > .icon { color: #8b91ab; width: 13px; height: 13px; }
.panel-note { color: var(--muted); font-size: 12px; }
.campaign-note { position: relative; isolation: isolate; display: grid; align-content: end; width: 100%; min-height: 116px; padding: 11px 13px; overflow: hidden; border-radius: 14px; background: var(--navy); color: #fff; }
.campaign-note::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(100deg, #11142feb, #11142f33), url("/assets/marche.webp") center 55% / cover; }
.campaign-note span { font-size: 11px; color: #e7e7f0; }
.campaign-note strong { font: 500 20px/1.18 var(--serif); }
.mobile-calendar-toggle { display: none; }
.empty { display: grid; justify-items: center; gap: 7px; text-align: center; padding: 34px 15px; border: 1px dashed #cfd4e8; border-radius: var(--radius); background: #fafbff; color: var(--muted); }
.empty > .icon { width: 30px; height: 30px; color: var(--indigo); margin-bottom: 4px; }
.empty strong { color: var(--navy); font: 22px/1.2 var(--serif); }
.empty p { max-width: 360px; }
.empty .button { margin-top: 5px; }
.stack { display: grid; gap: 17px; min-width: 0; }
.review-grid .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stack-heading { margin: 0 0 11px; font: 24px/1.25 var(--serif); color: var(--navy); }
.today-list { display: grid; gap: 8px; }
.today-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px; }
.today-entry .today-title { font-size: 15px; font-weight: 730; margin: 2px 0; overflow-wrap: anywhere; }
.today-entry .today-copy { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.today-entry .network .icon { width: 13px; height: 13px; }
.today-entry time { color: var(--muted); font-size: 11px; }
.today-entry .metadata-line { gap: 8px; }
.metadata-line { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.breadcrumb-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-weight: 650; font-size: 12px; }
.breadcrumb-back:hover { color: var(--indigo); }
.breadcrumb-back .icon { width: 15px; height: 15px; }
.detail-heading { margin-bottom: 19px; }
.detail-heading h1 { max-width: 900px; overflow-wrap: anywhere; }
.detail-content { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.detail-content .status { margin-left: auto; }
.detail-content .network { font-size: 13px; }
.detail-content .network .icon { width: 16px; height: 16px; }
.detail-social-preview { margin-top: 17px; min-width: 0; }
.meta-list { display: grid; gap: 11px; margin: 0; }
.meta-list div { display: grid; gap: 2px; }
.meta-list dt { font-size: 11px; font-weight: 700; color: var(--muted); }
.meta-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.info-panel { padding: 15px; display: grid; gap: 10px; }
.info-panel h2 { font: 20px/1.25 var(--serif); color: var(--navy); }
.linked-versions { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.linked-version {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.linked-version-copy { display: grid; gap: 5px; min-width: 0; }
.linked-version-copy > strong {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.linked-version-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; }
.linked-version-meta .status { font-size: 10px; padding-inline: 4px; white-space: normal; }
.linked-version .button { min-height: 44px; padding-inline: 8px; font-size: 11px; }
[data-editor-heading] { scroll-margin-block-start: 15px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.detail-content .actions { margin-top: 15px; }
.form-panel { display: grid; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.preview-editor-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 18px; }
.preview-editor-grid > * { min-width: 0; }
#editor-social-preview, .network-editor-preview { scroll-margin-top: 95px; }
.new-post-form { display: grid; gap: 17px; min-width: 0; }
.editor-autosave {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  min-height: 28px;
  color: var(--soft-ink);
  font-size: 12px;
}
.editor-autosave .button { min-height: 44px; }
.network-picker {
  min-inline-size: 0;
  margin: 0;
  padding: 10px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.network-picker > legend {
  max-width: 100%;
  margin-left: -5px;
  padding-inline: 5px;
  color: var(--navy);
  font: 20px/1.25 var(--serif);
}
.network-picker > p { margin-bottom: 9px; }
.network-options { display: flex; flex-wrap: wrap; gap: 8px; }
.network-option {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 112px;
  min-height: 44px;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid #d6dbeb;
  border-radius: 9px;
  background: #fcfcff;
  color: var(--ink);
  cursor: pointer;
}
.network-option:hover { border-color: #9da8ce; background: #f7f8fd; }
.network-option:has(input:checked) { border-color: #8c9ac8; background: #eef1fb; }
.network-option:has(input:checked) .network { color: var(--navy); font-weight: 720; }
.network-option:has(input:disabled) { opacity: .62; cursor: not-allowed; }
.network-option > input[type="checkbox"] {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin: 0;
  accent-color: var(--navy);
  cursor: inherit;
}
.network-option > input[type="checkbox"]:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; }
.network-option .network { font-size: 12px; white-space: nowrap; }
.new-post-title { display: grid; gap: 7px; min-width: 0; }
.new-post-title .field { max-width: 680px; min-width: 0; }
.network-editors { display: grid; gap: 23px; min-width: 0; }
.network-editors:empty { display: none; }
.network-editor { min-width: 0; }
.network-editor + .network-editor { padding-top: 19px; border-top: 1px solid var(--line); }
.network-editor-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 7px 12px;
  margin: 0 0 10px;
}
.network-editor-heading h2 {
  color: var(--navy);
  font: 22px/1.2 var(--serif);
}
.network-editor-heading .network { font-size: 14px; }
.network-editor-heading .network .icon { width: 17px; height: 17px; }
.network-editor-fields, .network-editor-preview { min-width: 0; }
.new-post-actions { display: grid; gap: 8px; min-width: 0; }
.new-post-actions .button { min-height: 44px; }
@media (max-width: 630px) {
  .new-post-form { gap: 13px; }
  .network-picker { padding: 8px 12px 12px; }
  .network-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(103px, 1fr)); gap: 6px; }
  .network-option { min-width: 0; padding-inline: 8px; gap: 6px; }
  .network-editor-heading { margin-bottom: 8px; }
  .network-editors { gap: 16px; }
  .network-editor + .network-editor { padding-top: 14px; }
  .network-editor .preview-editor-grid { gap: 13px; }
  .network-editor-fields .attachment-row .icon-button { width: 44px; height: 44px; min-height: 44px; }
}
@media (max-width: 360px) {
  .network-editor-fields .fields { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 1050px) {
  .preview-editor-grid { grid-template-columns: minmax(0, 1fr) minmax(320px, .85fr); }
  .preview-editor-jump { display: none; }
}
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field { display: grid; gap: 5px; }
.field > span, .field > label, label.legend { color: var(--ink); font-size: 13px; font-weight: 690; }
.field small { color: var(--muted); font-size: 11px; }
.field input, .field select, .field textarea { min-height: 42px; width: 100%; min-width: 0; border: 1px solid #d6dbeb; border-radius: 8px; padding: 8px 10px; background: #fcfcff; color: var(--ink); font-size: 14px; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: #6977b9; outline-offset: 1px; }
.field input[type="file"] { font-size: 12px; }
.field input[type="file"]::file-selector-button { background: #eef0fa; border: 0; padding: 5px 8px; border-radius: 4px; color: var(--indigo); margin-right: 8px; cursor: pointer; }
.field-error, .form-error { color: #9e3345; background: #fdeef0; border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.form-error:empty { display: none; }
.form-note { color: var(--muted); font-size: 12px; }
.feedback-box { white-space: pre-wrap; overflow-wrap: anywhere; border-radius: 8px; background: #fff4e8; border: 1px solid #f0dfc3; color: #754e28; padding: 9px 11px; }
.field-group { display: grid; gap: 7px; }
.field-group > strong { font-weight: 690; }
.attachment-list { display: grid; gap: 6px; }
.attachment-row { display: flex; min-width: 0; align-items: center; gap: 6px; border: 1px solid var(--line); padding: 4px 5px 4px 9px; border-radius: 7px; }
.attachment-row > span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-row .icon-button { width: 29px; height: 29px; min-height: 29px; }
.attachment-row .icon-button .icon { width: 13px; height: 13px; }
.access-gate, .access-settings { width: min(100%, 510px); }
.access-gate h2, .access-settings h2, .access-settings legend {
  color: var(--navy);
  font: 400 22px/1.2 var(--serif);
}
.access-accounts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; max-width: 1080px; }
.access-account { min-width: 0; padding: 17px 16px 14px; }
.access-account header { margin-bottom: 10px; }
.access-account h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 400 22px/1.18 var(--serif);
  color: var(--navy);
}
.access-account h2 .icon { width: 17px; height: 17px; color: var(--indigo); }
.access-account dl { display: grid; margin: 0; }
.access-account dl > div { min-width: 0; padding: 6px 0; border-top: 1px solid var(--line); }
.access-account dt, .access-note, .access-account-note { color: var(--muted); font-size: 12px; }
.access-account dt { font-weight: 640; }
.access-value {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
  min-height: 27px;
  overflow-wrap: anywhere;
}
.access-copy { width: 34px; min-height: 32px; height: 32px; }
.access-copy .icon { width: 14px; height: 14px; }
.access-account-note { padding-top: 7px; }
.access-note { margin-top: 13px; }
.access-settings fieldset { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.access-settings legend { margin-bottom: 8px; }
.access-member-list { display: grid; gap: 6px; margin-bottom: 6px; }
.access-member {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  align-items: center;
  min-height: 44px;
  gap: 9px;
  padding: 7px 10px;
  background: #fcfcff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.access-member:hover { border-color: #9da8ce; }
.access-member:has(input:checked) { border-color: #9ba7ca; background: #f1f3fb; }
.access-member:has(input:disabled) { cursor: default; }
.access-member > input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); cursor: inherit; }
.access-member > span { display: grid; gap: 1px; overflow-wrap: anywhere; }
.access-member small { color: var(--muted); }
.access-toolbar { justify-content: flex-end; }
@media (max-width: 760px) {
  .access-accounts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 630px) {
  .access-copy { width: 44px; height: 44px; min-height: 44px; }
  .access-toolbar .button { min-height: 44px; }
  .access-account { padding: 12px; }
}
.member-list { display: grid; gap: 7px; }
.member-row { display: grid; grid-template-columns: 33px minmax(0, 1fr) auto; gap: 8px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px; }
.member-row strong, .member-row .member-email { overflow-wrap: anywhere; }
.member-email { color: var(--muted); display: block; font-size: 12px; }
.member-row .actions { justify-content: flex-end; }
.member-role { color: var(--indigo); font-size: 12px; }
.login-layout { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(400px, .95fr) minmax(400px, 1.05fr); }
.login-main { display: grid; place-items: center; padding: 36px; background: #fafbff; }
.login-inner { width: min(100%, 420px); display: grid; gap: 17px; }
.login-brand { display: flex; gap: 11px; align-items: center; color: var(--navy); font: 600 18px/1.2 var(--serif); margin-bottom: 12px; }
.login-brand img { border-radius: 12px; width: 42px; height: 42px; object-fit: cover; object-position: center 54%; }
.login-inner h1 { font: 500 clamp(32px, 4.3vw, 53px)/1.05 var(--serif); letter-spacing: -.04em; color: var(--navy); }
.login-inner p { color: var(--muted); }
.login-form { display: grid; gap: 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.login-form .button { width: 100%; }
.login-picture { position: relative; isolation: isolate; display: grid; align-content: end; min-height: 500px; padding: 38px; background: var(--navy); color: #fff; overflow: hidden; }
.login-picture::before { position: absolute; z-index: -1; inset: 0; content: ""; background: linear-gradient(0deg,#10142fe8,#10142f00 57%), url("/assets/marche.webp") center 57%/cover; }
.login-picture strong { font: 500 clamp(27px, 4vw, 51px)/1.1 var(--serif); }
.login-picture span { color: #f4edc9; font-size: 14px; }
.notification { position: fixed; z-index: 6; bottom: 18px; right: 20px; max-width: 340px; background: var(--navy); color: #fff; border-radius: 11px; padding: 11px 14px; box-shadow: 0 8px 24px #17234d36; font-weight: 630; }
.notification.error { background: #9e3345; }
.alert-area { margin-bottom: 15px; }
.mobile-nav { display: none; }
@media (min-width: 1500px) { .workspace-grid { grid-template-columns: minmax(0, 1fr) 310px; gap: 25px; } .main { padding-inline: 35px; } }
@media (max-width: 1299px) { .layout { grid-template-columns: 208px minmax(0, 1fr); } .sidebar { padding-inline: 13px; } .topbar, .main { padding-inline: 23px; } .workspace-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 15px; } .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1040px) { .layout { grid-template-columns: 188px minmax(0, 1fr); } .topbar, .main { padding-inline: 17px; } .workspace-grid { grid-template-columns: minmax(0, 1fr) 220px; gap: 10px; } .calendar-panel, .next-panel { padding: 11px; } .card-grid { gap: 8px; } .toolbar { gap: 5px; } }
@media (max-width: 870px) { .layout { grid-template-columns: 169px minmax(0, 1fr); } .workspace-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } .aside-calendar { display: none; } .aside-calendar.calendar-open { display: grid; grid-row: 1; } .aside-calendar .next-panel, .aside-calendar .campaign-note { display: none; } .aside-calendar.calendar-open .calendar-panel { max-width: 320px; } .mobile-calendar-toggle { display: inline-flex; } .topbar, .main { padding-inline: 15px; } .review-grid .card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 630px) {
  .layout { display: block; }
  .sidebar { display: none; }
  .topbar { min-height: 53px; padding: 0 11px; }
  .breadcrumb { display: none; }
  .mobile-brand { display: inline-flex; align-items: center; gap: 6px; font-family: var(--serif); font-weight: 700; }
  .mobile-brand img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; object-position: center 53%; }
  .profile summary { gap: 3px; padding: 2px; }
  .profile summary strong, .profile summary > .icon { display: none; }
  .main { padding: 15px 11px calc(65px + env(safe-area-inset-bottom, 0px)); }
  .page-heading { align-items: flex-start; gap: 5px; margin-bottom: 16px; }
  .page-heading h1, .simple-page h1 { font-size: clamp(27px, 7.6vw, 34px); }
  .page-heading p { font-size: 12px; line-height: 1.35; }
  .page-heading .button { min-height: 37px; padding: 7px 8px; font-size: 11px; }
  .page-heading .button .icon { width: 15px; height: 15px; }
  .toolbar { margin-bottom: 11px; }
  .toolbar .spacer { display: none; }
  .filter { padding-left: 5px; }
  .filter select { font-size: 11px; min-width: 75px; max-width: 108px; }
  .filter > .icon { display: none; }
  .scope-control button { font-size: 11px; padding-inline: 7px; }
  .mobile-calendar-toggle { padding-inline: 8px; }
  .mobile-calendar-toggle .icon { width: 14px; height: 14px; }
  .day-section + .day-section { margin-top: 16px; padding-top: 15px; }
  .day-head { margin-bottom: 7px; }
  .day-head h2 { font-size: 21px; }
  .day-head time { font-size: 11px; }
  .card-body { padding: 8px 8px 6px; gap: 3px; }
  .card-title { font-size: 13px; }
  .card-caption { font-size: 11px; }
  .card-foot { min-height: 32px; padding: 5px 6px; }
  .status { font-size: 10px; }
  .card-grid { gap: 6px; }
  .card-media { aspect-ratio: 1.7; }
  .mobile-nav { position: fixed; bottom: 0; inset-inline: 0; z-index: 4; display: flex; justify-content: space-around; min-height: 52px; background: var(--navy); padding: 3px 4px calc(2px + env(safe-area-inset-bottom, 0px)); }
  .mobile-nav .nav-link { display: grid; justify-items: center; justify-content: center; min-height: 44px; min-width: 0; flex: 1; gap: 1px; padding: 3px; color: #d6dbef; font-size: clamp(9px, 2.8vw, 11px); }
  .mobile-nav .nav-link[aria-current=page] { background: #ffffff15; color: #fff; }
  .mobile-nav .nav-link[aria-current=page]::before { display: none; }
  .mobile-nav .nav-count { display: none; }
  .detail-content, .form-panel { padding: 12px; }
  .fields { gap: 7px; }
  .field input, .field textarea, .field select { font-size: 16px; padding: 7px; }
  .form-panel .button { min-height: 43px; }
  .member-row { grid-template-columns: 26px minmax(0, 1fr); }
  .member-row .actions { grid-column: 2; justify-content: flex-start; }
  .member-row .avatar { width: 25px; height: 25px; }
  .notification { bottom: 62px; right: 7px; left: 7px; max-width: none; }
  .login-layout { grid-template-columns: 1fr; }
  .login-main { padding: 18px; }
  .login-brand { margin-bottom: 2px; }
  .login-picture { min-height: 138px; padding: 15px 18px; }
}
@media (max-width: 390px) { .login-form { padding: 12px; } .toolbar .filter-reset { padding-inline: 4px; } .today-entry { padding: 9px; } .today-entry .button { padding-inline: 7px; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; } }
.history-list { padding-left: 0; margin: 0; list-style: none; color: var(--muted); font-size: 11px; }
.history-list li { display: grid; gap: 4px; padding: 8px 0; overflow-wrap: anywhere; }
.history-list li + li { border-top: 1px solid var(--line); }
.history-list li p { color: var(--soft-ink); white-space: pre-wrap; }
.member-role-select { display: block; min-height: 26px; padding: 1px 6px; margin-top: 4px; border: 1px solid var(--line); border-radius: 5px; color: var(--indigo); background: #f7f8fc; font-size: 12px; cursor: pointer; }
