:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f2f6fb;
  --text: #0b1324;
  --text-subtle: #5f6b7a;
  --line: #dde4ee;
  --primary: #1f6feb;
  --primary-soft: #e7f0ff;
  --danger: #b91c1c;
  --warn: #b45309;
  --ok: #0f766e;
  --radius: 14px;
  --shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  font-family: "Space Grotesk", "Noto Sans JP", sans-serif;
  margin: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
}

.sidebar {
  background: #10182b;
  color: #dbe6ff;
  border-right: 1px solid #24314f;
  padding: 20px 14px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  margin: 6px 10px 24px;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 40px;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #bfcae7;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
}

.nav-item.active {
  color: #fff;
  background: #213055;
}

.main {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 16px 22px 28px;
}

.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  box-shadow: var(--shadow);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-right {
  justify-content: flex-end;
}

#lang-select {
  width: auto;
  min-width: 98px;
  max-width: 110px;
  height: 32px;
  padding: 4px 24px 4px 8px;
  font-size: 12px;
  border-radius: 8px;
  line-height: 1.1;
}

.topbar-center {
  text-align: center;
  color: var(--text-subtle);
  font-size: 14px;
}

.inline-field {
  font-size: 12px;
  color: var(--text-subtle);
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
}

select:focus,
input:focus,
textarea:focus {
  outline: none;
  border-color: #94b6ee;
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

textarea {
  min-height: 80px;
  resize: vertical;
}

.save-indicator {
  min-width: 86px;
  text-align: center;
  font-size: 13px;
  border-radius: 999px;
  padding: 6px 10px;
  background: #e2e8f0;
}

.save-indicator.saving {
  background: #dbeafe;
  color: #1d4ed8;
}

.save-indicator.error {
  background: #fee2e2;
  color: #b91c1c;
}

.view-root {
  margin-top: 16px;
  display: grid;
  gap: 16px;
}

.app-footer {
  margin-top: auto;
  padding: 22px 8px 4px;
  text-align: center;
  font-size: 12px;
  color: var(--text-subtle);
  display: grid;
  gap: 4px;
}

.app-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 107, 122, 0.28);
}

.app-footer a:hover {
  color: var(--text);
  border-bottom-color: rgba(11, 19, 36, 0.4);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.primary,
.secondary,
.danger,
.ghost {
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  font-weight: 600;
}

.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.secondary {
  background: #eef2f7;
  color: #1f2937;
  border-color: #d8e0ea;
}

.danger {
  background: #fee2e2;
  color: var(--danger);
  border-color: #fecaca;
}

.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
}

.section-tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(31, 111, 235, 0.25);
}

.controls-row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.calendar-top-row {
  justify-content: space-between;
  flex-wrap: nowrap;
}

.calendar-filter-row {
  flex-wrap: nowrap;
  gap: 8px;
}

.calendar-filter-row input {
  width: 320px;
}

.calendar-filter-row select {
  width: 170px;
}

.calendar-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
}

.calendar-board {
  background: var(--surface);
  border: 1px solid #dbe2ec;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.weekday-row {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 0;
  margin-bottom: 0;
}

.weekday {
  text-align: center;
  font-weight: 500;
  font-size: 12px;
  color: #5f6368;
  background: #fff;
  border: 0;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 8px 0;
}

.weekday.sun {
  color: #d93025;
}

.weekday.sat {
  color: #1a73e8;
}

.weekday:last-child {
  border-right: 0;
}

.day-cell {
  background: var(--surface);
  border: 0;
  border-right: 1px solid #e2e7ef;
  border-bottom: 1px solid #e2e7ef;
  border-radius: 0;
  padding: 8px;
  min-height: 150px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.day-cell.other-month {
  background: #fafafa;
}

.day-cell.sun-holiday {
  background: #fff;
}

.day-cell.sat-day {
  background: #fff;
}

.day-cell:nth-child(7n) {
  border-right: 0;
}

.day-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
}

.day-add-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
  border-color: transparent;
  color: #5f6368;
  opacity: 0;
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.day-cell:hover .day-add-btn {
  opacity: 1;
}

.day-add-btn:hover {
  background: #f1f3f4;
}

.day-number {
  font-size: 14px;
  font-weight: 500;
  color: #3c4043;
}

.sun-holiday .day-number {
  color: #d93025;
}

