:root {
  --orange: #ec7a22;
  --orange-deep: #d96113;
  --orange-soft: #fff0e5;
  --ink: #575757;
  --gray: #575757;
  --muted: #858a8f;
  --line: #e5e7ea;
  --surface: #ffffff;
  --surface-soft: #fffaf3;
  --green: #18a77a;
  --green-soft: #e8f8f2;
  --red: #d94b4b;
  --red-soft: #fff0f0;
  --blue: #4779d2;
  --blue-soft: #edf3ff;
  --shadow: 0 18px 45px rgba(87, 87, 87, 0.13);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #f1ebe4;
  color: var(--ink);
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100svh;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  width: min(100%, 460px);
  min-height: 100svh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.app-shell.desktop-preview {
  min-height: 100svh;
}

.screen {
  min-height: 100svh;
  padding: 0 18px 106px;
}

.screen.login-screen {
  padding: 0;
  background:
    radial-gradient(circle at 14% 11%, rgba(255, 255, 255, 0.28) 0 5%, transparent 5.5%),
    radial-gradient(circle at 85% 17%, rgba(255, 255, 255, 0.16) 0 4%, transparent 4.5%),
    linear-gradient(150deg, #d96113 0%, #ec7a22 46%, #f2a469 100%);
  color: #fff;
  position: relative;
}

.login-screen::after {
  content: "";
  position: absolute;
  inset: auto -10% 0;
  height: 32%;
  background: rgba(87, 87, 87, 0.17);
  clip-path: polygon(0 70%, 12% 48%, 22% 62%, 35% 36%, 47% 55%, 62% 28%, 75% 52%, 89% 38%, 100% 61%, 100% 100%, 0 100%);
}

.login-content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px 26px 34px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  max-width: 100%;
  padding: 9px 13px;
  border-radius: 16px;
  background: var(--surface-soft);
  box-shadow: 0 10px 24px rgba(87, 87, 87, 0.16);
  font-weight: 800;
  font-size: 20px;
}

.login-brand .brand-en {
  display: inline-block;
  margin-right: 5px;
  color: rgba(255, 255, 255, 0.72);
  direction: ltr;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 15px;
  background: #fff;
  color: var(--orange);
  box-shadow: 0 10px 24px rgba(113, 52, 12, 0.16);
}

.brand-mark svg {
  width: 34px;
  height: 34px;
}

.brand-mark img,
.brand-symbol-image {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.brand-lockup {
  display: block;
  width: min(100%, 290px);
  height: auto;
  object-fit: contain;
  object-position: right center;
}

.login-hero {
  padding-top: 68px;
}

.login-hero h1 {
  margin: 0;
  font-size: clamp(36px, 11vw, 54px);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.login-hero p {
  max-width: 315px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  line-height: 2;
}

.login-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  box-shadow: 0 20px 36px rgba(113, 52, 12, 0.17);
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 17px;
}

.login-card .helper {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0 0 16px;
  padding: 4px;
  border-radius: 14px;
  background: #f4f5f6;
}

.auth-tab {
  min-height: 38px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.auth-tab svg,
.otp-step-icon svg {
  width: 16px;
  height: 16px;
}

.auth-tab.active {
  background: #fff;
  color: var(--orange-deep);
  box-shadow: 0 4px 12px rgba(48, 52, 56, 0.08);
}

.login-alert {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 11px;
  font-size: 11px;
  line-height: 1.8;
}

.login-alert.error {
  background: var(--red-soft);
  color: #a83c3c;
}

.login-alert.success {
  background: var(--green-soft);
  color: #137a5c;
}

.auth-inline-actions {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.auth-inline-actions .text-btn:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.otp-step {
  margin: 2px 0 16px;
  padding: 13px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 9px;
  border-radius: 13px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.otp-step-icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #fff;
}

.otp-step strong {
  font-size: 11px;
}

.otp-step small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.otp-step + form input {
  direction: ltr;
  text-align: center;
  letter-spacing: 5px;
  font-size: 18px;
  font-weight: 800;
}

.setup-skip {
  width: 100%;
  margin-top: 13px;
  text-align: center;
}

.install-pwa-login {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid #f1c29e;
  border-radius: 12px;
  background: #fffaf6;
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 700;
}

.install-pwa-login:hover,
.install-pwa-login:focus-visible {
  border-color: var(--orange);
  outline: none;
  background: var(--orange-soft);
}

.install-pwa-login svg {
  width: 16px;
  height: 16px;
}

.setup-screen .login-hero {
  padding-top: 52px;
}

.role-buttons {
  display: grid;
  gap: 10px;
}

.role-btn {
  width: 100%;
  min-height: 52px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: 160ms ease;
}

.role-btn:hover,
.role-btn:focus-visible {
  border-color: var(--orange);
  transform: translateY(-1px);
  outline: none;
}

.role-btn .role-copy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.role-btn .role-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.role-btn .role-icon svg,
.kpi-card .kpi-icon svg,
.avatar svg,
.dropzone .drop-icon svg {
  width: 18px;
  height: 18px;
}

.role-btn > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.role-btn small {
  color: var(--muted);
  font-size: 11px;
}

.login-footnote {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  text-align: center;
}

.app-header {
  min-height: 82px;
  margin: 0 -18px 16px;
  padding: 20px 18px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(247, 248, 249, 0.94);
  border-bottom: 1px solid rgba(229, 231, 234, 0.65);
  position: sticky;
  top: 0;
  z-index: 8;
  backdrop-filter: blur(14px);
}

.header-title {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.header-title h1,
.header-title h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.2px;
}

.header-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--gray);
  transition: 150ms ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--orange);
  color: var(--orange-deep);
  outline: none;
}

.notification-button {
  position: relative;
}

.notification-badge {
  position: absolute;
  top: -5px;
  left: -5px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  line-height: 1;
}

.notification-panel {
  position: relative;
  z-index: 4;
  margin: -4px 0 14px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 14px 30px rgba(58, 45, 33, .12);
}

.notification-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.notification-panel-head > div:first-child {
  display: grid;
  gap: 3px;
}

.notification-panel-head small {
  color: var(--muted);
  font-size: 10px;
}

.notification-panel-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.notification-list {
  display: grid;
  gap: 5px;
  max-height: 280px;
  overflow: auto;
  padding-top: 7px;
}

.notification-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--gray);
  text-align: right;
  cursor: pointer;
}

