/* Hedera Press live editor and hosted-site studio. */



/* Hosted-site studio: compact palette explorer and member-scoped site list. */
.hosting-page { width: min(1180px, calc(100% - 32px)); margin: 34px auto 72px; }
.hosting-layout { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.hosting-site-list { display: grid; gap: 10px; }
.hosting-site-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; }
.hosting-site-card strong, .hosting-site-card small { display: block; }
.hosting-site-card small { margin-top: 3px; color: var(--muted); }
.hosting-subdomain-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 7px; }
.hosting-subdomain-input b { font-size: 13px; white-space: nowrap; color: var(--muted); }
.hosting-palette-picker { border: 0; padding: 0; margin: 10px 0 18px; }
.hosting-palette-picker legend { margin-bottom: 9px; font-weight: 700; }
.hosting-palette-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 7px; max-height: 330px; overflow: auto; padding: 2px; }
.hosting-palette-choice { display: grid; gap: 5px; padding: 6px; min-width: 0; color: var(--hosting-text); background: var(--hosting-bg); border: 1px solid var(--hosting-bg); border-radius: 6px; cursor: pointer; }
.hosting-palette-choice:has(input:checked) { outline: 2px solid var(--hosting-accent); outline-offset: 2px; }
.hosting-palette-choice input { position: absolute; opacity: 0; pointer-events: none; }
.hosting-palette-choice > span { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3px; height: 28px; padding: 4px; border: 1px solid color-mix(in srgb, var(--hosting-text) 16%, transparent); background: var(--hosting-surface); border-radius: 3px; }
.hosting-palette-choice i { display: block; background: var(--hosting-accent); border-radius: 2px; }
.hosting-palette-choice i:nth-child(2) { opacity: .55; }
.hosting-palette-choice i:nth-child(3) { opacity: .25; }
.hosting-palette-choice small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
@media (max-width: 760px) {
  .hosting-page { width: min(100% - 24px, 1180px); margin-top: 22px; }
  .hosting-layout { grid-template-columns: 1fr; gap: 22px; }
  .hosting-palette-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); max-height: 280px; }
}
.social-reply-context { margin: 2px 0 7px; color: var(--muted); font-size: .82rem; }
.social-reply-context a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.social-mobile-reply-bar { display: none; }
@media (max-width: 760px) {
  body.social-client-mode .social-mobile-reply-bar { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 8px 10px 8px 8px; border: 1px solid color-mix(in srgb, var(--line) 76%, var(--ink) 24%); border-radius: 999px; background: color-mix(in srgb, var(--panel) 94%, var(--ink) 6%); box-shadow: 0 12px 32px rgba(0,0,0,.28); }
  .social-mobile-reply-bar .social-avatar { flex: 0 0 40px; width: 40px; height: 40px; }
  .social-mobile-reply-trigger { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--muted); text-align: left; font: inherit; font-size: .98rem; padding: 10px 2px; }
  .social-mobile-reply-expand { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; border: 0; background: transparent; color: var(--muted); padding: 8px; }
  .social-mobile-reply-expand svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
  body.social-client-mode .social-single-post-view { padding-bottom: 92px; }
}
.admin-palette-dock { position: fixed; z-index: 120; right: 18px; bottom: 18px; display: flex; align-items: center; gap: 8px; max-width: min(360px, calc(100vw - 36px)); padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel, #fff); color: var(--ink); box-shadow: 0 12px 34px rgba(0,0,0,.2); }
.admin-palette-arrow { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--line); border-radius: 7px; background: var(--field); color: var(--ink); cursor: pointer; font-size: 20px; line-height: 1; }
.admin-palette-dock-body { min-width: 0; display: grid; gap: 2px; }
.admin-palette-dock-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.admin-palette-dock-body > span:nth-child(2) { color: var(--muted); font-size: 11px; }
.admin-palette-dock [data-admin-palette-swatches] { display: flex; gap: 3px; }
.admin-palette-dock [data-admin-palette-swatches] i { display: block; width: 18px; height: 8px; border-radius: 2px; }
@media (max-width: 620px) { .admin-palette-dock { right: 10px; bottom: 10px; left: 10px; max-width: none; } }