.sat-day .day-number {
  color: #1a73e8;
}

.holiday-label {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: #5f6368;
}

.event-chip {
  border: 0;
  background: #d2e3fc;
  border-radius: 4px;
  padding: 3px 6px;
  font-size: 11px;
  line-height: 1.35;
  color: #174ea6;
  cursor: pointer;
  text-align: left;
}

.event-chip .muted {
  color: #335b9f;
  font-size: 10px;
}

.day-cta {
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  border-radius: 8px;
  padding: 8px;
  font-size: 12px;
  text-align: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.auth-landing {
  min-height: calc(100vh - 170px);
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 22px;
  align-items: stretch;
}

.auth-page {
  display: grid;
  gap: 16px;
}

.auth-footer {
  text-align: center;
  font-size: 12px;
  color: var(--text-subtle);
  display: grid;
  gap: 4px;
  padding: 8px 6px 18px;
}

.auth-footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(95, 107, 122, 0.28);
}

.auth-footer a:hover {
  color: var(--text);
  border-bottom-color: rgba(11, 19, 36, 0.4);
}

.auth-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid #d6e0ef;
  border-radius: 16px;
  padding: 10px 14px;
  background: #fff;
}

.auth-logo-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.auth-logo {
  max-height: 36px;
  width: auto;
}

.auth-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 7px 12px;
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.auth-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.auth-nav-btn {
  border: 1px solid #d2dbea;
  border-radius: 10px;
  background: #fff;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
  color: #334155;
}

.auth-nav-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.auth-lang-select {
  width: auto;
  min-width: 98px;
  height: 34px;
  padding: 4px 24px 4px 8px;
  font-size: 12px;
}

.auth-hero {
  border: 1px solid #d6e0ef;
  border-radius: 22px;
  padding: 36px;
  background:
    radial-gradient(1200px 260px at -10% -20%, #dbeafe 0, rgba(219, 234, 254, 0) 55%),
    radial-gradient(900px 220px at 110% 120%, #d1fae5 0, rgba(209, 250, 229, 0) 60%),
    #ffffff;
  display: grid;
  align-content: center;
  gap: 14px;
}

.auth-kicker {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #1d4ed8;
  font-weight: 700;
}

.auth-hero h1 {
  margin: 0;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.15;
  white-space: pre-line;
}

.auth-points {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auth-points span {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #bfd3ee;
  background: #f8fbff;
  font-size: 12px;
  color: #1e293b;
}

.auth-panel {
  border: 1px solid #d6e0ef;
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
  display: grid;
  align-content: start;
  gap: 14px;
}

.auth-panel-single {
  width: min(560px, 96vw);
  margin: 0 auto;
}

.auth-home {
  gap: 12px;
}

.auth-lp {
  display: grid;
  gap: 18px;
}

.lp-hero-apple {
  border: 1px solid #e4e8f0;
  border-radius: 24px;
  padding: clamp(56px, 9vw, 130px) clamp(24px, 4vw, 52px);
  background: #fff;
  text-align: center;
  display: grid;
  gap: 20px;
}

.lp-hero-title {
  margin: 0 auto;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 0.98;
  white-space: normal;
  letter-spacing: -0.04em;
  color: #111827;
  font-weight: 700;
  max-width: 1200px;
  width: 100%;
}

.lp-hero-lead {
  margin: 0 auto;
  max-width: 760px;
  color: #4b5563;
  line-height: 1.7;
  font-size: 16px;
}

.lp-cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 6px;
}

.lp-image-slot {
  border: 0;
  border-radius: 18px;
  min-height: 240px;
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
  color: #6b7280;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
  font-weight: 600;
}

.lp-image-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lp-image-empty {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  white-space: nowrap;
  display: none;
}

.lp-image-slot.is-empty .lp-image-empty {
  display: inline-flex;
}

.hero-image-slot {
  min-height: clamp(180px, 24vw, 320px);
  max-width: min(1320px, calc(100% - 96px));
  margin: 0 auto;
}

.lp-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.lp-panel {
  border: 1px solid #e4e8f0;
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 10px;
}

.lp-panel h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #111827;
}

.lp-panel p {
  margin: 0;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.6;
}

.lp-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.lp-mini-metrics div {
  border: 1px solid #e4e8f0;
  border-radius: 14px;
  padding: 14px;
  background: #fff;
  text-align: center;
}

.lp-mini-metrics strong {
  display: block;
  font-size: 24px;
  line-height: 1;
  letter-spacing: -0.02em;
}

.lp-mini-metrics span {
  display: block;
  margin-top: 8px;
  color: #6b7280;
  font-size: 12px;
}

.lp-final-cta {
  border: 1px solid #e4e8f0;
  border-radius: 20px;
  padding: 24px;
  background: #fff;
  display: grid;
  gap: 12px;
  text-align: center;
}

.lp-final-cta h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.02em;
  color: #111827;
}

