:root {
  font-family: Georgia, "Times New Roman", serif;
  color: #262626;
  --paper: #ddd9d4;
  --graphite: #383838;
  --graphite-soft: rgba(50, 50, 50, .60);
  --graphite-light: rgba(88, 88, 88, .56);
  --panel: rgba(73, 73, 73, .60);
  --panel-light: rgba(225, 223, 219, .62);
  --line: rgba(68, 68, 68, .38);
  --red: #8d2f2b;
  --red-dark: #6f201d;
  --red-soft: rgba(141,47,43,.22);
  --white: #f4f2ef;
  --muted: #d4d1cc;
  --shadow: 0 20px 55px rgba(0,0,0,.22);
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: #d8d5d1; color: #242424; }
button, input, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.page-backdrop {
  position: fixed; inset: 0; z-index: -3;
  background-image: url("background.png");
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  background-color: #d8d5d1;
}
.page-backdrop::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(235,233,230,.02) 0%, rgba(235,233,230,.08) 40%, rgba(235,233,230,.16) 100%);
}

/* Login */
.login-stage { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.glass-panel {
  background: var(--panel);
  border: 1px solid rgba(70,70,70,.38);
  box-shadow: var(--shadow);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.login-panel {
  width: min(92vw, 430px); padding: 28px 34px 22px; border-radius: 8px; text-align: center;
  color: var(--white);
}
.login-cross { color: #b73d37; font-size: 40px; line-height: 1; font-weight: 800; }
.login-brand { margin-top: 5px; color: #b33b35; font-size: 29px; letter-spacing: .03em; }
.ornament { display: flex; align-items: center; justify-content: center; gap: 7px; color: #a53531; margin: 7px auto 18px; }
.ornament span { height: 1px; width: min(28vw, 150px); background: linear-gradient(90deg, transparent, #a53531); }
.ornament span:last-child { background: linear-gradient(90deg, #a53531, transparent); }
h1 { margin: 0; color: var(--red-dark); font-size: clamp(25px, 5vw, 34px); font-weight: 500; letter-spacing: .015em; }
.login-panel h1 { color: #f1efeb; font-size: 18px; margin-bottom: 18px; }
.login-form { display: grid; gap: 12px; }
.input-shell { display: grid; grid-template-columns: 32px 1fr; align-items: center; min-height: 48px; border: 1px solid rgba(235,235,235,.34); border-radius: 4px; background: rgba(55,55,55,.42); color: #d6d2ce; padding: 0 10px; }
.input-shell input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; font-size: 16px; padding: 12px 2px; }
.input-shell input::placeholder { color: rgba(242,240,237,.58); }
.primary-button, .primary-link {
  min-height: 46px; border: 1px solid #9e3934; border-radius: 4px; background: rgba(143,39,35,.88); color: #f6efec;
  font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.primary-button:hover, .primary-link:hover { background: #8d2f2b; }
.login-form .primary-button { margin-top: 5px; width: 100%; }
.copyright { margin: 24px 0 0; font-size: 12px; color: rgba(255,255,255,.75); }

/* Main app layout */
.app-layout { min-height: 100vh; display: grid; grid-template-columns: 205px minmax(0,1fr); }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 205px; z-index: 10; display: flex; flex-direction: column;
  padding: 18px 10px 20px; background: rgba(53,53,53,.68); border-right: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px);
}
.side-brand { display: flex; align-items: center; gap: 8px; padding: 3px 10px 18px; color: #b23b35; text-decoration: none; font-size: 20px; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand-bell { font-size: 26px; }
.side-nav { display: grid; gap: 8px; margin-top: 18px; }
.side-link { display: grid; grid-template-columns: 25px 1fr; align-items: center; min-height: 40px; padding: 8px 10px; color: #f1efec; text-decoration: none; border-radius: 4px; }
.side-link:hover, .side-link.active { background: rgba(151,65,60,.66); }
.side-logout { margin-top: auto; border-top: 1px solid rgba(255,255,255,.15); padding-top: 10px; }
.logout-button { width: 100%; border: 0; background: transparent; color: #d95c55; display: flex; gap: 8px; align-items: center; padding: 10px; cursor: pointer; }
.app-stage { grid-column: 2; min-width: 0; min-height: 100vh; padding-bottom: 20px; }
.topbar { height: 62px; display: flex; align-items: center; justify-content: flex-end; padding: 0 28px; color: #f2f0ec; background: rgba(72,72,72,.40); backdrop-filter: blur(3px); }
.top-user { display: flex; align-items: center; gap: 7px; font-size: 14px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.mobile-brand { display: none; }
.content-area { min-height: calc(100vh - 62px); display: grid; place-items: center; padding: 38px 34px; }
.main-panel { width: min(100%, 920px); border-radius: 8px; padding: 28px 38px; text-align: center; color: var(--white); }
.main-panel h1 { color: #8b2d29; }
.main-panel h1 small { font-size: .65em; }
.muted { color: rgba(250,248,245,.82); line-height: 1.45; }
.welcome { margin: 26px 0 4px; color: #f3f0ed; font-size: 18px; }
.welcome strong { color: #c6423a; }
.hint { margin: 28px 0 0; color: rgba(255,255,255,.72); }

/* Dashboard */
.summary-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 70px; max-width: 650px; margin: 40px auto 0; }
.summary-card { min-height: 100px; padding: 16px 20px; border: 1px solid rgba(116,38,35,.7); border-radius: 5px; display: flex; align-items: center; justify-content: center; gap: 18px; color: #fff; text-decoration: none; background: rgba(96,96,96,.34); }
.summary-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(171,71,65,.9), rgba(81,39,37,.8)); font-size: 26px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.24); }
.summary-card strong { display: block; font-size: 25px; font-weight: 500; }
.summary-card span { display: block; margin-top: 3px; }

/* Offsets */
.offsets-panel { width: min(100%, 1040px); }
.bell-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; margin: 26px 0 22px; }
.bell-card { position: relative; padding: 18px 12px 16px; border: 1px solid rgba(64,64,64,.34); border-radius: 7px; background: rgba(220,220,220,.18); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.bell-number { position: absolute; top: 9px; left: 10px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(145,44,40,.9); color: white; font-weight: 700; }
.bell-sketch { width: min(100%,138px); height: 124px; object-fit: contain; filter: grayscale(1) contrast(1.08); opacity: .88; }
.bell-card h2 { margin: 4px 0 10px; color: rgba(250,248,245,.94); font-size: 18px; font-weight: 500; text-shadow: 0 1px 3px rgba(0,0,0,.36); }
.offset-input-wrap input { width: 100%; min-height: 42px; border: 1px solid rgba(54,54,54,.34); border-radius: 6px; background: rgba(238,238,238,.16); color: #f7f5f2; text-align: center; font-size: 19px; outline: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.10); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.offset-input-wrap input:focus { border-color: rgba(141,47,43,.68); background: rgba(244,244,244,.22); box-shadow: 0 0 0 2px rgba(141,47,43,.10), inset 0 1px 0 rgba(255,255,255,.12); }
.offset-input-wrap span { display: block; margin-top: 4px; color: #eeeae6; font-size: 13px; }
.stepper { margin-top: 12px; display: grid; grid-template-columns: 42px 1fr 42px; gap: 8px; align-items: center; }
.round-step { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(141,47,43,.56); background: rgba(226,226,226,.14); color: #b93e38; font-size: 25px; line-height: 1; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); transition: background .16s ease, border-color .16s ease, transform .08s ease; }
.round-step:hover { background: rgba(230,230,230,.24); border-color: rgba(141,47,43,.80); }
.round-step:active { transform: scale(.94); background: rgba(141,47,43,.16); }
.step-label { min-height: 38px; display: grid; place-items: center; border-radius: 6px; background: rgba(235,235,235,.14); border: 1px solid rgba(55,55,55,.30); color: rgba(250,248,245,.94); box-shadow: inset 0 1px 0 rgba(255,255,255,.10); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.action-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.action-row button { min-width: 220px; padding: 0 18px; }
.outline-button { min-height: 46px; border: 1px solid #8d2f2b; border-radius: 4px; background: rgba(85,85,85,.38); color: #f4efec; font-weight: 700; cursor: pointer; }
.warning-text { color: #e4d7d4; font-size: 12px; margin: 12px 0 0; }

/* Users */
.toolbar { display: flex; justify-content: center; margin: 24px 0 18px; }
.primary-link { padding: 0 18px; }
.user-list { display: grid; gap: 10px; text-align: left; }
.user-row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; background: rgba(72,72,72,.36); border: 1px solid rgba(255,255,255,.18); border-radius: 5px; }
.user-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(139,45,41,.72); color: white; }
.user-info { display: grid; gap: 3px; }
.user-info span, .protected-label { font-size: 13px; color: rgba(255,255,255,.7); }
.row-actions { display: flex; align-items: center; gap: 8px; }
.row-actions form { margin: 0; }
.small-link, .small-danger { min-height: 34px; padding: 6px 10px; border-radius: 4px; border: 1px solid rgba(141,47,43,.75); text-decoration: none; color: #fff; background: rgba(70,70,70,.4); cursor: pointer; }
.small-danger { background: rgba(119,34,31,.58); }

/* Forms and messages */
.form-panel { max-width: 620px; }
.form-stack { display: grid; gap: 8px; text-align: left; margin-top: 22px; }
.form-stack label { margin-top: 8px; color: #f4f0ed; }
.form-stack input[type="text"], .form-stack input[type="password"] { width: 100%; min-height: 45px; border: 1px solid rgba(255,255,255,.25); background: rgba(58,58,58,.48); color: white; padding: 9px 11px; border-radius: 4px; }
.check-row { display: flex; gap: 9px; align-items: center; }
.cancel-link { color: #f0d7d3; text-align: center; margin-top: 8px; }
.messages { margin: 15px auto; max-width: 720px; }
.message { padding: 10px 12px; border: 1px solid rgba(145,44,40,.75); background: rgba(95,32,29,.58); color: white; border-radius: 4px; }
.message.success { border-color: rgba(76,100,73,.8); background: rgba(60,83,57,.58); }
.mobile-nav { display: none; }

@media (max-width: 900px) {
  .bell-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .summary-grid { gap: 20px; }
}

@media (max-width: 720px) {
  .page-backdrop { background-position: 25% center; }
  .app-layout { display: block; }
  .sidebar { display: none; }
  .app-stage { min-height: 100vh; padding-bottom: 78px; }
  .topbar { height: 54px; padding: 0 14px; justify-content: space-between; background: rgba(60,60,60,.58); }
  .mobile-brand { display: block; color: #c14840; font-size: 17px; }
  .top-user { font-size: 13px; }
  .content-area { min-height: calc(100vh - 54px); padding: 14px 10px 20px; place-items: start center; }
  .main-panel { padding: 22px 12px; border-radius: 6px; }
  .summary-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .summary-card { min-height: 82px; }
  .bell-grid { gap: 10px; }
  .bell-card { padding: 14px 8px 12px; }
  .bell-sketch { height: 90px; width: 95px; }
  .bell-card h2 { font-size: 16px; }
  .stepper { grid-template-columns: 40px 1fr 40px; gap: 5px; }
  .action-row { display: grid; grid-template-columns: 1fr; }
  .action-row button { min-width: 0; width: 100%; }
  .user-row { grid-template-columns: 38px 1fr; }
  .row-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .mobile-nav { position: fixed; left: 8px; right: 8px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; overflow: hidden; background: rgba(49,49,49,.78); backdrop-filter: blur(7px); }
  .mobile-nav a { min-height: 56px; display: grid; place-items: center; align-content: center; gap: 2px; color: #eeeae7; text-decoration: none; }
  .mobile-nav a.active { background: rgba(141,47,43,.72); }
  .mobile-nav span { font-size: 19px; }
  .mobile-nav small { font-size: 10px; }
  .login-stage { padding: 14px; }
  .login-panel { padding: 24px 18px 18px; width: min(95vw, 410px); }
}

@media (max-width: 410px) {
  .bell-grid { grid-template-columns: 1fr; }
  .bell-card { max-width: 290px; width: 100%; margin: 0 auto; }
  .login-brand { font-size: 25px; }
}


/* Furtuna */
.storm-panel { width: min(100%, 720px); }
.storm-card { width: min(100%, 480px); margin: 24px auto 12px; padding: 22px 26px 26px; border: 1px solid rgba(64,64,64,.34); border-radius: 8px; background: rgba(220,220,220,.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.storm-sketch { display: block; width: min(78%, 250px); height: 190px; object-fit: contain; margin: 0 auto 10px; opacity: .96; filter: grayscale(1) contrast(1.35); }
.storm-form { display: grid; gap: 12px; }
.storm-form label { color: rgba(250,248,245,.94); font-size: 17px; }
.storm-duration { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; }
.storm-duration input { width: 100%; min-height: 52px; border: 1px solid rgba(54,54,54,.36); border-radius: 6px; background: rgba(238,238,238,.16); color: #fff; text-align: center; font-size: 22px; outline: none; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.storm-duration input:focus { border-color: rgba(141,47,43,.72); background: rgba(244,244,244,.22); box-shadow: 0 0 0 2px rgba(141,47,43,.11); }
.storm-duration span { color: rgba(250,248,245,.86); font-size: 15px; }
.storm-start { width: 100%; margin-top: 5px; }
.danger-stop { width: 100%; min-height: 50px; border: 1px solid rgba(167,50,44,.92); border-radius: 5px; background: rgba(77,23,21,.62); color: #fff0ed; font-weight: 800; letter-spacing: .02em; cursor: pointer; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.danger-stop:hover { background: rgba(112,29,25,.76); }
.danger-stop:active { transform: scale(.99); }
.storm-note { margin: 14px 0 0; color: rgba(246,235,232,.80); font-size: 12px; }

@media (max-width: 720px) {
  .storm-card { padding: 18px 14px 20px; }
  .storm-sketch { height: 155px; width: min(78%, 210px); }
  .storm-duration { grid-template-columns: 1fr; gap: 4px; }
  .storm-duration span { font-size: 12px; }
}


/* Inmormantare */
.burial-panel { width: min(100%, 1060px); }
.burial-create-grid { display: grid; grid-template-columns: minmax(220px,.72fr) minmax(320px,1.28fr); gap: 28px; align-items: center; margin: 24px auto 32px; max-width: 850px; }
.memorial-cross-wrap { position: relative; width: min(100%,250px); height: 330px; margin: 0 auto; display: grid; place-items: center; }
.memorial-cross { width: 100%; height: 100%; object-fit: contain; opacity: .92; filter: drop-shadow(0 4px 5px rgba(0,0,0,.18)); }
.cross-name { position: absolute; left: 23%; right: 23%; top: 30.5%; color: #151515; font-size: clamp(12px,2.2vw,18px); font-weight: 700; line-height: 1.05; text-align: center; text-shadow: 0 1px rgba(255,255,255,.28); overflow-wrap: anywhere; }
.burial-form { display: grid; gap: 9px; text-align: left; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 7px; background: rgba(80,80,80,.24); backdrop-filter: blur(3px); }
.burial-form label { color: rgba(250,248,245,.94); margin-top: 5px; }
.burial-form > input, .burial-times input { min-height: 46px; width: 100%; border: 1px solid rgba(255,255,255,.24); border-radius: 5px; padding: 8px 10px; background: rgba(235,235,235,.16); color: white; outline: none; color-scheme: dark; }
.burial-form > input:focus, .burial-times input:focus { border-color: rgba(141,47,43,.72); background: rgba(240,240,240,.22); }
.burial-times { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.burial-times div { display: grid; gap: 4px; text-align: center; }
.burial-times small { color: rgba(255,255,255,.72); }
.burial-save { margin-top: 9px; width: 100%; }
.burial-program { margin: 28px 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.18); }
.burial-program-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 900px; margin: 0 auto; text-align: left; }
.burial-program-head > div:first-child { display: grid; gap: 4px; }
.burial-program-head span { color: rgba(255,255,255,.68); }
.burial-program-head strong { color: #f5f1ed; font-size: 23px; font-weight: 500; }
.days-left { min-width: 108px; padding: 10px 14px; text-align: center; border: 1px solid rgba(141,47,43,.52); border-radius: 7px; background: rgba(82,82,82,.26); }
.days-left strong { display: block; color: #c7443d; font-size: 27px; }
.days-left span { font-size: 11px; }
.program-date { color: rgba(255,255,255,.78); margin: 12px 0 20px; }
.schedule-days { display: grid; gap: 11px; max-width: 900px; margin: 0 auto; }
.schedule-day { display: grid; grid-template-columns: minmax(180px,.75fr) 1.25fr; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(76,76,76,.25); text-align: left; }
.schedule-day.today { border-color: rgba(141,47,43,.55); background: rgba(92,69,67,.28); }
.schedule-day h2 { margin: 0; color: rgba(249,246,242,.92); font-size: 16px; font-weight: 500; }
.schedule-day h2 small { color: #c64a43; font-size: 11px; }
.schedule-times { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; }
.schedule-slot { min-height: 55px; display: grid; place-items: center; align-content: center; padding: 7px; border: 1px solid rgba(141,47,43,.44); border-radius: 5px; background: rgba(225,225,225,.13); color: #f7f4f0; }
.schedule-slot strong { font-size: 18px; }
.schedule-slot span { color: rgba(255,255,255,.66); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; }
.schedule-slot.past { opacity: .38; filter: grayscale(1); border-color: rgba(255,255,255,.18); }
.schedule-slot.status-failed { opacity: .65; border-color: rgba(164,53,47,.75); }
.burial-history-list, .current-programs { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); }
.burial-history-list > h2, .current-programs > h2 { color: rgba(248,245,241,.88); font-size: 17px; font-weight: 500; }
.history-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.history-card { min-height: 92px; display: grid; place-items: center; align-content: center; gap: 2px; padding: 10px; border: 1px solid rgba(255,255,255,.16); border-radius: 6px; background: rgba(70,70,70,.25); text-decoration: none; color: rgba(245,242,238,.78); }
.history-card:hover { border-color: rgba(141,47,43,.58); background: rgba(85,73,71,.32); }
.history-card > span { color: #a63b35; font-size: 23px; }
.history-card strong { font-size: 14px; font-weight: 500; }
.history-card small { opacity: .64; }
.history-card.current { border-color: rgba(141,47,43,.46); }
.history-cross-block { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 25px; max-width: 720px; margin: 20px auto 28px; text-align: left; }
.memorial-cross-wrap.compact { height: 230px; width: 170px; }
.memorial-cross-wrap.compact .cross-name { font-size: 12px; }
.history-cross-block h2 { color: #f5f1ed; font-weight: 500; }
.history-cross-block p { color: rgba(255,255,255,.75); }
.history-view .cancel-link { display: inline-block; margin-top: 22px; }

@media (max-width: 900px) {
  .history-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .burial-create-grid { grid-template-columns: 1fr; gap: 10px; }
  .memorial-cross-wrap { height: 245px; width: 185px; }
  .cross-name { font-size: 12px; }
  .burial-form { padding: 14px; }
  .burial-times { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; }
  .burial-times input { padding: 6px 3px; font-size: 14px; }
  .burial-program-head { align-items: flex-end; }
  .schedule-day { grid-template-columns: 1fr; gap: 8px; }
  .schedule-day h2 { text-align: center; }
  .history-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .history-cross-block { grid-template-columns: 1fr; text-align: center; }
  .memorial-cross-wrap.compact { height: 210px; }
}
@media (max-width: 390px) {
  .schedule-times { gap: 5px; }
  .schedule-slot { padding: 5px 2px; }
  .schedule-slot strong { font-size: 16px; }
}

/* Furtuna centered input refinement */
.storm-form { display:flex; flex-direction:column; align-items:center; width:100%; }
.storm-form label { width:100%; text-align:center; }
.storm-duration { display:flex; justify-content:center; align-items:center; width:100%; margin:12px 0 8px; }
.storm-duration input { width:150px; max-width:100%; text-align:center; }

/* Burial editing + burial hour */
.burial-form-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:3px; color:rgba(250,248,245,.94); }
.burial-form-head strong { font-size:17px; font-weight:600; }
.small-link { color:#d06a63; font-size:12px; text-decoration:none; }
.small-link:hover { text-decoration:underline; }
.burial-date-time-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.burial-date-time-grid > div { display:grid; gap:6px; }
.burial-date-time-grid input { min-height:46px; width:100%; border:1px solid rgba(255,255,255,.24); border-radius:5px; padding:8px 10px; background:rgba(235,235,235,.16); color:white; outline:none; color-scheme:dark; }
.burial-date-time-grid input:focus { border-color:rgba(141,47,43,.72); background:rgba(240,240,240,.22); }
.burial-locked-note { max-width:720px; margin:22px auto; padding:14px; border:1px solid rgba(255,255,255,.17); border-radius:6px; background:rgba(65,65,65,.28); color:rgba(245,241,237,.76); }

/* Manual all-bells control */
.manual-bells-panel { width:min(100%,720px); }
.manual-bells-card { width:min(100%,500px); margin:26px auto 8px; padding:26px; border:1px solid rgba(255,255,255,.16); border-radius:9px; background:rgba(65,65,65,.24); backdrop-filter:blur(4px); -webkit-backdrop-filter:blur(4px); }
.manual-bells-form { display:grid; place-items:center; }
.manual-bell-toggle { width:210px; height:210px; border-radius:50%; border:2px solid rgba(255,255,255,.28); background:radial-gradient(circle at 45% 35%, rgba(235,235,235,.22), rgba(65,65,65,.34) 62%, rgba(20,20,20,.38)); box-shadow:0 12px 30px rgba(0,0,0,.22), inset 0 0 0 8px rgba(255,255,255,.035); color:#ebe7e3; cursor:pointer; display:grid; place-items:center; align-content:center; gap:4px; transition:transform .15s ease, border-color .15s ease, background .15s ease; }
.manual-bell-toggle:hover { transform:scale(1.015); border-color:rgba(141,47,43,.72); }
.manual-bell-toggle:active { transform:scale(.985); }
.manual-bell-toggle.is-on { border-color:rgba(167,54,48,.86); background:radial-gradient(circle at 45% 35%, rgba(155,65,59,.42), rgba(92,35,32,.47) 58%, rgba(35,18,17,.52)); box-shadow:0 12px 34px rgba(53,9,7,.30), inset 0 0 0 8px rgba(255,255,255,.035), 0 0 34px rgba(132,40,35,.18); }
.toggle-state { font-family:Georgia,serif; font-size:50px; line-height:1; letter-spacing:.03em; }
.manual-bell-toggle small { font-size:12px; letter-spacing:.14em; color:rgba(247,242,238,.72); }
.manual-safety-readout { display:flex; justify-content:center; align-items:baseline; gap:8px; flex-wrap:wrap; margin:20px 0 8px; color:rgba(244,240,236,.74); }
.manual-safety-readout strong { color:#d05851; font-size:20px; }
.manual-countdown { flex-basis:100%; min-height:16px; text-align:center; color:rgba(244,240,236,.62); }
.manual-safety-form { margin-top:22px; padding-top:18px; border-top:1px solid rgba(255,255,255,.15); display:grid; gap:9px; text-align:left; }
.manual-safety-form label { color:rgba(248,245,241,.9); }
.manual-safety-input-row { display:grid; grid-template-columns:110px auto 1fr; gap:9px; align-items:center; }
.manual-safety-input-row input { min-height:46px; width:100%; border:1px solid rgba(255,255,255,.24); border-radius:5px; padding:8px 10px; background:rgba(235,235,235,.16); color:white; text-align:center; outline:none; }
.manual-safety-input-row span { color:rgba(255,255,255,.7); }
.manual-safety-input-row .outline-button { min-width:0; }
.manual-safety-form > small { color:rgba(255,255,255,.56); line-height:1.4; }

@media (max-width:720px) {
  .burial-date-time-grid { grid-template-columns:1fr; }
  .manual-bells-card { padding:20px 14px; }
  .manual-bell-toggle { width:190px; height:190px; }
  .manual-safety-input-row { grid-template-columns:90px auto 1fr; }
  .mobile-nav { grid-auto-columns:minmax(62px,1fr); overflow-x:auto; }
}
@media (max-width:420px) {
  .manual-bell-toggle { width:172px; height:172px; }
  .toggle-state { font-size:43px; }
  .manual-safety-input-row { grid-template-columns:1fr auto; }
  .manual-safety-input-row .outline-button { grid-column:1 / -1; width:100%; }
}
