.harbor { min-width: 0; }
.harbor-toolbar, .harbor-actions, .harbor-heading { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.harbor-toolbar { justify-content: space-between; border-bottom: 1px solid var(--border, #ccd7d5); padding-bottom: 16px; margin-bottom: 16px; }
.harbor-state { font-size: 13px; color: #704b13; background: #fff1cb; padding: 5px 8px; border-radius: 4px; }
.harbor-state.is-active { color: #175c43; background: #e2f2e9; }
.harbor h2 { font-size: 18px; margin: 0; }
.harbor h3 { font-size: 16px; }
.harbor label { display: grid; gap: 8px; min-width: 0; }
.harbor input, .harbor select, .harbor textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.harbor input:not([type=checkbox]), .harbor select, .harbor textarea { max-width: none; border: 1px solid #bfceca; border-radius: 4px; padding: 10px 12px; font: inherit; color: inherit; background: #fff; }
.harbor input:focus-visible, .harbor select:focus-visible, .harbor textarea:focus-visible { outline: 2px solid #217a57; outline-offset: 2px; }
.harbor .choice-row input { width: auto; }
.harbor .harbor-toggle { display: flex; align-items: center; gap: 10px; }
.harbor .harbor-toggle input { width: auto; flex: 0 0 auto; }
.harbor-applications { border: 0; border-top: 1px solid #ccd7d5; padding: 16px 0; margin: 24px 0 0; }
.harbor-applications legend { font-weight: 600; padding-right: 12px; }
.harbor textarea { min-height: 100px; resize: vertical; }
.harbor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.harbor-wide { grid-column: 1 / -1; }
.harbor [data-settings-section] { padding: 16px 0; }
.harbor .settings-save-bar { margin-top: 16px; }
.harbor-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 20px; border-bottom: 1px solid var(--border, #ccd7d5); }
.harbor-tabs button { border: 0; border-radius: 0; background: transparent; padding: 12px; border-bottom: 3px solid transparent; }
.harbor-tabs button[aria-selected=true] { border-bottom-color: #217a57; font-weight: 700; }
.harbor-checks { padding: 0; list-style: none; }
.harbor-checks li { display: grid; grid-template-columns: 90px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border, #ccd7d5); overflow-wrap: anywhere; }
.harbor-checks strong { font-size: 13px; }
.harbor-checks .blocked, .harbor-checks .unknown { color: #a32929; }
.harbor-checks .review { color: #704b13; }
.harbor-checks .checked { color: #217a57; }
.harbor-table { overflow-x: auto; margin-top: 16px; }
.harbor table { width: 100%; border-collapse: collapse; }
.harbor th, .harbor td { text-align: left; vertical-align: top; padding: 12px 8px; border-bottom: 1px solid var(--border, #ccd7d5); overflow-wrap: anywhere; }
.harbor td small { display: block; }
.harbor-member { border-top: 1px solid var(--border, #ccd7d5); margin-top: 20px; padding-top: 20px; }
.harbor-member form { display: grid; gap: 12px; max-width: 620px; margin: 16px 0; }
.harbor-lookup { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.harbor-lookup label { flex: 1; max-width: 420px; }
.harbor [role=alert] { color: #a32929; }
.harbor [data-harbor-notice] { color: #217a57; }
.harbor-publish { width: min(520px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); overflow: auto; box-sizing: border-box; border: 1px solid #bfceca; border-radius: 8px; padding: 24px; color: inherit; background: #fff; }
.harbor-publish::backdrop { background: rgb(0 0 0 / 40%); }
.harbor-publish form { display: grid; gap: 20px; }
.harbor-publish h3 { margin: 0; }
.harbor-publish .harbor-toggle { align-items: flex-start; line-height: 1.5; }
.harbor-publish input[type=checkbox] { margin-top: 5px; }
.harbor-descriptors { display: grid; gap: 14px; max-width: 620px; margin-top: 18px; }
.harbor-color-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(220px,1fr)); gap: 20px; }
.harbor-colors { border: 0; margin: 0; padding: 0; display: flex; gap: 12px; }
.harbor-colors legend { font-weight: 600; margin-bottom: 8px; }
.harbor-colors label { position: relative; display: grid; place-items: center; width: 38px; height: 38px; }
.harbor-colors input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.harbor-swatch { display: block; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #889591; pointer-events: none; }
.harbor-colors input:checked + .harbor-swatch { box-shadow: 0 0 0 3px #152923; }
.harbor-colors input:focus-visible + .harbor-swatch { outline: 2px solid #217a57; outline-offset: 5px; }
.harbor-swatch.primary, .harbor-discord-buttons .primary { background: #5865f2; }
.harbor-swatch.secondary, .harbor-discord-buttons .secondary { background: #4e5058; }
.harbor-swatch.success, .harbor-discord-buttons .success { background: #248046; }
.harbor-swatch.danger, .harbor-discord-buttons .danger { background: #da373c; }
.harbor-preview { width: min(680px,calc(100vw - 32px)); }
.harbor-preview > label { margin: 18px 0; }
.harbor-preview > .harbor-actions { justify-content: space-between; }
.harbor-discord { background: #313338; color: #f2f3f5; padding: 18px; border-radius: 4px; overflow-wrap: anywhere; line-height: 1.5; }
.harbor-discord-embed { border-left: 4px solid #1f795b; padding: 12px 16px; background: #2b2d31; }
.harbor-discord h4 { margin: 0 0 8px; font-size: 16px; white-space: pre-wrap; overflow-wrap: anywhere; }
.harbor-title-preview { margin-top: 8px; }
.harbor-discord-field { margin-top: 12px; }
.harbor-discord-buttons { display: grid; gap: 8px; margin-top: 8px; }
.harbor-discord-button-row { display: flex; gap: 8px; flex-wrap: wrap; }
.harbor-discord-buttons button { color: #fff; padding: 8px 12px; border: 0; border-radius: 4px; font: inherit; font-size: 13px; max-width: 100%; white-space: normal; cursor: default; }
.harbor-discord-select { margin-top: 8px; background: #232428; padding: 10px; }
.harbor-discord-select > div + div { margin-top: 10px; }
.harbor-discord-select small { display: block; color: #c7c9cf; }
.harbor-mention { color: #c9cdfb; background: #414675; padding: 1px 2px; }
.harbor-editor { min-width: 0; }
.harbor-editor-tools { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.harbor-editor-tools .icon-button { width: 36px; height: 36px; flex: 0 0 36px; }
.harbor-live-preview { min-height: 60px; max-height: 280px; overflow: auto; font-size: 14px; padding: 12px; }
.harbor-editor [data-editor-error]:empty { display: none; }
.harbor-markdown { overflow-wrap: anywhere; white-space: pre-wrap; }
.harbor-markdown a { color: #71c7ff; text-decoration: underline; }
.harbor-markdown code { font: 13px Consolas, monospace; background: #1e1f22; padding: 1px 3px; border-radius: 3px; white-space: pre-wrap; overflow-wrap: anywhere; }
.harbor-markdown pre { background: #1e1f22; padding: 10px; border-radius: 4px; max-width: 100%; overflow: auto; }
.harbor-markdown pre code { padding: 0; }
.harbor-markdown blockquote { border-left: 3px solid #9399a2; margin: 6px 0; padding-left: 12px; }
.harbor-markdown p { margin: 4px 0; }
.harbor-markdown ul, .harbor-markdown ol { margin: 4px 0; padding-left: 24px; }
.harbor-markdown h1, .harbor-markdown h2, .harbor-markdown h3 { color: inherit; margin: 8px 0; letter-spacing: 0; }
.harbor-markdown h1 { font-size: 22px; }
.harbor-markdown h2 { font-size: 19px; }
.harbor-markdown h3 { font-size: 16px; }
.harbor-spoiler { background: #18191c; color: transparent; border-radius: 3px; cursor: pointer; }
.harbor-spoiler[aria-expanded=false] * { visibility: hidden; }
.harbor-spoiler[aria-expanded=true] { background: #4e5058; color: inherit; }
.harbor-spoiler:focus-visible { outline: 2px solid #c9cdfb; outline-offset: 2px; }
.harbor-mention-picker > .harbor-actions { justify-content: space-between; }
.harbor-mention-kinds { display: flex; margin: 18px 0; border-bottom: 1px solid #bfceca; }
.harbor-mention-kinds button { flex: 1; padding: 10px 8px; border: 0; border-bottom: 3px solid transparent; background: transparent; border-radius: 0; }
.harbor-mention-kinds [aria-pressed=true] { border-bottom-color: #217a57; font-weight: 700; }
.harbor-mention-results { min-height: 180px; max-height: 320px; overflow: auto; margin-top: 12px; }
.harbor-mention-result { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid #dde4e2; background: transparent; border-radius: 0; padding: 10px; overflow-wrap: anywhere; }
.harbor-mention-result:hover, .harbor-mention-result:focus-visible { background: #edf5f1; }
.harbor-mention-result small { display: block; margin-top: 3px; color: #53615b; }
.harbor-mention-picker [data-picker-error]:empty { display: none; }
@media (max-width: 650px) {
  .harbor-grid { grid-template-columns: minmax(0,1fr); }
  .harbor table { min-width: 540px; }
  .harbor-tabs button { padding: 10px 8px; }
  .harbor-colors label { width: 44px; height: 44px; }
  .harbor-editor-tools .icon-button { width: 44px; height: 44px; flex-basis: 44px; }
}
