:root {
  --text: #1f2933;
  --muted: #667085;
  --line: #d9dee7;
  --bg: #f4f6f8;
  --white: #fff;
  --green: #18704d;
  --blue: #1f65a6;
  --red: #b33a3a;
  --fan-red: #d7002a;
  --fan-dark: #11233f;
  --yellow: #966a16;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; background: var(--bg); color: var(--text); }
body, button, input, select, textarea, table { word-break: normal; overflow-wrap: normal; hyphens: none; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 16px; }

header {
  background: #173f33;
  color: white;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
header p { color: #d7e7e0; font-size: 13px; }
main { width: calc(100% - 24px); margin: 18px auto; }
body:not(.public-screen) { min-width: 1180px; }
body:not(.public-screen) main,
body:not(.public-screen) header { min-width: 1156px; }
body.public-screen { background: #f4f8fc; }
body.public-screen > header {
  position: absolute;
  top: 14px;
  right: 18px;
  z-index: 5;
  padding: 0;
  background: transparent;
}
body.public-screen > header > div:first-child,
body.public-screen #sessionText { display: none; }
body.public-screen #showAdminLogin {
  min-height: 34px;
  color: white;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.34);
}
.header-menu { position: relative; }
.menu-button { min-height: 34px; }
body.public-screen .menu-button {
  color: white;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.34);
}
.public-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  width: 230px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #d9dee7;
  border-radius: 8px;
  background: white;
  color: var(--text);
  box-shadow: 0 14px 34px rgba(17, 35, 63, 0.18);
}
.public-menu button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  background: white;
  color: var(--text);
  text-align: left;
  font-weight: 700;
}
.public-menu button:hover { background: #f2f5f8; }
.public-menu svg { width: 20px; height: 20px; color: var(--fan-dark); }
.info-modal { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 18px; background: rgba(17, 35, 63, 0.68); }
.info-modal-card { width: min(680px, 100%); max-height: min(720px, 92vh); overflow: auto; background: white; border-radius: 8px; padding: 22px; position: relative; box-shadow: 0 18px 45px rgba(0,0,0,0.25); }
.info-modal-card h2 { color: var(--fan-dark); font-size: 26px; margin: 0 100px 14px 0; }
.info-modal-body { display: grid; gap: 12px; color: #24364f; line-height: 1.5; }
.info-modal-body ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.info-modal-body .btn { width: fit-content; }
.signup-member-card { width: min(520px, 100%); }
.signup-member-card p { color: #34465e; line-height: 1.5; margin-bottom: 18px; }
.signup-member-card .actions .btn { min-height: 42px; }
.registration-edit-card { width: min(600px, 100%); }
.registration-edit-card > p { margin: 0 0 14px; }
.registration-edit-card form { gap: 12px; }
.travel-group-card { width: min(820px, 100%); }
.travel-group-card > p { margin: 0 0 14px; }
.travel-group-card form { display: grid; gap: 12px; }
.travel-group-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.travel-group-tabs { display: flex; flex-wrap: wrap; gap: 7px; min-width: 0; }
.travel-group-tab { min-height: 36px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border: 1px solid #c8d4df; border-radius: 6px; background: #f4f7f9; color: var(--fan-dark); cursor: pointer; }
.travel-group-tab:hover, .travel-group-tab.active { border-color: var(--blue); background: #eaf3fb; }
.travel-group-tab > span, .travel-group-assigned > span { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; background: var(--travel-group-color); }
.travel-group-tab small { min-width: 20px; padding: 1px 5px; border-radius: 9px; background: white; color: var(--muted); text-align: center; }
.travel-group-none { align-self: center; }
.travel-group-color-field { margin: 0; padding: 10px 12px 12px; border: 1px solid var(--line); border-radius: 6px; }
.travel-group-color-field legend { padding: 0 5px; color: var(--fan-dark); font-weight: 700; }
.travel-group-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.travel-group-color { position: relative; cursor: pointer; }
.travel-group-color input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.travel-group-color > span:not(.sr-only) { display: block; width: 30px; height: 30px; border: 3px solid white; border-radius: 50%; background: var(--travel-group-color); box-shadow: 0 0 0 1px #b9c6d1; }
.travel-group-color input:checked + span { box-shadow: 0 0 0 3px var(--fan-dark); }
.travel-group-color input:focus-visible + span { outline: 3px solid #79b8f3; outline-offset: 3px; }
.travel-group-member-list { max-height: 330px; overflow: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #f8fafc; }
.travel-group-member { min-width: 0; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; align-items: start; padding: 8px; border: 1px solid #dbe3ea; border-radius: 6px; background: white; cursor: pointer; }
.travel-group-member:hover { border-color: #9ab7d0; }
.travel-group-member input { margin-top: 3px; }
.travel-group-member strong, .travel-group-member small { display: block; overflow-wrap: anywhere; }
.travel-group-member small { margin-top: 2px; color: var(--muted); }
.travel-group-assigned { display: flex !important; align-items: center; gap: 5px; color: #44566c !important; }
.travel-group-actions { justify-content: space-between; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.install-help-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.install-help-grid section { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #f8fafc; }
.install-help-grid h3 { margin: 0 0 8px; color: var(--fan-dark); font-size: 18px; }
.install-help-grid ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.hidden { display: none !important; }
.print-only { display: none; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 14px; overflow: visible; }
.public { max-width: 760px; margin: 18px auto; }
.signup-brand-hero {
  width: calc(100% + 24px);
  margin: -18px -12px 18px;
  background:
    repeating-linear-gradient(12deg, rgba(255,255,255,0.055) 0 2px, transparent 2px 18px),
    radial-gradient(circle at 78% 20%, rgba(255,255,255,0.14), transparent 24%),
    linear-gradient(90deg, rgba(215, 0, 42, 0.98), rgba(213, 0, 42, 0.9)),
    radial-gradient(circle at 18% 20%, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(135deg, #b60025, #e1002d);
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.35);
  box-shadow: 0 10px 28px rgba(112, 0, 20, 0.18);
}
.signup-brand-inner {
  max-width: 1240px;
  min-height: 118px;
  margin: 0 auto;
  padding: 16px 26px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}
.signup-brand-inner img { width: 94px; height: 94px; object-fit: contain; border-radius: 50%; background: white; }
.signup-brand-title { display: grid; gap: 4px; line-height: 1; }
.signup-brand-title strong { font-size: 36px; font-weight: 900; letter-spacing: 0; }
.signup-brand-title span { font-size: 20px; letter-spacing: 10px; font-weight: 700; }
.signup-brand-claim { font-size: 42px; font-family: "Segoe Script", "Brush Script MT", cursive; font-weight: 700; white-space: nowrap; transform: rotate(-5deg); }
.public-layout { max-width: 1360px; margin: 0 auto 24px; display: grid; grid-template-columns: minmax(0, 820px) minmax(320px, 420px); gap: 26px; align-items: stretch; }
.public-layout .public { width: 100%; margin: 0; }
.signup-card,
.signup-info-panel { border-color: #dde4ee; box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08); }
.signup-card { padding: 22px; }
.signup-heading { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 18px; align-items: center; margin-bottom: 18px; }
.signup-heading-icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--fan-red); color: white; font-size: 34px; font-weight: 900; }
.signup-heading h2 { font-size: 34px; color: var(--fan-dark); margin: 0 0 4px; }
.signup-heading p { color: #405573; font-size: 16px; line-height: 1.4; }
.signup-alert { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 14px; padding: 18px 20px; border-radius: 8px; margin-bottom: 14px; line-height: 1.4; }
.signup-alert strong { display: block; font-size: 17px; margin-bottom: 4px; }
.signup-alert p { font-size: 15px; }
.signup-alert ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; color: #304766; }
.signup-alert li { position: relative; padding-left: 30px; font-size: 15px; }
.signup-alert li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #1677d2; color: white; font-size: 13px; font-weight: 900; }
.signup-alert-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; font-size: 23px; font-weight: 900; }
.signup-alert-danger { background: #fff0f3; border: 1px solid #ffd1dc; border-left: 4px solid var(--fan-red); color: #cf0029; }
.signup-alert-danger .signup-alert-icon { background: var(--fan-red); }
.signup-alert-info { background: #eef7ff; border: 1px solid #b9ddff; border-left: 4px solid #1677d2; color: #075bb0; }
.signup-alert-info .signup-alert-icon { background: #1677d2; }
.signup-alert-combined ul { margin-top: 0; }
.signup-label-note { color: #5a6b85; font-size: 13px; font-weight: 700; }
[contenteditable="true"] { outline: 0; }
[contenteditable="true"]:focus { box-shadow: 0 0 0 3px rgba(22, 119, 210, 0.18); border-radius: 6px; }
.no-trip-notice {
  min-height: 230px;
  display: grid;
  place-items: center;
  margin-top: 16px;
  padding: 24px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: white;
  color: var(--fan-dark);
  text-align: center;
}
.no-trip-notice strong { font-size: 22px; line-height: 1.35; }
.public form { gap: 14px; }
.public label { color: #34465e; font-size: 15px; font-weight: 800; gap: 7px; }
.public label b { color: var(--fan-red); }
.public input, .public select { min-height: 48px; font-size: 16px; padding: 11px 12px; border-radius: 8px; border-color: #cfd8e6; box-shadow: inset 0 1px 2px rgba(31, 41, 51, 0.04); }
.public input:focus, .public select:focus { outline: 2px solid rgba(22, 119, 210, 0.22); border-color: #1677d2; }
.travel-option-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.travel-option-field legend { margin-bottom: 7px; color: #34465e; font-size: 15px; font-weight: 800; }
.travel-option-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.travel-option-choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 11px; border: 1px solid #cfd8e6; border-radius: 6px; background: #f8fafc; color: #34465e; font-size: 14px; font-weight: 700; cursor: pointer; }
.travel-option-choices label:has(input:checked) { border-color: #1f65a6; background: #e8f0f8; color: #174d80; }
.travel-option-choices label:has(#registrationEditOnlyTicket:checked) { border-color: #d6a440; background: #fff1cf; color: #815000; }
.travel-option-choices input, .public .travel-option-choices input { flex: 0 0 18px; width: 18px; height: 18px; min-height: 18px; margin: 0; padding: 0; border-radius: 3px; box-shadow: none; accent-color: #1f65a6; }
#registrationEditOnlyTicket { accent-color: #a16600; }
.public .btn { min-height: 48px; font-size: 17px; }
.signup-submit { background: var(--fan-red) !important; border-radius: 8px; min-height: 54px !important; font-size: 20px !important; box-shadow: 0 8px 18px rgba(215, 0, 42, 0.22); }
.signup-submit::before { content: "✓"; margin-right: 10px; font-weight: 900; }
.public-logo-panel { display: grid; place-items: center; padding: 12px; }
.public-logo-panel img { display: block; width: min(100%, 300px); height: auto; image-rendering: auto; }
.signup-info-panel { align-content: start; justify-items: center; padding: 30px 28px; text-align: center; color: var(--fan-dark); }
.signup-info-panel h2 { margin-top: 18px; font-size: 25px; }
.signup-info-panel > p { max-width: 320px; margin-top: 10px; color: #47607f; line-height: 1.35; font-size: 16px; }
.signup-benefits { width: 100%; display: grid; gap: 18px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); text-align: left; }
.signup-benefits div { display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 14px; align-items: center; }
.signup-benefits span { grid-row: span 2; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: #fff0f3; color: var(--fan-red); font-weight: 900; font-size: 13px; }
.signup-benefits strong { font-size: 16px; }
.signup-benefits small { color: #526a89; font-size: 14px; }
.signup-mia-box { width: 100%; margin-top: 30px; padding: 18px 20px; border-radius: 8px; background: linear-gradient(135deg, #fff0f3, #ffe4e9); display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 16px; align-items: center; text-align: left; }
.signup-mia-box span { display: grid; place-items: center; min-height: 46px; color: var(--fan-red); font-weight: 900; }
.signup-mia-box strong { color: var(--fan-red); font-family: "Segoe Script", "Brush Script MT", cursive; font-size: 26px; line-height: 1; }
.signup-mia-box small { display: block; margin-top: 5px; color: #536b89; font-size: 13px; }
.fanclub-nav {
  width: 100%;
  display: grid;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.fanclub-nav button {
  width: 100%;
  min-height: 68px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid #ffd1dc;
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7f9, #ffe8ee);
  color: var(--fan-dark);
  text-align: left;
  cursor: default;
}
.fanclub-nav button[data-public-panel-button="news"],
.fanclub-nav button[data-public-panel-button="gallery"],
.fanclub-nav button[data-public-panel-button="data"],
.fanclub-nav button[data-public-panel-button="about"] { cursor: pointer; }
.fanclub-nav button[data-public-panel-button="news"]:hover,
.fanclub-nav button[data-public-panel-button="gallery"]:hover,
.fanclub-nav button[data-public-panel-button="data"]:hover,
.fanclub-nav button[data-public-panel-button="about"]:hover,
.news-card:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(31, 41, 51, 0.1); }
.fanclub-nav button span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--fan-red);
  color: white;
}
.fanclub-nav button svg { width: 26px; height: 26px; }
.fanclub-nav button strong { font-size: 16px; line-height: 1.2; }
.public-fanclub-panel { max-width: 1360px; margin: 0 auto 24px; padding: 22px; box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08); }
.about-content { display: grid; gap: 16px; margin-top: 14px; }
.about-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  overflow: hidden;
  border: 1px solid #dde4ee;
  border-radius: 8px;
  background: white;
}
.about-table th,
.about-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #dde4ee;
  font-size: 16px;
  line-height: 1.35;
}
.about-table th {
  width: 42%;
  background: #fff7f9;
  color: var(--fan-dark);
  font-weight: 900;
}
.about-table td { color: #1f2933; }
.about-table tr:last-child th,
.about-table tr:last-child td { border-bottom: 0; }
.about-spacer td { height: 18px; padding: 0; background: #fbfcfe; }
.about-edit-form textarea { min-height: 360px; }
.public-news-page { max-width: 1360px; margin: 0 auto 24px; padding: 22px; box-shadow: 0 12px 30px rgba(31, 41, 51, 0.08); border-color: #dde4ee; }
.news-page-heading { grid-template-columns: 72px minmax(0, 1fr) auto; margin-bottom: 18px; }
.news-page-heading .btn { min-height: 42px; white-space: nowrap; }
.news-page-grid { margin-top: 0; }
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.news-card { min-height: 260px; display: grid; grid-template-rows: auto minmax(154px, 1fr); border: 1px solid #dde4ee; border-radius: 8px; overflow: hidden; background: white; color: var(--fan-dark); text-align: left; box-shadow: 0 8px 18px rgba(31, 41, 51, 0.06); cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.news-card-image { min-height: 154px; display: grid; place-items: center; padding: 10px; background: linear-gradient(135deg, #fff0f3, #ffe4e9); color: var(--fan-red); font-weight: 900; }
.news-card-image img { width: 100%; height: 100%; max-height: 190px; object-fit: contain; display: block; }
.news-card-body { padding: 12px 12px 10px; display: grid; gap: 6px; align-content: start; background: white; }
.news-card-body strong { font-size: 17px; }
.news-card-body p { color: #526a89; line-height: 1.35; }
.news-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 18px; background: rgba(17, 35, 63, 0.68); }
.news-modal-card { width: min(760px, 100%); max-height: min(760px, 92vh); overflow: auto; background: white; border-radius: 8px; padding: 22px; position: relative; box-shadow: 0 18px 45px rgba(0,0,0,0.25); }
.news-modal-close { position: absolute; top: 12px; right: 12px; min-height: 34px; border-radius: 6px; padding: 0 10px; background: #e8edf2; font-weight: 800; }
.news-modal-card h2 { color: var(--fan-dark); font-size: 26px; margin: 0 100px 14px 0; }
.news-modal-text { color: #24364f; line-height: 1.55; font-size: 16px; }
.gallery-description { margin: 0 0 16px; padding: 12px 14px; border: 1px solid #dde4ee; border-radius: 8px; background: #f8fbff; }
.news-modal-media img { width: 100%; height: auto; border-radius: 8px; display: block; }
.gallery-modal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.gallery-image-button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-image-button img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; border: 1px solid #dde4ee; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; padding: 18px; background: rgba(10, 20, 38, 0.92); cursor: zoom-out; }
.gallery-lightbox-image { display: grid; place-items: center; max-width: 100%; max-height: 100%; padding: 0; border: 0; background: none; cursor: zoom-out; }
.gallery-lightbox-image img { display: block; max-width: min(96vw, 1800px); max-height: 94vh; width: auto; height: auto; object-fit: contain; }
.gallery-preview { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 4px 0 10px; }
.gallery-preview img { width: 100%; height: 74px; object-fit: cover; border-radius: 6px; display: block; border: 1px solid #dde4ee; }
.gallery-preview-item { position: relative; }
.gallery-preview-item button { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; border-radius: 4px; background: #fff; color: #9a1733; font-size: 21px; line-height: 1; box-shadow: 0 1px 5px rgba(0,0,0,0.25); cursor: pointer; }
.gallery-preview .empty { margin: 0; }
.public-data-form { max-width: 860px; margin: 0 auto; }
.public-data-form textarea { min-height: 120px; font-size: 16px; border-radius: 8px; border-color: #cfd8e6; box-shadow: inset 0 1px 2px rgba(31, 41, 51, 0.04); }
.signup-text-form { display: grid; gap: 12px; }
.signup-edit-preview { max-width: none; margin: 8px 0 12px; grid-template-columns: minmax(0, 820px) minmax(320px, 420px); }
.signup-edit-preview .public,
.signup-edit-preview .public-logo-panel { margin: 0; }
.signup-edit-preview [data-signup-edit] { border-radius: 6px; outline: 1px dashed transparent; cursor: text; transition: background 0.15s ease, outline-color 0.15s ease; }
.signup-edit-preview [data-signup-edit]:hover { background: rgba(255, 241, 191, 0.65); outline-color: #e4bd57; }
.signup-edit-preview [data-signup-edit]:focus { background: #fff7d8; outline: 2px solid #e4bd57; }
.signup-edit-preview input:disabled,
.signup-edit-preview select:disabled { opacity: 1; color: #667085; cursor: default; }
.news-admin-list { display: grid; gap: 10px; margin-top: 14px; }
.news-admin-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; }
.news-admin-preview { width: 96px; height: 64px; display: grid; place-items: center; border-radius: 6px; overflow: hidden; background: #fff0f3; color: var(--fan-red); font-weight: 900; }
.news-admin-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.signup-heading-icon svg,
.signup-alert-icon svg { width: 58%; height: 58%; stroke-width: 2.4; }
.signup-alert li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding-left: 0; }
.signup-alert li::before { content: none; display: none; }
.signup-alert li svg { width: 22px; height: 22px; color: #1677d2; fill: #1677d2; stroke: white; stroke-width: 3; }
.signup-notice-inline { margin: 12px 0 0; padding: 12px 14px; border: 1px solid #b9ddff; border-radius: 7px; background: rgba(255,255,255,0.62); color: #075bb0; font-weight: 700; }
.public label > span { display: inline-flex; align-items: center; gap: 8px; }
.public label > span svg { color: #34465e; width: 17px; height: 17px; fill: #34465e; stroke-width: 0; }
.input-wrap { display: grid; grid-template-columns: 46px minmax(0, 1fr); align-items: stretch; }
.input-wrap > svg { width: 46px; height: 48px; padding: 14px; color: #34465e; background: #f2f5f8; border: 1px solid #cfd8e6; border-right: 0; border-radius: 8px 0 0 8px; }
.public .input-wrap input,
.public .input-wrap select { border-radius: 0 8px 8px 0; }
.signup-submit::before { content: "✓"; }
.signup-benefits span { font-size: 28px; }
.signup-benefits span svg { width: 32px; height: 32px; fill: currentColor; stroke-width: 0; }
.signup-mia-box span svg { width: 54px; height: 54px; fill: currentColor; stroke-width: 0; }
.admin-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
form, .list { display: grid; gap: 10px; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; background: white; color: var(--text); }
textarea { min-height: 70px; resize: vertical; }
.checkline { display: flex; grid-template-columns: none; align-items: center; gap: 8px; color: var(--text); }
.checkline input { width: auto; min-height: 0; }
.notice { margin: 12px 0; padding: 12px; border: 1px solid #c8d9cf; border-radius: 8px; background: #edf7f1; color: #173f33; line-height: 1.4; white-space: pre-wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-width: 0; }
.btn { min-height: 38px; border-radius: 6px; padding: 0 12px; font-weight: 700; background: #e8edf2; color: var(--text); }
.btn.primary { background: var(--green); color: white; }
.btn.blue { background: var(--blue); color: white; }
.btn.danger { background: #f3dddd; color: var(--red); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.tool-tabs { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.tool-tabs .btn { width: 100%; padding: 0 8px; }
.tool-tab-with-badge { display: flex; align-items: center; justify-content: center; gap: 8px; }
.tab-badge { min-width: 22px; min-height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 0 7px; background: var(--fan-red); color: white; font-size: 12px; font-weight: 900; }
.list-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; }
.list-tabs .btn { min-height: 34px; padding: 0 10px; }
.tool-panel { margin-top: 0; }
.muted { color: var(--muted); font-size: 13px; line-height: 1.35; }
.trip { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: white; display: grid; gap: 8px; }
.trip-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.section-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; border-radius: 999px; padding: 0 12px; background: #e8f0f8; color: var(--blue); border: 1px solid #b9cde3; font-size: 14px; font-weight: 800; white-space: nowrap; flex-wrap: wrap; }
.count-badge span + span { border-left: 1px solid #b9cde3; padding-left: 8px; }
.history-list { display: grid; gap: 10px; margin-top: 10px; }
.history-item { border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; display: grid; gap: 8px; }
.history-toolbar { grid-template-columns: minmax(160px, 220px) minmax(190px, 240px) minmax(260px, 1fr); margin: 10px 0 0; }
.history-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.history-action { min-height: 26px; padding: 0 8px; font-size: 12px; font-weight: 700; }
.history-group { display: grid; gap: 3px; }
.history-group h4 { margin: 0; font-size: 12px; }
.history-names { columns: 5 145px; column-gap: 12px; font-size: 12px; line-height: 1.2; }
.history-names div { break-inside: avoid; padding: 0; }
.database-list { display: grid; gap: 8px; margin-top: 10px; max-height: none; overflow: visible; }
.person-item { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: white; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.person-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.person-title strong { font-size: 16px; }
.person-facts { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 7px; color: var(--muted); font-size: 13px; }
.person-facts strong { color: var(--text); }
.person-actions { display: flex; gap: 6px; align-items: center; }
.person-actions .btn { min-height: 30px; padding: 0 8px; font-size: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 24px; border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 700; background: #e7f3ee; color: var(--green); white-space: nowrap; }
.badge.blue { background: #e8f0f8; color: var(--blue); }
.badge.yellow { background: #f6eddb; color: var(--yellow); }
.badge.red { background: #f3dddd; color: var(--red); }
.badge.gray { background: #edf0f3; color: var(--muted); }
.badge.free { margin-top: 5px; background: #fff1bf; color: #7a4b00; border: 1px solid #e4bd57; }
.travel-option-line { margin-top: 3px; line-height: 1; }
.travel-option-badge { display: inline-flex; align-items: center; min-height: 17px; max-width: 100%; padding: 1px 5px; border: 1px solid; border-radius: 4px; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap; }
.travel-option-badge.ticket { border-color: #d6a440; background: #fff1cf; color: #815000; }
.travel-option-badge.bus { border-color: #b9cde3; background: #e8f0f8; color: #174d80; }
#registrationsTable .travel-option-badge.bus,
#driversTable .travel-option-badge.bus,
#waitingTable .travel-option-badge.bus { font-size: 13px; }
.badge.committee { margin-top: 5px; background: #e8f0f8; color: var(--blue); border: 1px solid #b9cde3; }
.database-cell { display: grid; gap: 7px; align-content: start; }
.database-badge-grid { display: grid; grid-template-columns: max-content max-content; gap: 5px 10px; align-items: start; }
.database-badge-group,
.database-cell .competition-info { display: grid; gap: 5px; align-content: start; }
.database-cell .badge { width: fit-content; }
.db-trip-count { font-size: 14px; font-weight: 800; color: var(--text); line-height: 1.2; }
.competition-info { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.database-cell .competition-info { margin-top: 0; }
.discount-badge { display: inline-flex; align-items: center; min-height: 22px; border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.discount-badge.child { background: #e8f0f8; color: var(--blue); border: 1px solid #b9cde3; }
.discount-badge.youth { background: #e7f3ee; color: var(--green); border: 1px solid #b7d9c8; }
.discount-badge.senior { background: #f3dddd; color: var(--red); border: 1px solid #e0b4b4; }
.discount-badge.normal { background: #edf0f3; color: var(--muted); border: 1px solid #d4dbe3; }
.age-status { display: grid; justify-items: start; gap: 2px; margin-top: 2px; }
.disability-badge { display: inline-flex; align-items: center; min-height: 19px; border: 1px solid #b85c00; border-radius: 999px; padding: 0 6px; background: #f6a623; color: #3b2500; font-size: 11px; font-weight: 800; line-height: 1; white-space: nowrap; }
#driversTable .discount-badge, #waitingTable .discount-badge { min-height: 19px; padding: 0 6px; font-size: 11px; }
.print-committee { display: none; }
.committee-box { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; background: #f8fafc; display: grid; gap: 10px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.committee-check { align-items: flex-start; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.committee-check span { display: grid; gap: 2px; }
.committee-check small { color: var(--muted); }
.member-trip-row input[data-member-boarding],
.member-trip-row input[data-committee-boarding] { min-height: 34px; margin-top: 5px; }
.person-item.compact { padding: 9px 10px; }
.data-request-layout { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 12px; }
.data-request-list { display: grid; gap: 8px; }
.data-request-item { width: 100%; display: grid; gap: 4px; text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: white; color: var(--text); }
.data-request-item:hover,
.data-request-item.active { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31, 101, 166, 0.12); }
.data-request-item span { color: var(--blue); font-weight: 700; }
.data-request-item small { color: var(--muted); }
.data-request-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.data-request-card { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: white; display: grid; gap: 10px; }
.data-request-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.data-request-facts span { display: grid; gap: 2px; color: var(--text); overflow-wrap: anywhere; }
.data-request-facts strong,
.data-request-new-value strong { color: var(--muted); font-size: 12px; }
.data-request-new-value { border: 1px solid #b9ddff; border-radius: 8px; padding: 10px; background: #eef7ff; }
.data-request-new-value p { margin-top: 4px; line-height: 1.4; overflow-wrap: anywhere; }
.data-request-person-form { display: grid; gap: 10px; }
.legal-text-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.legal-text-editor textarea { min-height: 170px; resize: vertical; line-height: 1.45; }
.legal-inline-form { display: grid; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.legal-inline-form textarea { min-height: 300px; resize: vertical; line-height: 1.5; }
.toolbar { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 430px) minmax(240px, 300px); gap: 12px; margin-bottom: 12px; align-items: end; }
.toolbar:not(.history-toolbar) label { color: var(--blue); font-weight: 700; font-size: 14px; }
.toolbar:not(.history-toolbar) input,
.toolbar:not(.history-toolbar) select { min-height: 52px; border: 2px solid var(--blue); border-radius: 8px; font-size: 17px; font-weight: 700; background: #fff; box-shadow: 0 0 0 3px rgba(27, 75, 126, 0.08); }
.trip-select-label { color: var(--blue); font-weight: 700; }
.database-top-actions { margin: 8px 0 12px; }
.list-actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
.list-actions .btn { min-height: 32px; padding: 0 8px; width: 100%; }
.ticket-select { min-height: 34px; padding: 6px 8px; font-size: 13px; font-weight: 700; }
.ticket-select.bus-only:disabled { opacity: 1; background: #edf0f3; color: #52606d; border-color: #cfd7df; cursor: not-allowed; }
.ticket-group-row td { background: #dfe9f5; color: var(--blue); font-size: 14px; }
.boarding-group-row td { background: #edf2f0; }
.print-summary { display: none; }
.driver-print-pages { display: none; }
table { width: 100%; border-collapse: collapse; background: white; table-layout: fixed; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; min-width: 0; line-height: 1.35; }
th { background: #edf2f0; font-size: 13px; }
th:last-child, td:last-child { width: 190px; }
#registrationsTable th:nth-child(1), #registrationsTable td:nth-child(1) { width: 20%; }
#registrationsTable th:nth-child(2), #registrationsTable td:nth-child(2) { width: 17%; }
#registrationsTable th:nth-child(3), #registrationsTable td:nth-child(3) { width: 14%; }
#registrationsTable th:nth-child(4), #registrationsTable td:nth-child(4) { width: 11%; padding-right: 14px; }
#registrationsTable th:nth-child(5), #registrationsTable td:nth-child(5) { width: 23%; padding-left: 14px; padding-right: 10px; }
#registrationsTable th:nth-child(6), #registrationsTable td:nth-child(6) { width: 7%; }
#registrationsTable th:nth-child(7), #registrationsTable td:nth-child(7) { width: 8%; }
#registrationsTable .email-line, #driversTable .email-line, #waitingTable .email-line { font-size: 12px; overflow-wrap: anywhere; word-break: break-word; }
#registrationsTable .phone-line, #driversTable .phone-line, #waitingTable .phone-line { margin-top: 0.9mm; }
#registrationsTable td.database-cell {
  position: relative;
  z-index: 1;
  border-bottom: 0 !important;
  background: white;
  box-shadow: inset 0 -10px 0 white;
}
#registrationsTable .actions { display: grid; grid-template-columns: 1fr; gap: 6px; }
#registrationsTable .btn { width: 100%; min-height: 34px; padding: 0 8px; }
.registration-person-line { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; }
.registration-person-line strong { min-width: 0; }
.travel-group-badge { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; margin: 3px 0 0 7px; padding: 2px 6px; border: 1px solid var(--travel-group-color); border-radius: 9px; background: #f7f9fb; color: #293b52; font-size: 11px; font-weight: 700; line-height: 1.2; vertical-align: top; overflow-wrap: anywhere; }
.travel-group-badge > span { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--travel-group-color); }
tr.travel-group-row > td:first-child { box-shadow: inset 4px 0 0 var(--travel-group-color); padding-left: 14px; }
#registrationsTable .reg-edit-button { flex: 0 0 26px; width: 26px; height: 26px; min-height: 26px; padding: 4px; border: 1px solid #bfd1e2; border-radius: 6px; background: #edf4fa; color: #185786; }
.reg-edit-button:hover { background: #dbeafa; }
.reg-edit-button:focus-visible { outline: 2px solid #1677d2; outline-offset: 2px; }
.reg-edit-button svg { width: 16px; height: 16px; }
body.readonly-admin .reg-edit-button { display: none; }
#driversTable th:nth-child(1), #driversTable td:nth-child(1) { width: 20%; }
#driversTable th:nth-child(2), #driversTable td:nth-child(2) { width: 13%; }
#driversTable th:nth-child(3), #driversTable td:nth-child(3) { width: 18%; }
#driversTable th:nth-child(4), #driversTable td:nth-child(4) { width: 9%; }
#driversTable th:nth-child(5), #driversTable td:nth-child(5) { width: 12%; }
#driversTable th:nth-child(6), #driversTable td:nth-child(6) { width: 14%; }
#driversTable th:nth-child(7), #driversTable td:nth-child(7) { width: 14%; }
#waitingTable th:nth-child(1), #waitingTable td:nth-child(1) { width: 7%; }
#waitingTable th:nth-child(2), #waitingTable td:nth-child(2) { width: 18%; }
#waitingTable th:nth-child(3), #waitingTable td:nth-child(3) { width: 13%; }
#waitingTable th:nth-child(4), #waitingTable td:nth-child(4) { width: 20%; }
#waitingTable th:nth-child(5), #waitingTable td:nth-child(5) { width: 10%; }
#waitingTable th:nth-child(6), #waitingTable td:nth-child(6) { width: 12%; }
#waitingTable th:nth-child(7), #waitingTable td:nth-child(7) { width: 20%; }
#roundBirthdaysTable { margin-top: 10px; table-layout: fixed; }
#roundBirthdaysTable th:nth-child(1), #roundBirthdaysTable td:nth-child(1) { width: 38%; }
#roundBirthdaysTable th:nth-child(2), #roundBirthdaysTable td:nth-child(2) { width: 22%; }
#roundBirthdaysTable th:nth-child(3), #roundBirthdaysTable td:nth-child(3) { width: 18%; }
#roundBirthdaysTable th:nth-child(4), #roundBirthdaysTable td:nth-child(4) { width: 22%; }
.empty { color: var(--muted); text-align: center; padding: 16px; }
.toast { position: fixed; right: 18px; bottom: 18px; background: #1f2933; color: white; border-radius: 8px; padding: 12px 14px; opacity: 0; transform: translateY(8px); transition: opacity 150ms ease, transform 150ms ease; pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); }
body.readonly-admin #sessionText { font-weight: 700; color: #d7e7e0; }
body.readonly-admin #tripForm,
body.readonly-admin [data-tool-tab="person"],
body.readonly-admin [data-tool-tab="notice"],
body.readonly-admin [data-data-request-done],
body.readonly-admin [data-data-request-delete],
body.readonly-admin #dataRequestPersonForm button,
body.readonly-admin #openCommitteeTripPicker,
body.readonly-admin #openMemberTripPicker,
body.readonly-admin #openTravelGroupManager,
body.readonly-admin #committeeTripPanel,
body.readonly-admin #memberTripPanel,
body.readonly-admin [data-edit-trip],
body.readonly-admin [data-toggle-trip],
body.readonly-admin [data-complete-trip],
body.readonly-admin [data-delete-trip],
body.readonly-admin [data-edit-person],
body.readonly-admin [data-delete-person],
body.readonly-admin [data-committee-add],
body.readonly-admin [data-committee-remove],
body.readonly-admin [data-edit-history],
body.readonly-admin [data-status],
body.readonly-admin [data-ticket-type],
body.readonly-admin #registrationsTable th:nth-child(7),
body.readonly-admin #registrationsTable td:nth-child(7),
body.readonly-admin #driversTable th:nth-child(6),
body.readonly-admin #driversTable td:nth-child(6),
body.readonly-admin #driversTable th:nth-child(7),
body.readonly-admin #driversTable td:nth-child(7),
body.readonly-admin #waitingTable th:nth-child(7),
body.readonly-admin #waitingTable td:nth-child(7) {
  display: none !important;
}

@media (max-width: 1320px) {
  body.public-screen .legal-text-editor { grid-template-columns: 1fr; }
}

@media screen and (max-width: 1320px) {
  body:not(.public-screen) #registrationsTable {
    width: 1500px;
    min-width: 1500px;
  }
  body:not(.public-screen) #driversTable,
  body:not(.public-screen) #waitingTable {
    width: 1360px;
    min-width: 1360px;
  }
  body:not(.public-screen) #registrationsTable th:nth-child(1),
  body:not(.public-screen) #registrationsTable td:nth-child(1) { width: 22%; }
  body:not(.public-screen) #registrationsTable th:nth-child(2),
  body:not(.public-screen) #registrationsTable td:nth-child(2) { width: 18%; }
  body:not(.public-screen) #registrationsTable th:nth-child(3),
  body:not(.public-screen) #registrationsTable td:nth-child(3) { width: 15%; }
  body:not(.public-screen) #registrationsTable th:nth-child(4),
  body:not(.public-screen) #registrationsTable td:nth-child(4) { width: 12%; padding-right: 18px; }
  body:not(.public-screen) #registrationsTable th:nth-child(5),
  body:not(.public-screen) #registrationsTable td:nth-child(5) { width: 19%; padding-left: 18px; padding-right: 14px; }
  body:not(.public-screen) #registrationsTable th:nth-child(6),
  body:not(.public-screen) #registrationsTable td:nth-child(6) { width: 7%; }
  body:not(.public-screen) #registrationsTable th:nth-child(7),
  body:not(.public-screen) #registrationsTable td:nth-child(7) { width: 7%; }
  body:not(.public-screen) #driversTable th:nth-child(1),
  body:not(.public-screen) #driversTable td:nth-child(1) { width: 22%; }
  body:not(.public-screen) #driversTable th:nth-child(2),
  body:not(.public-screen) #driversTable td:nth-child(2) { width: 14%; }
  body:not(.public-screen) #driversTable th:nth-child(3),
  body:not(.public-screen) #driversTable td:nth-child(3) { width: 17%; }
  body:not(.public-screen) #driversTable th:nth-child(4),
  body:not(.public-screen) #driversTable td:nth-child(4) { width: 9%; }
  body:not(.public-screen) #driversTable th:nth-child(5),
  body:not(.public-screen) #driversTable td:nth-child(5) { width: 12%; }
  body:not(.public-screen) #driversTable th:nth-child(6),
  body:not(.public-screen) #driversTable td:nth-child(6) { width: 12%; }
  body:not(.public-screen) #driversTable th:nth-child(7),
  body:not(.public-screen) #driversTable td:nth-child(7) { width: 14%; }
  body:not(.public-screen) #waitingTable th:nth-child(1),
  body:not(.public-screen) #waitingTable td:nth-child(1) { width: 6%; }
  body:not(.public-screen) #waitingTable th:nth-child(2),
  body:not(.public-screen) #waitingTable td:nth-child(2) { width: 23%; }
  body:not(.public-screen) #waitingTable th:nth-child(3),
  body:not(.public-screen) #waitingTable td:nth-child(3) { width: 14%; }
  body:not(.public-screen) #waitingTable th:nth-child(4),
  body:not(.public-screen) #waitingTable td:nth-child(4) { width: 18%; }
  body:not(.public-screen) #waitingTable th:nth-child(5),
  body:not(.public-screen) #waitingTable td:nth-child(5) { width: 10%; }
  body:not(.public-screen) #waitingTable th:nth-child(6),
  body:not(.public-screen) #waitingTable td:nth-child(6) { width: 12%; }
  body:not(.public-screen) #waitingTable th:nth-child(7),
  body:not(.public-screen) #waitingTable td:nth-child(7) { width: 17%; }
}

@media (max-width: 860px) {
  body.public-screen .row,
  body.public-screen .public-layout { grid-template-columns: 1fr; }
  .news-page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup-brand-inner { grid-template-columns: auto minmax(0, 1fr); min-height: auto; padding: 14px 16px; gap: 12px; }
  .signup-brand-inner img { width: 72px; height: 72px; }
  .signup-brand-title strong { font-size: 24px; }
  .signup-brand-title span { font-size: 13px; letter-spacing: 5px; }
  .signup-brand-claim { grid-column: 1 / -1; justify-self: center; font-size: 30px; }
  .signup-heading { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .news-page-heading { grid-template-columns: 56px minmax(0, 1fr); }
  .news-page-heading .btn { grid-column: 1 / -1; width: 100%; }
  .signup-heading-icon { width: 56px; height: 56px; font-size: 26px; }
  .signup-heading h2 { font-size: 28px; }
  .signup-alert { grid-template-columns: 40px minmax(0, 1fr); padding: 14px; }
  .public-logo-panel { padding-top: 20px; }
  .public-logo-panel img { width: min(100%, 240px); }
  body.public-screen > header { top: 8px; right: 8px; }
  body.public-screen #showAdminLogin { min-height: 30px; padding: 0 8px; font-size: 12px; }
}

@media (max-width: 560px) {
  .registration-edit-card .row { grid-template-columns: 1fr; }
  .travel-group-toolbar { flex-direction: column; }
  .travel-group-member-list { grid-template-columns: 1fr; }
  .news-page-grid { grid-template-columns: 1fr; }
  .install-help-grid { grid-template-columns: 1fr; }
  body.public-screen > header {
    top: 10px;
    right: 10px;
    max-width: 46vw;
    justify-content: flex-end;
    gap: 6px;
  }
  body.public-screen header > div:last-child {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
  }
  body.public-screen .menu-button,
  body.public-screen #showAdminLogin {
    min-height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1;
  }
  body.public-screen .public-menu {
    width: min(230px, calc(100vw - 24px));
  }
  body.public-screen .signup-brand-inner {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 168px;
    padding: 34px 16px 18px;
    align-items: start;
  }
  body.public-screen .signup-brand-inner img {
    margin-top: 8px;
  }
  body.public-screen .signup-brand-title {
    margin-top: 32px;
  }
  body.public-screen .signup-brand-title strong {
    font-size: clamp(20px, 7vw, 24px);
  }
  body.public-screen .signup-brand-title span {
    display: block;
    max-width: calc(100vw - 40px);
    font-size: clamp(10px, 3.05vw, 12px);
    letter-spacing: clamp(2px, 0.82vw, 3px);
    white-space: nowrap;
  }
  body.public-screen .signup-brand-claim {
    margin-top: 8px;
  }
}

@media print {
  @page { size: A4 portrait; margin: 10mm; }
  html, body { width: auto !important; overflow: visible !important; }
  body { background: white; color: black; font-size: 9px; min-width: 0 !important; }
  body:not(.public-screen),
  body:not(.public-screen) main,
  body:not(.public-screen) header { min-width: 0 !important; }
  header,
  #publicScreen,
  #adminLoginScreen,
  #adminScreen > .admin-grid > div:first-child,
  #adminScreen .card:has(#adminTrips),
  #adminTrips,
  #adminScreen .card:has(#registrationsTable),
  #adminScreen .card:has(#waitingTable),
  #adminScreen .card:has(#driversTable) h2,
  #adminScreen .card:has(#driversTable) p,
  #driverEmpty,
  .section-title-row,
  #driversTable,
  #driverBoardingSummary,
  .actions,
  .screen-only,
  .toast {
    display: none !important;
  }
  main,
  .admin-grid,
  #adminScreen,
  #adminScreen > .admin-grid > div:last-child {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
  }
  .card { border: 0; padding: 0; margin: 0; }
  #driverPrintPages { display: block !important; width: 100%; }
  .driver-print-page { width: 180mm; max-width: 100%; margin: 0 auto; break-after: page; page-break-after: always; }
  .driver-print-page:last-child { break-after: auto; page-break-after: auto; }
  .driver-print-heading { height: 6mm; margin-bottom: 1mm; display: flex; justify-content: space-between; align-items: flex-start; gap: 4mm; font-size: 10px; line-height: 1.1; }
  .driver-print-heading strong { min-width: 0; }
  .driver-print-heading span { white-space: nowrap; }
  .driver-print-table { display: table !important; width: 100% !important; table-layout: fixed; border-collapse: collapse; border: 1px solid #000; font-size: 8.5px; }
  .driver-print-table th,
  .driver-print-table td { border: 1px solid #000; padding: 0.5mm 1mm; color: #000; line-height: 1.1; vertical-align: middle; overflow: hidden; overflow-wrap: break-word; }
  .driver-print-table th:last-child,
  .driver-print-table td:last-child { width: auto; border-right: 1px solid #000; }
  .driver-print-table thead tr { height: 5.5mm; }
  .driver-print-table .driver-person-row,
  .driver-print-table .driver-person-row td { height: var(--print-person-height); }
  .driver-print-table .driver-person-row > td:first-child > strong { font-size: 10px; }
  .driver-print-table .ticket-group-row,
  .driver-print-table .ticket-group-row td { height: 4mm; background: #d9d9d9 !important; font-weight: 800; text-transform: uppercase; print-color-adjust: exact; }
  .driver-print-table .boarding-group-row,
  .driver-print-table .boarding-group-row td { height: 3.5mm; background: #dce8e2 !important; box-shadow: inset 1mm 0 0 #176b4f; font-weight: 800; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .driver-print-table .boarding-group-row.ticket-only td { background: #fff1cf !important; box-shadow: inset 1mm 0 0 #a16600; }
  .driver-print-table .discount-badge { min-height: 0; border-radius: 2px; padding: 1px 2px; font-size: 7px; line-height: 1; border-width: 1px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .driver-print-table .print-age-status { display: grid; justify-items: start; gap: 0.35mm; }
  .driver-print-table .disability-badge { min-height: 0; border-color: #b85c00 !important; border-radius: 2px; padding: 1px 2px; background: #f6a623 !important; color: #3b2500 !important; font-size: 6.5px; line-height: 1; border-width: 1px; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .driver-print-table .discount-badge.child { background: #e8f0f8 !important; color: var(--blue) !important; border-color: #b9cde3 !important; }
  .driver-print-table .discount-badge.youth { background: #e7f3ee !important; color: var(--green) !important; border-color: #b7d9c8 !important; }
  .driver-print-table .discount-badge.senior { background: #f3dddd !important; color: var(--red) !important; border-color: #e0b4b4 !important; }
  .driver-print-table .print-committee { display: inline !important; margin-left: 2px; font-size: 6.5px; font-weight: 700; white-space: nowrap; }
  .driver-print-place { display: block; overflow: hidden; color: #176b4f; font-size: 7px; font-weight: 800; line-height: 1.1; white-space: nowrap; text-overflow: ellipsis; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .driver-print-table .print-travel-option { display: inline-block; margin-left: 2mm; padding: 0 2px; font-weight: 800; background: #e8f0f8 !important; color: #174d80 !important; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .driver-print-summary { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 2mm; width: 100%; margin-top: 2mm; font-size: 9px; line-height: 1.1; }
  .driver-print-summary span { max-width: 100%; overflow-wrap: anywhere; }
  .driver-print-summary .summary-total { margin-left: auto; border-left: 1px solid #000; padding-left: 2mm; font-weight: 700; }
}
