:root {
  --ink: #27231f;
  --muted: #6f665d;
  --paper: #f5efe4;
  --paper-deep: #e9dfce;
  --cream: #fffaf0;
  --wine: #722f37;
  --wine-dark: #421d24;
  --navy: #17344a;
  --navy-dark: #0d2332;
  --gold: #c89b3c;
  --gold-light: #e3c275;
  --green: #4e6b56;
  --red: #a63f3f;
  --border: #cbbda7;
  --shadow: 0 4px 12px rgba(37, 28, 18, .17);
  --console-width: 450px;
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: hidden; background: var(--paper); }
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  background:
    linear-gradient(rgba(92, 72, 45, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 100% 5px;
  font: 15px/1.5 "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: var(--wine); }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button:disabled, .button:disabled { cursor: not-allowed; opacity: .5; filter: grayscale(.25); }
.shell { width: min(1180px, calc(100% - 36px)); margin: 0 auto; }

.utility-bar { background: var(--navy-dark); color: #d8e0e5; font-size: 12px; border-bottom: 1px solid #000; }
.utility-inner { min-height: 34px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-actions { display: flex; align-items: center; gap: 24px; }
.db-indicator { display: inline-flex; align-items: center; gap: 7px; }
.db-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #7cad7f; box-shadow: 0 0 0 2px rgba(124,173,127,.18); }
.presentation-switch { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.presentation-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; clip: rect(0 0 0 0); }
.switch-track { width: 38px; height: 19px; padding: 2px; background: #425868; border: 1px solid #718493; box-shadow: inset 0 1px 3px #07121a; }
.switch-knob { display: block; width: 13px; height: 13px; background: #e8e2d6; border: 1px solid #fff; transition: transform .18s ease; }
.presentation-switch input:checked + .switch-track { background: var(--gold); border-color: var(--gold-light); }
.presentation-switch input:checked + .switch-track .switch-knob { transform: translateX(18px); }

.site-header { background: #fffaf0; border-bottom: 4px solid var(--gold); box-shadow: 0 2px 8px rgba(0,0,0,.14); position: relative; z-index: 20; }
.header-inner { min-height: 92px; display: flex; align-items: stretch; justify-content: space-between; gap: 28px; }
.brand { align-self: center; display: flex; align-items: center; gap: 12px; color: var(--wine-dark); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--wine); outline: 2px solid var(--gold); outline-offset: 3px; background: var(--wine); color: var(--paper); font: bold 31px/1 Georgia, serif; transform: rotate(-2deg); }
.brand strong { display: block; letter-spacing: 2.5px; font: bold 24px/1.1 Georgia, serif; }
.brand small { display: block; margin-top: 5px; color: var(--muted); letter-spacing: 2.2px; font-size: 9px; }
.main-nav { display: flex; align-items: stretch; }
.main-nav > a, .nav-menu > button { display: flex; align-items: center; padding: 0 16px; border: 0; border-left: 1px solid #ded4c5; color: #403830; background: transparent; text-decoration: none; font-weight: bold; font-size: 14px; }
.main-nav > a:hover, .nav-menu > button:hover, .main-nav > a.active { background: var(--paper-deep); color: var(--wine); }
.main-nav > a.active { box-shadow: inset 0 -5px 0 var(--wine); }
.main-nav .project-link { color: var(--navy); }
.nav-menu { position: relative; display: flex; }
.nav-menu button span { margin-left: 6px; color: var(--gold); }
.nav-dropdown { display: none; position: absolute; right: 0; top: 100%; min-width: 240px; background: var(--cream); border: 1px solid var(--border); border-top: 4px solid var(--wine); box-shadow: var(--shadow); }
.nav-menu:hover .nav-dropdown, .nav-menu:focus-within .nav-dropdown { display: block; }
.nav-dropdown a { display: block; padding: 12px 16px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #ded4c5; }
.nav-dropdown a:hover { background: var(--paper-deep); color: var(--wine); }

.presentation-banner { display: none; padding: 8px 0; color: #f5eacb; background: repeating-linear-gradient(135deg, #5f252d, #5f252d 10px, #682a33 10px, #682a33 20px); border-bottom: 1px solid #3d171d; font-size: 13px; }
.presentation-banner .shell { display: flex; align-items: center; gap: 12px; }
.presentation-banner a { margin-left: auto; color: #ffe2a0; font-weight: bold; }
.banner-badge { padding: 2px 7px; color: #45231e; background: var(--gold-light); border: 1px solid #f4d991; font-size: 10px; font-weight: bold; letter-spacing: 1px; }
body.presentation .presentation-banner { display: block; }
body.presentation { padding-right: var(--console-width); }

.main-content { min-height: calc(100vh - 260px); }
.page-section { padding: 34px 0 50px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; padding-bottom: 13px; border-bottom: 1px solid var(--border); }
.eyebrow { display: block; margin-bottom: 6px; color: var(--wine); text-transform: uppercase; letter-spacing: 1.7px; font-size: 11px; font-weight: bold; }
h1, h2, h3 { margin-top: 0; color: var(--navy-dark); font-family: Georgia, "Times New Roman", serif; }
h1 { margin-bottom: 5px; font-size: 34px; line-height: 1.15; }
h2 { font-size: 25px; }
h3 { font-size: 18px; }
.page-heading p, .section-heading p { margin: 0; color: var(--muted); }
.section-heading { margin: 34px 0 16px; }
.section-heading.split { display: flex; justify-content: space-between; align-items: flex-end; }
.section-heading h2 { margin-bottom: 3px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 8px 15px; border: 1px solid var(--wine-dark); background: linear-gradient(#8c3d47, #682832); color: white; text-decoration: none; text-shadow: 0 1px rgba(0,0,0,.4); box-shadow: 0 2px 3px rgba(0,0,0,.18); font-weight: bold; }
.button:hover { filter: brightness(1.08); }
.button.secondary { color: var(--navy-dark); border-color: #9a8b76; background: linear-gradient(#fffdf7, #e9dfce); text-shadow: none; }
.button.gold { color: #302315; border-color: #957027; background: linear-gradient(#e9c978, #c89b3c); text-shadow: 0 1px rgba(255,255,255,.5); }
.button.danger { border-color: #6d2020; background: linear-gradient(#bb4a4a, #8f3030); }
.button.small { min-height: 29px; padding: 4px 9px; font-size: 12px; }

.flash-stack { padding-top: 18px; }
.flash { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 8px; padding: 11px 14px; border: 1px solid; box-shadow: 0 2px 5px rgba(0,0,0,.08); }
.flash span { display: grid; place-items: center; flex: 0 0 22px; height: 22px; border-radius: 50%; color: white; font-weight: bold; }
.flash-success { color: #294632; background: #e5efe5; border-color: #94b196; }
.flash-success span { background: var(--green); }
.flash-error { color: #662b2b; background: #f5e1df; border-color: #c88c87; }
.flash-error span { background: var(--red); }

.panel { background: rgba(255,250,240,.92); border: 1px solid var(--border); box-shadow: var(--shadow); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 16px; color: white; background: var(--navy); border-bottom: 3px solid var(--gold); }
.panel-header h2, .panel-header h3 { margin: 0; color: white; font-family: "Trebuchet MS", sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: .8px; }
.panel-body { padding: 20px; }

.hero { color: #fff7e6; background:
  radial-gradient(circle at 82% 26%, rgba(224,183,87,.24), transparent 21%),
  linear-gradient(110deg, #132e42 0%, #173b50 54%, #562731 100%);
  border-bottom: 6px solid var(--gold); box-shadow: inset 0 -1px #fff1b4;
}
.hero-inner { min-height: 350px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 50px; padding: 42px 0; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { max-width: 700px; margin: 0 0 16px; color: #fff8e9; font-size: 46px; line-height: 1.08; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.hero p { max-width: 650px; color: #dce4e7; font-size: 17px; }
.hero-actions { display: flex; gap: 10px; margin-top: 25px; }
.hero-ticket { position: relative; padding: 25px; color: var(--ink); background: #f7edda; border: 2px solid var(--gold); outline: 1px dashed #8c7444; outline-offset: -10px; box-shadow: 9px 10px 0 rgba(0,0,0,.19); transform: rotate(1.2deg); }
.hero-ticket::before, .hero-ticket::after { content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: #17384e; }
.hero-ticket::before { left: -12px; } .hero-ticket::after { right: -12px; background: #4f2a34; }
.hero-ticket small { display: block; color: var(--wine); letter-spacing: 2px; font-weight: bold; }
.hero-ticket strong { display: block; margin: 15px 0 3px; font: bold 26px Georgia, serif; }
.hero-ticket .ticket-rule { margin: 20px 0; border-top: 2px dotted #af9c7d; }
.hero-ticket dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.hero-ticket dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.hero-ticket dd { margin: 2px 0 0; font-weight: bold; }

.stats-strip { margin-top: -28px; position: relative; z-index: 3; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cream); border: 1px solid #ae9d84; box-shadow: var(--shadow); }
.stat { padding: 18px 22px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: 0; }
.stat span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; }
.stat strong { display: block; margin-top: 3px; color: var(--navy); font: bold 27px Georgia, serif; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 24px; }
.schedule-list { margin: 0; padding: 0; list-style: none; }
.schedule-row { display: grid; grid-template-columns: 75px 1fr auto; align-items: center; gap: 16px; padding: 15px 17px; border-bottom: 1px solid #ded4c5; }
.schedule-row:last-child { border-bottom: 0; }
.schedule-time { text-align: center; border-right: 1px solid var(--border); }
.schedule-time strong { display: block; color: var(--wine); font: bold 19px Georgia, serif; }
.schedule-time small { color: var(--muted); }
.schedule-title strong { display: block; font-size: 16px; }
.schedule-title span { color: var(--muted); font-size: 12px; }
.capacity-bar { width: 120px; height: 8px; margin-top: 7px; background: #ddd2c0; border: 1px solid #c8b99e; }
.capacity-bar i { display: block; height: 100%; background: var(--gold); }
.quick-actions { display: grid; gap: 9px; }
.quick-action { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 10px; padding: 13px; color: var(--ink); background: #f8f0e3; border: 1px solid var(--border); text-decoration: none; }
.quick-action:hover { border-color: var(--gold); background: #fff9ec; }
.quick-icon { display: grid; place-items: center; width: 34px; height: 34px; color: white; background: var(--wine); font: bold 18px Georgia, serif; }
.quick-action small { display: block; color: var(--muted); }

.filter-bar { display: flex; align-items: flex-end; gap: 13px; padding: 15px; margin-bottom: 20px; background: #e9dfce; border: 1px solid #c8b99e; box-shadow: inset 0 1px white; }
.field { display: grid; gap: 5px; min-width: 0; }
.field.grow { flex: 1; }
.field label { color: #594e43; font-size: 11px; font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
input, select, textarea { width: 100%; padding: 9px 10px; color: var(--ink); background: #fffdf8; border: 1px solid #aa9a83; border-radius: 0; box-shadow: inset 0 1px 2px rgba(0,0,0,.08); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(200,155,60,.35); border-color: #9e752c; }
textarea { min-height: 90px; resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.form-grid .wide { grid-column: 1 / -1; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 17px; }

.film-program { display: grid; gap: 13px; }
.program-card { display: grid; grid-template-columns: 115px 1fr auto; min-height: 145px; overflow: hidden; background: var(--cream); border: 1px solid var(--border); box-shadow: 0 3px 8px rgba(59,44,28,.1); }
.poster-mini { display: grid; align-content: end; padding: 13px; color: white; background: linear-gradient(155deg, var(--navy), var(--wine)); border-right: 4px solid var(--gold); }
.poster-mini[data-tone="mustard"] { background: linear-gradient(155deg, #8f6921, #4b3220); }
.poster-mini[data-tone="teal"] { background: linear-gradient(155deg, #1d5f66, #12343e); }
.poster-mini[data-tone="burgundy"] { background: linear-gradient(155deg, #7b3540, #351a25); }
.poster-mini[data-tone="green"] { background: linear-gradient(155deg, #5a734e, #273a31); }
.poster-mini[data-tone="plum"] { background: linear-gradient(155deg, #69405e, #30213b); }
.poster-mini span { font: bold 17px/1.05 Georgia, serif; text-transform: uppercase; }
.program-info { padding: 18px 20px; }
.program-info h2 { margin-bottom: 7px; font-size: 22px; }
.program-meta { display: flex; flex-wrap: wrap; gap: 7px 15px; color: var(--muted); font-size: 12px; }
.tag { display: inline-block; padding: 2px 6px; color: var(--navy); background: #e6ded1; border: 1px solid #cfc2af; font-size: 10px; font-weight: bold; text-transform: uppercase; }
.program-book { display: grid; place-items: center; min-width: 190px; padding: 18px; background: #eee4d4; border-left: 1px solid var(--border); text-align: center; }
.program-book strong { display: block; color: var(--wine); font: bold 22px Georgia, serif; }
.program-book small { display: block; margin-bottom: 12px; color: var(--muted); }

.screening-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 25px; align-items: start; }
.film-summary { display: grid; grid-template-columns: 160px 1fr; gap: 22px; margin-bottom: 22px; }
.film-poster { min-height: 225px; display: grid; align-content: end; padding: 18px; color: white; background: linear-gradient(155deg, #173b50, #692f3b); border: 4px solid #f4e7ce; outline: 1px solid #8f7e66; box-shadow: 6px 7px 0 #d6c9b5; }
.film-poster strong { overflow-wrap: anywhere; font: bold 20px/1.08 Georgia, serif; text-transform: uppercase; }
.film-summary h1 { font-size: 31px; }
.film-summary p { color: var(--muted); }
.seat-panel { padding: 22px; background: #263a47; border: 1px solid #13222b; box-shadow: var(--shadow); }
.screen { width: 76%; margin: 0 auto 28px; padding: 6px; color: #27323a; background: linear-gradient(#fff, #cbd7dc); border: 1px solid #fff; box-shadow: 0 9px 16px rgba(255,255,255,.13); text-align: center; text-transform: uppercase; letter-spacing: 4px; font-size: 10px; transform: perspective(120px) rotateX(-7deg); }
.seat-map { display: grid; gap: 8px; overflow-x: auto; }
.seat-row { display: flex; justify-content: center; align-items: center; gap: 6px; min-width: 500px; }
.row-label { width: 22px; color: #b8c6cf; font-size: 11px; font-weight: bold; }
.seat { position: relative; width: 31px; height: 29px; padding: 0; border: 1px solid #a38a5a; border-radius: 6px 6px 2px 2px; color: #3d3021; background: #d4b66f; box-shadow: inset 0 -5px rgba(0,0,0,.1); font-size: 10px; font-weight: bold; }
.seat:hover:not(:disabled) { background: #f0d48e; transform: translateY(-2px); }
.seat.selected { color: white; background: var(--wine); border-color: #d98591; }
.seat.unavailable { color: #788690; background: #53636c; border-color: #6e7b82; cursor: not-allowed; opacity: .7; }
.seat.premium::after { content: "★"; position: absolute; top: -8px; right: -4px; color: #fff0a7; font-size: 8px; }
.seat-legend { display: flex; justify-content: center; gap: 18px; margin-top: 22px; color: #d9e1e4; font-size: 11px; }
.seat-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; vertical-align: -2px; background: #d4b66f; border: 1px solid #a38a5a; }
.seat-legend .taken { background: #53636c; }.seat-legend .chosen { background: var(--wine); }
.booking-box { position: sticky; top: 18px; }
.booking-summary { display: flex; justify-content: space-between; padding: 12px 0; margin: 8px 0 17px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.booking-summary strong { color: var(--wine); font: bold 20px Georgia, serif; }

.data-table-wrap { overflow-x: auto; border: 1px solid var(--border); box-shadow: 0 2px 7px rgba(0,0,0,.08); }
.data-table { width: 100%; border-collapse: collapse; background: #fffaf1; font-size: 13px; }
.data-table th { padding: 10px 11px; color: white; background: var(--navy); border-right: 1px solid #315064; text-align: left; text-transform: uppercase; letter-spacing: .5px; font-size: 10px; }
.data-table td { padding: 11px; border-right: 1px solid #ded3c2; border-bottom: 1px solid #ded3c2; vertical-align: top; }
.data-table tbody tr:nth-child(even) { background: #f2e9db; }
.data-table tbody tr:hover { background: #fff1cb; }
.status { display: inline-block; padding: 3px 7px; border: 1px solid; font-size: 10px; font-weight: bold; text-transform: uppercase; }
.status-paid, .status-active, .status-completed { color: #31533b; background: #dfeadd; border-color: #91ad94; }
.status-reserved, .status-scheduled { color: #614b22; background: #f3e7bf; border-color: #c5a852; }
.status-cancelled, .status-archived { color: #713535; background: #efd9d7; border-color: #c8918c; }
.table-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.inline-form { display: inline; }

.admin-grid { display: grid; grid-template-columns: 370px minmax(0, 1fr); gap: 24px; align-items: start; }
.admin-grid .panel:first-child { position: sticky; top: 18px; }
.note-box { padding: 13px 15px; margin: 14px 0; color: #4b463f; background: #efe6d5; border-left: 4px solid var(--gold); font-size: 12px; }

.report-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.report-card { padding: 19px; background: #fff9ed; border: 1px solid var(--border); border-top: 4px solid var(--wine); box-shadow: var(--shadow); }
.report-card h3 { margin-bottom: 5px; }
.report-card p { margin: 0; color: var(--muted); }
.rank { display: inline-grid; place-items: center; width: 27px; height: 27px; color: white; background: var(--wine); border-radius: 50%; font-weight: bold; }
.meter { width: 100%; min-width: 90px; height: 9px; background: #ded2bf; border: 1px solid #c5b499; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); }

.project-hero { padding: 42px 0; color: white; background: linear-gradient(105deg, #40202a, #17374b); border-bottom: 5px solid var(--gold); }
.project-hero h1 { color: #fff7e9; font-size: 42px; }
.project-hero p { max-width: 790px; color: #dce4e8; font-size: 17px; }
.project-tabs { display: flex; gap: 0; margin-top: 25px; border-bottom: 1px solid #9b7b45; }
.project-tabs a { padding: 9px 15px; color: #f5e7c9; border: 1px solid #9b7b45; border-bottom: 0; text-decoration: none; font-weight: bold; }
.project-tabs a:hover { background: rgba(255,255,255,.1); }
.story-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.story-step { position: relative; padding: 20px; background: #fff9ed; border: 1px solid var(--border); }
.story-step b { position: absolute; top: -14px; left: 16px; display: grid; place-items: center; width: 28px; height: 28px; color: white; background: var(--wine); border: 2px solid var(--paper); }
.story-step h3 { margin: 7px 0 6px; }
.story-step p { margin: 0; color: var(--muted); }
.diagram-frame { overflow: auto; padding: 18px; background: #fffdf7; border: 1px solid #ac9c84; box-shadow: inset 0 0 20px rgba(65,48,31,.05); }
.er-diagram { min-width: 1000px; width: 100%; height: auto; }
.er-diagram .entity { fill: #fff8e9; stroke: #17344a; stroke-width: 2; }
.er-diagram .relationship { fill: #ead29a; stroke: #722f37; stroke-width: 2; }
.er-diagram .line { stroke: #6d5c47; stroke-width: 2; }
.er-diagram text { fill: #27231f; font-family: "Trebuchet MS", sans-serif; font-size: 12px; }
.er-diagram .label { font-weight: bold; font-size: 13px; }
.schema-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.schema-table { background: #fffaf0; border: 1px solid #a9987d; box-shadow: 0 2px 4px rgba(0,0,0,.08); }
.schema-table h3 { margin: 0; padding: 9px 11px; color: white; background: var(--navy); border-bottom: 3px solid var(--gold); font: bold 13px "Trebuchet MS", sans-serif; }
.schema-table ul { margin: 0; padding: 7px 11px 10px; list-style: none; font: 11px/1.55 Consolas, monospace; }
.schema-table li { border-bottom: 1px dotted #d5c8b6; }
.key { color: var(--wine); font-weight: bold; }
.database-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fact { padding: 15px; color: #f4ead8; background: var(--navy); border-bottom: 4px solid var(--gold); text-align: center; }
.fact strong { display: block; font: bold 27px Georgia, serif; }
.fact span { font-size: 11px; text-transform: uppercase; letter-spacing: .7px; }

.sql-lab-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 22px; }
.query-picker { display: grid; gap: 7px; }
.query-picker button { padding: 13px; border: 1px solid var(--border); background: #fff9ed; text-align: left; }
.query-picker button:hover, .query-picker button.active { color: white; background: var(--wine); border-color: var(--wine-dark); }
.query-picker button strong { display: block; }
.query-picker button small { display: block; margin-top: 3px; color: inherit; opacity: .78; }
.code-card { overflow: hidden; margin-bottom: 18px; background: #102634; border: 1px solid #071620; box-shadow: var(--shadow); }
.code-card-header { display: flex; justify-content: space-between; padding: 9px 13px; color: #c8d5dc; background: #0a1b26; border-bottom: 1px solid #2a4352; font-size: 11px; }
.code-card pre { margin: 0; padding: 18px; overflow: auto; color: #f0dfb3; font: 13px/1.65 Consolas, "Courier New", monospace; white-space: pre-wrap; }

.success-card { max-width: 760px; margin: 40px auto; overflow: hidden; background: #fff9ed; border: 1px solid var(--border); box-shadow: var(--shadow); }
.success-head { padding: 28px; color: white; background: linear-gradient(105deg, var(--green), var(--navy)); border-bottom: 5px solid var(--gold); text-align: center; }
.success-check { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 12px; color: var(--green); background: white; border-radius: 50%; font-size: 30px; }
.success-head h1 { color: white; }
.ticket-details { padding: 25px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.detail-item { padding: 10px; background: #efe5d5; border: 1px solid #d3c4ae; }
.detail-item span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.detail-item strong { font-size: 16px; }

.empty-state { padding: 35px; color: var(--muted); background: #fff9ed; border: 1px dashed #b7a78f; text-align: center; }
.empty-state strong { display: block; margin-bottom: 4px; color: var(--navy); font: bold 20px Georgia, serif; }

.site-footer { padding: 30px 0; color: #c9d3d9; background: var(--navy-dark); border-top: 5px solid var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer strong { color: white; font: bold 19px Georgia, serif; }
.site-footer span { color: var(--gold-light); text-transform: uppercase; letter-spacing: .8px; font-size: 10px; font-weight: bold; }
.site-footer p { margin: 4px 0 0; font-size: 12px; }

.sql-console { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: var(--console-width); display: flex; flex-direction: column; color: #d7e1e6; background: #0c1d27; border-left: 4px solid var(--gold); box-shadow: -7px 0 18px rgba(0,0,0,.32); transform: translateX(105%); transition: transform .22s ease; }
body.presentation .sql-console { transform: translateX(0); }
.console-header { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px; background: #07141c; border-bottom: 1px solid #29404e; }
.console-header > div:first-child { display: grid; grid-template-columns: 10px auto; align-items: center; column-gap: 8px; }
.console-header strong { color: white; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.console-header small { grid-column: 2; color: #8297a4; }
.console-live { width: 8px; height: 8px; border-radius: 50%; background: #79b681; box-shadow: 0 0 7px #79b681; }
.console-header-actions { display: flex; gap: 5px; }
.console-header-actions button { padding: 4px 7px; color: #bac8d0; background: #142b38; border: 1px solid #37505d; }
.console-guide { display: grid; gap: 2px; padding: 10px 14px; color: #acbbc3; background: #102632; border-bottom: 1px solid #2a414d; font-size: 11px; }
.console-guide strong { color: var(--gold-light); }
.sql-events { flex: 1; overflow-y: auto; padding: 11px; }
.console-empty { padding: 50px 20px; color: #66808e; text-align: center; }
.console-empty span { font-size: 34px; }
.sql-event { margin-bottom: 10px; border: 1px solid #2d4653; background: #102630; box-shadow: 0 2px 4px rgba(0,0,0,.25); }
.sql-event.error { border-color: #8f4b4b; }
.sql-event-head { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; background: #142e3b; border-bottom: 1px solid #2e4753; font-size: 10px; }
.sql-event-head strong { color: #efd17e; text-transform: uppercase; letter-spacing: .5px; }
.sql-event-head span { color: #8197a3; }
.sql-event-group { padding: 6px 10px; color: #a9bbc4; border-bottom: 1px solid #243b47; font-size: 10px; }
.sql-event pre { margin: 0; padding: 10px; overflow-x: auto; color: #e7d8ad; font: 11px/1.55 Consolas, monospace; white-space: pre-wrap; }
.sql-params { padding: 7px 10px; color: #a9bbc4; background: #0b1c25; border-top: 1px solid #243b47; font: 10px/1.5 Consolas, monospace; }
.sql-params b { color: #d59898; }
.sql-error { padding: 7px 10px; color: #f1b2b2; border-top: 1px solid #6d3838; font-size: 10px; }

@media (max-width: 1180px) {
  .main-nav > a, .nav-menu > button { padding: 0 10px; font-size: 12px; }
  body.presentation { padding-right: 0; }
  .sql-console { width: min(470px, 92vw); }
}
@media (max-width: 900px) {
  .header-inner { display: block; padding: 15px 0 0; }
  .brand { margin-bottom: 13px; }
  .main-nav { overflow-x: auto; }
  .main-nav > a, .nav-menu > button { min-height: 47px; white-space: nowrap; }
  .hero-inner, .screening-layout, .admin-grid, .sql-lab-grid { grid-template-columns: 1fr; }
  .hero-ticket { display: none; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .report-cards, .story-grid, .schema-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid, .database-facts { grid-template-columns: repeat(2, 1fr); }
  .booking-box, .admin-grid .panel:first-child { position: static; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 22px, 1180px); }
  .utility-inner > span, .db-indicator { display: none; }
  .utility-inner { justify-content: flex-end; }
  .brand strong { font-size: 19px; }
  .hero h1 { font-size: 35px; }
  .stats-grid, .report-cards, .story-grid, .schema-grid, .database-facts, .detail-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--border); }
  .program-card { grid-template-columns: 82px 1fr; }
  .program-book { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); }
  .film-summary { grid-template-columns: 1fr; }
  .film-poster { min-height: 160px; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .page-heading { align-items: flex-start; flex-direction: column; }
}

@media print {
  .utility-bar, .site-header, .presentation-banner, .sql-console, .site-footer, .button, .filter-bar { display: none !important; }
  body { padding: 0 !important; background: white; color: black; }
  .page-section { padding: 0; }
  .panel, .data-table-wrap { box-shadow: none; }
}