.auth-title {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  white-space: pre-line;
}

.auth-top-link {
  height: 34px;
  padding: 0 10px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.auth-tab {
  border: 1px solid #d2dbea;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 700;
  color: #334155;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.auth-form {
  grid-template-columns: 1fr;
}

.auth-panel .auth-pane {
  display: none !important;
}

.auth-panel .auth-pane.active {
  display: grid !important;
}

.auth-submit {
  width: 100%;
  justify-content: center;
}

.auth-text-link {
  border: 0;
  background: transparent;
  color: #2563eb;
  padding: 0;
  height: auto;
  text-align: left;
}

.auth-text-link:hover {
  text-decoration: underline;
}

.auth-reset-request .controls-row {
  align-items: center;
}

body.auth-mode .main {
  padding-top: 20px;
}

body.auth-mode .app-shell {
  grid-template-columns: 1fr;
}

body.auth-mode .sidebar {
  display: none;
}

body.auth-mode .topbar {
  display: none !important;
}

body.auth-mode .app-footer {
  display: none;
}

.checklist {
  display: grid;
  gap: 8px;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 12px;
}

.dashboard-stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
}

.dashboard-label {
  display: block;
  color: var(--text-subtle);
  font-size: 13px;
}

.dashboard-value {
  display: block;
  margin-top: 6px;
  font-size: 34px;
  line-height: 1;
  font-weight: 800;
  color: var(--text);
}

.dashboard-list {
  margin-top: 16px;
}

.dashboard-list h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.dashboard-event-btn {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.dashboard-event-title {
  display: block;
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}

.dashboard-event-meta {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-subtle);
}

.dashboard-event-date {
  color: #1d4ed8;
  font-weight: 800;
}

.overview-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.overview-hero {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  margin-top: 12px;
}

