* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--bg-0);
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% -10%, rgba(33, 224, 232, 0.1), transparent 26%),
    radial-gradient(circle at 18% 0%, rgba(24, 119, 255, 0.1), transparent 30%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0));
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
[hidden] {
  display: none !important;
}
::selection {
  background: rgba(33, 224, 232, 0.25);
  color: #fff;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  margin: 0 0 5px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.7rem;
}
.error-text {
  color: #ff9aac;
  margin: 0;
}
.ambient {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  z-index: 0;
}
.ambient-one {
  width: 300px;
  height: 300px;
  background: var(--blue);
  top: 8%;
  left: -110px;
}
.ambient-two {
  width: 280px;
  height: 280px;
  background: var(--cyan);
  right: -120px;
  top: 46%;
}
.toast {
  position: fixed;
  z-index: 100;
  top: 18px;
  right: 18px;
  max-width: min(430px, calc(100vw - 36px));
  padding: 14px 17px;
  border: 1px solid var(--line-strong);
  background: rgba(10, 22, 35, 0.96);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: 0.2s;
  backdrop-filter: blur(18px);
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast.success {
  border-color: rgba(61, 213, 155, 0.6);
  color: #d7fff0;
  background: rgba(12, 32, 27, 0.96);
}
.toast.error {
  border-color: rgba(255, 107, 130, 0.7);
  color: #ffdce3;
  background: rgba(35, 17, 20, 0.96);
}
.toast.warning {
  border-color: rgba(255, 196, 92, 0.7);
  color: #ffefc9;
  background: rgba(35, 27, 12, 0.95);
}
.toast.info {
  border-color: rgba(33, 224, 232, 0.6);
  color: #dffcff;
  background: rgba(8, 25, 34, 0.96);
}

/* Login */
.login-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.login-layout {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  border: 1px solid rgba(55, 113, 153, 0.4);
  background: rgba(5, 12, 20, 0.78);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(20px);
}
.login-brand-panel {
  position: relative;
  min-height: 650px;
  padding: 54px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background:
    radial-gradient(circle at 58% 30%, rgba(33, 224, 232, 0.16), transparent 18%),
    radial-gradient(circle at 48% 28%, rgba(24, 119, 255, 0.2), transparent 34%),
    linear-gradient(145deg, #06111d, #071d2e 60%, #07131f);
}
.login-brand-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 44%, rgba(2, 8, 14, 0.65) 100%);
  pointer-events: none;
}
.brand-orbit {
  position: absolute;
  left: 50%;
  top: 39%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(33, 224, 232, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(33, 224, 232, 0.08);
}
.brand-orbit::before,
.brand-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(24, 119, 255, 0.13);
}
.brand-orbit::before {
  inset: 48px;
}
.brand-orbit::after {
  inset: 100px;
}
.login-hero-logo {
  position: absolute;
  z-index: 1;
  left: 50%;
  top: 37%;
  width: 285px;
  height: 285px;
  transform: translate(-50%, -50%);
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.28));
}
.login-brand-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}
.login-brand-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.login-brand-copy > p:last-child {
  margin: 18px 0 0;
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 540px;
}
.security-strip {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.security-strip span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border: 1px solid rgba(54, 107, 145, 0.42);
  border-radius: 999px;
  background: rgba(5, 14, 23, 0.62);
  color: #bdd0df;
  font-size: 0.76rem;
  font-weight: 800;
}
.security-strip i,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(47, 224, 189, 0.9);
}
.login-card {
  padding: 52px 46px;
  display: grid;
  align-content: center;
  gap: 18px;
  background: linear-gradient(180deg, rgba(10, 22, 35, 0.94), rgba(6, 14, 23, 0.98));
}
.login-card-head {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 5px;
}
.login-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(38, 99, 139, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.login-card h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: -0.025em;
}
.login-card p {
  line-height: 1.55;
}
.login-card-head .muted {
  margin: 0.35rem 0 0;
  max-width: 390px;
}
.privacy-note {
  margin: 0;
  color: #70879a;
  font-size: 0.77rem;
  text-align: center;
}
.login-help {
  border: 1px solid rgba(42, 86, 117, 0.55);
  background: rgba(10, 27, 41, 0.58);
  border-radius: 13px;
  padding: 11px 13px;
  color: var(--text-soft);
}
.login-help summary {
  cursor: pointer;
  font-weight: 850;
  color: #d8e7f4;
}
.login-help p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Inputs */
label {
  display: grid;
  gap: 8px;
  color: #c9d8e5;
  font-size: 0.9rem;
  font-weight: 800;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #234661;
  background: #06131f;
  color: var(--text);
  border-radius: 13px;
  padding: 13px 14px;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
}
input::placeholder,
textarea::placeholder {
  color: #536c81;
}
input:hover,
select:hover,
textarea:hover {
  border-color: #2d5877;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--cyan);
  box-shadow: var(--focus);
  background: #071826;
}
textarea {
  resize: vertical;
  line-height: 1.55;
}
.totp-input {
  letter-spacing: 0.3em;
  font-weight: 900;
  font-size: 1.18rem;
  font-variant-numeric: tabular-nums;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.check-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--cyan);
}

