:root {
  --bg: #121315;
  --surface: #1b1e22;
  --surface-2: #252a30;
  --tile: #2b2f35;
  --tile-hover: #555c66;
  --text: #eef2f5;
  --muted: #9ca7b3;
  --accent: #4dd4bf;
  --accent-2: #ff8c42;
  --danger: #e66464;
  --success: #6dd190;
  --border: #3a414b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Bahnschrift", "Trebuchet MS", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 8%, #25303a 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, #2d1f24 0%, transparent 35%),
    linear-gradient(155deg, #0f1114 0%, #14181d 55%, #0e1013 100%);
  overflow-x: hidden;
}

.background-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(70px);
  z-index: 0;
  pointer-events: none;
}

.glow-one {
  background: #0f8d7f;
  top: -140px;
  left: -100px;
  opacity: 0.25;
}

.glow-two {
  background: #b95f26;
  bottom: -160px;
  right: -120px;
  opacity: 0.24;
}

.site-header,
.content-wrap {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 1.4rem 1rem 0.8rem;
  max-width: 1400px;
  margin: 0 auto;
}

.site-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.site-header h1 {
  margin: 0;
  letter-spacing: 0.04em;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
}

.auth-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.login-btn {
  min-width: 92px;
}

.tabs {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.tab-button,
.ghost-btn,
.primary-btn,
.icon-btn {
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface);
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.tab-button,
.ghost-btn,
.primary-btn {
  padding: 0.55rem 0.9rem;
  font-size: 0.95rem;
}

.tab-button:hover,
.ghost-btn:hover,
.primary-btn:hover,
.icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.tab-button.active {
  background: linear-gradient(90deg, #2c343d, #263a3f);
  border-color: var(--accent);
}

.tab-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.tab-button:disabled:hover {
  border-color: var(--border);
  transform: none;
}

.content-wrap {
  max-width: 1680px;
  margin: 0 auto;
  padding: 0.6rem 1rem 2rem;
}

#calendarView {
  grid-template-columns: minmax(0, 1fr) 370px;
  grid-template-areas:
    "toolbar toolbar"
    "calendar panel";
  align-items: start;
  column-gap: 1rem;
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: reveal 0.35s ease;
}

#calendarView.active {
  display: grid;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calendar-toolbar {
  grid-area: toolbar;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.calendar-toolbar h2 {
  margin: 0;
  min-width: 90px;
  text-align: center;
}

.calendar-grid {
  grid-area: calendar;
  display: grid;
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 0.85rem;
  padding-right: 0;
}

.calendar-grid.single-month {
  grid-template-columns: minmax(0, 1fr);
  max-width: 100%;
  justify-content: flex-start;
}

.calendar-grid.single-month .month-card {
  padding: 1rem;
}

.calendar-grid.single-month .weekdays span {
  font-size: 0.8rem;
}

.calendar-grid.single-month .day-tile,
.calendar-grid.single-month .empty-tile {
  min-height: 92px;
}

.calendar-grid.single-month .day-number {
  font-size: 1.03rem;
}

.calendar-grid.single-month .day-meta {
  font-size: 0.76rem;
}

.month-card {
  background: color-mix(in srgb, var(--surface) 92%, #0b0d0f 8%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.75rem;
}

.month-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.05rem;
  color: #d7e1ea;
}

.weekdays,
.days-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.3rem;
}

.weekdays span {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.day-tile,
.empty-tile {
  min-height: 64px;
  border-radius: 10px;
}

.empty-tile {
  background: transparent;
}

.day-tile {
  border: 1px solid #454d58;
  background: var(--tile);
  color: var(--text);
  text-align: left;
  padding: 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.day-tile.has-entries {
  background: #232932;
  border-color: #5a6574;
}

.day-tile:hover {
  background: var(--tile-hover);
  border-color: #8390a1;
  transform: translateY(-1px);
}

.day-tile.has-entries:hover {
  background: #4b5563;
  border-color: #92a0b3;
}

.day-tile.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #2f897f;
}

.day-number {
  font-weight: 700;
  font-size: 0.88rem;
}

.day-meta {
  font-size: 0.68rem;
  color: #d8e1ea;
  margin-top: auto;
}

.day-meta .entry-count {
  display: block;
}

.day-meta .day-event-title {
  display: block;
  color: #dbe3ee;
  opacity: 0.95;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.day-meta .attending-count {
  color: #b4dfc2;
}

.day-panel {
  grid-area: panel;
  position: sticky;
  top: 0.6rem;
  width: 100%;
  max-height: calc(100vh - 1.2rem);
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(165deg, #191e23 0%, #15191d 100%);
  transform: translateX(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
  padding: 0.9rem;
}

.day-panel.open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 0.85rem;
}

.panel-block {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #36404b;
}

.day-overview-section {
  border-top: none;
  margin-top: 0.8rem;
  padding-top: 0;
}

.day-overview-edit-btn {
  width: 100%;
  margin-bottom: 0.65rem;
}

.day-edit-section {
  display: none;
}

.day-panel.edit-mode .day-edit-section {
  display: block;
}

.day-panel.edit-mode .day-overview-section {
  display: none;
}

.day-panel.overview-mode .day-edit-section {
  display: none;
}

.day-panel.overview-mode .day-overview-section {
  display: block;
}

.panel-block h4 {
  margin: 0 0 0.6rem;
  color: #deebf7;
}

.add-person-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.location-group {
  border: 1px solid #3f4b58;
  border-radius: 12px;
  padding: 0.65rem;
  background: #1f252d;
  margin-bottom: 0.75rem;
}

.location-preset-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.location-preset-delete {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border: 1px solid #7a353d;
  border-radius: 10px;
  background: #3a2024;
  color: #ffd8dd;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.location-preset-delete:hover {
  background: #54282f;
  border-color: #a84652;
  color: #fff0f2;
}

.location-help {
  margin: 0.1rem 0 0.55rem;
  color: #a8b7c8;
  font-size: 0.78rem;
}

.location-map-wrap {
  border: 1px solid #465263;
  border-radius: 12px;
  overflow: hidden;
  background: #1b232c;
  margin: 0.1rem 0 0.55rem;
}

.location-map-frame {
  width: 100%;
  height: 260px;
  border: 0;
  display: block;
  filter: grayscale(0.18) invert(0.9) hue-rotate(180deg) contrast(0.92) brightness(0.86);
}

.location-link {
  color: #8fd9cd;
  text-decoration: underline;
}

.location-link:hover {
  color: #aef0e5;
}

.artist-block {
  margin-bottom: 0.75rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #1f252c;
}

.artist-row-title {
  margin-bottom: 0.45rem;
  font-size: 0.82rem;
  color: #cfd8e2;
  letter-spacing: 0.02em;
}

.artist-rows {
  display: grid;
  gap: 0.55rem;
}

.artist-row {
  border: 1px solid #485362;
  border-radius: 11px;
  padding: 0.5rem;
  background: #202833;
}

.artist-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.artist-row-label {
  font-size: 0.78rem;
  color: #d3dce7;
}

.artist-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #5b6776;
  background: #2d3642;
  color: #eef3f8;
  cursor: pointer;
  line-height: 1;
  font-size: 0.72rem;
}

.artist-remove-btn:hover {
  border-color: #d08989;
  background: #4b3138;
}

.artist-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.5rem;
}

.plus-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #4a5a6c;
  background: #26303a;
  color: #f1f6fb;
  cursor: pointer;
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
  line-height: 1;
}

.plus-btn:hover {
  border-color: var(--accent);
}

.plus-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: #4a5a6c;
}

