:root {
  color-scheme: light;
  --canvas: #f6f7f2;
  --paper: #fff;
  --ink: #253c31;
  --muted: #667367;
  --accent: #2d604d;
  --line: #e2e8dc;
  --pale: #eaf0e5;
  --serif: Georgia, 'Times New Roman', serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
summary,
select {
  cursor: pointer;
}
button,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #b57830;
  outline-offset: 4px;
}
button {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
}
svg {
  flex-shrink: 0;
}
p,
h1,
h2,
h3 {
  margin: 0;
}
button,
a,
input,
textarea,
select,
h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}
.workspace {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: #edf1e7;
  padding: 35px 22px 25px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}
.brand {
  display: inline-flex;
  min-height: 44px;
  gap: 13px;
  align-items: center;
  font-size: 23px;
  font-weight: 720;
  letter-spacing: -0.6px;
  line-height: 1.15;
}
.brand-second {
  display: block;
}
.brand-mark {
  width: 39px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.brand-mark span {
  border: 2px solid #f2f3df;
  border-bottom: none;
  border-radius: 5px 5px 0 0;
  width: 17px;
  height: 27px;
  position: relative;
  margin-top: 9px;
}
.brand-mark span::after {
  content: '';
  width: 3px;
  height: 3px;
  background: #f2f3df;
  position: absolute;
  right: 3px;
  top: 11px;
  border-radius: 50%;
}
.sidebar-caption {
  margin: 47px 12px 15px;
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 700;
  color: #7b8673;
}
.navigation-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 48px;
  padding: 10px 14px;
  margin-bottom: 5px;
  border-radius: 9px;
  color: #566750;
  font-weight: 550;
}
.navigation-link:hover {
  background: #e3eadb;
}
.navigation-link[aria-current='page'] {
  background: #fff;
  color: #244c39;
  box-shadow: 0 2px 7px #314e2210;
}
.navigation-dot {
  width: 6px;
  height: 6px;
  background: #73935d;
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin: auto 13px 0;
  padding-top: 110px;
  color: #647559;
}
.small-leaf {
  color: #7e986b;
  font-size: 38px;
}
.sidebar-bottom p {
  margin-top: 10px;
  font-size: 15px;
}
.sidebar-version {
  display: block;
  font-size: 11px;
  color: #7f8b76;
  margin-top: 28px;
}
.workspace-body {
  min-width: 0;
}
.topbar {
  min-height: 99px;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.workspace-context {
  display: flex;
  gap: 23px;
  align-items: center;
  min-width: 0;
}
.workspace-context > div {
  min-width: 0;
}
.context-caption {
  display: block;
  font-size: 11px;
  color: #778171;
  margin-bottom: 3px;
}
.workspace-context strong {
  display: block;
  font-weight: 600;
  font-size: 14px;
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.context-divider {
  height: 31px;
  width: 1px;
  background: var(--line);
}
.topbar-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}
.help-menu {
  position: relative;
}
.help-menu summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #667360;
  list-style: none;
}
.help-menu summary::-webkit-details-marker {
  display: none;
}
.help-popover {
  position: absolute;
  right: 0;
  width: 270px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  z-index: 3;
  box-shadow: 0 12px 35px #19302018;
}
.help-popover p {
  margin-top: 10px;
  color: var(--muted);
}
.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f0e7d7;
  color: #7a6849;
  font-size: 14px;
  font-weight: 650;
}
.workspace-main {
  max-width: 1450px;
  margin: 0 auto;
  padding: 24px 42px 20px;
}
.preview-note {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 24px;
  color: #7b806f;
}
.preview-note > span {
  font-size: 9px;
  letter-spacing: 1.1px;
  font-weight: 700;
  padding: 4px 7px;
  background: #e9eddf;
  border-radius: 4px;
  flex-shrink: 0;
}
.preview-note p {
  font-size: 11px;
  line-height: 1.5;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 8px 0 32px;
}
.eyebrow {
  color: #7c856f;
  letter-spacing: 1.4px;
  font-size: 10px;
  font-weight: 700;
}
h1 {
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -0.9px;
  margin-top: 10px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 16px;
  max-width: 570px;
}
.button {
  min-height: 46px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease;
  flex-shrink: 0;
}
.button-primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 2px 3px #24432c08;
}
.button-primary:hover {
  background: #214c3b;
}
.button-secondary {
  color: var(--accent);
  background: #fff;
  border-color: #d6dfce;
}
.button-secondary:hover {
  background: var(--pale);
}
.section-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 0 0 16px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 600;
}
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 7px;
  padding: 0 5px;
  font-size: 11px;
  border-radius: 6px;
  color: #657c58;
  background: #e8eddf;
}
.quiet-label {
  color: #819075;
  font-size: 12px;
  font-weight: 400;
}
.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 405px;
  padding: 24px 24px 29px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
}
.place-illustration {
  width: 225px;
  height: 139px;
  margin-bottom: 7px;
}
.empty-state > .eyebrow {
  font-size: 9px;
  color: #8a927d;
}
.empty-state h2 {
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 10px 0 9px;
}
.empty-state p {
  color: #76806d;
  line-height: 1.65;
  font-size: 16px;
  max-width: 430px;
}
.empty-state .button {
  margin-top: 23px;
}
.empty-footnote {
  font-size: 11px;
  color: #98a08d;
  margin-top: 12px;
}
.getting-started {
  margin-top: 29px;
}
.getting-started > h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 17px;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 23px;
}
.step-card {
  display: flex;
  gap: 12px;
}
.step-number {
  color: #8e9b79;
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.15;
  padding-top: 1px;
}
.step-card h3 {
  font-size: 13px;
  font-weight: 650;
}
.step-card p {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.7;
  color: #808b77;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 30px;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: #96a08b;
}
.workspace-footer span:first-child {
  color: #76856b;
  font-weight: 600;
}
.mobile-bar {
  display: none;
}
.icon-button {
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  transform: translateY(-200%);
  border-radius: 6px;
}
.skip-link:focus {
  transform: translateY(0);
}
.form-dialog {
  color: var(--ink);
  width: min(540px, calc(100% - 32px));
  max-height: calc(100dvh - 32px);
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow-y: auto;
  background: #fff;
}
.form-dialog::backdrop {
  background: #23352870;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.dialog-heading h2 {
  font-size: 24px;
  line-height: 1.2;
  margin-top: 7px;
  font-weight: 600;
}
.dialog-description {
  margin: 17px 0 22px;
  font-size: 14px;
  color: var(--muted);
}
.site-form {
  display: flex;
  flex-direction: column;
}
.site-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.optional {
  color: #89917e;
  font-size: 11px;
  font-weight: 400;
  margin-left: 8px;
}
.site-form input,
.site-form textarea,
.site-form select {
  font-size: 16px;
  min-height: 46px;
  width: 100%;
  min-width: 0;
  border: 1px solid #d8e0d0;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
.site-form textarea {
  resize: vertical;
}
.site-form input::placeholder,
.site-form textarea::placeholder {
  color: #9aa391;
}
.field-hint,
.field-error {
  font-size: 12px;
  line-height: 1.6;
  margin: 7px 0 20px;
  color: #88927d;
}
.field-error {
  color: #a24732;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}
.success-notice {
  font-size: 14px;
  color: #375d3c;
  background: #e8f0df;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
}
.site-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.site-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  overflow: hidden;
}
.site-card-art {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #e9eedf;
  color: #759068;
  font-size: 11px;
  letter-spacing: 1.2px;
}
.site-card-art svg {
  width: 32px;
  height: 32px;
}
.site-card-body {
  padding: 20px;
}
.status-badge {
  display: inline-block;
  font-size: 10px;
  padding: 3px 7px;
  background: #f0eddf;
  color: #96825b;
  border-radius: 4px;
}
.site-card h2 {
  margin-top: 13px;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 600;
}
.site-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.site-card .button {
  margin-top: 20px;
  width: 100%;
}
.secondary-empty {
  min-height: 390px;
  justify-content: center;
}
.empty-icon {
  width: 60px;
  height: 60px;
  background: var(--pale);
  display: grid;
  place-items: center;
  border-radius: 18px;
  margin-bottom: 10px;
  color: #718b61;
}
.empty-icon svg {
  width: 29px;
  height: 29px;
}
.launch-page {
  max-width: 700px;
  padding: 80px 24px;
  margin: 10vh auto;
}
.launch-page p {
  color: var(--muted);
  margin-top: 25px;
}
.launch-page .button {
  margin-top: 30px;
}
@media (max-width: 1200px) {
  .workspace {
    grid-template-columns: 215px minmax(0, 1fr);
  }
  .sidebar {
    padding-inline: 16px;
  }
  .topbar {
    padding-inline: 28px;
  }
  .workspace-main {
    padding-inline: 28px;
  }
  .help-menu summary {
    font-size: 12px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading p {
    max-width: 410px;
  }
  .site-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 850px) {
  .workspace {
    display: block;
  }
  .mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 22px;
    background: #edf1e7;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 18px;
    gap: 10px;
  }
  .brand-mark {
    width: 33px;
    height: 38px;
    border-radius: 10px;
  }
  .brand-mark span {
    width: 15px;
    height: 24px;
  }
  .desktop-brand,
  .sidebar-bottom {
    display: none;
  }
  .sidebar {
    display: none;
    padding: 10px 18px 18px;
    border-bottom: 1px solid var(--line);
    border-right: none;
  }
  .sidebar[data-open='true'] {
    display: block;
  }
  .sidebar-caption {
    margin: 8px 13px 12px;
  }
  .topbar {
    min-height: 80px;
    gap: 14px;
    padding: 14px 22px;
  }
  .workspace-context {
    gap: 18px;
    flex: 1;
  }
  .workspace-context > div {
    flex: 1;
  }
  .workspace-context strong {
    font-size: 13px;
    white-space: normal;
    max-width: none;
    line-height: 1.5;
  }
  .topbar-actions {
    gap: 8px;
  }
  .help-menu summary {
    width: 44px;
    min-height: 44px;
    font-size: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
  }
  .help-menu summary::before {
    content: '?';
    font-size: 16px;
    font-weight: 600;
  }
  .help-popover {
    width: min(270px, calc(100vw - 36px));
  }
  .workspace-main {
    padding: 18px 22px;
  }
  .preview-note {
    align-items: flex-start;
    padding-bottom: 21px;
    gap: 10px;
  }
  .preview-note > span {
    font-size: 8px;
    margin-top: 1px;
  }
  .preview-note p {
    font-size: 10px;
  }
  .page-heading {
    margin-top: 6px;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 20px;
  }
  .page-heading p {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
  }
  .page-heading > .button {
    min-height: 48px;
  }
  .steps-grid {
    gap: 18px;
  }
  .step-card {
    gap: 9px;
  }
  .step-card p {
    font-size: 13px;
  }
  .empty-state p {
    font-size: 16px;
  }
}
@media (max-width: 580px) {
  .workspace-main {
    padding: 17px 18px 24px;
  }
  .mobile-bar {
    padding: 14px 18px;
  }
  .topbar {
    padding: 13px 18px;
  }
  .workspace-context {
    gap: 12px;
  }
  .avatar {
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
  h1 {
    font-size: 30px;
    letter-spacing: -0.7px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .section-toolbar {
    font-size: 13px;
    gap: 8px;
  }
  .section-toolbar > .quiet-label {
    font-size: 10px;
  }
  .empty-state {
    min-height: 420px;
    padding: 22px 18px 28px;
  }
  .place-illustration {
    width: 200px;
    height: 128px;
  }
  .empty-state h2 {
    font-size: 27px;
    margin-block: 12px;
  }
  .empty-state p {
    font-size: 16px;
    line-height: 1.6;
  }
  .empty-state .button {
    padding-inline: 21px;
    margin-top: 24px;
    font-size: 15px;
    min-height: 48px;
  }
  .empty-footnote {
    font-size: 10px;
    margin-top: 14px;
  }
  .desktop-break {
    display: none;
  }
  .getting-started {
    margin-top: 28px;
  }
  .getting-started > h2 {
    font-size: 16px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .step-card {
    gap: 15px;
    padding-block: 4px;
  }
  .step-number {
    font-size: 25px;
  }
  .step-card h3 {
    font-size: 15px;
  }
  .step-card p {
    font-size: 14px;
    margin-top: 4px;
  }
  .workspace-footer {
    margin-top: 24px;
    padding-top: 19px;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 10px;
  }
  .form-dialog {
    padding: 22px 19px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .dialog-heading h2 {
    font-size: 22px;
  }
  .dialog-description {
    font-size: 14px;
  }
  .site-form label {
    font-size: 16px;
  }
  .site-grid {
    grid-template-columns: 1fr;
  }
  .site-card .button {
    font-size: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

.module-catalog {
  display: flex;
  flex-direction: column;
  gap: 38px;
}
.capability-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}
.capability-symbol {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  background: var(--pale);
  color: var(--accent);
  border-radius: 15px;
  flex-shrink: 0;
}
.capability-summary > div {
  flex: 1;
  min-width: 0;
}
.capability-summary h2 {
  margin-top: 7px;
  font-size: 23px;
  font-weight: 600;
}
.capability-summary p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  max-width: 580px;
}
.capability-badge {
  display: inline-flex;
  margin-top: 17px;
  background: #edf3e8;
  color: var(--accent);
  border-radius: 24px;
  padding: 6px 12px;
  font-size: 14px;
}
.capability-summary .button {
  flex-shrink: 0;
  font-size: 16px;
  min-height: 48px;
}
.module-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 23px;
}
.module-section-heading h2 {
  font-size: 24px;
  font-weight: 600;
}
.module-section-heading p {
  color: var(--muted);
  margin-top: 9px;
  font-size: 16px;
}
.module-section-heading .button {
  font-size: 16px;
  min-height: 48px;
  flex-shrink: 0;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.module-card {
  min-width: 0;
  padding: 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.module-card-mark {
  color: #799566;
  font-size: 25px;
}
.module-card h3 {
  font-size: 21px;
  font-weight: 600;
  margin-top: 20px;
}
.module-card p {
  color: var(--muted);
  font-size: 16px;
  margin: 11px 0 23px;
  flex: 1;
}
.module-context-label {
  color: #5a503e;
  font-size: 16px;
  background: #f5f2e9;
  border-radius: 7px;
  padding: 7px 10px;
}
.module-feedback {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.module-actions .button,
.module-toggle {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  font-size: 16px;
}
.module-toggle {
  margin-top: 14px;
}
.module-card .module-restriction {
  flex: none;
  margin: 12px 0 0;
}
.module-preservation-note {
  color: var(--muted);
  font-size: 16px;
  max-width: 790px;
}
@media (max-width: 1100px) {
  .capability-summary {
    flex-wrap: wrap;
  }
  .capability-summary > div {
    flex-basis: calc(100% - 85px);
  }
  .capability-summary .button {
    margin-left: 76px;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .capability-summary {
    padding: 23px 20px;
    gap: 18px;
  }
  .capability-summary > div {
    flex-basis: 100%;
  }
  .capability-summary .button {
    margin-left: 0;
    width: 100%;
  }
  .module-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
  .module-section-heading .button {
    width: 100%;
  }
  .module-card {
    padding: 24px 21px;
  }
  .module-catalog {
    gap: 29px;
  }
}

.site-context-picker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 650px;
  margin-bottom: 28px;
}
.site-context-picker label {
  font-size: 16px;
  font-weight: 600;
}
.site-context-picker select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 13px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
}
.current-site-full-name {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.site-list-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.site-list-toolbar p {
  color: var(--muted);
  font-size: 16px;
}
.site-list-toolbar strong {
  color: var(--ink);
  font-weight: 600;
}
.site-list-toolbar .button {
  font-size: 16px;
  min-height: 48px;
}
.access-notice {
  padding: 17px 20px;
  border: 1px solid #e4dcc9;
  border-radius: 12px;
  background: #faf7ee;
  color: #786745;
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 25px;
}
.real-site-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}
.real-site-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 27px;
  background: #fff;
  min-width: 0;
}
.real-site-card[data-selected='true'] {
  border-color: #71945f;
  box-shadow: 0 0 0 1px #71945f;
}
.site-card-heading {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.site-card-symbol {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--pale);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.site-state-label {
  color: #6e805f;
  background: #eef3e8;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 14px;
}
.real-site-card h2 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.4;
  margin: 22px 0 12px;
}
.real-site-card p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
}
.real-site-card .site-zone {
  margin-top: 9px;
  font-size: 14px;
}
.site-card-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 25px;
  width: 100%;
}
.site-card-actions .button {
  min-height: 48px;
  font-size: 16px;
}
.load-more-sites {
  margin: 27px auto 0;
  min-height: 48px;
  font-size: 16px;
}
.site-editor-dialog {
  max-height: calc(100dvh - 36px);
  overflow: auto;
}
.site-editor-dialog .site-form select {
  width: 100%;
  font-size: 16px;
  min-height: 48px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5dece;
  border-radius: 9px;
  padding: 11px 14px;
}
.site-editor-dialog .site-form label {
  margin-top: 17px;
  font-size: 16px;
}
.site-editor-dialog .site-form label:first-child {
  margin-top: 0;
}
.timezone-suggestion {
  margin-top: 10px;
  min-height: 44px;
  border: 0;
  background: var(--pale);
  color: var(--accent);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 16px;
  text-align: left;
}
.site-save-error {
  margin-top: 15px;
}
.site-save-error .text-button {
  font-size: 16px;
}
.site-editor-dialog .dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  position: sticky;
  bottom: -1px;
  background: #fff;
  padding: 20px 0 3px;
  margin-top: 10px;
}
@media (max-width: 1050px) {
  .real-site-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 580px) {
  .site-list-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
  }
  .site-list-toolbar .button {
    width: 100%;
  }
  .real-site-card {
    padding: 24px 20px;
  }
  .site-card-actions {
    flex-direction: column;
  }
  .site-card-actions .button {
    width: 100%;
  }
  .site-editor-dialog {
    max-height: calc(100dvh - 20px);
  }
  .site-editor-dialog .dialog-actions {
    gap: 10px;
    flex-wrap: wrap;
  }
  .site-editor-dialog .dialog-actions .button {
    min-height: 48px;
    flex: 1;
    font-size: 16px;
  }
}

.guide-editor {
  max-width: 960px;
  min-width: 0;
}
.guide-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  position: sticky;
  top: 10px;
  z-index: 2;
}
.guide-editor-toolbar p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 7px;
}
.draft-status {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}
.draft-status-error,
.draft-status-conflict {
  color: #9b4b2d;
}
.guide-privacy-note {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 20px 0;
}
.editor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}
.editor-tabs button,
.editor-inline-actions button {
  min-height: 44px;
  padding: 10px 13px;
  font-size: 16px;
  line-height: 1.4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
}
.editor-tabs button[aria-pressed='true'] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.guide-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-editor-fields label {
  font-size: 16px;
  font-weight: 600;
}
.guide-editor-fields input:not([type='checkbox']),
.guide-editor-fields select,
.guide-editor-fields textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid #d5dece;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font-size: 16px;
  line-height: 1.6;
}
.guide-editor-fields input[readonly],
.guide-editor-fields textarea[readonly] {
  background: #f5f6f0;
}
.guide-editor-fields textarea {
  resize: vertical;
  scroll-margin-top: 160px;
}
.guide-editor-fields input,
.guide-editor-fields select {
  scroll-margin-block: 180px 60px;
}
.wifi-block-fields,
.notice-block-fields,
.link-block-fields,
.contact-block-fields,
.catalog-block-fields,
.catalog-item-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.guide-notice {
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--accent);
  border-radius: 10px;
  background: #f0f5ed;
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.guide-notice-attention {
  background: #fff7e9;
  border-color: #d5b782;
  border-inline-start-color: #93611f;
}
.guide-notice-label {
  margin-bottom: 8px;
}
.guide-notice-text {
  white-space: pre-wrap;
}
.guide-link {
  margin: 18px 0;
  min-width: 0;
  font-size: 18px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.link-block-fields .field-hint,
.contact-block-fields .field-hint,
.catalog-block-fields .field-hint {
  font-size: 16px;
  line-height: 1.6;
}
.guide-link a {
  display: block;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guide-link a:hover {
  background: #f0f5ed;
}
.guide-link-incomplete > span {
  display: block;
  color: var(--muted);
  font-size: 16px;
}
.guide-contact {
  min-width: 0;
  margin: 18px 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f5f7ef;
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.guide-contact dl {
  margin: 12px 0 0;
}
.guide-contact dt {
  font-size: 16px;
  color: var(--muted);
  margin-top: 10px;
}
.guide-contact dd {
  margin: 0;
  min-width: 0;
}
.guide-contact a {
  display: block;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 0;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.catalog-item-editor {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.catalog-item-editor h4 {
  margin: 0 0 6px;
  font-size: 18px;
}
.catalog-item-editor .editor-inline-actions button {
  flex: 1 1 110px;
}
.guide-catalog {
  margin: 18px 0;
  min-width: 0;
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.guide-catalog ul {
  padding-inline-start: 24px;
}
.guide-catalog li {
  padding-inline-start: 6px;
  margin: 18px 0;
  min-width: 0;
}
.guide-catalog-name,
.guide-catalog-description {
  white-space: pre-wrap;
}
.guide-catalog-price {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 700;
}
.guide-catalog-price-pending {
  margin-top: 8px;
  color: var(--muted);
  font-size: 16px;
}
.steps-block-fields,
.step-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.step-editor {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
}
.step-editor h4 {
  margin: 0 0 6px;
  font-size: 18px;
}
.step-editor .editor-inline-actions button {
  flex: 1 1 100px;
}
.guide-steps {
  margin: 20px 0;
  padding-inline-start: 30px;
  font-size: 18px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.guide-steps li {
  padding-inline-start: 6px;
  margin: 18px 0;
  min-width: 0;
}
.guide-steps li::marker {
  color: var(--accent);
  font-weight: 700;
}
.guide-step-title,
.guide-step-text {
  white-space: pre-wrap;
}
.guide-step-title + .guide-step-text {
  margin-top: 6px;
}
.guide-wifi {
  min-width: 0;
  padding: 22px;
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f5f7ef;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.guide-wifi dl {
  margin: 16px 0;
}
.guide-wifi dt {
  color: var(--muted);
  margin-top: 12px;
}
.guide-wifi dd {
  margin: 4px 0;
}
.wifi-value {
  font-size: 18px;
  white-space: pre-wrap;
  user-select: text;
}
.guide-wifi .button {
  min-height: 44px;
  min-width: 44px;
  font-size: 16px;
  margin-bottom: 10px;
  max-width: 100%;
  white-space: normal;
}
.wifi-copy-fallback {
  margin-top: 12px;
}
.wifi-copy-fallback label {
  display: block;
}
.wifi-copy-fallback textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  scroll-margin-block: 80px;
}
.guide-section-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin: 10px 0;
  min-width: 0;
}
.section-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}
.section-editor-heading > span {
  font-size: 14px;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 600;
}
.editor-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.editor-checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 400 !important;
}
.editor-checkbox input {
  width: 22px;
  height: 22px;
  accent-color: var(--accent);
}
.text-block-editor {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fafbf7;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.editor-text-count {
  font-size: 16px;
  color: var(--muted);
}
.guide-editor .button {
  font-size: 16px;
  min-height: 48px;
}
.guide-editor button:disabled {
  opacity: 0.5;
  cursor: default;
}
.draft-error-panel {
  padding: 20px;
  border: 1px solid #cba880;
  border-radius: 12px;
  background: #fff9ef;
  margin: 20px 0;
  font-size: 16px;
  line-height: 1.7;
}
.draft-error-panel > .editor-inline-actions {
  margin-top: 15px;
}
.draft-comparison {
  margin-top: 20px;
}
.saved-guide-preview {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.75;
}
.saved-guide-preview h2 {
  font-size: 28px;
  line-height: 1.4;
  margin-bottom: 25px;
}
.saved-guide-preview h3 {
  font-size: 22px;
  line-height: 1.4;
  margin: 25px 0 15px;
}
.guide-rich-text p {
  white-space: pre-wrap;
  margin: 12px 0;
}
@media (max-width: 580px) {
  .guide-editor-toolbar {
    top: 5px;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }
  .guide-editor-toolbar .button {
    width: 100%;
  }
  .guide-section-editor {
    padding: 18px 14px;
  }
  .text-block-editor {
    padding: 15px 12px;
  }
  .saved-guide-preview {
    padding: 22px 18px;
  }
  .editor-tabs {
    flex-direction: column;
  }
  .editor-inline-actions {
    width: 100%;
  }
  .editor-inline-actions button {
    flex: 1;
  }
  .guide-editor-toolbar p {
    font-size: 14px;
  }
}
@media (max-height: 600px) {
  .guide-editor-toolbar {
    position: static;
  }
}
.publication-panel {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 24px;
  max-width: 960px;
  min-width: 0;
}
.publication-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.publication-heading h2 {
  font-size: 25px;
  font-weight: 600;
  margin: 10px 0;
}
.publication-heading p,
.publication-hint {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}
.publication-panel > label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  margin-top: 15px;
}
.publication-panel > input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 16px;
  padding: 12px;
  color: var(--ink);
  background: #fafbf7;
  margin: 8px 0 14px;
}
.publication-hint {
  margin: 16px 0;
}
.publication-dialog > p {
  font-size: 16px;
  line-height: 1.7;
  margin: 17px 0;
}
.publication-dialog .editor-checkbox {
  font-size: 16px;
  line-height: 1.6;
  margin: 20px 0;
}
.publication-dialog .editor-inline-actions {
  margin-top: 25px;
}
.publication-panel .button {
  min-height: 48px;
  font-size: 16px;
}
.public-guide {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 34px;
  color: var(--ink);
}
.public-guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.public-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--accent);
}
.public-guide-header > span:last-child {
  font-size: 14px;
  color: var(--muted);
}
.public-guide-intro {
  padding: 52px 0 32px;
}
.public-guide-intro h1 {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
  margin: 14px 0 20px;
  font-weight: 600;
}
.public-guide-intro > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}
.public-guide-navigation {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 30px;
}
.public-guide-navigation a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  color: var(--accent);
  font-size: 16px;
  overflow-wrap: anywhere;
}
.public-guide-content > section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 30px;
  margin: 0 0 20px;
  scroll-margin-top: 20px;
  overflow-wrap: anywhere;
}
.public-guide-content h2 {
  font-size: 26px;
  line-height: 1.4;
  margin-bottom: 20px;
  font-weight: 600;
}
.public-guide-content .guide-rich-text {
  font-size: 18px;
  line-height: 1.8;
}
.public-guide-top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  color: var(--accent);
  font-size: 16px;
}
.public-guide footer {
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}
.public-unavailable {
  max-width: 580px;
  padding: 70px 25px;
  margin: 0 auto;
}
.public-unavailable h1 {
  font-size: 36px;
  line-height: 1.3;
  margin: 35px 0 20px;
}
.public-unavailable p {
  font-size: 18px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 580px) {
  .publication-panel {
    padding: 20px 16px;
  }
  .publication-heading {
    flex-direction: column;
    align-items: flex-start;
  }
  .publication-heading .button {
    width: 100%;
  }
  .public-guide {
    padding: 0 18px;
  }
  .public-guide-header {
    padding: 23px 0;
  }
  .public-guide-header > span:last-child {
    display: none;
  }
  .public-guide-intro {
    padding: 35px 0 25px;
  }
  .public-guide-intro h1 {
    font-size: 34px;
  }
  .public-guide-content > section {
    padding: 24px 20px;
  }
  .public-guide-content h2 {
    font-size: 24px;
  }
  .public-guide-content .guide-rich-text {
    font-size: 17px;
  }
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.auth-story {
  background: #e7eddf;
  padding: 44px 54px;
  display: flex;
  flex-direction: column;
}
.auth-story-content {
  margin: auto 0;
  max-width: 520px;
  padding: 80px 0;
}
.auth-story-content h2 {
  font-family: var(--serif);
  font-size: clamp(35px, 4vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  margin: 24px 0;
  letter-spacing: -1px;
}
.auth-story-content p {
  color: #68795e;
  font-size: 18px;
  line-height: 1.8;
}
.auth-story-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 35px;
}
.auth-story-tags span {
  border: 1px solid #cdd9c1;
  border-radius: 25px;
  padding: 8px 13px;
  color: #637956;
  font-size: 13px;
}
.auth-story-footer {
  font-size: 13px;
  color: #7a886d;
}
.auth-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 36px;
}
.auth-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
}
.auth-form h1 {
  margin-top: 14px;
  font-size: 34px;
}
.auth-description {
  color: var(--muted);
  font-size: 16px;
  margin: 18px 0 29px;
  line-height: 1.7;
}
.auth-description strong {
  color: var(--ink);
  font-weight: 600;
}
.auth-form label {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 9px;
}
.auth-form input {
  min-height: 52px;
  min-width: 0;
  font-size: 16px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d5dece;
  border-radius: 9px;
  padding: 13px 15px;
  width: 100%;
}
.auth-form .otp-input {
  font-size: 27px;
  letter-spacing: 10px;
  padding-left: 24px;
}
.auth-submit {
  margin-top: 23px;
  min-height: 52px;
  font-size: 16px;
  width: 100%;
}
.auth-submit:disabled {
  opacity: 0.65;
}
.auth-error {
  color: #9d4530;
  background: #fbefe9;
  padding: 12px 14px;
  border-radius: 8px;
  margin-top: 15px;
  font-size: 15px;
}
.auth-footnote {
  color: #8d9786;
  font-size: 13px;
  margin-top: 27px;
  line-height: 1.7;
}
.auth-secondary {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 16px;
}
.text-button {
  background: none;
  border: none;
  min-height: 44px;
  padding: 5px 0;
  color: var(--accent);
  font-size: 14px;
  text-align: left;
}
.text-button:disabled {
  color: #8d9786;
}
.preview-link {
  font-size: 14px;
  margin-top: 32px;
  padding: 12px;
  text-decoration: underline;
  color: #71816a;
  min-height: 44px;
}
.onboarding-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px;
  min-height: 100dvh;
}
.onboarding-page > header {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
}
.onboarding-card {
  display: flex;
  justify-content: center;
  max-width: 600px;
  padding: 50px;
  margin: 70px auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.account-controls {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.account-controls > span {
  color: var(--muted);
  font-size: 14px;
  min-width: 0;
}
.sign-out p {
  font-size: 13px;
  color: #9d4530;
  margin-top: 6px;
}
.organization-settings {
  max-width: 700px;
  padding: 30px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.organization-settings > h2 {
  font-size: 22px;
  font-weight: 600;
}
.organization-settings > p {
  color: var(--muted);
  margin: 10px 0 25px;
  font-size: 16px;
}
.organization-settings .site-form label {
  font-size: 16px;
}
.settings-save {
  align-self: flex-start;
  margin-top: 23px;
  font-size: 16px;
  min-height: 48px;
}
.organization-switcher {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 400px;
  margin-bottom: 25px;
  font-size: 14px;
  color: var(--muted);
}
.organization-switcher select {
  min-height: 48px;
  font-size: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  width: 100%;
  color: var(--ink);
  background: #fff;
}
.workspace-welcome {
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.workspace-welcome h2 {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 600;
  margin-top: 24px;
}
.workspace-welcome p {
  color: var(--muted);
  margin-top: 15px;
  font-size: 16px;
}
.workspace-welcome .button {
  margin-top: 25px;
}
@media (max-width: 850px) {
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 22px;
  }
  .auth-story-content,
  .auth-story-footer {
    display: none;
  }
  .auth-panel {
    justify-content: flex-start;
    padding: 45px 25px;
    min-height: calc(100dvh - 88px);
  }
  .auth-form h1 {
    font-size: 30px;
  }
  .onboarding-card {
    margin: 45px auto;
    padding: 30px;
  }
}
@media (max-width: 580px) {
  .auth-panel {
    padding: 38px 22px;
  }
  .auth-secondary {
    gap: 5px;
  }
  .auth-form .otp-input {
    letter-spacing: 8px;
  }
  .onboarding-page {
    padding: 20px;
  }
  .onboarding-page .brand {
    font-size: 18px;
  }
  .onboarding-card {
    padding: 26px 20px;
    margin: 35px auto;
  }
  .account-controls {
    flex-wrap: wrap;
  }
  .organization-settings {
    padding: 24px 20px;
  }
  .workspace-welcome {
    padding: 26px 21px;
  }
  .workspace-welcome h2 {
    font-size: 25px;
  }
  .settings-save {
    width: 100%;
  }
}

.image-block-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.image-block-fields .field-hint {
  font-size: 16px;
  line-height: 1.6;
}
.image-file-input {
  display: none;
}
.image-editor-preview {
  display: block;
  width: 100%;
  max-height: 420px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.guide-image {
  margin: 20px 0;
  min-width: 0;
}
.guide-image picture {
  display: block;
}
.guide-image img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 10px;
}
.guide-image figcaption {
  font-size: 16px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin-top: 8px;
}
.guide-image a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 8px;
  text-decoration: underline;
}
.guide-image-placeholder {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.media-library {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.media-cards {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
}
.media-card {
  min-width: 0;
  padding: 18px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.media-card img {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 8px;
}
.media-card h3 {
  font-size: 18px;
}
.media-usage {
  font-size: 16px;
}

.guide-qr-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-block: 18px;
  min-width: 0;
}
.guide-qr-panel summary {
  min-height: 44px;
  cursor: pointer;
  padding: 10px;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.guide-qr-panel summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.guide-qr-panel > .button {
  margin: 8px 8px 0 0;
}
.guide-qr-downloads {
  margin-block: 12px;
  min-width: 0;
}
.guide-qr-downloads a[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
}
.guide-qr-image {
  display: block;
  width: min(100%, 320px);
  height: auto;
  aspect-ratio: 1;
  background: white;
  margin: 16px auto;
}
.guide-qr-page {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 20px;
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 16px;
}
.guide-qr-tools {
  margin-bottom: 20px;
}
.guide-qr-tools > .button {
  margin-block: 8px;
}
.guide-qr-card {
  color: #000;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 12px;
  padding: clamp(16px, 4vw, 36px);
  text-align: center;
  break-inside: avoid;
}
.guide-qr-card h1 {
  color: #000;
  font-size: 28px;
  overflow-wrap: anywhere;
}
.guide-qr-card .eyebrow {
  color: #000;
}
.guide-qr-readable-url {
  color: #000;
  font-size: 16px;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .publication-panel > .editor-inline-actions > * {
    flex: 1 1 140px;
    min-width: 0;
  }
}
@media print {
  body:has(.guide-qr-page) {
    background: #fff;
    color: #000;
  }
  .guide-qr-tools {
    display: none !important;
  }
  .guide-qr-page {
    width: 100%;
    max-width: 160mm;
    padding: 0;
    margin: 0 auto;
  }
  .guide-qr-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    print-color-adjust: exact;
  }
  .guide-qr-card .guide-qr-image {
    width: 85mm;
    max-width: 100%;
  }
}

.publication-history {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-block: 18px;
  min-width: 0;
}
.publication-history summary {
  min-height: 44px;
  padding: 10px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
}
.publication-history summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.publication-history p {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.publication-history button {
  min-width: 44px;
  min-height: 44px;
  font-size: 16px;
  padding: 10px 12px;
  margin: 4px 8px 4px 0;
}
.publication-history-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.publication-history-list > li {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-block: 12px;
  padding: 14px;
  min-width: 0;
}
.publication-history-list h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.history-dialog {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
.history-dialog .saved-guide-preview {
  margin: 12px 0;
  padding: 16px;
}
.history-dialog .editor-inline-actions > * {
  flex: 1 1 160px;
  min-width: 0;
}
.lifecycle-controls {
  border-top: 1px solid var(--line);
  margin-block: 18px;
  padding-block: 14px;
  min-width: 0;
}
.lifecycle-controls p,
.lifecycle-dialog p {
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.lifecycle-status {
  font-weight: 600;
}
.lifecycle-controls button,
.lifecycle-dialog button {
  min-height: 44px;
  min-width: 44px;
  font-size: 16px;
  padding: 10px 14px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.lifecycle-dialog {
  max-height: calc(100dvh - 24px);
}
.lifecycle-controls button:disabled {
  opacity: 0.5;
  cursor: default;
}
.lifecycle-dialog .editor-inline-actions {
  margin-top: 24px;
}
.lifecycle-dialog .editor-inline-actions > * {
  flex: 1 1 160px;
  min-width: 0;
}
.lifecycle-resource-name {
  font-weight: 600;
}
.site-list-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.site-list-filter label {
  font-size: 16px;
}
.site-list-filter select {
  min-height: 44px;
  max-width: 100%;
  font-size: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.organization-export {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  min-width: 0;
}
.organization-export h2 {
  font-size: 24px;
  margin-bottom: 14px;
}
.organization-export p {
  font-size: 16px;
  line-height: 1.65;
  margin-block: 12px;
  overflow-wrap: anywhere;
}
.organization-export .editor-inline-actions {
  margin-block: 20px;
  gap: 12px;
}
.organization-export button,
.organization-export .button {
  min-height: 44px;
  min-width: 44px;
  max-width: 100%;
  font-size: 16px;
  white-space: normal;
}
.organization-export button:disabled {
  opacity: 0.5;
  cursor: default;
}
.organization-export .button-primary {
  color: #fff;
  background: var(--accent);
}
.export-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 16px;
}
.export-list > li {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.export-list h3 {
  font-size: 18px;
  overflow-wrap: anywhere;
}
@media (max-width: 580px) {
  .organization-export {
    padding: 18px;
  }
  .organization-export .editor-inline-actions > * {
    flex: 1 1 100%;
  }
}
