/* Belfast's report palette and ornaments, shared by both watermeter entry points. */
:root {
  --navy: #18253f;
  --navy2: #304667;
  --ink: #24334c;
  --muted: #687183;
  --line: #ded2ba;
  --bg: #f3f0e9;
  --accent: #c4a265;
  --teal: #37686c;
  --gold-light: #ebd6a7;
  --paper: #fcfaf5;
  --royal-blue: linear-gradient(115deg, #16223b, #2e4264 68%, #1d2d4a);
  color-scheme: light;
}
body {
  background: radial-gradient(ellipse at 80% 0, #e8eaf0 0, transparent 52%),
    repeating-linear-gradient(45deg, #b9a16b05 0 1px, transparent 1px 12px), var(--bg);
}
button, input, select { border-radius: 5px; }
button { transition: background-color .16s, border-color .16s, box-shadow .16s; }
button:disabled { cursor: default; opacity: .48; }
input, select { border-color: #cfc7b8; color: var(--ink); accent-color: var(--navy); }
input::placeholder { color: #7e8290; }
input:focus, select:focus { border-color: #9b7a42; box-shadow: 0 0 0 3px #c4a26522; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #a47b39; outline-offset: 3px; }
.sidebar {
  width: 224px; padding: 32px 18px;
  background: linear-gradient(#16223cf5, #16223cf5), url("rating-damask.png") center / 360px;
  border-right: 1px solid #bc9c61; box-shadow: 6px 0 24px #14203715;
  color: #d5dae5;
}
.sidebar::after { content: ""; position: absolute; inset: 12px 7px; border: 1px solid #c4a26538; pointer-events: none; }
.brand { gap: 13px; padding: 0 9px 25px; margin-bottom: 28px; border-bottom: 1px solid #c4a26542; }
.brand>span { font-family: "Noto Serif SC", "SimSun", serif; font-weight: 700; font-size: 21px; letter-spacing: 1px; white-space: nowrap; }
.brand small { color: #ccb98c; font: 9px/1.8 "Segoe UI", "Microsoft YaHei", sans-serif; letter-spacing: 2px; }
.brand img { border: 1px solid #c4a26580; border-radius: 7px; }
.rail-label { color: #c4b089; font-size: 10px; letter-spacing: 2.5px; }
.rail-item { padding: 14px 13px; border: 1px solid transparent; color: #c8d1e1; font-size: 13px; }
.rail-item span { color: var(--gold-light); }
.rail-item:hover { background: #ffffff0a; border-color: #c4a26540; }
.rail-item.active { background: linear-gradient(90deg, #c4a26526, #ffffff08); border: 1px solid #c4a26575; border-left: 3px solid var(--accent); padding-left: 11px; color: #fff5df; }
.rail-bottom { border-color: #c4a26542; color: #bbc4d3; line-height: 1.8; }
.rail-bottom button { color: #d5c6a4; }
.favorites>p, .favorite-row small { color: #aebad0; }
.favorite-row { border: 1px solid #c4a26525; border-radius: 5px; background: #ffffff04; }
.favorite-row button { color: #e2e7ef; }
.favorite-row button:first-child { min-width: 0; }
.favorite-row .remove-favorite { color: #c4b58d; }
main { width: calc(100% - 224px); max-width: none; padding: 0 clamp(24px, 3.2vw, 64px); margin-left: 224px; }
main>section, .topbar, main>footer { max-width: 1560px; margin-left: auto; margin-right: auto; }
.topbar { height: 72px; border-bottom: 1px solid #d6c5a3; }
.breadcrumb, .breadcrumb #page-label { color: #657084; font-size: 12px; }
.breadcrumb b { color: #ab905d; }
.preview-badge { border-color: #d0b986; color: #80673e; background: #fffaf0; font-size: 9px; }
.preview-badge i { color: #80673e; }
.linked-tools { margin: 22px 0 18px; gap: 10px; font-size: 12px; }
.linked-tools a { padding: 7px 13px; border: 1px solid #d7c8ad; background: #fcfaf6; border-radius: 4px; color: #42516b; }
.linked-tools a:hover { background: #ebe2d1; text-decoration: none; }
.belfast-banner {
  position: relative;
  aspect-ratio: 2184 / 387;
  margin: 0 0 22px; overflow: hidden; border: 1px solid #b99a60;
  border-radius: 7px; background: linear-gradient(100deg, #18253fee, #263653ee), url("rating-damask.png") center / 500px; box-shadow: 0 7px 24px #18253f18;
}
.belfast-banner picture>img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.belfast-banner-title { display: none; }
.belfast-banner::after { content: ""; position: absolute; inset: 10px; border: 1px solid #d4b37b70; border-radius: 3px; pointer-events: none; }
.search-card, .panel, .self-card, .player-header {
  background: linear-gradient(115deg, #fffdf9, #f7f4ed);
  border: 1px solid #cdb98f; border-radius: 7px;
  box-shadow: inset 0 0 0 4px #fffdf980, 0 5px 18px #26334b08;
}
.self-card { padding: 19px 26px; margin-bottom: 22px; border-left: 3px solid #b89960; }
.self-card strong { font: 700 18px/1.6 "Noto Serif SC", "SimSun", serif; color: var(--navy); }
.self-card p { color: #5c667a; font-size: 12px; }
.self-card small { display: block; font-size: 10px; color: #737b88; line-height: 1.8; margin-top: 5px; }
.self-actions { gap: 9px; }
.search-card { padding: 0 27px 22px; overflow: hidden; }
.section-heading h2, .bot-guide h2 { font: 700 17px/1.5 "Noto Serif SC", "SimSun", serif; }
.search-card>.section-heading, .panel>.section-heading {
  position: relative; margin: -1px -26px 23px; padding: 13px 25px; min-height: 49px;
  background: var(--royal-blue); color: #fff6e3; border-bottom: 1px solid #c4a265;
  border-radius: 6px 6px 0 0;
}
.search-card>.section-heading::after, .panel>.section-heading::after {
  content: ""; position: absolute; left: 40%; right: 30%; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, #d4b37b80, transparent); pointer-events: none;
}
.section-heading>span { color: #727a88; font-size: 11px; }
.search-card>.section-heading>span, .panel>.section-heading>span { color: #d9caaa; }
.search-card form { gap: 15px; }
.field>span, .account-filters label>span { color: #626c7c; font-size: 11px; }
.field select, .field input, .account-filters select, .account-filters input {
  background: #fffefb; border-color: #d1c6b3; font-size: 13px;
}
.primary {
  background: var(--royal-blue); border: 1px solid #af915a; color: #fff4dd;
  box-shadow: inset 0 0 0 2px #ffffff06, 0 2px 5px #18253f12; font-size: 12px;
}
.primary:hover:not(:disabled) { border-color: #e0ba75; box-shadow: 0 3px 10px #18253f28; filter: none; }
.secondary { background: #fffdf7; color: #40506d; border-color: #cbbc9f; font-size: 11px; }
.secondary:hover:not(:disabled) { background: #f1e9d8; border-color: #b49762; }
.text-button, .player-actions>a { color: #6e5938; }
.search-foot { color: #727b89; line-height: 1.8; }
.result-button { border-color: #d8c8a7; background: #fffaf0; }
.result-button:hover { background: #f0e6d3; }
.result-button small { color: #6e7887; }
.empty-state { margin: 24px 0; padding: 44px 20px 46px; background: #fffcf380; border: 1px solid #dbccaf; border-radius: 7px; color: #657086; }
.compass { color: #b2955d; font-size: 44px; }
.empty-state h2 { font: 700 21px/1.6 "Noto Serif SC", "SimSun", serif; color: var(--navy); }
.empty-state small { color: #747c89; }
.examples button, .command-presets button { color: #5f5138; background: #f1e8d6; border: 1px solid #dac7a3; }
.demo-banner { background: #fff6de; border-color: #d7bb82; color: #785826; }
.player-header { padding: 23px 25px 18px; gap: 17px; margin: 24px 0 14px; }
.player-avatar { flex-shrink: 0; background: var(--royal-blue); border: 1px solid #c4a265; border-radius: 6px; color: #e8cd94; }
.player-avatar svg { width: 35px; height: 35px; }
.rail-item svg { width: 20px; height: 20px; display: block; }
.player-title h2 { font-size: 23px; color: #1c2941; }
.player-kicker { color: #6f7b8d; flex-wrap: wrap; gap: 5px 12px; }
.player-title>div:last-child { color: #727b89; font-size: 10px; line-height: 1.7; }
.player-header .player-actions { border-top: 1px solid #e3d7c0; padding-top: 13px; }
.account-filters>label { min-width: 150px; }
.account-filters .text-button { color: #6e5938; }
.filter-note { margin: 0 4px 18px; font-size: 12px; }
.account-result-panel { background: transparent; border: 0; box-shadow: none; padding: 0; }
.account-result-panel>.section-heading { margin: 0 0 12px; border: 1px solid #b99a60; border-radius: 6px; padding: 13px 22px; }
.account-result-panel>.section-heading::after { left: 30%; right: 25%; }
.report-actions { margin: 0 0 14px; padding: 11px 14px; border: 1px solid #d6c39d; border-radius: 5px; background: #fffcf6; color: #665c4d; font-size: 11px; }
.report-paper { border: 1px solid #b99a60; border-radius: 6px; box-shadow: 0 8px 28px #18253f1a; }
.report-attribution { color: #687183; font-size: 10px; }
.report-attribution a, #report-png-open { color: #66512d; }
#stat-content>summary { background: var(--royal-blue); color: #fff3d9; border: 1px solid #b99a60; border-radius: 5px; }
.panel { padding: 24px 25px; overflow: hidden; }
.panel>.section-heading { margin-top: -25px; }
.metric { border-color: #d1bf9a; background: #fffcf6; border-radius: 6px; }
.metric:first-child { background: var(--royal-blue); border-color: #b99a60; }
.metric .label, .metric .note { color: #6c7686; }
.metric:first-child .label, .metric:first-child .note { color: #c0c9d8; }
.metric:first-child .value { color: #e8cd94; }
.detail-cell { background: #f4eee2; border: 1px solid #e2d5bb; border-radius: 5px; }
.detail-cell small { color: #677182; }
.detail-cell strong { color: var(--navy); }
.table-wrap { border: 1px solid #e0d5bf; border-radius: 4px; }
thead { background: #e9e2d4; }
th { color: #515d73; font-weight: 600; }
td { border-color: #e6dccb; }
tbody tr:nth-child(even) { background: #f8f4ec; }
tbody tr:hover { background: #eee4d0; }
td small, .table-footer { color: #737c89; }
.ship-type-tag, .count, .ship-detail { background: #eee4d0; color: #695536; }
.ship-filters input, .ship-filters select { background: #fffdf8; border-color: #d1c6b3; }
.muted, .recent-note, .recent-empty { color: #687588; }
.notice { background: #f5efe1; border-color: #ddccaa; color: #586476; }
.mode-bar { border-color: #cdbc9e; }
.mode-tabs button.selected { border-color: #a78245; }
.bot-intro { margin: 25px 0 24px; padding: 31px 32px; border: 1px solid #b89960; border-radius: 7px; background: var(--royal-blue); color: #fff5df; }
.bot-intro .eyebrow { color: #dec38e; }
.bot-intro h1 { font: 700 28px/1.5 "Noto Serif SC", "SimSun", serif; }
.bot-intro p { color: #cbd3e0; margin-bottom: 0; }
.pill { background: #ffffff15; color: #e9d6b0!important; border: 1px solid #c4a26566; }
.chat-bubble { border-radius: 6px; }
.received { background: #f3eddf; color: #47556b; border: 1px solid #e2d1ae; }
.sent { background: var(--royal-blue); color: #fff5df; border: 1px solid #b99a60; }
.bot-chat form { border-color: #d8c8a7; }
.bot-guide li p, .about-content p { color: #677386; }
.bot-guide ol { color: #aa8247; }
.bot-guide strong { color: var(--navy); }
.workspace-result { border: 1px solid #dcc9a5; background: #f5f0e6; border-radius: 5px; color: #33435d; }
.workspace-preferences { font-size: 12px; color: #59677d; }
.workspace-preferences select { background: #fffdf8; border-color: #cbbc9f; }
dialog { background: #fcfaf5; border: 1px solid #ba9759; border-radius: 8px; box-shadow: inset 0 0 0 4px #eee4cf, 0 20px 70px #14213b40; }
dialog::backdrop { background: #101c35a3; backdrop-filter: blur(4px); }
.dialog-head { padding-bottom: 15px; border-bottom: 1px solid #d8c5a0; }
.dialog-head h2 { font-family: "Noto Serif SC", "SimSun", serif; }
.icon-button { background: #eee4d2; color: #6e5938; }
.game-link-dialog button, .game-link-dialog select { border-color: #cbbc9f; background: #fffdf7; color: #40506d; border-radius: 5px; }
.royal-theme .game-link-dialog {
  background: #fcfaf5!important; color: #24334c!important;
  border: 1px solid #ba9759!important; border-radius: 8px!important;
}
footer { border-color: #d4bd90; color: #697387; line-height: 1.8; }

@media (max-width: 1200px) and (min-width: 721px) {
  .sidebar { width: 195px; padding: 27px 14px; }
  main { width: calc(100% - 195px); margin-left: 195px; padding: 0 26px; }
}
@media (max-width: 950px) {
  .self-card { align-items: flex-start; flex-direction: column; gap: 14px; }
  .player-header .player-actions { margin-left: 0; }
}
@media (max-width: 720px) {
  .sidebar { position: relative; width: 100%; padding: 17px 18px 14px; gap: 10px; border-right: 0; border-bottom: 1px solid #b99a60; }
  .sidebar::after { inset: 7px; }
  .brand { padding: 0; border: 0; margin: 0 auto 0 0; gap: 10px; }
  .brand>span { font-size: 22px; }
  .brand small { font-size: 8px; }
  .sidebar nav { width: 100%; gap: 5px; justify-content: space-between; }
  .rail-item { flex: 1; min-width: 0; justify-content: center; padding: 10px 6px!important; font-size: 10px; gap: 5px; }
  .rail-item.active { border-left: 1px solid #c4a26575!important; }
  .rail-item span { font-size: 16px; }
  main { width: 100%; margin: 0; padding: 0 15px; }
  .topbar { height: 55px; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb b { margin: 0 7px; }
  .preview-badge { font-size: 7px; padding: 6px 7px; letter-spacing: .8px; }
  .linked-tools { gap: 6px; margin: 15px 0; font-size: 10px; }
  .linked-tools a { padding: 6px 9px; }
  .belfast-banner { margin-bottom: 17px; aspect-ratio: auto; height: 185px; }
  .belfast-banner picture>img { position: absolute; top: 0; right: -72px; width: auto; height: 185px; max-width: none; mask-image: linear-gradient(90deg, transparent, #000 14%); }
  .belfast-banner-title { display: block; position: absolute; top: 50%; left: 10px; width: 47%; height: auto; transform: translateY(-50%); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 85%, transparent); }
  .self-card { padding: 17px 18px; margin-bottom: 17px; }
  .self-actions { width: 100%; }
  .self-actions button { flex: 1; padding: 11px 8px; }
  .search-card { padding: 0 17px 18px; }
  .search-card>.section-heading { margin: -1px -16px 17px; padding: 12px 16px; }
  .section-heading h2 { font-size: 16px; }
  .search-card>.section-heading>span { font-size: 9px; }
  .section-heading::after { display: none; }
  .search-foot { font-size: 9px; gap: 8px; }
  .search-foot .text-button { font-size: 10px; }
  .search-results { grid-template-columns: minmax(0, 1fr); }
  .player-header { padding: 18px 17px 15px; gap: 12px; margin-top: 19px; }
  .player-title { min-width: 0; }
  .player-avatar { width: 47px; height: 47px; }
  .player-avatar svg { width: 28px; height: 28px; }
  .account-filters>label { min-width: 0; }
  .account-filters select { font-size: 11px; padding: 0 7px; }
  .player-header .player-actions { gap: 7px; }
  .player-actions>a { font-size: 10px; }
  .account-result-panel { padding: 0; }
  .account-result-panel>.section-heading { padding: 12px 16px; margin: 0 0 10px; }
  .report-actions { padding: 10px; gap: 8px; font-size: 10px; }
  .report-actions .primary { width: 100%; margin: 2px 0 0; }
  .panel { padding: 21px 18px; }
  .panel>.section-heading { margin: -22px -19px 19px; padding: 12px 18px; flex-wrap: wrap; }
  .detail-cell { min-width: 0; padding: 12px; }
  .expanded-panel .detail-cell strong { font-size: 18px; overflow-wrap: anywhere; }
  .bot-intro { padding: 23px; }
  .bot-intro h1 { font-size: 24px; }
  .bot-chat .section-heading { gap: 7px; }
  .workspace-form .field { min-width: 0; }
  dialog { padding: 21px; }
  .examples { flex-wrap: wrap; }
  footer { font-size: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  button { transition: none; }
}