.hidden {
  display: none;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: rgba(7, 10, 14, 0.6);
  padding: 1rem;
}

.login-modal.hidden {
  display: none;
}

.login-modal-card {
  width: min(420px, 100%);
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(160deg, #1c2229 0%, #151a20 100%);
  padding: 1rem;
}

.login-modal-card h3 {
  margin: 0 0 0.8rem;
}

.login-error {
  margin: 0.1rem 0 0.8rem;
  color: #ff9c9c;
  font-size: 0.86rem;
}

.login-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.auth-message {
  margin: 0.1rem 0 0.8rem;
  font-size: 0.86rem;
}

.auth-password-hint {
  margin: -0.1rem 0 0.7rem;
  font-size: 0.74rem;
  line-height: 1.35;
  color: #aebccc;
}

.auth-password-hint code {
  font-size: 0.7rem;
  color: #d8e6f6;
  background: #1a2129;
  border: 1px solid #334151;
  border-radius: 6px;
  padding: 0.1rem 0.28rem;
}

.auth-message-error {
  color: #ff9c9c;
}

.auth-message-success {
  color: #9ce5bc;
}

.users-modal-card {
  width: min(700px, 100%);
}

.users-table-wrap {
  border: 1px solid #3f4956;
  border-radius: 10px;
  background: #1f262f;
  overflow: auto;
  margin-bottom: 0.85rem;
}

.users-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 420px;
}

