:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #e8f1ff;
  --primary-tint: #f3f8ff;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f1f5f9;
  --ink: #07133d;
  --text: #111827;
  --muted: #64748b;
  --soft: #94a3b8;
  --line: rgba(148, 163, 184, .16);
  --green: #059669;
  --green-bg: #e9f9f2;
  --amber: #d97706;
  --amber-bg: #fff4dd;
  --purple: #7c3aed;
  --purple-bg: #f4efff;
  --teal: #0f9f8f;
  --teal-bg: #e9fbf7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, .052), 0 2px 8px rgba(15, 23, 42, .02);
  --shadow-soft: 0 8px 22px rgba(15, 23, 42, .04);
  --shadow-blue: 0 16px 34px rgba(37, 99, 235, .16);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #eef3fb;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 8% 8%, rgba(151, 137, 236, .13), transparent 31%),
    radial-gradient(circle at 92% 86%, rgba(125, 211, 252, .11), transparent 30%),
    linear-gradient(135deg, #f4f2ff 0%, #fbfdff 48%, #eef7ff 100%);
}

a,
button {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: 0;
  cursor: pointer;
  background: none;
}

.preview-stage {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 9px 0;
}

.app-shell {
  position: relative;
  isolation: isolate;
  width: min(390px, calc(100vw - 18px));
  height: min(826px, calc(100vh - 18px));
  min-height: 760px;
  overflow: hidden;
  padding: 24px 20px 18px;
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 38px;
  background: rgba(255, 255, 255, .91);
  box-shadow: 0 30px 88px rgba(31, 54, 110, .12), inset 0 0 0 1px rgba(255, 255, 255, .72);
}

.ambient-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 54% 2%, rgba(255, 255, 255, .98), transparent 30%),
    radial-gradient(circle at 0% 62%, rgba(96, 165, 250, .045), transparent 35%),
    radial-gradient(circle at 100% 82%, rgba(45, 212, 191, .052), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(252, 254, 255, .98));
}

.content-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 0 108px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.content-scroll::-webkit-scrollbar {
  display: none;
}

.top-bar {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 11px;
  padding-top: 2px;
}

.chat-shell .content-scroll {
  padding-bottom: 88px;
}

.chat-top-bar {
  position: sticky;
  top: 0;
  z-index: 4;
  margin: -6px -4px 0;
  padding: 6px 4px 11px;
  border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .78));
  backdrop-filter: blur(14px);
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.chat-person .top-copy strong {
  margin-top: 3px;
  font-size: 17px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.028em;
}

.chat-person .top-copy span {
  color: #72809a;
  font-size: 10px;
  letter-spacing: .08em;
}

.icon-button,
.header-action {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 19px;
  color: var(--primary);
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(37, 99, 235, .1);
  box-shadow: var(--shadow-soft);
}

.icon-button svg,
.header-action svg,
.nav-icon svg,
.small-icon svg,
.chip svg,
.search-card svg,
.send-button svg,
.fab svg {
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button svg,
.header-action svg {
  width: 22px;
  height: 22px;
}

.top-copy {
  min-width: 0;
}

.top-copy span {
  display: block;
  color: #7d8799;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.top-copy strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: -.042em;
}

.screen-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0 0;
}

.screen-header h1 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: .98;
  font-weight: 650;
  letter-spacing: -.045em;
}

.screen-header p {
  margin: 9px 0 0;
  color: #5f7094;
  font-size: 14.5px;
  line-height: 1.42;
  font-weight: 400;
  letter-spacing: -.01em;
}

.section {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 9px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -.036em;
}

.section-heading span,
.section-heading a {
  color: var(--primary);
  font-size: 12.5px;
  line-height: 1;
  font-weight: 650;
}

.search-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  margin-top: 20px;
  padding: 0 19px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, .13);
  background: rgba(241, 245, 249, .74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  color: #7d89a1;
}

.search-card svg {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
}

