/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --surface-muted: #f8fafb;
  --ink: #17212b;
  --muted: #66727e;
  --line: #dce2e7;
  --line-soft: #e9edf0;
  --green-950: #003d31;
  --green-900: #005143;
  --green-800: #006254;
  --green-700: #087c60;
  --green-100: #e6f5ee;
  --blue-700: #2873d0;
  --blue-100: #eaf2fd;
  --amber-700: #bc7900;
  --amber-100: #fff3d8;
  --red-700: #c13f45;
  --red-100: #fdebed;
  --radius: 6px;
  --shadow: 0 1px 3px rgb(16 35 31 / 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans Lao", "Phetsarath OT", "Noto Sans Thai", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

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

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.auto-one-mark {
  color: #fff;
  display: grid;
  font-family: Arial, sans-serif;
  font-size: 38px;
  font-style: italic;
  font-weight: 900;
  height: 44px;
  line-height: 1;
  place-items: center;
  transform: skew(-8deg);
  width: 44px;
}

.app-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background: linear-gradient(180deg, #006050 0%, #00493d 100%);
  color: #e7f2ef;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 12px 18px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
}

.sidebar-brand {
  align-items: center;
  display: flex;
  gap: 8px;
  min-height: 96px;
  padding: 16px 10px;
}

.sidebar-brand-copy strong {
  color: #fff;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.05;
}

.sidebar-brand-copy span {
  color: #b9d9d2;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.11em;
  margin-top: 4px;
}

.nav {
  display: grid;
  grid-gap: 3px;
  gap: 3px;
}

.nav a {
  align-items: center;
  border-radius: 5px;
  color: #e0eeeb;
  display: flex;
  gap: 12px;
  min-height: 46px;
  padding: 10px 12px;
  transition: background-color 160ms ease-out, color 160ms ease-out;
}

.nav a:hover,
.nav a.active {
  background: rgb(255 255 255 / 0.11);
  color: #fff;
}

.nav a.active {
  font-weight: 700;
}

.nav-chevron {
  margin-left: auto;
}

.sidebar-footer {
  border-top: 1px solid rgb(255 255 255 / 0.2);
  margin-top: auto;
  padding: 16px 7px 0;
}

.sidebar-logout {
  align-items: center;
  background: transparent;
  border: 0;
  color: #fff;
  display: flex;
  gap: 12px;
  min-height: 40px;
  padding: 6px;
  width: 100%;
}

.app-main {
  display: flex;
  min-width: 0;
  min-height: 100vh;
  flex-direction: column;
}

.global-topbar {
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 24px;
}

.topbar-product,
.topbar-tools,
.topbar-context,
.topbar-user {
  align-items: center;
  display: flex;
}

.topbar-product {
  gap: 16px;
}

.topbar-product strong {
  font-size: 15px;
}

.topbar-tools {
  gap: 14px;
}

.topbar-context {
  color: #3f4a54;
  font-size: 12px;
  gap: 7px;
  white-space: nowrap;
}

.topbar-divider {
  background: var(--line);
  height: 28px;
  width: 1px;
}

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: #3f4a54;
  display: inline-flex;
  justify-content: center;
  padding: 6px;
  position: relative;
}

.notification-button span {
  background: #e33b43;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  height: 17px;
  line-height: 13px;
  position: absolute;
  right: -1px;
  text-align: center;
  top: -2px;
  width: 17px;
}

.mobile-menu {
  display: none;
}

.topbar-user {
  gap: 9px;
}

.topbar-user strong,
.topbar-user span {
  display: block;
  white-space: nowrap;
}

.topbar-user strong {
  font-size: 12px;
}

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

.avatar {
  background: var(--green-900);
  border-radius: 50%;
  color: #fff;
  display: grid;
  flex: 0 0 auto;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  place-items: center;
  width: 34px;
}

.content {
  flex: 1 1;
  min-width: 0;
  padding: 22px 24px 14px;
}

