:root {
  --brand: #3157d5;
  --brand-light: #edf1ff;
  --ink: #17243f;
  --text: #29364d;
  --muted: #748096;
  --line: #e6eaf1;
  --surface: #fff;
  --bg: #f4f6fa;
  --danger: #c13b4d;
  --success: #197c65;
  --shadow: 0 12px 40px #14234409;
  font-family:
    Inter,
    "Pretendard",
    "Noto Sans KR",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: var(--brand);
  text-decoration: none;
}
button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
svg.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  letter-spacing: -1px;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.7;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.mono {
  font-variant-numeric: tabular-nums;
}
.hidden {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  padding: 12px;
  background: white;
  z-index: 99;
}
.skip-link:focus {
  top: 0;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #92afff;
  outline-offset: 3px;
}
input:focus,
select:focus,
textarea:focus,
[contenteditable]:focus {
  outline: 2px solid #b9c8f6;
  outline-offset: 1px;
  border-color: var(--brand);
}
.initial-state {
  min-height: 100vh;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 15px;
}
.spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 2px solid var(--line);
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 244px;
  background: var(--ink);
  color: #c3ccdf;
  display: flex;
  flex-direction: column;
  z-index: 30;
  padding: 31px 18px 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: white;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 0 14px 27px;
}
.brand-mark {
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  width: 35px;
  height: 35px;
  font-size: 23px;
  letter-spacing: 0;
}
.brand small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: #a4b1cc;
  display: block;
  margin-top: 3px;
}
.sidebar-nav {
  flex: 1;
  overflow: auto;
}
.nav-group {
  margin-bottom: 23px;
}
.nav-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #7183a6;
  padding: 0 16px;
  margin: 13px 0 8px;
}
.nav-link {
  color: #aebbd2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 15px;
  margin: 3px 0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  transition: 0.15s;
}
.nav-link:hover {
  color: white;
  background: #ffffff0a;
}
.nav-link.active {
  background: #3157d5;
  color: white;
  box-shadow: 0 4px 14px #0002;
}
.nav-link .nav-dot {
  margin-left: auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8fafef;
}
.sidebar-footer {
  border-top: 1px solid #ffffff13;
  padding: 18px 13px 0;
  font-size: 11px;
  color: #7f91b2;
  line-height: 1.8;
}
.workspace {
  margin-left: 244px;
  min-height: 100vh;
}
.topbar {
  height: 82px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 16px;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
.breadcrumbs strong {
  font-weight: 500;
  color: #4a5670;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.env-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #7d6b35;
  background: #fff9e9;
  border: 1px solid #eee5ce;
  border-radius: 5px;
  padding: 5px 8px;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 0;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e9edf8;
  color: var(--brand);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 12px;
  font-weight: 700;
}
.user-menu strong {
  font-size: 12px;
  display: block;
}
.user-menu small {
  font-size: 10px;
  color: var(--muted);
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  border-radius: 8px;
}
.mobile-toggle {
  display: none;
}
.main {
  padding: 34px 38px 46px;
  max-width: 1620px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 27px;
}
.page-heading h1 {
  margin: 0 0 7px;
  font-size: 27px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 12px;
}
.actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.button {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  color: var(--text);
  padding: 10px 14px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}
.button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
  box-shadow: 0 3px 7px #3157d51a;
}
.button.danger {
  color: var(--danger);
  background: #fff3f4;
  border-color: #f2d5db;
}
.button.ghost {
  border-color: transparent;
  background: transparent;
}
.button.small {
  padding: 6px 9px;
  font-size: 11px;
}
.button .icon {
  width: 16px;
  height: 16px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 21px 24px;
  border-bottom: 1px solid var(--line);
}
.panel-header h2 {
  margin: 0;
  font-size: 15px;
}
.panel-body {
  padding: 23px 24px;
}
.panel-body > :last-child {
  margin-bottom: 0;
}
.panel-note {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 8px;
}
.info {
  padding: 13px 16px;
  border: 1px solid #dfe7fb;
  background: #f3f6ff;
  color: #526696;
  border-radius: 8px;
  line-height: 1.7;
  font-size: 12px;
  margin-bottom: 20px;
}
.info.warning {
  background: #fffbf0;
  border-color: #eee3c7;
  color: #8f7647;
}
.info.error {
  background: #fff4f5;
  border-color: #f0d1d7;
  color: #a83349;
}
.info.success {
  background: #effaf6;
  border-color: #d2eadf;
  color: #23775d;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  margin: 10px 0;
}
.empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
}
.empty .empty-icon {
  display: grid;
  place-items: center;
  background: #f3f5fa;
  border-radius: 15px;
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  color: #91a0bc;
}
.empty strong {
  display: block;
  color: #59677f;
  font-size: 14px;
  margin-bottom: 6px;
}
.empty p {
  font-size: 12px;
  margin-bottom: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 5px;
  padding: 4px 7px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
  background: #eff2f7;
  color: #68768f;
}
.badge.green {
  background: #e9f6f0;
  color: #217a58;
}
.badge.blue {
  background: #edf1fe;
  color: #4262ba;
}
.badge.red {
  background: #fbecef;
  color: #b04455;
}
.badge.amber {
  background: #fcf3df;
  color: #9c7c32;
}
.badge.gray {
  background: #edf0f5;
  color: #768096;
}
.hero {
  background: linear-gradient(110deg, #e9eefc, #f3f6ff 66%, #e8f0fb);
  border: 1px solid #e0e6f5;
  border-radius: 12px;
  padding: 30px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.hero h2 {
  font-size: 25px;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.hero p {
  font-size: 12px;
  color: #77849f;
  margin: 0;
}
.hero-date {
  text-align: right;
  min-width: 140px;
  position: relative;
  z-index: 1;
}
.hero-date strong {
  font-size: 35px;
  letter-spacing: -1px;
  font-weight: 500;
  color: #4569b7;
  display: block;
}
.hero-date span {
  font-size: 11px;
  color: #8292b0;
}
.hero:after {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  border: 34px solid #d8e3f54d;
  border-radius: 50%;
  right: -33px;
  top: -93px;
  pointer-events: none;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 17px;
  margin-bottom: 24px;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 21px 22px;
  box-shadow: var(--shadow);
}
.stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 19px;
  color: var(--muted);
  font-size: 11px;
}
.stat-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  background: var(--brand-light);
  display: grid;
  place-items: center;
  color: var(--brand);
}
.stat-icon .icon {
  width: 17px;
  height: 17px;
}
.stat-value {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  color: #233653;
  line-height: 1.2;
}
.stat-value small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 5px;
  letter-spacing: 0;
}
.stat-foot {
  margin-top: 10px;
  font-size: 10px;
  color: #98a2b5;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.dashboard-grid .panel {
  height: 100%;
}
.clock {
  font-size: 43px;
  letter-spacing: -1px;
  font-weight: 500;
  margin: 11px 0 5px;
  color: #24344f;
}
.attendance-status {
  display: flex;
  gap: 22px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}