.search-card span {
  color: #8793a9;
  font-size: 15.5px;
  line-height: 1;
  font-weight: 400;
}

.pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 1px;
  scrollbar-width: none;
}

.pill-row::-webkit-scrollbar {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, .14);
  background: rgba(255, 255, 255, .82);
  color: #64748b;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .025);
  font-size: 12.5px;
  font-weight: 560;
}

.chip.active {
  color: var(--primary);
  background: var(--primary-soft);
  border-color: rgba(37, 99, 235, .14);
}

.chip svg {
  width: 17px;
  height: 17px;
}

.card {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, .13);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-card);
}

.list {
  display: grid;
  gap: 10px;
}

.chat-row,
.member-row,
.setting-row,
.contact-row,
.schedule-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--shadow-card);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 720;
  letter-spacing: -.01em;
  background: linear-gradient(145deg, #93c5fd, #2563eb);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 16px rgba(15, 23, 42, .08);
}

.avatar.mini {
  width: 38px;
  height: 38px;
  border-radius: 15px;
  font-size: 11.5px;
  font-weight: 700;
}

.avatar.soft-blue {
  color: var(--primary);
  background: #edf5ff;
}

.avatar.soft-green {
  color: var(--green);
  background: var(--green-bg);
}

.avatar.soft-purple {
  color: var(--purple);
  background: var(--purple-bg);
}

.avatar.soft-amber {
  color: var(--amber);
  background: var(--amber-bg);
}