.dashboard-heading,
.page-heading {
  align-items: flex-end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.dashboard-heading h1,
.page-heading h1 {
  font-size: 24px;
  letter-spacing: 0;
  line-height: 1.25;
  margin: 0;
}

.page-heading p {
  color: var(--muted);
  margin: 5px 0 0;
}

.period-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.period-select,
.refresh-button {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #35414b;
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
}

.period-select svg:last-child {
  margin-left: 3px;
  transform: rotate(90deg);
}

.period-open {
  background: var(--green-100);
  border: 1px solid #9fd5bf;
  border-radius: 5px;
  color: var(--green-700);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
}

.period-range {
  color: #46525d;
  font-size: 12px;
}

.refresh-button:hover,
.period-select:hover {
  background: var(--surface-muted);
}

.spin {
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.metrics-grid {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 12px;
}

.metric-card {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1fr);
  min-height: 136px;
  padding: 16px 18px;
}

.metric-icon {
  align-items: center;
  border-radius: 50%;
  display: flex;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.metric-green .metric-icon {
  background: var(--green-100);
  color: var(--green-700);
}

.metric-red .metric-icon {
  background: var(--red-100);
  color: var(--red-700);
}

.metric-blue .metric-icon {
  background: var(--blue-100);
  color: var(--blue-700);
}

.metric-amber .metric-icon {
  background: var(--amber-100);
  color: var(--amber-700);
}

.metric-body span,
.metric-body small {
  display: block;
}

.metric-body span {
  color: #3f4b55;
  font-size: 12px;
  font-weight: 700;
}

.metric-body strong {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 21px;
  letter-spacing: 0;
  line-height: 1.15;
  margin-top: 4px;
  white-space: nowrap;
}

.metric-body small {
  color: #48545f;
  font-size: 10px;
  margin-top: 4px;
}

.metric-change {
  align-items: center;
  display: flex;
  font-size: 10px;
  grid-column: 1 / -1;
  justify-content: space-between;
}

.metric-change span {
  color: var(--muted);
}

.metric-change.up b {
  color: #159563;
}

.metric-red .metric-change b {
  color: var(--red-700);
}

.metric-change.down b {
  color: var(--red-700);
}

.dashboard-split {
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.95fr);
  margin-bottom: 12px;
}

.data-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-width: 0;
  overflow: hidden;
}

.data-panel-header {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 14px;
}

.data-panel-header h2 {
  font-size: 14px;
  letter-spacing: 0;
  margin: 0;
}

.data-panel-header > a {
  color: #1267c4;
  font-size: 11px;
  font-weight: 700;
}

.data-panel-header > span {
  color: var(--muted);
  font-size: 12px;
}

.table-scroll {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line-soft);
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #fbfcfd;
  color: #3e4a54;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

td {
  color: #303c46;
  font-size: 11px;
}

.close-table {
  min-width: 650px;
}

.close-table th:first-child,
.close-table td:first-child,
.close-table th:last-child,
.close-table td:last-child {
  text-align: center;
  width: 38px;
}

.status-badge {
  border-radius: 4px;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
  min-width: 72px;
  padding: 3px 7px;
  white-space: nowrap;
}

.status-badge.done {
  background: var(--green-100);
  color: var(--green-700);
}

.status-badge.progress {
  background: var(--blue-100);
  color: var(--blue-700);
}

.status-badge.pending {
  background: var(--amber-100);
  color: var(--amber-700);
}

.row-state.done {
  color: #159563;
}

.row-state.waiting {
  color: #87929c;
}

.progress-footer {
  align-items: center;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  min-height: 48px;
  padding: 9px 14px;
}

.progress-footer span,
.progress-footer strong {
  font-size: 11px;
}

.progress-track {
  background: #d7dce0;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
}

.progress-track i {
  background: #159563;
  border-radius: inherit;
  display: block;
  height: 100%;
  width: 38%;
}

.readiness-list a {
  align-items: center;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 20px minmax(0, 1fr) auto 16px;
  min-height: 47px;
  padding: 8px 14px;
}

.readiness-list a:hover {
  background: var(--surface-muted);
}

.readiness-list span {
  color: #38444e;
  font-size: 11px;
}

.readiness-list strong {
  color: #58636d;
  font-size: 11px;
  font-weight: 500;
}

.readiness-icon.ready {
  background: #159563;
  border-radius: 50%;
  color: #fff;
  padding: 2px;
}

.readiness-icon.warning {
  color: #f3a400;
}

.readiness-footer {
  display: flex;
  justify-content: flex-end;
  min-height: 47px;
  padding: 14px;
}

.readiness-footer a {
  color: #1267c4;
  font-size: 11px;
  font-weight: 700;
}

.shortcuts-panel {
  margin-bottom: 0;
}

.master-shortcuts {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 12px;
}

.master-shortcuts > a {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 98px;
  padding: 12px;
  transition: background-color 160ms ease-out, border-color 160ms ease-out;
}

.master-shortcuts > a:hover {
  background: var(--surface-muted);
  border-color: #b9c7c3;
}

