@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Source+Sans+3:wght@400;500;600;700;800&display=swap');

*, ::before, ::after{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop{
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*/

/*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  -o-tab-size: 4;
     tab-size: 4; /* 3 */
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

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

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/

dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::-moz-placeholder, textarea::-moz-placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/

:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */

[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}

.container{
  width: 100%;
}

@media (min-width: 640px){

  .container{
    max-width: 640px;
  }
}

@media (min-width: 768px){

  .container{
    max-width: 768px;
  }
}

@media (min-width: 1024px){

  .container{
    max-width: 1024px;
  }
}

@media (min-width: 1280px){

  .container{
    max-width: 1280px;
  }
}

@media (min-width: 1536px){

  .container{
    max-width: 1536px;
  }
}

.absolute{
  position: absolute;
}

.relative{
  position: relative;
}

.-bottom-16{
  bottom: -4rem;
}

.-left-16{
  left: -4rem;
}

.-left-20{
  left: -5rem;
}

.right-0{
  right: 0px;
}

.top-0{
  top: 0px;
}

.z-0{
  z-index: 0;
}

.z-10{
  z-index: 10;
}

.\!row-span-1{
  grid-row: span 1 / span 1 !important;
}

.-mx-3{
  margin-left: -0.75rem;
  margin-right: -0.75rem;
}

.mx-5{
  margin-left: 1.25rem;
  margin-right: 1.25rem;
}

.mx-auto{
  margin-left: auto;
  margin-right: auto;
}

.my-3{
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.-ml-px{
  margin-left: -1px;
}

.-mt-2{
  margin-top: -0.5rem;
}

.mb-12{
  margin-bottom: 3rem;
}

.mb-2{
  margin-bottom: 0.5rem;
}

.mb-3{
  margin-bottom: 0.75rem;
}

.ml-1{
  margin-left: 0.25rem;
}

.ml-3{
  margin-left: 0.75rem;
}

.mt-1{
  margin-top: 0.25rem;
}

.mt-2{
  margin-top: 0.5rem;
}

.mt-3{
  margin-top: 0.75rem;
}

.mt-4{
  margin-top: 1rem;
}

.mt-6{
  margin-top: 1.5rem;
}

.block{
  display: block;
}

.inline-block{
  display: inline-block;
}

.flex{
  display: flex;
}

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

.table{
  display: table;
}

.grid{
  display: grid;
}

.\!hidden{
  display: none !important;
}

.hidden{
  display: none;
}

.aspect-video{
  aspect-ratio: 16 / 9;
}

.size-12{
  width: 3rem;
  height: 3rem;
}

.size-5{
  width: 1.25rem;
  height: 1.25rem;
}

.size-6{
  width: 1.5rem;
  height: 1.5rem;
}

.h-12{
  height: 3rem;
}

.h-4{
  height: 1rem;
}

.h-40{
  height: 10rem;
}

.h-5{
  height: 1.25rem;
}

.h-6{
  height: 1.5rem;
}

.h-\[32\.5rem\]{
  height: 32.5rem;
}

.h-\[35\.5rem\]{
  height: 35.5rem;
}

.h-full{
  height: 100%;
}

.max-h-32{
  max-height: 8rem;
}

.min-h-screen{
  min-height: 100vh;
}

.w-4{
  width: 1rem;
}

.w-5{
  width: 1.25rem;
}

.w-6{
  width: 1.5rem;
}

.w-\[8rem\]{
  width: 8rem;
}

.w-\[calc\(100\%_\+_8rem\)\]{
  width: calc(100% + 8rem);
}

.w-auto{
  width: auto;
}

.w-full{
  width: 100%;
}

.min-w-0{
  min-width: 0px;
}

.max-w-2xl{
  max-width: 42rem;
}

.max-w-\[877px\]{
  max-width: 877px;
}

.max-w-full{
  max-width: 100%;
}

.flex-1{
  flex: 1 1 0%;
}

.flex-none{
  flex: none;
}

.shrink-0{
  flex-shrink: 0;
}

.flex-grow{
  flex-grow: 1;
}

.origin-top-right{
  transform-origin: top right;
}

.transform{
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}

.cursor-default{
  cursor: default;
}

.cursor-pointer{
  cursor: pointer;
}

.resize{
  resize: both;
}

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

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

.\!flex-row{
  flex-direction: row !important;
}

.flex-col{
  flex-direction: column;
}

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

.items-center{
  align-items: center;
}

.items-baseline{
  align-items: baseline;
}

.items-stretch{
  align-items: stretch;
}

.justify-end{
  justify-content: flex-end;
}

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

.justify-between{
  justify-content: space-between;
}

.justify-items-center{
  justify-items: center;
}

.gap-2{
  gap: 0.5rem;
}

.gap-3{
  gap: 0.75rem;
}

.gap-4{
  gap: 1rem;
}

.gap-6{
  gap: 1.5rem;
}

.space-y-2 > :not([hidden]) ~ :not([hidden]){
  --tw-space-y-reverse: 0;
  margin-top: calc(0.5rem * calc(1 - var(--tw-space-y-reverse)));
  margin-bottom: calc(0.5rem * var(--tw-space-y-reverse));
}

.self-center{
  align-self: center;
}

.overflow-hidden{
  overflow: hidden;
}

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

.overflow-y-hidden{
  overflow-y: hidden;
}

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

.truncate{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.break-words{
  overflow-wrap: break-word;
}

.rounded{
  border-radius: 0.25rem;
}

.rounded-\[10px\]{
  border-radius: 10px;
}

.rounded-full{
  border-radius: 9999px;
}

.rounded-lg{
  border-radius: 0.5rem;
}

.rounded-md{
  border-radius: 0.375rem;
}

.rounded-sm{
  border-radius: 0.125rem;
}

.rounded-l-md{
  border-top-left-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.rounded-r-md{
  border-top-right-radius: 0.375rem;
  border-bottom-right-radius: 0.375rem;
}

.border{
  border-width: 1px;
}

.border-l{
  border-left-width: 1px;
}

.border-l-2{
  border-left-width: 2px;
}

.border-r{
  border-right-width: 1px;
}

.border-t{
  border-top-width: 1px;
}

.border-gray-300{
  --tw-border-opacity: 1;
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1));
}

.border-gray-600{
  --tw-border-opacity: 1;
  border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
}

.border-transparent{
  border-color: transparent;
}

.border-l-red-500{
  --tw-border-opacity: 1;
  border-left-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
}

.bg-\[\#FF2D20\]\/10{
  background-color: rgb(255 45 32 / 0.1);
}

.bg-black{
  --tw-bg-opacity: 1;
  background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
}

.bg-gray-100{
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.bg-gray-200{
  --tw-bg-opacity: 1;
  background-color: rgb(229 231 235 / var(--tw-bg-opacity, 1));
}

.bg-gray-200\/80{
  background-color: rgb(229 231 235 / 0.8);
}

.bg-gray-50{
  --tw-bg-opacity: 1;
  background-color: rgb(249 250 251 / var(--tw-bg-opacity, 1));
}

.bg-gray-800{
  --tw-bg-opacity: 1;
  background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
}

.bg-red-500\/20{
  background-color: rgb(239 68 68 / 0.2);
}

.bg-white{
  --tw-bg-opacity: 1;
  background-color: rgb(255 255 255 / var(--tw-bg-opacity, 1));
}

.bg-zinc-900{
  --tw-bg-opacity: 1;
  background-color: rgb(24 24 27 / var(--tw-bg-opacity, 1));
}

.bg-gradient-to-b{
  background-image: linear-gradient(to bottom, var(--tw-gradient-stops));
}

.from-transparent{
  --tw-gradient-from: transparent var(--tw-gradient-from-position);
  --tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.via-white{
  --tw-gradient-to: rgb(255 255 255 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #fff var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.via-zinc-900{
  --tw-gradient-to: rgb(24 24 27 / 0)  var(--tw-gradient-to-position);
  --tw-gradient-stops: var(--tw-gradient-from), #18181b var(--tw-gradient-via-position), var(--tw-gradient-to);
}

.to-white{
  --tw-gradient-to: #fff var(--tw-gradient-to-position);
}

.to-zinc-900{
  --tw-gradient-to: #18181b var(--tw-gradient-to-position);
}

.fill-red-500{
  fill: #ef4444;
}

.stroke-\[\#FF2D20\]{
  stroke: #FF2D20;
}

.object-cover{
  -o-object-fit: cover;
     object-fit: cover;
}

.object-top{
  -o-object-position: top;
     object-position: top;
}

.p-1{
  padding: 0.25rem;
}

.p-2{
  padding: 0.5rem;
}

.p-4{
  padding: 1rem;
}

.p-6{
  padding: 1.5rem;
}

.px-2{
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-3{
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.px-4{
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-5{
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.px-6{
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.py-10{
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.py-16{
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-2{
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-3{
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.pb-12{
  padding-bottom: 3rem;
}

.pt-3{
  padding-top: 0.75rem;
}

.pt-4{
  padding-top: 1rem;
}

.pt-6{
  padding-top: 1.5rem;
}

.text-left{
  text-align: left;
}

.text-center{
  text-align: center;
}

.text-right{
  text-align: right;
}

.font-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.font-sans{
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.text-2xl{
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-lg{
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm{
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-sm\/relaxed{
  font-size: 0.875rem;
  line-height: 1.625;
}

.text-xl{
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-xs{
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold{
  font-weight: 700;
}

.font-medium{
  font-weight: 500;
}

.font-semibold{
  font-weight: 600;
}

.leading-5{
  line-height: 1.25rem;
}

.text-black{
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}

.text-black\/50{
  color: rgb(0 0 0 / 0.5);
}

.text-blue-500{
  --tw-text-opacity: 1;
  color: rgb(59 130 246 / var(--tw-text-opacity, 1));
}

.text-gray-300{
  --tw-text-opacity: 1;
  color: rgb(209 213 219 / var(--tw-text-opacity, 1));
}

.text-gray-400{
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.text-gray-50{
  --tw-text-opacity: 1;
  color: rgb(249 250 251 / var(--tw-text-opacity, 1));
}

.text-gray-500{
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.text-gray-600{
  --tw-text-opacity: 1;
  color: rgb(75 85 99 / var(--tw-text-opacity, 1));
}

.text-gray-700{
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

.text-gray-900{
  --tw-text-opacity: 1;
  color: rgb(17 24 39 / var(--tw-text-opacity, 1));
}

.text-red-500{
  --tw-text-opacity: 1;
  color: rgb(239 68 68 / var(--tw-text-opacity, 1));
}

.text-white{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.underline{
  text-decoration-line: underline;
}

.antialiased{
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.shadow-\[0px_14px_34px_0px_rgba\(0\2c 0\2c 0\2c 0\.08\)\]{
  --tw-shadow: 0px 14px 34px 0px rgba(0,0,0,0.08);
  --tw-shadow-colored: 0px 14px 34px 0px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-sm{
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.shadow-xl{
  --tw-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}

.ring{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-1{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.ring-black{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(0 0 0 / var(--tw-ring-opacity, 1));
}

.ring-gray-300{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(209 213 219 / var(--tw-ring-opacity, 1));
}

.ring-gray-900\/5{
  --tw-ring-color: rgb(17 24 39 / 0.05);
}

.ring-transparent{
  --tw-ring-color: transparent;
}

.ring-white{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1));
}

.ring-white\/\[0\.05\]{
  --tw-ring-color: rgb(255 255 255 / 0.05);
}

.ring-zinc-800{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(39 39 42 / var(--tw-ring-opacity, 1));
}

.drop-shadow{
  --tw-drop-shadow: drop-shadow(0 1px 2px rgb(0 0 0 / 0.1)) drop-shadow(0 1px 1px rgb(0 0 0 / 0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.drop-shadow-\[0px_4px_34px_rgba\(0\2c 0\2c 0\2c 0\.06\)\]{
  --tw-drop-shadow: drop-shadow(0px 4px 34px rgba(0,0,0,0.06));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.drop-shadow-\[0px_4px_34px_rgba\(0\2c 0\2c 0\2c 0\.25\)\]{
  --tw-drop-shadow: drop-shadow(0px 4px 34px rgba(0,0,0,0.25));
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.filter{
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}

.transition{
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.duration-150{
  transition-duration: 150ms;
}

.duration-300{
  transition-duration: 300ms;
}

.ease-in-out{
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

:root {
    --blue: #2563a9;
    --blue-dark: #1d4e86;
    --blue-soft: #eef5fb;
    --green: #2f7d5b;
    --green-dark: #236245;
    --green-soft: #edf7f2;
    --red: #b9473d;
    --red-soft: #fbefee;
    --ink: #1f2933;
    --muted: #6b7684;
    --line: #e6ebf0;
    --soft: #f7f9fb;
    --card: rgba(255, 255, 255, 0.96);
    --shadow: 0 16px 42px rgba(31, 41, 51, 0.06);
    --shadow-soft: 0 8px 24px rgba(31, 41, 51, 0.045);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--soft);
    color: var(--ink);
    font-family: "Source Sans 3", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button {
    border: 0;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 13px 15px;
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(21, 94, 239, 0.7);
    box-shadow: 0 0 0 4px rgba(21, 94, 239, 0.1);
}

textarea {
    min-height: 90px;
    resize: vertical;
}

label {
    display: grid;
    gap: 7px;
    color: #344054;
    font-size: 0.9rem;
    font-weight: 700;
}

.loading,
.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #f8faf9;
}

.loading {
    display: grid;
    place-items: center;
}

.login-experience {
    width: min(1120px, calc(100vw - 32px));
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    gap: 24px;
    align-items: stretch;
}

.login-story {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: end;
    gap: 18px;
    min-height: 640px;
    padding: 42px;
    border-radius: 34px;
    color: #fff;
    background: #2f6f59;
    box-shadow: var(--shadow);
}

.login-story::before,
.login-story::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.login-story::before {
    width: 280px;
    height: 280px;
    top: -80px;
    right: -60px;
}

.login-story::after {
    width: 180px;
    height: 180px;
    left: 44px;
    top: 90px;
}

.login-story > * {
    position: relative;
    z-index: 1;
}

.login-story p,
.login-story .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

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

.feature-grid span {
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.login-card,
.panel,
.card,
.list-card,
.hero-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.login-card {
    width: 100%;
    padding: 38px;
    align-self: center;
}

.brand-mark,
.sidebar-brand span,
.module-card span {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: var(--green);
    color: white;
    font-weight: 900;
}

.menu-icon {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.brand-mark.xl {
    width: 64px;
    height: 64px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.24);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 1.1;
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h2 {
    font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.muted,
small {
    color: var(--muted);
}

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

.primary-button,
.ghost-button,
.danger-button {
    border-radius: 14px;
    padding: 12px 16px;
    font-weight: 800;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
    background: var(--green);
    color: white;
    box-shadow: none;
}

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

.ghost-button {
    background: #eef4ff;
    color: var(--blue);
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.module-card:hover {
    transform: translateY(-2px);
}

.primary-button:hover {
    background: var(--green-dark);
    box-shadow: none;
}

.alert {
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 700;
}

.alert.danger {
    background: #fff1f0;
    color: var(--red);
}

.app-shell {
    display: grid;
    grid-template-columns: 304px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    background: #ffffff;
    border-right: 1px solid rgba(228, 231, 236, 0.9);
    box-shadow: none;
}

.sidebar-brand {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
}

.sidebar-brand small {
    display: block;
}

.nav-item {
    width: 100%;
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    text-align: left;
    border-radius: 18px;
    padding: 11px 12px;
    background: transparent;
    color: #344054;
    font-weight: 800;
}

.nav-item b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f2f4f7;
    color: var(--muted);
    font-size: 0.72rem;
}

.nav-item b .menu-icon {
    width: 17px;
    height: 17px;
}

.nav-item.active,
.nav-item:hover {
    background: var(--blue-soft);
    color: var(--blue);
}

.nav-item.active b,
.nav-item:hover b {
    background: #fff;
    color: var(--blue);
    box-shadow: none;
}

.nav-section {
    margin: 10px 4px 2px;
    color: #98a2b3;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sidebar-card {
    display: grid;
    gap: 5px;
    margin-top: auto;
    padding: 18px;
    border-radius: 22px;
    background: #f7faf8;
    border: 1px solid #dbe7df;
}

.sidebar-card span {
    color: var(--muted);
    font-size: 0.88rem;
}

.workspace {
    min-width: 0;
    padding: 30px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
    padding: 18px 20px;
    border: 1px solid rgba(228, 231, 236, 0.8);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(16px);
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-title span {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-weight: 700;
}

.avatar {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 16px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
}

.dashboard-layout {
    display: grid;
    gap: 22px;
}

.content-grid,
.admin-grid {
    display: grid;
    grid-template-columns: minmax(310px, 430px) 1fr;
    gap: 22px;
    align-items: start;
}

.hero-card,
.panel,
.card,
.list-card {
    padding: 24px;
}

.hero-card {
    min-height: 320px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 24px;
    align-items: end;
    overflow: hidden;
    position: relative;
    background: #2f6f59;
    color: white;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    top: -90px;
    right: -70px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-card .eyebrow,
.hero-card p {
    color: rgba(255, 255, 255, 0.82);
}

.hero-metrics {
    display: grid;
    gap: 12px;
}

.hero-metrics span,
.insight-strip article {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: 20px;
}

.hero-metrics span {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.86);
}

.hero-metrics strong {
    color: #fff;
    font-size: 1.18rem;
}

.insight-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.insight-strip article {
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.module-card {
    min-height: 205px;
    display: grid;
    gap: 12px;
    align-content: start;
    text-align: left;
    padding: 22px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
}

.module-card::after {
    content: "";
    position: absolute;
    width: 120px;
    height: 120px;
    right: -44px;
    top: -44px;
    border-radius: 999px;
    background: rgba(21, 94, 239, 0.08);
}

.module-card em {
    color: var(--muted);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.module-card strong,
.module-card small,
.module-card span {
    position: relative;
    z-index: 1;
}

.module-card.green span {
    background: var(--green);
}

.module-card.red span {
    background: var(--red);
}

.module-card.blue span {
    background: var(--blue);
}

.module-card.white span {
    background: #344054;
}

.panel-header {
    margin-bottom: 18px;
}

.panel-header p {
    color: var(--muted);
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.tabs button {
    border-radius: 999px;
    padding: 11px 16px;
    background: #f2f4f7;
    font-weight: 800;
}

.tabs button.active {
    background: var(--green-soft);
    color: var(--green);
}

.form-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 6px;
}

.form-heading > span {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    min-width: 46px;
    height: 46px;
    padding: 0 10px;
    border-radius: 16px;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    font-size: 0.82rem;
}

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

.list-card {
    display: grid;
    gap: 12px;
    align-content: start;
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 2px;
}

.list-header span {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 900;
}

.list-item {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.list-item:hover {
    transform: translateY(-1px);
    border-color: #cfd9e3;
    background: #fbfcfd;
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.item-tags span {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f2f4f7;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 800;
}

.list-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 6px;
}

.list-actions .ghost-button,
.list-actions .danger-button {
    padding: 8px 11px;
    border-radius: 12px;
    font-size: 0.84rem;
}

.detail-panel {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
}

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

.compact-form textarea,
.compact-form .primary-button,
.compact-form .form-heading {
    grid-column: 1 / -1;
}

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

.mini-list article {
    display: grid;
    gap: 3px;
    padding: 12px;
    border-radius: 16px;
    background: #f8faf9;
    border: 1px solid var(--line);
}

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

.finance-summary article {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #f8faf9;
}

.finance-alerts {
    display: grid;
    gap: 8px;
}

.finance-alerts article {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: var(--red-soft);
    color: var(--red);
}

.finance-alerts small {
    color: inherit;
}

.permission-toolbar {
    display: grid;
    grid-template-columns: 1fr minmax(220px, 320px);
    gap: 16px;
    align-items: end;
    margin-bottom: 16px;
}

.permission-table {
    display: grid;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 18px;
}

.permission-row {
    min-width: 780px;
    display: grid;
    grid-template-columns: 1.8fr repeat(6, 0.7fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
}

.permission-row.header {
    background: #f9fafb;
    color: var(--muted);
    font-weight: 900;
}

.permission-row input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--green);
}

.narrow {
    max-width: 620px;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 22px;
    background: rgba(31, 41, 51, 0.42);
    z-index: 20;
}

.modal {
    width: min(460px, 100%);
    display: grid;
    gap: 16px;
    padding: 28px;
    border-radius: 26px;
    background: #fff;
    box-shadow: var(--shadow);
}

/* Professional FACOM workspace redesign */

:root {
    --blue: #2563c7;
    --blue-dark: #173a6b;
    --blue-soft: #eef5ff;
    --green: #23915f;
    --green-dark: #166a45;
    --green-soft: #edf8f2;
    --red: #cf3f4a;
    --red-soft: #fff0f2;
    --ink: #172033;
    --muted: #667085;
    --line: #e8edf4;
    --soft: #f4f7fb;
    --card: #ffffff;
    --sidebar: #223043;
    --sidebar-deep: #172434;
    --sidebar-muted: #aab5c4;
    --shadow: 0 24px 70px rgba(23, 32, 51, 0.08);
    --shadow-soft: 0 12px 32px rgba(23, 32, 51, 0.06);
}

body {
    background:
        radial-gradient(circle at 85% 8%, rgba(37, 99, 199, 0.08), transparent 32%),
        linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%);
    color: var(--ink);
}

input,
select,
textarea {
    border-radius: 12px;
    border-color: #dbe3ee;
    background: #fbfdff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 199, 0.11);
}

.login-story {
    background:
        linear-gradient(135deg, rgba(21, 49, 83, 0.94), rgba(37, 99, 199, 0.86)),
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.18), transparent 34%);
}

.app-shell {
    grid-template-columns: 292px minmax(0, 1fr);
    background: transparent;
}

.sidebar {
    overflow-y: auto;
    gap: 6px;
    padding: 26px 18px;
    background:
        linear-gradient(180deg, var(--sidebar) 0%, var(--sidebar-deep) 100%);
    border-right: 0;
    box-shadow: 16px 0 44px rgba(23, 36, 52, 0.14);
}

.sidebar-brand {
    position: relative;
    gap: 14px;
    padding: 6px 6px 24px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sidebar-brand span {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, #5fb8ff, #23915f);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.sidebar-brand strong {
    display: block;
    font-size: 1.08rem;
    letter-spacing: 0.02em;
}

.sidebar-brand small {
    color: var(--sidebar-muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.nav-section {
    margin: 18px 10px 8px;
    color: #7f8da1;
    font-size: 0.68rem;
}

.nav-item {
    grid-template-columns: 38px 1fr;
    min-height: 46px;
    border-radius: 12px;
    padding: 8px 10px;
    color: #e7edf5;
    font-weight: 750;
}

.nav-item b {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #c9d3df;
}

.nav-item span {
    white-space: normal;
    line-height: 1.2;
}

.nav-item.active,
.nav-item:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-item.active {
    box-shadow: inset 3px 0 0 #5fb8ff;
}

.nav-item.active b,
.nav-item:hover b {
    background: #fff;
    color: var(--blue);
}

.sidebar-card {
    margin: 18px 4px 0;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-card small,
.sidebar-card span {
    color: var(--sidebar-muted);
}

.workspace {
    padding: 24px 28px 40px;
}

.topbar {
    position: sticky;
    top: 18px;
    z-index: 10;
    margin-bottom: 18px;
    padding: 14px 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 227, 238, 0.9);
    box-shadow: 0 10px 28px rgba(23, 32, 51, 0.06);
}

.topbar::before {
    content: "";
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border-radius: 10px;
    background:
        linear-gradient(var(--blue), var(--blue)) center 11px / 16px 2px no-repeat,
        linear-gradient(var(--blue), var(--blue)) center center / 16px 2px no-repeat,
        linear-gradient(var(--blue), var(--blue)) center 23px / 16px 2px no-repeat,
        var(--blue-soft);
    color: var(--blue);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 199, 0.08);
}

.topbar-title {
    margin-right: auto;
}

.topbar-title .eyebrow {
    margin-bottom: 4px;
}

.topbar-title h1 {
    font-size: clamp(1.25rem, 2vw, 1.72rem);
}

.topbar-title span {
    margin-top: 4px;
    font-size: 0.9rem;
}

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffc247, #23915f);
}

.primary-button,
.ghost-button,
.danger-button {
    border-radius: 10px;
    padding: 11px 14px;
}

.primary-button {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
}

.ghost-button {
    background: #eef5ff;
    color: var(--blue);
}

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

.hero-card {
    min-height: 260px;
    border: 0;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(37, 99, 199, 0.92), rgba(83, 70, 174, 0.9)),
        radial-gradient(circle at 70% 15%, rgba(255, 255, 255, 0.28), transparent 34%);
    box-shadow: 0 22px 52px rgba(37, 99, 199, 0.22);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background:
        radial-gradient(circle at 30% 20%, #fff 0 2px, transparent 3px),
        radial-gradient(circle at 72% 72%, #fff 0 2px, transparent 3px);
    background-size: 84px 84px;
}

.hero-card::after {
    width: 340px;
    height: 340px;
    top: -120px;
    right: 120px;
    background: rgba(255, 255, 255, 0.1);
}

.hero-card h2 {
    max-width: 760px;
    font-size: clamp(1.65rem, 3vw, 2.55rem);
}

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

.hero-metrics span {
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(14px);
}

.insight-strip {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.insight-strip article,
.module-card,
.panel,
.card,
.list-card,
.detail-panel {
    border-radius: 14px;
    border-color: rgba(219, 227, 238, 0.95);
    box-shadow: 0 10px 26px rgba(23, 32, 51, 0.045);
}

.module-card {
    min-height: 176px;
    padding: 22px;
    border-radius: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.module-card::after {
    width: 108px;
    height: 108px;
    right: -38px;
    top: -38px;
    opacity: 0.95;
}

.module-card:hover {
    border-color: rgba(37, 99, 199, 0.28);
    box-shadow: 0 18px 38px rgba(23, 32, 51, 0.08);
}

.module-card span {
    width: 50px;
    height: 50px;
    border-radius: 16px;
}

.module-card span .menu-icon {
    width: 23px;
    height: 23px;
}

.module-card strong {
    font-size: 1rem;
}

.module-card small {
    line-height: 1.42;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
}

.panel,
.card,
.list-card,
.detail-panel {
    background: #fff;
}

.panel-header {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

.tabs button {
    border: 1px solid transparent;
    border-radius: 10px;
    background: #f3f6fa;
    color: #4a5568;
}

.tabs button.active {
    background: var(--blue-soft);
    border-color: rgba(37, 99, 199, 0.18);
    color: var(--blue);
}

.form-heading > span {
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.list-item {
    border-radius: 12px;
    background: #ffffff;
}

.list-item:hover {
    border-color: rgba(37, 99, 199, 0.22);
    background: #fbfdff;
}

.item-tags span {
    background: #eef2f7;
    color: #4a5568;
}

.finance-summary {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.finance-summary article,
.mini-list article {
    border-radius: 12px;
    background: #f8fafd;
}

@media (max-width: 980px) {
    .app-shell,
    .content-grid,
    .admin-grid,
    .login-experience,
    .hero-card,
    .insight-strip {
        grid-template-columns: 1fr;
    }

    .login-story {
        min-height: 430px;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

@media (max-width: 640px) {
    .workspace,
    .sidebar {
        padding: 16px;
    }

    .login-shell {
        padding: 16px;
    }

    .login-experience {
        width: 100%;
    }

    .login-story,
    .login-card,
    .panel,
    .card,
    .list-card,
    .hero-card,
    .topbar {
        border-radius: 22px;
        padding: 20px;
    }

    .feature-grid,
    .kpi-grid,
    .permission-toolbar,
    .compact-form,
    .finance-summary {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: auto;
    }

    .topbar-actions .ghost-button,
    .topbar-actions .danger-button {
        flex: 1;
    }
}

/* Interface polish inspired by modern admin dashboards */

:root {
    --ui-bg: #f6f8fc;
    --ui-sidebar: #101827;
    --ui-sidebar-2: #142033;
    --ui-primary: #5b5ce2;
    --ui-primary-soft: #eef0ff;
    --ui-success: #21b579;
    --ui-danger: #e13f56;
    --ui-warning: #f0b429;
    --ui-text: #1f2937;
    --ui-muted: #6b7280;
    --ui-border: #edf0f5;
    --ui-row: #ffffff;
}

body {
    background: var(--ui-bg);
    color: var(--ui-text);
    font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
    font-size: 14px;
    letter-spacing: -0.01em;
}

h1,
h2,
h3,
strong {
    letter-spacing: -0.025em;
}

small,
.muted,
.topbar-title span,
.panel-header p,
.form-heading p {
    color: var(--ui-muted);
}

.app-shell {
    grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
    padding: 18px 12px;
    background: linear-gradient(180deg, var(--ui-sidebar) 0%, #0c1422 100%);
    box-shadow: 10px 0 28px rgba(15, 23, 42, 0.12);
}

.sidebar-brand {
    padding: 6px 8px 16px;
    margin-bottom: 8px;
}

.sidebar-brand span {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #22c55e);
}

.sidebar-brand strong {
    font-size: 0.98rem;
}

.sidebar-brand small {
    font-size: 0.64rem;
}

.nav-section {
    margin: 18px 10px 7px;
    color: #738199;
    font-size: 0.62rem;
    letter-spacing: 0.08em;
}

.nav-item {
    min-height: 38px;
    grid-template-columns: 30px 1fr auto;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 8px;
    color: #c8d0dc;
    font-size: 0.86rem;
    font-weight: 650;
}

.nav-module {
    display: grid;
    gap: 4px;
}

.nav-domain {
    display: grid;
    gap: 5px;
    margin-bottom: 6px;
}

.nav-domain-button {
    align-items: center;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 14px;
    color: #c8d0dc;
    display: grid;
    font: inherit;
    gap: 10px;
    grid-template-columns: 32px 1fr auto;
    min-height: 54px;
    padding: 8px 10px;
    text-align: left;
    width: 100%;
}

.nav-domain-button:hover,
.nav-domain-button.active {
    background: rgba(91, 92, 226, 0.16);
    border-color: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.nav-domain-button b {
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    color: #ffffff;
    display: grid;
    height: 32px;
    place-items: center;
    width: 32px;
}

.nav-domain-button .menu-icon {
    height: 17px;
    width: 17px;
}

.nav-domain-button span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.nav-domain-button strong {
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.15;
}

.nav-domain-button small {
    color: #93a0b3;
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.2;
}

.nav-domain-button i {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #ffffff;
    display: grid;
    font-style: normal;
    font-weight: 900;
    height: 22px;
    place-items: center;
    width: 22px;
}

.nav-domain-submenu {
    margin-left: 18px;
    padding-left: 12px;
}

.nav-domain-submenu button {
    gap: 8px;
}

.nav-domain-submenu button.active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.nav-domain-submenu .menu-icon {
    height: 14px;
    width: 14px;
}

.nav-domain-submenu button::before {
    display: none;
}

.nav-module .nav-item i {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    color: #9aa6b8;
    font-style: normal;
    font-size: 0.9rem;
    font-weight: 900;
}

.nav-module.open > .nav-item i,
.nav-module .nav-item:hover i {
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
}

.nav-submenu {
    display: grid;
    gap: 3px;
    margin: 0 0 3px 40px;
    padding-left: 8px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-submenu button {
    display: flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 8px;
    border-radius: 7px;
    background: transparent;
    color: #9aa6b8;
    text-align: left;
    font-size: 0.74rem;
    font-weight: 700;
}

.nav-submenu button:hover {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
}

.nav-subitem {
    display: flex;
    align-items: center;
    min-height: 28px;
    padding: 6px 8px;
    border-radius: 7px;
    background: transparent;
    color: #9aa6b8;
    text-align: left;
    font-size: 0.74rem;
    font-weight: 700;
}

.nav-subitem:hover,
.nav-subitem.active {
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    text-decoration: none;
}

.nav-subitem::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.65;
}

.nav-submenu button::before {
    content: "";
    width: 5px;
    height: 5px;
    margin-right: 7px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0.65;
}

.nav-item b {
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: transparent;
    color: #9aa6b8;
}

.nav-item b .menu-icon {
    width: 16px;
    height: 16px;
}

.nav-item.active,
.nav-item:hover {
    background: rgba(91, 92, 226, 0.18);
    color: #ffffff;
}

.nav-item.active {
    box-shadow: inset 3px 0 0 var(--ui-primary);
}

.nav-item.active b,
.nav-item:hover b {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar-card {
    margin: 14px 4px 0;
    padding: 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
}

.workspace {
    padding: 18px 22px 32px;
}

.topbar {
    top: 10px;
    min-height: 58px;
    margin-bottom: 18px;
    border-radius: 0;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.04);
}

.topbar::before {
    border-radius: 8px;
    background:
        linear-gradient(#374151, #374151) center 11px / 15px 1.5px no-repeat,
        linear-gradient(#374151, #374151) center center / 15px 1.5px no-repeat,
        linear-gradient(#374151, #374151) center 23px / 15px 1.5px no-repeat,
        #ffffff;
    box-shadow: none;
}

.topbar-title .eyebrow {
    display: none;
}

.topbar-title h1 {
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    font-weight: 800;
}

.topbar-title span {
    font-size: 0.78rem;
}

.avatar {
    width: 34px;
    height: 34px;
    font-size: 0.78rem;
    background: var(--ui-primary);
}

.topbar-actions .ghost-button,
.topbar-actions .danger-button {
    padding: 8px 11px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.hero-card {
    min-height: 210px;
    border-radius: 12px;
    background: linear-gradient(135deg, #5c6dea 0%, #7b3fb7 100%);
    box-shadow: 0 16px 36px rgba(91, 92, 226, 0.18);
}

.hero-card h2 {
    font-size: clamp(1.5rem, 2.4vw, 2.25rem);
}

.hero-card p {
    font-size: 0.93rem;
}

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

.hero-metrics span {
    padding: 13px 14px;
    border-radius: 10px;
}

.insight-strip article,
.module-card,
.panel,
.card,
.list-card,
.detail-panel,
.finance-summary article,
.mini-list article {
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.insight-strip article {
    min-height: 92px;
}

.insight-strip article strong {
    color: var(--ui-primary);
    font-size: 1.35rem;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
}

.module-card {
    min-height: 168px;
    place-items: center;
    align-content: center;
    text-align: center;
    padding: 22px 18px;
}

.module-card::after {
    display: none;
}

.module-card span {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    margin-inline: auto;
}

.module-card span .menu-icon {
    width: 22px;
    height: 22px;
}

.module-card em {
    display: inline-flex;
    width: -moz-fit-content;
    width: fit-content;
    margin-inline: auto;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f5f7fb;
    color: var(--ui-muted);
    font-size: 0.64rem;
}

.module-card strong {
    font-size: 0.92rem;
}

.module-card small {
    max-width: 260px;
    font-size: 0.76rem;
}

.module-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.panel,
.card,
.list-card {
    padding: 18px;
}

.panel-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
}

.panel-header h2,
.form-heading h2 {
    font-size: 1.2rem;
}

.content-grid,
.admin-grid {
    grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
    gap: 16px;
}

.form-grid {
    gap: 12px;
}

label {
    gap: 5px;
    color: #374151;
    font-size: 0.78rem;
    font-weight: 700;
}

input,
select,
textarea {
    min-height: 38px;
    border-radius: 8px;
    padding: 9px 11px;
    background: #ffffff;
    font-size: 0.84rem;
}

textarea {
    min-height: 82px;
}

.form-heading {
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--ui-border);
}

.form-heading > span {
    min-width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--ui-primary);
}

.form-heading .menu-icon {
    width: 19px;
    height: 19px;
}

.primary-button,
.ghost-button,
.danger-button {
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 0.84rem;
    font-weight: 750;
}

.primary-button {
    background: linear-gradient(135deg, #667eea, #d946a0);
    box-shadow: 0 10px 22px rgba(91, 92, 226, 0.16);
}

.ghost-button {
    background: #f3f6ff;
    color: var(--ui-primary);
}

.danger-button {
    background: #fff1f3;
    color: var(--ui-danger);
}

.tabs {
    gap: 8px;
}

.tabs button {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.82rem;
}

.list-card {
    gap: 0;
    overflow: hidden;
}

.list-header {
    margin: -18px -18px 0;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ui-border);
    background: #ffffff;
}

.list-header h3 {
    font-size: 0.96rem;
}

.list-header span {
    min-width: 30px;
    height: 28px;
    border-radius: 8px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-size: 0.78rem;
}

.list-item {
    gap: 6px;
    padding: 13px 16px;
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    border-radius: 0;
    background: var(--ui-row);
}

.list-item:last-child {
    border-bottom: 0;
}

.list-item:hover {
    transform: none;
    background: #fbfcff;
}

.list-item strong {
    font-size: 0.88rem;
}

.list-item small {
    font-size: 0.76rem;
}

.item-tags {
    gap: 6px;
}

.item-tags span {
    padding: 4px 7px;
    border-radius: 999px;
    background: #f3f6fb;
    font-size: 0.68rem;
    font-weight: 750;
}

.list-actions {
    padding-top: 4px;
}

.list-actions .ghost-button,
.list-actions .danger-button {
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 0.75rem;
}

.detail-panel {
    padding: 16px;
}

.mini-list {
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
}

.mini-list article {
    border: 0;
    border-bottom: 1px solid var(--ui-border);
    border-radius: 0;
    box-shadow: none;
    padding: 10px 12px;
}

.mini-list article:last-child {
    border-bottom: 0;
}

.finance-summary {
    gap: 8px;
}

.finance-summary article {
    padding: 13px;
}

.finance-summary strong {
    color: var(--ui-primary);
    font-size: 1.25rem;
}

.permission-row {
    border-radius: 8px;
}

.permission-row.header {
    background: #f8fafc;
}

.management-page {
    display: grid;
    gap: 16px;
}

.management-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.management-stats.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 14px;
}

.management-stats article {
    display: grid;
    place-items: center;
    gap: 6px;
    min-height: 104px;
    padding: 16px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
    text-align: center;
}

.management-stats article > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.management-stats article:nth-child(2) > span {
    background: #fff1f3;
    color: var(--ui-danger);
}

.management-stats article:nth-child(3) > span {
    background: #eafaf3;
    color: var(--ui-success);
}

.management-stats article:nth-child(4) > span {
    background: #fff8e7;
    color: var(--ui-warning);
}

.management-stats strong {
    font-size: 1.7rem;
    color: var(--ui-text);
}

.management-stats small {
    font-size: 0.72rem;
}

.management-toolbar {
    display: grid;
    grid-template-columns: 1.2fr 0.7fr 140px;
    gap: 10px;
    align-items: end;
    padding: 12px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.table-card {
    overflow: hidden;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ui-border);
}

.table-header h3 {
    font-size: 0.96rem;
}

.table-header span {
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 28px;
    border-radius: 8px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-weight: 800;
}

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

.data-row {
    min-width: 860px;
    display: grid;
    grid-template-columns: 1.15fr 1.1fr 1.45fr 0.85fr 0.75fr 1fr;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--ui-border);
    font-size: 0.8rem;
}

.data-row:last-child {
    border-bottom: 0;
}

.data-row.table-head {
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
}

.identity-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}

.identity-cell b {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #eef0ff;
    color: var(--ui-primary);
}

.identity-cell strong {
    font-size: 0.82rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    width: -moz-fit-content;
    width: fit-content;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 999px;
    font-style: normal;
    font-size: 0.7rem;
    font-weight: 800;
}

.status-pill.success {
    background: #e9f9f1;
    color: #15834f;
}

.status-pill.danger {
    background: #fff0f2;
    color: var(--ui-danger);
}

.status-pill.warning {
    background: #fff8e7;
    color: #9a6a05;
}

.status-pill.soft {
    background: #eef0ff;
    color: var(--ui-primary);
}

.crud-card {
    display: grid;
    gap: 12px;
}

.crud-card .permission-table {
    margin-bottom: 0;
}

.roles-access-page {
    display: grid;
    gap: 14px;
}

.roles-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background:
        radial-gradient(circle at 88% 28%, rgba(47, 125, 91, 0.18), transparent 18%),
        linear-gradient(135deg, #0f2340, #17446f);
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 35, 64, 0.12);
}

.roles-hero .eyebrow,
.roles-hero p {
    color: rgba(255, 255, 255, 0.78);
}

.roles-hero h3 {
    margin: 0 0 6px;
    font-size: clamp(1.15rem, 2vw, 1.6rem);
}

.roles-hero > span {
    display: grid;
    place-items: center;
    min-width: 48px;
    height: 48px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.role-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
}

.role-card {
    display: grid;
    justify-items: start;
    gap: 8px;
    min-height: 112px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ui-text);
    text-align: left;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.role-card span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.role-card strong {
    font-size: 0.94rem;
}

.role-card small {
    font-size: 0.72rem;
}

.role-card.active {
    border-color: rgba(47, 125, 91, 0.38);
    background: #f2fbf6;
    box-shadow: 0 10px 24px rgba(47, 125, 91, 0.08);
}

.role-card:disabled {
    cursor: not-allowed;
    opacity: 0.78;
}

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

.audit-dashboard {
    gap: 16px;
}

.security-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #ffffff;
}

.security-section-title h3 {
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.security-section-title small {
    display: block;
}

.security-section-title > span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-size: 0.75rem;
    font-weight: 850;
    white-space: nowrap;
}

.security-section-title.compact {
    padding: 14px;
    border-style: dashed;
    background: #fbfcff;
}

.security-kpis,
.security-health {
    margin: 0;
}

.security-operations-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.security-card {
    display: grid;
    align-content: start;
    min-height: 100%;
}

.security-card.incidents {
    border-top: 4px solid var(--red);
}

.security-card.accounts {
    border-top: 4px solid var(--green);
}

.security-card.logs {
    border-top: 4px solid var(--blue);
}

.security-card.reviews {
    border-top: 4px solid #d99516;
}

.security-card-help {
    margin: 0;
    padding: 12px 14px 0;
    color: var(--ui-muted);
    font-size: 0.76rem;
}

.security-card .mini-list {
    grid-template-columns: 1fr;
    padding-top: 10px;
}

.security-review-panel {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.audit-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.audit-health {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.audit-health article {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
}

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

.audit-grid .mini-list {
    border: 0;
    border-radius: 0;
}

@media (max-width: 1100px) {
    .security-operations-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .security-section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

.security-users article {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 6px 10px;
}

.security-users article strong,
.security-users article small {
    min-width: 0;
}

.security-users article button {
    grid-row: 1 / span 2;
    grid-column: 2;
    padding: 8px 10px;
    font-size: 0.72rem;
}

@media (max-width: 1100px) {
    .management-stats,
    .audit-stats,
    .audit-health,
    .audit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .management-toolbar {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .management-stats,
    .management-stats.compact,
    .audit-stats,
    .audit-health,
    .audit-grid {
        grid-template-columns: 1fr;
    }
}

/* FACOM global UI kit: SaaS dashboard patterns applied system-wide */

:root {
    --radius-xs: 6px;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --surface: #ffffff;
    --surface-subtle: #f8fafc;
    --text-strong: #111827;
    --text-soft: #64748b;
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #d946a0 100%);
}

::-moz-selection {
    background: rgba(99, 102, 241, 0.16);
    color: var(--text-strong);
}

::selection {
    background: rgba(99, 102, 241, 0.16);
    color: var(--text-strong);
}

button,
a,
select {
    cursor: pointer;
}

a {
    color: var(--ui-primary);
    text-decoration: none;
    font-weight: 750;
}

a:hover {
    text-decoration: underline;
}

.loading {
    color: var(--ui-primary);
    font-weight: 800;
}

.login-shell {
    /* Auth screen styles live in the dedicated login block below. */
}

.login-experience {
    width: min(1060px, calc(100vw - 40px));
    gap: 18px;
}

.login-story,
.login-card {
    border-radius: var(--radius-lg);
}

.login-story {
    min-height: 560px;
    padding: 34px;
    background:
        linear-gradient(135deg, rgba(11, 39, 72, 0.94), rgba(31, 95, 122, 0.88)),
        radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.18), transparent 28%);
}

.login-card {
    padding: 32px;
    border: 1px solid var(--ui-border);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.08);
}

.feature-grid span {
    border-radius: var(--radius-md);
    font-size: 0.82rem;
}

.workspace > .panel,
.workspace > .dashboard-layout,
.workspace > .admin-grid,
.workspace > .management-page {
    animation: facomFadeIn 0.24s ease both;
}

@keyframes facomFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sidebar::-webkit-scrollbar {
    width: 7px;
}

.sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.14);
    border-radius: 999px;
}

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

.sidebar-brand span {
    color: #fff;
    font-size: 0.95rem;
}

.nav-item {
    position: relative;
}

.nav-item.active::after {
    content: "";
    position: absolute;
    right: 8px;
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: #ffffff;
    opacity: 0.9;
}

.topbar {
    backdrop-filter: blur(18px);
}

.topbar-actions {
    gap: 8px;
}

.hero-card,
.module-card,
.management-stats article,
.table-card,
.card,
.panel,
.list-card,
.detail-panel {
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.card:hover,
.panel:hover,
.table-card:hover,
.detail-panel:hover {
    border-color: #dfe6f0;
}

.hero-card {
    overflow: hidden;
}

.hero-card .eyebrow {
    display: inline-flex;
    width: -moz-fit-content;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-metrics span strong {
    font-size: 1.1rem;
}

.insight-strip article,
.finance-summary article,
.management-stats article {
    position: relative;
    overflow: hidden;
}

.insight-strip article::after,
.finance-summary article::after,
.management-stats article::after {
    content: "";
    position: absolute;
    inset: auto -22px -38px auto;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    background: rgba(99, 102, 241, 0.055);
}

.module-card.green span,
.management-stats article:nth-child(3) > span {
    background: #e9f9f1;
    color: var(--ui-success);
}

.module-card.blue span,
.management-stats article:first-child > span {
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.module-card.red span,
.management-stats article:nth-child(2) > span {
    background: #fff1f3;
    color: var(--ui-danger);
}

.module-card span {
    box-shadow: none;
}

.module-card:hover span {
    transform: scale(1.04);
}

.form-grid .primary-button {
    justify-self: start;
}

.compact-form .primary-button {
    justify-self: stretch;
}

input::-moz-placeholder, textarea::-moz-placeholder {
    color: #a0aec0;
}

input::placeholder,
textarea::placeholder {
    color: #a0aec0;
}

input[type="checkbox"] {
    border-radius: 4px;
}

.tabs {
    padding: 4px;
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.tabs button.active {
    box-shadow: 0 6px 14px rgba(99, 102, 241, 0.12);
}

.list-card > .muted {
    padding: 18px;
}

.data-row,
.permission-row {
    transition: background 0.16s ease;
}

.data-row:not(.table-head):hover,
.permission-row:not(.header):hover {
    background: #fbfcff;
}

.data-row span,
.permission-row span {
    min-width: 0;
}

.data-row span {
    overflow-wrap: anywhere;
}

.status-pill::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: currentColor;
}

.finance-alerts article {
    border: 1px solid rgba(225, 63, 86, 0.15);
}

.modal-backdrop {
    backdrop-filter: blur(7px);
}

.modal {
    border: 1px solid var(--ui-border);
    border-radius: var(--radius-lg);
}

.permission-table,
.data-table {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}

.permission-table::-webkit-scrollbar,
.data-table::-webkit-scrollbar {
    height: 8px;
}

.permission-table::-webkit-scrollbar-thumb,
.data-table::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 999px;
}

.alert.danger {
    border: 1px solid rgba(225, 63, 86, 0.18);
    border-radius: var(--radius-sm);
}

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

    .sidebar {
        position: relative;
        max-height: none;
    }

    .workspace {
        padding: 16px;
    }

    .topbar {
        top: 0;
        border-radius: var(--radius-md);
    }
}

@media (max-width: 640px) {
    .login-experience {
        width: 100%;
    }

    .login-story {
        min-height: 360px;
        padding: 24px;
    }

    .login-card {
        padding: 24px;
    }

    .management-toolbar,
    .table-header,
    .list-header {
        align-items: stretch;
        flex-direction: column;
    }

    .form-grid .primary-button,
    .compact-form .primary-button {
        width: 100%;
    }
}

/* Adaptive card sizing: keeps dense module pages balanced on every screen. */

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 12px;
    align-items: stretch;
}

.module-card {
    min-height: 142px;
    gap: 8px;
    padding: clamp(14px, 1.5vw, 18px);
    align-content: center;
}

.module-card span {
    width: 40px;
    height: 40px;
    border-radius: 11px;
}

.module-card span .menu-icon {
    width: 20px;
    height: 20px;
}

.module-card em {
    padding: 3px 7px;
    font-size: 0.6rem;
}

.module-card strong {
    font-size: clamp(0.84rem, 0.9vw, 0.95rem);
    line-height: 1.25;
}

.module-card small {
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.35;
}

.insight-strip,
.finance-summary,
.management-stats,
.management-stats.compact,
.audit-stats,
.audit-health,
.audit-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
    gap: 10px;
}

.insight-strip article,
.finance-summary article,
.management-stats article,
.audit-health article {
    min-height: auto;
    padding: clamp(12px, 1.35vw, 15px);
}

.management-stats strong,
.finance-summary strong,
.insight-strip article strong {
    font-size: clamp(1.05rem, 1.6vw, 1.45rem);
}

.management-stats small,
.finance-summary small,
.insight-strip article small {
    font-size: 0.7rem;
    line-height: 1.35;
}

.content-grid,
.admin-grid {
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
}

.panel,
.card,
.list-card,
.detail-panel {
    padding: clamp(16px, 1.8vw, 20px);
}

@media (min-width: 1440px) {
    .kpi-grid {
        grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    }
}

@media (max-width: 1180px) {
    .content-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .kpi-grid,
    .insight-strip,
    .finance-summary,
    .management-stats,
    .management-stats.compact,
    .audit-stats,
    .audit-health,
    .audit-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
    }

    .module-card {
        min-height: 128px;
    }
}

/* Screenshot-inspired card grids: compact rows, no large empty areas. */

.dashboard-layout,
.management-page,
.detail-panel {
    gap: 12px;
}

.kpi-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr));
    gap: 12px;
}

.module-card {
    min-height: 118px;
    justify-items: start;
    place-items: initial;
    text-align: left;
    padding: 16px;
}

.module-card span {
    margin-inline: 0;
}

.module-card em {
    margin-inline: 0;
}

.module-card small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.insight-strip,
.finance-summary,
.management-stats,
.management-stats.compact,
.audit-stats,
.audit-health,
.audit-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 235px), 1fr));
    gap: 12px;
}

.finance-summary article,
.management-stats article,
.audit-health article,
.insight-strip article {
    min-height: 86px;
    align-content: center;
}

.finance-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.finance-stat-grid article {
    display: grid;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-left: 4px solid var(--green);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.finance-stat-grid strong {
    color: var(--ui-text);
    font-size: clamp(1.2rem, 2vw, 1.75rem);
    font-weight: 900;
}

.finance-stat-grid small,
.finance-stat-grid span {
    color: var(--ui-muted);
    font-size: 0.76rem;
    font-weight: 750;
}

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

@media (max-width: 640px) {
    .finance-stat-grid {
        grid-template-columns: 1fr;
    }
}

.mini-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 12px;
    overflow: visible;
    border: 0;
    border-radius: 0;
}

.mini-list article {
    min-height: 78px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.035);
    padding: 13px 14px;
    align-content: center;
}

.mini-list article:last-child {
    border-bottom: 1px solid var(--ui-border);
}

.table-card {
    min-width: 0;
}

.table-card .mini-list {
    padding: 12px;
}

.audit-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.security-users article {
    min-height: 84px;
}

@media (min-width: 1200px) {
    .finance-summary,
    .audit-health,
    .audit-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .kpi-grid,
    .mini-list,
    .insight-strip,
    .finance-summary,
    .management-stats,
    .management-stats.compact,
    .audit-stats,
    .audit-health,
    .audit-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard readability inspired by the provided reference, using FACOM colors. */

.hero-card {
    min-height: 178px;
    background:
        radial-gradient(circle at 86% 30%, rgba(255, 255, 255, 0.18), transparent 18%),
        linear-gradient(135deg, #0f2340 0%, #17446f 52%, #226245 100%);
    box-shadow: 0 14px 34px rgba(15, 35, 64, 0.14);
}

.hero-card h2 {
    max-width: 760px;
    font-size: clamp(1.45rem, 2.1vw, 2rem);
}

.hero-card p {
    max-width: 820px;
}

.hero-metrics {
    align-self: stretch;
}

.hero-metrics span {
    min-height: 58px;
    align-content: center;
    border-radius: 10px;
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-stat-card {
    position: relative;
    overflow: hidden;
    display: grid;
    gap: 5px;
    min-height: 118px;
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.dashboard-stat-card::after {
    content: "";
    position: absolute;
    right: -22px;
    top: 20px;
    width: 82px;
    height: 82px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.dashboard-stat-card span {
    position: absolute;
    right: 16px;
    top: 16px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.dashboard-stat-card .menu-icon {
    width: 19px;
    height: 19px;
}

.dashboard-stat-card small,
.dashboard-stat-card strong,
.dashboard-stat-card em {
    position: relative;
    z-index: 1;
}

.dashboard-stat-card small {
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.72rem;
    font-weight: 800;
}

.dashboard-stat-card strong {
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1;
    color: #fff;
}

.dashboard-stat-card em {
    width: -moz-fit-content;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 750;
}

.dashboard-stat-card.blue {
    background: linear-gradient(135deg, #2563a9, #17446f);
}

.dashboard-stat-card.green {
    background: linear-gradient(135deg, #2f7d5b, #1f9d68);
}

.dashboard-stat-card.red {
    background: linear-gradient(135deg, #b9473d, #dc5a52);
}

.dashboard-stat-card.amber {
    background: linear-gradient(135deg, #d99516, #f4b41b);
}

.insight-strip article,
.finance-summary article,
.management-stats article,
.audit-health article,
.mini-list article,
.table-card {
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.045);
}

.insight-strip article strong,
.finance-summary article strong,
.management-stats article strong {
    color: var(--ui-text);
    font-weight: 850;
}

.insight-strip article small,
.finance-summary article small,
.management-stats article small,
.audit-health article small {
    color: #667085;
    font-weight: 650;
}

.table-header h3,
.list-header h3 {
    color: var(--ui-text);
    font-size: 0.98rem;
    font-weight: 850;
}

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

@media (max-width: 640px) {
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Harmonized module layout with secondary navigation. */

.module-workspace {
    display: grid;
    gap: 14px;
}

.module-submenu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.045);
}

.module-submenu button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
}

.module-submenu button:hover {
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.module-submenu .menu-icon {
    width: 15px;
    height: 15px;
}

.module-grid {
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 14px;
}

.module-form-card {
    align-self: start;
    position: sticky;
    top: 148px;
}

.module-section-stack {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.module-section-stack:empty {
    display: none;
}

.module-section-full {
    grid-column: 1 / -1;
    min-width: 0;
}

.module-section-full:empty {
    display: none;
}

.advanced-filter-panel,
.export-toolbar {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
    margin-bottom: 16px;
    padding: 18px;
}

.filter-title,
.export-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.filter-title h3 {
    color: var(--ui-text);
    font-size: 1rem;
    margin: 0;
}

.advanced-filter-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin-top: 14px;
}

.advanced-filter-grid label {
    color: var(--ui-muted);
    display: grid;
    font-size: 0.78rem;
    font-weight: 800;
    gap: 7px;
    text-transform: uppercase;
}

.advanced-filter-grid input,
.advanced-filter-grid select {
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 14px;
    color: var(--ui-text);
    font: inherit;
    min-height: 42px;
    padding: 9px 11px;
    text-transform: none;
}

.export-toolbar {
    padding: 12px 14px;
}

.export-toolbar span {
    color: var(--ui-muted);
    font-size: 0.9rem;
    font-weight: 800;
}

.export-toolbar div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.module-grid .detail-panel,
.module-grid .list-card,
.module-grid .table-card,
.module-grid .card {
    min-height: auto;
}

.module-grid .detail-panel {
    display: grid;
    gap: 12px;
}

.module-grid .finance-summary,
.module-grid .management-stats,
.module-grid .audit-health,
.module-grid .audit-grid,
.module-grid .mini-list {
    align-items: stretch;
}

.module-grid .finance-summary article,
.module-grid .management-stats article,
.module-grid .audit-health article,
.module-grid .mini-list article,
.module-card,
.dashboard-stat-card {
    min-height: 104px;
}

.module-grid .compact-form {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    align-items: end;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #fff;
}

.module-grid .compact-form .form-heading,
.module-grid .compact-form button {
    grid-column: 1 / -1;
}

.module-grid .list-card .list-item {
    min-height: 92px;
}

@media (min-width: 1500px) {
    .module-grid {
        grid-template-columns: minmax(320px, 380px) minmax(0, 1fr);
    }

    .module-grid .finance-summary,
    .module-grid .management-stats,
    .module-grid .mini-list {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 1180px) {
    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-form-card {
        position: static;
    }
}

@media (max-width: 640px) {
    .module-submenu button {
        flex: 1 1 100%;
        justify-content: center;
    }
}

/* FACOM KPI system: readable, consistent dashboard indicators. */

.finance-summary article,
.management-stats article,
.audit-health article,
.insight-strip article {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    justify-items: start;
    place-items: initial;
    min-height: 108px;
    padding: 16px 16px 14px;
    border: 1px solid rgba(219, 227, 238, 0.95);
    border-left: 5px solid var(--blue);
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgba(37, 99, 169, 0.055), transparent 58%),
        #ffffff;
    text-align: left;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.finance-summary article::before,
.management-stats article::before,
.audit-health article::before,
.insight-strip article::before {
    content: "";
    position: absolute;
    right: -26px;
    top: -26px;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: rgba(37, 99, 169, 0.08);
    z-index: -1;
}

.finance-summary article::after,
.management-stats article::after,
.audit-health article::after,
.insight-strip article::after {
    display: none;
}

.finance-summary article small,
.management-stats article small,
.audit-health article small,
.insight-strip article small {
    order: 1;
    color: #667085;
    font-size: 0.72rem;
    font-weight: 850;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.finance-summary article strong,
.management-stats article strong,
.audit-health article strong,
.insight-strip article strong {
    order: 2;
    color: var(--ui-text);
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.audit-health article .status-pill {
    order: 2;
    margin-top: 2px;
}

.finance-summary article span,
.management-stats article > span {
    order: 0;
    width: 36px;
    height: 36px;
    margin-bottom: 2px;
    border-radius: 10px;
    background: rgba(37, 99, 169, 0.1);
    color: var(--blue);
}

.finance-summary article:nth-child(3n + 2),
.management-stats article:nth-child(3n + 2),
.audit-health article:nth-child(3n + 2),
.insight-strip article:nth-child(3n + 2) {
    border-left-color: var(--green);
    background:
        linear-gradient(135deg, rgba(47, 125, 91, 0.075), transparent 58%),
        #ffffff;
}

.finance-summary article:nth-child(3n + 2)::before,
.management-stats article:nth-child(3n + 2)::before,
.audit-health article:nth-child(3n + 2)::before,
.insight-strip article:nth-child(3n + 2)::before {
    background: rgba(47, 125, 91, 0.1);
}

.finance-summary article:nth-child(3n + 2) span,
.management-stats article:nth-child(3n + 2) > span {
    background: rgba(47, 125, 91, 0.12);
    color: var(--green);
}

.finance-summary article:nth-child(3n),
.management-stats article:nth-child(3n),
.audit-health article:nth-child(3n),
.insight-strip article:nth-child(3n) {
    border-left-color: var(--red);
    background:
        linear-gradient(135deg, rgba(185, 71, 61, 0.07), transparent 58%),
        #ffffff;
}

.finance-summary article:nth-child(3n)::before,
.management-stats article:nth-child(3n)::before,
.audit-health article:nth-child(3n)::before,
.insight-strip article:nth-child(3n)::before {
    background: rgba(185, 71, 61, 0.1);
}

.finance-summary article:nth-child(3n) span,
.management-stats article:nth-child(3n) > span {
    background: rgba(185, 71, 61, 0.12);
    color: var(--red);
}

.finance-summary article:nth-child(4n),
.management-stats article:nth-child(4n),
.audit-health article:nth-child(4n),
.insight-strip article:nth-child(4n) {
    border-left-color: #d99516;
    background:
        linear-gradient(135deg, rgba(217, 149, 22, 0.085), transparent 58%),
        #ffffff;
}

.finance-summary article:nth-child(4n)::before,
.management-stats article:nth-child(4n)::before,
.audit-health article:nth-child(4n)::before,
.insight-strip article:nth-child(4n)::before {
    background: rgba(217, 149, 22, 0.12);
}

.finance-summary article:nth-child(4n) span,
.management-stats article:nth-child(4n) > span {
    background: rgba(217, 149, 22, 0.14);
    color: #b7790d;
}

.finance-summary,
.management-stats,
.management-stats.compact,
.audit-stats,
.audit-health,
.insight-strip {
    align-items: stretch;
}

/* FACOM system architecture UI pass: module standard, card taxonomy, tables and forms. */

.module-header-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    background:
        radial-gradient(circle at 94% 20%, rgba(37, 99, 169, 0.12), transparent 22%),
        #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
}

.module-header-card.green {
    background:
        radial-gradient(circle at 94% 20%, rgba(47, 125, 91, 0.14), transparent 22%),
        #ffffff;
}

.module-header-card.red {
    background:
        radial-gradient(circle at 94% 20%, rgba(185, 71, 61, 0.12), transparent 22%),
        #ffffff;
}

.module-header-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--ui-primary-soft);
    color: var(--blue);
}

.module-header-card.green .module-header-icon {
    background: rgba(47, 125, 91, 0.12);
    color: var(--green);
}

.module-header-card.red .module-header-icon {
    background: rgba(185, 71, 61, 0.12);
    color: var(--red);
}

.module-header-card h2 {
    margin-bottom: 6px;
    font-size: clamp(1.15rem, 2vw, 1.55rem);
}

.module-header-card p:not(.eyebrow) {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.86rem;
}

.module-header-meta {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 110px;
}

.module-header-meta span {
    color: var(--ui-text);
    font-size: 1.55rem;
    font-weight: 900;
    line-height: 1;
}

.module-header-meta small {
    font-weight: 800;
    text-transform: uppercase;
}

/* Card taxonomy */

.dashboard-stat-card,
.finance-summary article,
.management-stats article,
.audit-health article,
.insight-strip article {
    /* KPI Card */
    min-height: 112px;
}

.module-card,
.role-card,
.module-submenu button {
    /* Action Card */
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.module-card:hover,
.role-card:hover,
.module-submenu button:hover {
    transform: translateY(-1px);
}

.mini-list article,
.list-item,
.data-row:not(.table-head) {
    /* Data Card / Data Row */
    background: #ffffff;
}

.module-form-card,
.compact-form,
.card.form-grid {
    /* Form Card */
    border-color: rgba(219, 227, 238, 0.98);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

/* Module dashboard normalization */

.module-section-stack > .detail-panel > .list-header:first-child,
.module-section-full > .list-card > .list-header:first-child,
.table-card > .table-header:first-child {
    background: linear-gradient(180deg, #ffffff, #fbfcff);
}

.module-section-stack .finance-summary {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 205px), 1fr));
}

.module-section-stack .finance-summary article strong,
.module-section-stack .management-stats article strong {
    font-size: clamp(1.55rem, 2.1vw, 2.15rem);
}

/* Table and list readability */

.data-table,
.permission-table {
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #ffffff;
}

.data-row,
.permission-row {
    min-height: 46px;
    border-bottom: 1px solid var(--ui-border);
}

.data-row.table-head,
.permission-row.header {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f5f8fc;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.data-row:last-child,
.permission-row:last-child {
    border-bottom: 0;
}

.list-card .list-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.list-card .list-item > strong,
.list-card .list-item > small,
.list-card .list-item > .item-tags {
    grid-column: 1;
}

.list-card .list-actions {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
}

/* Form readability */

.module-form-card {
    display: grid;
    gap: 12px;
}

.module-form-card label,
.compact-form label,
.card.form-grid label {
    padding: 10px;
    border: 1px solid rgba(219, 227, 238, 0.86);
    border-radius: 10px;
    background: #fbfcff;
}

.module-form-card label:focus-within,
.compact-form label:focus-within,
.card.form-grid label:focus-within {
    border-color: rgba(37, 99, 169, 0.45);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(37, 99, 169, 0.07);
}

.module-form-card .form-heading,
.compact-form .form-heading,
.card.form-grid .form-heading {
    margin-bottom: 2px;
    padding: 12px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #ffffff;
}

.module-form-card textarea,
.compact-form textarea {
    min-height: 74px;
}

@media (max-width: 760px) {
    .module-header-card {
        grid-template-columns: 1fr;
    }

    .module-header-meta {
        justify-items: start;
        min-width: 0;
    }

    .list-card .list-item {
        grid-template-columns: 1fr;
    }

    .list-card .list-actions {
        grid-column: 1;
        grid-row: auto;
    }
}

/* Focused submenu interfaces: one selected section fills the workspace. */

.module-grid.section-form,
.module-grid.section-dashboard,
.module-grid.section-records,
.module-grid.section-details {
    grid-template-columns: minmax(0, 1fr);
}

.module-grid.section-form .module-form-card {
    position: static;
    width: 100%;
}

.module-context-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.035);
}

.module-context-bar span {
    color: var(--ui-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.module-submenu button.active {
    background: var(--ui-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 169, 0.18);
}

.module-submenu a.active {
    background: var(--ui-primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(37, 99, 169, 0.18);
}

.admin-form-page {
    max-width: 860px;
}

.admin-list-page {
    display: grid;
    gap: 14px;
}

.locations-table .data-row {
    grid-template-columns: 0.8fr 1.4fr 1fr 1fr 0.8fr;
}

.module-action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
}

.module-action-card {
    display: grid;
    gap: 10px;
    min-height: 170px;
    padding: 18px;
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ui-text);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.045);
    text-decoration: none;
}

.module-action-card:hover {
    border-color: rgba(37, 99, 169, 0.24);
    transform: translateY(-1px);
    text-decoration: none;
}

.module-action-card > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-weight: 900;
}

.module-action-card small {
    color: var(--ui-muted);
    font-weight: 650;
    line-height: 1.45;
}

.module-export-page {
    display: grid;
    gap: 14px;
}

@media (max-width: 640px) {
    .module-context-bar {
        align-items: stretch;
        flex-direction: column;
    }
}

/* Administration hardening: users, access matrix and security posture. */

.compliance-alert {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(185, 71, 61, 0.18);
    border-left: 4px solid var(--ui-danger);
    border-radius: 12px;
    background: #fff7f7;
    color: var(--ui-text);
}

.compliance-alert strong {
    color: var(--ui-danger);
}

.compliance-alert span {
    color: var(--ui-muted);
    font-size: 0.82rem;
    font-weight: 650;
}

.users-table .data-row {
    grid-template-columns: 1.2fr 1.35fr 0.85fr 0.78fr 1fr 1.25fr;
}

.employee-register-card {
    overflow: hidden;
    border: 1px solid rgba(91, 92, 226, 0.14);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)),
        radial-gradient(circle at top left, rgba(91, 92, 226, 0.08), transparent 34%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.employee-register-card .table-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background:
        linear-gradient(135deg, rgba(91, 92, 226, 0.08), rgba(33, 181, 121, 0.05)),
        #ffffff;
}

.employee-register-card .table-header h3 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.employee-register-card .table-header small {
    display: block;
    margin-top: 5px;
    color: var(--ui-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.employee-register-card .table-header > span {
    min-width: 38px;
    height: 34px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ui-primary);
    box-shadow: inset 0 0 0 1px rgba(91, 92, 226, 0.14), 0 10px 24px rgba(91, 92, 226, 0.14);
}

.employee-table {
    border: 0;
    border-radius: 0;
    background: transparent;
}

.employee-table .data-row {
    grid-template-columns: minmax(250px, 1.35fr) minmax(185px, 1fr) minmax(190px, 1fr) minmax(165px, 0.9fr) minmax(205px, 1.05fr) minmax(215px, 1fr) minmax(250px, 1.1fr);
    min-width: 1460px;
    align-items: stretch;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.employee-table .data-row > span {
    display: flex;
    min-height: 68px;
    padding: 14px 16px;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
    align-items: flex-start;
}

.employee-table .data-row > span:last-child {
    border-right: 0;
}

.employee-table .data-row.table-head {
    background: linear-gradient(180deg, #f8fafc, #eef3ff);
    box-shadow: 0 1px 0 rgba(148, 163, 184, 0.14);
}

.employee-table .data-row.table-head > span {
    min-height: 46px;
    align-items: center;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.employee-table .employee-row {
    background: #ffffff;
    transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.employee-table .employee-row:nth-child(odd) {
    background: #fbfdff;
}

.employee-table .employee-row:hover {
    position: relative;
    z-index: 1;
    background: #f7f9ff;
    box-shadow: inset 3px 0 0 var(--ui-primary), 0 12px 28px rgba(15, 23, 42, 0.06);
}

.employee-table .employee-identity,
.employee-table .employee-actions {
    display: flex;
}

.employee-table .employee-meta-cell,
.employee-table .employee-compliance {
    display: grid;
}

.employee-row {
    align-items: stretch;
}

.employee-identity {
    gap: 12px;
    align-items: center;
}

.employee-identity b {
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--ui-primary), #7c3aed);
    color: #ffffff;
    font-size: 0.78rem;
    box-shadow: 0 10px 22px rgba(91, 92, 226, 0.24);
}

.employee-identity > span,
.employee-meta-cell,
.employee-compliance {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.employee-identity strong,
.employee-meta-cell strong {
    color: var(--ui-text);
    font-size: 0.86rem;
    font-weight: 850;
    line-height: 1.25;
}

.employee-identity small,
.employee-meta-cell small {
    color: var(--ui-muted);
    font-size: 0.73rem;
    font-weight: 650;
    line-height: 1.3;
}

.employee-compliance {
    align-content: start;
    justify-items: start;
    align-items: start;
}

.employee-compliance .status-pill {
    padding: 5px 9px;
    border: 1px solid rgba(148, 163, 184, 0.15);
    font-size: 0.68rem;
    font-weight: 850;
}

.employee-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-start;
    align-content: flex-start;
}

.employee-actions .ghost-button,
.employee-actions .danger-button {
    min-width: 78px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 850;
    box-shadow: none;
    transform: none;
}

.employee-actions .ghost-button {
    border: 1px solid rgba(91, 92, 226, 0.16);
    background: #f5f7ff;
}

.employee-actions .danger-button {
    border: 1px solid rgba(225, 63, 86, 0.16);
    background: #fff5f7;
}

.employee-actions .ghost-button:hover,
.employee-actions .danger-button:hover {
    transform: translateY(-1px);
}

.employee-table .employee-empty-row {
    grid-template-columns: 1fr 2fr;
    min-width: 0;
    background: #ffffff;
}

.alert.success {
    background: #e9f9f1;
    color: #15834f;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.table-actions .ghost-button,
.table-actions .danger-button {
    padding: 7px 9px;
    font-size: 0.72rem;
}

.permission-insights,
.security-posture {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.permission-insights article,
.security-posture article {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.permission-insights article {
    border-left: 4px solid var(--ui-primary);
}

.permission-insights article.warning {
    border-left-color: var(--ui-warning);
}

.permission-insights article.success {
    border-left-color: var(--ui-success);
}

.permission-insights strong,
.security-posture strong {
    color: var(--ui-text);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 900;
}

.permission-insights span,
.security-posture span,
.security-posture small {
    color: var(--ui-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.posture-score {
    border-left: 4px solid var(--ui-primary);
}

.risk-line {
    display: block;
    padding: 7px 9px;
    border-radius: 9px;
    background: #fff8e7;
    color: #8a5c09 !important;
}

@media (max-width: 900px) {
    .permission-insights,
    .security-posture {
        grid-template-columns: 1fr;
    }

    .compliance-alert {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Beneficiary module readiness: protection, consent and data quality. */

.field-wide {
    grid-column: 1 / -1;
}

.field-wide select[multiple] {
    min-height: 112px;
}

.beneficiary-dashboard,
.projects-dashboard,
.meal-dashboard {
    display: grid;
    gap: 16px;
}

.beneficiary-quality-grid,
.project-quality-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.beneficiary-quality-grid article,
.project-quality-grid article {
    display: grid;
    gap: 7px;
    padding: 14px;
    border: 1px solid var(--ui-border);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.beneficiary-quality-grid article:first-child,
.project-quality-grid article:first-child {
    border-left: 4px solid var(--green);
}

.beneficiary-quality-grid strong,
.project-quality-grid strong {
    color: var(--ui-text);
    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 900;
}

.beneficiary-quality-grid span,
.beneficiary-quality-grid small,
.project-quality-grid span,
.project-quality-grid small {
    color: var(--ui-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.beneficiary-tags .status-pill,
.project-tags .status-pill {
    padding: 3px 8px;
}

@media (max-width: 900px) {
    .beneficiary-quality-grid,
    .project-quality-grid {
        grid-template-columns: 1fr;
    }
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -48px;
    z-index: 1000;
    padding: 10px 14px;
    border-radius: 10px;
    background: var(--ui-primary);
    color: #ffffff;
    font-weight: 800;
}

.skip-link:focus {
    top: 12px;
}

.toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1100;
    display: grid;
    gap: 10px;
    width: min(360px, calc(100vw - 36px));
}

.toast {
    padding: 12px 14px;
    border-radius: 12px;
    background: #ffffff;
    color: var(--ui-text);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    border-left: 4px solid var(--ui-primary);
    font-weight: 700;
}

.toast.error {
    border-left-color: var(--ui-danger);
}

.toast.info {
    border-left-color: var(--ui-warning);
}

.alert-banner {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fff8e7;
    color: #8a5c09;
    font-weight: 800;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
}

/* International organization home screen and collapsible sidebar modules. */

.nav-domain-button {
    cursor: pointer;
}

.nav-domain-button i {
    font-size: 1rem;
    line-height: 1;
}

.nav-domain-submenu {
    display: grid;
    gap: 4px;
    margin: 4px 0 8px 16px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-domain-submenu .nav-item {
    min-height: 34px;
    grid-template-columns: 26px 1fr;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.76rem;
}

.nav-domain-submenu .nav-item b {
    width: 22px;
    height: 22px;
}

.nav-domain-submenu .nav-item .menu-icon {
    width: 13px;
    height: 13px;
}

.dashboard-home {
    gap: 16px;
}

.home-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    gap: 14px;
    min-height: 236px;
    padding: 28px;
    border-radius: 16px;
    background:
        radial-gradient(circle at 58% 40%, rgba(255, 255, 255, 0.16), transparent 23%),
        radial-gradient(circle at 86% 88%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(135deg, #6374ea 0%, #7542a7 100%);
    color: #ffffff;
    text-align: center;
    box-shadow: 0 18px 42px rgba(91, 92, 226, 0.18);
}

.home-hero::before,
.home-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.09);
}

.home-hero::before {
    width: 220px;
    height: 220px;
    top: 26px;
    left: 42%;
}

.home-hero::after {
    width: 150px;
    height: 150px;
    right: 7%;
    bottom: -42px;
}

.home-hero > * {
    position: relative;
    z-index: 1;
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: -moz-fit-content;
    width: fit-content;
    padding: 7px 14px;
    border-radius: 10px;
    background: #f6b21a;
    color: #101827;
    font-size: 0.78rem;
    font-weight: 900;
}

.home-hero-badge .menu-icon {
    width: 15px;
    height: 15px;
}

.home-hero h2 {
    max-width: 820px;
    color: #ffffff;
    font-size: clamp(1.65rem, 3vw, 2.45rem);
    font-weight: 900;
}

.home-hero p {
    max-width: 760px;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-weight: 650;
}

.home-hero-stats {
    width: min(760px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.home-hero-stats span {
    display: grid;
    gap: 3px;
}

.home-hero-stats strong {
    color: #ffffff;
    font-size: 1.45rem;
    font-weight: 950;
}

.home-hero-stats small {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 750;
}

.home-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 4px 2px;
}

.home-section-title h2 {
    color: var(--blue);
    font-size: 1.35rem;
}

.home-section-title p {
    margin: 5px 0 0;
    color: var(--ui-muted);
    font-weight: 650;
}

.home-section-title > span {
    flex: 0 0 auto;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    font-size: 0.78rem;
    font-weight: 850;
}

.home-domain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 285px), 1fr));
    gap: 14px;
}

.home-domain-card {
    display: grid;
    gap: 10px;
    min-height: 250px;
    padding: 20px;
    border: 1px solid var(--ui-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.045);
    text-align: center;
}

.home-domain-card > span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-inline: auto;
    border-radius: 12px;
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
}

.home-domain-card.green > span {
    background: #e9f9f1;
    color: var(--ui-success);
}

.home-domain-card.red > span {
    background: #fff1f3;
    color: var(--ui-danger);
}

.home-domain-card small {
    color: var(--ui-primary);
    font-size: 0.72rem;
    font-weight: 850;
}

.home-domain-card h3 {
    color: var(--ui-text);
    font-size: 1rem;
}

.home-domain-card p {
    margin: 0;
    color: var(--ui-muted);
    font-size: 0.78rem;
    font-weight: 650;
}

.home-domain-card div {
    display: grid;
    gap: 7px;
    margin-top: 5px;
}

.home-domain-card a {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    padding: 7px 9px;
    border-radius: 9px;
    background: #f8fafc;
    color: #475569;
    font-size: 0.74rem;
    font-weight: 800;
    text-align: left;
}

.home-domain-card a:hover {
    background: var(--ui-primary-soft);
    color: var(--ui-primary);
    text-decoration: none;
}

.home-domain-card a .menu-icon {
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
}

@media (max-width: 760px) {
    .home-hero {
        min-height: auto;
        padding: 22px;
    }

    .home-hero-stats,
    .dashboard-stat-grid {
        grid-template-columns: 1fr;
    }

    .home-section-title {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* CyberScore-inspired FACOM visual system. */

:root {
    --cs-bg: #f8fafc;
    --cs-sidebar: #0f172a;
    --cs-sidebar-soft: #1e293b;
    --cs-primary: #6366f1;
    --cs-primary-light: #818cf8;
    --cs-secondary: #ec4899;
    --cs-success: #10b981;
    --cs-warning: #f59e0b;
    --cs-danger: #ef4444;
    --cs-text: #1e293b;
    --cs-muted: #64748b;
    --cs-border: #e2e8f0;
    --cs-surface: #ffffff;
    --cs-gradient: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --cs-gradient-success: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --cs-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    --cs-shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.055);
}

body {
    background: var(--cs-bg);
    color: var(--cs-text);
    font-family: Inter, "Roboto", "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
}

.app-shell {
    display: block;
    min-height: 100vh;
    background: var(--cs-bg);
}

.main-content {
    margin-left: 280px;
    min-width: 0;
    min-height: 100vh;
    width: auto;
    padding: 88px 28px 0;
    display: flex;
    flex-direction: column;
}

.main-outlet {
    flex: 1 1 auto;
    min-width: 0;
    padding-bottom: 24px;
}

.app-footer {
    margin-top: auto;
    padding: 18px 0 22px;
    border-top: 1px solid #dce5ee;
}

.app-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.app-footer-brand {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin: 0;
    color: #10233d;
}

.app-footer-brand strong {
    font-size: 0.88rem;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.app-footer-brand span {
    color: #6b7684;
    font-size: 0.78rem;
    font-weight: 650;
}

.app-footer-copy {
    margin: 0;
    color: #6b7684;
    font-size: 0.78rem;
    line-height: 1.4;
}

.app-footer-login {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #dce5ee;
}

.app-footer-login .app-footer-inner {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 720px) {
    .app-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .app-footer-login .app-footer-inner {
        align-items: center;
    }
}

.sidebar {
    position: fixed;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    z-index: 1200;
    width: 280px;
    height: 100vh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: var(--cs-sidebar);
    color: #ffffff;
    box-shadow: none;
    overflow: hidden;
}

.sidebar .nav-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 18px 14px 16px;
}

.sidebar-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-height: 0;
    margin: 0;
    padding: 28px 18px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
}

.sidebar-brand .brand-logo {
    width: 100%;
}

.sidebar-brand span {
    display: none;
}

.sidebar-brand strong {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 900;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.brand-logo {
    display: grid;
    justify-items: center;
    gap: 12px;
    text-align: center;
}

.brand-logo-mark {
    display: block;
    width: 72px;
    height: 72px;
    -o-object-fit: contain;
       object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.brand-logo-wordmark {
    display: grid;
    gap: 8px;
    justify-items: center;
}

.brand-logo-wordmark strong {
    margin: 0;
    color: inherit;
    font-size: 1.15rem;
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1.1;
}

.brand-logo-wordmark small {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: inherit;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    opacity: 0.78;
}

.brand-logo-wordmark small::before,
.brand-logo-wordmark small::after {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.brand-logo-sm .brand-logo-mark {
    width: 52px;
    height: 52px;
}

.brand-logo-sidebar .brand-logo-mark {
    width: 84px;
    height: 84px;
}

.brand-logo-sidebar .brand-logo-wordmark strong {
    font-size: 1.22rem;
    letter-spacing: 0.06em;
}

.brand-logo-hero {
    gap: 16px;
    color: #ffffff;
}

.brand-logo-hero .brand-logo-mark {
    width: 110px;
    height: 110px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.brand-logo-hero .brand-logo-wordmark strong {
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.brand-logo-hero .brand-logo-wordmark small {
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    opacity: 0.86;
}

.brand-logo-hero .brand-logo-wordmark small::before,
.brand-logo-hero .brand-logo-wordmark small::after {
    width: 36px;
    background: rgba(255, 255, 255, 0.7);
}

.login-form-brand {
    margin-bottom: 4px;
}

.login-form-brand .brand-logo-mark {
    box-shadow: 0 8px 20px rgba(16, 35, 61, 0.12);
}

.nav-list {
    display: grid;
    gap: 4px;
}

.nav-section {
    margin: 18px 10px 8px;
    color: rgba(255, 255, 255, 0.44);
    font-size: 0.66rem;
    font-weight: 900;
}

.nav-item,
.nav-domain-button {
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.78);
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item {
    min-height: 42px;
    padding: 8px 10px;
    grid-template-columns: 34px minmax(0, 1fr);
}

.nav-item b,
.nav-domain-button b {
    background: transparent;
    color: rgba(255, 255, 255, 0.58);
}

.nav-item:hover,
.nav-item.active,
.nav-domain-button:hover,
.nav-domain-button.active {
    background: rgba(99, 102, 241, 0.18);
    color: #ffffff;
    text-decoration: none;
}

.nav-item:hover b,
.nav-item.active b,
.nav-domain-button:hover b,
.nav-domain-button.active b {
    background: rgba(255, 255, 255, 0.08);
    color: var(--cs-primary-light);
}

.nav-domain-button {
    min-height: 58px;
    background: transparent;
    border: 0;
    grid-template-columns: 36px 1fr 24px;
    padding: 10px;
}

.nav-domain-button small {
    color: rgba(255, 255, 255, 0.48);
}

.nav-domain-button i {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.nav-domain-submenu {
    margin-left: 18px;
    padding: 4px 0 6px 12px;
    border-left-color: rgba(255, 255, 255, 0.11);
}

.nav-subitem {
    color: rgba(255, 255, 255, 0.58);
}

.nav-subitem:hover,
.nav-subitem.active {
    background: rgba(99, 102, 241, 0.14);
}

.sidebar-user-card {
    position: relative;
    left: auto;
    bottom: auto;
    z-index: 2;
    flex: 0 0 auto;
    width: auto;
    margin: 0 14px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.sidebar-user-card b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: var(--cs-primary);
}

.sidebar-user-card span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.sidebar-user-card strong {
    overflow: hidden;
    color: #ffffff;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-user-card small {
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.72rem;
}

.topbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 280px;
    z-index: 100;
    min-height: 64px;
    margin: 0;
    padding: 0 28px;
    border: 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    border-radius: 0;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 1px 20px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(16px);
}

.topbar::before {
    display: none;
}

.topbar-title h1 {
    width: -moz-fit-content;
    width: fit-content;
    background: var(--cs-gradient);
    background-clip: text;
    color: transparent;
    font-size: 1.15rem;
    font-weight: 900;
    -webkit-background-clip: text;
}

.topbar-title span {
    color: var(--cs-muted);
    font-size: 0.78rem;
}

.topbar-actions {
    gap: 10px;
}

.topbar-icon-button {
    position: relative;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--cs-muted);
    box-shadow: inset 0 0 0 1px var(--cs-border);
}

.topbar-icon-button::before {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 999px 999px 4px 4px;
    border: 2px solid currentColor;
    border-bottom: 0;
}

.topbar-icon-button span {
    position: absolute;
    right: 4px;
    top: 2px;
    display: grid;
    place-items: center;
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: var(--cs-danger);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
}

.topbar-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px 6px 6px;
    border-radius: 999px;
    background: #ffffff;
    color: var(--cs-text);
    box-shadow: inset 0 0 0 1px var(--cs-border);
}

.topbar-profile:hover {
    text-decoration: none;
}

.topbar-profile b {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--cs-primary);
    color: #ffffff;
    font-size: 0.76rem;
}

.topbar-profile span {
    display: grid;
    gap: 1px;
}

.topbar-profile strong {
    font-size: 0.78rem;
}

.topbar-profile small {
    color: var(--cs-muted);
    font-size: 0.68rem;
}

.login-shell {
    position: relative;
    overflow: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 3vh, 28px);
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 169, 0.08), transparent 28%),
        radial-gradient(circle at 88% 82%, rgba(47, 125, 91, 0.08), transparent 30%),
        #e8eef4;
}

.login-shell-motion {
    animation: login-shell-in 0.7s ease both;
}

.login-shell::before,
.login-shell::after {
    display: none;
}

.login-stage {
    width: min(1080px, 100%);
    height: min(620px, calc(100dvh - 40px));
    max-height: calc(100dvh - 40px);
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(16, 35, 61, 0.16);
    animation: login-stage-in 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-visual {
    position: relative;
    overflow: hidden;
    display: grid;
    align-content: center;
    color: #f4f8fc;
    background:
        linear-gradient(160deg, rgba(8, 32, 64, 0.22) 0%, rgba(8, 32, 64, 0.55) 42%, rgba(8, 32, 64, 0.82) 100%),
        linear-gradient(135deg, #0b2748 0%, #163f6b 46%, #1f5f7a 100%);
}

.login-visual-atmosphere {
    position: absolute;
    inset: -8%;
    background:
        radial-gradient(ellipse 70% 55% at 18% 18%, rgba(47, 125, 91, 0.38), transparent 58%),
        radial-gradient(ellipse 55% 45% at 88% 12%, rgba(90, 156, 214, 0.32), transparent 52%),
        radial-gradient(ellipse 50% 40% at 70% 85%, rgba(185, 71, 61, 0.14), transparent 60%);
    animation: login-atmosphere 12s ease-in-out infinite alternate;
}

.login-visual-mesh {
    position: absolute;
    inset: -20%;
    opacity: 0.24;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
            mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
    animation: login-mesh 28s linear infinite;
}

.login-visual-sheen {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.08) 48%, transparent 66%);
    background-size: 220% 100%;
    animation: login-sheen 9s ease-in-out infinite;
    pointer-events: none;
}

.login-visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(2px);
    pointer-events: none;
}

.login-visual-orb-a {
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    top: -12%;
    right: -8%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 70%);
    animation: login-orb 16s ease-in-out infinite alternate;
}

.login-visual-orb-b {
    width: min(34vw, 320px);
    height: min(34vw, 320px);
    left: -10%;
    bottom: 8%;
    background: radial-gradient(circle, rgba(47, 125, 91, 0.38) 0%, rgba(47, 125, 91, 0) 72%);
    animation: login-orb 20s ease-in-out infinite alternate-reverse;
}

.login-visual-content {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 20px;
    max-width: 520px;
    padding: clamp(24px, 3.5vw, 40px);
}

.login-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: login-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.login-reveal-1 { animation-delay: 0.08s; }

.login-reveal-2 { animation-delay: 0.22s; }

.login-reveal-3 { animation-delay: 0.34s; }

.login-reveal-4 { animation-delay: 0.2s; }

.login-brand-pulse .brand-logo-mark {
    animation: login-logo-pulse 1.4s ease-out 0.2s 1 both;
}

.login-brand-lockup {
    display: grid;
    gap: 16px;
    justify-items: start;
}

.login-brand-lockup .brand-logo {
    justify-items: start;
    text-align: left;
}

.login-brand-lockup .brand-logo-wordmark {
    justify-items: start;
}

.login-brand-lockup .brand-logo-wordmark small::before {
    display: none;
}

.login-eyebrow,
.login-form-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-eyebrow {
    color: rgba(220, 236, 248, 0.78);
}

.login-brand-lockup h1 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(2.6rem, 4.5vw, 3.6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: #ffffff;
}

.login-lede {
    margin: 0;
    max-width: 34ch;
    color: rgba(234, 243, 250, 0.88);
    font-size: clamp(0.95rem, 1.2vw, 1.08rem);
    font-weight: 500;
    line-height: 1.5;
}

.login-mission-lines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.login-mission-lines li {
    display: grid;
    gap: 2px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    transition: transform 0.25s ease, padding-left 0.25s ease, background 0.25s ease;
}

.login-mission-lines li:hover {
    transform: translateX(4px);
    padding-left: 4px;
}

.login-mission-lines strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
}

.login-mission-lines span {
    color: rgba(220, 236, 248, 0.72);
    font-size: 0.88rem;
}

.login-visual-foot {
    margin: 0;
    color: rgba(220, 236, 248, 0.58);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: clamp(20px, 3vw, 36px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(244, 248, 251, 0.95)),
        #eef3f8;
}

.login-form {
    width: min(380px, 100%);
    display: grid;
    gap: 16px;
}

.login-form-head {
    display: grid;
    gap: 8px;
}

.login-form-kicker {
    color: #2f7d5b;
}

.login-form-head h2 {
    margin: 0;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.65rem, 2.4vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #10233d;
}

.login-form-head p {
    margin: 0;
    color: #5b6b7c;
    font-size: 0.98rem;
    line-height: 1.5;
}

.login-form-error {
    margin: 0;
    animation: login-shake 0.35s ease;
}

.login-form-error-locked {
    border: 1px solid rgba(180, 45, 45, 0.28);
    background: rgba(180, 45, 45, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 650;
}

.login-fields {
    display: grid;
    gap: 16px;
}

.login-fields label {
    color: #243447;
    font-weight: 650;
}

.login-fields input {
    border-radius: 14px;
    border-color: #d5dee8;
    background: rgba(255, 255, 255, 0.92);
    padding: 14px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.login-fields input:hover {
    border-color: #b8c7d8;
}

.login-fields input:focus {
    border-color: rgba(37, 99, 169, 0.75);
    box-shadow: 0 0 0 4px rgba(37, 99, 169, 0.12), 0 10px 22px rgba(37, 99, 169, 0.08);
    transform: translateY(-1px);
    background: #fff;
}

.login-remember {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dce5ee;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.72);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.login-remember:hover {
    border-color: #c5d3e4;
    background: #fff;
}

.login-remember input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: #2563a9;
}

.login-remember span {
    display: grid;
    gap: 2px;
}

.login-remember strong {
    color: #243447;
    font-size: 0.9rem;
    font-weight: 750;
}

.login-remember small {
    color: #6b7684;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
}

.login-password-field {
    position: relative;
}

.login-password-field input {
    padding-right: 92px;
}

.login-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 8px 10px;
    border-radius: 10px;
    background: transparent;
    color: #2563a9;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
    background: rgba(37, 99, 169, 0.08);
    outline: none;
}

.login-submit {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    font-weight: 750;
    letter-spacing: 0.01em;
    box-shadow: 0 12px 28px rgba(37, 99, 169, 0.22);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(37, 99, 169, 0.3);
    filter: brightness(1.03);
}

.login-submit:active:not(:disabled) {
    transform: translateY(0);
}

.login-trust {
    padding-top: 4px;
    border-top: 1px solid #dce5ee;
}

.login-trust p {
    margin: 0;
    display: grid;
    gap: 4px;
    color: #6b7684;
    font-size: 0.84rem;
    line-height: 1.45;
}

.login-trust strong {
    color: #243447;
    font-size: 0.82rem;
}

@keyframes login-shell-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes login-stage-in {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes login-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes login-atmosphere {
    from { transform: scale(1) translate(0, 0); }
    to { transform: scale(1.1) translate(-2%, 1.5%); }
}

@keyframes login-mesh {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-48px, -24px, 0); }
}

@keyframes login-sheen {
    0%, 45% { background-position: 120% 0; opacity: 0; }
    55% { opacity: 1; }
    70%, 100% { background-position: -40% 0; opacity: 0; }
}

@keyframes login-orb {
    from { transform: translate(0, 0) scale(1); }
    to { transform: translate(-22px, 16px) scale(1.05); }
}

@keyframes login-logo-pulse {
    0% { transform: scale(0.92); box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18); }
    55% { transform: scale(1.04); box-shadow: 0 16px 34px rgba(37, 99, 169, 0.28); }
    100% { transform: scale(1); box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28); }
}

@keyframes login-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

@media (max-width: 980px) {
    .login-stage {
        grid-template-columns: 1fr;
        height: auto;
        max-height: none;
        width: min(460px, 100%);
    }

    .login-visual {
        min-height: auto;
        align-content: start;
    }

    .login-visual-content {
        gap: 16px;
        padding: 28px 24px 22px;
    }

    .login-brand-lockup h1 {
        font-size: clamp(2.4rem, 10vw, 3.2rem);
    }

    .login-mission-lines {
        display: none;
    }

    .login-panel {
        padding: 24px 20px 28px;
        align-items: start;
    }

    .login-visual-mesh,
    .login-visual-sheen {
        animation-duration: 36s, 14s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-shell-motion,
    .login-stage,
    .login-reveal,
    .login-visual-atmosphere,
    .login-visual-mesh,
    .login-visual-sheen,
    .login-visual-orb,
    .login-brand-pulse .brand-logo-mark,
    .login-form-error {
        animation: none !important;
    }

    .login-reveal {
        opacity: 1;
        transform: none;
    }

    .login-fields input:focus,
    .login-submit:hover:not(:disabled),
    .login-mission-lines li:hover {
        transform: none;
    }
}

.cyberscore-login-card {
    position: relative;
    z-index: 1;
    width: min(480px, 100%);
    overflow: hidden;
    padding: 28px;
    border: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 20px 40px rgba(16, 35, 61, 0.12);
}

.panel,
.card,
.list-card,
.detail-panel,
.table-card,
.advanced-filter-panel,
.export-toolbar,
.module-header-card,
.home-domain-card,
.module-action-card,
.management-stats article,
.finance-summary article,
.audit-health article,
.insight-strip article {
    border: 1px solid var(--cs-border);
    border-radius: 18px;
    background: var(--cs-surface);
    box-shadow: var(--cs-shadow-soft);
}

.module-header-card {
    padding: 22px;
}

.module-header-icon,
.form-heading > span,
.table-header span,
.list-header span,
.home-domain-card > span,
.module-action-card > span {
    background: rgba(99, 102, 241, 0.1);
    color: var(--cs-primary);
}

.primary-button {
    border-radius: 10px;
    background: var(--cs-gradient);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(99, 102, 241, 0.18);
}

.primary-button:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #db2777 100%);
}

.ghost-button {
    border: 1px solid var(--cs-border);
    border-radius: 10px;
    background: #ffffff;
    color: var(--cs-primary);
}

.danger-button {
    border: 1px solid rgba(239, 68, 68, 0.14);
    border-radius: 10px;
    background: #fff1f2;
    color: var(--cs-danger);
}

input,
select,
textarea {
    min-height: 42px;
    border-color: var(--cs-border);
    border-radius: 10px;
    background: #ffffff;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--cs-primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.11);
}

.advanced-filter-panel {
    padding: 18px;
}

.advanced-filter-grid label,
.module-form-card label,
.compact-form label,
.card.form-grid label {
    border: 0;
    background: transparent;
}

.table-card {
    overflow: hidden;
}

.table-header,
.list-header {
    border-bottom: 1px solid var(--cs-border);
    background: #ffffff;
}

.data-row.table-head,
.permission-row.header {
    background: #f8fafc;
    color: #475569;
}

.data-row,
.permission-row {
    border-bottom-color: var(--cs-border);
}

.data-row:not(.table-head):hover,
.permission-row:not(.header):hover,
.list-item:hover {
    background: #f8fafc;
}

.status-pill.soft {
    background: rgba(99, 102, 241, 0.1);
    color: var(--cs-primary);
}

.status-pill.success {
    background: rgba(16, 185, 129, 0.12);
    color: #047857;
}

.status-pill.danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--cs-danger);
}

.home-hero,
.hero-card {
    border-radius: 22px;
    background:
        radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.18), transparent 28%),
        var(--cs-gradient);
    box-shadow: 0 22px 52px rgba(99, 102, 241, 0.2);
}

.dashboard-stat-card {
    border-radius: 18px;
}

.dashboard-stat-card.blue {
    background: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
}

.dashboard-stat-card.green {
    background: var(--cs-gradient-success);
}

.dashboard-stat-card.red {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.dashboard-stat-card.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.module-submenu {
    border-radius: 16px;
}

.module-submenu a,
.module-submenu button {
    border-radius: 10px;
}

.module-submenu a.active,
.module-submenu button.active {
    background: var(--cs-gradient);
}

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

    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
        max-height: none;
    }

    .sidebar-user-card {
        position: static;
        width: auto;
        margin: 12px 14px 18px;
    }

    .topbar {
        position: sticky;
        left: 0;
        padding: 12px 16px;
    }

    .main-content {
        margin-left: 0;
        padding: 16px;
        width: 100%;
    }
}

/* ===== Production polish: registry tables, filters, buttons ===== */

.registry-workspace {
    display: grid;
    gap: 16px;
}

.registry-table .table-header {
    align-items: center;
}

.table-header > div small,
.table-header small {
    display: block;
    margin-top: 4px;
    color: var(--cs-muted, #64748b);
    font-size: 0.78rem;
    font-weight: 600;
}

.table-header-actions,
.export-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.export-toolbar-meta {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.export-toolbar-meta strong {
    font-size: 1.2rem;
    color: var(--cs-text, #0f172a);
}

.empty-table {
    padding: 28px 18px;
    text-align: center;
}

.registry-table .data-row {
    min-width: 0;
}

.registry-table .data-row > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.users-table .data-row,
.locations-table .data-row {
    align-items: center;
}

.users-table .data-row {
    grid-template-columns: 1.2fr 1.2fr 0.8fr 1fr 0.7fr 1fr;
}

.locations-table .data-row {
    grid-template-columns: 0.8fr 1.3fr 1fr 0.8fr 0.7fr;
}

.primary-button,
.ghost-button,
.danger-button,
.soft-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.primary-button:hover,
.ghost-button:hover,
.danger-button:hover,
.soft-button:hover {
    transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.soft-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button-sm {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.8rem;
}

.button-lg {
    min-height: 48px;
    padding: 0 20px;
    font-size: 0.95rem;
}

.soft-button {
    border: 1px solid rgba(99, 102, 241, 0.18);
    background: rgba(99, 102, 241, 0.08);
    color: var(--cs-primary, #4f46e5);
}

a.primary-button,
a.ghost-button,
a.soft-button {
    text-decoration: none;
}

.status-pill.warning {
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
}

.pagination-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 14px;
    background: #ffffff;
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    display: flex;
    justify-content: flex-end;
    background: rgba(15, 23, 42, 0.42);
}

.record-drawer {
    width: min(460px, 100%);
    height: 100%;
    overflow: auto;
    padding: 22px;
    background: #ffffff;
    box-shadow: -18px 0 48px rgba(15, 23, 42, 0.18);
}

.record-drawer-wide {
    width: min(720px, 100%);
}

.drawer-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.drawer-header h3 {
    margin: 4px 0 0;
}

.drawer-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.drawer-subtitle {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-weight: 700;
}

.drawer-body {
    display: grid;
    gap: 18px;
}

.drawer-section h4,
.drawer-relation-head h4 {
    margin: 0 0 10px;
    font-size: 0.92rem;
}

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

.drawer-grid > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 12px;
    background: #f8fafc;
}

.drawer-grid small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.drawer-relation {
    padding: 14px;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 14px;
    background: #fff;
}

.drawer-relation-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.drawer-relation-head span {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 800;
}

.drawer-relation ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 6px;
}

.drawer-relation li {
    color: #334155;
    font-size: 0.9rem;
}

.drawer-edit-form {
    display: grid;
    gap: 16px;
}

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

.drawer-edit-grid label {
    display: grid;
    gap: 6px;
    font-size: 0.86rem;
    font-weight: 700;
    color: #334155;
}

.drawer-edit-grid .span-2 {
    grid-column: 1 / -1;
}

.drawer-edit-grid input,
.drawer-edit-grid select,
.drawer-edit-grid textarea {
    width: 100%;
    min-height: 42px;
    padding: 10px 12px;
    border: 1px solid var(--cs-border, #cbd5e1);
    border-radius: 10px;
    background: #fff;
}

.drawer-edit-grid textarea {
    min-height: 88px;
    resize: vertical;
}

.drawer-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 4px;
}

.hr-drawer-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--cs-border, #e2e8f0);
}

.hr-drawer-tabs button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 6px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

.hr-drawer-tabs button span {
    display: inline-flex;
    min-width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #e2e8f0;
    font-size: 0.7rem;
}

.hr-drawer-tabs button.active {
    background: #0f766e;
    border-color: #0f766e;
    color: #fff;
}

.hr-drawer-tabs button.active span {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.hr-panel {
    display: grid;
    gap: 14px;
}

.hr-panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.hr-panel-toolbar strong {
    display: block;
}

.hr-panel-toolbar small {
    color: #64748b;
}

.hr-inline-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 14px;
    background: #f8fafc;
}

.hr-inline-form label {
    display: grid;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.hr-inline-form .span-2,
.hr-inline-form-actions {
    grid-column: 1 / -1;
}

.hr-inline-form input,
.hr-inline-form select,
.hr-inline-form textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid var(--cs-border, #cbd5e1);
    border-radius: 10px;
    background: #fff;
}

.hr-inline-form-actions {
    display: flex;
    justify-content: flex-end;
}

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

.hr-item-card {
    padding: 12px 14px;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 12px;
    background: #fff;
}

.hr-item-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.hr-item-card-head strong {
    display: block;
}

.hr-item-card-head small,
.hr-item-card .muted {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 0.84rem;
}

.hr-item-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.hr-alert-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.hr-alert-grid article {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 14px;
    background: #fff;
}

.hr-alert-grid article strong {
    font-size: 1.4rem;
    line-height: 1.1;
}

.hr-alert-grid article span {
    color: #64748b;
    font-size: 0.86rem;
}

.hr-alert-grid article.tone-warning {
    border-color: #f59e0b;
    background: #fffbeb;
}

.hr-alert-grid article.tone-success {
    border-color: #10b981;
    background: #ecfdf5;
}

.ged-validate-panel label {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #334155;
}

.ged-validate-panel textarea {
    width: 100%;
    min-height: 72px;
    padding: 8px 10px;
    border: 1px solid var(--cs-border, #cbd5e1);
    border-radius: 10px;
    background: #fff;
}

.hr-ops-filter {
    min-height: 34px;
    padding: 6px 10px;
    border: 1px solid var(--cs-border, #cbd5e1);
    border-radius: 10px;
    background: #fff;
    font-size: 0.84rem;
    font-weight: 600;
}

.hr-ops-panel .hr-ops-body {
    padding-bottom: 8px;
}

.module-submenu {
    flex-wrap: wrap;
}

.hr-overview-list ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 8px;
}

.hr-overview-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--cs-border, #e2e8f0);
    border-radius: 10px;
    background: #f8fafc;
}

.hr-overview-list .linkish {
    border: 0;
    background: transparent;
    color: #0f766e;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

@media (max-width: 720px) {
    .drawer-grid,
    .drawer-edit-grid,
    .hr-inline-form,
    .hr-alert-grid {
        grid-template-columns: 1fr;
    }

    .drawer-edit-grid .span-2,
    .hr-inline-form .span-2,
    .hr-inline-form-actions {
        grid-column: auto;
    }
}

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

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

@media (max-width: 720px) {
    .advanced-filter-grid {
        grid-template-columns: 1fr;
    }

    .table-header,
    .export-toolbar,
    .filter-title {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Roles & Acces — professional matrix UI */

.management-page-access {
    gap: 16px;
}

.roles-access-page {
    display: grid;
    gap: 16px;
    padding-bottom: 88px;
}

.roles-hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border: 1px solid rgba(15, 35, 64, 0.18);
    border-radius: 18px;
    background:
        radial-gradient(circle at 92% 18%, rgba(47, 125, 91, 0.28), transparent 28%),
        radial-gradient(circle at 12% 80%, rgba(37, 99, 169, 0.35), transparent 32%),
        linear-gradient(135deg, #0b1c33 0%, #14355a 55%, #1a4d6e 100%);
    color: #fff;
    box-shadow: 0 18px 40px rgba(11, 28, 51, 0.18);
}

.roles-hero .eyebrow {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
}

.roles-hero h3 {
    margin: 0 0 8px;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    letter-spacing: -0.02em;
}

.roles-hero p {
    margin: 0;
    max-width: 54ch;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.45;
}

.roles-hero-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
}

.role-chip {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.82rem;
    font-weight: 800;
}

.roles-hero-meta small {
    color: rgba(255, 255, 255, 0.72);
    font-weight: 650;
}

.roles-access-page .role-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.roles-access-page .role-card {
    position: relative;
    gap: 6px;
    min-height: 138px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #dbe3ee;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    overflow: hidden;
}

.roles-access-page .role-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #94a3b8;
}

.roles-access-page .role-card.tone-admin::before { background: #0f2340; }

.roles-access-page .role-card.tone-manager::before { background: #2563a9; }

.roles-access-page .role-card.tone-agent::before { background: #2f7d5b; }

.roles-access-page .role-card.tone-viewer::before { background: #64748b; }

.roles-access-page .role-card span {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #eef5fb;
    color: #17446f;
    font-weight: 900;
}

.roles-access-page .role-card.tone-manager span { background: #e8f1fb; color: #2563a9; }

.roles-access-page .role-card.tone-agent span { background: #edf7f2; color: #2f7d5b; }

.roles-access-page .role-card.tone-viewer span { background: #f1f5f9; color: #475569; }

.roles-access-page .role-card.tone-admin span { background: #e8eef5; color: #0f2340; }

.roles-access-page .role-card strong {
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.roles-access-page .role-card small {
    color: #334155;
    font-size: 0.8rem;
    font-weight: 750;
}

.roles-access-page .role-card em {
    color: #64748b;
    font-size: 0.74rem;
    font-style: normal;
    line-height: 1.35;
}

.roles-access-page .role-card.active {
    border-color: rgba(47, 125, 91, 0.42);
    background: linear-gradient(180deg, #f4fbf7, #eef8f3);
    box-shadow: 0 14px 32px rgba(47, 125, 91, 0.12);
    transform: translateY(-1px);
}

.roles-access-page .permission-insights {
    margin-bottom: 0;
}

.roles-access-page .permission-insights article {
    border-radius: 16px;
    padding: 16px;
    border-left-width: 4px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.roles-access-page .permission-insights strong {
    font-size: clamp(1.4rem, 2vw, 1.9rem);
}

.roles-toolbar {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.roles-search {
    display: grid;
    gap: 6px;
}

.roles-search label {
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
}

.roles-search input {
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.roles-search input:focus {
    outline: none;
    border-color: #2563a9;
    box-shadow: 0 0 0 3px rgba(37, 99, 169, 0.12);
    background: #fff;
}

.roles-domain-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.roles-domain-tabs button {
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 750;
    cursor: pointer;
}

.roles-domain-tabs button.active {
    border-color: rgba(15, 35, 64, 0.28);
    background: #0f2340;
    color: #fff;
}

.access-domain-card {
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.access-domain-card.accent-green {
    box-shadow: 0 12px 28px rgba(47, 125, 91, 0.06);
}

.access-domain-card.accent-red {
    box-shadow: 0 12px 28px rgba(185, 71, 61, 0.06);
}

.access-domain-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border: 0;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
    cursor: pointer;
    text-align: left;
}

.access-domain-title {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.access-domain-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef5fb;
    color: #17446f;
    flex: 0 0 auto;
}

.access-domain-card.accent-green .access-domain-icon {
    background: #edf7f2;
    color: #2f7d5b;
}

.access-domain-card.accent-red .access-domain-icon {
    background: #fbefee;
    color: #b9473d;
}

.access-domain-title strong {
    display: block;
    font-size: 0.98rem;
    letter-spacing: -0.01em;
}

.access-domain-title small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 0.76rem;
}

.access-domain-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.access-domain-meta span {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 0.72rem;
    font-weight: 800;
}

.access-domain-meta em {
    color: #2563a9;
    font-size: 0.76rem;
    font-style: normal;
    font-weight: 750;
}

.access-matrix-wrap {
    overflow: auto;
    border-top: 1px solid #e6ebf0;
}

.access-matrix {
    min-width: 980px;
    display: grid;
}

.access-matrix-row {
    display: grid;
    grid-template-columns: minmax(200px, 1.4fr) repeat(6, minmax(88px, 0.7fr)) minmax(180px, 1fr);
    align-items: center;
    gap: 0;
    border-bottom: 1px solid #eef2f6;
}

.access-matrix-row:last-child {
    border-bottom: 0;
}

.access-matrix-row.head {
    position: sticky;
    top: 0;
    z-index: 2;
    background: linear-gradient(180deg, #f8fafc, #eef3f8);
}

.access-matrix-row.head > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 48px;
    padding: 8px;
    color: #334155;
    font-size: 0.68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.access-matrix-row.head > span:first-child,
.access-matrix-row .access-module {
    justify-content: flex-start;
    padding-left: 18px;
}

.column-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
}

.column-clear {
    width: 18px;
    height: 18px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
}

.column-clear:hover,
.column-toggle:hover {
    color: #0f2340;
    background: rgba(15, 35, 64, 0.06);
}

.access-module {
    display: grid;
    gap: 2px;
    padding: 14px 18px;
}

.access-module strong {
    font-size: 0.88rem;
    color: #0f172a;
}

.access-module small {
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 650;
}

.access-toggle {
    display: grid;
    justify-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    -webkit-user-select: none;
       -moz-user-select: none;
            user-select: none;
}

.access-toggle:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.access-toggle span {
    position: relative;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #dbe3ee;
    transition: background 0.16s ease;
    pointer-events: none;
}

.access-toggle span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
    transition: transform 0.16s ease;
}

.access-toggle.on span {
    background: #2f7d5b;
}

.access-toggle.on.sensitive span {
    background: #b9473d;
}

.access-toggle.on span::after {
    transform: translateX(18px);
}

.access-toggle em {
    color: #94a3b8;
    font-size: 0.64rem;
    font-style: normal;
    font-weight: 750;
    text-transform: uppercase;
    pointer-events: none;
}

.access-toggle.on em {
    color: #334155;
}

.access-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 12px;
    justify-content: flex-end;
}

.access-presets button {
    min-height: 30px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 9px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.7rem;
    font-weight: 750;
    cursor: pointer;
}

.access-presets button:hover {
    border-color: #2563a9;
    color: #17446f;
    background: #eef5fb;
}

.roles-savebar {
    position: sticky;
    bottom: 12px;
    z-index: 40;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
    pointer-events: auto;
}

.roles-savebar.dirty {
    border-color: rgba(47, 125, 91, 0.35);
    box-shadow: 0 16px 36px rgba(47, 125, 91, 0.14);
}

.roles-savebar strong {
    display: block;
    font-size: 0.92rem;
}

.roles-savebar small {
    color: #64748b;
    font-size: 0.76rem;
}

.roles-savebar-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    pointer-events: auto;
}

.roles-savebar-actions .primary-button,
.roles-savebar-actions .ghost-button {
    pointer-events: auto;
    cursor: pointer;
}

@media (max-width: 1100px) {
    .roles-access-page .role-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .roles-hero,
    .roles-savebar,
    .access-domain-head {
        flex-direction: column;
        align-items: stretch;
    }

    .roles-hero-meta {
        justify-items: start;
    }

    .roles-access-page .role-cards {
        grid-template-columns: 1fr;
    }

    .roles-savebar-actions {
        width: 100%;
    }

    .roles-savebar-actions .primary-button,
    .roles-savebar-actions .ghost-button {
        flex: 1;
    }
}

.admin-workspace {
    display: grid;
    gap: 16px;
    padding-bottom: 24px;
}

.admin-create-page {
    padding-bottom: 88px;
}

.admin-hero.locations-hero {
    background:
        radial-gradient(circle at 90% 20%, rgba(47, 125, 91, 0.32), transparent 30%),
        radial-gradient(circle at 10% 85%, rgba(15, 35, 64, 0.35), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #123a2d 55%, #1d5a45 100%);
}

.admin-filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: end;
}

.admin-filter-grid label {
    display: grid;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    color: #475569;
}

.admin-filter-grid select,
.admin-form-grid input,
.admin-form-grid select,
.admin-form-grid textarea {
    min-height: 44px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
}

.admin-form-grid textarea {
    min-height: 110px;
    resize: vertical;
}

.admin-filter-grid select:focus,
.admin-form-grid input:focus,
.admin-form-grid select:focus,
.admin-form-grid textarea:focus {
    outline: none;
    border-color: #2563a9;
    box-shadow: 0 0 0 3px rgba(37, 99, 169, 0.12);
    background: #fff;
}

.admin-directory-card,
.admin-form-card {
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.admin-directory-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.admin-directory-head strong {
    display: block;
    font-size: 0.98rem;
}

.admin-directory-head small {
    color: #64748b;
    font-size: 0.76rem;
}

.admin-directory-list {
    display: grid;
}

.admin-person-row {
    display: grid;
    grid-template-columns: minmax(220px, 1.3fr) minmax(200px, 1.1fr) minmax(160px, 0.9fr) minmax(150px, 0.85fr);
    gap: 12px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f6;
    transition: background 0.15s ease;
}

.admin-person-row:last-child {
    border-bottom: 0;
}

.admin-person-row:hover {
    background: #f8fafc;
}

.admin-person-identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.admin-person-identity b {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: #eef5fb;
    color: #17446f;
    font-size: 0.78rem;
    font-weight: 900;
    flex: 0 0 auto;
}

.admin-person-identity b.tone-admin { background: #e8eef5; color: #0f2340; }

.admin-person-identity b.tone-manager { background: #e8f1fb; color: #2563a9; }

.admin-person-identity b.tone-agent { background: #edf7f2; color: #2f7d5b; }

.admin-person-identity b.tone-viewer { background: #f1f5f9; color: #475569; }

.admin-person-identity strong,
.admin-person-meta span {
    display: block;
    color: #0f172a;
    font-size: 0.9rem;
    font-weight: 750;
}

.admin-person-identity small,
.admin-person-meta small,
.admin-person-status small {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 0.74rem;
    font-weight: 650;
}

.role-chip-inline {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #eef2f7;
    color: #334155;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
}

.role-chip-inline.tone-admin { background: #e8eef5; color: #0f2340; }

.role-chip-inline.tone-manager { background: #e8f1fb; color: #2563a9; }

.role-chip-inline.tone-agent { background: #edf7f2; color: #2f7d5b; }

.role-chip-inline.tone-viewer { background: #f1f5f9; color: #475569; }

.admin-person-status {
    display: grid;
    gap: 6px;
    justify-items: start;
}

.admin-empty {
    display: grid;
    gap: 10px;
    justify-items: start;
    padding: 36px 22px;
}

.admin-empty strong {
    font-size: 1.05rem;
}

.admin-empty p {
    margin: 0;
    color: #64748b;
}

.location-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 14px;
    padding: 16px;
}

.location-card {
    display: grid;
    gap: 8px;
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: linear-gradient(180deg, #ffffff, #f8fafc);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.location-card:hover {
    transform: translateY(-2px);
    border-color: rgba(47, 125, 91, 0.35);
    box-shadow: 0 14px 28px rgba(47, 125, 91, 0.1);
}

.location-card.inactive {
    opacity: 0.78;
}

.location-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.location-code {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: #0f2340;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.location-card h4 {
    margin: 0;
    font-size: 1rem;
    letter-spacing: -0.01em;
}

.location-card p {
    margin: 0;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 650;
}

.location-card small {
    color: #64748b;
    font-size: 0.76rem;
    line-height: 1.4;
}

.admin-form-section {
    padding: 18px;
    border-bottom: 1px solid #eef2f6;
}

.admin-form-section:last-child {
    border-bottom: 0;
}

.admin-form-section-head {
    margin-bottom: 14px;
}

.admin-form-section-head strong {
    display: block;
    font-size: 0.96rem;
}

.admin-form-section-head small {
    color: #64748b;
    font-size: 0.76rem;
}

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

.admin-form-grid label {
    display: grid;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 800;
    color: #334155;
}

.admin-form-grid .span-2 {
    grid-column: 1 / -1;
}

.admin-role-picker {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}

.admin-submenu a.active {
    background: #0f2340;
    color: #fff;
    border-color: #0f2340;
}

@media (max-width: 1100px) {
    .admin-person-row {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 720px) {
    .admin-person-row,
    .admin-form-grid,
    .admin-filter-grid {
        grid-template-columns: 1fr;
    }

    .admin-form-grid .span-2 {
        grid-column: auto;
    }
}

.nav-module-block {
    display: grid;
    gap: 2px;
}

.nav-module-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 28px;
    gap: 4px;
    align-items: center;
}

.nav-module-row .nav-item {
    min-width: 0;
}

.nav-module-toggle {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #9aa6b8;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
}

.nav-module-toggle:hover,
.nav-module-block.open .nav-module-toggle,
.nav-module-block.active .nav-module-toggle {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.nav-module-block .nav-submenu {
    margin-left: 34px;
}

.executive-workspace {
    gap: 16px;
}

.executive-hero {
    background:
        radial-gradient(circle at 88% 18%, rgba(47, 125, 91, 0.3), transparent 28%),
        radial-gradient(circle at 12% 80%, rgba(37, 99, 169, 0.28), transparent 32%),
        linear-gradient(135deg, #0b1c33 0%, #123a4d 52%, #1a5a48 100%);
}

.executive-alerts {
    padding: 14px 16px;
    border: 1px solid rgba(185, 71, 61, 0.18);
    border-left: 4px solid #b9473d;
    border-radius: 14px;
    background: #fff7f7;
}

.executive-alerts strong {
    display: block;
    margin-bottom: 8px;
    color: #b9473d;
}

.executive-alerts ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 4px;
    color: #334155;
}

.executive-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 14px;
}

.executive-metric-card {
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.executive-metric-card header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid #eef2f6;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
}

.executive-metric-card header strong {
    display: block;
    text-transform: capitalize;
}

.executive-metric-card header small {
    color: #64748b;
    font-size: 0.74rem;
}

.executive-metric-list {
    display: grid;
    gap: 0;
}

.executive-metric-list > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
}

.executive-metric-list > div:last-child {
    border-bottom: 0;
}

.executive-metric-list small {
    color: #64748b;
    text-transform: capitalize;
}

.executive-metric-list strong {
    color: #0f172a;
}

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

.executive-preview-grid > div {
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.executive-preview-grid small {
    color: #64748b;
    font-size: 0.72rem;
    text-transform: capitalize;
}

.executive-snapshot-row {
    grid-template-columns: minmax(200px, 1.2fr) minmax(160px, 1fr) minmax(160px, 1fr) minmax(120px, 0.8fr);
}

.executive-exports {
    display: grid;
    gap: 14px;
}

.executive-exports .roles-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.executive-exports .roles-toolbar p {
    margin: 4px 0 0;
}

@media (max-width: 720px) {
    .executive-preview-grid,
    .executive-snapshot-row {
        grid-template-columns: 1fr;
    }

    .executive-exports .roles-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
}

.resource-workspace {
    gap: 16px;
}

.resource-hero-hr {
    background:
        radial-gradient(circle at 90% 20%, rgba(47, 125, 91, 0.34), transparent 28%),
        radial-gradient(circle at 10% 80%, rgba(15, 35, 64, 0.28), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #134034 55%, #1f6a4d 100%);
}

.resource-hero-documents {
    background:
        radial-gradient(circle at 88% 18%, rgba(37, 99, 169, 0.34), transparent 28%),
        radial-gradient(circle at 12% 82%, rgba(15, 35, 64, 0.3), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #14355a 55%, #1d4e86 100%);
}

.resource-hero-training {
    background:
        radial-gradient(circle at 90% 16%, rgba(47, 125, 91, 0.28), transparent 26%),
        radial-gradient(circle at 14% 84%, rgba(37, 99, 169, 0.22), transparent 32%),
        linear-gradient(135deg, #0b1c33 0%, #1a3f4a 52%, #236245 100%);
}

.resource-hero-assets {
    background:
        radial-gradient(circle at 86% 20%, rgba(100, 116, 139, 0.3), transparent 28%),
        radial-gradient(circle at 12% 78%, rgba(37, 99, 169, 0.28), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #1e3348 55%, #334155 100%);
}

.resource-side-strip {
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.resource-side-strip strong {
    display: block;
    margin-bottom: 10px;
    text-transform: capitalize;
}

.resource-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.resource-chip-row span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    background: #eef5fb;
    color: #17446f;
    font-size: 0.76rem;
    font-weight: 750;
}

.resource-record-row {
    grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 1fr) minmax(150px, 0.9fr) minmax(120px, 0.7fr);
}

.admin-person-row.has-actions,
.resource-record-row.has-actions {
    grid-template-columns: minmax(200px, 1.2fr) minmax(150px, 1fr) minmax(130px, 0.85fr) minmax(110px, 0.7fr) auto;
}

.registry-row-actions {
    justify-content: flex-end;
    flex-shrink: 0;
}

.location-card-actions {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #eef2f6;
}

.resource-hr .registry-workspace,
.resource-documents .admin-directory-card,
.resource-training .admin-directory-card,
.resource-assets .admin-directory-card {
    margin-top: 0;
}

@media (max-width: 720px) {
    .resource-record-row {
        grid-template-columns: 1fr;
    }
}

.ws-hero-programs {
    background:
        radial-gradient(circle at 88% 18%, rgba(37, 99, 169, 0.32), transparent 28%),
        radial-gradient(circle at 12% 80%, rgba(185, 71, 61, 0.18), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #163a5c 55%, #1d4e86 100%);
}

.ws-hero-finance {
    background:
        radial-gradient(circle at 90% 16%, rgba(47, 125, 91, 0.3), transparent 28%),
        radial-gradient(circle at 10% 84%, rgba(185, 71, 61, 0.16), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #123a2d 52%, #1f6a4d 100%);
}

.ws-hero-engagement {
    background:
        radial-gradient(circle at 86% 20%, rgba(185, 71, 61, 0.28), transparent 28%),
        radial-gradient(circle at 14% 78%, rgba(37, 99, 169, 0.22), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #3a1f2a 52%, #7a2e2e 100%);
}

.ws-hero-field {
    background:
        radial-gradient(circle at 88% 18%, rgba(47, 125, 91, 0.22), transparent 26%),
        radial-gradient(circle at 12% 82%, rgba(100, 116, 139, 0.28), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #1e3348 55%, #334155 100%);
}

.ws-hero-admin {
    background:
        radial-gradient(circle at 90% 18%, rgba(185, 71, 61, 0.3), transparent 28%),
        radial-gradient(circle at 10% 80%, rgba(15, 35, 64, 0.35), transparent 34%),
        linear-gradient(135deg, #0b1c33 0%, #2a1520 55%, #5c1f1f 100%);
}

/* Lock sidebar to viewport (desktop) — must stay last */

@media (min-width: 981px) {
    .app-shell {
        display: block !important;
    }

    .sidebar {
        position: fixed !important;
        top: 0 !important;
        right: auto !important;
        bottom: 0 !important;
        left: 0 !important;
        inset: 0 auto 0 0 !important;
        z-index: 1200 !important;
        width: 280px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        overflow: hidden !important;
    }

    .main-content {
        margin-left: 280px !important;
        width: auto !important;
    }

    .topbar {
        position: fixed !important;
        top: 0 !important;
        left: 280px !important;
        right: 0 !important;
    }
}

/* ===== Dashboard FACOM (pilotage) ===== */

.dash-home {
    display: grid;
    gap: 20px;
}

.dash-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
    gap: 24px;
    align-items: end;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 24px;
    color: #f4f8fc;
    background:
        radial-gradient(ellipse 55% 70% at 88% 12%, rgba(47, 125, 91, 0.28), transparent 55%),
        radial-gradient(ellipse 45% 55% at 12% 88%, rgba(90, 156, 214, 0.22), transparent 50%),
        linear-gradient(135deg, #0b2748 0%, #163f6b 48%, #1f5f7a 100%);
    box-shadow: 0 18px 40px rgba(11, 39, 72, 0.18);
    animation: login-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.dash-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.7), transparent 75%);
            mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.7), transparent 75%);
    pointer-events: none;
}

.dash-hero-copy,
.dash-hero-meta {
    position: relative;
    z-index: 1;
}

.dash-hero-copy {
    display: grid;
    gap: 10px;
    justify-items: start;
}

.dash-hero-copy .brand-logo-mark {
    width: 56px;
    height: 56px;
    margin-bottom: 4px;
}

.dash-hero-kicker {
    margin: 0;
    color: rgba(220, 236, 248, 0.78);
    font-size: 0.74rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dash-hero h2 {
    margin: 0;
    max-width: 18ch;
    color: #fff;
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.dash-hero-copy > p:last-child {
    margin: 0;
    max-width: 48ch;
    color: rgba(234, 243, 250, 0.86);
    font-size: 0.98rem;
    line-height: 1.55;
}

.dash-hero-meta {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.dash-hero-meta div {
    display: grid;
    gap: 2px;
}

.dash-hero-meta small {
    color: rgba(220, 236, 248, 0.66);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dash-hero-meta strong {
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: capitalize;
}

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

.dash-kpi {
    display: grid;
    gap: 10px;
    min-height: 132px;
    padding: 16px;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #ffffff;
    color: inherit;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.dash-kpi:hover {
    transform: translateY(-2px);
    border-color: #c5d3e4;
    box-shadow: 0 16px 28px rgba(15, 23, 42, 0.08);
}

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

.dash-kpi-top small {
    color: #5b6b7c;
    font-size: 0.78rem;
    font-weight: 750;
    text-align: right;
}

.dash-kpi-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    color: #fff;
}

.dash-kpi-icon .menu-icon {
    width: 18px;
    height: 18px;
}

.dash-kpi-icon.tone-blue { background: #2563a9; }

.dash-kpi-icon.tone-green { background: #2f7d5b; }

.dash-kpi-icon.tone-teal { background: #1f6f7a; }

.dash-kpi-icon.tone-amber { background: #c98516; }

.dash-kpi-icon.tone-red { background: #b9473d; }

.dash-kpi strong {
    color: #10233d;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 850;
    line-height: 1.1;
}

.dash-kpi em {
    color: #6b7684;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 600;
}

.dash-pulse {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dash-pulse-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f7fafc);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dash-pulse-card header h3 {
    margin: 4px 0 0;
    color: #10233d;
    font-size: 1.02rem;
}

.dash-pulse-card > strong {
    color: #10233d;
    font-family: "Fraunces", Georgia, serif;
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
}

.dash-pulse-card p {
    margin: 0;
    color: #5b6b7c;
    font-size: 0.9rem;
    line-height: 1.45;
}

.dash-pulse-card a {
    width: -moz-fit-content;
    width: fit-content;
    color: #2563a9;
    font-size: 0.86rem;
    font-weight: 750;
    text-decoration: none;
}

.dash-pulse-card.alert {
    border-color: rgba(185, 71, 61, 0.28);
    background: linear-gradient(180deg, #fff8f7, #ffffff);
}

.dash-pulse-card.stable {
    border-color: rgba(47, 125, 91, 0.22);
}

.dash-meter {
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6eef5;
}

.dash-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563a9, #1f5f7a);
}

.dash-meter.meal i {
    background: linear-gradient(90deg, #2f7d5b, #1f9d68);
}

.dash-insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dash-panel {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

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

.dash-panel-head h3 {
    margin: 4px 0 0;
    color: #10233d;
    font-size: 1.05rem;
}

.dash-panel-head > span,
.dash-panel-head > a {
    color: #5b6b7c;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.dash-panel-head > a {
    color: #2563a9;
}

.dash-empty {
    margin: 0;
    color: #6b7684;
    font-size: 0.9rem;
}

.dash-bars {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.dash-bars li {
    display: grid;
    gap: 6px;
}

.dash-bars li > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.dash-bars strong {
    color: #243447;
    font-size: 0.88rem;
}

.dash-bars span {
    color: #5b6b7c;
    font-size: 0.82rem;
    font-weight: 700;
}

.dash-bars i {
    display: block;
    height: 7px;
    border-radius: 999px;
    background: #e8eef4;
    position: relative;
    overflow: hidden;
}

.dash-bars i::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--dash-bar, 0%);
    border-radius: inherit;
    background: linear-gradient(90deg, #2563a9, #2f7d5b);
}

.dash-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.dash-timeline li {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #eef2f6;
}

.dash-timeline li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.dash-timeline b {
    width: 10px;
    height: 10px;
    margin-top: 5px;
    border-radius: 50%;
    background: #2563a9;
    box-shadow: 0 0 0 4px rgba(37, 99, 169, 0.12);
}

.dash-timeline strong {
    display: block;
    color: #10233d;
    font-size: 0.9rem;
}

.dash-timeline small {
    color: #6b7684;
    font-size: 0.78rem;
}

.dash-timeline span {
    color: #5b6b7c;
    font-size: 0.76rem;
    font-weight: 700;
    white-space: nowrap;
}

.dash-access {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #dbe3ee;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.dash-access-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dash-access-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border: 1px solid #e4ebf2;
    border-radius: 16px;
    background: #f8fafc;
}

.dash-access-card > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    color: #fff;
    background: #2563a9;
}

.dash-access-card.accent-green > span { background: #2f7d5b; }

.dash-access-card.accent-red > span { background: #b9473d; }

.dash-access-card.accent-blue > span { background: #2563a9; }

.dash-access-card .menu-icon {
    width: 18px;
    height: 18px;
}

.dash-access-card strong {
    display: block;
    color: #10233d;
    font-size: 0.95rem;
}

.dash-access-card small {
    color: #6b7684;
    font-size: 0.78rem;
}

.dash-access-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dash-access-links a {
    padding: 6px 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #dbe3ee;
    color: #243447;
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.dash-access-links a:hover {
    border-color: #2563a9;
    color: #2563a9;
}

@media (max-width: 1200px) {
    .dash-kpi-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dash-insight-grid,
    .dash-access-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dash-activity {
        grid-column: 1 / -1;
    }
}

@media (max-width: 860px) {
    .dash-hero,
    .dash-pulse,
    .dash-kpi-grid,
    .dash-insight-grid,
    .dash-access-grid {
        grid-template-columns: 1fr;
    }

    .dash-hero-meta {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dash-hero {
        animation: none;
    }
}

.selection\:bg-\[\#FF2D20\] *::-moz-selection{
  --tw-bg-opacity: 1;
  background-color: rgb(255 45 32 / var(--tw-bg-opacity, 1));
}

.selection\:bg-\[\#FF2D20\] *::selection{
  --tw-bg-opacity: 1;
  background-color: rgb(255 45 32 / var(--tw-bg-opacity, 1));
}

.selection\:text-white *::-moz-selection{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.selection\:text-white *::selection{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.selection\:bg-\[\#FF2D20\]::-moz-selection{
  --tw-bg-opacity: 1;
  background-color: rgb(255 45 32 / var(--tw-bg-opacity, 1));
}

.selection\:bg-\[\#FF2D20\]::selection{
  --tw-bg-opacity: 1;
  background-color: rgb(255 45 32 / var(--tw-bg-opacity, 1));
}

.selection\:text-white::-moz-selection{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.selection\:text-white::selection{
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}

.default\:col-span-full:default{
  grid-column: 1 / -1;
}

.default\:row-span-1:default{
  grid-row: span 1 / span 1;
}

.hover\:rounded-b-md:hover{
  border-bottom-right-radius: 0.375rem;
  border-bottom-left-radius: 0.375rem;
}

.hover\:rounded-t-md:hover{
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.hover\:bg-gray-100:hover{
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.hover\:bg-gray-100\/75:hover{
  background-color: rgb(243 244 246 / 0.75);
}

.hover\:text-black:hover{
  --tw-text-opacity: 1;
  color: rgb(0 0 0 / var(--tw-text-opacity, 1));
}

.hover\:text-black\/70:hover{
  color: rgb(0 0 0 / 0.7);
}

.hover\:text-gray-400:hover{
  --tw-text-opacity: 1;
  color: rgb(156 163 175 / var(--tw-text-opacity, 1));
}

.hover\:text-gray-500:hover{
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.hover\:underline:hover{
  text-decoration-line: underline;
}

.hover\:ring-black\/20:hover{
  --tw-ring-color: rgb(0 0 0 / 0.2);
}

.focus\:z-10:focus{
  z-index: 10;
}

.focus\:border-blue-300:focus{
  --tw-border-opacity: 1;
  border-color: rgb(147 197 253 / var(--tw-border-opacity, 1));
}

.focus\:text-gray-500:focus{
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.focus\:outline-none:focus{
  outline: 2px solid transparent;
  outline-offset: 2px;
}

.focus\:ring:focus{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-1:focus-visible{
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}

.focus-visible\:ring-\[\#FF2D20\]:focus-visible{
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(255 45 32 / var(--tw-ring-opacity, 1));
}

.active\:bg-gray-100:active{
  --tw-bg-opacity: 1;
  background-color: rgb(243 244 246 / var(--tw-bg-opacity, 1));
}

.active\:text-gray-500:active{
  --tw-text-opacity: 1;
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
}

.active\:text-gray-700:active{
  --tw-text-opacity: 1;
  color: rgb(55 65 81 / var(--tw-text-opacity, 1));
}

@media (min-width: 640px){

  .sm\:col-span-1{
    grid-column: span 1 / span 1;
  }

  .sm\:col-span-2{
    grid-column: span 2 / span 2;
  }

  .sm\:mt-10{
    margin-top: 2.5rem;
  }

  .sm\:flex{
    display: flex;
  }

  .sm\:hidden{
    display: none;
  }

  .sm\:size-16{
    width: 4rem;
    height: 4rem;
  }

  .sm\:size-6{
    width: 1.5rem;
    height: 1.5rem;
  }

  .sm\:flex-1{
    flex: 1 1 0%;
  }

  .sm\:items-center{
    align-items: center;
  }

  .sm\:justify-between{
    justify-content: space-between;
  }

  .sm\:gap-6{
    gap: 1.5rem;
  }

  .sm\:p-12{
    padding: 3rem;
  }

  .sm\:py-5{
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .sm\:pt-5{
    padding-top: 1.25rem;
  }

  .sm\:text-3xl{
    font-size: 1.875rem;
    line-height: 2.25rem;
  }
}

@media (min-width: 768px){

  .md\:row-span-3{
    grid-row: span 3 / span 3;
  }

  .md\:block{
    display: block;
  }

  .md\:inline{
    display: inline;
  }

  .md\:flex{
    display: flex;
  }

  .md\:hidden{
    display: none;
  }

  .md\:min-w-64{
    min-width: 16rem;
  }

  .md\:max-w-80{
    max-width: 20rem;
  }

  .md\:items-center{
    align-items: center;
  }

  .md\:justify-between{
    justify-content: space-between;
  }

  .md\:gap-2{
    gap: 0.5rem;
  }
}

@media (min-width: 1024px){

  .lg\:col-start-2{
    grid-column-start: 2;
  }

  .lg\:block{
    display: block;
  }

  .lg\:inline-block{
    display: inline-block;
  }

  .lg\:h-16{
    height: 4rem;
  }

  .lg\:w-\[12rem\]{
    width: 12rem;
  }

  .lg\:max-w-7xl{
    max-width: 80rem;
  }

  .lg\:grid-cols-2{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lg\:grid-cols-3{
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lg\:flex-col{
    flex-direction: column;
  }

  .lg\:items-end{
    align-items: flex-end;
  }

  .lg\:justify-center{
    justify-content: center;
  }

  .lg\:gap-8{
    gap: 2rem;
  }

  .lg\:p-10{
    padding: 2.5rem;
  }

  .lg\:px-8{
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .lg\:pb-10{
    padding-bottom: 2.5rem;
  }

  .lg\:pt-0{
    padding-top: 0px;
  }

  .lg\:text-2xl{
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .lg\:text-base{
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .lg\:text-sm{
    font-size: 0.875rem;
    line-height: 1.25rem;
  }

  .lg\:text-\[\#FF2D20\]{
    --tw-text-opacity: 1;
    color: rgb(255 45 32 / var(--tw-text-opacity, 1));
  }

  .default\:lg\:col-span-6:default{
    grid-column: span 6 / span 6;
  }
}

.rtl\:flex-row-reverse:where([dir="rtl"], [dir="rtl"] *){
  flex-direction: row-reverse;
}

@media (prefers-color-scheme: dark){

  .dark\:block{
    display: block;
  }

  .dark\:hidden{
    display: none;
  }

  .dark\:border{
    border-width: 1px;
  }

  .dark\:border-gray-600{
    --tw-border-opacity: 1;
    border-color: rgb(75 85 99 / var(--tw-border-opacity, 1));
  }

  .dark\:border-gray-700{
    --tw-border-opacity: 1;
    border-color: rgb(55 65 81 / var(--tw-border-opacity, 1));
  }

  .dark\:border-gray-800{
    --tw-border-opacity: 1;
    border-color: rgb(31 41 55 / var(--tw-border-opacity, 1));
  }

  .dark\:border-gray-900{
    --tw-border-opacity: 1;
    border-color: rgb(17 24 39 / var(--tw-border-opacity, 1));
  }

  .dark\:border-l-red-500{
    --tw-border-opacity: 1;
    border-left-color: rgb(239 68 68 / var(--tw-border-opacity, 1));
  }

  .dark\:bg-black{
    --tw-bg-opacity: 1;
    background-color: rgb(0 0 0 / var(--tw-bg-opacity, 1));
  }

  .dark\:bg-gray-800{
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
  }

  .dark\:bg-gray-900\/80{
    background-color: rgb(17 24 39 / 0.8);
  }

  .dark\:bg-gray-950\/95{
    background-color: rgb(3 7 18 / 0.95);
  }

  .dark\:bg-red-500\/20{
    background-color: rgb(239 68 68 / 0.2);
  }

  .dark\:bg-zinc-900{
    --tw-bg-opacity: 1;
    background-color: rgb(24 24 27 / var(--tw-bg-opacity, 1));
  }

  .dark\:via-zinc-900{
    --tw-gradient-to: rgb(24 24 27 / 0)  var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), #18181b var(--tw-gradient-via-position), var(--tw-gradient-to);
  }

  .dark\:to-zinc-900{
    --tw-gradient-to: #18181b var(--tw-gradient-to-position);
  }

  .dark\:text-gray-100{
    --tw-text-opacity: 1;
    color: rgb(243 244 246 / var(--tw-text-opacity, 1));
  }

  .dark\:text-gray-300{
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
  }

  .dark\:text-gray-400{
    --tw-text-opacity: 1;
    color: rgb(156 163 175 / var(--tw-text-opacity, 1));
  }

  .dark\:text-gray-600{
    --tw-text-opacity: 1;
    color: rgb(75 85 99 / var(--tw-text-opacity, 1));
  }

  .dark\:text-gray-950{
    --tw-text-opacity: 1;
    color: rgb(3 7 18 / var(--tw-text-opacity, 1));
  }

  .dark\:text-white{
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  }

  .dark\:text-white\/50{
    color: rgb(255 255 255 / 0.5);
  }

  .dark\:text-white\/70{
    color: rgb(255 255 255 / 0.7);
  }

  .dark\:ring-1{
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
  }

  .dark\:ring-gray-800{
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(31 41 55 / var(--tw-ring-opacity, 1));
  }

  .dark\:ring-zinc-800{
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(39 39 42 / var(--tw-ring-opacity, 1));
  }

  .dark\:hover\:bg-gray-700:hover{
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
  }

  .dark\:hover\:bg-gray-800:hover{
    --tw-bg-opacity: 1;
    background-color: rgb(31 41 55 / var(--tw-bg-opacity, 1));
  }

  .dark\:hover\:bg-gray-800\/75:hover{
    background-color: rgb(31 41 55 / 0.75);
  }

  .dark\:hover\:text-gray-300:hover{
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
  }

  .dark\:hover\:text-gray-500:hover{
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
  }

  .dark\:hover\:text-white:hover{
    --tw-text-opacity: 1;
    color: rgb(255 255 255 / var(--tw-text-opacity, 1));
  }

  .dark\:hover\:text-white\/70:hover{
    color: rgb(255 255 255 / 0.7);
  }

  .dark\:hover\:text-white\/80:hover{
    color: rgb(255 255 255 / 0.8);
  }

  .dark\:hover\:ring-zinc-700:hover{
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(63 63 70 / var(--tw-ring-opacity, 1));
  }

  .dark\:focus\:border-blue-700:focus{
    --tw-border-opacity: 1;
    border-color: rgb(29 78 216 / var(--tw-border-opacity, 1));
  }

  .dark\:focus\:border-blue-800:focus{
    --tw-border-opacity: 1;
    border-color: rgb(30 64 175 / var(--tw-border-opacity, 1));
  }

  .dark\:focus\:text-gray-500:focus{
    --tw-text-opacity: 1;
    color: rgb(107 114 128 / var(--tw-text-opacity, 1));
  }

  .dark\:focus-visible\:ring-\[\#FF2D20\]:focus-visible{
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(255 45 32 / var(--tw-ring-opacity, 1));
  }

  .dark\:focus-visible\:ring-white:focus-visible{
    --tw-ring-opacity: 1;
    --tw-ring-color: rgb(255 255 255 / var(--tw-ring-opacity, 1));
  }

  .dark\:active\:bg-gray-700:active{
    --tw-bg-opacity: 1;
    background-color: rgb(55 65 81 / var(--tw-bg-opacity, 1));
  }

  .dark\:active\:text-gray-300:active{
    --tw-text-opacity: 1;
    color: rgb(209 213 219 / var(--tw-text-opacity, 1));
  }
}

