:root {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color: #202439;
  background: #f5f6fb;
  font-size: 14px;
  --accent: #574ee7;
  --ink: #202439;
  --muted: #72778d;
  --line: #e5e7f0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  line-height: 1.7;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.import {
  border: 1px solid var(--line);
  background: #fff;
  color: #44465d;
  border-radius: 11px;
  padding: 10px 15px;
  cursor: pointer;
  min-height: 44px;
  font-weight: 550;
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
button:hover,
.import:hover {
  background: #f0efff;
  border-color: #cfcbfc;
}
button:active {
  transform: translateY(1px);
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid #b8b2fb;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary,
#login,
#add,
#addBill,
#unlockForm button,
.dialog-actions button:last-child,
#docForm > button,
#passForm > button:first-of-type {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px #574ee719;
}
button.primary:hover,
#add:hover,
#addBill:hover {
  background: #463dd0;
}
.danger {
  color: #ae3f50;
  background: #fff5f6;
  border-color: #f4dbe0;
}
header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 14px;
  align-items: center;
  background: #ffffffed;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 16px max(24px, calc((100vw - 1240px) / 2));
  min-height: 78px;
}
header .brand {
  font-size: 20px;
  letter-spacing: -0.5px;
  font-weight: 750;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
header .privacy-badge {
  margin-right: auto;
  color: #89879d;
  font-size: 12px;
}
header button {
  min-height: 40px;
  padding: 7px 12px;
  font-size: 12px;
}
#lock {
  background: #f0efff;
  color: var(--accent);
}
main {
  max-width: 1240px;
  padding: 36px 28px 42px;
  margin: 0 auto;
}
h1,
h2,
h3 {
  line-height: 1.55;
  letter-spacing: -0.4px;
}
h1 {
  font-size: clamp(25px, 3vw, 34px);
  margin: 10px 0;
}
h2 {
  font-size: 20px;
  margin: 6px 0;
}
h3 {
  font-size: 16px;
  margin: 15px 0 10px;
}
p {
  margin: 8px 0;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 2px;
  color: #7d75ca;
}
.heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.quick-actions {
  display: flex;
  gap: 9px;
  flex-shrink: 0;
}
#identity {
  font-size: 12px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 25px 0;
}
.stat {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 20px 22px;
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  box-shadow: 0 3px 12px #303d6b03;
}
.stat strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 27px;
  letter-spacing: -0.7px;
}
.stat:nth-child(3) strong {
  color: #b96658;
}
.welcome-banner {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0 24px;
  padding: 19px 23px;
  border: 1px solid #e1defc;
  background: linear-gradient(105deg, #eeecff, #f8f7ff);
  border-radius: 16px;
}
.welcome-banner strong {
  font-size: 15px;
  color: #45416f;
}
.welcome-banner p {
  font-size: 12px;
  color: #7a7694;
  margin: 4px 0;
}
.welcome-banner button {
  flex-shrink: 0;
  color: var(--accent);
  border-color: #d9d4fc;
  background: #ffffffcc;
}
.welcome-banner{display:block}.welcome-banner summary{display:flex;align-items:center;justify-content:space-between;gap:14px;cursor:pointer;list-style:none}.welcome-banner summary::-webkit-details-marker{display:none}.welcome-banner summary>span:first-child{display:grid;gap:1px}.welcome-banner summary small{color:#817b99;font-size:10px;font-weight:500}.welcome-toggle{padding:5px 10px;border:1px solid #d6d1f4;border-radius:999px;background:#ffffffb8;color:#5a50cf;font-size:10px;font-weight:700}.welcome-banner[open] .welcome-toggle::before{content:'Hide';font-size:10px}.welcome-banner[open] .welcome-toggle{font-size:0}.welcome-content{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-top:14px;margin-top:12px;border-top:1px solid #dcd7f3}
nav {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  margin: 20px 0 24px;
  overflow-x: auto;
}
nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  white-space: nowrap;
  color: #7f8298;
  border-radius: 11px;
  padding: 10px 17px;
}
nav button > span:first-child {
  font-size: 17px;
}
nav button.selected {
  background: #e9e6ff;
  color: #5146d7;
  font-weight: 650;
}
.toolbar {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  margin-bottom: 22px;
}
.search-row {
  display: flex;
  gap: 10px;
}
input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #dfe2ed;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  min-width: 0;
}
input::placeholder {
  color: #a0a3b4;
}
select {
  padding-right: 29px;
}
textarea {
  resize: vertical;
}
.search-row input {
  flex: 1;
  background: #f9faff;
  border-color: #eceef5;
}
.search-row button {
  flex-shrink: 0;
}
.filter-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f1f6;
}
.filter-panel select {
  font-size: 12px;
  min-height: 42px;
}
.filter-panel button {
  font-size: 11px;
  padding: 8px 12px;
}
#filtersToggle {
  display: none;
}
.collection-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 22px 0 16px;
}
.collection-heading h2 {
  font-size: 18px;
}
.encrypted-label {
  color: #9593aa;
  font-size: 11px;
  white-space: nowrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 4px 18px #303d6b04;
  overflow-wrap: anywhere;
}
.card:hover {
  border-color: #d3d0ec;
  box-shadow: 0 8px 24px #4c4f6e08;
}
.record-icon {
  width: 40px;
  height: 40px;
  border: 1px solid #e7e3ff;
  background: #f4f2ff;
  color: #776dda;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-size: 20px;
}
.card h3 {
  font-size: 16px;
  margin: 13px 0 6px;
}
.tag {
  display: inline-block;
  border-radius: 7px;
  background: #f5f6fa;
  color: #818294;
  font-size: 10px;
  padding: 4px 8px;
}
.bill-amount {
  display: block;
  font-size: 25px;
  letter-spacing: -0.6px;
  margin-top: 14px;
}
.bill-amount small {
  font-size: 11px;
  font-weight: 400;
  color: #8c8b9f;
  letter-spacing: 0;
}
.card dl {
  display: grid;
  grid-template-columns: 85px minmax(0, 1fr);
  gap: 8px;
  font-size: 12px;
  margin: 16px 0;
}
.card dt {
  color: #9696aa;
}
.card dd {
  margin: 0;
  white-space: pre-wrap;
}
.card button {
  font-size: 11px;
  min-height: 38px;
  padding: 7px 10px;
  margin: 9px 4px 0 0;
}
.card details {
  border-top: 1px solid #efeff5;
  padding-top: 12px;
  margin-top: 15px;
}
.card summary {
  font-size: 12px;
  color: #7c7898;
  cursor: pointer;
}
.example-card {
  background: linear-gradient(180deg, #fff, #fcfbff);
}
.example-label {
  position: absolute;
  right: 19px;
  top: 20px;
  color: #8e82c1;
  background: #f1edf9;
  border-radius: 20px;
  font-size: 10px;
  padding: 4px 10px;
}
.password {
  display: block;
  font:
    12px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 12px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.footer-actions button,
.footer-actions .import {
  font-size: 12px;
}
.import {
  display: inline-flex;
  align-items: center;
}
.import input {
  display: none;
}
.panel {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
}
#gate {
  max-width: 610px;
  margin: 5vh auto;
  padding: 42px;
  box-shadow: 0 18px 60px #303d6b08;
}
#gate h1 {
  font-size: clamp(26px, 3.8vw, 36px);
}
#gate > p {
  color: #818198;
  margin: 15px 0 24px;
  font-size: 13px;
}
#unlockForm {
  margin-top: 24px;
}
#unlockForm label {
  margin: 16px 0;
}
#setupHint {
  font-size: 12px;
  color: #88859e;
  margin: 15px 0;
}
#message {
  font-size: 12px;
  white-space: pre-wrap;
  margin-top: 24px;
  color: #7a607f;
  padding: 10px 0;
}
#busyIndicator {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 22px;
  background: #282442;
  color: #fff;
  box-shadow: 0 4px 25px #0002;
  border-radius: 30px;
  font-size: 12px;
  z-index: 60;
}
.empty-state {
  text-align: center;
  padding: 45px 20px;
  background: #fff;
  border: 1px dashed #dedbeb;
  border-radius: 18px;
}
.empty-state > span {
  font-size: 36px;
  color: #b0a9df;
}
.empty-state p {
  font-size: 13px;
  color: #8c879e;
}
.empty-state button {
  margin-top: 16px;
}
.event {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
}
.event > span {
  flex: 1;
}
.event button {
  font-size: 11px;
  min-height: 36px;
}
.overdue {
  color: #b86565;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 18px;
  margin-top: 16px;
}
.day {
  min-height: 100px;
  border: 1px solid #eff0f6;
  border-radius: 9px;
  padding: 8px;
  overflow: hidden;
  font-size: 12px;
}
.day-name {
  text-align: center;
  font-size: 11px;
  color: #a3a0b1;
  padding: 8px;
}
.day.today {
  background: #f4f1ff;
  border-color: #c2b9f7;
}
.day.empty {
  background: #fafaff;
}
.day button {
  font-size: 10px;
  width: 100%;
  min-height: 32px;
  padding: 4px 6px;
  background: #f0edff;
  color: #7061ad;
  border: 0;
  text-align: left;
  overflow-wrap: anywhere;
  margin-top: 6px;
}
.day small {
  display: block;
  font-size: 9px;
  color: #9b8bbb;
}
dialog {
  width: min(760px, 94vw);
  max-height: 90dvh;
  border: 1px solid #e8e5f3;
  border-radius: 21px;
  padding: 25px;
  box-shadow: 0 35px 100px #25203933;
  color: var(--ink);
}
dialog::backdrop {
  background: #24203980;
  backdrop-filter: blur(4px);
}
dialog .heading {
  position: sticky;
  top: -25px;
  background: #fff;
  padding: 8px 0 16px;
  z-index: 2;
  border-bottom: 1px solid #f0edf7;
}
dialog .heading button {
  width: 40px;
  min-height: 40px;
  padding: 8px;
  font-size: 17px;
  border-radius: 50%;
  color: #9691a5;
}
dialog h2 {
  font-size: 21px;
}
.form-intro {
  margin: 16px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
}
.field-label,
dialog label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  color: #727183;
  position: relative;
  line-height: 1.9;
}
.field-label input,
.field-label select,
dialog label input,
dialog label select {
  margin-top: 7px;
  font-size: 13px;
  color: #39394e;
}
dialog details {
  margin: 24px 0;
  border-top: 1px solid #f0edf5;
  padding-top: 18px;
}
dialog summary {
  font-size: 14px;
  font-weight: 600;
  color: #626071;
  cursor: pointer;
  padding-bottom: 10px;
}
dialog summary span {
  font-size: 10px;
  font-weight: 400;
  margin-left: 8px;
  color: #b2abbf;
}
dialog .section-title {
  font-size: 13px;
  margin: 22px 0 15px;
  color: #817891;
}
dialog textarea {
  margin-top: 10px;
}
dialog p {
  font-size: 12px;
  color: #8c8499;
}
.form-save-status {
  margin: 18px 0 -10px;
  padding: 12px 14px;
  border: 1px solid #efc7cc;
  border-radius: 12px;
  background: #fff3f4;
  color: #a23d4a;
  font-weight: 650;
  line-height: 1.45;
}
.dialog-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  position: sticky;
  bottom: -25px;
  background: #fff;
  padding: 19px 0 8px;
  margin-top: 22px;
  border-top: 1px solid #f0edf5;
}
.help-dot {
  float: right;
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  min-height: 23px;
  font-size: 11px;
  padding: 0;
  border-radius: 50%;
  background: #f5f3ff;
  color: #9389bc;
  border-color: #e9e5f5;
  font-weight: 650;
  margin: 0 0 3px 7px;
}
.field-tooltip {
  position: fixed;
  z-index: 200;
  padding: 13px 16px;
  border-radius: 12px;
  background: #2e2844;
  color: #faf8ff;
  font-size: 12px;
  line-height: 1.85;
  box-shadow: 0 8px 30px #0003;
  pointer-events: none;
}
#docForm > label,
#docForm .form-grid,
#passForm label {
  margin-top: 15px;
}
#docForm > button {
  margin-top: 22px;
}
#groupForm {
  display: flex;
  gap: 12px;
  align-items: end;
  margin: 20px 0;
}
#groupForm label {
  flex: 1;
  font-size: 12px;
}
#groupForm input {
  margin-top: 7px;
}
#groupsList p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f0edf5;
  font-size: 13px;
}
#groupsList button {
  font-size: 11px;
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.9;
  font-size: 12px;
  margin: 23px 0;
}
.check input {
  width: 20px;
  min-height: 20px;
  accent-color: var(--accent);
}
#driveInfo {
  font-size: 12px;
  margin: 20px 0;
}
a {
  color: var(--accent);
}
.guide-block {
  padding: 20px 0;
  border-bottom: 1px solid #efedf5;
}
.guide-block p,
.guide-block li {
  font-size: 13px;
  color: #81798e;
}
.guide-intro {
  margin-top: 20px;
}
.guide-block ol {
  padding-left: 22px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-top: 15px;
  min-width: 380px;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #eeebf5;
  padding: 12px;
}
th {
  background: #f6f4fc;
  color: #857c98;
  font-size: 11px;
}
#guideSamples {
  margin-top: 22px;
}
#guideSamples[hidden] {
  display: none;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1440px) {
  main {
    padding-top: 45px;
  }
  .cards {
    gap: 20px;
  }
}
@media (max-width: 1050px) {
  .filter-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .filter-panel button {
    grid-column: span 3;
  }
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  header .privacy-badge {
    font-size: 10px;
  }
  .quick-actions {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  header {
    padding: 12px 18px;
    gap: 9px;
    flex-wrap: wrap;
    min-height: 65px;
  }
  header .brand {
    margin-right: auto;
    font-size: 18px;
  }
  header .privacy-badge {
    display: none;
  }
  header button {
    min-height: 38px;
    font-size: 11px;
    padding: 7px 9px;
  }
  main {
    padding: 24px 18px calc(140px + env(safe-area-inset-bottom));
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 25px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0;
  }
  .stat {
    padding: 16px 18px;
  }
  .stat strong {
    font-size: 25px;
  }
  .welcome-banner {
    padding: 17px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .welcome-banner p {
    line-height: 1.9;
  }
  .welcome-content {
    align-items: stretch;
    flex-direction: column;
  }
  .welcome-banner button {
    font-size: 12px;
  }
  nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 100;
    margin: 0;
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    background: #fff;
    border: 1px solid #e9e6f1;
    box-shadow: 0 -8px 28px #302a5a24;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
    overflow: visible;
  }
  nav button {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 7px 2px;
    font-size: 9px;
    white-space: normal;
    line-height: 1.5;
    min-height: 48px;
    text-align: center;
    color: #68677b;
  }
  nav button.selected {
    color: #4f46df;
    background: #ece9ff;
  }
  nav button > span:first-child {
    font-size: 19px;
  }
  #filtersToggle {
    display: block;
    font-size: 12px;
  }
  #refresh {
    font-size: 0;
    min-width: 42px;
    padding: 9px;
  }
  #refresh::after {
    content: "↻";
    font-size: 19px;
  }
  .filter-panel {
    display: none;
  }
  .filter-panel.expanded {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-panel button {
    grid-column: span 2;
  }
  .toolbar {
    padding: 12px;
  }
  .search-row {
    gap: 7px;
  }
  .search-row input {
    font-size: 12px;
  }
  .cards {
    gap: 13px;
  }
  .card {
    padding: 18px;
  }
  .collection-heading {
    margin-top: 19px;
  }
  .encrypted-label {
    font-size: 9px;
  }
  .form-grid {
    gap: 14px;
  }
  .day {
    min-height: 75px;
    padding: 5px;
  }
  .calendar-grid {
    padding: 8px;
    gap: 3px;
  }
  .day button {
    font-size: 9px;
    padding: 4px;
  }
  .footer-actions {
    gap: 8px;
  }
  #busyIndicator {
    bottom: 90px;
    max-width: 90vw;
    white-space: nowrap;
  }
}
@media (max-width: 500px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  dialog {
    padding: 20px;
    border-radius: 17px;
  }
  dialog .heading {
    top: -20px;
    flex-wrap: nowrap;
  }
  .dialog-actions {
    bottom: -20px;
  }
  .quick-actions {
    width: 100%;
  }
  .quick-actions button {
    flex: 1;
  }
  header #help {
    font-size: 0;
    min-width: 35px;
  }
  header #help::before {
    content: "?";
    font-size: 16px;
  }
  #gate {
    padding: 27px;
    margin: 3vh auto;
  }
  #gate h1 {
    font-size: 27px;
  }
  .event {
    gap: 9px;
    flex-wrap: wrap;
  }
  .event > span {
    flex-basis: 60%;
  }
  .encrypted-label {
    display: none;
  }
  .calendar-grid {
    gap: 2px;
    padding: 5px;
  }
  .day {
    padding: 3px;
    min-height: 65px;
    font-size: 10px;
  }
  .day-name {
    padding: 6px 2px;
    font-size: 9px;
  }
  .day button {
    font-size: 8px;
    line-height: 1.5;
    padding: 3px;
    min-height: 44px;
  }
  .day small {
    font-size: 8px;
  }
  #groupForm {
    align-items: stretch;
    flex-direction: column;
  }
  .footer-actions > * {
    flex: 1 1 40%;
  }
  .welcome-banner button {
    width: 100%;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 23px;
  }
}