.avatar.teal {
  background: linear-gradient(145deg, #8ae5df, #0f9f8f);
}

.avatar.purple {
  background: linear-gradient(145deg, #b59cff, #7c3aed);
}

.avatar.slate {
  background: linear-gradient(145deg, #a8b5c8, #64748b);
}

.avatar.green {
  background: linear-gradient(145deg, #7ee8bd, #059669);
}

.avatar svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.row-copy,
.card-copy {
  min-width: 0;
  flex: 1;
}

.row-copy strong,
.card-copy h3 {
  display: block;
  margin: 0;
  color: #101827;
  font-size: 15.5px;
  line-height: 1.18;
  font-weight: 630;
  letter-spacing: -.023em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-copy span,
.row-copy p,
.card-copy p {
  display: block;
  margin: 6px 0 0;
  color: #6b7890;
  font-size: 12.7px;
  line-height: 1.32;
  font-weight: 400;
  letter-spacing: -.004em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.meta {
  display: grid;
  justify-items: end;
  gap: 8px;
  color: #7a8699;
  font-size: 11.8px;
  font-weight: 480;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  min-width: 24px;
  padding: 0 8px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 7px 14px rgba(37, 99, 235, .18);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11.4px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.status-pill.green {
  color: var(--green);
  background: var(--green-bg);
}

.status-pill.blue {
  color: var(--primary);
  background: var(--primary-soft);
}

.status-pill.amber {
  color: var(--amber);
  background: var(--amber-bg);
}

.status-pill.purple {
  color: var(--purple);
  background: var(--purple-bg);
}

.status-pill.danger {
  color: var(--danger);
  background: var(--danger-bg);
}

.hero-card {
  margin-top: 18px;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(37, 99, 235, .11);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-card);
}

.hero-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -.04em;
}

.hero-card p {
  margin: 8px 0 0;
  color: #657491;
  font-size: 13px;
  line-height: 1.45;
}

.settings-profile-card {
  display: grid;
  justify-items: center;
  margin-top: 17px;
  padding: 20px 16px 18px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 27px;
  font-size: 18px;
}

.settings-profile-card h2 {
  margin: 13px 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.05;
  font-weight: 650;
  letter-spacing: -.04em;
}

.settings-profile-card p {
  margin: 0;
  color: #66738d;
  font-size: 13px;
  line-height: 1.35;
}

.profile-meta-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.quick-action {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 86px;
  padding: 12px 8px 11px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .12);
  background: #ffffff;
  box-shadow: var(--shadow-card);
  color: var(--ink);
}

.quick-action .avatar {
  width: 38px;
  height: 38px;
  border-radius: 15px;
}

.quick-action strong {
  color: #24304a;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 620;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.stats-row article {
  min-height: 58px;
  padding: 10px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, .84);
}

.stats-row strong {
  display: block;
  color: var(--primary);
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  font-weight: 650;
}

.stats-row span {
  display: block;
  margin-top: 6px;
  color: #76839a;
  font-size: 11.3px;
  line-height: 1.1;
}

.message-stack {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.chat-date {
  justify-self: center;
  margin: 4px 0 8px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #77839a;
  background: rgba(241, 245, 249, .9);
  border: 1px solid rgba(148, 163, 184, .12);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
}

.message {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.44;
  font-weight: 430;
  letter-spacing: -.012em;
  box-shadow: 0 5px 13px rgba(15, 23, 42, .035);
}

.message.received {
  justify-self: start;
  color: #172033;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .1);
  border-bottom-left-radius: 8px;
}

.message.sent {
  justify-self: end;
  color: #ffffff;
  background: #2563eb;
  border-bottom-right-radius: 8px;
}

.shift-message-card {
  justify-self: start;
  width: min(100%, 312px);
  padding: 13px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, .12);
  box-shadow: var(--shadow-card);
}

.shift-message-card.assigned {
  border-color: rgba(5, 150, 105, .14);
}

.shift-card-top,
.shift-card-actions,
.shift-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shift-card-top {
  justify-content: space-between;
}

.shift-code {
  color: #8490a7;
  font-size: 11px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: .04em;
}

.shift-message-card h2 {
  margin: 11px 0 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.06;
  font-weight: 650;
  letter-spacing: -.035em;
}

.shift-message-card p {
  margin: 0;
  color: #66738d;
  font-size: 12.5px;
  line-height: 1.35;
}

.shift-time-strip {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 8px;
  margin-top: 12px;
  padding: 10px;
  border-radius: 17px;
  background: #f8fbff;
  border: 1px solid rgba(37, 99, 235, .1);
}

.shift-time-strip.with-duration {
  grid-template-columns: 1.18fr .72fr auto;
  align-items: center;
}

.shift-time-strip span {
  display: block;
  color: #858fa3;
  font-size: 10px;
  line-height: 1;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.shift-time-strip strong {
  display: block;
  margin-top: 5px;
  color: #111827;
  font-size: 13.5px;
  line-height: 1.1;
  font-weight: 650;
}

.shift-time-strip em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #155fdd;
  background: linear-gradient(180deg, rgba(232, 241, 255, .96), rgba(244, 248, 255, .92));
  border: 1px solid rgba(37, 99, 235, .15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
  font-style: normal;
  font-size: 11.7px;
  line-height: 1;
  font-weight: 650;
  white-space: nowrap;
}

.shift-card-meta {
  flex-wrap: nowrap;
  margin-top: 10px;
  color: #68758f;
  font-size: 11.2px;
  line-height: 1;
  font-weight: 560;
}

.shift-card-meta span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f7f9fc;
  border: 1px solid rgba(148, 163, 184, .1);
}

.shift-card-meta .meta-chip,
.settings-shift-meta .meta-chip {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.shift-card-meta .duration,
.settings-shift-meta .duration,
.premium-meta-row .duration {
  color: #155fdd;
  background: linear-gradient(180deg, rgba(232, 241, 255, .96), rgba(244, 248, 255, .92));
  border-color: rgba(37, 99, 235, .15);
}

.premium-meta-row .duration.live {
  color: #059669;
  background: linear-gradient(180deg, rgba(236, 253, 245, .96), rgba(209, 250, 229, .92));
  border-color: rgba(16, 185, 129, .2);
  animation: badge-pulse 2.5s infinite ease-in-out;
}

@keyframes badge-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.92; transform: scale(0.98); }
}

.shift-card-meta .break,
.settings-shift-meta .break {
  color: #a45d00;
  background: linear-gradient(180deg, rgba(255, 247, 228, .96), rgba(255, 251, 242, .92));
  border-color: rgba(245, 158, 11, .18);
}

.shift-card-meta .manager,
.settings-shift-meta .manager {
  color: #5b4fcf;
  background: linear-gradient(180deg, rgba(244, 240, 255, .97), rgba(249, 247, 255, .92));
  border-color: rgba(124, 58, 237, .14);
}

.shift-card-meta .ai,
.settings-shift-meta .ai {
  color: #07807a;
  background: linear-gradient(180deg, rgba(232, 253, 249, .96), rgba(244, 251, 255, .92));
  border-color: rgba(15, 159, 143, .15);
}

.shift-card-actions {
  margin-top: 12px;
}

.shift-card-actions button {
  min-height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  color: #ffffff;
  background: #2563eb;
  font-size: 12.5px;
  line-height: 1;
  font-weight: 650;
  box-shadow: 0 9px 18px rgba(37, 99, 235, .14);
}

.shift-card-actions button.secondary {
  color: #2563eb;
  background: #eff6ff;
  box-shadow: none;
}

.mini-shift-list {
  display: grid;
  gap: 10px;
}



.proof-card {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 86%;
  padding: 11px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .12);
  box-shadow: var(--shadow-card);
}

.proof-thumb {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: linear-gradient(145deg, #e0f2fe, #bfdbfe);
}

.proof-card strong {
  display: block;
  font-size: 13px;
  font-weight: 620;
  color: #101827;
}

.proof-card span {
  display: block;
  margin-top: 5px;
  font-size: 11.4px;
  color: #718096;
}

.input-dock {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 86px;
  display: grid;
  grid-template-columns: 1fr 44px;
  gap: 9px;
  align-items: center;
}

.chat-shell .input-dock {
  bottom: 18px;
  grid-template-columns: 42px 1fr 44px;
}

.text-input {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 16px;
  border-radius: 24px;
  color: #8994a8;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .16);
  box-shadow: var(--shadow-card);
  font-size: 14px;
}

.send-button,
.fab {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb 58%, #1d4ed8);
  box-shadow: var(--shadow-blue);
}

.send-button {
  width: 44px;
  height: 44px;
  border-radius: 18px;
}

.attach-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 17px;
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid rgba(37, 99, 235, .1);
  text-decoration: none;
}

.attach-button svg {
  width: 21px;
  height: 21px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.send-button svg {
  width: 21px;
  height: 21px;
}

.quick-action-sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
}

.quick-action-sheet:target {
  pointer-events: auto;
}

.sheet-scrim {
  position: absolute;
  inset: 0;
  display: block;
  background: rgba(15, 23, 42, .12);
  opacity: 0;
  transition: opacity .18s ease;
}

.quick-action-sheet:target .sheet-scrim {
  opacity: 1;
}

.sheet-panel {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  padding: 10px 12px 14px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .13);
  box-shadow: 0 24px 58px rgba(15, 23, 42, .18);
  transform: translateY(calc(100% + 24px));
  transition: transform .22s cubic-bezier(.2, .8, .2, 1);
}