.users-table thead {
  background: #2a3440;
}

.users-table th,
.users-table td {
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid #3b4655;
  font-size: 0.88rem;
}

.users-table th {
  color: #dce6f0;
}

.users-table td {
  color: #d2dce8;
}

#deleteConfirmMessage {
  margin: 0.1rem 0 0.9rem;
  color: #dbe2ea;
}

label {
  display: grid;
  gap: 0.33rem;
  margin-bottom: 0.7rem;
  font-size: 0.88rem;
  color: #dbe2ea;
}

input,
textarea {
  width: 100%;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.52rem 0.62rem;
  font-family: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px #257a70;
}

.flags-row {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.8rem;
  background: #20262d;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.55rem;
}

.flag-checkbox {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}

.flag-checkbox input {
  width: 17px;
  height: 17px;
}

.flag-line {
  display: grid;
  grid-template-columns: minmax(88px, auto) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: center;
}

.tech-role-controls {
  display: grid;
  gap: 0.42rem;
}

.tech-extra-names {
  display: grid;
  gap: 0.35rem;
}

.tech-extra-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: center;
}

.tech-extra-remove {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid #5b6776;
  background: #2d3642;
  color: #eef3f8;
  cursor: pointer;
  line-height: 1;
  font-size: 0.74rem;
}

.tech-extra-remove:hover {
  border-color: #d08989;
  background: #4b3138;
}

.tech-add-btn {
  width: 32px;
  height: 32px;
  margin: 0;
}

.flag-line input[type="text"] {
  min-height: 36px;
}

.hosting-group {
  margin-bottom: 0.8rem;
}

.hosting-header {
  font-size: 0.88rem;
  color: #dbe2ea;
  margin-bottom: 0.45rem;
}

.add-hosting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.hosting-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.hosting-chip {
  border-radius: 999px;
  border: 1px solid #4d5663;
  background: #232930;
  color: #d8e0e8;
  padding: 0.3rem 0.62rem;
  cursor: pointer;
  font-size: 0.8rem;
}

.hosting-chip.active {
  border-color: #65c294;
  background: #244136;
  color: #ddf7e9;
}

.cashier-group {
  margin-bottom: 0.8rem;
}

.cashier-header {
  font-size: 0.88rem;
  color: #dbe2ea;
  margin-bottom: 0.45rem;
}

.cashier-rows {
  display: grid;
  gap: 0.45rem;
}

.cashier-row {
  border: 1px solid #485362;
  border-radius: 11px;
  padding: 0.5rem;
  background: #202833;
}

.cashier-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.cashier-row-label {
  font-size: 0.78rem;
  color: #d3dce7;
}

.cashier-remove-btn {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 1px solid #5b6776;
  background: #2d3642;
  color: #eef3f8;
  cursor: pointer;
  line-height: 1;
  font-size: 0.72rem;
}

.cashier-remove-btn:hover {
  border-color: #d08989;
  background: #4b3138;
}

.cashier-grid {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 0.5rem;
}

.cashier-row label {
  margin-bottom: 0;
}

.notes-group {
  margin-bottom: 0.8rem;
}

.notes-header {
  font-size: 0.88rem;
  color: #dbe2ea;
  margin-bottom: 0.45rem;
}

