:root {
  color-scheme: dark;
  --navy: #07182b;
  --navy-soft: #102a46;
  --blue: #1682cf;
  --ink: #f5f8fc;
  --muted: #b5c5d8;
  --line: #28435e;
  --panel: #0c2036;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--navy); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; }
.wrap { width: min(100% - 28px, 1440px); margin: auto; }
.hero { min-height: 440px; position: relative; display: grid; align-items: center; overflow: hidden; isolation: isolate; background: linear-gradient(115deg, #061321 4%, #0b2540 60%, #1269a9 100%); }
.hero::before, .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero::before { opacity: .74; background-image: linear-gradient(90deg, #061321 0%, #061321a8 50%, #06132148 100%), url("../assets/cover/cover-01.jpg"), url("../assets/cover/cover-02.jpg"), url("../assets/cover/cover-03.jpg"); background-size: cover, 46% 100%, 46% 100%, 46% 100%; background-position: center, left center, center center, right center; background-repeat: no-repeat; }
.hero::after { background: linear-gradient(0deg, #07182b 0%, transparent 38%), linear-gradient(90deg, #061321a8 0%, transparent 75%); }
.hero-content { width: min(100% - 32px, 1150px); margin: auto; padding: 70px 0 90px; }
.brand { margin: 0 0 10px; color: #8bc8f5; font-size: .9rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
h1 { max-width: 850px; margin: 0; font-size: clamp(3.2rem, 9vw, 7.5rem); line-height: .98; letter-spacing: -.045em; text-shadow: 0 4px 28px #0009; }
.lead { max-width: 610px; margin: 24px 0 0; color: #e1eaf4; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.blue-line { width: 86px; height: 5px; margin-top: 28px; border-radius: 4px; background: var(--blue); }
.content { padding: 30px 0 60px; }
.login-card, .notice, article { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 16px 42px #0003; }
.login-card { width: min(100%, 470px); margin: -42px auto 42px; padding: 26px; position: relative; }
.login-card h2 { margin: 0 0 5px; font-size: 1.35rem; }
.muted { color: var(--muted); }
label { display: block; margin: 16px 0 6px; color: #dce8f4; font-size: .93rem; font-weight: 650; }
input { width: 100%; border: 1px solid #385572; border-radius: 9px; background: #07182b; color: white; padding: 12px 13px; font: inherit; }
input:focus { outline: 3px solid #1682cf66; border-color: #62b7f2; }
button, .button { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 9px; background: var(--blue); color: white; padding: 11px 17px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #2997e5; }
.login-card button { width: 100%; margin-top: 20px; }
.error { margin: 14px 0 0; color: #ffc4bd; }
.toolbar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 24px; }
.toolbar h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.toolbar p { margin: 3px 0 0; color: var(--muted); }
.userline { color: var(--muted); }
.userline strong { color: white; }
.logout { padding: 8px 13px; background: #173652; border: 1px solid #385572; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px; }
article { overflow: hidden; }
article a { display: block; color: inherit; text-decoration: none; }
article img { display: block; width: 100%; height: 255px; object-fit: contain; background: #071321; }
.details { padding: 12px 14px 15px; }
.maker { margin: 0; font-weight: 700; }
.file { margin: 3px 0 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.actions { display: flex; gap: 8px; padding: 0 14px 14px; }
.small-button { padding: 7px 10px; font-size: .88rem; }
.notice { padding: 18px 20px; color: #dfeaf5; }
.notice.error { border-color: #82444b; }
footer { padding: 22px 0 35px; border-top: 1px solid #203b55; color: #9fb4c9; font-size: .9rem; }
@media (max-width: 640px) { .hero { min-height: 360px; } .hero-content { padding: 60px 0 80px; } .login-card { margin-top: -35px; padding: 21px; } article img { height: 220px; } }
.hero-compact { min-height: 300px; }
.hero-compact .hero-content { padding-top: 54px; padding-bottom: 68px; }
.admin-content { padding-top: 24px; }
.admin-panel { margin: 0 0 24px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: 0 16px 42px #0003; }
.panel-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 18px; }
.panel-heading h2 { margin: 0; font-size: 1.3rem; }
.panel-heading p { margin: 5px 0 0; }
.text-link { color: #8bc8f5; font-weight: 700; }
.form-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.admin-form label { margin-top: 10px; }
.admin-form select, .planning-admin-row select { width: 100%; border: 1px solid #385572; border-radius: 9px; background: #07182b; color: white; padding: 12px 13px; font: inherit; }
.admin-form select:focus { outline: 3px solid #1682cf66; border-color: #62b7f2; }
.rights-fieldset, .password-fieldset { margin: 22px 0 0; padding: 0; border: 0; }
.rights-fieldset legend, .password-fieldset legend { margin-bottom: 10px; font-size: 1.05rem; font-weight: 750; }
.rights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.admin-form label.check-option { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px; border: 1px solid #28435e; border-radius: 10px; background: #081a2d; cursor: pointer; }
.check-option input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 2px 0 0; accent-color: var(--blue); }
.check-option span { display: grid; gap: 2px; }
.check-option small, .user-table td small { display: block; color: var(--muted); font-size: .86rem; }
.form-note { margin: 5px 0 0; color: var(--muted); font-size: .9rem; }
.watermark-text-field { margin-top: 16px; }
.watermark-text-field code { color: #c5e7ff; font-size: .95em; }
.admin-form > button { margin-top: 20px; }
.feedback { padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; }
.feedback.success { color: #c8f4d3; border-color: #296741; background: #0a2a1a; }
.feedback.error { color: #ffc4bd; border-color: #82444b; background: #311a22; }
.secondary-button { background: #173652; border: 1px solid #385572; }
.count { display: inline-flex; min-width: 28px; min-height: 28px; align-items: center; justify-content: center; margin-left: 5px; border-radius: 14px; background: #173652; color: #c9e7fb; font-size: .85rem; vertical-align: 2px; }
.table-scroll { overflow-x: auto; }
.user-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.user-table th, .user-table td { padding: 11px 10px; border-bottom: 1px solid #203b55; text-align: left; vertical-align: middle; white-space: nowrap; }
.user-table th { color: #b5c5d8; font-size: .82rem; font-weight: 700; }
.user-table td:first-child { white-space: normal; min-width: 170px; }
.status { display: inline-block; padding: 3px 8px; border-radius: 12px; font-size: .8rem; font-weight: 700; }
.status-active { color: #c8f4d3; background: #17482d; }
.status-inactive { color: #ffd5d1; background: #57252b; }
.public-home .hero { min-height: 330px; }
.public-home .hero-content { padding-top: 52px; padding-bottom: 70px; }
.public-home-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 22px; align-items: stretch; }
.teaser-panel { display: flex; min-width: 0; min-height: 445px; flex-direction: column; padding: 18px; border: 1px solid #19232d; border-radius: 16px; background: #000; box-shadow: 0 16px 42px #0004; }
.teaser-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.teaser-panel-heading h2 { margin: 0; font-size: 1.35rem; }
.teaser-panel-heading p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.teaser-count { flex: 0 0 auto; color: #a9d9fb; font-size: .88rem; }
.teaser-grid { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(135px, 1fr)); gap: 9px; }
.teaser-card { position: relative; min-width: 0; min-height: 0; margin: 0; overflow: hidden; border: 1px solid #151515; border-radius: 9px; background: #000; }
.teaser-card img { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.teaser-card figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: grid; gap: 1px; padding: 18px 9px 7px; background: linear-gradient(transparent, #000d); color: #fff; font-size: .78rem; line-height: 1.3; }
.teaser-card figcaption strong, .teaser-card figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.teaser-card figcaption span { color: #d2dce7; }
.teaser-placeholder { border-color: #0b0b0b; background: #020202; }
.teaser-note { margin: 12px 2px 0; color: #98a9ba; font-size: .85rem; }
.public-login-card { align-self: center; width: 100%; margin: 0; }
.public-login-card .brand { margin-bottom: 2px; font-size: .78rem; }
.public-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.public-list-panel { min-width: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 16px; background: #0a1d31; box-shadow: 0 14px 38px #0003; }
.public-list-panel h2 { margin: 0; font-size: 1.3rem; }
.public-list-subtitle { margin: 4px 0 18px; color: var(--muted); font-size: .92rem; }
.public-list-empty { margin: 0; padding: 15px 0 4px; color: #91a8bf; }
.event-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.event-list li { display: flex; align-items: center; gap: 13px; min-height: 58px; padding: 9px 0; border-top: 1px solid #203b55; }
.event-status { display: grid; width: 30px; height: 30px; flex: 0 0 30px; place-items: center; border-radius: 50%; font-size: 1.05rem; font-weight: 850; }
.planning-going { color: #9aefb2; background: #123a27; }
.planning-not-going { color: #ffaaa6; background: #432026; }
.planning-unknown { color: #ffe092; background: #42371b; }
.event-copy { display: grid; min-width: 0; gap: 1px; }
.event-copy time { color: #9fc3e0; font-size: .86rem; }
.event-copy strong { overflow-wrap: anywhere; }
.planning-admin-list { display: grid; gap: 12px; }
.planning-admin-row { display: grid; grid-template-columns: minmax(130px, .8fr) minmax(180px, 1.35fr) minmax(160px, 1fr) minmax(150px, 1fr) auto auto; gap: 12px; align-items: end; padding: 16px; border: 1px solid #203b55; border-radius: 12px; background: #081a2d; }
.planning-admin-row > label { min-width: 0; margin: 0; }
.planning-admin-row .check-option { display: flex; align-items: center; gap: 8px; min-height: 45px; margin: 0; color: var(--muted); font-weight: 600; }
.planning-admin-row .check-option input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin: 0; accent-color: var(--blue); }
.planning-event-name { display: grid; align-content: center; gap: 2px; min-height: 62px; }
.planning-event-name span { color: var(--muted); }
@media (max-width: 960px) {
  .public-home-layout { grid-template-columns: 1fr; }
  .public-login-card { justify-self: center; max-width: 470px; }
  .public-lists { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .hero-compact { min-height: 250px; }
  .form-columns, .rights-grid { grid-template-columns: 1fr; }
  .admin-panel { padding: 17px; }
  .panel-heading { flex-direction: column; }
  .toolbar .secondary-button { width: 100%; }
  .user-table { min-width: 900px; }
  .planning-admin-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-admin-row button { align-self: end; }
}
@media (max-width: 560px) {
  .public-home .hero { min-height: 270px; }
  .teaser-panel { min-height: 410px; padding: 12px; }
  .teaser-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(90px, 1fr)); gap: 5px; }
  .teaser-card figcaption { font-size: .7rem; padding-right: 6px; padding-left: 6px; }
  .planning-admin-row { grid-template-columns: 1fr; }
}