.notification-item:hover,
.notification-item.unread {
  background: #fff6ed;
}

.notification-item > span:nth-child(2) {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}

.notification-item small {
  color: var(--muted);
  font-size: 10px;
}

.notification-icon {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.notification-icon svg {
  width: 15px;
  height: 15px;
}

.icon-btn svg,
.button svg,
.nav-item svg,
.quick-action svg {
  width: 18px;
  height: 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 700;
}

.page-intro {
  margin: 0 0 18px;
}

.page-intro h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.page-intro p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

.hero-banner {
  position: relative;
  overflow: hidden;
  min-height: 145px;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  color: #fff;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22) 0 2px, transparent 3px),
    radial-gradient(circle at 75% 35%, rgba(255, 255, 255, 0.2) 0 1px, transparent 2px),
    linear-gradient(135deg, #e96c1b, #f39842);
  box-shadow: 0 14px 28px rgba(236, 122, 34, 0.2);
}

.home-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.home-identity-avatar .avatar {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(255, 255, 255, 0.62);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.home-identity small,
.home-identity strong,
.home-identity span {
  display: block;
}

.home-identity small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.home-identity strong {
  margin-top: 3px;
  font-size: 13px;
}

.home-identity span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: auto -8% -24px auto;
  width: 190px;
  height: 118px;
  opacity: 0.21;
  background: currentColor;
  clip-path: polygon(50% 4%, 100% 92%, 0 92%);
}

.hero-banner h2 {
  max-width: 240px;
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
}

.hero-banner p {
  max-width: 260px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  line-height: 1.8;
}

.hero-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-badge svg {
  width: 27px;
  height: 27px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 22px 0 11px;
}

.section-head h3 {
  margin: 0;
  font-size: 15px;
}

.section-head button,
.text-btn {
  padding: 4px 0;
  background: transparent;
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 700;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.kpi-card {
  width: 100%;
  min-height: 108px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  transition: 160ms ease;
}

.kpi-card:hover,
.kpi-card:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 8px 20px rgba(236, 122, 34, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.kpi-card .kpi-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 10px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.kpi-card.green .kpi-icon {
  background: var(--green-soft);
  color: var(--green);
}

.kpi-card.blue .kpi-icon {
  background: var(--blue-soft);
  color: var(--blue);
}

.kpi-card.red .kpi-icon {
  background: var(--red-soft);
  color: var(--red);
}

.kpi-card .kpi-value {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
}

.kpi-card .kpi-label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.chart-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 15px;
}

.chart-head h3 {
  margin: 0;
  font-size: 14px;
}

.chart-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.chart-select {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--gray);
  font-size: 10px;
}

.bar-chart {
  height: 136px;
  padding: 0 7px 0 2px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 9px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 33px, #f0f1f2 34px 35px);
}

.bar-group {
  min-width: 0;
  flex: 1 1 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.bar-stack {
  width: 22px;
  height: 96px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0;
}

.bar {
  width: 100%;
  display: block;
  flex: 0 0 auto;
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
}

.bar.positive {
  background: var(--orange);
}

.bar.negative {
  background: #f3c19a;
}

.bar-group small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.legend {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 11px;
  color: var(--muted);
  font-size: 10px;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend i.orange {
  background: var(--orange);
}

.legend i.peach {
  background: #f3c19a;
}

.rank-list {
  display: grid;
  gap: 13px;
}

.rank-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) 27px;
  align-items: center;
  gap: 8px;
}

.rank-row > span:first-child {
  overflow: hidden;
  color: var(--gray);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #f0f1f3;
}

.rank-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f7b067, var(--orange));
}

