@media (min-width: 1101px) {
    .main-header .header-container { flex-wrap: wrap !important; height: auto !important; }
    .main-header .main-nav { position: static !important; left: auto !important; transform: none !important; width: 100% !important; max-width: 100%; flex: 1 1 100% !important; order: 5; min-width: 0; }
    .main-header .main-nav > ul { display: flex !important; flex-wrap: wrap !important; width: 100% !important; max-width: 100%; gap: .2rem .55rem; justify-content: center; }
    .main-header .main-nav > ul > li > a { padding: .2rem .35rem; }
}
.community-panel, .community-cards, .community-card { max-width: 100%; box-sizing: border-box; }
.community-order li { cursor: grab; }
.community-style-card, .community-style-image { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .7rem; }
.community-style-card li, .community-style-image li { border: 1px solid rgba(62,192,255,.25); border-radius: 12px; padding: .8rem; background: #10284a; }
.community-panel { background: rgba(12, 28, 56, .94); color: #e7f2ff; border: 1px solid rgba(62, 192, 255, .35); border-radius: 16px; padding: 1.2rem; }
.community-panel form label, .community-inline label { display: flex; flex-direction: column; align-items: stretch; gap: .25rem; margin: .55rem 0; }
.community-panel textarea, .community-panel select, .community-panel input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]) { width: 100%; max-width: 720px; box-sizing: border-box; }
.community-panel textarea { min-height: 120px; }
.community-edit, .community-review, .community-comment-form { margin-top: 1rem; }
.community-panel h1, .community-panel h2 { color: #fff; overflow-wrap: anywhere; }
.community-panel a { color: #9fd8ff; }
.community-head, .community-admin-nav { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.community-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; margin: 1rem 0; }
.community-card { display: flex; flex-direction: column; gap: .35rem; min-height: 92px; padding: .9rem; border-radius: 12px; background: #10284a; color: #e7f2ff; text-decoration: none; overflow-wrap: anywhere; }
.community-card strong { font-size: 1.05rem; }
.community-list { list-style: none; padding: 0; }
.community-list li { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.community-body, .community-pin { background: #081426; color: #e7f2ff; padding: 1rem; border-radius: 12px; overflow-wrap: anywhere; }
.community-photos { display: flex; flex-wrap: wrap; gap: .6rem; }
.community-photos img { width: 180px; max-width: 100%; background: #000; border-radius: 8px; }
.cert-preview { display: flex; flex-wrap: wrap; gap: .5rem; }
.cert-preview figure { margin: 0; width: 140px; }
.cert-preview img { width: 140px; height: 100px; object-fit: cover; background: #000; }
.state { padding: .1rem .4rem; border-radius: 999px; background: #24486e; }
.state-revision { background: #8a5a12; }
.state-approved { background: #1d6b45; }
.state-rejected { background: #7a2430; }
.nav-drop { position: relative; }
.main-nav .nav-toggle { display: flex; flex-direction: column; align-items: center; background: transparent; border: 0; color: #f4f8ff; font: inherit; font-weight: 700; cursor: pointer; padding: .28rem .45rem; border-radius: 8px; }
.nav-drop .nav-sub { display: none; position: absolute; z-index: 30; min-width: 220px; max-width: 280px; margin: 0; padding: .4rem; list-style: none; background: #0c1c38; border: 1px solid rgba(62,192,255,.35); border-radius: 10px; }
.nav-drop:hover .nav-sub, .nav-drop.open .nav-sub { display: block; }
.nav-sub a { display: block; padding: .45rem .5rem; white-space: normal; overflow-wrap: anywhere; text-align: left; }
.form-error { background: #7a2430; color: #fff; padding: .7rem .9rem; border-radius: 10px; }
.existing-photos, .community-comment { display: flex; flex-wrap: wrap; gap: .5rem; }
.existing-photos figure { margin: 0; width: 140px; }
.existing-photos img { width: 140px; height: 100px; object-fit: cover; background: #000; }
.community-comment { display: block; white-space: pre-wrap; }
@media (max-width: 1100px) {
    .nav-drop .nav-sub { position: static; display: none; width: 100%; max-width: none; }
    .nav-drop:hover .nav-sub { display: none; }
    .nav-drop.open .nav-sub { display: block; }
    .main-nav .nav-toggle { align-items: flex-start; width: 100%; text-align: left; }
}

.read-page { padding: 28px 16px 56px; }
.read-panel { width: min(1080px, 100%); margin: 0 auto; background: rgba(7, 20, 44, .94); color: #d7e6f7; border: 1px solid rgba(120, 160, 200, .28); border-radius: 12px; padding: 22px 24px 28px; box-shadow: none; }
.read-article { width: min(920px, 100%); }
.read-crumb, .read-note, .read-meta, .read-empty-line { color: #9eb4cc; font-size: 13px; }
.read-crumb a, .read-meta a { color: #9fd0f2; }
.read-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.read-head h1, .read-article > h1 { margin: 8px 0 6px; color: #f4f8ff; font-size: 32px; line-height: 1.3; overflow-wrap: anywhere; }
.read-head p { margin: 0; color: #b7c9de; }
.read-head-actions, .read-head .board-tools, .read-article .board-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.read-lock { font-size: 12px; color: #9eb4cc; border: 1px solid rgba(158, 180, 204, .4); border-radius: 8px; padding: 4px 8px; }
.read-write, .read-page .read-write { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px !important; background: #1d6fe0 !important; color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none; box-shadow: none !important; }
.read-head .board-tools .btn, .read-article .board-tools .btn, .board-row-tools .btn, .read-manage button, .read-review button { min-height: 30px; padding: 0 8px; border-radius: 8px !important; background: transparent !important; color: #c5d8ee !important; border: 1px solid rgba(150, 180, 210, .4) !important; box-shadow: none !important; font-size: 12px; }
.read-pins { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.read-pin { display: flex; flex-direction: column; gap: 6px; min-height: 92px; padding: 14px 16px; border: 1px solid rgba(90, 150, 210, .45); border-radius: 10px; background: rgba(12, 36, 72, .92); color: #f4f8ff; text-decoration: none; }
.read-pin span { color: #7ec8ff; font-size: 12px; }
.read-pin small { color: #9eb4cc; }
.read-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin: 8px 0 12px; }
.read-tabs { display: flex; gap: 16px; }
.read-tabs a { color: #9eb4cc; text-decoration: none; padding-bottom: 6px; }
.read-tabs a.is-on { color: #7ec8ff; border-bottom: 2px solid #7ec8ff; }
.read-search input, .read-panel input:not([type="checkbox"]):not([type="hidden"]):not([type="file"]), .read-panel textarea, .read-panel select { width: 100%; box-sizing: border-box; min-height: 36px; border-radius: 8px; border: 1px solid rgba(130, 160, 190, .4); background: rgba(5, 16, 36, .8); color: #e7f2ff; padding: 6px 10px; }
.read-search { width: min(280px, 100%); }
.read-table { display: flex; flex-direction: column; }
.read-row { display: grid; grid-template-columns: minmax(0, 1fr) 140px 168px; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); color: #d7e6f7; text-decoration: none; }
.read-columns { color: #8ea4bd; font-size: 13px; }
.read-title { min-width: 0; overflow-wrap: anywhere; }
.read-title em, .read-badges span, .read-title b { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; background: #17345d; color: #9fd8ff; font-style: normal; font-size: 12px; font-weight: 700; }
.read-pages, .read-back, .read-nav { display: flex; gap: 10px; align-items: center; margin-top: 18px; }
.read-pages a, .read-back a, .read-nav a { color: #d7e6f7; text-decoration: none; border: 1px solid rgba(150, 180, 210, .35); border-radius: 8px; padding: 6px 10px; }
.read-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 28px 0; }
.read-empty p { margin: 0; }
.read-body { max-width: 820px; margin: 16px 0; color: #d7e6f7; font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.read-body h2, .read-body h3 { color: #f4f8ff; line-height: 1.4; }
.read-body a { color: #8ecbff; }
.read-body img { max-width: 100%; height: auto; }
.read-body table { display: block; max-width: 100%; overflow-x: auto; }
.read-body blockquote, .read-callout { margin: 12px 0; padding: 12px 14px; border-left: 3px solid #3ec0ff; background: rgba(16, 42, 78, .95); }
.read-files { display: flex; flex-direction: column; gap: 12px; max-width: 820px; }
.read-photo { padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.read-photo img, .existing-photos img { width: auto; max-width: 100%; height: auto; object-fit: contain; background: transparent; }
.read-comments { max-width: 820px; margin-top: 24px; }
.read-comments li { list-style: none; margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.08); }
.read-comments ul { padding: 0; }
.read-comment-form, .read-review, .read-manage { display: flex; gap: 8px; align-items: flex-end; margin-top: 12px; }
.read-comment-form textarea { min-height: 72px; }
.read-nav { justify-content: space-between; }
.read-nav span { display: flex; gap: 8px; }
.read-form-actions { display: flex; gap: 8px; margin-top: 12px; }
.read-ghost { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(150, 180, 210, .4); background: transparent; color: #d7e6f7; }
.board-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.board-tools button, .board-tools summary { min-height: 30px; padding: 4px 8px; border-radius: 8px; border: 1px solid rgba(150, 180, 210, .35); background: rgba(8, 24, 48, .9); color: #d7e6f7; }
.board-colors { display: flex; gap: 6px; margin-bottom: 8px; }
.board-colors button { width: 22px; height: 22px; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); }
.board-editor { min-height: 240px; padding: 14px; border: 1px solid rgba(130, 160, 190, .4); border-radius: 8px; background: rgba(5, 16, 36, .72); }
.board-editor:focus { outline: 1px solid #3ec0ff; }
#board-preview-box { width: min(920px, 96vw); background: rgba(7, 20, 44, .98); color: #d7e6f7; border: 1px solid rgba(120, 160, 200, .35); border-radius: 12px; padding: 16px; }
#board-preview-box.is-mobile { width: min(390px, 96vw); }
.read-preview-bar { display: flex; gap: 8px; margin-bottom: 8px; }
.read-lightbox { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .82); }
.read-lightbox[hidden] { display: none; }
.read-lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.read-lightbox button { position: absolute; top: 16px; right: 16px; }
.read-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; }
.read-cards a { display: flex; flex-direction: column; gap: 6px; color: #f4f8ff; text-decoration: none; background: rgba(12, 36, 72, .92); border: 1px solid rgba(90, 150, 210, .3); border-radius: 10px; padding: 12px; overflow-wrap: anywhere; }
.read-cards img { width: 100%; height: auto; object-fit: contain; background: #06101f; }
.read-more { padding-left: 18px; }
@media (max-width: 720px) {
    .read-head, .read-tools, .read-nav, .read-comment-form { flex-direction: column; align-items: stretch; }
    .read-head h1, .read-article > h1 { font-size: 24px; }
    .read-pins, .read-cards { grid-template-columns: 1fr; }
    .read-row { grid-template-columns: 1fr; gap: 2px; }
    .read-columns { display: none; }
    .read-search { width: 100%; }
    .read-body { font-size: 16px; }
}