.notes-input {
  min-height: 130px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.primary-btn {
  background: linear-gradient(100deg, #237c73, #276f85);
  border-color: #348f87;
}

.primary-btn:hover {
  border-color: #66d2c4;
}

.attendance-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.person-chip {
  border-radius: 999px;
  border: 1px solid #4d5663;
  background: #232930;
  color: #d8e0e8;
  padding: 0.33rem 0.65rem;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}

.person-chip.active {
  border-color: #65c294;
  background: #244136;
  color: #ddf7e9;
}

.saved-entries {
  display: grid;
  gap: 0.6rem;
}

.overview-panel {
  margin-top: 0;
}

.entry-card {
  border: 1px solid #43505f;
  background: #212830;
  border-radius: 12px;
  padding: 0.62rem;
}

.entry-header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.entry-title {
  margin: 0;
  font-size: 0.95rem;
}

.entry-time {
  color: #99a9b9;
  font-size: 0.82rem;
}

.entry-row {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #d5dee7;
}

.entry-location-map-wrap {
  margin-top: 0.45rem;
  border: 1px solid #465263;
  border-radius: 10px;
  overflow: hidden;
  background: #1b232c;
}

.entry-location-map-frame {
  width: 100%;
  height: 210px;
  border: 0;
  display: block;
  filter: grayscale(0.18) invert(0.9) hue-rotate(180deg) contrast(0.92) brightness(0.86);
}

.entry-location-map-empty {
  margin: 0;
  padding: 0.5rem 0.6rem;
}

.entry-notes-row {
  white-space: pre-wrap;
  word-break: break-word;
}

.entry-tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.entry-tag {
  border: 1px solid #536073;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  font-size: 0.73rem;
}

.entry-tag.confirmed {
  border-color: #73cc9e;
  color: #d7f2e3;
}

.entry-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.5rem;
}

.budget-view {
  background: #1b2026;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.budget-hint {
  margin: 0.3rem 0 1rem;
  color: var(--muted);
}

.budget-selected-day {
  margin: 0.2rem 0 0.85rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #445060;
  border-radius: 12px;
  background: #202932;
}

.budget-selected-day h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #dbe6f1;
}

.budget-selected-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.budget-selected-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid #3f4a59;
  border-radius: 10px;
  background: #1c242d;
}

.budget-selected-item strong {
  color: #ebf2fa;
  font-size: 0.9rem;
}

.budget-selected-item span {
  color: #9eb0c4;
  font-size: 0.82rem;
}

.budget-selected-empty {
  color: var(--muted);
  font-size: 0.85rem;
}

.budget-table-wrap {
  overflow-x: auto;
  border: 1px solid #434d59;
  border-radius: 12px;
  background: #1f252c;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.budget-table thead {
  background: #28313b;
}

.budget-table th,
.budget-table td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #394350;
  font-size: 0.9rem;
}

.budget-table th {
  color: #dce5ee;
  font-weight: 700;
}

.budget-table td {
  color: #d1dce7;
}

.budget-table tbody tr:last-child td {
  border-bottom: none;
}

.budget-input {
  max-width: 170px;
}

.budget-empty {
  margin-top: 0.85rem;
  color: var(--muted);
}

.budget-expense-total-row {
  margin-top: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #5e4343;
  border-radius: 11px;
  background: #2b2020;
}

.budget-expense-total-row span {
  color: #efc3c3;
  font-size: 0.9rem;
}

.budget-expense-total-row strong {
  color: #ef7d7d;
  font-size: 0.98rem;
}

.budget-revenue-section {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.65rem;
}

.budget-revenue-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
}

.budget-revenue-grid label {
  margin-bottom: 0;
  font-size: 0.86rem;
  color: #d6e0ea;
}

.budget-revenue-grid .budget-input {
  max-width: 100%;
}

.budget-revenue-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid #455161;
  border-radius: 11px;
  background: #202730;
}

.budget-revenue-total-row span {
  color: #d7e1ea;
  font-size: 0.9rem;
}

.budget-revenue-total-row strong {
  color: #dcf3e8;
  font-size: 0.98rem;
}

.budget-total-row {
  margin-top: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #485364;
  border-radius: 12px;
  background: #232b33;
}