.time-cell span {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.time-cell strong {
  font-size: 19px;
  font-weight: 500;
}
.divider {
  width: 1px;
  background: var(--line);
  height: 35px;
}
.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.quick-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 11px;
  color: #66748b;
}
.quick-link .icon {
  color: var(--brand);
  width: 23px;
  height: 23px;
}
.quick-link:hover {
  background: var(--brand-light);
  border-color: #cbd7fb;
}
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  gap: 12px;
  border-bottom: 1px solid #eff1f5;
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row strong {
  font-size: 12px;
  font-weight: 500;
}
.list-row p {
  font-size: 10px;
  color: var(--muted);
  margin: 5px 0 0;
}
.section-gap {
  margin-top: 24px;
}
.filterbar {
  display: flex;
  gap: 9px;
  padding: 18px 24px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.filterbar input {
  flex: 1;
  min-width: 190px;
  max-width: 360px;
}
.filterbar select {
  min-width: 130px;
}
.filterbar .count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
}
input,
select,
textarea {
  color: var(--text);
  padding: 10px 11px;
  border: 1px solid #dce2ec;
  border-radius: 6px;
  background: white;
  font-size: 12px;
  min-height: 37px;
  max-width: 100%;
}
input[type="checkbox"],
input[type="radio"] {
  min-height: auto;
  accent-color: var(--brand);
  width: 15px;
  height: 15px;
  margin: 0;
}
input[readonly] {
  background: #f7f8fb;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
label.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 17px;
}
label.field small {
  font-size: 10px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}
