.bts-page { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 56px; }
.bts-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; border: 1px solid var(--ttmt-border); border-radius: 18px; background: var(--ttmt-surface); box-shadow: 0 8px 24px rgba(31,49,86,.06); }
.bts-hero h1 { margin: 4px 0 8px; color: var(--ttmt-text); font-size: clamp(2rem,4vw,3rem); }
.bts-hero p:last-child { margin: 0; color: var(--ttmt-muted); line-height: 1.6; }
.bts-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.bts-filters { grid-template-columns: minmax(260px,2fr) minmax(180px,1fr) auto; }
.bts-public-filters { grid-template-columns: minmax(240px,2fr) minmax(160px,1fr) minmax(140px,.8fr) minmax(140px,.8fr) auto; }
.bts-grid .ttmt-image-placeholder { display: grid; width: 100%; height: 100%; place-items: center; }
.bts-grid .ttmt-image-placeholder .portal-icon { width: 48px; height: 48px; color: var(--ttmt-primary); }
.bts-article { overflow: hidden; margin-top: 22px; border: 1px solid var(--ttmt-border); border-radius: 18px; background: var(--ttmt-surface); box-shadow: 0 10px 32px rgba(31,49,86,.08); }
.bts-cover { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.bts-article-head { padding: clamp(24px,5vw,52px) clamp(22px,7vw,80px) 22px; }
.bts-article-head h2 { max-width: 920px; margin: 14px 0; color: var(--ttmt-text); font-size: clamp(2rem,5vw,3.5rem); line-height: 1.15; }
.bts-summary { max-width: 820px; color: var(--ttmt-muted); font-size: 1.1rem; line-height: 1.7; }
.bts-byline { display: flex; flex-wrap: wrap; gap: 16px; color: var(--ttmt-muted); font-size: .9rem; }
.bts-content { padding: 10px clamp(22px,7vw,80px) 60px; color: var(--ttmt-text); font-size: 1.04rem; line-height: 1.8; }
.bts-content img { display: block; max-width: 100%; height: auto; margin: 24px auto; border-radius: 12px; }
.bts-content a { color: var(--ttmt-primary); }
.bts-content blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--ttmt-primary); color: var(--ttmt-muted); }
.bts-content table { width: 100%; border-collapse: collapse; }
.bts-content th,.bts-content td { padding: 10px; border: 1px solid var(--ttmt-border); text-align: left; }
.bts-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 28px; }
.bts-pagination a { display: grid; min-width: 40px; height: 40px; place-items: center; border: 1px solid var(--ttmt-border); border-radius: 9px; background: var(--ttmt-surface); color: var(--ttmt-primary); text-decoration: none; }
.bts-pagination a[aria-current="page"] { border-color: var(--ttmt-primary); background: var(--ttmt-primary); color: #fff; }
.bts-admin-grid { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr); gap: 20px; margin-top: 22px; align-items: start; }
.bts-panel { padding: 20px; border: 1px solid var(--ttmt-border); border-radius: 16px; background: var(--ttmt-surface); }
.bts-form { display: grid; gap: 14px; }
.bts-form .ttmt-field input,.bts-form .ttmt-field select,.bts-form .ttmt-field textarea { width: 100%; box-sizing: border-box; }
.bts-editor { min-height: 340px; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; }
.bts-editor-toolbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; border: 1px solid var(--ttmt-border); border-bottom: 0; border-radius: 9px 9px 0 0; background: color-mix(in srgb,var(--ttmt-primary) 4%,var(--ttmt-surface)); }
.bts-editor-toolbar button { min-width: 38px; min-height: 34px; border: 1px solid var(--ttmt-border); border-radius: 7px; background: var(--ttmt-surface); color: var(--ttmt-text); cursor: pointer; }
.bts-editor-surface { display: none; min-height: 340px; padding: 14px; overflow: auto; border: 1px solid var(--ttmt-border); border-radius: 0 0 9px 9px; background: var(--ttmt-surface); color: var(--ttmt-text); line-height: 1.65; }
.bts-rich-editor.is-ready .bts-editor-surface { display: block; }
.bts-rich-editor.is-ready .bts-editor-source { display: none; }
.bts-admin-cover { display: block; width: min(100%,360px); max-height: 220px; margin-bottom: 8px; border-radius: 10px; object-fit: cover; }
.bts-form-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.bts-list { display: grid; gap: 10px; }
.bts-list-item { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 14px; border: 1px solid var(--ttmt-border); border-radius: 12px; color: var(--ttmt-text); text-decoration: none; }
.bts-list-item:hover { border-color: var(--ttmt-primary); }
.bts-list-item small { color: var(--ttmt-muted); }
.bts-status { align-self: start; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb,var(--ttmt-primary) 10%,transparent); color: var(--ttmt-primary); font-size: .75rem; font-weight: 800; }
@media (max-width:900px) { .bts-admin-grid { grid-template-columns: 1fr; } .bts-filters { grid-template-columns: 1fr; } }
@media (max-width:700px) { .bts-page { width: min(100% - 20px,1120px); padding-top: 14px; } .bts-hero { align-items: flex-start; flex-direction: column; padding: 20px; } .bts-actions { width: 100%; } .bts-actions .ttmt-button { flex: 1; justify-content: center; } }