.rank-row strong {
  color: var(--gray);
  font-size: 11px;
  text-align: left;
}

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

.quick-action {
  min-height: 76px;
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--gray);
  font-size: 10px;
  text-align: center;
  transition: 150ms ease;
}

.quick-action:hover,
.quick-action:focus-visible {
  border-color: var(--orange);
  color: var(--orange-deep);
  transform: translateY(-1px);
  outline: none;
}

.quick-action svg {
  color: var(--orange);
}

.list-toolbar,
.report-toolbar,
.manual-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.list-toolbar {
  min-height: 42px;
  margin: 2px 0 8px;
}

.list-toolbar .list-count {
  margin: 0;
}

.csv-button {
  flex: 0 0 auto;
  gap: 5px;
}

.csv-button svg {
  width: 15px;
  height: 15px;
}

.report-toolbar {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 9px;
}

.manual-member-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid #f1d1b2;
  border-radius: var(--radius-md);
  background: #fffaf6;
}

.manual-member-card .section-head {
  margin: 0 0 12px;
}

.manual-member-card .section-head h3 {
  margin: 0;
}

.manual-member-card .section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 9px;
}

.manual-grid .field {
  min-width: 0;
}

.manual-grid .field input,
.manual-grid .field select {
  width: 100%;
}

.manual-member-card .helper-note {
  margin: 0 0 12px;
}

.manual-form-actions {
  justify-content: stretch;
}

.manual-result {
  display: grid;
  gap: 4px;
  margin-top: 12px;
}

.manual-result strong,
.manual-result span,
.manual-result small {
  display: block;
}

.manual-result small {
  line-height: 1.8;
}