.quick-action-sheet:target .sheet-panel {
  transform: translateY(0);
}

.sheet-handle {
  width: 42px;
  height: 4px;
  margin: 2px auto 14px;
  border-radius: 999px;
  background: #d7deea;
}

.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 2px 12px;
}

.sheet-heading span,
.sheet-section-label {
  color: #8792a7;
  font-size: 11px;
  line-height: 1;
  font-weight: 720;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sheet-heading h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.1;
  font-weight: 650;
  letter-spacing: -.035em;
}

.sheet-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  color: #617089;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .14);
}

.sheet-close svg,
.row-chevron {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-action-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.sheet-action,
.shift-action-row {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, .13);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.sheet-action {
  display: grid;
  justify-items: center;
  gap: 7px;
  min-height: 102px;
  padding: 12px 6px 10px;
  border-radius: 22px;
  color: var(--ink);
  text-align: center;
}

.sheet-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 17px;
}

.sheet-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sheet-icon.blue {
  color: #2563eb;
  background: #eff6ff;
}

.sheet-icon.green {
  color: #059669;
  background: #ecfdf5;
}

.sheet-icon.purple {
  color: #7c3aed;
  background: #f3e8ff;
}

.sheet-icon.amber {
  color: #d97706;
  background: #fff7ed;
}

