.sg-module {
    --sg-bg:#042a4a;
    --sg-panel:#08385f;
    --sg-line:#2e5d7d;
    --sg-text:#e8f4ff;
    --sg-muted:#aecde2;
    --sg-cyan:#7addff;
    --sg-gold:#ffdc3b;
    box-sizing:border-box;
    isolation:isolate;
    container:sg-library / inline-size;
    width:100%;
    min-width:0;
    max-width:1160px;
    margin:0 auto;
    padding:25px;
    color:var(--sg-text);
    background:var(--sg-bg);
    border:1px solid var(--sg-line);
    border-radius:16px;
    box-shadow:0 16px 42px #001a3033;
    font:14px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    overflow-wrap:anywhere;
}

.sg-module *,.sg-module *::before,.sg-module *::after {
    box-sizing:border-box;
}

.sg-module [hidden] {
    display:none!important;
}

.sg-module h2,.sg-module h3,.sg-module h4,.sg-module p {
    margin:0;
    padding:0;
    line-height:inherit;
}

.sg-module h2,.sg-module h3,.sg-module h4 {
    font-family:inherit;
    font-weight:750;
    letter-spacing:normal;
    text-transform:none;
}

.sg-module h2 {
    font-size:30px;
    line-height:1.18;
    color:var(--sg-gold);
    letter-spacing:-.025em;
}

.sg-module h3 {
    font-size:19px;
    line-height:1.35;
    color:var(--sg-text);
}

.sg-module h4 {
    font-size:17px;
    line-height:1.4;
    color:var(--sg-text);
}

.sg-module a {
    color:var(--sg-cyan);
    text-decoration:none;
}

.sg-module a:hover {
    text-decoration:underline;
}

.sg-module button,.sg-module input,.sg-module select,.sg-module textarea {
    font:inherit;
    letter-spacing:normal;
    text-transform:none;
}

.sg-module button {
    cursor:pointer;
}

.sg-module a:focus-visible,.sg-module button:focus-visible,.sg-module input:focus-visible,.sg-module textarea:focus-visible,.sg-module select:focus-visible,.sg-module summary:focus-visible {
    outline:3px solid #bcefff;
    outline-offset:4px;
}

.sg-module .sg-button:hover {
    text-decoration:none;
}

.sg-icon {
    width:20px;
    height:20px;
    flex:none;
    vertical-align:middle;
}

.sg-heading {
    display:flex;
    gap:17px;
    align-items:center;
    margin-bottom:26px;
}

.sg-heading>div {
    min-width:0;
}

.sg-heading p {
    color:var(--sg-muted);
    margin-top:9px;
    font-size:14px;
    max-width:580px;
}