.access-search-box {
  margin-top: 12px;
}

.access-user-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.access-user-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.access-user-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.access-user-head .event-person {
  min-width: 0;
}

.access-user-head .event-person small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.access-user-status {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
}

.access-user-status.active {
  background: var(--green-soft);
  color: var(--green);
}

.access-user-status.inactive {
  background: #f0f1f3;
  color: var(--muted);
}

.access-user-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 13px 0 10px;
}

.access-role-badge {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 9px;
  font-weight: 700;
}

.access-edit-button {
  width: 100%;
}

.access-edit-button svg {
  width: 15px;
  height: 15px;
}

.access-role-editor {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.access-role-grid {
  display: grid;
  gap: 7px;
}

.access-role-option {
  min-width: 0;
  padding: 9px 10px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  cursor: pointer;
}

.access-role-option:has(input:checked) {
  border-color: #f2b27d;
  background: #fff8f0;
}

.access-role-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}

.access-role-option span {
  min-width: 0;
}

.access-role-option strong,
.access-role-option small {
  display: block;
}

.access-role-option strong {
  font-size: 10px;
}

.access-role-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}

.access-role-option.required {
  cursor: default;
  background: #f8f9fa;
}

.access-editor-actions {
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 12px;
}

.access-editor-actions .button {
  flex: 1 1 0;
}

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

.event-card {
  position: relative;
  padding: 14px 15px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: 150ms ease;
}

.event-card:hover {
  border-color: #f5ba8c;
  transform: translateY(-1px);
}

.event-card::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 0;
  width: 3px;
  border-radius: 0 5px 5px 0;
  background: var(--orange);
}

.event-card.negative::before {
  background: var(--red);
}

.event-top,
.event-meta,
.employee-meta-row,
.profile-actions,
.import-summary,
.status-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.event-top {
  align-items: flex-start;
}

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

.event-person strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-person small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.event-description {
  margin: 13px 0 11px;
  color: var(--gray);
  font-size: 12px;
  line-height: 1.9;
}

.event-meta {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}

.event-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.event-meta svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.event-meta .event-creator {
  flex-basis: 100%;
  min-width: 0;
}

.event-type,
.status-pill,
.visibility-pill,
.filter-chip,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.event-type,
.status-pill,
.visibility-pill,
.tag {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 700;
}

.event-type.positive,
.status-pill.active,
.visibility-pill.visible,
.tag.success {
  background: var(--green-soft);
  color: var(--green);
}

.event-type.negative,
.tag.error {
  background: var(--red-soft);
  color: var(--red);
}

.visibility-pill.private,
.tag.warning {
  background: #fff7e8;
  color: #be7b18;
}

.status-pill.inactive {
  background: #f0f1f3;
  color: var(--muted);
}

.avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f7ddc5;
  color: #a44e15;
  font-size: 12px;
  font-weight: 800;
}

.avatar.has-photo {
  overflow: hidden;
  padding: 0;
}

.avatar.has-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.avatar.large {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  font-size: 20px;
}

.avatar.green {
  background: #d9f0e7;
  color: #13785b;
}

.avatar.blue {
  background: #dfe9fc;
  color: #3565bc;
}

.avatar.purple {
  background: #eee2fa;
  color: #7650a9;
}

.search-box {
  position: relative;
  margin-bottom: 11px;
}

.search-box svg {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 17px;
  height: 17px;
  color: var(--muted);
  transform: translateY(-50%);
}

.search-box input,
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: 150ms ease;
}

.search-box input {
  height: 45px;
  padding: 0 42px 0 13px;
  font-size: 12px;
}

.search-box input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(236, 122, 34, 0.12);
}

.employee-picker {
  position: relative;
}

.employee-picker-control {
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  text-align: right;
}

.employee-picker-control:hover,
.employee-picker-control:focus-visible {
  border-color: var(--orange);
  outline: none;
}

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

