:root {
  --bg-root: #061634;
  --bg-shell: #0b2045;
  --bg-shell-deep: #0a1c3e;
  --card: #142d5b;
  --card-soft: #12305f;
  --line: rgba(132, 170, 227, 0.34);
  --text-main: #f4f8ff;
  --text-muted: #bfd0f2;
  --brand-orange: #f3a73c;
  --green: #58ba78;
  --red: #c98594;
  --chip-blue: #2f68b1;
  --chip-green: #4aa468;
  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #020916;
}

body {
  font-family: "Montserrat", "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(1200px 760px at 90% -20%, rgba(33, 72, 138, 0.32), rgba(33, 72, 138, 0) 64%),
    radial-gradient(1100px 740px at -10% 120%, rgba(11, 37, 78, 0.44), rgba(11, 37, 78, 0) 58%),
    linear-gradient(180deg, #020916 0%, #01040d 100%);
  padding: 0;
}

#app {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0) + 8px) 10px calc(env(safe-area-inset-bottom, 0) + 6px);
  overflow: hidden;
}

.worker-shell {
  width: min(100%, 430px);
  height: 100%;
  min-height: 0;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(94, 137, 207, 0.52);
  background: linear-gradient(180deg, var(--bg-shell) 0%, var(--bg-shell-deep) 100%);
  box-shadow:
    0 24px 42px rgba(1, 7, 22, 0.72),
    0 0 0 1px rgba(5, 18, 43, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  will-change: transform, opacity;
}

.worker-top {
  padding: 22px 16px 14px;
  border-bottom: 1px solid rgba(126, 167, 229, 0.26);
  background: linear-gradient(180deg, rgba(7, 31, 69, 0.95), rgba(8, 24, 56, 0.88));
}

.top-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.top-side {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-button {
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.3px;
  line-height: 1;
  color: #f7fbff;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
}

.brand-button span {
  color: var(--brand-orange);
}

.top-badge {
  border-radius: 999px;
  min-height: 32px;
  padding: 6px 12px;
  background: rgba(56, 185, 101, 0.9);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.brand-caption {
  margin: 8px 0 0;
  font-size: 13px;
  color: #b9cbef;
}

.shift-status {
  border-radius: 999px;
  min-height: 28px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.shift-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.shift-open {
  color: #ccffe0;
  border-color: rgba(94, 217, 144, 0.44);
  background: rgba(50, 146, 90, 0.25);
}

.shift-open .shift-dot {
  background: #4fd57f;
  box-shadow: 0 0 8px rgba(79, 213, 127, 0.65);
}

.shift-closed {
  color: #ffd7d7;
  border-color: rgba(228, 118, 118, 0.45);
  background: rgba(136, 54, 54, 0.25);
}

.shift-closed .shift-dot {
  background: #e26d6d;
  box-shadow: 0 0 8px rgba(226, 109, 109, 0.55);
}

.worker-main {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: hidden;
}

.worker-main-scroll {
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0));
}

.worker-main-home {
  height: 100%;
}

.home-top-stack {
  display: grid;
  gap: 12px;
}

.worker-main-home .activity-card {
  margin-top: auto;
}

@media (max-width: 390px) {
  .brand-button {
    font-size: 30px;
  }

  .card h2,
  .card h3 {
    font-size: 19px;
  }

  .task-name {
    font-size: 20px;
  }

  .detail-card p.task-name {
    font-size: 20px;
  }
}