.shortcut-icon {
  align-items: center;
  background: var(--green-100);
  border-radius: 50%;
  color: var(--green-700);
  display: flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.master-shortcuts strong,
.master-shortcuts span {
  display: block;
}

.master-shortcuts strong {
  font-size: 11px;
}

.master-shortcuts span {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  margin-top: 2px;
}

.master-shortcuts b {
  align-items: center;
  color: #1267c4;
  display: flex;
  font-size: 10px;
  font-weight: 600;
  gap: 8px;
  grid-column: 2;
}

.app-footer {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: #68737d;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  min-height: 42px;
  padding: 8px 24px;
}

.footer-system {
  align-items: center;
  display: flex;
  gap: 7px;
}

.footer-system i {
  background: var(--line);
  display: block;
  height: 15px;
  margin: 0 8px;
  width: 1px;
}

.button {
  align-items: center;
  background: var(--green-900);
  border: 1px solid var(--green-900);
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
}

.button:hover {
  background: var(--green-950);
}

.summary-strip {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: auto minmax(200px, 1fr) auto minmax(220px, 1fr);
  margin-bottom: 12px;
  padding: 12px 16px;
}

.summary-strip > svg {
  color: var(--green-700);
}

.summary-strip strong,
.summary-strip span {
  display: block;
}

.summary-strip span {
  color: var(--muted);
  font-size: 11px;
}

.master-panel {
  margin-bottom: 12px;
}

.master-table {
  min-width: 680px;
}

.master-table td {
  font-size: 12px;
  padding-bottom: 12px;
  padding-top: 12px;
}

.master-table td:first-child strong,
.master-table td:first-child span,
.master-table td:nth-child(3) strong,
.master-table td:nth-child(3) span {
  display: block;
}

.master-table td span {
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.master-table th:last-child,
.master-table td:last-child {
  text-align: center;
  width: 54px;
}

.table-open {
  color: var(--green-700);
  display: inline-flex;
  padding: 5px;
}

.back-link {
  align-items: center;
  color: #1267c4;
  display: inline-flex;
  font-size: 11px;
  gap: 5px;
  margin-bottom: 8px;
}

.master-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 60px 24px;
  text-align: center;
}

.master-empty-icon {
  align-items: center;
  background: var(--green-100);
  border-radius: 50%;
  color: var(--green-700);
  display: flex;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.master-empty h3 {
  font-size: 17px;
  margin: 16px 0 5px;
}

.master-empty p {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 560px;
}

.access-tabs {
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
}

.access-tabs a {
  align-items: center;
  border-bottom: 2px solid transparent;
  color: #52606b;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  gap: 7px;
  margin-bottom: -1px;
  min-height: 42px;
  padding: 8px 13px;
}

.access-tabs a:hover {
  color: var(--green-700);
}

.access-tabs a.active {
  border-bottom-color: var(--green-700);
  color: var(--green-800);
}

.page-message {
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.page-message.is-success {
  background: var(--green-100);
  color: var(--green-700);
}

.page-message.is-error {
  background: var(--red-100);
  color: var(--red-700);
}

.access-summary {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-gap: 18px;
  gap: 18px;
  grid-template-columns: auto repeat(3, minmax(120px, 1fr));
  margin-bottom: 12px;
  padding: 13px 16px;
}

.access-summary > svg {
  color: var(--green-700);
}

.access-summary > div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.access-summary strong,
.access-summary span {
  display: block;
}

.access-summary strong {
  font-family: Arial, sans-serif;
  font-size: 18px;
}

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

.access-create-panel {
  margin-bottom: 12px;
}

.access-create-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 14px;
}

.access-create-panel > summary::marker {
  color: var(--green-700);
}

.access-create-panel > summary span {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
}

.access-create-panel > summary small {
  color: var(--muted);
  font-size: 10px;
}

.access-create-panel[open] > summary {
  border-bottom: 1px solid var(--line);
}

.access-form {
  display: grid;
  grid-gap: 13px;
  gap: 13px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 16px;
}

.access-form .field,
.stack-form .field {
  gap: 5px;
}

.access-form .field > span,
.stack-form .field > span {
  color: #3d4953;
  font-size: 11px;
  font-weight: 700;
}

.access-form .input,
.stack-form .input {
  min-height: 38px;
  padding: 7px 9px;
}

.access-form-action {
  align-items: flex-end;
  display: flex;
}

.access-table-panel {
  margin-bottom: 12px;
}

.access-table {
  min-width: 760px;
}

.access-table th,
.access-table td {
  padding: 11px 12px;
}

.access-table td {
  font-size: 11px;
}

.access-table td > strong,
.access-table td > span:not(.module-label) {
  display: block;
}

.access-table td > span:not(.module-label) {
  color: var(--muted);
  font-size: 9px;
  margin-top: 2px;
}

.employee-table {
  min-width: 980px;
}

.employee-access-form {
  align-items: center;
  display: grid;
  grid-gap: 8px;
  gap: 8px;
  grid-template-columns: minmax(130px, 1fr) minmax(128px, 1fr) 34px;
}

.employee-access-static {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.compact-input {
  background: var(--surface);
  border: 1px solid #cfd7dc;
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 32px;
  padding: 5px 8px;
  width: 100%;
}

.compact-input:focus,
.icon-save:focus-visible,
.access-tabs a:focus-visible {
  outline: 3px solid rgb(8 124 96 / 0.18);
  outline-offset: 1px;
}

.icon-save {
  align-items: center;
  background: var(--green-900);
  border: 0;
  border-radius: var(--radius);
  color: #fff;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 34px;
}

.icon-save:hover {
  background: var(--green-950);
}

.access-two-column {
  align-items: start;
  display: grid;
  grid-gap: 12px;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 320px;
}

.access-two-column.single-column {
  grid-template-columns: 1fr;
}

.role-list-panel {
  margin-bottom: 12px;
}

.role-list > details {
  border-bottom: 1px solid var(--line-soft);
}

.role-list > details:last-child {
  border-bottom: 0;
}

.role-list > details > summary {
  align-items: center;
  cursor: pointer;
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  list-style: none;
  min-height: 58px;
  padding: 10px 14px;
}

.role-list > details > summary::-webkit-details-marker {
  display: none;
}

.role-list > details > summary:hover {
  background: var(--surface-muted);
}

.role-icon {
  align-items: center;
  background: var(--green-100);
  border-radius: 50%;
  color: var(--green-700);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.role-list summary strong,
.role-list summary small {
  display: block;
}

.role-list summary strong {
  font-size: 12px;
}

.role-list summary small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 9px;
  margin-top: 2px;
}

.role-count {
  color: var(--muted);
  font-size: 10px;
}

.role-permission-form {
  background: #fbfcfd;
  border-top: 1px solid var(--line-soft);
  padding: 14px;
}

.role-permission-form > p {
  color: var(--muted);
  font-size: 11px;
  margin: 0 0 13px;
}

.role-permission-form fieldset {
  border: 0;
  display: grid;
  grid-gap: 7px;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 14px;
  padding: 0;
}

.role-permission-form legend {
  color: #38454f;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 7px;
  text-transform: uppercase;
}

.role-permission-form label {
  align-items: flex-start;
  display: flex;
  gap: 8px;
}

.role-permission-form input {
  accent-color: var(--green-700);
  margin-top: 3px;
}

.role-permission-form label strong,
.role-permission-form label small {
  display: block;
}

.role-permission-form label strong {
  font-size: 10px;
}

.role-permission-form label small {
  color: var(--muted);
  font-family: Arial, sans-serif;
  font-size: 9px;
}

.secondary-button {
  min-height: 34px;
  padding: 6px 10px;
}

.role-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.danger-button {
  align-items: center;
  background: transparent;
  border: 1px solid #e1a8ac;
  border-radius: var(--radius);
  color: var(--red-700);
  display: inline-flex;
  font-weight: 700;
  gap: 7px;
  min-height: 34px;
  padding: 6px 10px;
}

.danger-button:hover {
  background: var(--red-100);
}

.compact-create-panel {
  position: -webkit-sticky;
  position: sticky;
  top: 12px;
}

.stack-form {
  display: grid;
  grid-gap: 13px;
  gap: 13px;
  padding: 14px;
}

.textarea {
  min-height: 82px !important;
  resize: vertical;
}

.module-label {
  align-items: center;
  background: var(--blue-100);
  border-radius: 4px;
  color: var(--blue-700);
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  gap: 5px;
  padding: 4px 6px;
}

.auth-page {
  align-items: center;
  background: #eef3f2;
  display: grid;
  min-height: 100vh;
  padding: 24px;
}

.auth-shell {
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgb(0 49 39 / 0.12);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 430px;
  margin: 0 auto;
  max-width: 1080px;
  min-height: 620px;
  overflow: hidden;
  width: 100%;
}

.auth-brand {
  background: linear-gradient(150deg, #006050 0%, #003e34 100%);
  color: #dcece8;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px;
}

.brand-mark {
  align-items: center;
  display: flex;
  gap: 8px;
}

.brand-mark strong {
  color: #fff;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 21px;
  line-height: 1;
}

.brand-mark span {
  color: #b9d9d2;
  display: block;
  font-family: Arial, sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

.auth-brand h1 {
  color: #fff;
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 54px 0 14px;
  max-width: 590px;
}

.auth-brand p {
  color: #c9dfda;
  font-size: 15px;
  margin: 0;
  max-width: 610px;
}

.auth-checklist {
  display: grid;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 30px;
}

.auth-checklist div {
  align-items: center;
  background: rgb(255 255 255 / 0.07);
  border: 1px solid rgb(255 255 255 / 0.13);
  border-radius: var(--radius);
  display: flex;
  gap: 10px;
  padding: 10px 12px;
}

.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
}

.auth-panel-heading h2 {
  font-size: 24px;
  margin: 0;
}

.auth-panel-heading p,
.auth-help {
  color: var(--muted);
}

.auth-panel-heading p {
  margin: 5px 0 0;
}

.form {
  display: grid;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 26px;
}

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

.field label {
  color: #34414a;
  font-size: 13px;
  font-weight: 700;
}

.input {
  background: var(--surface);
  border: 1px solid #cfd7dc;
  border-radius: var(--radius);
  color: var(--ink);
  min-height: 44px;
  outline: none;
  padding: 10px 12px;
  width: 100%;
}

.input:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgb(8 124 96 / 0.14);
}

.error {
  background: var(--red-100);
  border: 1px solid #efbcc0;
  border-radius: var(--radius);
  color: var(--red-700);
  font-weight: 700;
  margin-top: 16px;
  padding: 10px 12px;
}

.auth-help {
  font-size: 11px;
  margin: 18px 0 0;
  text-align: center;
}

@media (max-width: 1180px) {
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-split {
    grid-template-columns: 1fr;
  }

  .master-shortcuts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar-context:nth-of-type(2),
  .topbar-tools > .topbar-divider:nth-of-type(2) {
    display: none;
  }

  .access-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .app-shell {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .sidebar {
    padding-left: 8px;
    padding-right: 8px;
  }

  .sidebar-brand {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }

  .sidebar-brand-copy,
  .nav a span,
  .nav-chevron,
  .sidebar-logout {
    font-size: 0;
  }

  .nav a {
    justify-content: center;
    padding: 10px;
  }

  .sidebar-logout {
    justify-content: center;
  }

  .sidebar-logout svg {
    width: 20px;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-brand {
    min-height: 430px;
  }

  .access-two-column {
    grid-template-columns: 1fr;
  }

  .compact-create-panel {
    position: static;
  }

  .access-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    min-height: auto;
    padding: 0 12px 10px;
    position: static;
  }

  .sidebar-brand {
    min-height: 68px;
  }

  .sidebar-brand-copy {
    display: block;
  }

  .nav {
    display: flex;
    gap: 5px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav a {
    flex: 0 0 52px;
    min-height: 42px;
  }

  .sidebar-footer {
    display: none;
  }

  .global-topbar {
    min-height: 58px;
    padding: 0 14px;
  }

  .topbar-product strong,
  .topbar-context,
  .topbar-divider,
  .topbar-user > div:not(.avatar),
  .topbar-user > svg {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
  }

  .content {
    padding: 16px 14px 12px;
  }

  .dashboard-heading,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .refresh-button {
    align-self: flex-start;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .master-shortcuts {
    grid-template-columns: 1fr 1fr;
  }

  .summary-strip {
    grid-template-columns: auto 1fr;
  }

  .app-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .footer-system {
    flex-wrap: wrap;
  }

  .auth-page {
    padding: 0;
  }

  .auth-shell {
    border-radius: 0;
    min-height: 100vh;
  }

  .auth-brand,
  .auth-panel {
    padding: 28px 22px;
  }

  .auth-brand {
    min-height: 410px;
  }

  .auth-brand h1 {
    font-size: 25px;
    margin-top: 38px;
  }

  .access-tabs {
    overflow-x: auto;
  }

  .access-tabs a {
    flex: 0 0 auto;
  }

  .access-summary {
    grid-template-columns: auto 1fr;
  }

  .access-summary > div {
    border-left: 0;
    padding-left: 0;
  }

  .access-create-panel > summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .access-form {
    grid-template-columns: 1fr;
  }

  .role-permission-form fieldset {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