.sheet-action strong,
.shift-action-row strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 650;
}

.sheet-action small,
.shift-action-row small {
  display: block;
  color: #7a869d;
  font-size: 10.8px;
  line-height: 1.25;
  font-weight: 450;
}

.sheet-section-label {
  margin: 16px 2px 9px;
}

.shift-action-list {
  display: grid;
  gap: 9px;
}

.shift-action-row {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 11px;
  border-radius: 22px;
  text-decoration: none;
}

.shift-action-row small {
  margin-top: 4px;
}

.row-chevron {
  color: #94a0b5;
}

.fab {
  position: absolute;
  right: 28px;
  bottom: 92px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
}

.fab svg {
  width: 25px;
  height: 25px;
}

.form-card {
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, .13);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.field {
  display: grid;
  gap: 7px;
  margin-top: 13px;
}

.field:first-child {
  margin-top: 0;
}

.field label {
  color: #516078;
  font-size: 12.5px;
  font-weight: 620;
}

.field .fake-input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 18px;
  background: #f8fafc;
  color: #111827;
  font: inherit;
  font-size: 13.5px;
}

.field .fake-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 104px;
  resize: none;
  padding: 13px 14px;
  line-height: 1.45;
}

.toggle-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, .13);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: #dbe4f0;
}

.switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .16);
}

.switch.on {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
}

.switch.on span {
  left: 21px;
}

.bottom-nav {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 62px;
  padding: 6px 8px;
  border-radius: 29px;
  border: 1px solid rgba(148, 163, 184, .105);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, .052), inset 0 1px 0 rgba(255, 255, 255, .92);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 49px;
  border-radius: 21px;
  color: #64748f;
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
}

.nav-item.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  color: currentColor;
}

.nav-icon svg {
  width: 22px;
  height: 22px;
}

.danger-zone {
  padding: 14px;
  border-radius: 23px;
  border: 1px solid rgba(220, 38, 38, .12);
  background: #fff;
  box-shadow: var(--shadow-card);
}

.danger-zone strong {
  display: block;
  color: var(--danger);
  font-size: 14px;
  font-weight: 650;
}

.danger-zone p {
  margin: 6px 0 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .preview-stage {
    padding: 0;
  }

  .app-shell {
    width: 100vw;
    height: 100vh;
    min-height: 760px;
    border-radius: 0;
    padding: 22px 18px 18px;
  }

  .bottom-nav,
  .input-dock {
    left: 16px;
    right: 16px;
  }

  .screen-header h1 {
    font-size: 36px;
  }
}

border: 1px solid rgba(220, 38, 38, .12);
background: #fff;
box-shadow: var(--shadow-card);
}

.danger-zone strong {
  display: block;
  color: var(--danger);
  font-size: 14px;
  font-weight: 650;
}

.danger-zone p {
  margin: 6px 0 0;
  color: #718096;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 380px) {
  .preview-stage {
    padding: 0;
  }

  .app-shell {
    width: 100vw;
    height: 100vh;
    min-height: 760px;
    border-radius: 0;
    padding: 22px 18px 18px;
  }

  .bottom-nav,
  .input-dock {
    left: 16px;
    right: 16px;
  }

  .screen-header h1 {
    font-size: 36px;
  }
}