label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 8px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 18px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #fafbfe;
  font-size: 10px;
  color: #8b97ac;
  font-weight: 500;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 20px;
  border-bottom: 1px solid #edf0f5;
  color: #67748b;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  color: #34425a;
  font-weight: 500;
}
td .name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
td .name-cell .avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
td .subtext {
  font-size: 10px;
  color: #98a4b8;
  display: block;
  margin-top: 4px;
}
.table-footer {
  padding: 15px 24px;
  font-size: 10px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.split {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 23px;
}
.tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.tab {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 12px 2px;
  font-size: 12px;
  color: var(--muted);
}
.tab.active {
  color: var(--brand);
  border-color: var(--brand);
  font-weight: 600;
}
dialog {
  border: 1px solid var(--line);
  padding: 0;
  border-radius: 14px;
  color: var(--text);
  width: min(660px, calc(100% - 30px));
  max-height: 90dvh;
  box-shadow: 0 35px 100px #101f4c33;
}
dialog.wide {
  width: min(950px, calc(100% - 30px));
}
dialog::backdrop {
  background: #15244077;
  backdrop-filter: blur(3px);
}
.modal-header {
  padding: 22px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: white;
  z-index: 2;
}
.modal-header h2 {
  margin: 0;
  font-size: 18px;
}
.modal-content {
  padding: 23px 25px;
}
.modal-content h3 {
  margin: 23px 0 15px;
}
.detail-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 15px 10px;
  font-size: 12px;
}
.detail-grid dt {
  color: var(--muted);
}
.detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.permission-grid td select {
  min-width: 90px;
  padding: 6px;
}
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 7px;
  border: 1px solid #dce2ec;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #f8fafe;
}
.editor-toolbar button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  padding: 7px 11px;
  color: #556680;
}
.editor-toolbar button:hover {
  background: #e7edfa;
}
.rich-editor {
  min-height: 220px;
  max-height: 450px;
  overflow: auto;
  border: 1px solid #dce2ec;
  padding: 15px;
  border-radius: 0 0 7px 7px;
  font-size: 13px;
  line-height: 1.8;
  background: white;
}
.rich-editor img,
.document-body img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}
.document-body {
  line-height: 1.9;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.document-body h1 {
  font-size: 24px;
}
.document-body table {
  white-space: normal;
}
.dropzone {
  border: 1px dashed #bdc9e3;
  background: #f8faff;
  border-radius: 8px;
  padding: 19px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  margin-top: 15px;
}
.dropzone.drag {
  border-color: var(--brand);
  background: #eaf0ff;
}
.file-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 11px;
}
.file-list li {
  padding: 8px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.step-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 22px;
}
.step {
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 11px;
}
.step.active {
  border-color: #a8bcec;
  background: #f2f6ff;
}
.history {
  border-left: 2px solid #e7ecf5;
  padding-left: 18px;
  margin-left: 5px;
}
.history-item {
  position: relative;
  margin: 0 0 19px;
  font-size: 11px;
  line-height: 1.7;
}
.history-item:before {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  background: #c0cce4;
  border: 3px solid white;
  border-radius: 50%;
  left: -25px;
  top: 3px;
}
.history-item small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.phone-preview {
  width: 275px;
  max-width: 100%;
  margin: auto;
  border: 7px solid #26344c;
  border-radius: 34px;
  background: white;
  overflow: hidden;
  box-shadow: 0 20px 35px #17243f15;
}
.phone-notch {
  width: 100px;
  height: 13px;
  background: #26344c;
  border-radius: 0 0 9px 9px;
  margin: 0 auto;
}
.business-card {
  padding: 26px 24px 23px;
  --card-color: var(--brand);
}
.card-company {
  font-size: 12px;
  font-weight: 700;
  color: var(--card-color);
  letter-spacing: 0.5px;
  margin-bottom: 25px;
}
.card-logo {
  max-width: 125px;
  max-height: 45px;
  object-fit: contain;
  margin-bottom: 15px;
}
.card-photo {
  width: 61px;
  height: 61px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}