/* Independent live editor for the general Hedera admin. */
.admin-editor-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: inherit;
  padding: 5px 9px;
  cursor: pointer;
}
.admin-editor-toggle:hover,
.admin-editor-toggle:focus-visible,
body.admin-editor-open .admin-editor-toggle {
  background: rgba(var(--white-rgb), .12);
  outline: none;
}
.admin-editor-toggle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.admin-editor-panel {
  position: fixed;
  z-index: 59;
  top: var(--admin-toolbar-height);
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(370px, calc(100vw - 26px));
  border-left: 1px solid rgba(var(--white-rgb), .16);
  background: var(--admin-bg);
  color: var(--admin-fg);
  box-shadow: -18px 0 52px rgba(var(--black-rgb), .26);
  transform: translateX(calc(100% + 2px));
  transition: transform .18s ease;

  --editor-control-bg: #f2c84b;
  --editor-control-fg: #1f1d19;
  --editor-secondary-bg: transparent;
  --editor-secondary-fg: #f8f0e4;
  --editor-secondary-line: rgba(248, 240, 228, .42);
  --editor-secondary-hover: rgba(248, 240, 228, .12);
}
body.admin-editor-open .admin-editor-panel { transform: translateX(0); }
.admin-editor-head,
.admin-editor-section-head,
.admin-editor-panel footer,
.admin-editor-select-row,
.admin-editor-mode {
  display: flex;
  align-items: center;
}
.admin-editor-head {
  justify-content: space-between;
  min-height: 58px;
  border-bottom: 1px solid rgba(var(--white-rgb), .15);
  padding: 10px 14px;
}
.admin-editor-head span { display: grid; gap: 1px; }
.admin-editor-head small { color: color-mix(in srgb, var(--admin-fg) 64%, transparent); font-size: 11px; }
.admin-editor-head strong { font-size: 16px; }
.admin-editor-head button,
.admin-editor-select-row button,
.admin-editor-mode button {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(var(--white-rgb), .18);
  border-radius: 6px;
  background: rgba(var(--white-rgb), .06);
  color: inherit;
  cursor: pointer;
}
.admin-editor-head button { width: 30px; height: 30px; font-size: 22px; line-height: 1; }
.admin-editor-form {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow-y: auto;
  padding: 15px;
}
.admin-editor-form section { display: grid; gap: 10px; }
.admin-editor-form section + section { border-top: 1px solid rgba(var(--white-rgb), .13); padding-top: 16px; }
.admin-editor-form h2 { margin: 0; color: inherit; font-size: 14px; }
.admin-editor-text-link { color: var(--admin-accent); font-size: 12px; font-weight: 700; text-decoration: none; }
.admin-editor-text-link:hover, .admin-editor-text-link:focus-visible { color: var(--admin-fg); text-decoration: underline; outline: none; }
.admin-editor-form label { display: grid; gap: 5px; color: inherit; font-size: 12px; }
.admin-editor-form input,
.admin-editor-form select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(var(--white-rgb), .2);
  border-radius: 6px;
  background: rgba(var(--black-rgb), .2);
  color: inherit;
  padding: 8px 9px;
}
.admin-editor-section-head { justify-content: space-between; gap: 10px; }
.admin-editor-mode { gap: 2px; border: 1px solid rgba(var(--white-rgb), .18); border-radius: 7px; padding: 2px; }
.admin-editor-mode button { border: 0; border-radius: 5px; padding: 5px 8px; font-size: 11px; }
.admin-editor-mode button.active { background: var(--admin-accent); color: var(--admin-bg); font-weight: 800; }
.admin-editor-select-row { gap: 6px; }
.admin-editor-select-row select { flex: 1 1 auto; }
.admin-editor-select-row button { flex: 0 0 30px; width: 30px; height: 34px; font-size: 15px; }
.admin-editor-select-row button:hover,
.admin-editor-select-row button:focus-visible,
.admin-editor-head button:hover,
.admin-editor-head button:focus-visible { border-color: var(--admin-accent); color: var(--admin-accent); outline: none; }
.admin-editor-swatches { display: flex; height: 12px; overflow: hidden; border-radius: 3px; }
.admin-editor-swatches i { flex: 1 1 0; min-width: 10px; }
.admin-editor-palette-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.admin-editor-palette-actions small { color: color-mix(in srgb, var(--admin-fg) 64%, transparent); font-size: 11px; }
.admin-editor-palette-actions .button { min-height: 30px; padding: 5px 8px; font-size: 11px; }
.admin-editor-palette-actions .button:disabled { cursor: not-allowed; opacity: .45; }
.admin-palette-count { margin: 0 0 12px; color: var(--muted); font-size: .88rem; }
.font-pair-sample { display: grid; gap: 3px; margin: 2px 0 0; color: inherit; }
.font-pair-sample strong { font-family: var(--font-display, Georgia, serif); font-size: 1.08rem; }
.font-pair-sample span { font-family: var(--font-body, system-ui, sans-serif); font-size: .84rem; }
.admin-editor-fonts { display: grid; gap: 10px; }
.admin-editor-fonts .font-pair-sample { color: color-mix(in srgb, var(--admin-fg) 78%, transparent); }
.admin-editor-colors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.admin-editor-colors label { min-width: 0; }
.admin-editor-color-controls { display: flex; align-items: center; gap: 5px; }
.admin-editor-color-controls input[type="text"] { min-width: 0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; text-transform: uppercase; }
.admin-editor-colors input[type="color"] { flex: 0 0 34px; width: 34px; height: 34px; padding: 3px; cursor: pointer; }
.admin-editor-panel footer { position: sticky; bottom: -15px; justify-content: flex-end; flex-wrap: wrap; gap: 8px; border-top: 1px solid rgba(var(--white-rgb), .13); background: var(--admin-bg); margin: 0 -15px -15px; padding: 12px 15px; }
body[data-mode] .admin-editor-panel .button {
  min-height: 34px;
  background: var(--editor-control-bg);
  color: var(--editor-control-fg);
  box-shadow: none;
}
body[data-mode] .admin-editor-panel .button:hover,
body[data-mode] .admin-editor-panel .button:focus-visible {
  background: color-mix(in srgb, var(--editor-control-bg) 86%, #fff);
  color: var(--editor-control-fg);
  outline: 2px solid color-mix(in srgb, var(--editor-control-bg) 72%, #fff);
  outline-offset: 2px;
}
body[data-mode] .admin-editor-panel .button.ghost {
  background: var(--editor-secondary-bg);
  color: var(--editor-secondary-fg);
  box-shadow: inset 0 0 0 1px var(--editor-secondary-line);
}
body[data-mode] .admin-editor-panel .button.ghost:hover,
body[data-mode] .admin-editor-panel .button.ghost:focus-visible {
  background: var(--editor-secondary-hover);
  color: var(--editor-secondary-fg);
  box-shadow: inset 0 0 0 1px var(--editor-secondary-line);
}
body[data-mode] .admin-editor-panel .button:disabled,
body[data-mode] .admin-editor-panel .button[disabled] {
  background: rgba(248, 240, 228, .08);
  color: rgba(248, 240, 228, .48);
  box-shadow: inset 0 0 0 1px rgba(248, 240, 228, .16);
}
@media (max-width: 760px) {
  .admin-editor-toggle span { display: none; }
  .admin-editor-toggle { width: 30px; justify-content: center; padding: 5px; }
  .admin-editor-panel {
    top: calc(var(--admin-toolbar-height) + 8px);
    right: 8px;
    bottom: 8px;
    width: min(370px, calc(100vw - 16px));
    max-width: calc(100vw - 16px);
    border: 1px solid rgba(var(--white-rgb), .16);
    border-radius: 8px;
    overflow: hidden;
  }
  body.admin-shell .admin-sidebar a.active { box-shadow: inset 0 3px 0 var(--admin-accent); }
}

/* Hosted-site studio stays scoped to one site and keeps dense editorial work legible. */
.hosting-site-actions, .hosting-studio-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hosting-studio-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.hosting-studio-head h1 { margin: 3px 0; }
.hosting-studio-head p:not(.eyebrow) { margin: 0; color: var(--muted); }
.hosting-studio-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 22px; align-items: start; }
.hosting-studio-main, .hosting-studio-side { display: grid; gap: 20px; min-width: 0; }
.hosting-studio-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 18px; }
.hosting-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hosting-panel-heading h2 { margin: 2px 0 0; font-size: 1.12rem; }
.hosting-panel-heading .eyebrow { margin: 0; }
.hosting-panel-heading > span { color: var(--muted); font-size: .82rem; text-align: right; }
.hosting-content-form, .hosting-settings-form { display: grid; gap: 12px; }
.hosting-content-list, .hosting-members-list { display: grid; gap: 8px; }
.hosting-content-list article, .hosting-members-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.hosting-content-list article:first-child, .hosting-members-list article:first-child { border-top: 0; padding-top: 0; }
.hosting-content-list strong, .hosting-content-list span, .hosting-content-list small, .hosting-members-list strong, .hosting-members-list span { display: block; }
.hosting-content-list small, .hosting-content-list span, .hosting-members-list span, .hosting-content-list time { color: var(--muted); font-size: .78rem; }
.hosting-content-list strong, .hosting-members-list strong { margin: 3px 0; }
.hosting-content-list time { white-space: nowrap; text-align: right; }
.hosting-content-actions { display: flex; align-items: center; justify-content: end; gap: 8px; flex-wrap: wrap; }
.hosting-member-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, .8fr) auto; align-items: end; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hosting-member-form label { display: grid; gap: 5px; font-size: .8rem; }
.hosting-member-form .button { min-height: 38px; }
@media (max-width: 900px) { .hosting-studio-layout { grid-template-columns: 1fr; } .hosting-studio-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 650px) { .hosting-site-card, .hosting-studio-head, .hosting-content-list article, .hosting-members-list article { align-items: flex-start; flex-direction: column; } .hosting-studio-actions, .hosting-site-actions { width: 100%; } .hosting-studio-actions .button, .hosting-site-actions .button { flex: 1 1 auto; text-align: center; } .hosting-studio-side { grid-template-columns: 1fr; } .hosting-member-form { grid-template-columns: 1fr; } .hosting-member-form .button { width: 100%; } .hosting-content-list time { text-align: left; } .hosting-content-actions { justify-content: flex-start; } }
.hosting-categories-list { display: grid; gap: 8px; }
.hosting-categories-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.hosting-categories-list article:first-child { border-top: 0; padding-top: 0; }
.hosting-categories-list strong, .hosting-categories-list span { display: block; }
.hosting-categories-list span { color: var(--muted); font-size: .78rem; }
.hosting-category-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) 76px auto; align-items: end; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hosting-category-form label { display: grid; gap: 5px; font-size: .8rem; }
.hosting-category-form .button { min-height: 38px; }
@media (max-width: 650px) { .hosting-categories-list article { align-items: flex-start; flex-direction: column; } .hosting-category-form { grid-template-columns: 1fr; } .hosting-category-form .button { width: 100%; } }