/* Buttons */
.primary,
.ghost,
.danger,
.chip,
.nav-btn,
.icon-btn {
  border: 0;
  border-radius: 13px;
  min-height: 44px;
  transition:
    transform 0.15s,
    filter 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #001317;
  background: linear-gradient(135deg, var(--cyan), var(--blue-2));
  font-weight: 950;
  padding: 11px 16px;
  box-shadow: 0 8px 28px rgba(26, 156, 220, 0.16);
}
.primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.primary.big {
  min-height: 54px;
  font-size: 0.98rem;
}
.ghost {
  color: #d9e7f2;
  background: #102235;
  padding: 10px 14px;
  border: 1px solid #23455f;
}
.ghost:hover {
  border-color: #39749c;
  background: #142a3f;
}
.danger {
  color: #ffd8df;
  background: #361820;
  padding: 10px 14px;
  border: 1px solid #713242;
}
.danger:hover {
  background: #431b27;
  border-color: #944155;
}
.icon-btn {
  width: 44px;
  background: #10283a;
  color: #eaf5ff;
  font-size: 1.55rem;
  border: 1px solid #244964;
}
.icon-btn:hover {
  background: #15344a;
}

/* App shell */
.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid rgba(38, 80, 111, 0.52);
  background: linear-gradient(180deg, rgba(6, 17, 27, 0.97), rgba(4, 12, 20, 0.99));
  padding: 20px 15px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  box-shadow: 14px 0 40px rgba(0, 0, 0, 0.1);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 3px;
}
.brand-logo-wrap {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  padding: 2px;
  background: linear-gradient(135deg, rgba(33, 224, 232, 0.35), rgba(24, 119, 255, 0.24));
  border: 1px solid rgba(46, 130, 179, 0.5);
}
.brand img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.brand div:last-child {
  display: grid;
  gap: 1px;
}
.brand strong {
  font-size: 1rem;
  letter-spacing: 0.01em;
}
.brand span {
  font-size: 0.62rem;
  color: #63829b;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  padding: 11px 13px;
  background: transparent;
  color: #8da8bd;
  font-weight: 850;
  border: 1px solid transparent;
}
.nav-btn .nav-icon {
  width: 26px;
  text-align: center;
  font-size: 1.02rem;
  color: #6fa7ce;
}
.nav-btn.active,
.nav-btn:hover {
  background: linear-gradient(90deg, rgba(16, 52, 78, 0.82), rgba(11, 35, 54, 0.6));
  color: #fff;
  border-color: rgba(38, 87, 121, 0.55);
}
.nav-btn.active .nav-icon {
  color: var(--cyan);
}
.sidebar-bottom {
  margin-top: auto;
  display: grid;
  gap: 11px;
}
.session-state {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid rgba(34, 72, 100, 0.52);
  border-radius: 14px;
  background: rgba(9, 25, 38, 0.65);
}
.session-state div {
  min-width: 0;
  display: grid;
}
.session-state small {
  color: #6f8ba1;
  font-size: 0.69rem;
}
.session-state strong {
  color: #c6d7e4;
  font-size: 0.73rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.main {
  padding: 30px 34px 64px;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 26px;
}
.topbar h1 {
  margin: 0;
  font-size: 2.15rem;
  letter-spacing: -0.035em;
}

/* Dashboard and common panels */
.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.metric,
.panel {
  border: 1px solid rgba(30, 70, 99, 0.74);
  background: linear-gradient(180deg, rgba(11, 26, 40, 0.92), rgba(7, 18, 29, 0.94));
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.metric {
  position: relative;
  overflow: hidden;
  padding: 20px;
}
.metric::after {
  content: "";
  position: absolute;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  right: -35px;
  top: -35px;
  background: radial-gradient(circle, rgba(33, 224, 232, 0.16), transparent 68%);
}
.metric strong {
  display: block;
  font-size: 2.15rem;
  margin-top: 6px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.metric span {
  color: var(--muted);
  font-weight: 700;
}
.panel {
  padding: 18px 20px 20px;
  margin-top: 18px;
  border-radius: 18px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-head h2,
.panel h2 {
  margin: 0;
  letter-spacing: -0.02em;
}
.panel-head .eyebrow {
  margin-bottom: 4px;
}
.panel-head .primary {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(33, 224, 232, 0.12);
}
.alert-list,
.client-list,
.timeline {
  display: grid;
  gap: 10px;
}
.alert-row,
.client-row,
.timeline-card {
  border: 1px solid #18364f;
  background: linear-gradient(180deg, #0a1927, #091621);
  border-radius: 15px;
  padding: 14px;
}
.alert-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.alert-row:hover,
.client-row:hover {
  border-color: #2d6d99;
  transform: translateY(-1px);
}
.alert-row.due {
  border-color: #743544;
}
.alert-row.soon {
  border-color: #6c572a;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 9px;
  background: #143149;
  color: #c5d9e8;
  font-size: 0.74rem;
  font-weight: 900;
  white-space: nowrap;
}
.badge.active {
  background: #113b30;
  color: #91f0d0;
}
.badge.paused {
  background: #443817;
  color: #ffe4a0;
}
.badge.completed {
  background: #243043;
  color: #b9c7d7;
}
.badge.due {
  background: #461c25;
  color: #ffbac6;
}
.badge.soon {
  background: #463a18;
  color: #ffe19a;
}
.badge.pending {
  background: #4c2f1a;
  color: #ffd7a0;
}
.badge.overdue {
  background: #4a1d2a;
  color: #ffc2d1;
}
.badge.up_to_date {
  background: #113b30;
  color: #9ef4d9;
}
.pending-billing-summary {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 170, 92, 0.52);
  background: rgba(62, 37, 15, 0.58);
  color: #ffe2b4;
  border-radius: 12px;
  font-size: 0.82rem;
  font-weight: 800;
}
.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.toolbar input {
  max-width: 430px;
}
.toolbar select {
  width: auto;
}
.client-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr) auto;
  gap: 14px;
  align-items: center;
  cursor: pointer;
}
.client-row h3 {
  margin: 0 0 5px;
}
.client-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}
.money {
  text-align: right;
  font-weight: 900;
}
.empty {
  padding: 38px 12px;
  text-align: center;
  color: var(--muted);
}

/* Client detail */
.detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.detail-head h2 {
  font-size: 1.9rem;
  margin: 0;
}
.detail-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.detail-shell {
  padding-bottom: 20px;
}
.detail-summary {
  min-width: 0;
}
.detail-action-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 16px;
}
.action-pill {
  width: 100%;
  justify-content: center;
  min-height: 52px;
  font-weight: 900;
}
.span-2 {
  grid-column: span 2;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 17px;
}
.info {
  padding: 14px;
  background: rgba(8, 24, 37, 0.82);
  border: 1px solid #17354d;
  border-radius: 14px;
  min-height: 86px;
}
.info small {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
}
.info strong {
  overflow-wrap: anywhere;
}
.notes-box {
  white-space: pre-wrap;
  line-height: 1.6;
  color: #d6e3ed;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.service-card {
  border: 1px solid #1b3b56;
  background: #091824;
  border-radius: 15px;
  padding: 14px;
}
.service-card h3 {
  margin: 5px 0;
}
.service-meta {
  color: var(--muted);
  font-size: 0.88rem;
  display: grid;
  gap: 4px;
}
.service-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.timeline-card summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  font-weight: 900;
}
.meeting-answers {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.answer {
  padding: 11px 12px;
  background: #07141f;
  border: 1px solid rgba(34, 72, 102, 0.45);
  border-radius: 11px;
}
.answer small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}
.ink-preview {
  width: 100%;
  height: 220px;
  background: #fff;
  border-radius: 12px;
  margin-top: 12px;
  display: block;
}
.logic-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(2, 6, 12, 0.7);
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(5px);
}
.logic-modal-card {
  width: min(520px, 100%);
  background: linear-gradient(180deg, #0a1a28, #07131e);
  border: 1px solid rgba(60, 122, 160, 0.8);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.logic-modal-card.warning {
  border-color: rgba(255, 196, 92, 0.7);
}
.logic-modal-card.danger {
  border-color: rgba(255, 107, 130, 0.7);
}
.logic-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.logic-modal-header h2 {
  margin: 6px 0 0;
  font-size: 1.45rem;
}
.logic-modal-description {
  margin: 0 0 20px;
  color: var(--text-soft);
  line-height: 1.6;
}
.logic-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.body.modal-open {
  overflow: hidden;
}
.billing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}
.billing-grid .info {
  min-height: 110px;
  background: linear-gradient(180deg, rgba(11, 25, 38, 0.98), rgba(9, 18, 28, 0.98));
  border: 1px solid rgba(43, 90, 120, 0.72);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.billing-grid .info small {
  font-size: 0.76rem;
  letter-spacing: 0;
  color: #8ca4b6;
  margin-bottom: 8px;
  display: block;
  font-weight: 700;
}
.billing-grid .info strong {
  display: block;
  font-size: 1.03rem;
  letter-spacing: -0.02em;
  color: #edf7ff;
  line-height: 1.4;
  min-height: 26px;
}
.billing-grid .badge {
  margin-top: 4px;
  align-self: flex-start;
}
.alert-block {
  margin-top: 16px;
}
.payment-list {
  display: grid;
  gap: 12px;
}
.payment-card {
  padding: 12px 14px;
  border: 1px solid rgba(32, 68, 97, 0.75);
  border-radius: 14px;
  background: rgba(7, 18, 28, 0.9);
}
.payment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.payment-head strong {
  display: block;
}
.payment-head small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.payment-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

/* Dialogs */
.dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  width: min(800px, calc(100vw - 24px));
  max-height: 94vh;
}
.dialog::backdrop {
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(7px);
}
.dialog-card {
  background: linear-gradient(180deg, #0a1a28, #07131e);
  border: 1px solid #28506b;
  border-radius: 22px;
  padding: 21px;
  max-height: 94vh;
  overflow: auto;
  box-shadow: var(--shadow);
}
.small-dialog {
  width: min(520px, 100%);
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.dialog-head h2 {
  margin: 0;
}
.form-grid {
  display: grid;
  gap: 13px;
}
.form-grid.two {
  grid-template-columns: 1fr 1fr;
}
.span-2 {
  grid-column: 1/-1;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
.dialog-card .dialog-head .eyebrow {
  margin-bottom: 6px;
}
.dialog-card label {
  padding: 2px 0;
}
.dialog-card label small {
  display: block;
  color: var(--muted);
}
.dialog-card .form-grid.two label {
  min-height: 94px;
}
.dialog-card input,
.dialog-card select,
.dialog-card textarea {
  border-radius: 12px;
  padding: 12px 13px;
  background: rgba(7, 19, 28, 0.9);
}
.dialog-card .dialog-actions .primary,
.dialog-card .dialog-actions .ghost {
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 12px;
}

/* Tablet meeting form */
.meeting-shell {
  display: grid;
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}
.meeting-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 11px 0;
  background: linear-gradient(var(--bg-1) 72%, transparent);
}
.meeting-progress {
  height: 8px;
  border-radius: 99px;
  background: #10263a;
  overflow: hidden;
  flex: 1;
  border: 1px solid #193b55;
}
.meeting-progress > div {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--teal));
  width: 0;
  transition: 0.2s;
}
.question-card {
  border: 1px solid #1a3c57;
  background: linear-gradient(180deg, #0a1927, #081722);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.question-card h3 {
  margin: 0 0 7px;
  font-size: 1.17rem;
}
.question-card p {
  margin: 0 0 15px;
  color: var(--muted);
  line-height: 1.55;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 12px 15px;
  background: #10283a;
  color: #dceaf4;
  border: 1px solid #24506c;
  font-weight: 850;
  min-height: 52px;
}
.chip:hover {
  border-color: #3b799f;
  background: #153249;
}
.chip.selected {
  background: linear-gradient(135deg, #0b5060, #0d4163);
  border-color: var(--cyan);
  color: #fff;
  box-shadow: 0 0 0 2px rgba(33, 224, 232, 0.12);
}
.meeting-textarea {
  min-height: 160px;
}
.ink-wrap {
  background: #eaf1f4;
  border-radius: 15px;
  padding: 8px;
  border: 1px solid #fff;
}
.ink-canvas {
  width: 100%;
  height: 420px;
  display: block;
  background: #fff;
  border-radius: 10px;
  touch-action: none;
}
.ink-toolbar {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.save-bar {
  position: sticky;
  bottom: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px;
  border: 1px solid #285474;
  background: rgba(7, 20, 31, 0.94);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.discovery-shell {
  max-width: 1200px;
}
.discovery-hero {
  padding: 24px 26px;
}
.discovery-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border: 1px solid #1a3c57;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(9, 24, 35, 0.88), rgba(8, 17, 25, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.12);
}
.discovery-note,
.discovery-callout,
.discovery-visual {
  border: 1px solid rgba(33, 224, 232, 0.2);
  background: rgba(12, 28, 39, 0.8);
  border-radius: 16px;
  padding: 16px 18px;
}
.discovery-callout strong,
.discovery-visual strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
}
.discovery-note,
.discovery-callout p,
.discovery-visual,
.ink-header p {
  color: var(--muted);
  line-height: 1.6;
}
.visual-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.visual-flow span {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(24, 119, 255, 0.12);
  border: 1px solid rgba(24, 119, 255, 0.26);
  color: var(--text-soft);
}
.discovery-fields {
  display: grid;
  gap: 16px;
}
.field-group {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(98, 140, 167, 0.35);
  background: rgba(6, 17, 26, 0.78);
  border-radius: 18px;
  padding: 16px;
}
.field-label {
  font-weight: 800;
  color: var(--text);
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 14px;
}
.field {
  display: grid;
  gap: 9px;
}
.field > span {
  font-weight: 700;
  color: var(--text);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(98, 140, 167, 0.4);
  border-radius: 12px;
  background: rgba(7, 18, 28, 0.9);
  color: var(--text);
  padding: 11px 12px;
}
.field textarea {
  min-height: 120px;
  resize: vertical;
}
.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice-btn {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(96, 146, 177, 0.4);
  background: rgba(16, 32, 42, 0.8);
  color: var(--text-soft);
  transition: 0.15s ease;
}
.choice-btn:hover {
  border-color: rgba(33, 224, 232, 0.7);
}
.choice-btn.selected {
  background: linear-gradient(135deg, rgba(13, 95, 112, 0.92), rgba(13, 48, 78, 0.9));
  border-color: var(--cyan);
  color: #fff;
}
.ink-block {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(98, 140, 167, 0.35);
  border-radius: 18px;
  background: rgba(6, 17, 26, 0.7);
}
.ink-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.ink-header h3 {
  margin: 0;
}
.ink-header p {
  margin: 0;
}
@media (max-width: 720px) {
  .field-grid {
    grid-template-columns: 1fr;
  }
  .ink-header {
    display: grid;
  }
}

/* Aviso mostrado únicamente cuando la interfaz se abre con VS Code Live Server. */
.dev-notice {
  margin-top: 14px;
  padding: 13px 14px;
  border: 1px solid rgba(33, 224, 232, 0.28);
  border-radius: 14px;
  background: rgba(33, 224, 232, 0.07);
  color: var(--text);
  line-height: 1.5;
}
.dev-notice strong,
.dev-notice span {
  display: block;
}
.dev-notice strong {
  color: var(--cyan);
  margin-bottom: 4px;
}
.dev-notice code {
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 6px;
}