.business-card h2 {
  font-size: 26px;
  letter-spacing: -0.7px;
  margin: 0 0 5px;
  color: #203047;
}
.business-card .en {
  color: #929caf;
  font-size: 11px;
}
.business-card .position {
  font-size: 11px;
  color: #6b7990;
  margin: 10px 0 20px;
}
.card-contact {
  font-size: 11px;
  padding: 11px 0;
  border-top: 1px solid #edf0f5;
  display: flex;
  gap: 10px;
  align-items: center;
  overflow-wrap: anywhere;
}
.card-contact .icon {
  width: 14px;
  height: 14px;
  color: var(--card-color);
}
.card-intro {
  font-size: 11px;
  color: #78849b;
  margin: 20px 0;
  line-height: 1.8;
}
.card-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card-tile {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}
.card-tile h3 {
  font-size: 18px;
  margin: 17px 0 6px;
}
.card-tile p {
  font-size: 11px;
  color: var(--muted);
}
.qr-wrap {
  display: flex;
  justify-content: center;
  margin: 15px;
}
.qr-wrap canvas {
  max-width: 180px;
  height: auto !important;
}
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) 1.1fr;
}
.auth-art {
  background: #17243f;
  color: white;
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-art:after {
  content: "";
  position: absolute;
  width: 470px;
  height: 470px;
  border: 80px solid #27427b44;
  transform: rotate(-30deg);
  border-radius: 90px;
  bottom: -170px;
  right: -190px;
}
.auth-art .brand {
  padding: 0;
}
.auth-message {
  position: relative;
  z-index: 1;
  margin: auto 0;
}
.auth-message .eyebrow {
  color: #8cacf3;
}
.auth-message h1 {
  font-size: 43px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -1.6px;
  margin-bottom: 23px;
}
.auth-message p {
  font-size: 13px;
  line-height: 1.9;
  color: #98a9c8;
  max-width: 300px;
}
.auth-footer {
  font-size: 11px;
  color: #7487ab;
}
.auth-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 35px;
  background: #fafbfd;
}
.auth-form {
  width: 370px;
  max-width: 100%;
}
.auth-form h2 {
  font-size: 26px;
  margin-bottom: 9px;
}
.auth-form > p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 30px;
}
.auth-form input {
  min-height: 46px;
}
.auth-form .button.primary {
  width: 100%;
  padding: 14px;
  margin-top: 9px;
}
.auth-bottom {
  font-size: 10px;
  color: #98a2b6;
  line-height: 1.8;
  margin-top: 25px;
  text-align: center;
}
.auth-form details {
  margin-top: 25px;
  font-size: 11px;
  color: var(--muted);
}
.auth-form details summary {
  cursor: pointer;
}
.auth-form details form {
  margin-top: 15px;
}
.public-page {
  min-height: 100vh;
  padding: 30px 15px;
  background: linear-gradient(145deg, #edf2fc, #fff);
}
.public-page .phone-preview {
  border: 0;
  border-radius: 17px;
  width: 370px;
}
.public-page .business-card {
  padding: 35px;
}
.public-footer {
  text-align: center;
  font-size: 10px;
  color: #98a2b5;
  margin: 22px auto;
  max-width: 370px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 9px;
  background: #17243f;
  color: white;
  font-size: 12px;
  max-width: calc(100% - 32px);
  padding: 13px 20px;
  z-index: 100;
  box-shadow: 0 8px 30px #17243f33;
  display: none;
}
#toast.visible {
  display: block;
}
.loading-panel {
  padding: 70px;
  display: flex;
  justify-content: center;
}
.section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 24px 0 13px;
  font-size: 13px;
}
.settings-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.checklist {
  padding-left: 18px;
  font-size: 12px;
  line-height: 2;
  color: #6c7890;
}
.legal-copy {
  max-width: 760px;
  line-height: 1.9;
}
.legal-copy h2 {
  margin-top: 30px;
}
@media (min-width: 1450px) {
  .main {
    padding: 40px 48px;
  }
  .topbar {
    padding: 0 48px;
  }
  .stat {
    padding: 25px 26px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 215px;
  }
  .workspace {
    margin-left: 215px;
  }
  .main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .stats {
    gap: 11px;
  }
  .stat {
    padding: 18px 16px;
  }
  .split {
    grid-template-columns: 1fr 285px;
  }
  .card-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 244px;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace {
    margin-left: 0;
  }
  .mobile-toggle {
    display: inline-grid;
  }
  .topbar {
    height: 68px;
    padding: 0 20px;
  }
  .breadcrumbs {
    margin-right: auto;
  }
  .env-badge {
    display: none;
  }
  .main {
    padding: 24px 20px;
  }
  .topbar-actions {
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
  .split aside {
    order: -1;
  }
  .split aside .phone-preview {
    width: 240px;
  }
  .settings-columns {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 40px;
  }
  .auth-message h1 {
    font-size: 32px;
  }
  .auth-page {
    grid-template-columns: 0.85fr 1.15fr;
  }
  .auth-form-wrap {
    padding: 30px;
  }
}
@media (max-width: 550px) {
  .main {
    padding: 22px 15px;
  }
  .topbar {
    padding: 0 15px;
  }
  .topbar-actions {
    gap: 8px;
  }
  .user-menu > div:last-child {
    display: none;
  }
  .breadcrumbs {
    gap: 7px;
    font-size: 10px;
  }
  .breadcrumbs .icon {
    width: 15px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 22px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.7;
    max-width: 240px;
  }
  .page-heading > .actions .button {
    font-size: 11px;
    padding: 9px 10px;
  }
  .hero {
    padding: 24px 21px;
    gap: 10px;
  }
  .hero h2 {
    font-size: 20px;
  }
  .hero p {
    font-size: 10px;
  }
  .hero-date {
    min-width: 75px;
  }
  .hero-date strong {
    font-size: 26px;
  }
  .hero-date span {
    font-size: 10px;
  }
  .stat {
    padding: 17px;
  }
  .stat-top {
    margin-bottom: 14px;
    font-size: 10px;
  }
  .stat-value {
    font-size: 25px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .panel-header {
    padding: 18px;
  }
  .panel-body {
    padding: 20px 18px;
  }
  .filterbar {
    padding: 14px 16px;
    gap: 8px;
  }
  .filterbar input {
    max-width: none;
    flex-basis: 100%;
  }
  .filterbar select {
    flex: 1;
    min-width: 100px;
  }
  .filterbar .count {
    display: none;
  }
  th,
  td {
    padding: 13px 16px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .modal-content {
    padding: 20px;
  }
  .modal-header {
    padding: 20px;
  }
  .card-list {
    grid-template-columns: 1fr;
  }
  .auth-page {
    display: block;
  }
  .auth-art {
    padding: 28px;
    min-height: auto;
  }
  .auth-art .brand {
    font-size: 22px;
  }
  .auth-message {
    display: none;
  }
  .auth-footer {
    display: none;
  }
  .auth-form-wrap {
    padding: 40px 28px;
  }
  .auth-form {
    width: 100%;
  }
  .quick-links {
    gap: 7px;
  }
  .quick-link {
    font-size: 10px;
  }
  .detail-grid {
    grid-template-columns: 90px 1fr;
  }
  .attendance-status {
    gap: 12px;
  }
  .clock {
    font-size: 38px;
  }
  .tabs {
    gap: 15px;
    overflow: auto;
    white-space: nowrap;
  }
  .public-page {
    padding: 20px 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0s !important;
    transition-duration: 0s !important;
  }
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.brand-wordmark img {
  width: 165px;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
  filter: brightness(0) invert(1);
}
.brand-wordmark small {
  padding-left: 1px;
}