/* Private hosted-site preview uses each site's own palette without changing Hedera globally. */
.hosting-private-preview { min-height: 100vh; background: var(--hp-bg); color: var(--hp-text); padding-bottom: 64px; }
.hosting-preview-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 10px max(18px, calc((100% - 1120px) / 2)); background: var(--hp-text); color: var(--hp-surface); font-size: .78rem; }
.hosting-preview-toolbar a { color: inherit; font-weight: 700; }
.hosting-preview-header { width: min(1120px, calc(100% - 36px)); margin: 0 auto; padding: 68px 0 34px; border-bottom: 1px solid var(--hp-border); }
.hosting-preview-header.has-banner { width: min(1180px, calc(100% - 24px)); min-height: 330px; display: grid; align-content: end; padding: 42px min(52px, 5vw); border-bottom: 0; background: linear-gradient(0deg, color-mix(in srgb, var(--hp-bg) 94%, transparent), color-mix(in srgb, var(--hp-bg) 16%, transparent)), var(--hosting-banner-image) center / cover no-repeat; }
.hosting-preview-identity { display: flex; align-items: center; gap: 14px; }
.hosting-preview-identity > img { width: 62px; height: 62px; flex: 0 0 62px; object-fit: cover; border: 1px solid var(--hp-border); border-radius: 50%; background: var(--hp-surface); }
.hosting-preview-header p { margin: 0; color: var(--hp-accent); font-weight: 700; }
.hosting-preview-header h1 { margin: 8px 0; font-size: clamp(2.1rem, 4vw, 4.8rem); line-height: 1; }
.hosting-preview-header > span { display: block; max-width: 680px; color: var(--hp-muted); }
.hosting-preview-header nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 25px; }
.hosting-preview-header nav a { color: var(--hp-text); font-weight: 700; text-decoration-color: var(--hp-accent); text-underline-offset: 4px; }
.hosting-preview-feed { width: min(760px, calc(100% - 36px)); margin: 34px auto 0; display: grid; gap: 28px; }
.hosting-preview-feed article { padding: 26px; border: 1px solid var(--hp-border); background: var(--hp-surface); border-radius: 6px; }
.hosting-preview-feed article.is-featured { border-color: var(--hp-accent); box-shadow: inset 4px 0 0 var(--hp-accent); }
.hosting-preview-feed article > small { color: var(--hp-muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .06em; }
.hosting-preview-feed h2 { margin: 7px 0 10px; font-size: 1.7rem; }
.hosting-preview-excerpt { margin: 0 0 18px; color: var(--hp-muted); font-size: 1.06rem; }
.hosting-preview-cover { display: block; width: 100%; max-height: 480px; object-fit: cover; margin: 14px 0 18px; border-radius: 4px; }
.hosting-preview-body { line-height: 1.68; }
.hosting-preview-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.hosting-preview-tags span { padding: 4px 8px; border: 1px solid var(--hp-border); color: var(--hp-muted); font-size: .78rem; border-radius: 999px; }
.hosting-preview-feed footer { margin-top: 18px; color: var(--hp-muted); font-size: .8rem; }
.hosting-preview-empty { color: var(--hp-muted); text-align: center; padding: 70px 0; }
@media (max-width: 600px) { .hosting-preview-header.has-banner { width: min(100% - 12px, 1180px); min-height: 260px; padding: 28px 18px; } .hosting-preview-identity > img { width: 48px; height: 48px; flex-basis: 48px; } .hosting-preview-toolbar { align-items: center; padding-inline: 12px; } .hosting-preview-header { width: min(100% - 24px, 1120px); padding-top: 42px; } .hosting-preview-feed { width: min(100% - 24px, 760px); } .hosting-preview-feed article { padding: 18px; } }
.hosting-menu-list { display: grid; gap: 8px; }
.hosting-menu-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.hosting-menu-list article:first-child { border-top: 0; padding-top: 0; }
.hosting-menu-list strong, .hosting-menu-list span { display: block; }
.hosting-menu-list span { color: var(--muted); font-size: .76rem; overflow-wrap: anywhere; }
.hosting-menu-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hosting-menu-form label { display: grid; gap: 5px; font-size: .8rem; }
.hosting-menu-form .check { align-items: center; grid-template-columns: auto 1fr; }
.hosting-menu-form .button { min-height: 38px; }
.hosting-preview-header nav details { position: relative; }
.hosting-preview-header nav summary { cursor: pointer; color: var(--hp-text); font-weight: 700; text-decoration: underline; text-decoration-color: var(--hp-accent); text-underline-offset: 4px; }
.hosting-preview-header nav details > div { position: absolute; z-index: 3; top: calc(100% + 8px); left: 0; display: grid; min-width: 180px; padding: 7px; border: 1px solid var(--hp-border); background: var(--hp-surface); box-shadow: 0 14px 32px rgba(0,0,0,.12); }
.hosting-preview-header nav details > div a { padding: 7px 8px; text-decoration: none; }
.hosting-preview-header nav details > div a:hover { background: var(--hp-bg); }
@media (max-width: 650px) { .hosting-menu-list article { align-items: flex-start; flex-direction: column; } .hosting-menu-form { grid-template-columns: 1fr; } .hosting-menu-form .button { width: 100%; } }
.hosting-widget-list { display: grid; gap: 8px; }
.hosting-widget-list article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.hosting-widget-list article:first-child { border-top: 0; padding-top: 0; }
.hosting-widget-list strong, .hosting-widget-list span { display: block; }
.hosting-widget-list span { color: var(--muted); font-size: .78rem; }
.hosting-widget-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hosting-widget-form label { display: grid; gap: 5px; font-size: .8rem; }
.hosting-widget-form .button { min-height: 38px; }
.hosting-preview-widget { padding: 26px; border: 1px solid var(--hp-border); background: var(--hp-surface); border-radius: 6px; }
.hosting-preview-widget header p { margin: 0; color: var(--hp-accent); font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.hosting-preview-widget header h2 { margin: 4px 0 16px; font-size: 1.35rem; }
.hosting-widget-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.hosting-widget-grid > a { display: grid; gap: 6px; min-width: 0; padding: 12px; border: 1px solid var(--hp-border); color: var(--hp-text); text-decoration: none; }
.hosting-widget-grid > a:hover { border-color: var(--hp-accent); }
.hosting-widget-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hosting-widget-grid strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hosting-widget-grid span { color: var(--hp-muted); font-size: .8rem; }
@media (max-width: 650px) { .hosting-widget-list article { align-items: flex-start; flex-direction: column; } .hosting-widget-form { grid-template-columns: 1fr; } .hosting-widget-form .button { width: 100%; } .hosting-widget-grid { grid-template-columns: 1fr; } }
.hosting-media-upload { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(90px, .6fr) auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.hosting-media-upload label { display: grid; gap: 5px; font-size: .8rem; }
.hosting-media-upload .button { min-height: 38px; }
.hosting-media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.hosting-media-grid article { min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--field); }
.hosting-media-grid img { display: block; width: 100%; aspect-ratio: 1.25 / 1; object-fit: cover; }
.hosting-media-grid form { display: grid; gap: 6px; padding: 7px; }
.hosting-media-grid input { min-width: 0; font-size: .76rem; }
.hosting-media-grid small { overflow: hidden; color: var(--muted); font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 650px) { .hosting-media-upload { grid-template-columns: 1fr; } .hosting-media-upload .button { width: 100%; } }
.hosting-editor-media { margin: -2px 0 8px; }
.hosting-editor-media summary { cursor: pointer; color: var(--muted); font-size: .84rem; }
.hosting-editor-media > div { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 9px; }
.hosting-editor-media button { display: grid; min-width: 0; overflow: hidden; border: 1px solid var(--line); background: var(--field); color: var(--ink); cursor: pointer; padding: 0; text-align: left; }
.hosting-editor-media button:hover { border-color: var(--accent); }
.hosting-editor-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.hosting-editor-media span { overflow: hidden; padding: 4px; font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.hosting-rich-editor .editor-preview figure { margin: 20px 0; }
.hosting-rich-editor .editor-preview figure img { display: block; max-width: 100%; height: auto; }
.hosting-preview-body figure { margin: 22px 0; }
.hosting-preview-body figure img { display: block; width: 100%; height: auto; }
.hosting-media-embed { max-width: 760px; margin: 22px 0; border: 1px solid var(--hp-border, var(--line)); background: var(--hp-surface, var(--field)); }
.hosting-media-embed iframe, .hosting-media-embed video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #080808; }
.hosting-media-embed audio { display: block; width: min(100%, 540px); margin: 14px; }
.hosting-media-embed figcaption { padding: 9px 12px; color: var(--hp-muted, var(--muted)); font: 600 .82rem/1.35 var(--font-body, system-ui, sans-serif); }
.hosting-media-embed figcaption a { color: inherit; text-decoration: none; }
.hosting-media-embed figcaption a:hover { color: var(--hp-accent, var(--accent)); text-decoration: underline; }
.hosting-media-embed-link { border-left: 3px solid var(--hp-accent, var(--accent)); }
.hosting-rich-editor .hosting-media-embed-editor { cursor: default; user-select: none; }
.hosting-visitor-player { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: grid; grid-template-columns: 42px minmax(0, 1fr) 30px; gap: 10px; align-items: center; width: min(360px, calc(100vw - 32px)); padding: 10px; border: 1px solid var(--hp-border); background: var(--hp-surface); color: var(--hp-text); box-shadow: 0 12px 32px rgb(0 0 0 / 24%); }
.hosting-visitor-player[hidden] { display: none; }
.hosting-visitor-player-play, .hosting-visitor-player-close { display: grid; place-items: center; border: 0; background: transparent; color: inherit; cursor: pointer; }
.hosting-visitor-player-play { width: 42px; height: 42px; border-radius: 50%; background: var(--hp-accent); color: var(--hp-accent-text); }
.hosting-visitor-player-play.is-playing svg { opacity: .55; }
.hosting-visitor-player-play svg { width: 21px; height: 21px; fill: currentColor; }
.hosting-visitor-player > div { min-width: 0; display: grid; gap: 2px; }
.hosting-visitor-player small { color: var(--hp-muted); font-size: .72rem; }
.hosting-visitor-player strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.hosting-visitor-player-close { width: 30px; height: 30px; font-size: 1.35rem; }
@media (max-width: 650px) { .hosting-editor-media > div { grid-template-columns: repeat(4, minmax(0, 1fr)); } }