.sg-heading-emblem {
    display:grid;
    place-items:center;
    flex:none;
    width:66px;
    height:74px;
    border:1px solid #a4934d;
    border-radius:12px;
    background:linear-gradient(145deg,#155481,#0a3455);
    color:var(--sg-gold);
    box-shadow:inset 0 1px #ffef9f2b;
}

.sg-heading-emblem .sg-icon {
    width:34px;
    height:34px;
}

.sg-eyebrow {
    display:block;
    margin-bottom:6px;
    font-size:10px;
    line-height:1.6;
    font-weight:750;
    letter-spacing:.15em;
    color:var(--sg-cyan);
}

.sg-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:44px;
    padding:10px 16px;
    border:1px solid #ffe979;
    border-radius:7px;
    color:#133550!important;
    background:linear-gradient(180deg,#ffe779,#ffd32d);
    box-shadow:inset 0 1px #fff6,0 3px 8px #001e3329;
    font-size:13px;
    font-weight:750;
    line-height:1.4;
    text-align:center;
    white-space:normal;
    transition:background .15s ease,box-shadow .15s ease;
}

.sg-button .sg-icon {
    width:18px;
    height:18px;
}

.sg-button:hover {
    background:#ffeb86;
    box-shadow:0 3px 12px #ffc83229;
}

.sg-button-secondary {
    background:#0d416a;
    border-color:#487895;
    color:#d7f2ff!important;
    box-shadow:none;
}

.sg-button-secondary:hover {
    background:#14547d;
    box-shadow:none;
}

.sg-button-small {
    min-height:40px;
    padding:8px 14px;
    font-size:12px;
}

.sg-button-danger {
    background:#603c4a;
    border-color:#b16e7c;
    color:#ffedf0!important;
    box-shadow:none;
}

.sg-button-danger:hover {
    background:#794453;
}

.sg-text-link {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:44px;
    font-size:12px;
}

.sg-text-link .sg-icon {
    width:15px;
    height:15px;
}

.sg-module .sg-sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

.sg-library-tools {
    padding:16px;
    background:#073355;
    border:1px solid #2b597a;
    border-radius:11px;
}

.sg-search {
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
}

.sg-search>.sg-icon {
    margin-left:3px;
    color:var(--sg-cyan);
}

.sg-search input {
    flex:1;
    width:0;
    min-width:0;
    min-height:44px;
    padding:9px 0;
    border:0;
    border-radius:0;
    background:transparent;
    color:var(--sg-text);
    box-shadow:none;
    font-size:14px;
    line-height:1.5;
}

.sg-search input::placeholder {
    color:#9bbcd3;
    opacity:1;
}

.sg-tabs {
    display:flex;
    flex-wrap:wrap;
    gap:7px;
    margin-top:13px;
    padding-top:13px;
    border-top:1px solid #285674;
}

.sg-tab {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    min-height:42px;
    padding:8px 13px;
    border:1px solid transparent;
    border-radius:7px;
    color:var(--sg-muted)!important;
    font-size:12px;
    font-weight:650;
}

.sg-tab:hover {
    background:#0c3f63;
    text-decoration:none!important;
}

.sg-tab span {
    display:grid;
    place-items:center;
    min-width:21px;
    min-height:21px;
    padding:0 5px;
    border-radius:5px;
    background:#092d4c;
    color:#bedaea;
    font-size:10px;
}

.sg-tab-active {
    background:#134b6e;
    border-color:#3d7b98;
    color:#f0fbff!important;
}

.sg-tab-active span {
    background:#20617d;
    color:#d5f6ff;
}

.sg-results-line {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    flex-wrap:wrap;
    margin:22px 0 14px;
    color:var(--sg-muted);
    font-size:12px;
}

.sg-results-line strong {
    font-weight:750;
    color:var(--sg-text);
}

.sg-results-line>a {
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:32px;
}

.sg-results-line .sg-icon {
    width:14px;
    height:14px;
}

.sg-card-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
}

.sg-card-grid-single {
    grid-template-columns:minmax(0,1fr);
}