.picker-person strong,
.picker-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-person strong {
  font-size: 11px;
}

.picker-person small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.picker-chevron {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
}

.picker-chevron svg {
  width: 18px;
  height: 18px;
}

.employee-picker-menu {
  position: absolute;
  right: 0;
  left: 0;
  top: calc(100% + 7px);
  z-index: 15;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.picker-search {
  margin-bottom: 8px;
}

.picker-search input {
  height: 40px;
}

.employee-picker-results {
  max-height: 235px;
  overflow-y: auto;
  display: grid;
  gap: 4px;
}

.employee-picker-option {
  width: 100%;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  text-align: right;
}

.employee-picker-option:hover,
.employee-picker-option:focus-visible {
  background: var(--orange-soft);
  outline: none;
}

.employee-picker-option strong,
.employee-picker-option small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-picker-option strong {
  font-size: 10px;
}

.employee-picker-option small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.filter-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 5px;
  margin-bottom: 13px;
  scrollbar-width: none;
}

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

.filter-chip {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
  cursor: pointer;
}

.filter-chip.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.list-count {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
}

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

.employee-card {
  padding: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  transition: 150ms ease;
}

.employee-card:hover {
  border-color: #f2bd8f;
  transform: translateY(-1px);
}

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

.employee-copy strong {
  display: block;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-copy small {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 7px;
}

.chevron {
  color: #b7babd;
}

.profile-hero {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 13px;
}

.profile-main h2 {
  margin: 0;
  font-size: 18px;
  line-height: 1.5;
}

.profile-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 18px;
}

.profile-stat {
  padding: 11px 7px;
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: center;
}

.profile-stat strong {
  display: block;
  font-size: 18px;
}

.profile-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.profile-stat.positive strong {
  color: var(--green);
}

.profile-stat.negative strong {
  color: var(--red);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.detail-item {
  min-height: 64px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.detail-item span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 10px;
}

.detail-item strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  padding-right: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  right: 4px;
  bottom: 5px;
  width: 1px;
  background: #e2e4e6;
}

.timeline-item {
  position: relative;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 18px;
  right: -16px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--surface-soft);
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 1px #e7a26e;
}

.timeline-item.negative::before {
  background: var(--red);
  box-shadow: 0 0 0 1px #e89a9a;
}

.timeline-item h4 {
  margin: 0;
  font-size: 12px;
}

.timeline-item p {
  margin: 8px 0 10px;
  color: var(--gray);
  font-size: 11px;
  line-height: 1.9;
}

.timeline-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.button {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: 150ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--orange-deep);
  transform: translateY(-1px);
  outline: none;
}

.button.full {
  width: 100%;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--gray);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  border-color: var(--orange);
  background: var(--surface);
  color: var(--orange-deep);
}

.button.danger {
  background: var(--red-soft);
  color: var(--red);
}

.button.small {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 10px;
}

.sticky-action {
  position: fixed;
  right: 50%;
  bottom: 76px;
  width: min(calc(100% - 36px), 424px);
  transform: translateX(50%);
  z-index: 7;
}

.form-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.field {
  margin-bottom: 15px;
}

.field:last-child {
  margin-bottom: 0;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
}

.field input,
.field select {
  height: 45px;
  padding: 0 12px;
  font-size: 12px;
}

.field textarea {
  min-height: 125px;
  padding: 12px;
  resize: vertical;
  font-size: 12px;
  line-height: 1.9;
}

.date-input-button {
  width: 100%;
  min-height: 48px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  text-align: right;
}

.date-input-button:hover,
.date-input-button:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.date-input-button > span:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.date-input-button svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

.date-input-button strong {
  font-size: 12px;
}

.date-input-button small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.time-input-button {
  width: 100%;
  min-height: 48px;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  text-align: right;
}

.time-input-button:hover,
.time-input-button:focus-visible {
  border-color: var(--orange);
  outline: none;
}

