* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #fff; color: #333840; font-family: "Haas", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #1b61c9; text-decoration: none; }
a:hover { color: #1a3866; }
button { font-family: inherit; }
h1, h2, h3, p { margin: 0; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 48px; padding-right: 48px; }
.muted { font-size: 14px; color: #41454d; }
.topbar { height: 64px; border-bottom: 1px solid #ddd; display: flex; align-items: center; }
.topbar-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: 100%; }
.tabs { display: flex; gap: 32px; height: 100%; }
.tab { display: flex; align-items: center; height: 64px; font-size: 14px; font-weight: 500; color: #41454d; border-bottom: 2px solid transparent; white-space: nowrap; }
.tab:hover { color: #181d26; }
.tab.on { color: #181d26; border-bottom-color: #181d26; }
.tabs-right { display: flex; justify-content: flex-end; height: 100%; }
.chat-frame { height: calc(100vh - 65px); }
.subbar { border-bottom: 1px solid #ddd; }
.subtabs { display: flex; gap: 8px; padding-top: 16px; padding-bottom: 16px; }
.training-frame { display: block; width: 100%; height: calc(100vh - 133px); border: 0; }
.brand { font-size: 16px; font-weight: 500; color: #181d26; }
.brand:hover { color: #181d26; }

.page { padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 64px; }
.intro { display: flex; flex-direction: column; gap: 12px; }
h1 { font-size: 40px; font-weight: 400; line-height: 1.2; color: #181d26; }
.intro p { font-size: 16px; line-height: 1.5; text-wrap: pretty; }

.section { display: flex; flex-direction: column; gap: 24px; }
.section-head { display: flex; align-items: baseline; gap: 12px; }
h2 { font-size: 24px; font-weight: 400; line-height: 1.35; letter-spacing: .12px; color: #181d26; }
.count { font-size: 14px; font-weight: 500; color: #41454d; }
.rule { height: 1px; background: #ddd; }
.empty { padding: 48px 0; font-size: 14px; color: #41454d; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -8px; }
.chip { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 6px; border: 1px solid #ddd; background: #fff; color: #181d26; font-size: 14px; font-weight: 500; cursor: pointer; }
.chip span { font-size: 12px; opacity: .72; }
.chip[aria-selected="true"] { background: #181d26; border-color: #181d26; color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.grid-main { gap: 48px 24px; }
.card { display: flex; flex-direction: column; gap: 16px; min-width: 0; cursor: pointer; color: inherit; }
.card:hover { color: inherit; }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; border: 1px solid #e0e2e6; }
.card:hover .thumb { border-color: #9297a0; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.pin { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 9999px; border: 1px solid #ddd; background: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.pin svg { fill: none; stroke: #181d26; }
.pin.on { background: #181d26; border-color: #181d26; }
.pin.on svg { fill: #fff; stroke: #fff; }
.card-text { display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: #41454d; }
h3 { font-size: 18px; font-weight: 500; line-height: 1.4; color: #181d26; }
.card-text p { font-size: 14px; line-height: 1.45; text-wrap: pretty; }

.detail { padding-top: 40px; gap: 40px; }
.back { align-self: flex-start; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.detail-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.detail-title { display: flex; flex-direction: column; gap: 12px; max-width: 760px; min-width: 0; }
.detail-title p { font-size: 16px; line-height: 1.5; text-wrap: pretty; }
.actions { display: flex; gap: 8px; }
.btn { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 12px; border: 1px solid #ddd; background: #fff; color: #181d26; font-size: 14px; font-weight: 500; cursor: pointer; }
.btn svg { fill: none; stroke: currentColor; }
.btn.on { background: #181d26; border-color: #181d26; color: #fff; }
.btn.on svg { fill: #fff; }
.btn.primary { background: #1b61c9; border-color: #1b61c9; color: #fff; }
.btn.primary:hover { background: #1a3866; border-color: #1a3866; }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px; }
.panel { background: #f8fafc; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.panel h2 { font-size: 12px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: #41454d; line-height: 1.4; }
.panel p { font-size: 15px; line-height: 1.5; color: #181d26; text-wrap: pretty; }
.panel ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.panel li { display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: #181d26; }
.panel li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 9999px; background: #1b61c9; margin-top: 8px; }
.panel.ext li::before { background: #181d26; }
.shot { position: relative; border-radius: 10px; overflow: hidden; border: 1px solid #e0e2e6; }
.shot img { display: block; width: 100%; height: auto; }
.shot.placeholder { aspect-ratio: 16 / 10; }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: #181d26; color: #fff; border-radius: 12px; padding: 14px 20px; font-size: 14px; line-height: 1.4; box-shadow: 0 4px 16px rgba(24,29,38,.18); }

@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 32px; }
  .topbar { height: auto; }
  .topbar-inner { grid-template-columns: 1fr; gap: 0; padding-top: 12px; }
  .tabs { gap: 20px; }
  .tab { height: 44px; }
}