.sg-card {
    display:flex;
    flex-direction:column;
    min-width:0;
    background:linear-gradient(160deg,#0b3c63,#073253);
    border:1px solid var(--sg-line);
    border-radius:13px;
    overflow:hidden;
    box-shadow:0 5px 18px #001d321f;
    transition:border-color .18s ease,box-shadow .18s ease;
}

.sg-card:hover {
    border-color:#5093b0;
    box-shadow:0 10px 23px #001c3533;
}

.sg-card-cover {
    display:block;
    position:relative;
    aspect-ratio:16/10;
    background:#0a3455;
    overflow:hidden;
    isolation:isolate;
    border-bottom:1px solid #32627b;
}

.sg-card-cover::after {
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:linear-gradient(180deg,transparent 42%,#001b346b 77%,#001b34bf);
}

.sg-card-grid-single .sg-card-cover {
    aspect-ratio:16/9;
    max-height:360px;
}

.sg-card-cover .sg-card-category {
    display:inline-flex;
    align-items:center;
    gap:6px;
    position:absolute;
    z-index:2;
    left:16px;
    bottom:14px;
    max-width:calc(100% - 32px);
    padding:5px 10px;
    border:1px solid;
    border-radius:6px;
    background:#052a44e8;
    border-color:#92c4db6b;
    color:#def7ff;
    font-size:10px;
    line-height:1.6;
    font-weight:750;
    box-shadow:0 2px 9px #00162940;
    backdrop-filter:blur(8px);
}

.sg-card-category .sg-icon {
    width:14px;
    height:14px;
}

.sg-card-cover img {
    display:block;
    width:100%;
    height:100%;
    min-height:0;
    object-fit:cover;
    object-position:center;
    transition:transform .45s ease;
}

.sg-card:hover .sg-card-cover img {
    transform:scale(1.035);
}

.sg-cover-art {
    position:relative;
    display:flex;
    width:100%;
    height:100%;
    min-height:0;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    gap:10px;
    background:radial-gradient(ellipse at 50% 50%,#1b5a7e,#0a3456 68%);
    color:#c6eaf7;
    overflow:hidden;
}

.sg-cover-art::before,.sg-cover-art::after {
    content:"";
    position:absolute;
    inset:14px;
    border:1px solid #4d7d902b;
    border-radius:4px;
    pointer-events:none;
}

.sg-cover-art::after {
    inset:20px;
    border-color:#4d7d901c;
}

.sg-cover-orbit {
    position:absolute;
    width:145px;
    height:145px;
    border:1px solid #83c6d02e;
    border-radius:50%;
    transform:translateY(4px);
}

.sg-cover-orbit::before {
    content:"";
    position:absolute;
    inset:12px;
    border:1px dashed #8fcecc29;
    border-radius:50%;
}

.sg-cover-emblem {
    display:grid;
    place-items:center;
    position:relative;
    width:62px;
    height:68px;
    border:1px solid #b5b77680;
    border-radius:10px;
    background:linear-gradient(145deg,#205573,#0b3555);
    color:#ffdf68;
    box-shadow:0 8px 22px #001d3833,inset 0 1px #fff4;
}

.sg-cover-emblem .sg-icon {
    width:34px;
    height:34px;
}

.sg-cover-label {
    position:relative;
    font-size:9px;
    letter-spacing:.2em;
    font-weight:750;
    color:#a9ccdf;
}

.sg-card-content {
    display:flex;
    flex:1;
    flex-direction:column;
    padding:19px 20px 20px;
}

.sg-meta {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    color:var(--sg-muted);
    font-size:10px;
    line-height:1.7;
}

.sg-badge {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:5px;
    max-width:100%;
    padding:3px 8px;
    border:1px solid #437891;
    border-radius:5px;
    color:#b8eeff;
    background:#134a68;
    font-size:10px;
    line-height:1.6;
    font-weight:700;
}

.sg-badge .sg-icon {
    width:13px;
    height:13px;
}

.sg-badge-draft {
    background:#4b492f;
    border-color:#827d47;
    color:#ffedb0;
}

.sg-card h3 {
    margin-top:10px;
    font-size:19px;
    line-height:1.4;
    text-wrap:pretty;
}

.sg-card h3 a {
    color:var(--sg-gold);
}

.sg-card h3 a:hover {
    color:#ffec8b;
}

.sg-card-content>p {
    margin-top:10px;
    color:#c0d9e9;
    font-size:13px;
    line-height:1.8;
}

.sg-card-grid-single .sg-card h3 {
    font-size:23px;
}

.sg-card-grid-single .sg-card-content {
    padding:21px 23px 23px;
}

.sg-read-link {
    display:inline-flex;
    align-items:center;
    gap:6px;
    align-self:flex-start;
    margin-top:auto;
    padding-top:19px;
    min-height:44px;
    font-size:12px;
    font-weight:650;
}

.sg-read-link .sg-icon {
    width:16px;
    height:16px;
}

.sg-footnote {
    margin-top:25px!important;
    padding-top:16px;
    border-top:1px solid #285574;
    color:var(--sg-muted);
    font-size:11px;
    text-align:center;
}

.sg-empty {
    padding:40px 24px;
    margin:16px 0;
    background:#083354;
    border:1px dashed #41728f;
    border-radius:11px;
    text-align:center;
}

.sg-empty-icon {
    display:inline-grid;
    place-items:center;
    width:60px;
    height:65px;
    border:1px solid #6c825c;
    border-radius:10px;
    background:#16475e;
    color:var(--sg-gold);
    margin-bottom:16px;
}

.sg-empty-icon .sg-icon {
    width:30px;
    height:30px;
}

.sg-empty p {
    max-width:430px;
    margin:10px auto 0;
    color:var(--sg-muted);
    font-size:13px;
}

.sg-empty .sg-button {
    margin-top:20px;
}

.sg-alert {
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:16px 0;
    padding:14px 16px;
    border:1px solid;
    border-radius:9px;
    font-size:13px;
}

.sg-alert .sg-icon {
    margin-top:1px;
    width:19px;
    height:19px;
}

.sg-alert-error {
    background:#4d303d;
    border-color:#a36374;
    color:#ffdde5;
}

.sg-alert-success {
    background:#0c4948;
    border-color:#37837b;
    color:#d6fff4;
}

.sg-breadcrumb {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    padding-bottom:18px;
    margin-bottom:23px;
    border-bottom:1px solid #2a5574;
    color:var(--sg-muted);
    font-size:12px;
}

.sg-breadcrumb .sg-icon {
    width:14px;
    height:14px;
    color:#78a5bd;
}

.sg-article-head h2 {
    font-size:32px;
    margin-top:16px;
    line-height:1.25;
}

.sg-module .sg-article-summary {
    font-size:15px;
    color:#c3dcea;
    line-height:1.85;
    margin-top:15px;
}

.sg-article-cover {
    margin-top:24px;
    overflow:hidden;
    border:1px solid #356783;
    border-radius:12px;
    max-height:380px;
    background:#093253;
}

.sg-article-cover>img {
    display:block;
    width:100%;
    max-height:380px;
    aspect-ratio:16/9;
    object-fit:cover;
    object-position:center;
}

.sg-article-cover .sg-cover-art {
    height:230px;
}

.sg-prose {
    margin-top:27px;
    color:#d9eaf5;
    font-size:14px;
    line-height:1.9;
    overflow-wrap:anywhere;
}

.sg-prose>:first-child {
    margin-top:0;
}

.sg-prose h1,.sg-prose h2,.sg-prose h3,.sg-prose h4,.sg-prose h5,.sg-prose h6 {
    font-family:inherit;
    color:#ffe06a;
    margin:28px 0 12px;
    font-weight:700;
    line-height:1.4;
    letter-spacing:normal;
    text-transform:none;
}

.sg-prose h1,.sg-prose h2 {
    font-size:23px;
}

.sg-prose h3 {
    font-size:19px;
}

.sg-prose h4,.sg-prose h5,.sg-prose h6 {
    font-size:16px;
}

.sg-prose p {
    margin:15px 0;
    font-size:inherit;
    line-height:inherit;
}

.sg-prose ul,.sg-prose ol {
    margin:14px 0;
    padding-left:25px;
    list-style-position:outside;
}

.sg-prose ul {
    list-style-type:disc;
}

.sg-prose ol {
    list-style-type:decimal;
}

.sg-prose li {
    margin:6px 0;
    padding-left:3px;
    color:inherit;
}

.sg-prose li::marker {
    color:#80d2ed;
}

.sg-prose strong {
    color:#f1f9ff;
    font-weight:750;
}

.sg-prose a {
    color:#88e4ff;
    text-decoration:underline;
    text-underline-offset:3px;
}

.sg-prose blockquote {
    margin:20px 0;
    padding:12px 17px;
    border:0;
    border-left:3px solid #73cced;
    border-radius:0 7px 7px 0;
    background:#0e4163;
    color:#d0e7f4;
    font-size:inherit;
}

.sg-prose code {
    padding:2px 5px;
    border:1px solid #3a637c;
    border-radius:4px;
    background:#062641;
    color:#c0f4ff;
    font:12px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.sg-prose pre {
    max-width:100%;
    padding:15px;
    border:1px solid #315d78;
    border-radius:8px;
    background:#03233d;
    color:#d3f2ff;
    overflow:auto;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
    font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;
}

.sg-prose pre code {
    padding:0;
    border:0;
    background:none;
    color:inherit;
}

.sg-prose hr {
    margin:25px 0;
    border:0;
    border-top:1px solid #35627d;
}

.sg-prose img {
    display:block;
    max-width:100%;
    height:auto;
    border-radius:7px;
}

.sg-article-footer {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap;
    margin-top:35px;
    padding-top:23px;
    border-top:1px solid #2d5977;
}

.sg-article-footer>span {
    font-size:11px;
    color:var(--sg-muted);
}

.sg-admin {
    max-width:1200px;
}

.sg-stats {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:12px;
    margin-bottom:22px;
}

.sg-stats>div {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    padding:16px 18px;
    border:1px solid #32617f;
    border-radius:10px;
    background:#0a3a60;
}

.sg-stats strong {
    font-size:26px;
    line-height:1.25;
    color:var(--sg-gold);
    font-weight:750;
}

.sg-stats span {
    font-size:11px;
    color:var(--sg-muted);
}

.sg-panel {
    min-width:0;
    padding:22px;
    margin-top:21px;
    border:1px solid #32617f;
    border-radius:12px;
    background:var(--sg-panel);
}

.sg-section-head {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    flex-wrap:wrap;
    margin-bottom:20px;
    padding-bottom:16px;
    border-bottom:1px solid #315f7d;
}

.sg-section-head>div {
    min-width:0;
}

.sg-section-head h3 {
    font-size:19px;
}

.sg-section-head h3 .sg-icon {
    margin-right:8px;
    color:var(--sg-cyan);
}

.sg-section-head>.sg-button {
    font-size:12px;
}

.sg-editor {
    scroll-margin-top:20px;
}

.sg-form {
    display:grid;
    gap:21px;
    margin:0;
}

.sg-editor-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:17px;
}

.sg-field {
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:7px;
    min-width:0;
    margin:0;
    font-size:12px;
    font-weight:650;
    color:#e0eff8;
}

.sg-field-wide {
    grid-column:1/-1;
}

.sg-module .sg-field-note {
    font-size:11px;
    font-weight:400;
    line-height:1.65;
    color:var(--sg-muted);
}

.sg-editor-grid>p.sg-field-note {
    margin-top:-7px;
}

.sg-optional {
    font-size:10px;
    font-weight:450;
    color:var(--sg-muted);
}

.sg-field input,.sg-field textarea,.sg-field select,.sg-markdown-field>textarea {
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    min-height:44px;
    padding:11px 12px;
    margin:0;
    border:1px solid #4b7694;
    border-radius:7px;
    background:#042c4c;
    color:#edf8ff;
    box-shadow:none;
    font-size:13px;
    line-height:1.55;
}

.sg-field input::placeholder,.sg-field textarea::placeholder {
    color:#8eafc6;
    opacity:1;
}

.sg-field textarea {
    resize:vertical;
}

.sg-field select {
    appearance:auto;
    height:auto;
}

.sg-markdown-field {
    min-width:0;
}

.sg-markdown-field>label {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:8px;
    margin-bottom:9px;
    font-size:12px;
    font-weight:650;
    color:#e0eff8;
}

.sg-markdown-field>textarea {
    min-height:330px;
    resize:vertical;
    font:12px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;
    tab-size:2;
}

.sg-toolbar {
    display:flex;
    flex-wrap:wrap;
    gap:5px;
    padding:7px;
    border:1px solid #4b7694;
    border-bottom:0;
    border-radius:7px 7px 0 0;
    background:#0d4064;
}

.sg-toolbar:not([hidden])+textarea {
    border-top-left-radius:0;
    border-top-right-radius:0;
}

.sg-toolbar button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-width:42px;
    min-height:36px;
    padding:6px 9px;
    border:1px solid #386784;
    border-radius:5px;
    background:#123e5e;
    color:#e5f4ff;
    font-size:11px;
}

.sg-toolbar button:hover {
    background:#1d5777;
}

.sg-toolbar .sg-icon {
    width:15px;
    height:15px;
}

.sg-toolbar button strong {
    font-size:15px;
}

.sg-markdown-help {
    margin-top:12px;
    padding:12px 14px;
    border:1px solid #355f7a;
    border-radius:7px;
    background:#0a3353;
    color:var(--sg-muted);
    font-size:11px;
}

.sg-markdown-help summary {
    min-height:24px;
    cursor:pointer;
    color:#a4e7ff;
    font-weight:650;
    list-style-position:inside;
}

.sg-markdown-help p {
    margin-top:11px;
    line-height:1.75;
}

.sg-help-grid {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-top:11px;
}

.sg-help-grid code {
    display:block;
    min-width:0;
    padding:8px;
    background:#062a45;
    border:1px solid #29506a;
    border-radius:4px;
    color:#d4edff;
    font:11px/1.7 ui-monospace,SFMono-Regular,Consolas,monospace;
    white-space:pre-wrap;
    overflow-wrap:anywhere;
}

.sg-editor-actions {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
    padding-top:5px;
}

.sg-editor-actions>.sg-text-link {
    margin-left:auto;
}

.sg-edit-meta {
    margin-top:17px!important;
    color:var(--sg-muted);
    font-size:10px;
    line-height:1.8;
}

.sg-preview {
    margin-top:25px;
    padding:20px;
    border:1px dashed #548ca6;
    border-radius:10px;
    background:#062d4b;
}

.sg-preview h4 {
    font-size:26px;
    line-height:1.35;
    color:var(--sg-gold);
}

.sg-preview .sg-prose {
    margin-top:22px;
}

.sg-inventory {
    display:grid;
    gap:13px;
}

.sg-admin-item {
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:22px;
    padding:18px;
    background:#073253;
    border:1px solid #2b5977;
    border-radius:9px;
    min-width:0;
}

.sg-admin-item-main {
    flex:1;
    min-width:0;
}

.sg-admin-item h4 {
    margin-top:8px;
    color:var(--sg-gold);
    font-size:16px;
}

.sg-admin-item p {
    margin-top:8px;
    color:#bfd6e6;
    font-size:12px;
    line-height:1.8;
}

.sg-admin-item small {
    display:block;
    margin-top:10px;
    color:#9cbed3;
    font-size:10px;
}

.sg-admin-item-actions {
    display:flex;
    flex-direction:column;
    gap:4px;
    align-items:stretch;
    flex:none;
    min-width:115px;
    max-width:230px;
}

.sg-admin-item-actions>.sg-button {
    min-height:40px;
    font-size:12px;
}

.sg-delete {
    margin-top:4px;
    color:#ffc6cc;
    font-size:11px;
}

.sg-delete>summary {
    min-height:36px;
    padding:7px 0;
    text-align:center;
    cursor:pointer;
    list-style-position:inside;
}

.sg-delete>form {
    margin:8px 0 0;
    padding:12px;
    background:#3b303d;
    border:1px solid #8b5e70;
    border-radius:6px;
    color:#f4dfe7;
}

.sg-delete>form>p {
    margin:0;
    font-size:11px;
    color:#f4dfe7;
}

.sg-delete .sg-button {
    width:100%;
    margin-top:12px;
    font-size:11px;
    padding:8px;
}

.sg-checkbox {
    display:flex;
    align-items:flex-start;
    gap:8px;
    margin-top:12px;
    font-size:11px;
    font-weight:450;
    line-height:1.6;
    cursor:pointer;
}

.sg-checkbox>input {
    width:17px;
    height:17px;
    min-width:17px;
    margin:1px 0 0;
    accent-color:#ffdc3b;
}

.sg-image-editor {
    display:grid;
    grid-template-columns:minmax(180px,.8fr) minmax(0,1.2fr);
    align-items:start;
    gap:18px;
    grid-column:1/-1;
    min-width:0;
    margin:0;
    padding:17px;
    border:1px solid #3b6b87;
    border-radius:10px;
    background:#06304f;
}

.sg-image-editor>legend {
    padding:0 8px;
    color:var(--sg-gold);
    font-size:14px;
    line-height:1.5;
    font-weight:750;
}

.sg-image-editor>.sg-field-note {
    grid-column:1/-1;
}

.sg-image-preview {
    display:grid;
    place-items:center;
    position:relative;
    aspect-ratio:16/10;
    width:100%;
    min-width:0;
    overflow:hidden;
    border:1px solid #3d708b;
    border-radius:8px;
    background:radial-gradient(ellipse at center,#175071,#072b48 75%);
}

.sg-image-preview>img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
}

.sg-image-empty {
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:10px;
    padding:20px;
    color:#b8d9eb;
    font-size:12px;
    text-align:center;
}

.sg-image-empty .sg-icon {
    width:34px;
    height:34px;
    color:#89d8ee;
}

.sg-image-controls {
    display:grid;
    gap:13px;
    min-width:0;
}

.sg-image-editor .sg-field {
    font-size:12px;
}

.sg-image-editor input[type=file] {
    padding:7px;
    font-size:12px;
    line-height:1.7;
    overflow:hidden;
}

.sg-image-editor input[type=file]::file-selector-button {
    margin-right:10px;
    padding:6px 9px;
    border:1px solid #4b7e99;
    border-radius:5px;
    background:#174e70;
    color:#e3f6ff;
    font:inherit;
    cursor:pointer;
}

.sg-image-editor input[type=file]::file-selector-button:hover {
    background:#246383;
}

.sg-image-actions {
    display:flex;
    align-items:center;
    gap:10px;
    flex-wrap:wrap;
}

.sg-image-actions .sg-button {
    min-height:40px;
    font-size:12px;
}

.sg-module [data-sg-image-status] {
    min-height:1.6em;
    margin:0;
    color:var(--sg-muted);
    font-size:11px;
    line-height:1.7;
    font-weight:400;
}

.sg-image-editor[data-sg-image-state=error] .sg-image-preview {
    border-color:#bc7b86;
}

.sg-module .sg-image-editor[data-sg-image-state=error] [data-sg-image-status] {
    color:#ffd0d8;
}

.sg-module .sg-image-editor[data-sg-image-state=ready] [data-sg-image-status] {
    color:#b2edf4;
}

.sg-admin-item-cover {
    display:block;
    position:relative;
    flex:none;
    width:122px;
    aspect-ratio:16/10;
    overflow:hidden;
    border:1px solid #3a6984;
    border-radius:7px;
    background:#062b48;
}

.sg-admin-item-cover>img {
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
}

.sg-admin-item-cover .sg-cover-art {
    height:100%;
    gap:0;
}

.sg-admin-item-cover .sg-cover-emblem {
    width:39px;
    height:44px;
    border-radius:7px;
}

.sg-admin-item-cover .sg-cover-emblem .sg-icon {
    width:23px;
    height:23px;
}

.sg-admin-item-cover .sg-cover-label {
    display:none;
}

.sg-admin-item-cover .sg-cover-orbit {
    width:92px;
    height:92px;
}

@container sg-library (max-width:600px) {
    .sg-image-editor {
        grid-template-columns:minmax(0,1fr);
    }
    .sg-image-preview {
        max-height:240px;
    }
    .sg-admin-item {
        gap:14px;
    }
    .sg-admin-item-cover {
        width:100px;
    }
}

@container sg-library (max-width:480px) {
    .sg-card-grid {
        grid-template-columns:1fr;
    }
}

@media(max-width:700px) {
    .sg-module {
        padding:18px;
        border-radius:12px;
    }
    .sg-heading {
        gap:12px;
    }
    .sg-heading-emblem {
        width:50px;
        height:59px;
        border-radius:9px;
    }
    .sg-heading-emblem .sg-icon {
        width:28px;
        height:28px;
    }
    .sg-module h2 {
        font-size:26px;
    }
    .sg-heading p {
        font-size:12px;
    }
    .sg-eyebrow {
        font-size:9px;
        letter-spacing:.11em;
    }
    .sg-panel {
        padding:17px;
    }
    .sg-editor-actions>.sg-text-link {
        margin-left:0;
    }
    .sg-admin-item {
        gap:14px;
        padding:15px;
    }
    .sg-stats {
        gap:8px;
    }
    .sg-stats>div {
        padding:13px;
    }
    .sg-stats strong {
        font-size:23px;
    }
    .sg-stats span {
        font-size:10px;
    }
    .sg-article-head h2 {
        font-size:28px;
    }
    .sg-article .sg-article-summary {
        font-size:14px;
    }
    .sg-prose {
        font-size:14px;
    }
    .sg-prose h1,.sg-prose h2 {
        font-size:21px;
    }
    .sg-search input {
        font-size:16px;
    }
    .sg-field input,.sg-field select,.sg-field textarea,.sg-markdown-field>textarea {
        font-size:16px;
    }
    .sg-markdown-field>textarea {
        line-height:1.7;
    }
    .sg-toolbar button {
        min-height:42px;
    }
}

@media(max-width:480px) {
    .sg-module {
        padding:15px;
    }
    .sg-heading {
        align-items:flex-start;
        margin-bottom:22px;
    }
    .sg-heading-emblem {
        width:42px;
        height:50px;
    }
    .sg-heading-emblem .sg-icon {
        width:24px;
        height:24px;
    }
    .sg-module h2 {
        font-size:24px;
    }
    .sg-heading p {
        font-size:12px;
    }
    .sg-card-grid {
        grid-template-columns:1fr;
        gap:15px;
    }
    .sg-card-content,.sg-card-grid-single .sg-card-content {
        padding:18px;
    }
    .sg-card-grid-single .sg-card h3 {
        font-size:21px;
    }
    .sg-library-tools {
        padding:11px;
    }
    .sg-search {
        gap:7px;
    }
    .sg-search>.sg-icon {
        width:17px;
        height:17px;
        margin-left:0;
    }
    .sg-search .sg-button {
        padding:8px 10px;
    }
    .sg-tab {
        flex:1;
        padding:7px 8px;
        gap:6px;
        font-size:11px;
    }
    .sg-tabs {
        gap:4px;
    }
    .sg-results-line {
        margin-top:17px;
    }
    .sg-stats {
        gap:6px;
    }
    .sg-stats>div {
        padding:11px 9px;
    }
    .sg-stats strong {
        font-size:21px;
    }
    .sg-stats span {
        font-size:10px;
        line-height:1.5;
    }
    .sg-panel {
        padding:14px;
    }
    .sg-section-head {
        gap:10px;
    }
    .sg-section-head h3 {
        font-size:18px;
    }
    .sg-section-head>.sg-button {
        width:100%;
    }
    .sg-editor-grid {
        grid-template-columns:1fr;
        gap:16px;
    }
    .sg-field-wide {
        grid-column:auto;
    }
    .sg-help-grid {
        grid-template-columns:1fr;
    }
    .sg-editor-actions {
        align-items:stretch;
    }
    .sg-editor-actions>.sg-button {
        width:100%;
    }
    .sg-editor-actions>.sg-text-link {
        width:100%;
    }
    .sg-admin-item {
        flex-direction:column;
        gap:13px;
    }
    .sg-admin-item-cover {
        width:100%;
        max-height:190px;
    }
    .sg-admin-item-cover .sg-cover-art {
        min-height:140px;
    }
    .sg-image-editor {
        padding:13px;
        gap:14px;
    }
    .sg-image-actions>.sg-button {
        width:100%;
    }
    .sg-admin-item-actions {
        flex-direction:row;
        align-items:flex-start;
        flex-wrap:wrap;
        width:100%;
        max-width:none;
        gap:8px;
    }
    .sg-admin-item-actions>.sg-button,.sg-admin-item-actions>.sg-text-link {
        flex:1;
        min-height:44px;
    }
    .sg-delete {
        flex:1 0 100%;
        margin:0;
        border-top:1px solid #315c76;
        padding-top:5px;
    }
    .sg-delete>summary {
        text-align:left;
        min-height:40px;
    }
    .sg-delete>form {
        max-width:none;
    }
    .sg-delete .sg-button {
        min-height:44px;
    }
    .sg-preview {
        padding:14px;
    }
    .sg-preview h4 {
        font-size:23px;
    }
    .sg-markdown-field>label {
        align-items:flex-start;
        flex-direction:column;
        gap:3px;
    }
    .sg-toolbar {
        gap:4px;
        padding:6px;
    }
    .sg-toolbar button {
        flex:1;
        padding:6px;
        font-size:10px;
        gap:4px;
    }
    .sg-toolbar button>span {
        font-size:10px;
    }
    .sg-empty {
        padding:30px 18px;
    }
    .sg-empty h3 {
        font-size:18px;
    }
    .sg-article-head h2 {
        font-size:26px;
    }
    .sg-breadcrumb {
        font-size:11px;
    }
    .sg-article-footer {
        align-items:stretch;
        gap:13px;
    }
    .sg-article-footer>.sg-button {
        width:100%;
    }
    .sg-article-footer>span {
        width:100%;
        text-align:center;
    }
    .sg-footnote {
        font-size:10px;
    }
    .sg-article-cover .sg-cover-art {
        height:180px;
    }
}

@media(prefers-reduced-motion:reduce) {
    .sg-module *,.sg-module *::before,.sg-module *::after {
        animation:none!important;
        transition:none!important;
        scroll-behavior:auto!important;
    }
    .sg-card:hover .sg-card-cover img {
        transform:none;
    }
}
