:root {
  --ink: #16191c;
  --muted: #737b82;
  --line: #e3e5e5;
  --paper: #f7f7f4;
  --panel: #ffffff;
  --navy: #0c1e2a;
  --navy-2: #102937;
  --orange: #f06a35;
  --green: #118665;
  --blue: #3f6e91;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }
body { font-family: var(--font-geist-sans), "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar {
  width: 248px;
  min-width: 248px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  color: #e8edef;
  background:
    radial-gradient(circle at 15% 0%, rgba(61, 112, 136, .18), transparent 24%),
    var(--navy);
  border-right: 1px solid #233744;
}
.brand {
  height: 84px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  background: transparent;
  border: 0;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .05em;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--navy), inset 0 0 0 5px rgba(255,255,255,.18);
}
.brand strong { display: block; font-size: 15px; letter-spacing: .12em; }
.brand strong span { color: #ee7546; }
.brand small { display: block; margin-top: 4px; color: #71828d; font-size: 10px; letter-spacing: .18em; }

.show-switcher {
  margin: 18px 14px 10px;
  padding: 13px 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 7px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #ff7141; box-shadow: 0 0 0 4px rgba(240,106,53,.12); }
.show-switcher div { flex: 1; min-width: 0; }
.show-switcher small, .show-switcher strong { display: block; }
.show-switcher small { color: #778995; font-size: 10px; margin-bottom: 3px; }
.show-switcher strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chevron { color: #758994; }

nav { overflow-y: auto; padding: 0 9px 18px; scrollbar-width: thin; }
.nav-group { margin-top: 17px; }
.nav-group p { margin: 0 13px 8px; color: #5f7480; font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.nav-group button {
  width: 100%;
  height: 39px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #aebbc2;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  text-align: left;
}
.nav-group a {
  width: 100%;
  height: 39px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #aebbc2;
  background: transparent;
  border: 0;
  border-radius: 5px;
  font-size: 13px;
  text-align: left;
}
.nav-group a:hover { color: white; background: rgba(255,255,255,.04); }
.nav-group a.active { color: white; background: #173848; box-shadow: inset 2px 0 var(--orange); }
.nav-group a.active .nav-icon { color: #f37b4b; }
.nav-group a b { margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #e86535; color: white; font-size: 10px; }
.nav-group button:hover { color: white; background: rgba(255,255,255,.04); }
.nav-group button.active { color: white; background: #173848; box-shadow: inset 2px 0 var(--orange); }
.nav-icon { width: 17px; color: #7e949e; text-align: center; font-family: var(--font-geist-mono); font-size: 15px; }
.nav-group button.active .nav-icon { color: #f37b4b; }
.nav-group button b { margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: #e86535; color: white; font-size: 10px; }
.sidebar-foot {
  margin-top: auto;
  min-height: 72px;
  padding: 14px 17px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.avatar { width: 34px; height: 34px; display: grid; place-items: center; background: #d6c5a8; color: #20323c; border-radius: 50%; font-weight: 700; }
.sidebar-foot > div:nth-child(2) { flex: 1; }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: 12px; }
.sidebar-foot small { margin-top: 3px; color: #6e828d; font-size: 10px; }
.sidebar-foot button { color: #69808b; background: transparent; border: 0; }

.workspace { min-width: 0; flex: 1; }
.topbar {
  height: 68px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.venue { display: flex; align-items: baseline; gap: 13px; }
.venue strong { font-size: 13px; }
.venue span { color: #899095; font-size: 11px; }
.top-actions { display: flex; align-items: center; gap: 11px; }
.search {
  width: 276px;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 12px;
  background: #f5f5f2;
  border: 1px solid #e4e5e2;
  border-radius: 5px;
}
.search > span { color: #70787d; font-size: 18px; }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; font-size: 11px; }
.search kbd { padding: 2px 5px; color: #858b8e; background: white; border: 1px solid #dfe1df; border-radius: 3px; font-size: 9px; }
.icon-button { position: relative; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: white; }
.icon-button i { position: absolute; width: 6px; height: 6px; right: 8px; top: 7px; background: var(--orange); border: 1px solid white; border-radius: 50%; }
.announce-button, .module-title > button {
  height: 36px;
  padding: 0 14px;
  color: white;
  background: var(--navy);
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
}
.announce-button span, .module-title > button span { margin-right: 5px; color: #ff8a59; }
.admin-button, .module-action {
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  color: #24495b;
  background: #edf3f4;
  border: 1px solid #dbe6e8;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
}
.guest-badge { padding: 6px 9px; color: #70787b; background: #f0f1ef; border-radius: 20px; font-size: 9px; }
.logout-form button { height: 36px; padding: 0 9px; color: #777f82; background: transparent; border: 0; font-size: 10px; }
.search button { padding: 3px 7px; color: #657278; background: white; border: 1px solid #dfe1df; border-radius: 3px; font-size: 9px; }

.hero {
  padding: 31px 38px 23px;
  color: white;
  background:
    linear-gradient(120deg, rgba(255,255,255,.025) 25%, transparent 25%) 0 0 / 80px 80px,
    linear-gradient(135deg, #0d2430, #102e3c 65%, #163745);
}
.hero-head { display: flex; justify-content: space-between; align-items: flex-start; }
.eyebrow, .module-title p, .modal-head p { margin: 0 0 5px; color: #e8784c; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.hero h1, .module-title h1 { margin: 0; font-size: 28px; letter-spacing: -.04em; }
.hero-head > div > p:last-child { margin: 7px 0 0; color: #8296a0; font-size: 11px; }
.show-clock { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 15px; text-align: right; }
.show-clock small { grid-column: 1; color: #748a95; font-size: 9px; }
.show-clock strong { grid-column: 1; font: 28px/1 var(--font-geist-mono); letter-spacing: .02em; }
.show-clock span { grid-column: 2; grid-row: 1 / 3; align-self: center; padding: 7px 10px; color: #9ed4c2; background: rgba(23,150,112,.13); border: 1px solid rgba(69,170,140,.3); border-radius: 20px; font-size: 9px; }
.show-clock i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; background: #47bf96; border-radius: 50%; }

.live-strip {
  min-height: 103px;
  margin-top: 26px;
  display: grid;
  grid-template-columns: 105px minmax(180px, 1.6fr) minmax(180px, 1fr) minmax(180px, 1.2fr) 110px;
  align-items: stretch;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 6px;
  overflow: hidden;
}
.on-air { display: flex; align-items: center; justify-content: center; color: #ff8c60; background: rgba(240,106,53,.07); border-right: 1px solid rgba(255,255,255,.08); font: 700 11px var(--font-geist-mono); letter-spacing: .08em; }
.on-air i { width: 8px; height: 8px; margin-right: 8px; background: #f26d3b; border-radius: 50%; box-shadow: 0 0 0 5px rgba(242,109,59,.12); animation: pulse 1.5s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.now-info, .next-info, .countdown { padding: 20px 23px; border-right: 1px solid rgba(255,255,255,.08); }
.live-strip small { display: block; margin-bottom: 8px; color: #8096a0; font: 700 9px var(--font-geist-mono); letter-spacing: .1em; }
.now-info strong, .next-info strong { display: block; margin-bottom: 5px; font-size: 16px; }
.now-info span, .next-info span { color: #7f929b; font-size: 10px; }
.countdown strong { display: block; color: #f28a5f; font: 26px/1 var(--font-geist-mono); }
.countdown > div { height: 3px; margin-top: 12px; background: rgba(255,255,255,.12); }
.countdown > div span { display: block; width: 64%; height: 100%; background: #ef7545; }
.live-strip > button { color: #c7d2d7; background: transparent; border: 0; font-size: 10px; }
.live-strip > button span { margin-left: 8px; color: #f28a5f; }
.cue-link { display: flex; align-items: center; justify-content: center; color: #c7d2d7; font-size: 10px; }
.cue-link span { margin-left: 8px; color: #f28a5f; }

.notice-bar {
  min-height: 48px;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff6f0;
  border-bottom: 1px solid #f2ded1;
  color: #723620;
  font-size: 11px;
}
.notice-tag { padding: 4px 8px; color: white; background: #e65f2f; border-radius: 2px; font-size: 9px; font-weight: 700; }
.notice-bar.notice-normal { color: #4e5560; background: #f5f6f4; border-color: #e2e5e2; }
.notice-bar.notice-normal .notice-tag { background: #526b78; }
.notice-bar.notice-info { color: #2f5c71; background: #eef6f8; border-color: #d8e8ed; }
.notice-bar.notice-info .notice-tag { background: #3d7893; }
.notice-bar strong { font-weight: 600; }
.notice-bar small { color: #a27c6c; }
.notice-bar button { margin-left: auto; color: #b85431; background: transparent; border: 0; font-size: 10px; }
.notice-bar a { margin-left: auto; color: #b85431; font-size: 10px; }

.run-section { padding: 26px 38px 50px; }
.section-head { margin-bottom: 15px; display: flex; align-items: flex-end; justify-content: space-between; }
.section-head h2 { display: inline; margin: 0 10px 0 0; font-size: 16px; }
.section-head > div > span { color: #90979b; font-size: 10px; }
.legend { display: flex; gap: 17px; color: #7f878b; font-size: 9px; }
.legend i { display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; }
.legend i.done { background: #9ba6a8; }
.legend i.live { background: var(--green); }
.legend i.next { background: var(--orange); }
.run-table, .data-table { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 2px 10px rgba(20,36,44,.025); }
.run-row { min-height: 76px; padding: 0 13px; display: grid; grid-template-columns: 42px 68px minmax(250px, 1.8fr) minmax(100px, .8fr) 70px 86px 28px; align-items: center; border-top: 1px solid #eceeec; font-size: 11px; }
.run-row:first-child { border-top: 0; }
.run-header { min-height: 37px; color: #8c9497; background: #fafaf8; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.run-row.current { background: linear-gradient(90deg, #edf7f3, #fbfdfc); box-shadow: inset 3px 0 var(--green); }
.index { color: #9ba1a4; font: 10px var(--font-geist-mono); }
.time, .duration { font: 11px var(--font-geist-mono); }
.time { font-weight: 700; }
.program strong, .program small, .program em { display: block; }
.program strong { font-size: 12px; }
.program small { margin-top: 3px; color: #9aa0a2; font-size: 9px; }
.program em { margin-top: 6px; color: #7d8588; font-size: 9px; font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dept { display: flex; gap: 4px; }
.dept b { width: 22px; height: 22px; display: grid; place-items: center; color: #55707e; background: #eef2f3; border: 1px solid #dde4e6; border-radius: 3px; font: 700 9px var(--font-geist-mono); }
.status { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 12px; font-size: 9px; font-weight: 650; }
.status-done { color: #6b7477; background: #f0f2f1; }
.status-live { color: #087354; background: #e1f3ec; }
.status-next { color: #b24e27; background: #fff0e8; }
.status-hold { color: #737a7d; background: #f5f5f3; border: 1px solid #e5e6e3; }
.row-more { color: #9aa0a2; background: transparent; border: 0; }

.module-view { padding: 42px 38px 60px; }
.module-title { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: flex-end; }
.module-title h1 { color: #17232a; font-size: 30px; }
.module-title > button { min-width: 104px; }
.data-table { background: white; }
.data-row { min-height: 65px; padding: 0 22px; display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); align-items: center; border-top: 1px solid #eceeec; color: #586267; font-size: 12px; }
.columns-3 .data-row { grid-template-columns: repeat(3, minmax(140px, 1fr)); }
.data-row:first-child { border-top: 0; }
.data-row:hover:not(.data-head) { background: #fbfcfa; }
.data-head { min-height: 41px; color: #8a9295; background: #f5f6f3; font-size: 9px; font-weight: 700; letter-spacing: .08em; }
.primary-cell { color: #1a252a; font-weight: 650; }
.mono { font-family: var(--font-geist-mono); }
.download { float: right; width: 27px; height: 27px; color: #395d6e; background: #edf2f3; border: 0; border-radius: 4px; }
.download-link { display: inline-flex; padding: 6px 10px; color: #315a6d; background: #edf2f3; border-radius: 4px; font-size: 10px; font-weight: 700; }
.stat-grid { margin-bottom: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { padding: 20px 22px; background: white; border: 1px solid var(--line); border-top: 3px solid; border-radius: 5px; }
.stat-card strong, .stat-card span { display: block; }
.stat-card strong { font: 27px var(--font-geist-mono); }
.stat-card span { margin-top: 4px; color: #858d90; font-size: 10px; }
.stat-card.green { border-top-color: var(--green); }
.stat-card.orange { border-top-color: var(--orange); }
.stat-card.blue { border-top-color: var(--blue); }
.check-button { min-width: 74px; padding: 6px 9px; color: #6d7578; background: white; border: 1px solid #d9dddc; border-radius: 4px; font-size: 10px; }
.check-button.checked { color: #087354; background: #e7f4ef; border-color: #cae8dc; }
.readonly-status { display: inline-flex; padding: 5px 8px; color: #798184; background: #f1f2f0; border-radius: 12px; font-size: 9px; }
.readonly-status.yes { color: #087354; background: #e7f4ef; }

.admin-state { padding: 6px 10px; color: #087354; background: #e6f4ef; border-radius: 18px; font-size: 9px; font-weight: 700; }
.success-note { margin-bottom: 16px; padding: 11px 14px; color: #087354; background: #e6f4ef; border: 1px solid #cde9de; border-radius: 4px; font-size: 11px; }
.error-note { margin-bottom: 16px; padding: 11px 14px; color: #a64428; background: #fff0e9; border: 1px solid #f0d5c9; border-radius: 4px; font-size: 11px; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.settings-card { padding: 23px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.settings-card h2 { margin: 0; font-size: 15px; }
.settings-card > p { margin: 7px 0 20px; color: #858d90; font-size: 10px; line-height: 1.6; }
.settings-card hr { margin: 22px 0; border: 0; border-top: 1px solid #e7e9e7; }
.settings-form { display: grid; gap: 13px; }
.settings-form label, .eyebrow-editor { display: grid; gap: 6px; color: #657075; font-size: 9px; font-weight: 700; }
.settings-form input, .settings-form select, .eyebrow-editor input {
  width: 100%; height: 38px; padding: 0 11px; color: #253137; background: #fbfbf9; border: 1px solid #dcdedc; border-radius: 4px; outline: 0; font-size: 11px;
}
.settings-form input:focus, .settings-form select:focus, .eyebrow-editor input:focus { border-color: #567486; box-shadow: 0 0 0 3px rgba(86,116,134,.1); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.save-button { min-height: 38px; padding: 0 15px; color: white; background: var(--navy); border: 0; border-radius: 4px; font-size: 10px; font-weight: 700; }
.save-button.secondary { color: #284d5f; background: #edf3f4; border: 1px solid #dce6e8; }
.module-guide { margin-top: 16px; }
.module-links { display: flex; flex-wrap: wrap; gap: 7px; }
.module-links a { padding: 7px 10px; color: #315a6d; background: #edf3f4; border-radius: 3px; font-size: 9px; font-weight: 650; }
.editable-module { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 5px; }
.eyebrow-editor { max-width: 420px; margin-bottom: 18px; }
.edit-table { overflow-x: auto; margin-bottom: 17px; border: 1px solid #e3e5e4; border-radius: 4px; }
.edit-row { min-width: 680px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); border-top: 1px solid #e8eae8; }
.edit-row:first-child { border-top: 0; }
.edit-row input { min-width: 0; height: 45px; padding: 0 10px; background: white; border: 0; border-right: 1px solid #e8eae8; outline: 0; font-size: 10px; }
.edit-row input:focus { background: #f1f7f6; box-shadow: inset 0 -2px var(--green); }
.remove-table-row { position: sticky; right: 0; z-index: 1; min-width: 62px; color: #a64428; background: #fff0e9; border: 0; border-left: 1px solid #efd8ce; box-shadow: -8px 0 14px rgba(31,47,55,.06); font-size: 9px; font-weight: 700; }
.remove-table-row:hover { color: #8f321a; background: #ffe5d9; }
.edit-head { min-height: 37px; align-items: center; color: #899194; background: #f5f6f3; font-size: 9px; font-weight: 700; }
.edit-head span { padding: 0 10px; }
.run-edit-table { display: grid; gap: 12px; margin-bottom: 17px; }
.run-edit-table fieldset { position: relative; margin: 0; padding: 15px; border: 1px solid #e1e4e2; border-radius: 4px; }
.run-edit-table legend { padding: 0 7px; color: #315a6d; font-size: 9px; font-weight: 800; }
.run-edit-grid { display: grid; grid-template-columns: 90px 90px 1fr 1fr 110px 1fr; gap: 10px; }
.run-edit-grid label { display: grid; gap: 5px; color: #747d80; font-size: 8px; font-weight: 700; }
.run-edit-grid label.wide { grid-column: 1 / -1; }
.run-edit-grid input, .run-edit-grid select { min-width: 0; height: 36px; padding: 0 9px; background: #fbfbf9; border: 1px solid #dcdedc; border-radius: 3px; outline: 0; font-size: 10px; }
.run-edit-grid input:focus, .run-edit-grid select:focus { border-color: #567486; box-shadow: 0 0 0 3px rgba(86,116,134,.1); }
.remove-row-button { position: absolute; top: 9px; right: 10px; padding: 5px 8px; color: #a64428; background: #fff0e9; border: 0; border-radius: 3px; font-size: 8px; font-weight: 700; }
.login-copy { margin: 18px 0; color: #747d81; font-size: 11px; line-height: 1.6; }
.login-error { margin-bottom: 13px; padding: 9px 11px; color: #a74527; background: #fff0e8; border-radius: 3px; font-size: 10px; }
.admin-manager { margin-top: 16px; }
.password-card { margin-bottom: 16px; display: grid; grid-template-columns: minmax(180px, .7fr) minmax(520px, 1.3fr); gap: 30px; align-items: end; }
.password-card > div > p { margin: 7px 0 0; color: #858d90; font-size: 10px; }
.password-change-form { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 9px; align-items: end; }
.password-change-form label { display: grid; gap: 5px; color: #747d80; font-size: 8px; font-weight: 700; }
.password-change-form input { height: 38px; padding: 0 10px; background: #fbfbf9; border: 1px solid #dcdedc; border-radius: 4px; outline: 0; font-size: 10px; }
.password-change-form input:focus { border-color: #567486; box-shadow: 0 0 0 3px rgba(86,116,134,.1); }
.settings-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.settings-card-head p { margin: 6px 0 0; color: #858d90; font-size: 10px; }
.settings-card-head > span { padding: 5px 9px; color: #315a6d; background: #edf3f4; border-radius: 14px; font-size: 9px; }
.admin-account-list { margin-top: 18px; display: grid; gap: 10px; }
.admin-account { position: relative; padding: 16px; background: #fafbf9; border: 1px solid #e3e5e3; border-radius: 4px; }
.admin-account.super { background: linear-gradient(90deg, #edf7f3, #fbfdfc); border-color: #d5e9e1; }
.account-summary { display: flex; align-items: center; gap: 10px; }
.account-summary > div:nth-child(2) { flex: 1; }
.account-summary strong, .account-summary small { display: block; }
.account-summary small { margin-top: 3px; color: #899194; font-size: 9px; }
.account-summary > span { padding: 5px 8px; color: #087354; background: #dff2ea; border-radius: 12px; font-size: 8px; font-weight: 700; }
.account-summary label { flex: 1; display: grid; gap: 4px; color: #747d80; font-size: 8px; }
.account-summary label input, .password-reset input, .new-admin-form input { height: 34px; padding: 0 9px; background: white; border: 1px solid #dcdedc; border-radius: 3px; font-size: 10px; }
.admin-permission-form { display: grid; gap: 13px; }
.permission-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.permission-grid label { position: relative; }
.permission-grid input { position: absolute; opacity: 0; }
.permission-grid span { display: inline-flex; padding: 6px 9px; color: #747d80; background: white; border: 1px solid #dcdedc; border-radius: 3px; font-size: 9px; cursor: pointer; }
.permission-grid input:checked + span { color: #087354; background: #e4f3ed; border-color: #c8e5da; }
.password-reset { display: grid; gap: 5px; color: #747d80; font-size: 8px; }
.admin-permission-form .save-button { width: fit-content; }
.delete-admin-form { position: absolute; right: 16px; bottom: 16px; }
.admin-manager > h3 { margin: 0 0 13px; font-size: 13px; }
.new-admin-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.new-admin-form > label { display: grid; gap: 5px; color: #747d80; font-size: 8px; }
.new-admin-form .permission-grid, .new-admin-form .save-button { grid-column: 1 / -1; }

.bulletin-list { display: grid; gap: 12px; }
.bulletin { padding: 20px 22px; background: white; border: 1px solid var(--line); border-left: 3px solid #567486; border-radius: 4px; }
.bulletin.urgent { background: #fffaf6; border-left-color: var(--orange); }
.bulletin.normal { border-left-color: #567486; }
.bulletin.info { background: #f7fbfc; border-left-color: #3d7893; }
.bulletin div { display: flex; gap: 10px; align-items: center; }
.bulletin div span { padding: 3px 7px; color: #426271; background: #edf2f3; border-radius: 2px; font-size: 9px; font-weight: 700; }
.bulletin.urgent div span { color: white; background: var(--orange); }
.bulletin.info > div:first-child span { color: white; background: #3d7893; }
.bulletin small { color: #8e9699; font-size: 9px; }
.bulletin h3 { margin: 13px 0 9px; font-size: 14px; font-weight: 600; }
.bulletin p { margin: 0; color: #969da0; font-size: 9px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: rgba(6,18,24,.72); backdrop-filter: blur(4px); }
.modal { width: min(520px, calc(100vw - 32px)); padding: 27px; background: #fbfbf8; border-radius: 7px; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.modal-head { display: flex; justify-content: space-between; }
.modal-head h2 { margin: 0; font-size: 22px; }
.modal-head > button { width: 32px; height: 32px; color: #70777a; background: transparent; border: 1px solid #dfe2e1; border-radius: 50%; font-size: 20px; }
.modal label:not(.check-line) { display: block; margin-top: 24px; color: #596164; font-size: 10px; font-weight: 700; }
.modal textarea { width: 100%; height: 112px; margin-top: 8px; padding: 12px; resize: vertical; background: white; border: 1px solid #dcdedc; border-radius: 4px; outline: 0; font-size: 12px; line-height: 1.6; }
.modal textarea:focus { border-color: #537384; box-shadow: 0 0 0 3px rgba(83,115,132,.1); }
.priority-row { margin: 17px 0 0; padding: 0; display: flex; align-items: center; gap: 7px; border: 0; }
.priority-row legend { float: left; margin: 7px 7px 0 0; color: #596164; font-size: 10px; font-weight: 700; }
.priority-row label { display: block; margin: 0 !important; }
.priority-row input { position: absolute; opacity: 0; pointer-events: none; }
.priority-row label span { display: inline-flex; padding: 6px 11px; color: #6f777a; background: white; border: 1px solid #dfe1df; border-radius: 3px; font-size: 10px; font-weight: 500; cursor: pointer; }
.priority-row input:checked + span { color: white; background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 3px rgba(240,106,53,.12); }
.check-line { margin-top: 20px; display: flex; align-items: center; gap: 8px; color: #687174; font-size: 10px; }
.check-line input { accent-color: var(--green); }
.modal-actions { margin-top: 25px; padding-top: 18px; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid #e3e4e2; }
.modal-actions button { padding: 8px 15px; color: #687174; background: white; border: 1px solid #dfe1df; border-radius: 4px; font-size: 10px; }
.modal-actions button.publish { color: white; background: var(--navy); border-color: var(--navy); }

.bulletin-admin { margin-top: 16px; padding-top: 13px; display: flex !important; align-items: flex-start !important; gap: 8px !important; border-top: 1px solid #e8e9e7; }
.bulletin-admin details { min-width: 280px; }
.bulletin-admin summary { width: fit-content; padding: 6px 10px; color: #315a6d; background: #edf3f4; border-radius: 3px; font-size: 9px; font-weight: 700; cursor: pointer; list-style: none; }
.bulletin-edit-form { margin-top: 10px; display: grid; grid-template-columns: 90px 1fr auto; gap: 7px; }
.bulletin-edit-form select, .bulletin-edit-form textarea { padding: 7px 9px; background: white; border: 1px solid #dcdedc; border-radius: 3px; font-size: 10px; }
.bulletin-edit-form textarea { min-height: 58px; resize: vertical; }
.bulletin-edit-form button, .delete-button { padding: 7px 10px; border: 0; border-radius: 3px; font-size: 9px; font-weight: 700; }
.bulletin-edit-form button { color: white; background: var(--navy); }
.delete-button { color: #a64428; background: #fff0e9; }

@media (max-width: 1050px) {
  .sidebar { width: 210px; min-width: 210px; }
  .live-strip { grid-template-columns: 90px 1.3fr 1fr 1.1fr; }
  .live-strip > button { display: none; }
  .run-row { grid-template-columns: 35px 60px minmax(220px, 1.7fr) 95px 64px 78px 20px; }
}

@media (max-width: 780px) {
  .app-shell { display: block; }
  .sidebar { width: 100%; min-width: 0; height: auto; position: static; display: block; }
  .brand { height: 68px; }
  .show-switcher, .sidebar-foot, .nav-group p { display: none; }
  nav { display: flex; overflow-x: auto; padding: 9px; gap: 4px; }
  .nav-group { display: contents; }
  .nav-group button { flex: 0 0 auto; width: auto; height: 35px; padding: 0 11px; font-size: 11px; }
  .nav-group a { flex: 0 0 auto; width: auto; height: 35px; padding: 0 11px; font-size: 11px; }
  .nav-icon { display: none; }
  .topbar { padding: 0 16px; position: static; }
  .venue span, .search, .icon-button { display: none; }
  .hero { padding: 24px 16px 18px; }
  .show-clock span { display: none; }
  .live-strip { grid-template-columns: 75px 1fr; }
  .countdown, .next-info { border-top: 1px solid rgba(255,255,255,.08); }
  .countdown { grid-column: 1 / 2; }
  .next-info { grid-column: 2 / 3; }
  .on-air, .now-info, .countdown, .next-info { min-height: 80px; padding: 15px; }
  .notice-bar { padding: 10px 16px; align-items: flex-start; flex-wrap: wrap; }
  .notice-bar small { display: none; }
  .notice-bar button { margin-left: 0; }
  .run-section, .module-view { padding: 22px 16px 45px; }
  .legend { display: none; }
  .run-table { overflow-x: auto; }
  .run-row { width: 740px; }
  .data-table { overflow-x: auto; }
  .data-row { min-width: 650px; }
  .edit-row { min-width: 540px; grid-auto-columns: minmax(105px, 1fr); }
  .stat-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .run-edit-grid { grid-template-columns: 1fr 1fr; }
  .run-edit-grid label.wide { grid-column: 1 / -1; }
  .new-admin-form { grid-template-columns: 1fr; }
  .password-card, .password-change-form { grid-template-columns: 1fr; }
  .new-admin-form .permission-grid, .new-admin-form .save-button { grid-column: auto; }
  .delete-admin-form { position: static; margin-top: 10px; }
  .guest-badge, .admin-button { display: none; }
}

@media (max-width: 480px) {
  .hero-head { align-items: flex-end; }
  .hero h1, .module-title h1 { font-size: 24px; }
  .show-clock strong { font-size: 20px; }
  .show-clock small { display: none; }
  .live-strip { display: grid; grid-template-columns: 68px 1fr; }
  .on-air { font-size: 9px; }
  .on-air i { width: 6px; height: 6px; margin-right: 5px; }
  .module-title { align-items: center; }
}