.time-button-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.time-button-copy > svg {
  width: 18px;
  height: 18px;
  color: var(--orange);
}

.time-button-copy small,
.time-button-copy strong {
  display: block;
}

.time-button-copy small {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 9px;
}

.time-button-copy strong {
  font-size: 12px;
}

.calendar-popover {
  margin-top: 8px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(43, 47, 52, 0.08);
}

.calendar-head,
.calendar-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.calendar-head strong {
  color: var(--gray);
  font-size: 12px;
}

.calendar-nav {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--gray);
}

.calendar-nav:hover,
.calendar-nav:focus-visible {
  background: var(--orange-soft);
  color: var(--orange-deep);
  outline: none;
}

.calendar-nav svg {
  width: 16px;
  height: 16px;
}

.calendar-nav.next svg {
  transform: scaleX(-1);
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-weekdays {
  margin: 14px 0 7px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.calendar-day,
.calendar-empty {
  min-height: 31px;
}

.calendar-day {
  border-radius: 9px;
  background: transparent;
  color: var(--gray);
  font-size: 10px;
}

.calendar-day:hover,
.calendar-day:focus-visible {
  background: var(--orange-soft);
  color: var(--orange-deep);
  outline: none;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 1px #f2b27a;
}

.calendar-day.selected {
  background: var(--orange);
  color: #fff;
  font-weight: 700;
}

.calendar-footer {
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.time-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(36, 39, 43, 0.68);
}

.time-picker-dialog {
  width: min(100%, 360px);
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 20px 18px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: #303136;
  color: #fff;
  box-shadow: 0 24px 60px rgba(20, 22, 26, 0.3);
}

.time-picker-title {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.time-picker-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 8px;
}

.time-part {
  width: 94px;
  min-height: 70px;
  padding: 9px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.78);
}

.time-part.active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
  box-shadow: 0 8px 18px rgba(236, 122, 34, 0.25);
}

.time-part strong {
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}

.time-part small {
  color: inherit;
  font-size: 9px;
  opacity: 0.8;
}

.time-colon {
  color: var(--orange);
  font-size: 27px;
  font-weight: 700;
}

.time-picker-help {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
  text-align: center;
}