.budget-actions {
  margin-top: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.budget-save-status {
  color: #9fb0c2;
  font-size: 0.85rem;
}

.budget-save-status.error {
  color: #ff9c9c;
}

.budget-total-row span {
  color: #d7e1ea;
  font-size: 0.92rem;
}

.budget-total-row strong {
  font-size: 1.05rem;
}

.budget-total-row strong.budget-balance-positive {
  color: #71d79a;
}

.budget-total-row strong.budget-balance-negative {
  color: #ef7d7d;
}

.budget-total-row strong.budget-balance-neutral {
  color: #d7e1ea;
}

.beats-view {
  background: #1b2026;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.beats-path {
  margin: 0.35rem 0 0;
  color: #d9e4ef;
}

.beats-link {
  color: #91d8ff;
  word-break: break-all;
}

.beats-link:hover {
  color: #b4e7ff;
}

.beats-info {
  margin: 0;
  color: var(--muted);
}

.beats-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin: 0.55rem 0 0.85rem;
  flex-wrap: wrap;
}

.beats-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.beats-item {
  border: 1px solid #44505e;
  border-radius: 12px;
  padding: 0.65rem;
  background: #202832;
  display: grid;
  gap: 0.38rem;
}

.beats-title {
  color: #ebf2fa;
  font-size: 0.93rem;
}

.beats-file-path {
  color: #98a9bc;
  font-size: 0.8rem;
  word-break: break-word;
}

.beats-item audio {
  width: 100%;
}

.beats-item-actions {
  display: flex;
  justify-content: flex-start;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.beats-play-btn,
.beats-download-btn {
  min-width: 102px;
  justify-content: center;
}

.beats-download-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.beats-seek-wrap {
  margin-top: 0.1rem;
  display: grid;
  gap: 0.25rem;
}

.beats-seek {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.beats-seek:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.beats-time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.beats-time-label {
  color: #9fb0c2;
  font-size: 0.76rem;
}

.beats-audio-preview {
  display: none;
}

.beats-audio-preview audio {
  width: 100%;
}

.turntables-view {
  background: #1b2026;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.turntables-address {
  margin: 0.4rem 0 0.85rem;
  color: #d9e4ef;
}

.turntables-map-wrap {
  border: 1px solid #465263;
  border-radius: 14px;
  overflow: hidden;
  background: #1b232c;
}

.turntables-map-frame {
  width: 100%;
  height: min(70vh, 620px);
  border: 0;
  display: block;
  filter: grayscale(0.18) invert(0.9) hue-rotate(180deg) contrast(0.92) brightness(0.86);
}

.placeholder-view {
  background: #1b2026;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
}

.placeholder-view p {
  color: var(--muted);
}

@media (max-width: 1220px) {
  #calendarView.active {
    display: block;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    padding-right: 0;
  }

  .day-panel {
    position: fixed;
    top: 0.5rem;
    right: 0;
    width: min(92vw, 430px);
    max-height: calc(100vh - 1rem);
    border-radius: 14px 0 0 14px;
    transform: translateX(105%);
    opacity: 1;
    pointer-events: none;
    z-index: 9;
  }

  .day-panel.open {
    pointer-events: auto;
  }
}

@media (max-width: 760px) {
  .site-header,
  .content-wrap {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .month-card {
    width: 100%;
  }

  .calendar-toolbar {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .budget-table {
    min-width: 0;
  }

  .budget-input {
    max-width: 130px;
  }

  .turntables-map-frame {
    height: min(62vh, 480px);
  }

  .tab-button,
  .ghost-btn,
  .primary-btn {
    font-size: 0.88rem;
  }

  .day-tile {
    min-height: 64px;
  }

  .artist-grid {
    grid-template-columns: 1fr;
  }

  .cashier-row {
    grid-template-columns: 1fr;
  }

  .cashier-grid {
    grid-template-columns: 1fr;
  }

  .add-hosting-row {
    grid-template-columns: 1fr;
  }

  .calendar-grid.single-month {
    grid-template-columns: 1fr;
  }

  .calendar-grid.single-month .day-tile,
  .calendar-grid.single-month .empty-tile {
    min-height: 56px;
  }
}