/* Centered sign-in and unlock presentation */
#gate {
  position: relative;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
#gate > * {
  position: relative;
  z-index: 1;
}
#gate::before {
  margin: 0 auto 18px;
}
#gate::after {
  content: "◇";
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 54%;
  transform: translate(-50%, -50%);
  color: #665be6;
  opacity: .045;
  font-size: clamp(310px, 38vw, 470px);
  font-weight: 300;
  line-height: 1;
  pointer-events: none;
}
#gate .eyebrow,
#gate > p {
  text-align: center;
}
#login {
  display: block;
  width: min(100%, 460px);
  margin: 0 auto;
}
#unlockForm {
  width: min(100%, 460px);
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
#unlockForm button {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 500px) {
  #gate::after {
    top: 50%;
    font-size: 330px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.settings-organizers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.settings-organizers > section {
  padding: 20px;
  background: #fbfaff;
  border: 1px solid #ebe7f5;
  border-radius: 16px;
}
.organizer-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #ece8f4;
}
.organizer-row strong {
  display: block;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.organizer-row small {
  color: #a19aad;
  font-size: 10px;
}
.organizer-row button {
  font-size: 10px;
  padding: 6px 8px;
  min-height: 38px;
}
.inline-add {
  font-size: 10px;
  min-height: 32px;
  padding: 3px 8px;
  margin-top: 6px;
  background: #f6f3ff;
  color: #8a7eb0;
  border-style: dashed;
}
#organizerForm label,
#paymentForm label {
  display: block;
  margin: 18px 0;
  font-size: 12px;
}
#organizerError {
  color: #b3485d;
}
.filter-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
#paymentName {
  background: #f4f1ff;
  padding: 13px;
  border-radius: 10px;
}
#organizerDialog {
  max-width: 440px;
}
#paymentDialog {
  max-width: 490px;
}
@media (max-width: 760px) {
  .settings-organizers {
    grid-template-columns: 1fr;
  }
  .organizer-row {
    flex-wrap: wrap;
  }
  .filter-panel.expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.save-title {
  color: #4f46e5;
}

.records-title {
  color: #c58f06;
}

/* Append to the END of public/style.css. Existing config and HTML stay intact. */
#gate {
  width: 100%;
  max-width: 640px;
  margin: 4vh auto;
  padding: clamp(26px, 5vw, 48px);
  border: 1px solid #e6e3f3;
  border-radius: 28px;
  background: linear-gradient(145deg, #ffffff 68%, #f5f2ff);
  box-shadow: 0 20px 65px #40347112;
}
#gate::before {
  content: "◇";
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 24px;
  border-radius: 18px;
  background: #eeebff;
  color: #574ee7;
  font-size: 36px;
  line-height: 1;
}
#gate .eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  line-height: 1.9;
}
#gate h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.45;
  margin: 18px 0 8px;
}
#gate .save-title {
  color: #4f46e5;
  margin-bottom: 0;
}
#gate .records-title {
  color: #c58f06;
  margin-top: 0;
}
#gate > p {
  font-size: 14px;
  line-height: 1.9;
  margin: 18px 0 28px;
  color: #77758d;
}
#unlockForm {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #e9e5f3;
}
#unlockForm label {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 24px;
  color: #454259;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.9;
}
#unlockForm input {
  display: block;
  margin: 0;
  min-height: 56px;
  padding: 14px 16px;
  border: 1px solid #dad6ec;
  border-radius: 14px;
  background: #fff;
  font-size: 16px;
  line-height: 1.5;
}
#unlockForm input:focus-visible {
  outline: 3px solid #d6cfff;
  outline-offset: 3px;
  border-color: #8878e6;
}
#setupHint {
  margin: 4px 0 24px;
  font-size: 13px;
  line-height: 1.9;
  color: #827c97;
}
#login,
#unlockForm button {
  width: 100%;
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 14px;
  background: #574ee7;
  color: #fff;
  font-size: 15px;
  font-weight: 650;
  box-shadow: 0 8px 22px #574ee724;
}
#login:hover,
#unlockForm button:hover {
  background: #463dd0;
}
@media (max-width: 500px) {
  #gate {
    margin: 14px auto;
    padding: 28px 24px;
    border-radius: 23px;
  }
  #gate::before {
    width: 48px;
    height: 48px;
    font-size: 30px;
    margin-bottom: 20px;
  }
  #gate h1 {
    font-size: 30px;
  }
  #unlockForm {
    margin-top: 26px;
    padding-top: 24px;
  }
}

/* Compact Login / Vault Unlock Card */
#gate {
  max-width: 560px;
  margin: 5vh auto;
  padding: 36px 40px;
  border-radius: 24px;
}

#gate::before {
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  border-radius: 15px;
  font-size: 30px;
}

#gate .eyebrow {
  font-size: 9px;
}

#gate h1 {
  font-size: clamp(27px, 3.2vw, 35px);
  line-height: 1.35;
  margin: 14px 0 8px;
}

#gate > p {
  margin: 14px 0 22px;
  font-size: 13px;
}

#unlockForm {
  margin-top: 22px;
  padding-top: 22px;
}

#unlockForm label {
  gap: 9px;
  margin-bottom: 18px;
  font-size: 13px;
}

#unlockForm input {
  min-height: 50px;
  padding: 11px 14px;
}

#setupHint {
  margin: 2px 0 18px;
}

#login,
#unlockForm button {
  min-height: 50px;
  padding: 11px 18px;
}

/* Mobile */
@media (max-width: 500px) {
  #gate {
    margin: 12px auto;
    padding: 26px 22px;
    border-radius: 20px;
  }

  #gate h1 {
    font-size: 28px;
  }
}