.time-dial {
  position: relative;
  width: min(100%, 278px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 50%;
  background: #3a3b41;
}

.time-dial.hour-dial::before {
  content: "";
  position: absolute;
  inset: 19%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.time-hand {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: var(--hand-length, 42%);
  height: 2px;
  border-radius: 2px;
  background: #f2a469;
  transform: rotate(var(--hand-angle));
  transform-origin: left center;
}

.time-hand::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f2a469;
  transform: translateY(-50%);
}

.time-dial-center {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f2a469;
  transform: translate(-50%, -50%);
}

.time-choice {
  position: absolute;
  width: 31px;
  height: 31px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  transform: translate(-50%, -50%);
  z-index: 3;
}

.time-choice:hover,
.time-choice:focus-visible {
  background: rgba(236, 122, 34, 0.28);
  color: #fff;
  outline: none;
}

.time-choice.selected {
  width: 42px;
  height: 42px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 7px 16px rgba(236, 122, 34, 0.28);
}

.time-choice.inner {
  width: 29px;
  height: 29px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.time-choice.inner.selected {
  width: 42px;
  height: 42px;
  color: #fff;
  font-size: 10px;
}

.time-picker-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.time-picker-footer .text-btn {
  color: #f7b47d;
}

.detail-actions {
  margin-top: 12px;
}

.detail-actions .button svg {
  width: 16px;
  height: 16px;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.segment {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.segment.active {
  border-color: var(--orange);
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 700;
}

.segment.negative.active {
  border-color: #e48b8b;
  background: var(--red-soft);
  color: var(--red);
}

.helper-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

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

.feedback-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.feedback-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.feedback-meta time {
  margin-right: auto;
}

.feedback-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 9px;
}

.feedback-status.closed {
  background: #eef1f3;
  color: var(--muted);
}

.feedback-status.reviewing {
  background: #eaf2ff;
  color: #386aa5;
}

.feedback-message {
  margin: 13px 0 0;
  color: var(--gray);
  white-space: pre-wrap;
  line-height: 2;
  font-size: 12px;
}

.feedback-tracking {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(236, 122, 34, .25);
  border-radius: var(--radius-md);
  background: #fffaf4;
}

.tracking-token {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px dashed rgba(236, 122, 34, .45);
}

.tracking-token span {
  color: var(--muted);
  font-size: 10px;
}

.tracking-token code {
  direction: ltr;
  text-align: left;
  overflow-wrap: anywhere;
  color: var(--gray);
  font-size: 11px;
  letter-spacing: .3px;
}

.tracking-token small {
  color: var(--muted);
  line-height: 1.8;
  font-size: 10px;
}

.tracking-token-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token-hidden {
  color: var(--gray);
  font-size: 11px;
}

.app-shell:not(.feedback-edit-open) #feedback-edit-form {
  display: none;
}

.feedback-edit-open #feedback-edit-form {
  display: block;
}

.feedback-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.guide-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.guide-section {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.guide-section .section-head {
  margin-bottom: 3px;
}

.guide-intro {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.guide-steps {
  display: grid;
  gap: 11px;
  margin: 12px 0 0;
  padding: 0 22px 0 0;
}

.guide-steps li {
  padding-right: 3px;
  color: var(--orange-deep);
  line-height: 1.8;
}

.guide-steps li strong {
  color: var(--gray);
  font-size: 12px;
}

.guide-steps li p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

.detail-event {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.detail-event .event-description {
  margin: 21px 0;
  font-size: 14px;
  line-height: 2.1;
}

.event-detail-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.event-detail-meta span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.event-detail-meta strong {
  display: block;
  font-size: 11px;
}

.dropzone {
  padding: 23px 16px;
  border: 1px dashed #efab73;
  border-radius: var(--radius-md);
  background: var(--orange-soft);
  text-align: center;
}

.dropzone .drop-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: #fff;
  color: var(--orange);
}

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

.dropzone h3 {
  margin: 0;
  font-size: 14px;
}

.dropzone p {
  margin: 7px 0 13px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.file-chip .file-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.file-chip .file-copy svg {
  color: var(--orange);
}

.file-chip strong {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-chip small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.photo-preview-card {
  min-width: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.photo-preview-card strong,
.photo-preview-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-preview-card strong {
  font-size: 10px;
}

.photo-preview-card small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.import-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin: 14px 0;
}

.import-summary.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.import-stat {
  padding: 12px 8px;
  border-radius: 12px;
  background: var(--surface-soft);
  text-align: center;
}

.import-stat strong {
  display: block;
  font-size: 20px;
}

.import-stat span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.import-stat.warning strong {
  color: #be7b18;
}

.import-stat.success strong {
  color: var(--green);
}

.mapping-list,
.issue-list {
  display: grid;
  gap: 9px;
}

.mapping-row,
.issue-row {
  padding: 11px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  font-size: 10px;
}

.mapping-row span:first-child,
.issue-row span:first-child {
  color: var(--muted);
}

.mapping-row strong {
  font-size: 10px;
}

.issue-row {
  align-items: flex-start;
}

.issue-row .issue-main {
  min-width: 0;
  flex: 1;
}

.issue-row strong {
  display: block;
  overflow: hidden;
  color: var(--gray);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-row small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
}

.report-grid {
  display: grid;
  gap: 12px;
}

.report-filter-card {
  padding: 14px;
  margin-bottom: 12px;
  border: 1px solid #f1d1b2;
  border-radius: var(--radius-md);
  background: #fffaf6;
}

.report-filter-card .status-line > div {
  min-width: 0;
}

.report-filter-card .status-line strong,
.report-filter-card .status-line small {
  display: block;
}

.report-filter-card .status-line strong {
  color: var(--gray);
  font-size: 12px;
}

.report-filter-card .status-line small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.date-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.date-filter-grid .date-input-button {
  min-height: 58px;
  background: var(--surface);
}

.date-filter-grid .date-input-button > span:first-child {
  display: block;
}

.filter-error {
  margin: 9px 0 0;
  color: var(--red);
  font-size: 10px;
}

.report-range-caption {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 10px;
}

.donut-wrap {
  display: flex;
  align-items: center;
  gap: 20px;
}

.donut {
  width: 124px;
  height: 124px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--green) 0 61%, var(--red) 61% 100%);
  position: relative;
}

.donut::after {
  content: "";
  position: absolute;
  inset: 19px;
  border-radius: 50%;
  background: var(--surface);
}

.donut-label {
  position: relative;
  z-index: 1;
  text-align: center;
}

.donut-label strong {
  display: block;
  font-size: 24px;
}

.donut-label span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.report-legend {
  display: grid;
  gap: 12px;
}

.report-legend div {
  display: grid;
  grid-template-columns: 9px 1fr auto;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.report-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.report-legend strong {
  color: var(--gray);
  font-size: 12px;
}

.empty-state {
  padding: 32px 18px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  line-height: 1.8;
}

.bottom-nav {
  position: fixed;
  right: 50%;
  bottom: 0;
  width: min(100%, 460px);
  height: 68px;
  padding: 7px 15px calc(7px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  transform: translateX(50%);
  z-index: 9;
  backdrop-filter: blur(16px);
}

.bottom-nav.employee-nav,
.bottom-nav.hr-nav {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 11px;
  background: transparent;
  color: #a1a5a9;
  font-size: 9px;
}

.nav-item.active {
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 700;
}

.toast {
  position: fixed;
  right: 50%;
  bottom: 84px;
  max-width: calc(100% - 36px);
  padding: 12px 15px;
  border-radius: 13px;
  background: #303438;
  color: #fff;
  box-shadow: var(--shadow);
  font-size: 11px;
  line-height: 1.7;
  transform: translate(50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: 180ms ease;
  z-index: 30;
}

.toast.show {
  transform: translate(50%, 0);
  opacity: 1;
}

.pwa-help-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(34, 36, 40, 0.55);
}

.pwa-help-dialog {
  width: min(100%, 390px);
  max-height: calc(100svh - 36px);
  overflow-y: auto;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(20, 22, 26, 0.3);
}

.pwa-help-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pwa-help-head h2 {
  margin: 0;
  font-size: 17px;
}

.pwa-help-head .icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 20px;
  line-height: 1;
}

.pwa-help-dialog ol {
  margin: 18px 0 14px;
  padding-right: 22px;
  color: var(--gray);
  font-size: 12px;
  line-height: 2.1;
}

.pwa-help-dialog li::marker {
  color: var(--orange);
  font-weight: 800;
}

.pwa-help-dialog strong {
  color: var(--orange-deep);
}

.pwa-help-note {
  margin: 0 0 14px;
  padding: 10px 11px;
  border-radius: 11px;
  background: var(--orange-soft);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.8;
}

.soft-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.hint-banner {
  padding: 13px 14px;
  border: 1px solid #f0d59a;
  border-radius: 13px;
  background: #fff8e9;
  color: #8d681e;
  font-size: 10px;
  line-height: 1.9;
}

.hint-banner strong {
  color: #745112;
}

.inline-icon {
  width: 14px;
  height: 14px;
  vertical-align: -3px;
}

@media (min-width: 700px) {
  body {
    padding: 22px 0;
  }

  .app-shell {
    min-height: calc(100svh - 44px);
    border-radius: 30px;
  }

  .screen,
  .login-screen,
  .login-content {
    min-height: calc(100svh - 44px);
  }

  .bottom-nav {
    bottom: 22px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
  }
}