.overview-panels {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.overview-lineup {
  display: grid;
  gap: 8px;
  max-height: 380px;
  overflow: auto;
  padding-right: 4px;
}

.overview-title-block {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.overview-event-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.overview-title-input {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #0f172a;
  min-width: 0;
}

.overview-title-input:focus {
  outline: none;
  border-bottom: 1px solid #cbd5e1;
}

.overview-event-date {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.overview-event-venue {
  font-size: 16px;
  font-weight: 700;
  color: #334155;
}

.overview-top-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 8px;
}

.overview-top-form .field {
  gap: 4px;
}

.overview-top-form .field label {
  font-size: 11px;
  color: var(--text-subtle);
}

.overview-setting-list {
  display: grid;
  gap: 6px;
}

.overview-setting-row {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.overview-setting-row:hover {
  background: #f8fafc;
}

.overview-setting-label {
  font-size: 12px;
  color: var(--text-subtle);
}

.overview-setting-value {
  font-size: 13px;
  color: var(--text);
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-edit-panel {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

.flyer-panel {
  display: grid;
  gap: 8px;
  justify-items: start;
}

.overview-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.attach-panel {
  display: grid;
  gap: 8px;
  align-content: start;
}

.attach-list {
  display: grid;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
}

.attach-item a {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 7px 10px;
  text-decoration: none;
  color: #1d4ed8;
  background: #f8fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attach-item a:hover {
  background: #eef4ff;
}

.flyer-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 8px;
}

.flyer-item {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.flyer-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fafc;
}

.check-item {
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--surface-soft);
}

.check-item.ng {
  border: 1px solid #fca5a5;
  background: #fef2f2;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 12px;
  color: #334155;
}

.help-dot {
  margin-left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.help-dot:hover {
  background: #f8fafc;
}

.field-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-inline > :first-child {
  flex: 1;
}

.performer-icon-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.performer-icon-preview {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: 1px solid #d5deec;
  background: #eef4ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  overflow: hidden;
}

.performer-icon-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.danger-lite {
  color: #b91c1c;
}

.lineup-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.list {
  display: grid;
  gap: 8px;
}

.performer-item {
  border: 1px solid #dce4ef;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: #fff;
}

.performer-item.lineup-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  cursor: pointer;
}

.performer-main {
  min-width: 0;
}

.performer-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.performer-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid #d5deec;
  background: #eef4ff;
  color: #1e293b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 28px;
  overflow: hidden;
}

.performer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.performer-name {
  display: inline-block;
  font-weight: 500;
  font-size: 17px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.performer-meta {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-start;
}

.lineup-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lineup-total-fee {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  z-index: 60;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-card {
  width: min(900px, 96vw);
  max-height: 86vh;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(2, 6, 23, 0.22);
  padding: 16px;
}

.floor-manager {
  margin-top: 12px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  padding: 10px;
  background: #f8fbff;
}

.type-manager {
  margin-top: 12px;
  border: 1px solid #dce4ef;
  border-radius: 10px;
  padding: 10px;
  background: #f8fbff;
}

.floor-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.floor-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

.type-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 6px;
}

.sns-link-list {
  display: grid;
  gap: 6px;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid #cdd9ea;
  border-radius: 8px;
  color: #1d4ed8;
  text-decoration: none;
  background: #f8fbff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sns-link:hover {
  background: #eef4ff;
}

.performer-item.active {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.tag {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 99px;
  background: #e2e8f0;
  color: #334155;
}

.timeline-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 12px;
}

.timeline-layout > article:first-child {
  order: 2;
}

.timeline-layout > article:nth-child(2) {
  order: 1;
}

.timeline-header-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline-header-row h3 {
  white-space: nowrap;
  margin: 0;
}

.timeline-header-controls {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.timeline-axis {
  position: relative;
  border: 1px solid #dbe4ef;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  min-height: 760px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.timeline-dropzone {
  border-style: solid;
  border-color: var(--line);
}

.builder-pool {
  min-height: 160px;
}

.builder-pool.drop-active {
  border: 2px dashed var(--primary);
  border-radius: 10px;
  background: #edf4ff;
}

.builder-pool-item {
  cursor: grab;
  touch-action: none;
}

.time-marker {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1px dashed #e2e8f0;
  font-size: 11px;
  color: #64748b;
  pointer-events: none;
}

.time-marker > span {
  position: absolute;
  top: -10px;
  left: 2px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.01em;
}

.time-marker.major {
  border-top-style: solid;
  border-top-color: #dbe5f1;
}

.time-marker.hour {
  border-top-style: solid;
  border-top-width: 2px;
  border-top-color: #c4d4e8;
}

.timeline-markers {
  position: absolute;
  left: 10px;
  right: 10px;
  top: 10px;
  height: var(--canvas-h, 560px);
  pointer-events: none;
}

.timeline-canvas {
  position: relative;
  margin-top: 0;
}

.timeline-drop-indicator {
  position: absolute;
  left: 68px;
  right: 8px;
  height: 0;
  border-top: 2px solid var(--primary);
  pointer-events: none;
  z-index: 12;
  box-shadow: none;
}

.block {
  border-radius: 10px;
  border: 1px solid #c6d8ee;
  background: #f3f8ff;
  margin: 0;
  padding: 6px 8px 6px;
  font-size: 12px;
  line-height: 1.3;
  cursor: grab;
  box-shadow: none;
  transition: background-color 0.12s ease;
  overflow: visible;
}

.block:hover {
  background: #e9f2ff;
}

.timeline-block {
  position: absolute;
  left: 68px;
  right: 8px;
  min-height: 10px;
  touch-action: none;
  z-index: 2;
}

.block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  margin-bottom: 2px;
}

.block-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.block-time {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: #334155;
}

.block-meta {
  font-size: 11px;
  color: #475569;
  margin-bottom: 4px;
}

.block-head,
.block-meta {
  transition: opacity 0.12s ease;
}

.timeline-block.compact {
  padding-top: 3px;
  padding-bottom: 3px;
}

.timeline-block.compact .block-meta {
  display: none;
}

.timeline-block.compact .block-name {
  font-size: 13px;
}

.timeline-block.compact .block-time {
  font-size: 12px;
}

.timeline-block.compact .block-head {
  padding-right: 0;
}

.block.dj {
  background: #e8f7f4;
  border-color: #b6ddd6;
}

.block.live {
  background: #fff5da;
  border-color: #e7d39c;
}

.block.dance {
  background: #feeaf4;
  border-color: #eec3d9;
}

.block.mc {
  background: #ebf4ff;
  border-color: #c8daef;
}

.block.error {
  background: #fee2e2;
  border-color: #fca5a5;
}

.block-actions {
  position: absolute;
  top: 4px;
  left: -58px;
  right: auto;
  display: inline-flex;
  gap: 4px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(-2px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: 3px;
  z-index: 14;
  border: 1px solid #d4dfec;
  width: 58px;
  justify-content: center;
}

.timeline-block:hover {
  z-index: 10;
}

.timeline-block:hover .block-actions,
.timeline-block:focus-within .block-actions,
.block-actions:hover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.timeline-block .block-actions .ghost,
.timeline-block .block-actions input[type="number"] {
  height: 22px;
  padding: 0 7px;
  font-size: 10px;
  border-radius: 8px;
}

.timeline-block .block-actions input[type="number"] {
  min-width: 56px;
  width: 56px !important;
  padding: 0 6px;
}

.timeline-block .block-actions [data-unschedule],
.timeline-block .block-actions [data-focus],
.timeline-block .block-actions input[type="number"] {
  display: none;
}

.timeline-block .block-actions [data-minus],
.timeline-block .block-actions [data-plus] {
  height: 22px;
  min-width: 48px;
  font-size: 11px;
  font-weight: 700;
}

.resize-handle {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 8px;
  cursor: ns-resize;
  background: linear-gradient(to bottom, transparent 0%, rgba(15, 118, 110, 0.25) 100%);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}

.timeline-drag-ghost {
  position: fixed;
  z-index: 90;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.warning-list {
  display: grid;
  gap: 8px;
}

.warning-item {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  padding: 8px;
  font-size: 13px;
}

.warning-item.error {
  background: #fef2f2;
  border-color: #fca5a5;
}

.toast-stack {
  position: fixed;
  top: 74px;
  right: 20px;
  display: grid;
  gap: 8px;
  z-index: 20;
}

.toast {
  background: #0f172a;
  color: #fff;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.toast.error {
  background: #b91c1c;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  border-bottom: 1px solid #e3e9f2;
  padding: 10px;
  text-align: left;
  font-size: 13px;
}

.table tr:hover {
  background: #f7faff;
}

.preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  min-height: 400px;
  background: linear-gradient(160deg, #0f172a 0%, #124e66 55%, #2f855a 100%);
  color: white;
  padding: 20px;
  display: grid;
  align-content: space-between;
}

.muted {
  color: var(--text-subtle);
  font-size: 12px;
}

@media (max-width: 1100px) {
  .hero-image-slot {
    max-width: 100%;
  }

  .lp-hero-apple {
    padding: clamp(40px, 8vw, 72px) 18px;
    gap: 16px;
  }

  .lp-split-grid {
    grid-template-columns: 1fr;
  }

  .lp-hero-title {
    font-size: clamp(26px, 7vw, 40px);
  }

  .lp-cta-row {
    flex-wrap: wrap;
  }

  .lp-mini-metrics {
    grid-template-columns: 1fr;
  }

  .auth-header {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-header-actions {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .auth-nav-btn {
    flex: 1;
  }

  .auth-landing,
  .timeline-layout,
  .lineup-layout,
  .overview-hero,
  .overview-panels,
  .grid-2,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .auth-hero,
  .auth-panel {
    border-radius: 16px;
    padding: 16px;
  }

  .overview-stats {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .overview-top-form {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .overview-media-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .brand {
    font-size: 14px;
    margin: 6px 2px 14px;
  }

  .nav-item {
    font-size: 12px;
    padding: 8px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .calendar-top-row {
    flex-wrap: wrap;
  }

  .calendar-filter-row {
    width: 100%;
    flex-wrap: nowrap;
  }

  .calendar-filter-row input {
    flex: 1;
    width: auto;
    min-width: 180px;
  }

  .calendar-filter-row select {
    width: 150px;
  }
}
